X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=configure.in;h=bb6e8d7b2d171ca016bd7a7a4a769c35718f4803;hb=319cab08aa1795ea1f22a1990b594abf6d17f05a;hp=42f7beacc7f986a1bb75c7e2c1e3803a13b73f2b;hpb=dfdffa2c3c2df36aa57d5beee75ca3fb15e3a736;p=deliverable%2Fbinutils-gdb.git diff --git a/configure.in b/configure.in index 42f7beacc7..bb6e8d7b2d 100644 --- a/configure.in +++ b/configure.in @@ -1760,6 +1760,36 @@ for module in ${target_configdirs} ; do /^@if target-$module\$/d /^@endif target-$module\$/d" done + +AC_ARG_ENABLE([bootstrap], +[ --enable-bootstrap Enable bootstrapping [no]],, +enable_bootstrap=no) +if test -d ${srcdir}/gcc; then + case "$host:$target:$enable_bootstrap" in + $build:$build:yes | *:no) ;; + *:yes) AC_MSG_ERROR([cannot bootstrap a cross-compiler]) ;; + *) AC_MSG_ERROR([invalid option for --enable-bootstrap]) ;; + esac +else + if test $enable_bootstrap = yes; then + AC_MSG_ERROR([cannot bootstrap without a compiler]) + fi +fi + +case "$enable_bootstrap" in + yes) + default_target=new-bootstrap + extrasub="$extrasub +/^@if gcc-bootstrap\$/d +/^@endif gcc-bootstrap\$/d" ;; + no) + default_target=all + extrasub="$extrasub +/^@if gcc-no-bootstrap\$/d +/^@endif gcc-no-bootstrap\$/d" ;; +esac +AC_SUBST(default_target) + extrasub="$extrasub /^@if /,/^@endif /d" @@ -2033,7 +2063,7 @@ elif test -d ${srcdir}/gcc; then elif test "$host" = "$target"; then GFORTRAN_FOR_TARGET='gfortran' else - GFORTRAN_FOR_TARGET=`echo gfortran | sed -e 's/x/x/' ${program_transform_name}` + GFORTRAN_FOR_TARGET=`echo gfortran | sed "${program_transform_name}"` fi case $GFORTRAN_FOR_TARGET in *' $(FLAGS_FOR_TARGET)') ;;