Ignore:
Timestamp:
Apr 28, 2004, 6:58:06 AM (21 years ago)
Author:
bird
Message:

#1040: Joined the GCC 3.3.3 with the trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gcc/configure

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r1393 r1394  
    44
    55# Configuration script
    6 # Copyright (C) 1988, 90, 91, 92, 93, 94, 95, 96, 97, 98, 1999, 2000, 2001
    7 # Free Software Foundation, Inc.
     6# Copyright (C) 1988, 90, 91, 92, 93, 94, 95, 96, 97, 98, 1999, 2000, 2001,
     7# 2002 Free Software Foundation, Inc.
    88
    99# This program is free software; you can redistribute it and/or modify
     
    9090target_makefile_frag=
    9191undefs=NOUNDEFS
    92 version="$Revision: 1.40.6.3 $"
     92version="$Revision: 1.49 $"
    9393x11=default
    9494bindir='${exec_prefix}/bin'
     
    153153progname=$0
    154154# if PWD already has a value, it is probably wrong.
    155 if [ -n "$PWD" ]; then PWD=`pwd`; fi
     155if [ -n "$PWD" ]; then PWD=`${PWDCMD-pwd}`; fi
    156156
    157157case "${progname}" in
     
    159159*/*) ;;
    160160*)
    161         PATH=$PATH:${PWD=`pwd`} ; export PATH
     161        PATH=$PATH:${PWD=`${PWDCMD-pwd}`} ; export PATH
    162162        ;;
    163163esac
     
    527527moveifchange=`echo ${progname} | sed 's/configure$/move-if-change/'`
    528528## the sed command below emulates the dirname command
    529 topsrcdir=`cd \`echo ${progname} | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'\`; pwd`
     529topsrcdir=`cd \`echo ${progname} | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'\`; ${PWDCMD-pwd}`
    530530
    531531
     
    567567                exit 1
    568568        fi
    569         pwd=`pwd`
    570         srcpwd=`cd ${srcdir} ; pwd`
     569        pwd=`${PWDCMD-pwd}`
     570        srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
    571571        if [ "${pwd}" = "${srcpwd}" ] ; then
    572572                srcdir=.
     
    580580*)
    581581        if [ -f ${srcdir}/config.status ] ; then
    582                 echo '***' Cannot configure here in \"${PWD=`pwd`}\" when \"${srcdir}\" is currently configured. 1>&2
     582                echo '***' Cannot configure here in \"${PWD=`${PWDCMD-pwd}`}\" when \"${srcdir}\" is currently configured. 1>&2
    583583                exit 1
    584584        fi
     
    709709case "${srctrigger}" in
    710710"")
    711         echo '***' srctrigger not set in ${PWD=`pwd`}/configure.in.  1>&2
     711        echo '***' srctrigger not set in ${PWD=`${PWDCMD-pwd}`}/configure.in.  1>&2
    712712        exit 1
    713713        ;;
     
    779779if [ ! -r ${srcdir}/${srctrigger} ] ; then
    780780        case "${srcdirdefaulted}" in
    781         "") echo '***' "${progname}: Can't find ${srcname} sources in ${PWD=`pwd`}/${srcdir}" 1>&2 ;;
    782         *)  echo '***' "${progname}: Can't find ${srcname} sources in ${PWD=`pwd`}/. or ${PWD=`pwd`}/.." 1>&2 ;;
     781        "") echo '***' "${progname}: Can't find ${srcname} sources in ${PWD=`${PWDCMD-pwd}`}/${srcdir}" 1>&2 ;;
     782        *)  echo '***' "${progname}: Can't find ${srcname} sources in ${PWD=`${PWDCMD-pwd}`}/. or ${PWD=`${PWDCMD-pwd}`}/.." 1>&2 ;;
    783783        esac
    784784
     
    918918  tools="AR AR_FOR_TARGET AS AS_FOR_TARGET BISON CC_FOR_BUILD"
    919919  tools="${tools} CC_FOR_TARGET CXX_FOR_TARGET GCJ_FOR_TARGET"
    920   tools="${tools} DLLTOOL DLLTOOL_FOR_TARGET GCC_FOR_TARGET HOST_PREFIX"
    921   tools="${tools} HOST_PREFIX_1 LD LD_FOR_TARGET LEX MAKEINFO NM"
     920  tools="${tools} DLLTOOL DLLTOOL_FOR_TARGET GCC_FOR_TARGET BUILD_PREFIX"
     921  tools="${tools} BUILD_PREFIX_1 LD LD_FOR_TARGET LEX MAKEINFO NM"
    922922  tools="${tools} NM_FOR_TARGET RANLIB RANLIB_FOR_TARGET"
    923923  tools="${tools} WINDRES WINDRES_FOR_TARGET YACC"
     
    956956  DLLTOOL_FOR_TARGET=${DLLTOOL_FOR_TARGET-${target_alias}-dlltool}
    957957  GCC_FOR_TARGET=${GCC_FOR_TARGET-${CC_FOR_TARGET-${target_alias}-gcc}}
    958   HOST_PREFIX=${build_alias}-
    959   HOST_PREFIX_1=${build_alias}-
     958  BUILD_PREFIX=${build_alias}-
     959  BUILD_PREFIX_1=${build_alias}-
    960960  LD=${LD-${host_alias}-ld}
    961961  LD_FOR_TARGET=${LD_FOR_TARGET-${target_alias}-ld}
     
    10731073export CXXFLAGS
    10741074
    1075 # FIXME: This should be in configure.in, not configure
    1076 case "$host" in
    1077         *go32*)
    1078             enable_gdbtk=no ;;
    1079         *msdosdjgpp*)
    1080             enable_gdbtk=no ;;
    1081 esac
    1082 
    1083 # FIXME: This should be in configure.in, not configure
    1084 # Determine whether gdb needs tk/tcl or not.
    1085 if [ "$enable_gdbtk" != "no" ]; then
    1086         GDB_TK="all-tcl all-tk all-itcl all-tix all-libgui"
    1087 else
    1088         GDB_TK=""
    1089 fi
    1090 
    10911075all_build_modules=
    10921076if test x"${build_alias}" != x"${host_alias}"
     
    11251109                true
    11261110        else
    1127                 echo '***' "${progname}: could not make ${PWD=`pwd`}/${subdir}" 1>&2
     1111                echo '***' "${progname}: could not make ${PWD=`${PWDCMD-pwd}`}/${subdir}" 1>&2
    11281112                exit 1
    11291113        fi
     
    12241208                      else
    12251209                              echo '***' Expected package makefile rules fragment \"${package_makefile_rules_frag}\" 1>&2
    1226                               echo '***' is missing in ${PWD=`pwd`}. 1>&2
     1210                              echo '***' is missing in ${PWD=`${PWDCMD-pwd}`}. 1>&2
    12271211                              cp ${srcdir}/${subdir}/${Makefile_in} ${subdir}/Makefile.tem
    12281212                      fi
     
    12601244                      else
    12611245                              echo '***' Expected host makefile fragment \"${host_makefile_frag}\" 1>&2
    1262                               echo '***' is missing in ${PWD=`pwd`}. 1>&2
     1246                              echo '***' is missing in ${PWD=`${PWDCMD-pwd}`}. 1>&2
    12631247                              mv ${Makefile} ${subdir}/Makefile.tem
    12641248                      fi
     
    12961280                      else
    12971281                              echo '***' Expected package makefile fragment \"${package_makefile_rules_frag}\" 1>&2
    1298                               echo '***' is missing in ${PWD=`pwd`}. 1>&2
     1282                              echo '***' is missing in ${PWD=`${PWDCMD-pwd}`}. 1>&2
    12991283                              mv ${Makefile} ${subdir}/Makefile.tem
    13001284                      fi
     
    13731357                sedtemp=sed.$$
    13741358                cat >$sedtemp <<EOF
    1375 s:^SUBDIRS[     ]*=.*$:SUBDIRS = ${configdirs}:
    1376 s:^NONSUBDIRS[  ]*=.*$:NONSUBDIRS = ${noconfigdirs}:
     1359s:@configdirs@:${configdirs}:
    13771360EOF
    13781361                sed -f $sedtemp \
     
    13821365                mv ${subdir}/Makefile.tm2 ${subdir}/Makefile.tem
    13831366            fi
    1384             sed     -e "s|^prefix[      ]*=.*$|prefix = ${prefix}|" \
    1385                     -e "s|^exec_prefix[         ]*=.*$|exec_prefix = ${exec_prefix}|" \
    1386                     -e "s|^bindir[      ]*=.*$|bindir = ${bindir}|" \
    1387                     -e "s|^sbindir[     ]*=.*$|sbindir = ${sbindir}|" \
    1388                     -e "s|^libexecdir[  ]*=.*$|libexecdir = ${libexecdir}|" \
    1389                     -e "s|^datadir[     ]*=.*$|datadir = ${datadir}|" \
    1390                     -e "s|^sysconfdir[  ]*=.*$|sysconfdir = ${sysconfdir}|" \
    1391                     -e "s|^sharedstatedir[      ]*=.*$|sharedstatedir = ${sharedstatedir}|" \
    1392                     -e "s|^localstatedir[       ]*=.*$|localstatedir = ${localstatedir}|" \
    1393                     -e "s|^libdir[      ]*=.*$|libdir = ${libdir}|" \
    1394                     -e "s|^includedir[  ]*=.*$|includedir = ${includedir}|" \
    1395                     -e "s|^oldincludedir[       ]*=.*$|oldincludedir = ${oldincludedir}|" \
    1396                     -e "s|^infodir[     ]*=.*$|infodir = ${infodir}|" \
    1397                     -e "s|^mandir[      ]*=.*$|mandir = ${mandir}|" \
    1398                     -e "s|^ALL_BUILD_MODULES =.*|ALL_BUILD_MODULES =${all_build_modules}|" \
     1367            sed     -e "s|@prefix@|${prefix}|" \
     1368                    -e "s|@exec_prefix@|${exec_prefix}|" \
     1369                    -e "s|@bindir@|${bindir}|" \
     1370                    -e "s|@sbindir@|${sbindir}|" \
     1371                    -e "s|@libexecdir@|${libexecdir}|" \
     1372                    -e "s|@datadir@|${datadir}|" \
     1373                    -e "s|@sysconfdir@|${sysconfdir}|" \
     1374                    -e "s|@sharedstatedir@|${sharedstatedir}|" \
     1375                    -e "s|@localstatedir@|${localstatedir}|" \
     1376                    -e "s|@libdir@|${libdir}|" \
     1377                    -e "s|@includedir@|${includedir}|" \
     1378                    -e "s|@oldincludedir@|${oldincludedir}|" \
     1379                    -e "s|@infodir@|${infodir}|" \
     1380                    -e "s|@mandir@|${mandir}|" \
     1381                    -e "s|@all_build_modules@|${all_build_modules}|" \
    13991382                    -e "/^CC[   ]*=/{
    14001383                        :loop1
     
    14251408                        s%^CXXFLAGS[    ]*=.*$%CXXFLAGS = ${CXXFLAGS}%
    14261409                        }" \
    1427                     -e "s|^SHELL[        ]*=.*$|SHELL = ${config_shell}|" \
    1428                     -e "s|^srcdir[      ]*=.*$|srcdir = ${makesrcdir}|" \
     1410                    -e "s|@config_shell@|${config_shell}|" \
     1411                    -e "s|@srcdir@|${makesrcdir}|" \
    14291412                    -e "s/
    14301413//" \
    1431                     -e "s:^program_prefix[      ]*=.*$:program_prefix = ${program_prefix}:" \
    1432                     -e "s:^program_suffix[      ]*=.*$:program_suffix = ${program_suffix}:" \
    1433                     -e "s:^program_transform_name[      ]*=.*$:program_transform_name = ${program_transform_name}:" \
    1434                     -e "s|^tooldir[     ]*=.*$|tooldir = ${tooldir}|" \
    1435                     -e "s|^build_tooldir[       ]*=.*$|build_tooldir = ${tooldir}|" \
    1436                     -e "s:^DEFAULT_YACC[         ]*=.*$:DEFAULT_YACC = ${DEFAULT_YACC}:" \
    1437                     -e "s:^DEFAULT_LEX[  ]*=.*$:DEFAULT_LEX = ${DEFAULT_LEX}:" \
    1438                     -e "s:^DEFAULT_M4[  ]*=.*$:DEFAULT_M4 = ${DEFAULT_M4}:" \
     1414                    -e "s:@program_transform_name@:${program_transform_name}:" \
     1415                    -e "s|@tooldir@|${tooldir}|" \
     1416                    -e "s|@build_tooldir@|${tooldir}|" \
     1417                    -e "s:@DEFAULT_YACC@:${DEFAULT_YACC}:" \
     1418                    -e "s:@DEFAULT_LEX@:${DEFAULT_LEX}:" \
     1419                    -e "s:@DEFAULT_M4@:${DEFAULT_M4}:" \
    14391420                    ${subdir}/Makefile.tem >> ${Makefile}
    14401421 
    1441             sed -e "s:^GDB_TK[   ]*=.*$:GDB_TK = ${GDB_TK}:" ${Makefile} >${Makefile}.tem
     1422            sed -e "s:@GDB_TK@:${GDB_TK}:" ${Makefile} >${Makefile}.tem
    14421423            mv -f ${Makefile}.tem ${Makefile}
    14431424
     
    14831464        newusing=`echo "${using}" | sed 's/and/using/'`
    14841465        using=${newusing}
    1485         echo "Created \"${Makefile}\" in" ${PWD=`pwd`} ${using}
     1466        echo "Created \"${Makefile}\" in" ${PWD=`${PWDCMD-pwd}`} ${using}
    14861467
    14871468        . ${tmpfile}.pos
     
    15491530                                                true
    15501531                                        else
    1551                                                 echo '***' "${progname}: could not make ${PWD=`pwd`}/${bld_dir}" 1>&2
     1532                                                echo '***' "${progname}: could not make ${PWD=`${PWDCMD-pwd}`}/${bld_dir}" 1>&2
    15521533                                                exit 1
    15531534                                        fi
     
    15561537                        esac
    15571538
    1558                         POPDIR=${PWD=`pwd`}
     1539                        POPDIR=${PWD=`${PWDCMD-pwd}`}
    15591540                        cd ${bld_dir}
    15601541
     
    16041585                                        true
    16051586                                else
    1606                                         echo Configure in `pwd` failed, exiting. 1>&2
     1587                                        echo Configure in `${PWDCMD-pwd}` failed, exiting. 1>&2
    16071588                                        exit 1
    16081589                                fi
Note: See TracChangeset for help on using the changeset viewer.