3 ### WARNING: this file contains embedded tabs. Do not run untabify on this file.
6 # Copyright (C) 1988, 90, 91, 92, 93, 94, 95, 96, 97, 98, 1999, 2000, 2001,
7 # 2002 Free Software Foundation, Inc.
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; either version 2 of the License, or
12 # (at your option) any later version.
14 # This program is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
19 # You should have received a copy of the GNU General Public License
20 # along with this program; if not, write to the Free Software
21 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23 # This file was originally written by K. Richard Pixley.
26 # Shell script to create proper links to machine-dependent files in
27 # preparation for compilation.
29 # If configure succeeds, it leaves its status in config.status.
30 # If configure fails after disturbing the status quo,
31 # config.status is removed.
34 export PATH ||
(echo "OOPS, this isn't sh. Desperation time. I will feed myself to sh."; sh
$0 $argv; kill $$
)
43 #symbolic_link="echo ln -s"
45 # clear some things potentially inherited from environment.
48 Makefile_in
=Makefile.
in
51 cache_file
=config.cache
58 enable_libstdcxx_v3
=yes
62 floating_point
=default
71 package_makefile_frag
=
72 package_makefile_rules_frag
=
79 program_transform_name
=
80 program_transform_nameoption
=
92 bindir
='${exec_prefix}/bin'
93 sbindir
='${exec_prefix}/sbin'
94 libexecdir
='${exec_prefix}/libexec'
95 datadir
='${prefix}/share'
96 sysconfdir
='${prefix}/etc'
97 sharedstatedir
='${prefix}/com'
98 localstatedir
='${prefix}/var'
99 libdir
='${exec_prefix}/lib'
100 includedir
='${prefix}/include'
101 oldincludedir
='/usr/include'
102 infodir
='${prefix}/info'
103 mandir
='${prefix}/man'
105 ### we might need to use some other shell than /bin/sh for running subshells
107 ### If we are on Windows, search for the shell. This will permit people
108 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
109 ### without also having to set CONFIG_SHELL. This code will work when
110 ### using bash, which sets OSTYPE.
113 if [ x
${CONFIG_SHELL} = x
]; then
114 if [ ! -f /bin
/sh
]; then
115 if [ x
${SHELL} != x
] && [ -f ${SHELL} ]; then
116 CONFIG_SHELL
=${SHELL}
119 for prog
in sh sh.exe bash bash.exe
; do
120 IFS
="${IFS= }"; save_ifs
="$IFS"; IFS
="${IFS}:"
122 test -z "$dir" && dir
=.
123 if test -f $dir/$prog; then
124 CONFIG_SHELL
=$dir/$prog
130 test -n "${CONFIG_SHELL}" && break
138 config_shell
=${CONFIG_SHELL-/bin/sh}
140 NO_EDIT
="This file was generated automatically by configure. Do not edit."
142 ## this is a little touchy and won't always work, but...
144 ## if the argv[0] starts with a slash then it is an absolute name that can (and
145 ## must) be used as is.
147 ## otherwise, if argv[0] has no slash in it, we can assume that it is on the
148 ## path. Since PATH might include "." we also add `pwd` to the end of PATH.
152 # if PWD already has a value, it is probably wrong.
153 if [ -n "$PWD" ]; then PWD
=`${PWDCMD-pwd}`; fi
155 case "${progname}" in
156 /* |
[A-Za-z
]:[\\/]* ) ;;
159 PATH
=$PATH:${PWD=`${PWDCMD-pwd}`} ; export PATH
163 # Export original configure arguments for use by sub-configures.
164 TOPLEVEL_CONFIGURE_ARGUMENTS
="$progname $@"
165 export TOPLEVEL_CONFIGURE_ARGUMENTS
172 # Break out if there are no more args
179 # Get the first arg, and shuffle
183 # Make all options have two hyphens
184 orig_option
=$option # Save original for error messages
187 -*) option
=-$option ;;
190 # Split out the argument for options that take them
193 optarg
=`echo $option | sed -e 's/^[^=]*=//'`
194 arguments
="$arguments $option"
196 # These options have mandatory values. Since we didn't find an = sign,
197 # the value must be in the next argument
198 --bu* |
--cache* |
--ex* |
--ho* |
--pre* |
--program-p* |
--program-s* |
--program-t* |
--si* |
--sr* |
--ta* |
--tm* |
--x-* |
--bi* |
--sb* |
--li* |
--da* |
--sy* |
--sh* |
--lo* |
--in* |
--ol* |
--ma*)
201 arguments
="$arguments $option=$optarg"
204 arguments
="$arguments -v"
207 arguments
="$arguments $option"
211 # Now, process the options
216 diroptions
="$diroptions --bindir=$optarg"
219 case "$build_alias" in
220 "") build_alias
=$optarg ;;
221 *) echo '***' Can only configure
for one build machine
at a
time.
1>&2
231 diroptions
="$diroptions --datadir=$optarg"
234 enableopt
=`echo ${option} | sed 's:^--disable-:enable_:;s:-:_:g'`
236 disableoptions
="$disableoptions $option"
244 enableopt
=`echo ${option} | sed 's:^--::;s:=.*$::;s:-:_:g'`
245 eval "$enableopt=\$optarg"
246 enableoptions
="$enableoptions '$option'"
248 --exec-prefix* |
--ex*)
250 exec_prefixoption
="--exec-prefix=$optarg"
260 NOHOST
) host_alias
=$optarg ;;
261 *) echo '***' Can only configure
for one
host at a
time.
1>&2
268 diroptions
="$diroptions --includedir=$optarg"
272 diroptions
="$diroptions --infodir=$optarg"
276 diroptions
="$diroptions --libdir=$optarg"
280 diroptions
="$diroptions --libexecdir=$optarg"
283 localstatedir
=$optarg
284 diroptions
="$diroptions --localstatedir=$optarg"
288 diroptions
="$diroptions --mandir=$optarg"
292 floating_pointoption
="--nfp"
294 --norecursion |
--no*)
298 oldincludedir
=$optarg
299 diroptions
="$diroptions --oldincludedir=$optarg"
303 prefixoption
="--prefix=$optarg"
305 --program-prefix* |
--program-p*)
306 program_prefix
=$optarg
307 program_prefixoption
="--program-prefix=$optarg"
309 --program-suffix* |
--program-s*)
310 program_suffix
=$optarg
311 program_suffixoption
="--program-suffix=$optarg"
313 --program-transform-name* |
--program-t*)
314 # Double any backslashes or dollar signs in the argument
315 program_transform_name
="${program_transform_name} -e `echo ${optarg} | sed -e 's/\\\\/\\\\\\\\/g' -e 's/\\\$/$$/g'`"
316 program_transform_nameoption
="${program_transform_nameoption} --program-transform-name='$optarg'"
320 diroptions
="$diroptions --sbindir=$optarg"
323 sharedstatedir
=$optarg
324 diroptions
="$diroptions --sharedstatedir=$optarg"
326 --silent |
--sil* |
--quiet |
--q*)
327 redirect
=">/dev/null"
332 site_option
="--site=$optarg"
335 # Remove trailing slashes. Otherwise, when the file name gets
336 # bolted into an object file as debug info, it has two slashes
337 # in it. Ordinarily this is ok, but emacs takes double slash
338 # to mean "forget the first part".
339 srcdir
=`echo $optarg | sed -e 's:/$::'`
346 diroptions
="$diroptions --sysconfdir=$optarg"
349 case $target_alias in
350 NOTARGET
) target_alias
=$optarg ;;
351 *) echo '***' Can only configure
for one target
at a
time.
1>&2
358 tmpdiroption
="--tmpdir=$optarg"
360 --verbose |
--v |
--verb*)
364 --version |
--V |
--vers*)
365 echo "This is Cygnus Configure version" `echo ${version} | sed 's/[ $:]//g'`
374 withopt
=`echo ${option} | sed 's:^--::;s:=.*$::;s:-:_:g'`
375 eval $withopt="\$optarg"
376 withoptions
="$withoptions $option"
379 withopt
=`echo ${option} | sed 's:^--::;s:out::;s:-:_:g'`
381 withoutoptions
="$withoutoptions $option"
384 withoptions
="$withoptions --with-x"
386 --x-i* |
--x-l*) other_options
="$other_options $orig_option"
389 echo "configure: Unrecognized option: \"$orig_option\"; use --help for usage." >&2
394 NOUNDEFS
) undefs
=$option ;;
395 *) echo '***' Can only configure
for one
host and one target
at a
time.
1>&2
403 # process host and target
405 # Do some error checking and defaulting for the host and target type.
407 # configure --host=HOST --target=TARGET UNDEFS
410 # 1. You aren't allowed to specify --host, --target, and undefs at the
412 # 2. Host defaults to undefs.
413 # 3. If undefs is not specified, then host defaults to the current host,
414 # as determined by config.guess.
415 # 4. Target defaults to undefs.
416 # 5. If undefs is not specified, then target defaults to host.
420 # Make sure that host, target & undefs aren't all specified at the
422 case $host_alias---$target_alias---$undefs in
423 NOHOST---
*---* |
*---NOTARGET---* |
*---*---NOUNDEFS)
425 *) echo '***' Can only configure
for one
host and one target
at a
time.
1>&2
431 # Now, do defaulting for host.
436 # Neither --host option nor undefs were present.
438 guesssys
=`echo ${progname} | sed 's/configure$/config.guess/'`
439 if host_alias
=`${config_shell} ${guesssys}`
441 # If the string we are going to use for
442 # the target is a prefix of the string
443 # we just guessed for the host, then
444 # assume we are running native, and force
445 # the same string for both target and host.
446 case $target_alias in
449 if expr $host_alias : $target_alias >/dev
/null
451 host_alias
=$target_alias
455 echo "Configuring for a ${host_alias} host."
456 arguments
="--host=$host_alias $arguments"
458 echo 'Config.guess failed to determine the host type. You need to specify one.' 1>&2
464 arguments
="--host=$host_alias $arguments"
470 # Do defaulting for target. If --target option isn't present, default
471 # to undefs. If undefs isn't present, default to host.
472 case $target_alias in
476 target_alias
=$host_alias
480 arguments
="--target=$target_alias $arguments"
488 if [ -n "${fatal}" -o "${host_alias}" = "help" ] ; then
490 echo Usage
: configure
[OPTIONS
] [HOST
]
492 echo Options
: [defaults
in brackets
]
493 echo ' --prefix=MYDIR install into MYDIR [/usr/local]'
494 echo ' --exec-prefix=MYDIR install host-dependent files into MYDIR [/usr/local]'
495 echo ' --help print this message [normal config]'
496 echo ' --build=BUILD configure for building on BUILD [BUILD=HOST]'
497 echo ' --host=HOST configure for HOST [determined via config.guess]'
498 echo ' --norecursion configure this directory only [recurse]'
499 echo ' --program-prefix=FOO prepend FOO to installed program names [""]'
500 echo ' --program-suffix=FOO append FOO to installed program names [""]'
501 echo ' --program-transform-name=P transform installed names by sed pattern P [""]'
502 echo ' --site=SITE configure with site-specific makefile for SITE'
503 echo ' --srcdir=DIR find the sources in DIR [. or ..]'
504 echo ' --target=TARGET configure for TARGET [TARGET=HOST]'
505 echo ' --tmpdir=TMPDIR create temporary files in TMPDIR [/tmp]'
506 echo ' --nfp configure for software floating point [hard float]'
507 echo ' --with-FOO, --with-FOO=BAR package FOO is available (parameter BAR)'
508 echo ' --without-FOO package FOO is NOT available'
509 echo ' --enable-FOO, --enable-FOO=BAR include feature FOO (parameter BAR)'
510 echo ' --disable-FOO do not include feature FOO'
512 echo 'Where HOST and TARGET are something like "sparc-sunos", "mips-sgi-irix5", etc.'
514 if [ -r config.status
] ; then
521 configsub
=`echo ${progname} | sed 's/configure$/config.sub/'`
522 moveifchange
=`echo ${progname} | sed 's/configure$/move-if-change/'`
523 ## the sed command below emulates the dirname command
524 topsrcdir
=`cd \`echo ${progname} |
sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'\
`; ${PWDCMD-pwd}`
527 # this is a hack. sun4 must always be a valid host alias or this will fail.
528 if ${config_shell} ${configsub} sun4
>/dev
/null
2>&1 ; then
531 echo '***' cannot
find config.sub.
1>&2
536 if ${config_shell} ${moveifchange} config.junk config.trash
; then
539 echo '***' cannot
find move-if-change.
1>&2
542 rm -f config.junk config.trash
546 if [ -r configure.
in ] ; then
549 if [ -r ${progname}.
in ] ; then
550 srcdir
=`echo ${progname} | sed 's:/configure$::'`
552 echo '***' "Can't find configure.in. Try using --srcdir=some_dir" 1>&2
558 # Set srcdir to "." if that's what it is.
559 # This is important for multilib support.
560 if [ ! -d ${srcdir} ] ; then
561 echo "Invalid source directory ${srcdir}" >&2
565 srcpwd
=`cd ${srcdir} ; ${PWDCMD-pwd}`
566 if [ "${pwd}" = "${srcpwd}" ] ; then
571 ### warn about some conflicting configurations.
576 if [ -f ${srcdir}/config.status
] ; then
577 echo '***' Cannot configure here
in \"${PWD=`${PWDCMD-pwd}`}\" when
\"${srcdir}\" is currently configured.
1>&2
582 # default exec_prefix
583 case "${exec_prefixoption}" in
584 "") exec_prefix
="\$(prefix)" ;;
588 # Define the trigger file to make sure configure will re-run whenever
589 # the gcc version number changes.
590 if [ "${with_gcc_version_trigger+set}" = set ]; then
591 gcc_version_trigger
="$with_gcc_version_trigger"
592 gcc_version
=`grep version_string ${with_gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
594 # If gcc's sources are available, define the trigger file.
595 if [ -f ${topsrcdir}/gcc
/version.c
] ; then
596 gcc_version_trigger
=${topsrcdir}/gcc
/version.c
597 gcc_version
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
599 *--with-gcc-version-trigger=$gcc_version_trigger* )
602 # Make sure configure.in knows about this.
603 arguments
="--with-gcc-version-trigger=$gcc_version_trigger $arguments"
606 withoptions
="--with-gcc-version-trigger=$gcc_version_trigger $withoptions"
610 ### break up ${srcdir}/configure.in.
611 case "`grep '^# per\-host:' ${srcdir}/configure.in`" in
613 echo '***' ${srcdir}/configure.
in has no
\"per-host
:\" line.
1>&2
614 # Check for a directory that's been converted to use autoconf since
615 # it was last configured.
616 if grep AC_OUTPUT
${srcdir}/configure.
in >/dev
/null
; then
617 echo '***' Hmm
, looks like this directory has been autoconfiscated.
1>&2
618 if [ -r ${srcdir}/configure
] ; then
619 echo '***' Running the
local configure
script.
1>&2
620 case "${cache_file}" in
621 "") cache_file_option
= ;;
622 *) cache_file_option
="--cache-file=${cache_file}" ;;
624 srcdiroption
="--srcdir=${srcdir}"
625 case "${build_alias}" in
627 *) buildopt
="--build=${build_alias}" ;;
629 eval exec ${config_shell} ${srcdir}/configure ${verbose} \
630 ${buildopt} --host=${host_alias} --target=${target_alias} \
631 ${prefixoption} ${tmpdiroption} ${exec_prefixoption} \
632 ${srcdiroption} ${diroptions} \
633 ${program_prefixoption} ${program_suffixoption} \
634 ${program_transform_nameoption} ${site_option} \
635 ${withoptions} ${withoutoptions} \
636 ${enableoptions} ${disableoptions} ${floating_pointoption} \
637 ${cache_file_option} ${other_options} ${redirect}
639 echo '***' There is no configure
script present though.
1>&2
647 case "`grep '^# per\-target:' ${srcdir}/configure.in`" in
649 echo '***' ${srcdir}/configure.
in has no
\"per-target
:\" line.
1>&2
656 "") TMPDIR
=/tmp
; export TMPDIR
;;
660 # keep this filename short for &%*%$*# 14 char file names and 8+3 file names
661 tmpdir
=${TMPDIR}/cNf$$
662 mkdir
${tmpdir} ||
exit 1
663 tmpfile
=${tmpdir}/cNf$$
664 # Note that under many versions of sh a trap handler for 0 will *override* any
665 # exit status you explicitly specify! At this point, the only non-error exit
666 # is at the end of the script; these actions are duplicated there, minus
667 # the "exit 1". Don't use "exit 0" anywhere after this without resetting the
668 # trap handler, or you'll lose.
669 trap "rm -rf Makefile.tem ${tmpdir}; exit 1" 0 1 2 15
671 # split ${srcdir}/configure.in into common, per-host, per-target,
672 # and post-target parts. Post-target is optional.
673 sed -e '/^# per\-host:/,$d' ${srcdir}/configure.
in > ${tmpfile}.com
674 sed -e '1,/^# per\-host:/d' -e '/^# per\-target:/,$d' ${srcdir}/configure.
in > ${tmpfile}.hst
675 if grep '^# post-target:' ${srcdir}/configure.
in >/dev
/null
; then
676 sed -e '1,/^# per\-target:/d' -e '/^# post\-target:/,$d' ${srcdir}/configure.
in > ${tmpfile}.tgt
677 sed -e '1,/^# post\-target:/d' ${srcdir}/configure.
in > ${tmpfile}.pos
679 sed -e '1,/^# per\-target:/d' ${srcdir}/configure.
in > ${tmpfile}.tgt
683 ### do common part of configure.in
685 # If the language specific compiler does not exist, but the "gcc" directory does,
686 # we will skip this directory; in this case the sub-directory's common part
687 # of configure.in will create a small shell script "skip-this-dir" containing
688 # commands to completely clean up any temporary or created files.
692 if test -f skip-this-dir
; then
693 # Perform the same cleanup as the trap handler, minus the "exit 1" of course,
694 # and reset the trap handler.
696 rm -rf Makefile
* ${tmpdir}
697 # Execute the final clean-up actions
698 ${config_shell} skip-this-dir
699 # and stop configuring this directory.
703 # some sanity checks on configure.in
704 case "${srctrigger}" in
706 echo '***' srctrigger not
set in ${PWD=`${PWDCMD-pwd}`}/configure.
in.
1>&2
712 case "${build_alias}" in
714 if result
=`${config_shell} ${configsub} ${host_alias}` ; then
715 build_cpu
=`echo $result | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
716 build_vendor
=`echo $result | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
717 build_os
=`echo $result | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
718 build
=${build_cpu}-${build_vendor}-${build_os}
719 build_alias
=${host_alias}
723 if result
=`${config_shell} ${configsub} ${build_alias}` ; then
724 buildopt
="--build=${build_alias}"
725 build_cpu
=`echo $result | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
726 build_vendor
=`echo $result | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
727 build_os
=`echo $result | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
728 build
=${build_cpu}-${build_vendor}-${build_os}
730 echo "Unrecognized build system name ${build_alias}." 1>&2
736 if result
=`${config_shell} ${configsub} ${host_alias}` ; then
739 echo "Unrecognized host system name ${host_alias}." 1>&2
742 host_cpu
=`echo $result | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
743 host_vendor
=`echo $result | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
744 host_os
=`echo $result | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
745 host=${host_cpu}-${host_vendor}-${host_os}
749 if result
=`${config_shell} ${configsub} ${target_alias}` ; then
752 echo "Unrecognized target system name ${target_alias}." 1>&2
755 target_cpu
=`echo $result | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
756 target_vendor
=`echo $result | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
757 target_os
=`echo $result | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
758 target
=${target_cpu}-${target_vendor}-${target_os}
762 # Find the source files, if location was not specified.
767 if [ ! -r ${srctrigger} ] ; then
774 if [ ! -r ${srcdir}/${srctrigger} ] ; then
775 case "${srcdirdefaulted}" in
776 "") echo '***' "${progname}: Can't find ${srcname} sources in ${PWD=`${PWDCMD-pwd}`}/${srcdir}" 1>&2 ;;
777 *) echo '***' "${progname}: Can't find ${srcname} sources in ${PWD=`${PWDCMD-pwd}`}/. or ${PWD=`${PWDCMD-pwd}`}/.." 1>&2 ;;
780 echo '***' \
(At least
${srctrigger} is missing.\
) 1>&2
784 # Some systems (e.g., one of the i386-aix systems the gas testers are
785 # using) don't handle "\$" correctly, so don't use it here.
786 tooldir
='$(exec_prefix)'/${target_alias}
788 if [ "${host_alias}" != "${target_alias}" ] ; then
789 if [ "${program_prefixoption}" = "" ] ; then
790 if [ "${program_suffixoption}" = "" ] ; then
791 if [ "${program_transform_nameoption}" = "" ] ; then
792 program_prefix
=${target_alias}- ;
798 # Merge program_prefix and program_suffix onto program_transform_name.
799 # (program_suffix used to use $, but it's hard to preserve $ through both
801 if [ "${program_suffix}" != "" ] ; then
802 program_transform_name
="-e s,\\\\(.*\\\\),\\\\1${program_suffix}, ${program_transform_name}"
805 if [ "${program_prefix}" != "" ] ; then
806 program_transform_name
="-e s,^,${program_prefix}, ${program_transform_name}"
809 # If CC and CXX are not set in the environment, and the Makefile
810 # exists, try to extract them from it. This is to handle running
811 # ./config.status by hand.
812 if [ -z "${CC}" ] && [ -r Makefile
]; then
817 /^CC[ ]*=/ s/CC[ ]*=[ ]*\(.*\)/\1/p' < Makefile
> Makefile.cc
818 CC
=`tail -1 Makefile.cc`
822 if [ -z "${CFLAGS}" ] && [ -r Makefile
]; then
827 /^CFLAGS[ ]*=/ s/CFLAGS[ ]*=[ ]*\(.*\)/\1/p' < Makefile
> Makefile.cc
828 CFLAGS
=`tail -1 Makefile.cc`
832 if [ -z "${CXX}" ] && [ -r Makefile
]; then
837 /^CXX[ ]*=/ s/CXX[ ]*=[ ]*\(.*\)/\1/p' < Makefile
> Makefile.cc
838 CXX
=`tail -1 Makefile.cc`
842 if [ -z "${CXXFLAGS}" ] && [ -r Makefile
]; then
847 /^CXXFLAGS[ ]*=/ s/CXXFLAGS[ ]*=[ ]*\(.*\)/\1/p' < Makefile
> Makefile.cc
848 CXXFLAGS
=`tail -1 Makefile.cc`
852 # Generate a default definition for YACC. This is used if the makefile can't
853 # locate bison or byacc in objdir.
855 for prog
in 'bison -y' byacc
yacc
857 set dummy
$prog; tmp
=$2
858 IFS
="${IFS= }"; save_ifs
="$IFS"; IFS
="${IFS}:"
860 test -z "$dir" && dir
=.
861 if test -f $dir/$tmp; then
868 test -n "$DEFAULT_YACC" && break
871 # Generate a default definition for M4. This is used if the makefile can't
872 # locate m4 in objdir.
874 for prog
in gm4 gnum4
m4
876 set dummy
$prog; tmp
=$2
877 IFS
="${IFS= }"; save_ifs
="$IFS"; IFS
="${IFS}:"
879 test -z "$dir" && dir
=.
880 if test -f $dir/$tmp; then
887 test -n "$DEFAULT_M4" && break
890 # Generate a default definition for LEX. This is used if the makefile can't
891 # locate flex in objdir.
895 set dummy
$prog; tmp
=$2
896 IFS
="${IFS= }"; save_ifs
="$IFS"; IFS
="${IFS}:"
898 test -z "$dir" && dir
=.
899 if test -f $dir/$tmp; then
906 test -n "$DEFAULT_LEX" && break
910 if [ "${build}" != "${host}" ]; then
911 # If we are doing a Canadian Cross, in which the host and build systems
912 # are not the same, we set reasonable default values for the tools.
913 tools
="AR AR_FOR_TARGET AS AS_FOR_TARGET BISON CC_FOR_BUILD"
914 tools
="${tools} CC_FOR_TARGET CXX_FOR_TARGET GCJ_FOR_TARGET"
915 tools
="${tools} DLLTOOL DLLTOOL_FOR_TARGET GCC_FOR_TARGET BUILD_PREFIX"
916 tools
="${tools} BUILD_PREFIX_1 LD LD_FOR_TARGET LEX MAKEINFO NM"
917 tools
="${tools} NM_FOR_TARGET RANLIB RANLIB_FOR_TARGET"
918 tools
="${tools} WINDRES WINDRES_FOR_TARGET YACC"
919 tools
="${tools} OBJCOPY OBJDUMP"
921 for var
in ${tools}; do
922 if eval [ -z \"\$
${var}\" ] && [ -r Makefile
]; then
927 /^'"${var}"'[ ]*=/ s/'"${var}"'[ ]*=[ ]*\(.*\)/\1/p' \
928 < Makefile
> Makefile.v
929 t
=`tail -1 Makefile.v`
930 if [ -n "${t}" ]; then
937 AR
=${AR-${host_alias}-ar}
938 AR_FOR_TARGET
=${AR_FOR_TARGET-${target_alias}-ar}
939 AR_FOR_TARGET
=${AR_FOR_TARGET}${extra_arflags_for_target}
940 AS
=${AS-${host_alias}-as}
941 AS_FOR_TARGET
=${AS_FOR_TARGET-${target_alias}-as}
943 CC
=${CC-${host_alias}-gcc}
944 CFLAGS
=${CFLAGS-"-g -O2"}
945 CXX
=${CXX-${host_alias}-c++}
946 CXXFLAGS
=${CXXFLAGS-"-g -O2"}
947 CC_FOR_BUILD
=${CC_FOR_BUILD-gcc}
948 CC_FOR_TARGET
=${CC_FOR_TARGET-${target_alias}-gcc}
949 CXX_FOR_TARGET
=${CXX_FOR_TARGET-${target_alias}-c++}
950 GCJ_FOR_TARGET
=${GCJ_FOR_TARGET-${target_alias}-gcj}
951 DLLTOOL
=${DLLTOOL-${host_alias}-dlltool}
952 DLLTOOL_FOR_TARGET
=${DLLTOOL_FOR_TARGET-${target_alias}-dlltool}
953 GCC_FOR_TARGET
=${GCC_FOR_TARGET-${CC_FOR_TARGET-${target_alias}-gcc}}
954 BUILD_PREFIX
=${build_alias}-
955 BUILD_PREFIX_1
=${build_alias}-
956 LD
=${LD-${host_alias}-ld}
957 LD_FOR_TARGET
=${LD_FOR_TARGET-${target_alias}-ld}
958 MAKEINFO
=${MAKEINFO-makeinfo}
959 NM
=${NM-${host_alias}-nm}
960 NM_FOR_TARGET
=${NM_FOR_TARGET-${target_alias}-nm}
961 NM_FOR_TARGET
=${NM_FOR_TARGET}${extra_nmflags_for_target}
962 RANLIB
=${RANLIB-${host_alias}-ranlib}
963 RANLIB_FOR_TARGET
=${RANLIB_FOR_TARGET-${target_alias}-ranlib}
964 WINDRES
=${WINDRES-${host_alias}-windres}
965 WINDRES_FOR_TARGET
=${WINDRES_FOR_TARGET-${target_alias}-windres}
966 OBJCOPY
=${OBJCOPY-${host_alias}-objcopy}
967 OBJDUMP
=${OBJDUMP-${host_alias}-objdump}
969 if [ -z "${YACC}" ]; then
970 IFS
="${IFS= }"; save_ifs
="$IFS"; IFS
="${IFS}:"
972 test -z "$dir" && dir
=.
973 if test -f $dir/bison
; then
977 if test -f $dir/byacc
; then
981 if test -f $dir/yacc; then
987 if [ -z "${YACC}" ]; then
992 if [ -z "${LEX}" ]; then
993 IFS
="${IFS= }"; save_ifs
="$IFS"; IFS
="${IFS}:"
995 test -z "$dir" && dir
=.
996 if test -f $dir/flex
; then
1000 if test -f $dir/lex; then
1009 # Export variables which autoconf might try to set.
1021 # Set reasonable default values for some tools even if not Canadian.
1022 # Of course, these are different reasonable default values, originally
1023 # specified directly in the Makefile.
1024 # We don't export, so that autoconf can do its job.
1025 # Note that all these settings are above the fragment inclusion point
1026 # in Makefile.in, so can still be overridden by fragments.
1027 # This is all going to change when we autoconfiscate...
1029 tools
="AR AR_FOR_TARGET AS AS_FOR_TARGET BISON CC_FOR_BUILD"
1030 tools
="${tools} DLLTOOL DLLTOOL_FOR_TARGET GCC_FOR_TARGET BUILD_PREFIX"
1031 tools
="${tools} BUILD_PREFIX_1 LD LD_FOR_TARGET LEX MAKEINFO NM"
1032 tools
="${tools} NM_FOR_TARGET RANLIB_FOR_TARGET"
1033 tools
="${tools} WINDRES WINDRES_FOR_TARGET YACC"
1036 AR_FOR_TARGET
='\$(USUAL_AR_FOR_TARGET)'
1037 AR_FOR_TARGET
=${AR_FOR_TARGET}${extra_arflags_for_target}
1039 AS_FOR_TARGET
='\$(USUAL_AS_FOR_TARGET)'
1040 BISON
='$(USUAL_BISON)'
1041 CC_FOR_BUILD
='\$(CC)'
1043 DLLTOOL_FOR_TARGET
='\$(USUAL_DLLTOOL_FOR_TARGET)'
1044 GCC_FOR_TARGET
='\$(USUAL_GCC_FOR_TARGET)'
1046 BUILD_PREFIX_1
=loser-
1048 LD_FOR_TARGET
='\$(USUAL_LD_FOR_TARGET)'
1049 MAKEINFO
='\$(USUAL_MAKEINFO)'
1051 NM_FOR_TARGET
='\$(USUAL_NM_FOR_TARGET)'
1052 NM_FOR_TARGET
=${NM_FOR_TARGET}${extra_nmflags_for_target}
1053 RANLIB_FOR_TARGET
='\$(USUAL_RANLIB_FOR_TARGET)'
1055 WINDRES_FOR_TARGET
='\$(USUAL_WINDRES_FOR_TARGET)'
1057 YACC
='\$(USUAL_YACC)'
1059 # If CC is still not set, try to get gcc.
1060 if [ -z "${CC}" ]; then
1061 IFS
="${IFS= }"; save_ifs
="$IFS"; IFS
="${IFS}:"
1062 for dir
in $PATH; do
1063 test -z "$dir" && dir
=.
1064 if test -f $dir/gcc
; then
1066 echo 'void f(){}' > conftest.c
1067 if test -z "`${CC} -g -c conftest.c 2>&1`"; then
1068 CFLAGS
=${CFLAGS-"-g -O2"}
1069 CXXFLAGS
=${CXXFLAGS-"-g -O2"}
1071 CFLAGS
=${CFLAGS-"-O2"}
1072 CXXFLAGS
=${CXXFLAGS-"-O2"}
1081 if test -z "${CFLAGS}"; then
1082 # Here CC is set but CFLAGS is not. Use a quick hack to use -O2 if CC
1083 # is set to a version of gcc.
1086 echo 'void f(){}' > conftest.c
1087 if test -z "`${CC} -g -c conftest.c 2>&1`"; then
1088 CFLAGS
=${CFLAGS-"-g -O2"}
1089 CXXFLAGS
=${CXXFLAGS-"-g -O2"}
1091 CFLAGS
=${CFLAGS-"-O2"}
1092 CXXFLAGS
=${CXXFLAGS-"-O2"}
1101 CFLAGS
=${CFLAGS-"-g"}
1102 CXXFLAGS
=${CXXFLAGS-"-g -O2"}
1111 if test x
"${build_alias}" != x
"${host_alias}"
1113 all_build_modules
='$(ALL_BUILD_MODULES_LIST)'
1116 # FIXME Should this be done recursively ??? (Useful for e.g. gdbtest)
1117 # Set up the list of links to be made.
1118 # ${links} is the list of link names, and ${files} is the list of names to link to.
1121 configlinks
="${links}"
1122 if [ -r .
/config.status
] ; then
1123 mv -f .
/config.status .
/config.back
1125 while [ -n "${files}" ] ; do
1126 # set file to car of files, files to cdr of files
1127 set ${files}; file=$1; shift; files
=$
*
1128 set ${links}; link
=$1; shift; links
=$
*
1130 if [ ! -r ${srcdir}/${file} ] ; then
1131 if [ ! -r ${file} ] ; then
1132 echo '***' "${progname}: cannot create a link \"${link}\"," 1>&2
1133 echo '***' "since the file \"${srcdir}/${file}\" does not exist." 1>&2
1139 srcfile
=${srcdir}/${file}
1142 ${remove} -f ${link}
1143 # Make a symlink if possible, otherwise try a hard link
1144 if ${symbolic_link} ${srcfile} ${link} >/dev
/null
2>&1 ; then
1147 # We need to re-remove the file because Lynx leaves a
1148 # very strange directory there when it fails an NFS symlink.
1149 ${remove} -r -f ${link}
1150 ${hard_link} ${srcfile} ${link}
1152 if [ ! -r ${link} ] ; then
1153 echo '***' "${progname}: unable to link \"${link}\" to \"${srcfile}\"." 1>&2
1157 echo "Linked \"${link}\" to \"${srcfile}\"."
1160 # Create a .gdbinit file which runs the one in srcdir
1161 # and tells GDB to look there for source files.
1163 if [ -r ${srcdir}/.gdbinit
] ; then
1166 *) cat > .
/.gdbinit
<<EOF
1170 source ${srcdir}/.gdbinit
1176 # Install a makefile, and make it set VPATH
1177 # if necessary so that the sources are found.
1178 # Also change its value of srcdir.
1179 # NOTE: Makefile generation constitutes the majority of the time in configure. Hence, this section has
1180 # been somewhat optimized and is perhaps a bit twisty.
1182 # code is order so as to try to sed the smallest input files we know.
1183 # so do these separately because I don't trust the order of sed -e expressions.
1185 # the five makefile fragments MUST end up in the resulting Makefile in this order:
1186 # package macros, target, host, site, and package rules.
1188 if [ -f ${srcdir}/${Makefile_in} ] ; then
1190 # Conditionalize the makefile for this package from "Makefile.in" (or whatever it's called) into Makefile.tem.
1191 rm -f .
/${Makefile}.tem
1192 case "${package_makefile_rules_frag}" in
1193 "") cp ${srcdir}/${Makefile_in} .
/Makefile.tem
;;
1195 if [ ! -f ${package_makefile_rules_frag} ] ; then
1196 package_makefile_rules_frag
=${srcdir}/${package_makefile_rules_frag}
1198 if [ -f ${package_makefile_rules_frag} ] ; then
1199 sed -e "/^####/ r ${package_makefile_rules_frag}" ${srcdir}/${Makefile_in} > ${Makefile}.tem
1201 echo '***' Expected package makefile rules fragment \"${package_makefile_rules_frag}\" 1>&2
1202 echo '***' is missing in ${PWD=`${PWDCMD-pwd}`}. 1>&2
1203 cp ${srcdir}/${Makefile_in} ./Makefile.tem
1206 # working copy now in ${Makefile}.tem
1208 # Conditionalize for this site.
1211 "") mv ./Makefile.tem ${Makefile} ;;
1213 site_makefile_frag=${srcdir}/config/ms-${site}
1215 if [ -f ${site_makefile_frag} ] ; then
1216 sed -e "/^
####/ r ${site_makefile_frag}" ./Makefile.tem > ${Makefile}
1218 mv .
/Makefile.tem
${Makefile}
1223 # working copy now in ${Makefile}
1225 # Conditionalize the makefile for this host.
1226 rm -f .
/Makefile.tem
1227 case "${host_makefile_frag}" in
1228 "") mv ${Makefile} .
/Makefile.tem
;;
1230 if [ ! -f ${host_makefile_frag} ] ; then
1231 host_makefile_frag
=${srcdir}/${host_makefile_frag}
1233 if [ -f ${host_makefile_frag} ] ; then
1234 sed -e "/^####/ r ${host_makefile_frag}" ${Makefile} > .
/Makefile.tem
1236 echo '***' Expected
host makefile fragment
\"${host_makefile_frag}\" 1>&2
1237 echo '***' is missing
in ${PWD=`${PWDCMD-pwd}`}.
1>&2
1238 mv ${Makefile} .
/Makefile.tem
1241 # working copy now in ./Makefile.tem
1243 # Conditionalize the makefile for this target.
1245 case "${target_makefile_frag}" in
1246 "") mv .
/Makefile.tem
${Makefile} ;;
1248 if [ ! -f ${target_makefile_frag} ] ; then
1249 target_makefile_frag
=${srcdir}/${target_makefile_frag}
1251 if [ -f ${target_makefile_frag} ] ; then
1252 sed -e "/^####/ r ${target_makefile_frag}" .
/Makefile.tem
> ${Makefile}
1254 mv .
/Makefile.tem
${Makefile}
1255 target_makefile_frag
=
1259 # working copy now in ${Makefile}
1261 # Emit the default values of this package's macros.
1262 rm -f .
/Makefile.tem
1263 case "${package_makefile_frag}" in
1264 "") mv ${Makefile} .
/Makefile.tem
;;
1266 if [ ! -f ${package_makefile_frag} ] ; then
1267 package_makefile_frag
=${srcdir}/${package_makefile_frag}
1269 if [ -f ${package_makefile_frag} ] ; then
1270 sed -e "/^####/ r ${package_makefile_frag}" ${Makefile} > .
/Makefile.tem
1272 echo '***' Expected package makefile fragment
\"${package_makefile_rules_frag}\" 1>&2
1273 echo '***' is missing
in ${PWD=`${PWDCMD-pwd}`}.
1>&2
1274 mv ${Makefile} .
/Makefile.tem
1277 # real copy now in ./Makefile.tem
1279 # prepend warning about editing, and a bunch of variables.
1281 cat > ${Makefile} <<EOF
1284 links = ${configlinks}
1285 host_alias = ${host_alias}
1286 host_cpu = ${host_cpu}
1287 host_vendor = ${host_vendor}
1288 host_os = ${host_os}
1289 host_canonical = ${host_cpu}-${host_vendor}-${host_os}
1290 target_alias = ${target_alias}
1291 target_cpu = ${target_cpu}
1292 target_vendor = ${target_vendor}
1293 target_os = ${target_os}
1294 target_canonical = ${target_cpu}-${target_vendor}-${target_os}
1298 *) cat >> ${Makefile} << EOF
1299 build_alias = ${build_alias}
1300 build_cpu = ${build_cpu}
1301 build_vendor = ${build_vendor}
1302 build_os = ${build_os}
1303 build_canonical = ${build_cpu}-${build_vendor}-${build_os}
1307 case "${package_makefile_frag}" in
1309 /* |
[A-Za-z
]:[\\/]* ) echo package_makefile_frag
= ${package_makefile_frag} >>${Makefile} ;;
1310 *) echo package_makefile_frag
= ${package_makefile_frag} >>${Makefile} ;;
1313 case "${target_makefile_frag}" in
1315 /* |
[A-Za-z
]:[\\/]* ) echo target_makefile_frag
= ${target_makefile_frag} >>${Makefile} ;;
1316 *) echo target_makefile_frag
= ${target_makefile_frag} >>${Makefile} ;;
1319 case "${host_makefile_frag}" in
1321 /* |
[A-Za-z
]:[\\/]* ) echo host_makefile_frag
= ${host_makefile_frag} >>${Makefile} ;;
1322 *) echo host_makefile_frag
= ${host_makefile_frag} >>${Makefile} ;;
1325 if [ "${site_makefile_frag}" != "" ] ; then
1326 echo site_makefile_frag
= ${site_makefile_frag} >>${Makefile}
1329 echo enable_shared
= ${enable_shared} >> ${Makefile}
1330 echo enable_threads
= ${enable_threads} >> ${Makefile}
1331 # record if we want to rumtime library stuff installed in libsubdir.
1332 if test -z "${enable_version_specific_runtime_libs}"; then
1333 echo enable_version_specific_runtime_libs
= no
>> ${Makefile}
1335 echo enable_version_specific_runtime_libs
= ${enable_version_specific_runtime_libs} >> ${Makefile}
1338 # Emit a macro which describes the file containing gcc's
1340 echo gcc_version_trigger
= ${gcc_version_trigger} >> ${Makefile}
1341 # And emit a macro defining gcc's version number.
1342 echo gcc_version
= ${gcc_version} >> ${Makefile}
1344 # reset prefix, exec_prefix, srcdir, SUBDIRS, NONSUBDIRS,
1345 # remove any form feeds.
1346 rm -f .
/Makefile.tm2
1349 s:@configdirs@:${configdirs}:
1351 sed -f $sedtemp .
/Makefile.tem
> .
/Makefile.tm2
1353 rm -f .
/Makefile.tem
1354 mv .
/Makefile.tm2 .
/Makefile.tem
1355 sed -e "s|@prefix@|${prefix}|" \
1356 -e "s|@exec_prefix@|${exec_prefix}|" \
1357 -e "s|@bindir@|${bindir}|" \
1358 -e "s|@sbindir@|${sbindir}|" \
1359 -e "s|@libexecdir@|${libexecdir}|" \
1360 -e "s|@datadir@|${datadir}|" \
1361 -e "s|@sysconfdir@|${sysconfdir}|" \
1362 -e "s|@sharedstatedir@|${sharedstatedir}|" \
1363 -e "s|@localstatedir@|${localstatedir}|" \
1364 -e "s|@libdir@|${libdir}|" \
1365 -e "s|@includedir@|${includedir}|" \
1366 -e "s|@oldincludedir@|${oldincludedir}|" \
1367 -e "s|@infodir@|${infodir}|" \
1368 -e "s|@mandir@|${mandir}|" \
1369 -e "s|@all_build_modules@|${all_build_modules}|" \
1375 s%^CC[ ]*=.*$%CC = ${CC}%
1382 s%^CXX[ ]*=.*$%CXX = ${CXX}%
1389 s%^CFLAGS[ ]*=.*$%CFLAGS = ${CFLAGS}%
1391 -e "/^CXXFLAGS[ ]*=/{
1396 s%^CXXFLAGS[ ]*=.*$%CXXFLAGS = ${CXXFLAGS}%
1398 -e "s|@config_shell@|${config_shell}|" \
1399 -e "s|@srcdir@|${srcdir}|" \
1401 -e "s:@program_transform_name@:${program_transform_name}:" \
1402 -e "s|@tooldir@|${tooldir}|" \
1403 -e "s|@build_tooldir@|${tooldir}|" \
1404 -e "s:@DEFAULT_YACC@:${DEFAULT_YACC}:" \
1405 -e "s:@DEFAULT_LEX@:${DEFAULT_LEX}:" \
1406 -e "s:@DEFAULT_M4@:${DEFAULT_M4}:" \
1407 .
/Makefile.tem
>> ${Makefile}
1408 sed -e "s:@GDB_TK@:${GDB_TK}:" ${Makefile} >${Makefile}.tem
1409 mv -f ${Makefile}.tem ${Makefile}
1411 # If this is a Canadian Cross, preset the values of many more
1413 if [ "${build}" != "${host}" ]; then
1414 for var in ${tools}; do
1416 sed -e "/^
${var}[ ]*=/{
1421 s
%^
${var}[ ]*=.*$%${var} = ${val}%
1422 }" ${Makefile} > ${Makefile}.tem
1423 mv -f ${Makefile}.tem ${Makefile}
1426 # If this is NOT a Canadian Cross, preset the values of some more
1427 # tools. The above line should get merged into this, but this
1428 # substitutes *once* where the above substitutes *globally*; that
1429 # needs to be worked out before the merger. The issue is in Makefile
1430 # fragment elements (ick, yuck, ugh).
1431 if [ "${build}" = "${host}" ]; then
1432 for var in ${tools}; do
1434 sed -e "s
%@
${var}@%${val}%" ${Makefile} > ${Makefile}.tem
1435 mv -f ${Makefile}.tem
${Makefile}
1439 # final copy now in ${Makefile}
1442 echo "No Makefile.in found in ${srcdir}/., unable to configure" 1>&2
1445 rm -f .
/Makefile.tem
1447 case "${host_makefile_frag}" in
1449 *) using
="and \"${host_makefile_frag}\"" ;;
1452 case "${target_makefile_frag}" in
1454 *) using
="${using} and \"${target_makefile_frag}\"" ;;
1457 case "${site_makefile_frag}" in
1459 *) using
="${using} and \"${site_makefile_frag}\"" ;;
1462 newusing
=`echo "${using}" | sed 's/and/using/'`
1464 echo "Created \"${Makefile}\" in" ${PWD=`${PWDCMD-pwd}`} ${using}
1468 # describe the chosen configuration in config.status.
1469 # Make that file a shellscript which will reestablish
1470 # the same configuration. Used in Makefiles to rebuild
1473 case "${norecursion}" in
1474 "") arguments="${arguments} --norecursion" ;;
1480 # This directory was configured as follows:
1481 ${progname}" ${arguments} "
1482 # ${using}" > ./config.new
1483 chmod a
+x .
/config.new
1484 if [ -r .
/config.back
] ; then
1485 mv -f .
/config.back .
/config.status
1487 ${config_shell} ${moveifchange} .
/config.new .
/config.status
1489 # If there are subdirectories, then recur.
1490 if [ -z "${norecursion}" ] && [ -n "${configdirs}" ] ; then
1491 for configdir
in ${configdirs} ${extraconfigdirs} ; do
1493 # If configdir contains ',' it is
1494 # srcdir,builddir,target_alias
1495 # These come from extraconfigdirs.
1496 case ${configdir} in
1498 eval `echo ${configdir} | sed -e 's/\([^,]*\),\([^,]*\),\(.*\)/cfg_dir=\1 bld_dir=\2 tgt_alias=\3/'`
1501 cfg_dir
=${configdir}
1502 bld_dir
=${configdir}
1503 tgt_alias
=${target_alias}
1507 if [ -d ${srcdir}/${cfg_dir} ] ; then
1508 eval echo Configuring
${configdir}...
${redirect}
1512 if [ ! -d .
/${bld_dir} ] ; then
1513 if mkdir .
/${bld_dir} ; then
1516 echo '***' "${progname}: could not make ${PWD=`${PWDCMD-pwd}`}/${bld_dir}" 1>&2
1523 POPDIR
=${PWD=`${PWDCMD-pwd}`}
1526 ### figure out what to do with srcdir
1528 ".") newsrcdir
=${srcdir} ;; # no -srcdir option. We're building in place.
1529 /* |
[A-Za-z
]:[\\/]* ) # absolute path
1530 newsrcdir
=${srcdir}/${cfg_dir}
1531 srcdiroption
="--srcdir=${newsrcdir}"
1533 *) # otherwise relative
1534 newsrcdir
=..
/${srcdir}/${cfg_dir}
1535 srcdiroption
="--srcdir=${newsrcdir}"
1539 # Handle --cache-file=../XXX
1540 case "${cache_file}" in
1543 /* |
[A-Za-z
]:[\\/]* ) # absolute path
1544 cache_file_option
="--cache-file=${cache_file}"
1547 cache_file_option
="--cache-file=../${cache_file}"
1551 ### check for guested configure, otherwise fix possibly relative progname
1552 if [ -f ${newsrcdir}/configure
] ; then
1553 recprog
=${newsrcdir}/configure
1554 elif [ -f ${newsrcdir}/configure.
in ] ; then
1555 case "${progname}" in
1556 /* |
[A-Za-z
]:[\\/]* ) recprog
=${progname} ;;
1557 *) recprog
=..
/${progname} ;;
1560 eval echo No configuration information
in ${cfg_dir} ${redirect}
1564 ### The recursion line is here.
1565 if [ ! -z "${recprog}" ] ; then
1566 if eval ${config_shell} ${recprog} ${verbose} ${buildopt} --host=${host_alias} --target=${tgt_alias} \
1567 ${prefixoption} ${tmpdiroption} ${exec_prefixoption} \
1568 ${srcdiroption} ${diroptions} ${program_prefixoption} ${program_suffixoption} ${program_transform_nameoption} ${site_option} ${withoptions} ${withoutoptions} ${enableoptions} ${disableoptions} ${floating_pointoption} ${cache_file_option} ${other_options} ${redirect} ; then
1571 echo Configure
in `${PWDCMD-pwd}` failed
, exiting.
1>&2
1581 # Perform the same cleanup as the trap handler, minus the "exit 1" of course,
1582 # and reset the trap handler.