• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Revision4e8190be8d53ff7e254a077032719f169a6c4b5d (tree)
Zeit2002-02-01 03:55:16
AutorDavid O'Brien <obrien@Free...>
CommiterDavid O'Brien

Log Message

2002-01-31 David O'Brien <obrien@FreeBSD>
* configure.in: Recognize the differences in core files from FreeBSD
4.{0,1} and later versions of 4.x. This treats 4.2+ the same as
5-CURRENT.
* configure: Regenerate.

Approved by: Nick Clifton <nickc@cambridge.redhat.com>

<m3k7tyuzzd.fsf@north-pole.nickc.cambridge.redhat.com>

Ändern Zusammenfassung

Diff

--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,10 @@
1+2002-01-31 David O'Brien <obrien@FreeBSD>
2+
3+ * configure.in: Recognize the differences in core files from FreeBSD
4+ 4.{0,1} and later versions of 4.x. This treats 4.2+ the same as
5+ 5-CURRENT.
6+ * configure: Regenerate.
7+
18 2001-10-24 Richard Henderson <rth@redhat.com>
29
310 * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Copy
--- a/bfd/configure
+++ b/bfd/configure
@@ -12,18 +12,6 @@ ac_help=
1212 ac_default_prefix=/usr/local
1313 # Any additions from configure.in:
1414 ac_help="$ac_help
15- --enable-shared[=PKGS] build shared libraries [default=no]"
16-ac_help="$ac_help
17- --enable-static[=PKGS] build static libraries [default=yes]"
18-ac_help="$ac_help
19- --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
20-ac_help="$ac_help
21- --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
22-ac_help="$ac_help
23- --disable-libtool-lock avoid locking (might break parallel builds)"
24-ac_help="$ac_help
25- --with-pic try to use only PIC/non-PIC objects [default=use both]"
26-ac_help="$ac_help
2715 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)"
2816 ac_help="$ac_help
2917 --enable-targets alternative target configurations"
@@ -36,10 +24,6 @@ ac_help="$ac_help
3624 ac_help="$ac_help
3725 --enable-maintainer-mode enable make rules and dependencies not useful
3826 (and sometimes confusing) to the casual installer"
39-ac_help="$ac_help
40- --disable-nls do not use Native Language Support"
41-ac_help="$ac_help
42- --with-included-gettext use the GNU gettext library included here"
4327
4428 # Initialize some variables set by options.
4529 # The variables have the same names as the options, with
@@ -560,68 +544,6 @@ else
560544 ac_n= ac_c='\c' ac_t=
561545 fi
562546
563-echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
564-echo "configure:565: checking for Cygwin environment" >&5
565-if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
566- echo $ac_n "(cached) $ac_c" 1>&6
567-else
568- cat > conftest.$ac_ext <<EOF
569-#line 570 "configure"
570-#include "confdefs.h"
571-
572-int main() {
573-
574-#ifndef __CYGWIN__
575-#define __CYGWIN__ __CYGWIN32__
576-#endif
577-return __CYGWIN__;
578-; return 0; }
579-EOF
580-if { (eval echo configure:581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
581- rm -rf conftest*
582- ac_cv_cygwin=yes
583-else
584- echo "configure: failed program was:" >&5
585- cat conftest.$ac_ext >&5
586- rm -rf conftest*
587- ac_cv_cygwin=no
588-fi
589-rm -f conftest*
590-rm -f conftest*
591-fi
592-
593-echo "$ac_t""$ac_cv_cygwin" 1>&6
594-CYGWIN=
595-test "$ac_cv_cygwin" = yes && CYGWIN=yes
596-echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
597-echo "configure:598: checking for mingw32 environment" >&5
598-if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
599- echo $ac_n "(cached) $ac_c" 1>&6
600-else
601- cat > conftest.$ac_ext <<EOF
602-#line 603 "configure"
603-#include "confdefs.h"
604-
605-int main() {
606-return __MINGW32__;
607-; return 0; }
608-EOF
609-if { (eval echo configure:610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
610- rm -rf conftest*
611- ac_cv_mingw32=yes
612-else
613- echo "configure: failed program was:" >&5
614- cat conftest.$ac_ext >&5
615- rm -rf conftest*
616- ac_cv_mingw32=no
617-fi
618-rm -f conftest*
619-rm -f conftest*
620-fi
621-
622-echo "$ac_t""$ac_cv_mingw32" 1>&6
623-MINGW32=
624-test "$ac_cv_mingw32" = yes && MINGW32=yes
625547
626548
627549 ac_aux_dir=
@@ -671,7 +593,7 @@ else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
671593 fi
672594
673595 echo $ac_n "checking host system type""... $ac_c" 1>&6
674-echo "configure:675: checking host system type" >&5
596+echo "configure:597: checking host system type" >&5
675597
676598 host_alias=$host
677599 case "$host_alias" in
@@ -692,7 +614,7 @@ host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
692614 echo "$ac_t""$host" 1>&6
693615
694616 echo $ac_n "checking target system type""... $ac_c" 1>&6
695-echo "configure:696: checking target system type" >&5
617+echo "configure:618: checking target system type" >&5
696618
697619 target_alias=$target
698620 case "$target_alias" in
@@ -710,7 +632,7 @@ target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
710632 echo "$ac_t""$target" 1>&6
711633
712634 echo $ac_n "checking build system type""... $ac_c" 1>&6
713-echo "configure:714: checking build system type" >&5
635+echo "configure:636: checking build system type" >&5
714636
715637 build_alias=$build
716638 case "$build_alias" in
@@ -735,7 +657,7 @@ test "$host_alias" != "$target_alias" &&
735657 # Extract the first word of "gcc", so it can be a program name with args.
736658 set dummy gcc; ac_word=$2
737659 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
738-echo "configure:739: checking for $ac_word" >&5
660+echo "configure:661: checking for $ac_word" >&5
739661 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
740662 echo $ac_n "(cached) $ac_c" 1>&6
741663 else
@@ -765,7 +687,7 @@ if test -z "$CC"; then
765687 # Extract the first word of "cc", so it can be a program name with args.
766688 set dummy cc; ac_word=$2
767689 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
768-echo "configure:769: checking for $ac_word" >&5
690+echo "configure:691: checking for $ac_word" >&5
769691 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
770692 echo $ac_n "(cached) $ac_c" 1>&6
771693 else
@@ -816,7 +738,7 @@ fi
816738 # Extract the first word of "cl", so it can be a program name with args.
817739 set dummy cl; ac_word=$2
818740 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
819-echo "configure:820: checking for $ac_word" >&5
741+echo "configure:742: checking for $ac_word" >&5
820742 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
821743 echo $ac_n "(cached) $ac_c" 1>&6
822744 else
@@ -848,7 +770,7 @@ fi
848770 fi
849771
850772 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
851-echo "configure:852: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
773+echo "configure:774: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
852774
853775 ac_ext=c
854776 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
@@ -859,12 +781,12 @@ cross_compiling=$ac_cv_prog_cc_cross
859781
860782 cat > conftest.$ac_ext << EOF
861783
862-#line 863 "configure"
784+#line 785 "configure"
863785 #include "confdefs.h"
864786
865787 main(){return(0);}
866788 EOF
867-if { (eval echo configure:868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
789+if { (eval echo configure:790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
868790 ac_cv_prog_cc_works=yes
869791 # If we can't run a trivial program, we are probably using a cross compiler.
870792 if (./conftest; exit) 2>/dev/null; then
@@ -890,12 +812,12 @@ if test $ac_cv_prog_cc_works = no; then
890812 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
891813 fi
892814 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
893-echo "configure:894: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
815+echo "configure:816: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
894816 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
895817 cross_compiling=$ac_cv_prog_cc_cross
896818
897819 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
898-echo "configure:899: checking whether we are using GNU C" >&5
820+echo "configure:821: checking whether we are using GNU C" >&5
899821 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
900822 echo $ac_n "(cached) $ac_c" 1>&6
901823 else
@@ -904,7 +826,7 @@ else
904826 yes;
905827 #endif
906828 EOF
907-if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
829+if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
908830 ac_cv_prog_gcc=yes
909831 else
910832 ac_cv_prog_gcc=no
@@ -923,7 +845,7 @@ ac_test_CFLAGS="${CFLAGS+set}"
923845 ac_save_CFLAGS="$CFLAGS"
924846 CFLAGS=
925847 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
926-echo "configure:927: checking whether ${CC-cc} accepts -g" >&5
848+echo "configure:849: checking whether ${CC-cc} accepts -g" >&5
927849 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
928850 echo $ac_n "(cached) $ac_c" 1>&6
929851 else
@@ -955,7 +877,7 @@ else
955877 fi
956878
957879 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
958-echo "configure:959: checking for POSIXized ISC" >&5
880+echo "configure:881: checking for POSIXized ISC" >&5
959881 if test -d /etc/conf/kconfig.d &&
960882 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
961883 then
@@ -988,7 +910,7 @@ fi
988910 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
989911 # ./install, which can be erroneously created by make from ./install.sh.
990912 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
991-echo "configure:992: checking for a BSD compatible install" >&5
913+echo "configure:914: checking for a BSD compatible install" >&5
992914 if test -z "$INSTALL"; then
993915 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
994916 echo $ac_n "(cached) $ac_c" 1>&6
@@ -1041,7 +963,7 @@ test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1041963 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1042964
1043965 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1044-echo "configure:1045: checking whether build environment is sane" >&5
966+echo "configure:967: checking whether build environment is sane" >&5
1045967 # Just in case
1046968 sleep 1
1047969 echo timestamp > conftestfile
@@ -1098,7 +1020,7 @@ test "$program_suffix" != NONE &&
10981020 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
10991021
11001022 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1101-echo "configure:1102: checking whether ${MAKE-make} sets \${MAKE}" >&5
1023+echo "configure:1024: checking whether ${MAKE-make} sets \${MAKE}" >&5
11021024 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
11031025 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
11041026 echo $ac_n "(cached) $ac_c" 1>&6
@@ -1144,7 +1066,7 @@ EOF
11441066
11451067 missing_dir=`cd $ac_aux_dir && pwd`
11461068 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1147-echo "configure:1148: checking for working aclocal" >&5
1069+echo "configure:1070: checking for working aclocal" >&5
11481070 # Run test in a subshell; some versions of sh will print an error if
11491071 # an executable is not found, even if stderr is redirected.
11501072 # Redirect stdin to placate older versions of autoconf. Sigh.
@@ -1157,7 +1079,7 @@ else
11571079 fi
11581080
11591081 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1160-echo "configure:1161: checking for working autoconf" >&5
1082+echo "configure:1083: checking for working autoconf" >&5
11611083 # Run test in a subshell; some versions of sh will print an error if
11621084 # an executable is not found, even if stderr is redirected.
11631085 # Redirect stdin to placate older versions of autoconf. Sigh.
@@ -1170,7 +1092,7 @@ else
11701092 fi
11711093
11721094 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1173-echo "configure:1174: checking for working automake" >&5
1095+echo "configure:1096: checking for working automake" >&5
11741096 # Run test in a subshell; some versions of sh will print an error if
11751097 # an executable is not found, even if stderr is redirected.
11761098 # Redirect stdin to placate older versions of autoconf. Sigh.
@@ -1183,7 +1105,7 @@ else
11831105 fi
11841106
11851107 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1186-echo "configure:1187: checking for working autoheader" >&5
1108+echo "configure:1109: checking for working autoheader" >&5
11871109 # Run test in a subshell; some versions of sh will print an error if
11881110 # an executable is not found, even if stderr is redirected.
11891111 # Redirect stdin to placate older versions of autoconf. Sigh.
@@ -1196,7 +1118,7 @@ else
11961118 fi
11971119
11981120 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1199-echo "configure:1200: checking for working makeinfo" >&5
1121+echo "configure:1122: checking for working makeinfo" >&5
12001122 # Run test in a subshell; some versions of sh will print an error if
12011123 # an executable is not found, even if stderr is redirected.
12021124 # Redirect stdin to placate older versions of autoconf. Sigh.
@@ -1219,7 +1141,7 @@ fi
12191141 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12201142 set dummy ${ac_tool_prefix}ar; ac_word=$2
12211143 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1222-echo "configure:1223: checking for $ac_word" >&5
1144+echo "configure:1145: checking for $ac_word" >&5
12231145 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
12241146 echo $ac_n "(cached) $ac_c" 1>&6
12251147 else
@@ -1251,7 +1173,7 @@ fi
12511173 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12521174 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12531175 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1254-echo "configure:1255: checking for $ac_word" >&5
1176+echo "configure:1177: checking for $ac_word" >&5
12551177 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
12561178 echo $ac_n "(cached) $ac_c" 1>&6
12571179 else
@@ -1283,7 +1205,7 @@ if test -n "$ac_tool_prefix"; then
12831205 # Extract the first word of "ranlib", so it can be a program name with args.
12841206 set dummy ranlib; ac_word=$2
12851207 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1286-echo "configure:1287: checking for $ac_word" >&5
1208+echo "configure:1209: checking for $ac_word" >&5
12871209 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
12881210 echo $ac_n "(cached) $ac_c" 1>&6
12891211 else
@@ -1316,414 +1238,191 @@ fi
13161238 fi
13171239
13181240
1319-# Check whether --enable-shared or --disable-shared was given.
1320-if test "${enable_shared+set}" = set; then
1321- enableval="$enable_shared"
1322- p=${PACKAGE-default}
1323-case "$enableval" in
1324-yes) enable_shared=yes ;;
1325-no) enable_shared=no ;;
1326-*)
1327- enable_shared=no
1328- # Look at the argument we got. We use all the common list separators.
1329- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1330- for pkg in $enableval; do
1331- if test "X$pkg" = "X$p"; then
1332- enable_shared=yes
1333- fi
1334- done
1335- IFS="$ac_save_ifs"
1336- ;;
1337-esac
1338-else
1339- enable_shared=no
1340-fi
1241+AM_DISABLE_SHARED
13411242
1243+AM_PROG_LIBTOOL
13421244
1343-# Check whether --enable-static or --disable-static was given.
1344-if test "${enable_static+set}" = set; then
1345- enableval="$enable_static"
1346- p=${PACKAGE-default}
1347-case "$enableval" in
1348-yes) enable_static=yes ;;
1349-no) enable_static=no ;;
1350-*)
1351- enable_static=no
1352- # Look at the argument we got. We use all the common list separators.
1353- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1354- for pkg in $enableval; do
1355- if test "X$pkg" = "X$p"; then
1356- enable_static=yes
1357- fi
1358- done
1359- IFS="$ac_save_ifs"
1360- ;;
1245+# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
1246+if test "${enable_64_bit_bfd+set}" = set; then
1247+ enableval="$enable_64_bit_bfd"
1248+ case "${enableval}" in
1249+ yes) want64=true ;;
1250+ no) want64=false ;;
1251+ *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;;
13611252 esac
13621253 else
1363- enable_static=yes
1364-fi
1365-
1366-# Check whether --enable-fast-install or --disable-fast-install was given.
1367-if test "${enable_fast_install+set}" = set; then
1368- enableval="$enable_fast_install"
1369- p=${PACKAGE-default}
1370-case "$enableval" in
1371-yes) enable_fast_install=yes ;;
1372-no) enable_fast_install=no ;;
1373-*)
1374- enable_fast_install=no
1375- # Look at the argument we got. We use all the common list separators.
1376- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1377- for pkg in $enableval; do
1378- if test "X$pkg" = "X$p"; then
1379- enable_fast_install=yes
1380- fi
1381- done
1382- IFS="$ac_save_ifs"
1383- ;;
1254+ want64=false
1255+fi
1256+# Check whether --enable-targets or --disable-targets was given.
1257+if test "${enable_targets+set}" = set; then
1258+ enableval="$enable_targets"
1259+ case "${enableval}" in
1260+ yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
1261+ ;;
1262+ no) enable_targets= ;;
1263+ *) enable_targets=$enableval ;;
13841264 esac
1385-else
1386- enable_fast_install=yes
13871265 fi
1388-
1389-# Check whether --with-gnu-ld or --without-gnu-ld was given.
1390-if test "${with_gnu_ld+set}" = set; then
1391- withval="$with_gnu_ld"
1392- test "$withval" = no || with_gnu_ld=yes
1266+# Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
1267+if test "${enable_commonbfdlib+set}" = set; then
1268+ enableval="$enable_commonbfdlib"
1269+ case "${enableval}" in
1270+ yes) commonbfdlib=true ;;
1271+ no) commonbfdlib=false ;;
1272+ *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
1273+esac
1274+fi
1275+# Check whether --with-mmap or --without-mmap was given.
1276+if test "${with_mmap+set}" = set; then
1277+ withval="$with_mmap"
1278+ case "${withval}" in
1279+ yes) want_mmap=true ;;
1280+ no) want_mmap=false ;;
1281+ *) { echo "configure: error: bad value ${withval} for BFD with-mmap option" 1>&2; exit 1; } ;;
1282+esac
13931283 else
1394- with_gnu_ld=no
1284+ want_mmap=false
13951285 fi
13961286
1397-ac_prog=ld
1398-if test "$ac_cv_prog_gcc" = yes; then
1399- # Check if gcc -print-prog-name=ld gives a path.
1400- echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1401-echo "configure:1402: checking for ld used by GCC" >&5
1402- case $host in
1403- *-*-mingw*)
1404- # gcc leaves a trailing carriage return which upsets mingw
1405- ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1406- *)
1407- ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1408- esac
1409- case "$ac_prog" in
1410- # Accept absolute paths.
1411- [\\/]* | [A-Za-z]:[\\/]*)
1412- re_direlt='/[^/][^/]*/\.\./'
1413- # Canonicalize the path of ld
1414- ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1415- while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1416- ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1417- done
1418- test -z "$LD" && LD="$ac_prog"
1419- ;;
1420- "")
1421- # If it fails, then pretend we aren't using GCC.
1422- ac_prog=ld
1423- ;;
1424- *)
1425- # If it is relative, then search for the first ld in PATH.
1426- with_gnu_ld=unknown
1427- ;;
1428- esac
1429-elif test "$with_gnu_ld" = yes; then
1430- echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1431-echo "configure:1432: checking for GNU ld" >&5
1432-else
1433- echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1434-echo "configure:1435: checking for non-GNU ld" >&5
1287+build_warnings="-W -Wall"
1288+# Check whether --enable-build-warnings or --disable-build-warnings was given.
1289+if test "${enable_build_warnings+set}" = set; then
1290+ enableval="$enable_build_warnings"
1291+ case "${enableval}" in
1292+ yes) ;;
1293+ no) build_warnings="-w";;
1294+ ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
1295+ build_warnings="${build_warnings} ${t}";;
1296+ *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
1297+ build_warnings="${t} ${build_warnings}";;
1298+ *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
1299+esac
1300+if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
1301+ echo "Setting warning flags = $build_warnings" 6>&1
14351302 fi
1436-if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1437- echo $ac_n "(cached) $ac_c" 1>&6
1438-else
1439- if test -z "$LD"; then
1440- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1441- for ac_dir in $PATH; do
1442- test -z "$ac_dir" && ac_dir=.
1443- if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1444- ac_cv_path_LD="$ac_dir/$ac_prog"
1445- # Check to see if the program is GNU ld. I'd rather use --version,
1446- # but apparently some GNU ld's only accept -v.
1447- # Break only if it was the GNU/non-GNU ld that we prefer.
1448- if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1449- test "$with_gnu_ld" != no && break
1450- else
1451- test "$with_gnu_ld" != yes && break
1452- fi
1453- fi
1454- done
1455- IFS="$ac_save_ifs"
1456-else
1457- ac_cv_path_LD="$LD" # Let the user override the test with a path.
14581303 fi
1304+WARN_CFLAGS=""
1305+if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
1306+ WARN_CFLAGS="${build_warnings}"
14591307 fi
14601308
1461-LD="$ac_cv_path_LD"
1462-if test -n "$LD"; then
1463- echo "$ac_t""$LD" 1>&6
1464-else
1465- echo "$ac_t""no" 1>&6
1309+
1310+
1311+
1312+
1313+
1314+if test -z "$target" ; then
1315+ { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
14661316 fi
1467-test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1468-echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1469-echo "configure:1470: checking if the linker ($LD) is GNU ld" >&5
1470-if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1471- echo $ac_n "(cached) $ac_c" 1>&6
1472-else
1473- # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1474-if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1475- ac_cv_prog_gnu_ld=yes
1317+if test "$program_transform_name" = s,x,x,; then
1318+ program_transform_name=
14761319 else
1477- ac_cv_prog_gnu_ld=no
1478-fi
1320+ # Double any \ or $. echo might interpret backslashes.
1321+ cat <<\EOF_SED > conftestsed
1322+s,\\,\\\\,g; s,\$,$$,g
1323+EOF_SED
1324+ program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1325+ rm -f conftestsed
14791326 fi
1327+test "$program_prefix" != NONE &&
1328+ program_transform_name="s,^,${program_prefix},; $program_transform_name"
1329+# Use a double $ so make ignores it.
1330+test "$program_suffix" != NONE &&
1331+ program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
14801332
1481-echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1482-with_gnu_ld=$ac_cv_prog_gnu_ld
1333+# sed with no file args requires a program.
1334+test "$program_transform_name" = "" && program_transform_name="s,x,x,"
14831335
14841336
1485-echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1486-echo "configure:1487: checking for $LD option to reload object files" >&5
1487-if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1488- echo $ac_n "(cached) $ac_c" 1>&6
1337+echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1338+echo "configure:1339: checking whether to enable maintainer-specific portions of Makefiles" >&5
1339+ # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1340+if test "${enable_maintainer_mode+set}" = set; then
1341+ enableval="$enable_maintainer_mode"
1342+ USE_MAINTAINER_MODE=$enableval
14891343 else
1490- lt_cv_ld_reload_flag='-r'
1344+ USE_MAINTAINER_MODE=no
14911345 fi
14921346
1493-echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1494-reload_flag=$lt_cv_ld_reload_flag
1495-test -n "$reload_flag" && reload_flag=" $reload_flag"
1347+ echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1348+
14961349
1497-echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1498-echo "configure:1499: checking for BSD-compatible nm" >&5
1499-if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1500- echo $ac_n "(cached) $ac_c" 1>&6
1501-else
1502- if test -n "$NM"; then
1503- # Let the user override the test.
1504- ac_cv_path_NM="$NM"
1350+if test $USE_MAINTAINER_MODE = yes; then
1351+ MAINTAINER_MODE_TRUE=
1352+ MAINTAINER_MODE_FALSE='#'
15051353 else
1506- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1507- for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1508- test -z "$ac_dir" && ac_dir=.
1509- tmp_nm=$ac_dir/${ac_tool_prefix}nm
1510- if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1511- # Check to see if the nm accepts a BSD-compat flag.
1512- # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1513- # nm: unknown option "B" ignored
1514- # Tru64's nm complains that /dev/null is an invalid object file
1515- if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1516- ac_cv_path_NM="$tmp_nm -B"
1517- break
1518- elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1519- ac_cv_path_NM="$tmp_nm -p"
1520- break
1521- else
1522- ac_cv_path_NM=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but
1523- continue # so that we can try to find one that supports BSD flags
1524- fi
1525- fi
1526- done
1527- IFS="$ac_save_ifs"
1528- test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1529-fi
1354+ MAINTAINER_MODE_TRUE='#'
1355+ MAINTAINER_MODE_FALSE=
15301356 fi
1357+ MAINT=$MAINTAINER_MODE_TRUE
1358+
15311359
1532-NM="$ac_cv_path_NM"
1533-echo "$ac_t""$NM" 1>&6
1534-
1535-echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1536-echo "configure:1537: checking whether ln -s works" >&5
1537-if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1360+echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1361+echo "configure:1362: checking for Cygwin environment" >&5
1362+if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
15381363 echo $ac_n "(cached) $ac_c" 1>&6
15391364 else
1540- rm -f conftestdata
1541-if ln -s X conftestdata 2>/dev/null
1542-then
1543- rm -f conftestdata
1544- ac_cv_prog_LN_S="ln -s"
1365+ cat > conftest.$ac_ext <<EOF
1366+#line 1367 "configure"
1367+#include "confdefs.h"
1368+
1369+int main() {
1370+
1371+#ifndef __CYGWIN__
1372+#define __CYGWIN__ __CYGWIN32__
1373+#endif
1374+return __CYGWIN__;
1375+; return 0; }
1376+EOF
1377+if { (eval echo configure:1378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1378+ rm -rf conftest*
1379+ ac_cv_cygwin=yes
15451380 else
1546- ac_cv_prog_LN_S=ln
1547-fi
1381+ echo "configure: failed program was:" >&5
1382+ cat conftest.$ac_ext >&5
1383+ rm -rf conftest*
1384+ ac_cv_cygwin=no
15481385 fi
1549-LN_S="$ac_cv_prog_LN_S"
1550-if test "$ac_cv_prog_LN_S" = "ln -s"; then
1551- echo "$ac_t""yes" 1>&6
1552-else
1553- echo "$ac_t""no" 1>&6
1386+rm -f conftest*
1387+rm -f conftest*
15541388 fi
15551389
1556-echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1557-echo "configure:1558: checking how to recognise dependant libraries" >&5
1558-if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1390+echo "$ac_t""$ac_cv_cygwin" 1>&6
1391+CYGWIN=
1392+test "$ac_cv_cygwin" = yes && CYGWIN=yes
1393+echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1394+echo "configure:1395: checking for mingw32 environment" >&5
1395+if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
15591396 echo $ac_n "(cached) $ac_c" 1>&6
15601397 else
1561- lt_cv_file_magic_cmd='$MAGIC_CMD'
1562-lt_cv_file_magic_test_file=
1563-lt_cv_deplibs_check_method='unknown'
1564-# Need to set the preceding variable on all platforms that support
1565-# interlibrary dependencies.
1566-# 'none' -- dependencies not supported.
1567-# `unknown' -- same as none, but documents that we really don't know.
1568-# 'pass_all' -- all dependencies passed with no checks.
1569-# 'test_compile' -- check by making test program.
1570-# 'file_magic [regex]' -- check by looking for files in library path
1571-# which responds to the $file_magic_cmd with a given egrep regex.
1572-# If you have `file' or equivalent on your system and you're not sure
1573-# whether `pass_all' will *always* work, you probably want this one.
1574-
1575-case "$host_os" in
1576-aix4*)
1577- lt_cv_deplibs_check_method=pass_all
1578- ;;
1579-
1580-beos*)
1581- lt_cv_deplibs_check_method=pass_all
1582- ;;
1398+ cat > conftest.$ac_ext <<EOF
1399+#line 1400 "configure"
1400+#include "confdefs.h"
15831401
1584-bsdi4*)
1585- lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1586- lt_cv_file_magic_cmd='/usr/bin/file -L'
1587- lt_cv_file_magic_test_file=/shlib/libc.so
1588- ;;
1589-
1590-cygwin* | mingw* |pw32*)
1591- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1592- lt_cv_file_magic_cmd='$OBJDUMP -f'
1593- ;;
1594-
1595-freebsd* )
1596- if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1597- case "$host_cpu" in
1598- i*86 )
1599- # Not sure whether the presence of OpenBSD here was a mistake.
1600- # Let's accept both of them until this is cleared up.
1601- lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1602- lt_cv_file_magic_cmd=/usr/bin/file
1603- lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1604- ;;
1605- esac
1606- else
1607- lt_cv_deplibs_check_method=pass_all
1608- fi
1609- ;;
1610-
1611-gnu*)
1612- lt_cv_deplibs_check_method=pass_all
1613- ;;
1614-
1615-hpux10.20*)
1616- # TODO: Does this work for hpux-11 too?
1617- lt_cv_deplibs_check_method='file_magic (s0-90-90-9|PA-RISC0-9.0-9) shared library'
1618- lt_cv_file_magic_cmd=/usr/bin/file
1619- lt_cv_file_magic_test_file=/usr/lib/libc.sl
1620- ;;
1621-
1622-irix5* | irix6*)
1623- case "$host_os" in
1624- irix5*)
1625- # this will be overridden with pass_all, but let us keep it just in case
1626- lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1627- ;;
1628- *)
1629- case "$LD" in
1630- *-32|*"-32 ") libmagic=32-bit;;
1631- *-n32|*"-n32 ") libmagic=N32;;
1632- *-64|*"-64 ") libmagic=64-bit;;
1633- *) libmagic=never-match;;
1634- esac
1635- # this will be overridden with pass_all, but let us keep it just in case
1636- lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1637- ;;
1638- esac
1639- lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1640- lt_cv_deplibs_check_method=pass_all
1641- ;;
1642-
1643-# This must be Linux ELF.
1644-linux-gnu*)
1645- case "$host_cpu" in
1646- alpha* | i*86 | powerpc* | sparc* | ia64* )
1647- lt_cv_deplibs_check_method=pass_all ;;
1648- *)
1649- # glibc up to 2.1.1 does not perform some relocations on ARM
1650- lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1651- esac
1652- lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1653- ;;
1654-
1655-netbsd*)
1656- if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then :
1657- else
1658- lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
1659- lt_cv_file_magic_cmd='/usr/bin/file -L'
1660- lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1661- fi
1662- ;;
1663-
1664-osf3* | osf4* | osf5*)
1665- # this will be overridden with pass_all, but let us keep it just in case
1666- lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1667- lt_cv_file_magic_test_file=/shlib/libc.so
1668- lt_cv_deplibs_check_method=pass_all
1669- ;;
1670-
1671-sco3.2v5*)
1672- lt_cv_deplibs_check_method=pass_all
1673- ;;
1674-
1675-solaris*)
1676- lt_cv_deplibs_check_method=pass_all
1677- lt_cv_file_magic_test_file=/lib/libc.so
1678- ;;
1679-
1680-sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1681- case "$host_vendor" in
1682- ncr)
1683- lt_cv_deplibs_check_method=pass_all
1684- ;;
1685- motorola)
1686- lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
1687- lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1688- ;;
1689- esac
1690- ;;
1691-esac
1692-
1693-fi
1694-
1695-echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1696-file_magic_cmd=$lt_cv_file_magic_cmd
1697-deplibs_check_method=$lt_cv_deplibs_check_method
1698-
1699-echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1700-echo "configure:1701: checking for object suffix" >&5
1701-if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1702- echo $ac_n "(cached) $ac_c" 1>&6
1703-else
1704- rm -f conftest*
1705-echo 'int i = 1;' > conftest.$ac_ext
1706-if { (eval echo configure:1707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1707- for ac_file in conftest.*; do
1708- case $ac_file in
1709- *.c) ;;
1710- *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1711- esac
1712- done
1713-else
1714- { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1715-fi
1716-rm -f conftest*
1717-fi
1718-
1719-echo "$ac_t""$ac_cv_objext" 1>&6
1720-OBJEXT=$ac_cv_objext
1721-ac_objext=$ac_cv_objext
1402+int main() {
1403+return __MINGW32__;
1404+; return 0; }
1405+EOF
1406+if { (eval echo configure:1407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1407+ rm -rf conftest*
1408+ ac_cv_mingw32=yes
1409+else
1410+ echo "configure: failed program was:" >&5
1411+ cat conftest.$ac_ext >&5
1412+ rm -rf conftest*
1413+ ac_cv_mingw32=no
1414+fi
1415+rm -f conftest*
1416+rm -f conftest*
1417+fi
17221418
1419+echo "$ac_t""$ac_cv_mingw32" 1>&6
1420+MINGW32=
1421+test "$ac_cv_mingw32" = yes && MINGW32=yes
17231422
17241423
17251424 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1726-echo "configure:1727: checking for executable suffix" >&5
1425+echo "configure:1426: checking for executable suffix" >&5
17271426 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
17281427 echo $ac_n "(cached) $ac_c" 1>&6
17291428 else
@@ -1733,10 +1432,10 @@ else
17331432 rm -f conftest*
17341433 echo 'int main () { return 0; }' > conftest.$ac_ext
17351434 ac_cv_exeext=
1736- if { (eval echo configure:1737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1435+ if { (eval echo configure:1436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
17371436 for file in conftest.*; do
17381437 case $file in
1739- *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1438+ *.c | *.C | *.o | *.obj | *.ilk | *.pdb) ;;
17401439 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
17411440 esac
17421441 done
@@ -1753,2567 +1452,237 @@ test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
17531452 echo "$ac_t""${ac_cv_exeext}" 1>&6
17541453 ac_exeext=$EXEEXT
17551454
1756-# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1757-
1758-# Only perform the check for file, if the check method requires it
1759-case "$deplibs_check_method" in
1760-file_magic*)
1761- if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1762- echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1763-echo "configure:1764: checking for ${ac_tool_prefix}file" >&5
1764-if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1765- echo $ac_n "(cached) $ac_c" 1>&6
1766-else
1767- case "$MAGIC_CMD" in
1768- /*)
1769- lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1770- ;;
1771- ?:/*)
1772- lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1773- ;;
1774- *)
1775- ac_save_MAGIC_CMD="$MAGIC_CMD"
1776- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1777- ac_dummy="/usr/bin:$PATH"
1778- for ac_dir in $ac_dummy; do
1779- test -z "$ac_dir" && ac_dir=.
1780- if test -f $ac_dir/${ac_tool_prefix}file; then
1781- lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
1782- if test -n "$file_magic_test_file"; then
1783- case "$deplibs_check_method" in
1784- "file_magic "*)
1785- file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1786- MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1787- if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1788- egrep "$file_magic_regex" > /dev/null; then
1789- :
1790- else
1791- cat <<EOF 1>&2
1792-
1793-*** Warning: the command libtool uses to detect shared libraries,
1794-*** $file_magic_cmd, produces output that libtool cannot recognize.
1795-*** The result is that libtool may fail to recognize shared libraries
1796-*** as such. This will affect the creation of libtool libraries that
1797-*** depend on shared libraries, but programs linked with such libtool
1798-*** libraries will work regardless of this problem. Nevertheless, you
1799-*** may want to report the problem to your system manager and/or to
1800-*** bug-libtool@gnu.org
1801-
1802-EOF
1803- fi ;;
1804- esac
1805- fi
1806- break
1807- fi
1808- done
1809- IFS="$ac_save_ifs"
1810- MAGIC_CMD="$ac_save_MAGIC_CMD"
1811- ;;
1812-esac
1813-fi
1814-
1815-MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1816-if test -n "$MAGIC_CMD"; then
1817- echo "$ac_t""$MAGIC_CMD" 1>&6
1818-else
1819- echo "$ac_t""no" 1>&6
1820-fi
1821-
1822-if test -z "$lt_cv_path_MAGIC_CMD"; then
1823- if test -n "$ac_tool_prefix"; then
1824- echo $ac_n "checking for file""... $ac_c" 1>&6
1825-echo "configure:1826: checking for file" >&5
1826-if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1827- echo $ac_n "(cached) $ac_c" 1>&6
1828-else
1829- case "$MAGIC_CMD" in
1830- /*)
1831- lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1832- ;;
1833- ?:/*)
1834- lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1835- ;;
1836- *)
1837- ac_save_MAGIC_CMD="$MAGIC_CMD"
1838- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1839- ac_dummy="/usr/bin:$PATH"
1840- for ac_dir in $ac_dummy; do
1841- test -z "$ac_dir" && ac_dir=.
1842- if test -f $ac_dir/file; then
1843- lt_cv_path_MAGIC_CMD="$ac_dir/file"
1844- if test -n "$file_magic_test_file"; then
1845- case "$deplibs_check_method" in
1846- "file_magic "*)
1847- file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1848- MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1849- if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1850- egrep "$file_magic_regex" > /dev/null; then
1851- :
1852- else
1853- cat <<EOF 1>&2
1854-
1855-*** Warning: the command libtool uses to detect shared libraries,
1856-*** $file_magic_cmd, produces output that libtool cannot recognize.
1857-*** The result is that libtool may fail to recognize shared libraries
1858-*** as such. This will affect the creation of libtool libraries that
1859-*** depend on shared libraries, but programs linked with such libtool
1860-*** libraries will work regardless of this problem. Nevertheless, you
1861-*** may want to report the problem to your system manager and/or to
1862-*** bug-libtool@gnu.org
1863-
1864-EOF
1865- fi ;;
1866- esac
1867- fi
1868- break
1869- fi
1870- done
1871- IFS="$ac_save_ifs"
1872- MAGIC_CMD="$ac_save_MAGIC_CMD"
1873- ;;
1874-esac
1875-fi
1876-
1877-MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1878-if test -n "$MAGIC_CMD"; then
1879- echo "$ac_t""$MAGIC_CMD" 1>&6
1880-else
1881- echo "$ac_t""no" 1>&6
1882-fi
1883-
1884- else
1885- MAGIC_CMD=:
1886- fi
1887-fi
1888-
1889- fi
1890- ;;
1891-esac
1892-
1893-# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1894-set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1895-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1896-echo "configure:1897: checking for $ac_word" >&5
1897-if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1898- echo $ac_n "(cached) $ac_c" 1>&6
1899-else
1900- if test -n "$RANLIB"; then
1901- ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1902-else
1903- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1904- ac_dummy="$PATH"
1905- for ac_dir in $ac_dummy; do
1906- test -z "$ac_dir" && ac_dir=.
1907- if test -f $ac_dir/$ac_word; then
1908- ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1909- break
1910- fi
1911- done
1912- IFS="$ac_save_ifs"
1913-fi
1914-fi
1915-RANLIB="$ac_cv_prog_RANLIB"
1916-if test -n "$RANLIB"; then
1917- echo "$ac_t""$RANLIB" 1>&6
1918-else
1919- echo "$ac_t""no" 1>&6
1920-fi
1921-
19221455
1923-if test -z "$ac_cv_prog_RANLIB"; then
1924-if test -n "$ac_tool_prefix"; then
1925- # Extract the first word of "ranlib", so it can be a program name with args.
1926-set dummy ranlib; ac_word=$2
1927-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1928-echo "configure:1929: checking for $ac_word" >&5
1929-if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1930- echo $ac_n "(cached) $ac_c" 1>&6
1931-else
1932- if test -n "$RANLIB"; then
1933- ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1934-else
1935- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1936- ac_dummy="$PATH"
1937- for ac_dir in $ac_dummy; do
1938- test -z "$ac_dir" && ac_dir=.
1939- if test -f $ac_dir/$ac_word; then
1940- ac_cv_prog_RANLIB="ranlib"
1941- break
1942- fi
1943- done
1944- IFS="$ac_save_ifs"
1945- test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1946-fi
1947-fi
1948-RANLIB="$ac_cv_prog_RANLIB"
1949-if test -n "$RANLIB"; then
1950- echo "$ac_t""$RANLIB" 1>&6
1951-else
1952- echo "$ac_t""no" 1>&6
1953-fi
1456+host64=false
1457+target64=false
19541458
1955-else
1956- RANLIB=":"
1957-fi
1958-fi
1459+# host stuff:
19591460
1960-# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1961-set dummy ${ac_tool_prefix}strip; ac_word=$2
1461+# Extract the first word of "gcc", so it can be a program name with args.
1462+set dummy gcc; ac_word=$2
19621463 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1963-echo "configure:1964: checking for $ac_word" >&5
1964-if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1464+echo "configure:1465: checking for $ac_word" >&5
1465+if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
19651466 echo $ac_n "(cached) $ac_c" 1>&6
19661467 else
1967- if test -n "$STRIP"; then
1968- ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1468+ if test -n "$CC"; then
1469+ ac_cv_prog_CC="$CC" # Let the user override the test.
19691470 else
19701471 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
19711472 ac_dummy="$PATH"
19721473 for ac_dir in $ac_dummy; do
19731474 test -z "$ac_dir" && ac_dir=.
19741475 if test -f $ac_dir/$ac_word; then
1975- ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1476+ ac_cv_prog_CC="gcc"
19761477 break
19771478 fi
19781479 done
19791480 IFS="$ac_save_ifs"
19801481 fi
19811482 fi
1982-STRIP="$ac_cv_prog_STRIP"
1983-if test -n "$STRIP"; then
1984- echo "$ac_t""$STRIP" 1>&6
1483+CC="$ac_cv_prog_CC"
1484+if test -n "$CC"; then
1485+ echo "$ac_t""$CC" 1>&6
19851486 else
19861487 echo "$ac_t""no" 1>&6
19871488 fi
19881489
1989-
1990-if test -z "$ac_cv_prog_STRIP"; then
1991-if test -n "$ac_tool_prefix"; then
1992- # Extract the first word of "strip", so it can be a program name with args.
1993-set dummy strip; ac_word=$2
1490+if test -z "$CC"; then
1491+ # Extract the first word of "cc", so it can be a program name with args.
1492+set dummy cc; ac_word=$2
19941493 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1995-echo "configure:1996: checking for $ac_word" >&5
1996-if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1494+echo "configure:1495: checking for $ac_word" >&5
1495+if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
19971496 echo $ac_n "(cached) $ac_c" 1>&6
19981497 else
1999- if test -n "$STRIP"; then
2000- ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1498+ if test -n "$CC"; then
1499+ ac_cv_prog_CC="$CC" # Let the user override the test.
20011500 else
20021501 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1502+ ac_prog_rejected=no
20031503 ac_dummy="$PATH"
20041504 for ac_dir in $ac_dummy; do
20051505 test -z "$ac_dir" && ac_dir=.
20061506 if test -f $ac_dir/$ac_word; then
2007- ac_cv_prog_STRIP="strip"
2008- break
2009- fi
2010- done
2011- IFS="$ac_save_ifs"
2012- test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2013-fi
2014-fi
2015-STRIP="$ac_cv_prog_STRIP"
2016-if test -n "$STRIP"; then
2017- echo "$ac_t""$STRIP" 1>&6
2018-else
2019- echo "$ac_t""no" 1>&6
2020-fi
2021-
2022-else
2023- STRIP=":"
2024-fi
2025-fi
2026-
2027-
2028-# Check for any special flags to pass to ltconfig.
2029-libtool_flags="--cache-file=$cache_file"
2030-test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2031-test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2032-test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2033-test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2034-test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2035-
2036-
2037-# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2038-if test "${enable_libtool_lock+set}" = set; then
2039- enableval="$enable_libtool_lock"
2040- :
2041-fi
2042-
2043-test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2044-test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2045-
2046-# Check whether --with-pic or --without-pic was given.
2047-if test "${with_pic+set}" = set; then
2048- withval="$with_pic"
2049- pic_mode="$withval"
2050-else
2051- pic_mode=default
2052-fi
2053-
2054-test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2055-test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2056-
2057-# Some flags need to be propagated to the compiler or linker for good
2058-# libtool support.
2059-case "$host" in
2060-*-*-irix6*)
2061- # Find out which ABI we are using.
2062- echo '#line 2063 "configure"' > conftest.$ac_ext
2063- if { (eval echo configure:2064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2064- case "`/usr/bin/file conftest.o`" in
2065- *32-bit*)
2066- LD="${LD-ld} -32"
2067- ;;
2068- *N32*)
2069- LD="${LD-ld} -n32"
2070- ;;
2071- *64-bit*)
2072- LD="${LD-ld} -64"
2073- ;;
2074- esac
2075- fi
2076- rm -rf conftest*
2077- ;;
2078-
2079-*-*-sco3.2v5*)
2080- # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2081- SAVE_CFLAGS="$CFLAGS"
2082- CFLAGS="$CFLAGS -belf"
2083- echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2084-echo "configure:2085: checking whether the C compiler needs -belf" >&5
2085-if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2086- echo $ac_n "(cached) $ac_c" 1>&6
2087-else
2088-
2089- ac_ext=c
2090-# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2091-ac_cpp='$CPP $CPPFLAGS'
2092-ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2093-ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2094-cross_compiling=$ac_cv_prog_cc_cross
2095-
2096- cat > conftest.$ac_ext <<EOF
2097-#line 2098 "configure"
2098-#include "confdefs.h"
2099-
2100-int main() {
2101-
2102-; return 0; }
2103-EOF
2104-if { (eval echo configure:2105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2105- rm -rf conftest*
2106- lt_cv_cc_needs_belf=yes
2107-else
2108- echo "configure: failed program was:" >&5
2109- cat conftest.$ac_ext >&5
2110- rm -rf conftest*
2111- lt_cv_cc_needs_belf=no
2112-fi
2113-rm -f conftest*
2114- ac_ext=c
2115-# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2116-ac_cpp='$CPP $CPPFLAGS'
2117-ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2118-ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2119-cross_compiling=$ac_cv_prog_cc_cross
2120-
2121-fi
2122-
2123-echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2124- if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2125- # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2126- CFLAGS="$SAVE_CFLAGS"
2127- fi
2128- ;;
2129-
2130-
2131-esac
2132-
2133-
2134-# Save cache, so that ltconfig can load it
2135-cat > confcache <<\EOF
2136-# This file is a shell script that caches the results of configure
2137-# tests run on this system so they can be shared between configure
2138-# scripts and configure runs. It is not useful on other systems.
2139-# If it contains results you don't want to keep, you may remove or edit it.
2140-#
2141-# By default, configure uses ./config.cache as the cache file,
2142-# creating it if it does not exist already. You can give configure
2143-# the --cache-file=FILE option to use a different cache file; that is
2144-# what configure does when it calls configure scripts in
2145-# subdirectories, so they share the cache.
2146-# Giving --cache-file=/dev/null disables caching, for debugging configure.
2147-# config.status only pays attention to the cache file if you give it the
2148-# --recheck option to rerun configure.
2149-#
2150-EOF
2151-# The following way of writing the cache mishandles newlines in values,
2152-# but we know of no workaround that is simple, portable, and efficient.
2153-# So, don't put newlines in cache variables' values.
2154-# Ultrix sh set writes to stderr and can't be redirected directly,
2155-# and sets the high bit in the cache file unless we assign to the vars.
2156-(set) 2>&1 |
2157- case `(ac_space=' '; set | grep ac_space) 2>&1` in
2158- *ac_space=\ *)
2159- # `set' does not quote correctly, so add quotes (double-quote substitution
2160- # turns \\\\ into \\, and sed turns \\ into \).
2161- sed -n \
2162- -e "s/'/'\\\\''/g" \
2163- -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2164- ;;
2165- *)
2166- # `set' quotes correctly as required by POSIX, so do not add quotes.
2167- sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2168- ;;
2169- esac >> confcache
2170-if cmp -s $cache_file confcache; then
2171- :
2172-else
2173- if test -w $cache_file; then
2174- echo "updating cache $cache_file"
2175- cat confcache > $cache_file
2176- else
2177- echo "not updating unwritable cache $cache_file"
2178- fi
2179-fi
2180-rm -f confcache
2181-
2182-
2183-# Actually configure libtool. ac_aux_dir is where install-sh is found.
2184-AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2185-MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2186-LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2187-AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2188-objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2189-deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2190-${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2191-$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2192-|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2193-
2194-# Reload cache, that may have been modified by ltconfig
2195-if test -r "$cache_file"; then
2196- echo "loading cache $cache_file"
2197- . $cache_file
2198-else
2199- echo "creating cache $cache_file"
2200- > $cache_file
2201-fi
2202-
2203-
2204-# This can be used to rebuild libtool when needed
2205-LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2206-
2207-# Always use our own libtool.
2208-LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2209-
2210-# Redirect the config.log output again, so that the ltconfig log is not
2211-# clobbered by the next message.
2212-exec 5>>./config.log
2213-
2214-
2215-
2216-
2217-
2218-
2219-
2220-
2221-# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
2222-if test "${enable_64_bit_bfd+set}" = set; then
2223- enableval="$enable_64_bit_bfd"
2224- case "${enableval}" in
2225- yes) want64=true ;;
2226- no) want64=false ;;
2227- *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;;
2228-esac
2229-else
2230- want64=false
2231-fi
2232-# Check whether --enable-targets or --disable-targets was given.
2233-if test "${enable_targets+set}" = set; then
2234- enableval="$enable_targets"
2235- case "${enableval}" in
2236- yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
2237- ;;
2238- no) enable_targets= ;;
2239- *) enable_targets=$enableval ;;
2240-esac
2241-fi
2242-# Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
2243-if test "${enable_commonbfdlib+set}" = set; then
2244- enableval="$enable_commonbfdlib"
2245- case "${enableval}" in
2246- yes) commonbfdlib=true ;;
2247- no) commonbfdlib=false ;;
2248- *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
2249-esac
2250-fi
2251-# Check whether --with-mmap or --without-mmap was given.
2252-if test "${with_mmap+set}" = set; then
2253- withval="$with_mmap"
2254- case "${withval}" in
2255- yes) want_mmap=true ;;
2256- no) want_mmap=false ;;
2257- *) { echo "configure: error: bad value ${withval} for BFD with-mmap option" 1>&2; exit 1; } ;;
2258-esac
2259-else
2260- want_mmap=false
2261-fi
2262-
2263-build_warnings="-W -Wall"
2264-# Check whether --enable-build-warnings or --disable-build-warnings was given.
2265-if test "${enable_build_warnings+set}" = set; then
2266- enableval="$enable_build_warnings"
2267- case "${enableval}" in
2268- yes) ;;
2269- no) build_warnings="-w";;
2270- ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
2271- build_warnings="${build_warnings} ${t}";;
2272- *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
2273- build_warnings="${t} ${build_warnings}";;
2274- *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2275-esac
2276-if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
2277- echo "Setting warning flags = $build_warnings" 6>&1
2278-fi
2279-fi
2280-WARN_CFLAGS=""
2281-if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
2282- WARN_CFLAGS="${build_warnings}"
2283-fi
2284-
2285-
2286-
2287-
2288-
2289-
2290-if test -z "$target" ; then
2291- { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
2292-fi
2293-if test "$program_transform_name" = s,x,x,; then
2294- program_transform_name=
2295-else
2296- # Double any \ or $. echo might interpret backslashes.
2297- cat <<\EOF_SED > conftestsed
2298-s,\\,\\\\,g; s,\$,$$,g
2299-EOF_SED
2300- program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
2301- rm -f conftestsed
2302-fi
2303-test "$program_prefix" != NONE &&
2304- program_transform_name="s,^,${program_prefix},; $program_transform_name"
2305-# Use a double $ so make ignores it.
2306-test "$program_suffix" != NONE &&
2307- program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
2308-
2309-# sed with no file args requires a program.
2310-test "$program_transform_name" = "" && program_transform_name="s,x,x,"
2311-
2312-
2313-echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2314-echo "configure:2315: checking whether to enable maintainer-specific portions of Makefiles" >&5
2315- # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2316-if test "${enable_maintainer_mode+set}" = set; then
2317- enableval="$enable_maintainer_mode"
2318- USE_MAINTAINER_MODE=$enableval
2319-else
2320- USE_MAINTAINER_MODE=no
2321-fi
2322-
2323- echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2324-
2325-
2326-if test $USE_MAINTAINER_MODE = yes; then
2327- MAINTAINER_MODE_TRUE=
2328- MAINTAINER_MODE_FALSE='#'
2329-else
2330- MAINTAINER_MODE_TRUE='#'
2331- MAINTAINER_MODE_FALSE=
2332-fi
2333- MAINT=$MAINTAINER_MODE_TRUE
2334-
2335-
2336-
2337-
2338-echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2339-echo "configure:2340: checking for executable suffix" >&5
2340-if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2341- echo $ac_n "(cached) $ac_c" 1>&6
2342-else
2343- if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2344- ac_cv_exeext=.exe
2345-else
2346- rm -f conftest*
2347- echo 'int main () { return 0; }' > conftest.$ac_ext
2348- ac_cv_exeext=
2349- if { (eval echo configure:2350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2350- for file in conftest.*; do
2351- case $file in
2352- *.c | *.o | *.obj | *.ilk | *.pdb) ;;
2353- *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2354- esac
2355- done
2356- else
2357- { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2358- fi
2359- rm -f conftest*
2360- test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2361-fi
2362-fi
2363-
2364-EXEEXT=""
2365-test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2366-echo "$ac_t""${ac_cv_exeext}" 1>&6
2367-ac_exeext=$EXEEXT
2368-
2369-
2370-host64=false
2371-target64=false
2372-
2373-# host stuff:
2374-
2375-# Extract the first word of "gcc", so it can be a program name with args.
2376-set dummy gcc; ac_word=$2
2377-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2378-echo "configure:2379: checking for $ac_word" >&5
2379-if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2380- echo $ac_n "(cached) $ac_c" 1>&6
2381-else
2382- if test -n "$CC"; then
2383- ac_cv_prog_CC="$CC" # Let the user override the test.
2384-else
2385- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2386- ac_dummy="$PATH"
2387- for ac_dir in $ac_dummy; do
2388- test -z "$ac_dir" && ac_dir=.
2389- if test -f $ac_dir/$ac_word; then
2390- ac_cv_prog_CC="gcc"
2391- break
2392- fi
2393- done
2394- IFS="$ac_save_ifs"
2395-fi
2396-fi
2397-CC="$ac_cv_prog_CC"
2398-if test -n "$CC"; then
2399- echo "$ac_t""$CC" 1>&6
2400-else
2401- echo "$ac_t""no" 1>&6
2402-fi
2403-
2404-if test -z "$CC"; then
2405- # Extract the first word of "cc", so it can be a program name with args.
2406-set dummy cc; ac_word=$2
2407-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2408-echo "configure:2409: checking for $ac_word" >&5
2409-if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2410- echo $ac_n "(cached) $ac_c" 1>&6
2411-else
2412- if test -n "$CC"; then
2413- ac_cv_prog_CC="$CC" # Let the user override the test.
2414-else
2415- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2416- ac_prog_rejected=no
2417- ac_dummy="$PATH"
2418- for ac_dir in $ac_dummy; do
2419- test -z "$ac_dir" && ac_dir=.
2420- if test -f $ac_dir/$ac_word; then
2421- if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2422- ac_prog_rejected=yes
2423- continue
2424- fi
2425- ac_cv_prog_CC="cc"
2426- break
2427- fi
2428- done
2429- IFS="$ac_save_ifs"
2430-if test $ac_prog_rejected = yes; then
2431- # We found a bogon in the path, so make sure we never use it.
2432- set dummy $ac_cv_prog_CC
2433- shift
2434- if test $# -gt 0; then
2435- # We chose a different compiler from the bogus one.
2436- # However, it has the same basename, so the bogon will be chosen
2437- # first if we set CC to just the basename; use the full file name.
2438- shift
2439- set dummy "$ac_dir/$ac_word" "$@"
2440- shift
2441- ac_cv_prog_CC="$@"
2442- fi
2443-fi
2444-fi
2445-fi
2446-CC="$ac_cv_prog_CC"
2447-if test -n "$CC"; then
2448- echo "$ac_t""$CC" 1>&6
2449-else
2450- echo "$ac_t""no" 1>&6
2451-fi
2452-
2453- if test -z "$CC"; then
2454- case "`uname -s`" in
2455- *win32* | *WIN32*)
2456- # Extract the first word of "cl", so it can be a program name with args.
2457-set dummy cl; ac_word=$2
2458-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2459-echo "configure:2460: checking for $ac_word" >&5
2460-if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2461- echo $ac_n "(cached) $ac_c" 1>&6
2462-else
2463- if test -n "$CC"; then
2464- ac_cv_prog_CC="$CC" # Let the user override the test.
2465-else
2466- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2467- ac_dummy="$PATH"
2468- for ac_dir in $ac_dummy; do
2469- test -z "$ac_dir" && ac_dir=.
2470- if test -f $ac_dir/$ac_word; then
2471- ac_cv_prog_CC="cl"
2472- break
2473- fi
2474- done
2475- IFS="$ac_save_ifs"
2476-fi
2477-fi
2478-CC="$ac_cv_prog_CC"
2479-if test -n "$CC"; then
2480- echo "$ac_t""$CC" 1>&6
2481-else
2482- echo "$ac_t""no" 1>&6
2483-fi
2484- ;;
2485- esac
2486- fi
2487- test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2488-fi
2489-
2490-echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2491-echo "configure:2492: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2492-
2493-ac_ext=c
2494-# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2495-ac_cpp='$CPP $CPPFLAGS'
2496-ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2497-ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2498-cross_compiling=$ac_cv_prog_cc_cross
2499-
2500-cat > conftest.$ac_ext << EOF
2501-
2502-#line 2503 "configure"
2503-#include "confdefs.h"
2504-
2505-main(){return(0);}
2506-EOF
2507-if { (eval echo configure:2508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2508- ac_cv_prog_cc_works=yes
2509- # If we can't run a trivial program, we are probably using a cross compiler.
2510- if (./conftest; exit) 2>/dev/null; then
2511- ac_cv_prog_cc_cross=no
2512- else
2513- ac_cv_prog_cc_cross=yes
2514- fi
2515-else
2516- echo "configure: failed program was:" >&5
2517- cat conftest.$ac_ext >&5
2518- ac_cv_prog_cc_works=no
2519-fi
2520-rm -fr conftest*
2521-ac_ext=c
2522-# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2523-ac_cpp='$CPP $CPPFLAGS'
2524-ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2525-ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2526-cross_compiling=$ac_cv_prog_cc_cross
2527-
2528-echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2529-if test $ac_cv_prog_cc_works = no; then
2530- { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2531-fi
2532-echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2533-echo "configure:2534: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2534-echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2535-cross_compiling=$ac_cv_prog_cc_cross
2536-
2537-echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2538-echo "configure:2539: checking whether we are using GNU C" >&5
2539-if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2540- echo $ac_n "(cached) $ac_c" 1>&6
2541-else
2542- cat > conftest.c <<EOF
2543-#ifdef __GNUC__
2544- yes;
2545-#endif
2546-EOF
2547-if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2548- ac_cv_prog_gcc=yes
2549-else
2550- ac_cv_prog_gcc=no
2551-fi
2552-fi
2553-
2554-echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2555-
2556-if test $ac_cv_prog_gcc = yes; then
2557- GCC=yes
2558-else
2559- GCC=
2560-fi
2561-
2562-ac_test_CFLAGS="${CFLAGS+set}"
2563-ac_save_CFLAGS="$CFLAGS"
2564-CFLAGS=
2565-echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2566-echo "configure:2567: checking whether ${CC-cc} accepts -g" >&5
2567-if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2568- echo $ac_n "(cached) $ac_c" 1>&6
2569-else
2570- echo 'void f(){}' > conftest.c
2571-if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2572- ac_cv_prog_cc_g=yes
2573-else
2574- ac_cv_prog_cc_g=no
2575-fi
2576-rm -f conftest*
2577-
2578-fi
2579-
2580-echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2581-if test "$ac_test_CFLAGS" = set; then
2582- CFLAGS="$ac_save_CFLAGS"
2583-elif test $ac_cv_prog_cc_g = yes; then
2584- if test "$GCC" = yes; then
2585- CFLAGS="-g -O2"
2586- else
2587- CFLAGS="-g"
2588- fi
2589-else
2590- if test "$GCC" = yes; then
2591- CFLAGS="-O2"
2592- else
2593- CFLAGS=
2594- fi
2595-fi
2596-
2597-
2598-ALL_LINGUAS=
2599-echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2600-echo "configure:2601: checking how to run the C preprocessor" >&5
2601-# On Suns, sometimes $CPP names a directory.
2602-if test -n "$CPP" && test -d "$CPP"; then
2603- CPP=
2604-fi
2605-if test -z "$CPP"; then
2606-if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2607- echo $ac_n "(cached) $ac_c" 1>&6
2608-else
2609- # This must be in double quotes, not single quotes, because CPP may get
2610- # substituted into the Makefile and "${CC-cc}" will confuse make.
2611- CPP="${CC-cc} -E"
2612- # On the NeXT, cc -E runs the code through the compiler's parser,
2613- # not just through cpp.
2614- cat > conftest.$ac_ext <<EOF
2615-#line 2616 "configure"
2616-#include "confdefs.h"
2617-#include <assert.h>
2618-Syntax Error
2619-EOF
2620-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2621-{ (eval echo configure:2622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2622-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2623-if test -z "$ac_err"; then
2624- :
2625-else
2626- echo "$ac_err" >&5
2627- echo "configure: failed program was:" >&5
2628- cat conftest.$ac_ext >&5
2629- rm -rf conftest*
2630- CPP="${CC-cc} -E -traditional-cpp"
2631- cat > conftest.$ac_ext <<EOF
2632-#line 2633 "configure"
2633-#include "confdefs.h"
2634-#include <assert.h>
2635-Syntax Error
2636-EOF
2637-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2638-{ (eval echo configure:2639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2639-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2640-if test -z "$ac_err"; then
2641- :
2642-else
2643- echo "$ac_err" >&5
2644- echo "configure: failed program was:" >&5
2645- cat conftest.$ac_ext >&5
2646- rm -rf conftest*
2647- CPP="${CC-cc} -nologo -E"
2648- cat > conftest.$ac_ext <<EOF
2649-#line 2650 "configure"
2650-#include "confdefs.h"
2651-#include <assert.h>
2652-Syntax Error
2653-EOF
2654-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2655-{ (eval echo configure:2656: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2656-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2657-if test -z "$ac_err"; then
2658- :
2659-else
2660- echo "$ac_err" >&5
2661- echo "configure: failed program was:" >&5
2662- cat conftest.$ac_ext >&5
2663- rm -rf conftest*
2664- CPP=/lib/cpp
2665-fi
2666-rm -f conftest*
2667-fi
2668-rm -f conftest*
2669-fi
2670-rm -f conftest*
2671- ac_cv_prog_CPP="$CPP"
2672-fi
2673- CPP="$ac_cv_prog_CPP"
2674-else
2675- ac_cv_prog_CPP="$CPP"
2676-fi
2677-echo "$ac_t""$CPP" 1>&6
2678-
2679-# Extract the first word of "ranlib", so it can be a program name with args.
2680-set dummy ranlib; ac_word=$2
2681-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2682-echo "configure:2683: checking for $ac_word" >&5
2683-if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2684- echo $ac_n "(cached) $ac_c" 1>&6
2685-else
2686- if test -n "$RANLIB"; then
2687- ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2688-else
2689- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2690- ac_dummy="$PATH"
2691- for ac_dir in $ac_dummy; do
2692- test -z "$ac_dir" && ac_dir=.
2693- if test -f $ac_dir/$ac_word; then
2694- ac_cv_prog_RANLIB="ranlib"
2695- break
2696- fi
2697- done
2698- IFS="$ac_save_ifs"
2699- test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2700-fi
2701-fi
2702-RANLIB="$ac_cv_prog_RANLIB"
2703-if test -n "$RANLIB"; then
2704- echo "$ac_t""$RANLIB" 1>&6
2705-else
2706- echo "$ac_t""no" 1>&6
2707-fi
2708-
2709-echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2710-echo "configure:2711: checking for ANSI C header files" >&5
2711-if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2712- echo $ac_n "(cached) $ac_c" 1>&6
2713-else
2714- cat > conftest.$ac_ext <<EOF
2715-#line 2716 "configure"
2716-#include "confdefs.h"
2717-#include <stdlib.h>
2718-#include <stdarg.h>
2719-#include <string.h>
2720-#include <float.h>
2721-EOF
2722-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2723-{ (eval echo configure:2724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2724-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2725-if test -z "$ac_err"; then
2726- rm -rf conftest*
2727- ac_cv_header_stdc=yes
2728-else
2729- echo "$ac_err" >&5
2730- echo "configure: failed program was:" >&5
2731- cat conftest.$ac_ext >&5
2732- rm -rf conftest*
2733- ac_cv_header_stdc=no
2734-fi
2735-rm -f conftest*
2736-
2737-if test $ac_cv_header_stdc = yes; then
2738- # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2739-cat > conftest.$ac_ext <<EOF
2740-#line 2741 "configure"
2741-#include "confdefs.h"
2742-#include <string.h>
2743-EOF
2744-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2745- egrep "memchr" >/dev/null 2>&1; then
2746- :
2747-else
2748- rm -rf conftest*
2749- ac_cv_header_stdc=no
2750-fi
2751-rm -f conftest*
2752-
2753-fi
2754-
2755-if test $ac_cv_header_stdc = yes; then
2756- # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2757-cat > conftest.$ac_ext <<EOF
2758-#line 2759 "configure"
2759-#include "confdefs.h"
2760-#include <stdlib.h>
2761-EOF
2762-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2763- egrep "free" >/dev/null 2>&1; then
2764- :
2765-else
2766- rm -rf conftest*
2767- ac_cv_header_stdc=no
2768-fi
2769-rm -f conftest*
2770-
2771-fi
2772-
2773-if test $ac_cv_header_stdc = yes; then
2774- # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2775-if test "$cross_compiling" = yes; then
2776- :
2777-else
2778- cat > conftest.$ac_ext <<EOF
2779-#line 2780 "configure"
2780-#include "confdefs.h"
2781-#include <ctype.h>
2782-#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2783-#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2784-#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2785-int main () { int i; for (i = 0; i < 256; i++)
2786-if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2787-exit (0); }
2788-
2789-EOF
2790-if { (eval echo configure:2791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2791-then
2792- :
2793-else
2794- echo "configure: failed program was:" >&5
2795- cat conftest.$ac_ext >&5
2796- rm -fr conftest*
2797- ac_cv_header_stdc=no
2798-fi
2799-rm -fr conftest*
2800-fi
2801-
2802-fi
2803-fi
2804-
2805-echo "$ac_t""$ac_cv_header_stdc" 1>&6
2806-if test $ac_cv_header_stdc = yes; then
2807- cat >> confdefs.h <<\EOF
2808-#define STDC_HEADERS 1
2809-EOF
2810-
2811-fi
2812-
2813-echo $ac_n "checking for working const""... $ac_c" 1>&6
2814-echo "configure:2815: checking for working const" >&5
2815-if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2816- echo $ac_n "(cached) $ac_c" 1>&6
2817-else
2818- cat > conftest.$ac_ext <<EOF
2819-#line 2820 "configure"
2820-#include "confdefs.h"
2821-
2822-int main() {
2823-
2824-/* Ultrix mips cc rejects this. */
2825-typedef int charset[2]; const charset x;
2826-/* SunOS 4.1.1 cc rejects this. */
2827-char const *const *ccp;
2828-char **p;
2829-/* NEC SVR4.0.2 mips cc rejects this. */
2830-struct point {int x, y;};
2831-static struct point const zero = {0,0};
2832-/* AIX XL C 1.02.0.0 rejects this.
2833- It does not let you subtract one const X* pointer from another in an arm
2834- of an if-expression whose if-part is not a constant expression */
2835-const char *g = "string";
2836-ccp = &g + (g ? g-g : 0);
2837-/* HPUX 7.0 cc rejects these. */
2838-++ccp;
2839-p = (char**) ccp;
2840-ccp = (char const *const *) p;
2841-{ /* SCO 3.2v4 cc rejects this. */
2842- char *t;
2843- char const *s = 0 ? (char *) 0 : (char const *) 0;
2844-
2845- *t++ = 0;
2846-}
2847-{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2848- int x[] = {25, 17};
2849- const int *foo = &x[0];
2850- ++foo;
2851-}
2852-{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2853- typedef const int *iptr;
2854- iptr p = 0;
2855- ++p;
2856-}
2857-{ /* AIX XL C 1.02.0.0 rejects this saying
2858- "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2859- struct s { int j; const int *ap[3]; };
2860- struct s *b; b->j = 5;
2861-}
2862-{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2863- const int foo = 10;
2864-}
2865-
2866-; return 0; }
2867-EOF
2868-if { (eval echo configure:2869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2869- rm -rf conftest*
2870- ac_cv_c_const=yes
2871-else
2872- echo "configure: failed program was:" >&5
2873- cat conftest.$ac_ext >&5
2874- rm -rf conftest*
2875- ac_cv_c_const=no
2876-fi
2877-rm -f conftest*
2878-fi
2879-
2880-echo "$ac_t""$ac_cv_c_const" 1>&6
2881-if test $ac_cv_c_const = no; then
2882- cat >> confdefs.h <<\EOF
2883-#define const
2884-EOF
2885-
2886-fi
2887-
2888-echo $ac_n "checking for inline""... $ac_c" 1>&6
2889-echo "configure:2890: checking for inline" >&5
2890-if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2891- echo $ac_n "(cached) $ac_c" 1>&6
2892-else
2893- ac_cv_c_inline=no
2894-for ac_kw in inline __inline__ __inline; do
2895- cat > conftest.$ac_ext <<EOF
2896-#line 2897 "configure"
2897-#include "confdefs.h"
2898-
2899-int main() {
2900-} $ac_kw foo() {
2901-; return 0; }
2902-EOF
2903-if { (eval echo configure:2904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2904- rm -rf conftest*
2905- ac_cv_c_inline=$ac_kw; break
2906-else
2907- echo "configure: failed program was:" >&5
2908- cat conftest.$ac_ext >&5
2909-fi
2910-rm -f conftest*
2911-done
2912-
2913-fi
2914-
2915-echo "$ac_t""$ac_cv_c_inline" 1>&6
2916-case "$ac_cv_c_inline" in
2917- inline | yes) ;;
2918- no) cat >> confdefs.h <<\EOF
2919-#define inline
2920-EOF
2921- ;;
2922- *) cat >> confdefs.h <<EOF
2923-#define inline $ac_cv_c_inline
2924-EOF
2925- ;;
2926-esac
2927-
2928-echo $ac_n "checking for off_t""... $ac_c" 1>&6
2929-echo "configure:2930: checking for off_t" >&5
2930-if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2931- echo $ac_n "(cached) $ac_c" 1>&6
2932-else
2933- cat > conftest.$ac_ext <<EOF
2934-#line 2935 "configure"
2935-#include "confdefs.h"
2936-#include <sys/types.h>
2937-#if STDC_HEADERS
2938-#include <stdlib.h>
2939-#include <stddef.h>
2940-#endif
2941-EOF
2942-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2943- egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2944- rm -rf conftest*
2945- ac_cv_type_off_t=yes
2946-else
2947- rm -rf conftest*
2948- ac_cv_type_off_t=no
2949-fi
2950-rm -f conftest*
2951-
2952-fi
2953-echo "$ac_t""$ac_cv_type_off_t" 1>&6
2954-if test $ac_cv_type_off_t = no; then
2955- cat >> confdefs.h <<\EOF
2956-#define off_t long
2957-EOF
2958-
2959-fi
2960-
2961-echo $ac_n "checking for size_t""... $ac_c" 1>&6
2962-echo "configure:2963: checking for size_t" >&5
2963-if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2964- echo $ac_n "(cached) $ac_c" 1>&6
2965-else
2966- cat > conftest.$ac_ext <<EOF
2967-#line 2968 "configure"
2968-#include "confdefs.h"
2969-#include <sys/types.h>
2970-#if STDC_HEADERS
2971-#include <stdlib.h>
2972-#include <stddef.h>
2973-#endif
2974-EOF
2975-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2976- egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2977- rm -rf conftest*
2978- ac_cv_type_size_t=yes
2979-else
2980- rm -rf conftest*
2981- ac_cv_type_size_t=no
2982-fi
2983-rm -f conftest*
2984-
2985-fi
2986-echo "$ac_t""$ac_cv_type_size_t" 1>&6
2987-if test $ac_cv_type_size_t = no; then
2988- cat >> confdefs.h <<\EOF
2989-#define size_t unsigned
2990-EOF
2991-
2992-fi
2993-
2994-# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2995-# for constant arguments. Useless!
2996-echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2997-echo "configure:2998: checking for working alloca.h" >&5
2998-if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2999- echo $ac_n "(cached) $ac_c" 1>&6
3000-else
3001- cat > conftest.$ac_ext <<EOF
3002-#line 3003 "configure"
3003-#include "confdefs.h"
3004-#include <alloca.h>
3005-int main() {
3006-char *p = alloca(2 * sizeof(int));
3007-; return 0; }
3008-EOF
3009-if { (eval echo configure:3010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3010- rm -rf conftest*
3011- ac_cv_header_alloca_h=yes
3012-else
3013- echo "configure: failed program was:" >&5
3014- cat conftest.$ac_ext >&5
3015- rm -rf conftest*
3016- ac_cv_header_alloca_h=no
3017-fi
3018-rm -f conftest*
3019-fi
3020-
3021-echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3022-if test $ac_cv_header_alloca_h = yes; then
3023- cat >> confdefs.h <<\EOF
3024-#define HAVE_ALLOCA_H 1
3025-EOF
3026-
3027-fi
3028-
3029-echo $ac_n "checking for alloca""... $ac_c" 1>&6
3030-echo "configure:3031: checking for alloca" >&5
3031-if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3032- echo $ac_n "(cached) $ac_c" 1>&6
3033-else
3034- cat > conftest.$ac_ext <<EOF
3035-#line 3036 "configure"
3036-#include "confdefs.h"
3037-
3038-#ifdef __GNUC__
3039-# define alloca __builtin_alloca
3040-#else
3041-# ifdef _MSC_VER
3042-# include <malloc.h>
3043-# define alloca _alloca
3044-# else
3045-# if HAVE_ALLOCA_H
3046-# include <alloca.h>
3047-# else
3048-# ifdef _AIX
3049- #pragma alloca
3050-# else
3051-# ifndef alloca /* predefined by HP cc +Olibcalls */
3052-char *alloca ();
3053-# endif
3054-# endif
3055-# endif
3056-# endif
3057-#endif
3058-
3059-int main() {
3060-char *p = (char *) alloca(1);
3061-; return 0; }
3062-EOF
3063-if { (eval echo configure:3064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3064- rm -rf conftest*
3065- ac_cv_func_alloca_works=yes
3066-else
3067- echo "configure: failed program was:" >&5
3068- cat conftest.$ac_ext >&5
3069- rm -rf conftest*
3070- ac_cv_func_alloca_works=no
3071-fi
3072-rm -f conftest*
3073-fi
3074-
3075-echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3076-if test $ac_cv_func_alloca_works = yes; then
3077- cat >> confdefs.h <<\EOF
3078-#define HAVE_ALLOCA 1
3079-EOF
3080-
3081-fi
3082-
3083-if test $ac_cv_func_alloca_works = no; then
3084- # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3085- # that cause trouble. Some versions do not even contain alloca or
3086- # contain a buggy version. If you still want to use their alloca,
3087- # use ar to extract alloca.o from them instead of compiling alloca.c.
3088- ALLOCA=alloca.${ac_objext}
3089- cat >> confdefs.h <<\EOF
3090-#define C_ALLOCA 1
3091-EOF
3092-
3093-
3094-echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3095-echo "configure:3096: checking whether alloca needs Cray hooks" >&5
3096-if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3097- echo $ac_n "(cached) $ac_c" 1>&6
3098-else
3099- cat > conftest.$ac_ext <<EOF
3100-#line 3101 "configure"
3101-#include "confdefs.h"
3102-#if defined(CRAY) && ! defined(CRAY2)
3103-webecray
3104-#else
3105-wenotbecray
3106-#endif
3107-
3108-EOF
3109-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3110- egrep "webecray" >/dev/null 2>&1; then
3111- rm -rf conftest*
3112- ac_cv_os_cray=yes
3113-else
3114- rm -rf conftest*
3115- ac_cv_os_cray=no
3116-fi
3117-rm -f conftest*
3118-
3119-fi
3120-
3121-echo "$ac_t""$ac_cv_os_cray" 1>&6
3122-if test $ac_cv_os_cray = yes; then
3123-for ac_func in _getb67 GETB67 getb67; do
3124- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3125-echo "configure:3126: checking for $ac_func" >&5
3126-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3127- echo $ac_n "(cached) $ac_c" 1>&6
3128-else
3129- cat > conftest.$ac_ext <<EOF
3130-#line 3131 "configure"
3131-#include "confdefs.h"
3132-/* System header to define __stub macros and hopefully few prototypes,
3133- which can conflict with char $ac_func(); below. */
3134-#include <assert.h>
3135-/* Override any gcc2 internal prototype to avoid an error. */
3136-/* We use char because int might match the return type of a gcc2
3137- builtin and then its argument prototype would still apply. */
3138-char $ac_func();
3139-
3140-int main() {
3141-
3142-/* The GNU C library defines this for functions which it implements
3143- to always fail with ENOSYS. Some functions are actually named
3144- something starting with __ and the normal name is an alias. */
3145-#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3146-choke me
3147-#else
3148-$ac_func();
3149-#endif
3150-
3151-; return 0; }
3152-EOF
3153-if { (eval echo configure:3154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3154- rm -rf conftest*
3155- eval "ac_cv_func_$ac_func=yes"
3156-else
3157- echo "configure: failed program was:" >&5
3158- cat conftest.$ac_ext >&5
3159- rm -rf conftest*
3160- eval "ac_cv_func_$ac_func=no"
3161-fi
3162-rm -f conftest*
3163-fi
3164-
3165-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3166- echo "$ac_t""yes" 1>&6
3167- cat >> confdefs.h <<EOF
3168-#define CRAY_STACKSEG_END $ac_func
3169-EOF
3170-
3171- break
3172-else
3173- echo "$ac_t""no" 1>&6
3174-fi
3175-
3176-done
3177-fi
3178-
3179-echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3180-echo "configure:3181: checking stack direction for C alloca" >&5
3181-if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3182- echo $ac_n "(cached) $ac_c" 1>&6
3183-else
3184- if test "$cross_compiling" = yes; then
3185- ac_cv_c_stack_direction=0
3186-else
3187- cat > conftest.$ac_ext <<EOF
3188-#line 3189 "configure"
3189-#include "confdefs.h"
3190-find_stack_direction ()
3191-{
3192- static char *addr = 0;
3193- auto char dummy;
3194- if (addr == 0)
3195- {
3196- addr = &dummy;
3197- return find_stack_direction ();
3198- }
3199- else
3200- return (&dummy > addr) ? 1 : -1;
3201-}
3202-main ()
3203-{
3204- exit (find_stack_direction() < 0);
3205-}
3206-EOF
3207-if { (eval echo configure:3208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3208-then
3209- ac_cv_c_stack_direction=1
3210-else
3211- echo "configure: failed program was:" >&5
3212- cat conftest.$ac_ext >&5
3213- rm -fr conftest*
3214- ac_cv_c_stack_direction=-1
3215-fi
3216-rm -fr conftest*
3217-fi
3218-
3219-fi
3220-
3221-echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3222-cat >> confdefs.h <<EOF
3223-#define STACK_DIRECTION $ac_cv_c_stack_direction
3224-EOF
3225-
3226-fi
3227-
3228-for ac_hdr in unistd.h
3229-do
3230-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3231-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3232-echo "configure:3233: checking for $ac_hdr" >&5
3233-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3234- echo $ac_n "(cached) $ac_c" 1>&6
3235-else
3236- cat > conftest.$ac_ext <<EOF
3237-#line 3238 "configure"
3238-#include "confdefs.h"
3239-#include <$ac_hdr>
3240-EOF
3241-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3242-{ (eval echo configure:3243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3243-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3244-if test -z "$ac_err"; then
3245- rm -rf conftest*
3246- eval "ac_cv_header_$ac_safe=yes"
3247-else
3248- echo "$ac_err" >&5
3249- echo "configure: failed program was:" >&5
3250- cat conftest.$ac_ext >&5
3251- rm -rf conftest*
3252- eval "ac_cv_header_$ac_safe=no"
3253-fi
3254-rm -f conftest*
3255-fi
3256-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3257- echo "$ac_t""yes" 1>&6
3258- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3259- cat >> confdefs.h <<EOF
3260-#define $ac_tr_hdr 1
3261-EOF
3262-
3263-else
3264- echo "$ac_t""no" 1>&6
3265-fi
3266-done
3267-
3268-for ac_func in getpagesize
3269-do
3270-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3271-echo "configure:3272: checking for $ac_func" >&5
3272-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3273- echo $ac_n "(cached) $ac_c" 1>&6
3274-else
3275- cat > conftest.$ac_ext <<EOF
3276-#line 3277 "configure"
3277-#include "confdefs.h"
3278-/* System header to define __stub macros and hopefully few prototypes,
3279- which can conflict with char $ac_func(); below. */
3280-#include <assert.h>
3281-/* Override any gcc2 internal prototype to avoid an error. */
3282-/* We use char because int might match the return type of a gcc2
3283- builtin and then its argument prototype would still apply. */
3284-char $ac_func();
3285-
3286-int main() {
3287-
3288-/* The GNU C library defines this for functions which it implements
3289- to always fail with ENOSYS. Some functions are actually named
3290- something starting with __ and the normal name is an alias. */
3291-#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3292-choke me
3293-#else
3294-$ac_func();
3295-#endif
3296-
3297-; return 0; }
3298-EOF
3299-if { (eval echo configure:3300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3300- rm -rf conftest*
3301- eval "ac_cv_func_$ac_func=yes"
3302-else
3303- echo "configure: failed program was:" >&5
3304- cat conftest.$ac_ext >&5
3305- rm -rf conftest*
3306- eval "ac_cv_func_$ac_func=no"
3307-fi
3308-rm -f conftest*
3309-fi
3310-
3311-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3312- echo "$ac_t""yes" 1>&6
3313- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3314- cat >> confdefs.h <<EOF
3315-#define $ac_tr_func 1
3316-EOF
3317-
3318-else
3319- echo "$ac_t""no" 1>&6
3320-fi
3321-done
3322-
3323-echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3324-echo "configure:3325: checking for working mmap" >&5
3325-if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3326- echo $ac_n "(cached) $ac_c" 1>&6
3327-else
3328- if test "$cross_compiling" = yes; then
3329- ac_cv_func_mmap_fixed_mapped=no
3330-else
3331- cat > conftest.$ac_ext <<EOF
3332-#line 3333 "configure"
3333-#include "confdefs.h"
3334-
3335-/* Thanks to Mike Haertel and Jim Avera for this test.
3336- Here is a matrix of mmap possibilities:
3337- mmap private not fixed
3338- mmap private fixed at somewhere currently unmapped
3339- mmap private fixed at somewhere already mapped
3340- mmap shared not fixed
3341- mmap shared fixed at somewhere currently unmapped
3342- mmap shared fixed at somewhere already mapped
3343- For private mappings, we should verify that changes cannot be read()
3344- back from the file, nor mmap's back from the file at a different
3345- address. (There have been systems where private was not correctly
3346- implemented like the infamous i386 svr4.0, and systems where the
3347- VM page cache was not coherent with the filesystem buffer cache
3348- like early versions of FreeBSD and possibly contemporary NetBSD.)
3349- For shared mappings, we should conversely verify that changes get
3350- propogated back to all the places they're supposed to be.
3351-
3352- Grep wants private fixed already mapped.
3353- The main things grep needs to know about mmap are:
3354- * does it exist and is it safe to write into the mmap'd area
3355- * how to use it (BSD variants) */
3356-#include <sys/types.h>
3357-#include <fcntl.h>
3358-#include <sys/mman.h>
3359-
3360-/* This mess was copied from the GNU getpagesize.h. */
3361-#ifndef HAVE_GETPAGESIZE
3362-# ifdef HAVE_UNISTD_H
3363-# include <unistd.h>
3364-# endif
3365-
3366-/* Assume that all systems that can run configure have sys/param.h. */
3367-# ifndef HAVE_SYS_PARAM_H
3368-# define HAVE_SYS_PARAM_H 1
3369-# endif
3370-
3371-# ifdef _SC_PAGESIZE
3372-# define getpagesize() sysconf(_SC_PAGESIZE)
3373-# else /* no _SC_PAGESIZE */
3374-# ifdef HAVE_SYS_PARAM_H
3375-# include <sys/param.h>
3376-# ifdef EXEC_PAGESIZE
3377-# define getpagesize() EXEC_PAGESIZE
3378-# else /* no EXEC_PAGESIZE */
3379-# ifdef NBPG
3380-# define getpagesize() NBPG * CLSIZE
3381-# ifndef CLSIZE
3382-# define CLSIZE 1
3383-# endif /* no CLSIZE */
3384-# else /* no NBPG */
3385-# ifdef NBPC
3386-# define getpagesize() NBPC
3387-# else /* no NBPC */
3388-# ifdef PAGESIZE
3389-# define getpagesize() PAGESIZE
3390-# endif /* PAGESIZE */
3391-# endif /* no NBPC */
3392-# endif /* no NBPG */
3393-# endif /* no EXEC_PAGESIZE */
3394-# else /* no HAVE_SYS_PARAM_H */
3395-# define getpagesize() 8192 /* punt totally */
3396-# endif /* no HAVE_SYS_PARAM_H */
3397-# endif /* no _SC_PAGESIZE */
3398-
3399-#endif /* no HAVE_GETPAGESIZE */
3400-
3401-#ifdef __cplusplus
3402-extern "C" { void *malloc(unsigned); }
3403-#else
3404-char *malloc();
3405-#endif
3406-
3407-int
3408-main()
3409-{
3410- char *data, *data2, *data3;
3411- int i, pagesize;
3412- int fd;
3413-
3414- pagesize = getpagesize();
3415-
3416- /*
3417- * First, make a file with some known garbage in it.
3418- */
3419- data = malloc(pagesize);
3420- if (!data)
3421- exit(1);
3422- for (i = 0; i < pagesize; ++i)
3423- *(data + i) = rand();
3424- umask(0);
3425- fd = creat("conftestmmap", 0600);
3426- if (fd < 0)
3427- exit(1);
3428- if (write(fd, data, pagesize) != pagesize)
3429- exit(1);
3430- close(fd);
3431-
3432- /*
3433- * Next, try to mmap the file at a fixed address which
3434- * already has something else allocated at it. If we can,
3435- * also make sure that we see the same garbage.
3436- */
3437- fd = open("conftestmmap", O_RDWR);
3438- if (fd < 0)
3439- exit(1);
3440- data2 = malloc(2 * pagesize);
3441- if (!data2)
3442- exit(1);
3443- data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3444- if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3445- MAP_PRIVATE | MAP_FIXED, fd, 0L))
3446- exit(1);
3447- for (i = 0; i < pagesize; ++i)
3448- if (*(data + i) != *(data2 + i))
3449- exit(1);
3450-
3451- /*
3452- * Finally, make sure that changes to the mapped area
3453- * do not percolate back to the file as seen by read().
3454- * (This is a bug on some variants of i386 svr4.0.)
3455- */
3456- for (i = 0; i < pagesize; ++i)
3457- *(data2 + i) = *(data2 + i) + 1;
3458- data3 = malloc(pagesize);
3459- if (!data3)
3460- exit(1);
3461- if (read(fd, data3, pagesize) != pagesize)
3462- exit(1);
3463- for (i = 0; i < pagesize; ++i)
3464- if (*(data + i) != *(data3 + i))
3465- exit(1);
3466- close(fd);
3467- unlink("conftestmmap");
3468- exit(0);
3469-}
3470-
3471-EOF
3472-if { (eval echo configure:3473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3473-then
3474- ac_cv_func_mmap_fixed_mapped=yes
3475-else
3476- echo "configure: failed program was:" >&5
3477- cat conftest.$ac_ext >&5
3478- rm -fr conftest*
3479- ac_cv_func_mmap_fixed_mapped=no
3480-fi
3481-rm -fr conftest*
3482-fi
3483-
3484-fi
3485-
3486-echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3487-if test $ac_cv_func_mmap_fixed_mapped = yes; then
3488- cat >> confdefs.h <<\EOF
3489-#define HAVE_MMAP 1
3490-EOF
3491-
3492-fi
3493-
3494-
3495- for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3496-unistd.h values.h sys/param.h
3497-do
3498-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3499-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3500-echo "configure:3501: checking for $ac_hdr" >&5
3501-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3502- echo $ac_n "(cached) $ac_c" 1>&6
3503-else
3504- cat > conftest.$ac_ext <<EOF
3505-#line 3506 "configure"
3506-#include "confdefs.h"
3507-#include <$ac_hdr>
3508-EOF
3509-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3510-{ (eval echo configure:3511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3511-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3512-if test -z "$ac_err"; then
3513- rm -rf conftest*
3514- eval "ac_cv_header_$ac_safe=yes"
3515-else
3516- echo "$ac_err" >&5
3517- echo "configure: failed program was:" >&5
3518- cat conftest.$ac_ext >&5
3519- rm -rf conftest*
3520- eval "ac_cv_header_$ac_safe=no"
3521-fi
3522-rm -f conftest*
3523-fi
3524-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3525- echo "$ac_t""yes" 1>&6
3526- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3527- cat >> confdefs.h <<EOF
3528-#define $ac_tr_hdr 1
3529-EOF
3530-
3531-else
3532- echo "$ac_t""no" 1>&6
3533-fi
3534-done
3535-
3536- for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3537-__argz_count __argz_stringify __argz_next
3538-do
3539-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3540-echo "configure:3541: checking for $ac_func" >&5
3541-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3542- echo $ac_n "(cached) $ac_c" 1>&6
3543-else
3544- cat > conftest.$ac_ext <<EOF
3545-#line 3546 "configure"
3546-#include "confdefs.h"
3547-/* System header to define __stub macros and hopefully few prototypes,
3548- which can conflict with char $ac_func(); below. */
3549-#include <assert.h>
3550-/* Override any gcc2 internal prototype to avoid an error. */
3551-/* We use char because int might match the return type of a gcc2
3552- builtin and then its argument prototype would still apply. */
3553-char $ac_func();
3554-
3555-int main() {
3556-
3557-/* The GNU C library defines this for functions which it implements
3558- to always fail with ENOSYS. Some functions are actually named
3559- something starting with __ and the normal name is an alias. */
3560-#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3561-choke me
3562-#else
3563-$ac_func();
3564-#endif
3565-
3566-; return 0; }
3567-EOF
3568-if { (eval echo configure:3569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3569- rm -rf conftest*
3570- eval "ac_cv_func_$ac_func=yes"
3571-else
3572- echo "configure: failed program was:" >&5
3573- cat conftest.$ac_ext >&5
3574- rm -rf conftest*
3575- eval "ac_cv_func_$ac_func=no"
3576-fi
3577-rm -f conftest*
3578-fi
3579-
3580-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3581- echo "$ac_t""yes" 1>&6
3582- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3583- cat >> confdefs.h <<EOF
3584-#define $ac_tr_func 1
3585-EOF
3586-
3587-else
3588- echo "$ac_t""no" 1>&6
3589-fi
3590-done
3591-
3592-
3593- if test "${ac_cv_func_stpcpy+set}" != "set"; then
3594- for ac_func in stpcpy
3595-do
3596-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3597-echo "configure:3598: checking for $ac_func" >&5
3598-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3599- echo $ac_n "(cached) $ac_c" 1>&6
3600-else
3601- cat > conftest.$ac_ext <<EOF
3602-#line 3603 "configure"
3603-#include "confdefs.h"
3604-/* System header to define __stub macros and hopefully few prototypes,
3605- which can conflict with char $ac_func(); below. */
3606-#include <assert.h>
3607-/* Override any gcc2 internal prototype to avoid an error. */
3608-/* We use char because int might match the return type of a gcc2
3609- builtin and then its argument prototype would still apply. */
3610-char $ac_func();
3611-
3612-int main() {
3613-
3614-/* The GNU C library defines this for functions which it implements
3615- to always fail with ENOSYS. Some functions are actually named
3616- something starting with __ and the normal name is an alias. */
3617-#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3618-choke me
3619-#else
3620-$ac_func();
3621-#endif
3622-
3623-; return 0; }
3624-EOF
3625-if { (eval echo configure:3626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3626- rm -rf conftest*
3627- eval "ac_cv_func_$ac_func=yes"
3628-else
3629- echo "configure: failed program was:" >&5
3630- cat conftest.$ac_ext >&5
3631- rm -rf conftest*
3632- eval "ac_cv_func_$ac_func=no"
3633-fi
3634-rm -f conftest*
3635-fi
3636-
3637-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3638- echo "$ac_t""yes" 1>&6
3639- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3640- cat >> confdefs.h <<EOF
3641-#define $ac_tr_func 1
3642-EOF
3643-
3644-else
3645- echo "$ac_t""no" 1>&6
3646-fi
3647-done
3648-
3649- fi
3650- if test "${ac_cv_func_stpcpy}" = "yes"; then
3651- cat >> confdefs.h <<\EOF
3652-#define HAVE_STPCPY 1
3653-EOF
3654-
3655- fi
3656-
3657- if test $ac_cv_header_locale_h = yes; then
3658- echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3659-echo "configure:3660: checking for LC_MESSAGES" >&5
3660-if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3661- echo $ac_n "(cached) $ac_c" 1>&6
3662-else
3663- cat > conftest.$ac_ext <<EOF
3664-#line 3665 "configure"
3665-#include "confdefs.h"
3666-#include <locale.h>
3667-int main() {
3668-return LC_MESSAGES
3669-; return 0; }
3670-EOF
3671-if { (eval echo configure:3672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3672- rm -rf conftest*
3673- am_cv_val_LC_MESSAGES=yes
3674-else
3675- echo "configure: failed program was:" >&5
3676- cat conftest.$ac_ext >&5
3677- rm -rf conftest*
3678- am_cv_val_LC_MESSAGES=no
3679-fi
3680-rm -f conftest*
3681-fi
3682-
3683-echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3684- if test $am_cv_val_LC_MESSAGES = yes; then
3685- cat >> confdefs.h <<\EOF
3686-#define HAVE_LC_MESSAGES 1
3687-EOF
3688-
3689- fi
3690- fi
3691- echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3692-echo "configure:3693: checking whether NLS is requested" >&5
3693- # Check whether --enable-nls or --disable-nls was given.
3694-if test "${enable_nls+set}" = set; then
3695- enableval="$enable_nls"
3696- USE_NLS=$enableval
3697-else
3698- USE_NLS=yes
3699-fi
3700-
3701- echo "$ac_t""$USE_NLS" 1>&6
3702-
3703-
3704- USE_INCLUDED_LIBINTL=no
3705-
3706- if test "$USE_NLS" = "yes"; then
3707- cat >> confdefs.h <<\EOF
3708-#define ENABLE_NLS 1
3709-EOF
3710-
3711- echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3712-echo "configure:3713: checking whether included gettext is requested" >&5
3713- # Check whether --with-included-gettext or --without-included-gettext was given.
3714-if test "${with_included_gettext+set}" = set; then
3715- withval="$with_included_gettext"
3716- nls_cv_force_use_gnu_gettext=$withval
3717-else
3718- nls_cv_force_use_gnu_gettext=no
3719-fi
3720-
3721- echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3722-
3723- nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3724- if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3725- nls_cv_header_intl=
3726- nls_cv_header_libgt=
3727- CATOBJEXT=NONE
3728-
3729- ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3730-echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3731-echo "configure:3732: checking for libintl.h" >&5
3732-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3733- echo $ac_n "(cached) $ac_c" 1>&6
3734-else
3735- cat > conftest.$ac_ext <<EOF
3736-#line 3737 "configure"
3737-#include "confdefs.h"
3738-#include <libintl.h>
3739-EOF
3740-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3741-{ (eval echo configure:3742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3742-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3743-if test -z "$ac_err"; then
3744- rm -rf conftest*
3745- eval "ac_cv_header_$ac_safe=yes"
3746-else
3747- echo "$ac_err" >&5
3748- echo "configure: failed program was:" >&5
3749- cat conftest.$ac_ext >&5
3750- rm -rf conftest*
3751- eval "ac_cv_header_$ac_safe=no"
3752-fi
3753-rm -f conftest*
3754-fi
3755-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3756- echo "$ac_t""yes" 1>&6
3757- echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3758-echo "configure:3759: checking for gettext in libc" >&5
3759-if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3760- echo $ac_n "(cached) $ac_c" 1>&6
3761-else
3762- cat > conftest.$ac_ext <<EOF
3763-#line 3764 "configure"
3764-#include "confdefs.h"
3765-#include <libintl.h>
3766-int main() {
3767-return (int) gettext ("")
3768-; return 0; }
3769-EOF
3770-if { (eval echo configure:3771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3771- rm -rf conftest*
3772- gt_cv_func_gettext_libc=yes
3773-else
3774- echo "configure: failed program was:" >&5
3775- cat conftest.$ac_ext >&5
3776- rm -rf conftest*
3777- gt_cv_func_gettext_libc=no
3778-fi
3779-rm -f conftest*
3780-fi
3781-
3782-echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3783-
3784- if test "$gt_cv_func_gettext_libc" != "yes"; then
3785- echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3786-echo "configure:3787: checking for bindtextdomain in -lintl" >&5
3787-ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3788-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3789- echo $ac_n "(cached) $ac_c" 1>&6
3790-else
3791- ac_save_LIBS="$LIBS"
3792-LIBS="-lintl $LIBS"
3793-cat > conftest.$ac_ext <<EOF
3794-#line 3795 "configure"
3795-#include "confdefs.h"
3796-/* Override any gcc2 internal prototype to avoid an error. */
3797-/* We use char because int might match the return type of a gcc2
3798- builtin and then its argument prototype would still apply. */
3799-char bindtextdomain();
3800-
3801-int main() {
3802-bindtextdomain()
3803-; return 0; }
3804-EOF
3805-if { (eval echo configure:3806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3806- rm -rf conftest*
3807- eval "ac_cv_lib_$ac_lib_var=yes"
3808-else
3809- echo "configure: failed program was:" >&5
3810- cat conftest.$ac_ext >&5
3811- rm -rf conftest*
3812- eval "ac_cv_lib_$ac_lib_var=no"
3813-fi
3814-rm -f conftest*
3815-LIBS="$ac_save_LIBS"
3816-
3817-fi
3818-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3819- echo "$ac_t""yes" 1>&6
3820- echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3821-echo "configure:3822: checking for gettext in libintl" >&5
3822-if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3823- echo $ac_n "(cached) $ac_c" 1>&6
3824-else
3825- cat > conftest.$ac_ext <<EOF
3826-#line 3827 "configure"
3827-#include "confdefs.h"
3828-
3829-int main() {
3830-return (int) gettext ("")
3831-; return 0; }
3832-EOF
3833-if { (eval echo configure:3834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3834- rm -rf conftest*
3835- gt_cv_func_gettext_libintl=yes
3836-else
3837- echo "configure: failed program was:" >&5
3838- cat conftest.$ac_ext >&5
3839- rm -rf conftest*
3840- gt_cv_func_gettext_libintl=no
3841-fi
3842-rm -f conftest*
3843-fi
3844-
3845-echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3846-else
3847- echo "$ac_t""no" 1>&6
3848-fi
3849-
3850- fi
3851-
3852- if test "$gt_cv_func_gettext_libc" = "yes" \
3853- || test "$gt_cv_func_gettext_libintl" = "yes"; then
3854- cat >> confdefs.h <<\EOF
3855-#define HAVE_GETTEXT 1
3856-EOF
3857-
3858- # Extract the first word of "msgfmt", so it can be a program name with args.
3859-set dummy msgfmt; ac_word=$2
3860-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3861-echo "configure:3862: checking for $ac_word" >&5
3862-if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3863- echo $ac_n "(cached) $ac_c" 1>&6
3864-else
3865- case "$MSGFMT" in
3866- /*)
3867- ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3868- ;;
3869- *)
3870- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3871- for ac_dir in $PATH; do
3872- test -z "$ac_dir" && ac_dir=.
3873- if test -f $ac_dir/$ac_word; then
3874- if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3875- ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3876- break
3877- fi
3878- fi
3879- done
3880- IFS="$ac_save_ifs"
3881- test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
3882- ;;
3883-esac
3884-fi
3885-MSGFMT="$ac_cv_path_MSGFMT"
3886-if test -n "$MSGFMT"; then
3887- echo "$ac_t""$MSGFMT" 1>&6
3888-else
3889- echo "$ac_t""no" 1>&6
3890-fi
3891- if test "$MSGFMT" != "no"; then
3892- for ac_func in dcgettext
3893-do
3894-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3895-echo "configure:3896: checking for $ac_func" >&5
3896-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3897- echo $ac_n "(cached) $ac_c" 1>&6
3898-else
3899- cat > conftest.$ac_ext <<EOF
3900-#line 3901 "configure"
3901-#include "confdefs.h"
3902-/* System header to define __stub macros and hopefully few prototypes,
3903- which can conflict with char $ac_func(); below. */
3904-#include <assert.h>
3905-/* Override any gcc2 internal prototype to avoid an error. */
3906-/* We use char because int might match the return type of a gcc2
3907- builtin and then its argument prototype would still apply. */
3908-char $ac_func();
3909-
3910-int main() {
3911-
3912-/* The GNU C library defines this for functions which it implements
3913- to always fail with ENOSYS. Some functions are actually named
3914- something starting with __ and the normal name is an alias. */
3915-#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3916-choke me
3917-#else
3918-$ac_func();
3919-#endif
3920-
3921-; return 0; }
3922-EOF
3923-if { (eval echo configure:3924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3924- rm -rf conftest*
3925- eval "ac_cv_func_$ac_func=yes"
3926-else
3927- echo "configure: failed program was:" >&5
3928- cat conftest.$ac_ext >&5
3929- rm -rf conftest*
3930- eval "ac_cv_func_$ac_func=no"
3931-fi
3932-rm -f conftest*
3933-fi
3934-
3935-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3936- echo "$ac_t""yes" 1>&6
3937- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3938- cat >> confdefs.h <<EOF
3939-#define $ac_tr_func 1
3940-EOF
3941-
3942-else
3943- echo "$ac_t""no" 1>&6
3944-fi
3945-done
3946-
3947- # Extract the first word of "gmsgfmt", so it can be a program name with args.
3948-set dummy gmsgfmt; ac_word=$2
3949-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3950-echo "configure:3951: checking for $ac_word" >&5
3951-if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3952- echo $ac_n "(cached) $ac_c" 1>&6
3953-else
3954- case "$GMSGFMT" in
3955- /*)
3956- ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3957- ;;
3958- ?:/*)
3959- ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3960- ;;
3961- *)
3962- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3963- ac_dummy="$PATH"
3964- for ac_dir in $ac_dummy; do
3965- test -z "$ac_dir" && ac_dir=.
3966- if test -f $ac_dir/$ac_word; then
3967- ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3968- break
3969- fi
3970- done
3971- IFS="$ac_save_ifs"
3972- test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3973- ;;
3974-esac
3975-fi
3976-GMSGFMT="$ac_cv_path_GMSGFMT"
3977-if test -n "$GMSGFMT"; then
3978- echo "$ac_t""$GMSGFMT" 1>&6
3979-else
3980- echo "$ac_t""no" 1>&6
3981-fi
3982-
3983- # Extract the first word of "xgettext", so it can be a program name with args.
3984-set dummy xgettext; ac_word=$2
3985-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3986-echo "configure:3987: checking for $ac_word" >&5
3987-if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3988- echo $ac_n "(cached) $ac_c" 1>&6
3989-else
3990- case "$XGETTEXT" in
3991- /*)
3992- ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3993- ;;
3994- *)
3995- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3996- for ac_dir in $PATH; do
3997- test -z "$ac_dir" && ac_dir=.
3998- if test -f $ac_dir/$ac_word; then
3999- if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4000- ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4001- break
4002- fi
4003- fi
4004- done
4005- IFS="$ac_save_ifs"
4006- test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4007- ;;
4008-esac
4009-fi
4010-XGETTEXT="$ac_cv_path_XGETTEXT"
4011-if test -n "$XGETTEXT"; then
4012- echo "$ac_t""$XGETTEXT" 1>&6
4013-else
4014- echo "$ac_t""no" 1>&6
4015-fi
4016-
4017- cat > conftest.$ac_ext <<EOF
4018-#line 4019 "configure"
4019-#include "confdefs.h"
4020-
4021-int main() {
4022-extern int _nl_msg_cat_cntr;
4023- return _nl_msg_cat_cntr
4024-; return 0; }
4025-EOF
4026-if { (eval echo configure:4027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4027- rm -rf conftest*
4028- CATOBJEXT=.gmo
4029- DATADIRNAME=share
4030-else
4031- echo "configure: failed program was:" >&5
4032- cat conftest.$ac_ext >&5
4033- rm -rf conftest*
4034- CATOBJEXT=.mo
4035- DATADIRNAME=lib
4036-fi
4037-rm -f conftest*
4038- INSTOBJEXT=.mo
4039- fi
4040- fi
4041-
4042-else
4043- echo "$ac_t""no" 1>&6
4044-fi
4045-
4046-
4047-
4048- if test "$CATOBJEXT" = "NONE"; then
4049- nls_cv_use_gnu_gettext=yes
4050- fi
4051- fi
4052-
4053- if test "$nls_cv_use_gnu_gettext" = "yes"; then
4054- INTLOBJS="\$(GETTOBJS)"
4055- # Extract the first word of "msgfmt", so it can be a program name with args.
4056-set dummy msgfmt; ac_word=$2
4057-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4058-echo "configure:4059: checking for $ac_word" >&5
4059-if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4060- echo $ac_n "(cached) $ac_c" 1>&6
4061-else
4062- case "$MSGFMT" in
4063- /*)
4064- ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4065- ;;
4066- *)
4067- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4068- for ac_dir in $PATH; do
4069- test -z "$ac_dir" && ac_dir=.
4070- if test -f $ac_dir/$ac_word; then
4071- if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4072- ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4073- break
4074- fi
4075- fi
4076- done
4077- IFS="$ac_save_ifs"
4078- test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
4079- ;;
4080-esac
4081-fi
4082-MSGFMT="$ac_cv_path_MSGFMT"
4083-if test -n "$MSGFMT"; then
4084- echo "$ac_t""$MSGFMT" 1>&6
4085-else
4086- echo "$ac_t""no" 1>&6
4087-fi
4088-
4089- # Extract the first word of "gmsgfmt", so it can be a program name with args.
4090-set dummy gmsgfmt; ac_word=$2
4091-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4092-echo "configure:4093: checking for $ac_word" >&5
4093-if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4094- echo $ac_n "(cached) $ac_c" 1>&6
4095-else
4096- case "$GMSGFMT" in
4097- /*)
4098- ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4099- ;;
4100- ?:/*)
4101- ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4102- ;;
4103- *)
4104- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4105- ac_dummy="$PATH"
4106- for ac_dir in $ac_dummy; do
4107- test -z "$ac_dir" && ac_dir=.
4108- if test -f $ac_dir/$ac_word; then
4109- ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
1507+ if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1508+ ac_prog_rejected=yes
1509+ continue
1510+ fi
1511+ ac_cv_prog_CC="cc"
41101512 break
41111513 fi
41121514 done
41131515 IFS="$ac_save_ifs"
4114- test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4115- ;;
4116-esac
1516+if test $ac_prog_rejected = yes; then
1517+ # We found a bogon in the path, so make sure we never use it.
1518+ set dummy $ac_cv_prog_CC
1519+ shift
1520+ if test $# -gt 0; then
1521+ # We chose a different compiler from the bogus one.
1522+ # However, it has the same basename, so the bogon will be chosen
1523+ # first if we set CC to just the basename; use the full file name.
1524+ shift
1525+ set dummy "$ac_dir/$ac_word" "$@"
1526+ shift
1527+ ac_cv_prog_CC="$@"
1528+ fi
1529+fi
41171530 fi
4118-GMSGFMT="$ac_cv_path_GMSGFMT"
4119-if test -n "$GMSGFMT"; then
4120- echo "$ac_t""$GMSGFMT" 1>&6
1531+fi
1532+CC="$ac_cv_prog_CC"
1533+if test -n "$CC"; then
1534+ echo "$ac_t""$CC" 1>&6
41211535 else
41221536 echo "$ac_t""no" 1>&6
41231537 fi
41241538
4125- # Extract the first word of "xgettext", so it can be a program name with args.
4126-set dummy xgettext; ac_word=$2
1539+ if test -z "$CC"; then
1540+ case "`uname -s`" in
1541+ *win32* | *WIN32*)
1542+ # Extract the first word of "cl", so it can be a program name with args.
1543+set dummy cl; ac_word=$2
41271544 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4128-echo "configure:4129: checking for $ac_word" >&5
4129-if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
1545+echo "configure:1546: checking for $ac_word" >&5
1546+if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
41301547 echo $ac_n "(cached) $ac_c" 1>&6
41311548 else
4132- case "$XGETTEXT" in
4133- /*)
4134- ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4135- ;;
4136- *)
4137- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4138- for ac_dir in $PATH; do
1549+ if test -n "$CC"; then
1550+ ac_cv_prog_CC="$CC" # Let the user override the test.
1551+else
1552+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1553+ ac_dummy="$PATH"
1554+ for ac_dir in $ac_dummy; do
41391555 test -z "$ac_dir" && ac_dir=.
41401556 if test -f $ac_dir/$ac_word; then
4141- if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4142- ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4143- break
4144- fi
1557+ ac_cv_prog_CC="cl"
1558+ break
41451559 fi
41461560 done
41471561 IFS="$ac_save_ifs"
4148- test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4149- ;;
4150-esac
41511562 fi
4152-XGETTEXT="$ac_cv_path_XGETTEXT"
4153-if test -n "$XGETTEXT"; then
4154- echo "$ac_t""$XGETTEXT" 1>&6
1563+fi
1564+CC="$ac_cv_prog_CC"
1565+if test -n "$CC"; then
1566+ echo "$ac_t""$CC" 1>&6
41551567 else
41561568 echo "$ac_t""no" 1>&6
41571569 fi
1570+ ;;
1571+ esac
1572+ fi
1573+ test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1574+fi
41581575
4159-
4160- USE_INCLUDED_LIBINTL=yes
4161- CATOBJEXT=.gmo
4162- INSTOBJEXT=.mo
4163- DATADIRNAME=share
4164- INTLDEPS='$(top_builddir)/../intl/libintl.a'
4165- INTLLIBS=$INTLDEPS
4166- LIBS=`echo $LIBS | sed -e 's/-lintl//'`
4167- nls_cv_header_intl=libintl.h
4168- nls_cv_header_libgt=libgettext.h
4169- fi
4170-
4171- if test "$XGETTEXT" != ":"; then
4172- if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
4173- : ;
4174- else
4175- echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4176- XGETTEXT=":"
4177- fi
4178- fi
4179-
4180- # We need to process the po/ directory.
4181- POSUB=po
4182- else
4183- DATADIRNAME=share
4184- nls_cv_header_intl=libintl.h
4185- nls_cv_header_libgt=libgettext.h
4186- fi
1576+echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1577+echo "configure:1578: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
41871578
4188- # If this is used in GNU gettext we have to set USE_NLS to `yes'
4189- # because some of the sources are only built for this goal.
4190- if test "$PACKAGE" = gettext; then
4191- USE_NLS=yes
4192- USE_INCLUDED_LIBINTL=yes
4193- fi
1579+ac_ext=c
1580+# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1581+ac_cpp='$CPP $CPPFLAGS'
1582+ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1583+ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1584+cross_compiling=$ac_cv_prog_cc_cross
41941585
4195- for lang in $ALL_LINGUAS; do
4196- GMOFILES="$GMOFILES $lang.gmo"
4197- POFILES="$POFILES $lang.po"
4198- done
1586+cat > conftest.$ac_ext << EOF
41991587
4200-
4201-
4202-
4203-
4204-
4205-
4206-
4207-
4208-
4209-
4210-
4211-
1588+#line 1589 "configure"
1589+#include "confdefs.h"
42121590
4213- if test "x$CATOBJEXT" != "x"; then
4214- if test "x$ALL_LINGUAS" = "x"; then
4215- LINGUAS=
4216- else
4217- echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4218-echo "configure:4219: checking for catalogs to be installed" >&5
4219- NEW_LINGUAS=
4220- for lang in ${LINGUAS=$ALL_LINGUAS}; do
4221- case "$ALL_LINGUAS" in
4222- *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
4223- esac
4224- done
4225- LINGUAS=$NEW_LINGUAS
4226- echo "$ac_t""$LINGUAS" 1>&6
4227- fi
4228-
4229- if test -n "$LINGUAS"; then
4230- for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
4231- fi
4232- fi
1591+main(){return(0);}
1592+EOF
1593+if { (eval echo configure:1594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1594+ ac_cv_prog_cc_works=yes
1595+ # If we can't run a trivial program, we are probably using a cross compiler.
1596+ if (./conftest; exit) 2>/dev/null; then
1597+ ac_cv_prog_cc_cross=no
1598+ else
1599+ ac_cv_prog_cc_cross=yes
1600+ fi
1601+else
1602+ echo "configure: failed program was:" >&5
1603+ cat conftest.$ac_ext >&5
1604+ ac_cv_prog_cc_works=no
1605+fi
1606+rm -fr conftest*
1607+ac_ext=c
1608+# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1609+ac_cpp='$CPP $CPPFLAGS'
1610+ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1611+ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1612+cross_compiling=$ac_cv_prog_cc_cross
42331613
4234- if test $ac_cv_header_locale_h = yes; then
4235- INCLUDE_LOCALE_H="#include <locale.h>"
4236- else
4237- INCLUDE_LOCALE_H="\
4238-/* The system does not provide the header <locale.h>. Take care yourself. */"
4239- fi
4240-
1614+echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1615+if test $ac_cv_prog_cc_works = no; then
1616+ { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1617+fi
1618+echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1619+echo "configure:1620: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1620+echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1621+cross_compiling=$ac_cv_prog_cc_cross
42411622
4242- if test -f $srcdir/po2tbl.sed.in; then
4243- if test "$CATOBJEXT" = ".cat"; then
4244- ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4245-echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4246-echo "configure:4247: checking for linux/version.h" >&5
4247-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1623+echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1624+echo "configure:1625: checking whether we are using GNU C" >&5
1625+if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
42481626 echo $ac_n "(cached) $ac_c" 1>&6
42491627 else
4250- cat > conftest.$ac_ext <<EOF
4251-#line 4252 "configure"
4252-#include "confdefs.h"
4253-#include <linux/version.h>
1628+ cat > conftest.c <<EOF
1629+#ifdef __GNUC__
1630+ yes;
1631+#endif
42541632 EOF
4255-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4256-{ (eval echo configure:4257: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4257-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4258-if test -z "$ac_err"; then
4259- rm -rf conftest*
4260- eval "ac_cv_header_$ac_safe=yes"
1633+if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1634: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1634+ ac_cv_prog_gcc=yes
42611635 else
4262- echo "$ac_err" >&5
4263- echo "configure: failed program was:" >&5
4264- cat conftest.$ac_ext >&5
4265- rm -rf conftest*
4266- eval "ac_cv_header_$ac_safe=no"
1636+ ac_cv_prog_gcc=no
42671637 fi
4268-rm -f conftest*
42691638 fi
4270-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4271- echo "$ac_t""yes" 1>&6
4272- msgformat=linux
1639+
1640+echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1641+
1642+if test $ac_cv_prog_gcc = yes; then
1643+ GCC=yes
42731644 else
4274- echo "$ac_t""no" 1>&6
4275-msgformat=xopen
1645+ GCC=
42761646 fi
42771647
1648+ac_test_CFLAGS="${CFLAGS+set}"
1649+ac_save_CFLAGS="$CFLAGS"
1650+CFLAGS=
1651+echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1652+echo "configure:1653: checking whether ${CC-cc} accepts -g" >&5
1653+if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1654+ echo $ac_n "(cached) $ac_c" 1>&6
1655+else
1656+ echo 'void f(){}' > conftest.c
1657+if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1658+ ac_cv_prog_cc_g=yes
1659+else
1660+ ac_cv_prog_cc_g=no
1661+fi
1662+rm -f conftest*
42781663
4279- sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
4280- fi
4281- sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4282- $srcdir/po2tbl.sed.in > po2tbl.sed
4283- fi
4284-
4285- if test "$PACKAGE" = "gettext"; then
4286- GT_NO="#NO#"
4287- GT_YES=
4288- else
4289- GT_NO=
4290- GT_YES="#YES#"
4291- fi
4292-
4293-
1664+fi
42941665
4295- MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
4296-
1666+echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1667+if test "$ac_test_CFLAGS" = set; then
1668+ CFLAGS="$ac_save_CFLAGS"
1669+elif test $ac_cv_prog_cc_g = yes; then
1670+ if test "$GCC" = yes; then
1671+ CFLAGS="-g -O2"
1672+ else
1673+ CFLAGS="-g"
1674+ fi
1675+else
1676+ if test "$GCC" = yes; then
1677+ CFLAGS="-O2"
1678+ else
1679+ CFLAGS=
1680+ fi
1681+fi
42971682
4298- l=
4299-
43001683
4301- if test -d $srcdir/po; then
4302- test -d po || mkdir po
4303- if test "x$srcdir" != "x."; then
4304- if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4305- posrcprefix="$srcdir/"
4306- else
4307- posrcprefix="../$srcdir/"
4308- fi
4309- else
4310- posrcprefix="../"
4311- fi
4312- rm -f po/POTFILES
4313- sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4314- < $srcdir/po/POTFILES.in > po/POTFILES
4315- fi
4316-
1684+ALL_LINGUAS=
1685+CY_GNU_GETTEXT
43171686
43181687 # Permit host specific settings.
43191688 . ${srcdir}/configure.host
@@ -4331,7 +1700,7 @@ fi
43311700 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
43321701 # ./install, which can be erroneously created by make from ./install.sh.
43331702 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4334-echo "configure:4335: checking for a BSD compatible install" >&5
1703+echo "configure:1704: checking for a BSD compatible install" >&5
43351704 if test -z "$INSTALL"; then
43361705 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
43371706 echo $ac_n "(cached) $ac_c" 1>&6
@@ -4414,7 +1783,7 @@ if test "x$cross_compiling" = "xno"; then
44141783 EXEEXT_FOR_BUILD='$(EXEEXT)'
44151784 else
44161785 echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
4417-echo "configure:4418: checking for build system executable suffix" >&5
1786+echo "configure:1787: checking for build system executable suffix" >&5
44181787 if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
44191788 echo $ac_n "(cached) $ac_c" 1>&6
44201789 else
@@ -4438,21 +1807,101 @@ echo "$ac_t""$bfd_cv_build_exeext" 1>&6
44381807 fi
44391808
44401809
1810+echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1811+echo "configure:1812: checking how to run the C preprocessor" >&5
1812+# On Suns, sometimes $CPP names a directory.
1813+if test -n "$CPP" && test -d "$CPP"; then
1814+ CPP=
1815+fi
1816+if test -z "$CPP"; then
1817+if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1818+ echo $ac_n "(cached) $ac_c" 1>&6
1819+else
1820+ # This must be in double quotes, not single quotes, because CPP may get
1821+ # substituted into the Makefile and "${CC-cc}" will confuse make.
1822+ CPP="${CC-cc} -E"
1823+ # On the NeXT, cc -E runs the code through the compiler's parser,
1824+ # not just through cpp.
1825+ cat > conftest.$ac_ext <<EOF
1826+#line 1827 "configure"
1827+#include "confdefs.h"
1828+#include <assert.h>
1829+Syntax Error
1830+EOF
1831+ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1832+{ (eval echo configure:1833: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1833+ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1834+if test -z "$ac_err"; then
1835+ :
1836+else
1837+ echo "$ac_err" >&5
1838+ echo "configure: failed program was:" >&5
1839+ cat conftest.$ac_ext >&5
1840+ rm -rf conftest*
1841+ CPP="${CC-cc} -E -traditional-cpp"
1842+ cat > conftest.$ac_ext <<EOF
1843+#line 1844 "configure"
1844+#include "confdefs.h"
1845+#include <assert.h>
1846+Syntax Error
1847+EOF
1848+ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1849+{ (eval echo configure:1850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1850+ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1851+if test -z "$ac_err"; then
1852+ :
1853+else
1854+ echo "$ac_err" >&5
1855+ echo "configure: failed program was:" >&5
1856+ cat conftest.$ac_ext >&5
1857+ rm -rf conftest*
1858+ CPP="${CC-cc} -nologo -E"
1859+ cat > conftest.$ac_ext <<EOF
1860+#line 1861 "configure"
1861+#include "confdefs.h"
1862+#include <assert.h>
1863+Syntax Error
1864+EOF
1865+ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1866+{ (eval echo configure:1867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1867+ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1868+if test -z "$ac_err"; then
1869+ :
1870+else
1871+ echo "$ac_err" >&5
1872+ echo "configure: failed program was:" >&5
1873+ cat conftest.$ac_ext >&5
1874+ rm -rf conftest*
1875+ CPP=/lib/cpp
1876+fi
1877+rm -f conftest*
1878+fi
1879+rm -f conftest*
1880+fi
1881+rm -f conftest*
1882+ ac_cv_prog_CPP="$CPP"
1883+fi
1884+ CPP="$ac_cv_prog_CPP"
1885+else
1886+ ac_cv_prog_CPP="$CPP"
1887+fi
1888+echo "$ac_t""$CPP" 1>&6
1889+
44411890 for ac_hdr in stddef.h string.h strings.h stdlib.h time.h unistd.h
44421891 do
44431892 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
44441893 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4445-echo "configure:4446: checking for $ac_hdr" >&5
1894+echo "configure:1895: checking for $ac_hdr" >&5
44461895 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
44471896 echo $ac_n "(cached) $ac_c" 1>&6
44481897 else
44491898 cat > conftest.$ac_ext <<EOF
4450-#line 4451 "configure"
1899+#line 1900 "configure"
44511900 #include "confdefs.h"
44521901 #include <$ac_hdr>
44531902 EOF
44541903 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4455-{ (eval echo configure:4456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1904+{ (eval echo configure:1905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
44561905 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
44571906 if test -z "$ac_err"; then
44581907 rm -rf conftest*
@@ -4482,17 +1931,17 @@ for ac_hdr in fcntl.h sys/file.h sys/time.h
44821931 do
44831932 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
44841933 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4485-echo "configure:4486: checking for $ac_hdr" >&5
1934+echo "configure:1935: checking for $ac_hdr" >&5
44861935 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
44871936 echo $ac_n "(cached) $ac_c" 1>&6
44881937 else
44891938 cat > conftest.$ac_ext <<EOF
4490-#line 4491 "configure"
1939+#line 1940 "configure"
44911940 #include "confdefs.h"
44921941 #include <$ac_hdr>
44931942 EOF
44941943 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4495-{ (eval echo configure:4496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1944+{ (eval echo configure:1945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
44961945 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
44971946 if test -z "$ac_err"; then
44981947 rm -rf conftest*
@@ -4519,12 +1968,12 @@ fi
45191968 done
45201969
45211970 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4522-echo "configure:4523: checking whether time.h and sys/time.h may both be included" >&5
1971+echo "configure:1972: checking whether time.h and sys/time.h may both be included" >&5
45231972 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
45241973 echo $ac_n "(cached) $ac_c" 1>&6
45251974 else
45261975 cat > conftest.$ac_ext <<EOF
4527-#line 4528 "configure"
1976+#line 1977 "configure"
45281977 #include "confdefs.h"
45291978 #include <sys/types.h>
45301979 #include <sys/time.h>
@@ -4533,7 +1982,7 @@ int main() {
45331982 struct tm *tp;
45341983 ; return 0; }
45351984 EOF
4536-if { (eval echo configure:4537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1985+if { (eval echo configure:1986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
45371986 rm -rf conftest*
45381987 ac_cv_header_time=yes
45391988 else
@@ -4558,12 +2007,12 @@ for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
45582007 do
45592008 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
45602009 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4561-echo "configure:4562: checking for $ac_hdr that defines DIR" >&5
2010+echo "configure:2011: checking for $ac_hdr that defines DIR" >&5
45622011 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
45632012 echo $ac_n "(cached) $ac_c" 1>&6
45642013 else
45652014 cat > conftest.$ac_ext <<EOF
4566-#line 4567 "configure"
2015+#line 2016 "configure"
45672016 #include "confdefs.h"
45682017 #include <sys/types.h>
45692018 #include <$ac_hdr>
@@ -4571,7 +2020,7 @@ int main() {
45712020 DIR *dirp = 0;
45722021 ; return 0; }
45732022 EOF
4574-if { (eval echo configure:4575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2023+if { (eval echo configure:2024: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
45752024 rm -rf conftest*
45762025 eval "ac_cv_header_dirent_$ac_safe=yes"
45772026 else
@@ -4596,7 +2045,7 @@ done
45962045 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
45972046 if test $ac_header_dirent = dirent.h; then
45982047 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4599-echo "configure:4600: checking for opendir in -ldir" >&5
2048+echo "configure:2049: checking for opendir in -ldir" >&5
46002049 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
46012050 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
46022051 echo $ac_n "(cached) $ac_c" 1>&6
@@ -4604,7 +2053,7 @@ else
46042053 ac_save_LIBS="$LIBS"
46052054 LIBS="-ldir $LIBS"
46062055 cat > conftest.$ac_ext <<EOF
4607-#line 4608 "configure"
2056+#line 2057 "configure"
46082057 #include "confdefs.h"
46092058 /* Override any gcc2 internal prototype to avoid an error. */
46102059 /* We use char because int might match the return type of a gcc2
@@ -4615,7 +2064,7 @@ int main() {
46152064 opendir()
46162065 ; return 0; }
46172066 EOF
4618-if { (eval echo configure:4619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2067+if { (eval echo configure:2068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
46192068 rm -rf conftest*
46202069 eval "ac_cv_lib_$ac_lib_var=yes"
46212070 else
@@ -4637,7 +2086,7 @@ fi
46372086
46382087 else
46392088 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4640-echo "configure:4641: checking for opendir in -lx" >&5
2089+echo "configure:2090: checking for opendir in -lx" >&5
46412090 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
46422091 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
46432092 echo $ac_n "(cached) $ac_c" 1>&6
@@ -4645,7 +2094,7 @@ else
46452094 ac_save_LIBS="$LIBS"
46462095 LIBS="-lx $LIBS"
46472096 cat > conftest.$ac_ext <<EOF
4648-#line 4649 "configure"
2097+#line 2098 "configure"
46492098 #include "confdefs.h"
46502099 /* Override any gcc2 internal prototype to avoid an error. */
46512100 /* We use char because int might match the return type of a gcc2
@@ -4656,7 +2105,7 @@ int main() {
46562105 opendir()
46572106 ; return 0; }
46582107 EOF
4659-if { (eval echo configure:4660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2108+if { (eval echo configure:2109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
46602109 rm -rf conftest*
46612110 eval "ac_cv_lib_$ac_lib_var=yes"
46622111 else
@@ -4681,12 +2130,12 @@ fi
46812130 for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
46822131 do
46832132 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4684-echo "configure:4685: checking for $ac_func" >&5
2133+echo "configure:2134: checking for $ac_func" >&5
46852134 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
46862135 echo $ac_n "(cached) $ac_c" 1>&6
46872136 else
46882137 cat > conftest.$ac_ext <<EOF
4689-#line 4690 "configure"
2138+#line 2139 "configure"
46902139 #include "confdefs.h"
46912140 /* System header to define __stub macros and hopefully few prototypes,
46922141 which can conflict with char $ac_func(); below. */
@@ -4709,7 +2158,7 @@ $ac_func();
47092158
47102159 ; return 0; }
47112160 EOF
4712-if { (eval echo configure:4713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2161+if { (eval echo configure:2162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
47132162 rm -rf conftest*
47142163 eval "ac_cv_func_$ac_func=yes"
47152164 else
@@ -4744,12 +2193,12 @@ EOF
47442193 esac
47452194
47462195 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4747-echo "configure:4748: checking whether strstr must be declared" >&5
2196+echo "configure:2197: checking whether strstr must be declared" >&5
47482197 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
47492198 echo $ac_n "(cached) $ac_c" 1>&6
47502199 else
47512200 cat > conftest.$ac_ext <<EOF
4752-#line 4753 "configure"
2201+#line 2202 "configure"
47532202 #include "confdefs.h"
47542203
47552204 #include <stdio.h>
@@ -4770,7 +2219,7 @@ int main() {
47702219 char *(*pfn) = (char *(*)) strstr
47712220 ; return 0; }
47722221 EOF
4773-if { (eval echo configure:4774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2222+if { (eval echo configure:2223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
47742223 rm -rf conftest*
47752224 bfd_cv_decl_needed_strstr=no
47762225 else
@@ -4791,12 +2240,12 @@ EOF
47912240 fi
47922241
47932242 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
4794-echo "configure:4795: checking whether malloc must be declared" >&5
2243+echo "configure:2244: checking whether malloc must be declared" >&5
47952244 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
47962245 echo $ac_n "(cached) $ac_c" 1>&6
47972246 else
47982247 cat > conftest.$ac_ext <<EOF
4799-#line 4800 "configure"
2248+#line 2249 "configure"
48002249 #include "confdefs.h"
48012250
48022251 #include <stdio.h>
@@ -4817,7 +2266,7 @@ int main() {
48172266 char *(*pfn) = (char *(*)) malloc
48182267 ; return 0; }
48192268 EOF
4820-if { (eval echo configure:4821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2269+if { (eval echo configure:2270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
48212270 rm -rf conftest*
48222271 bfd_cv_decl_needed_malloc=no
48232272 else
@@ -4838,12 +2287,12 @@ EOF
48382287 fi
48392288
48402289 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
4841-echo "configure:4842: checking whether realloc must be declared" >&5
2290+echo "configure:2291: checking whether realloc must be declared" >&5
48422291 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
48432292 echo $ac_n "(cached) $ac_c" 1>&6
48442293 else
48452294 cat > conftest.$ac_ext <<EOF
4846-#line 4847 "configure"
2295+#line 2296 "configure"
48472296 #include "confdefs.h"
48482297
48492298 #include <stdio.h>
@@ -4864,7 +2313,7 @@ int main() {
48642313 char *(*pfn) = (char *(*)) realloc
48652314 ; return 0; }
48662315 EOF
4867-if { (eval echo configure:4868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2316+if { (eval echo configure:2317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
48682317 rm -rf conftest*
48692318 bfd_cv_decl_needed_realloc=no
48702319 else
@@ -4885,12 +2334,12 @@ EOF
48852334 fi
48862335
48872336 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
4888-echo "configure:4889: checking whether free must be declared" >&5
2337+echo "configure:2338: checking whether free must be declared" >&5
48892338 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
48902339 echo $ac_n "(cached) $ac_c" 1>&6
48912340 else
48922341 cat > conftest.$ac_ext <<EOF
4893-#line 4894 "configure"
2342+#line 2343 "configure"
48942343 #include "confdefs.h"
48952344
48962345 #include <stdio.h>
@@ -4911,7 +2360,7 @@ int main() {
49112360 char *(*pfn) = (char *(*)) free
49122361 ; return 0; }
49132362 EOF
4914-if { (eval echo configure:4915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2363+if { (eval echo configure:2364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
49152364 rm -rf conftest*
49162365 bfd_cv_decl_needed_free=no
49172366 else
@@ -4932,12 +2381,12 @@ EOF
49322381 fi
49332382
49342383 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
4935-echo "configure:4936: checking whether getenv must be declared" >&5
2384+echo "configure:2385: checking whether getenv must be declared" >&5
49362385 if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
49372386 echo $ac_n "(cached) $ac_c" 1>&6
49382387 else
49392388 cat > conftest.$ac_ext <<EOF
4940-#line 4941 "configure"
2389+#line 2390 "configure"
49412390 #include "confdefs.h"
49422391
49432392 #include <stdio.h>
@@ -4958,7 +2407,7 @@ int main() {
49582407 char *(*pfn) = (char *(*)) getenv
49592408 ; return 0; }
49602409 EOF
4961-if { (eval echo configure:4962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2410+if { (eval echo configure:2411: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
49622411 rm -rf conftest*
49632412 bfd_cv_decl_needed_getenv=no
49642413 else
@@ -5015,7 +2464,7 @@ if test "${target}" = "${host}"; then
50152464 COREFILE=trad-core.lo
50162465 TRAD_HEADER='"hosts/symmetry.h"'
50172466 ;;
5018- i[3456]86-*-bsd* | i[34567]86-*-freebsd[1234] | i[34567]86-*-freebsd[1234]\.* | i[34567]86-*-freebsd*aout*)
2467+ i[3456]86-*-bsd* | i[34567]86-*-freebsd[123] | i[34567]86-*-freebsd[123]\.* | i[34567]86-*-freebsd4\.[01]* | i[34567]86-*-freebsd*aout*)
50192468 COREFILE=trad-core.lo
50202469 TRAD_HEADER='"hosts/i386bsd.h"'
50212470 ;;
@@ -5177,17 +2626,17 @@ if test "${target}" = "${host}"; then
51772626 do
51782627 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
51792628 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5180-echo "configure:5181: checking for $ac_hdr" >&5
2629+echo "configure:2630: checking for $ac_hdr" >&5
51812630 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
51822631 echo $ac_n "(cached) $ac_c" 1>&6
51832632 else
51842633 cat > conftest.$ac_ext <<EOF
5185-#line 5186 "configure"
2634+#line 2635 "configure"
51862635 #include "confdefs.h"
51872636 #include <$ac_hdr>
51882637 EOF
51892638 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5190-{ (eval echo configure:5191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2639+{ (eval echo configure:2640: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
51912640 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
51922641 if test -z "$ac_err"; then
51932642 rm -rf conftest*
@@ -5215,12 +2664,12 @@ done
52152664
52162665 if test "$ac_cv_header_sys_procfs_h" = yes; then
52172666 echo $ac_n "checking for prstatus_t in sys/procfs.h""... $ac_c" 1>&6
5218-echo "configure:5219: checking for prstatus_t in sys/procfs.h" >&5
2667+echo "configure:2668: checking for prstatus_t in sys/procfs.h" >&5
52192668 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus_t'+set}'`\" = set"; then
52202669 echo $ac_n "(cached) $ac_c" 1>&6
52212670 else
52222671 cat > conftest.$ac_ext <<EOF
5223-#line 5224 "configure"
2672+#line 2673 "configure"
52242673 #include "confdefs.h"
52252674
52262675 #define _SYSCALL32
@@ -5229,7 +2678,7 @@ int main() {
52292678 prstatus_t avar
52302679 ; return 0; }
52312680 EOF
5232-if { (eval echo configure:5233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2681+if { (eval echo configure:2682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
52332682 rm -rf conftest*
52342683 bfd_cv_have_sys_procfs_type_prstatus_t=yes
52352684 else
@@ -5251,12 +2700,12 @@ EOF
52512700 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus_t" 1>&6
52522701
52532702 echo $ac_n "checking for prstatus32_t in sys/procfs.h""... $ac_c" 1>&6
5254-echo "configure:5255: checking for prstatus32_t in sys/procfs.h" >&5
2703+echo "configure:2704: checking for prstatus32_t in sys/procfs.h" >&5
52552704 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus32_t'+set}'`\" = set"; then
52562705 echo $ac_n "(cached) $ac_c" 1>&6
52572706 else
52582707 cat > conftest.$ac_ext <<EOF
5259-#line 5260 "configure"
2708+#line 2709 "configure"
52602709 #include "confdefs.h"
52612710
52622711 #define _SYSCALL32
@@ -5265,7 +2714,7 @@ int main() {
52652714 prstatus32_t avar
52662715 ; return 0; }
52672716 EOF
5268-if { (eval echo configure:5269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2717+if { (eval echo configure:2718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
52692718 rm -rf conftest*
52702719 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
52712720 else
@@ -5287,12 +2736,12 @@ EOF
52872736 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus32_t" 1>&6
52882737
52892738 echo $ac_n "checking for prstatus_t.pr_who in sys/procfs.h""... $ac_c" 1>&6
5290-echo "configure:5291: checking for prstatus_t.pr_who in sys/procfs.h" >&5
2739+echo "configure:2740: checking for prstatus_t.pr_who in sys/procfs.h" >&5
52912740 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who'+set}'`\" = set"; then
52922741 echo $ac_n "(cached) $ac_c" 1>&6
52932742 else
52942743 cat > conftest.$ac_ext <<EOF
5295-#line 5296 "configure"
2744+#line 2745 "configure"
52962745 #include "confdefs.h"
52972746
52982747 #define _SYSCALL32
@@ -5301,7 +2750,7 @@ int main() {
53012750 prstatus_t avar; void* aref = (void*) &avar.pr_who
53022751 ; return 0; }
53032752 EOF
5304-if { (eval echo configure:5305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2753+if { (eval echo configure:2754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
53052754 rm -rf conftest*
53062755 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
53072756 else
@@ -5323,12 +2772,12 @@ EOF
53232772 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" 1>&6
53242773
53252774 echo $ac_n "checking for prstatus32_t.pr_who in sys/procfs.h""... $ac_c" 1>&6
5326-echo "configure:5327: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
2775+echo "configure:2776: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
53272776 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who'+set}'`\" = set"; then
53282777 echo $ac_n "(cached) $ac_c" 1>&6
53292778 else
53302779 cat > conftest.$ac_ext <<EOF
5331-#line 5332 "configure"
2780+#line 2781 "configure"
53322781 #include "confdefs.h"
53332782
53342783 #define _SYSCALL32
@@ -5337,7 +2786,7 @@ int main() {
53372786 prstatus32_t avar; void* aref = (void*) &avar.pr_who
53382787 ; return 0; }
53392788 EOF
5340-if { (eval echo configure:5341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2789+if { (eval echo configure:2790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
53412790 rm -rf conftest*
53422791 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
53432792 else
@@ -5359,12 +2808,12 @@ EOF
53592808 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" 1>&6
53602809
53612810 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
5362-echo "configure:5363: checking for pstatus_t in sys/procfs.h" >&5
2811+echo "configure:2812: checking for pstatus_t in sys/procfs.h" >&5
53632812 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
53642813 echo $ac_n "(cached) $ac_c" 1>&6
53652814 else
53662815 cat > conftest.$ac_ext <<EOF
5367-#line 5368 "configure"
2816+#line 2817 "configure"
53682817 #include "confdefs.h"
53692818
53702819 #define _SYSCALL32
@@ -5373,7 +2822,7 @@ int main() {
53732822 pstatus_t avar
53742823 ; return 0; }
53752824 EOF
5376-if { (eval echo configure:5377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2825+if { (eval echo configure:2826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
53772826 rm -rf conftest*
53782827 bfd_cv_have_sys_procfs_type_pstatus_t=yes
53792828 else
@@ -5395,12 +2844,12 @@ EOF
53952844 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
53962845
53972846 echo $ac_n "checking for pxstatus_t in sys/procfs.h""... $ac_c" 1>&6
5398-echo "configure:5399: checking for pxstatus_t in sys/procfs.h" >&5
2847+echo "configure:2848: checking for pxstatus_t in sys/procfs.h" >&5
53992848 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pxstatus_t'+set}'`\" = set"; then
54002849 echo $ac_n "(cached) $ac_c" 1>&6
54012850 else
54022851 cat > conftest.$ac_ext <<EOF
5403-#line 5404 "configure"
2852+#line 2853 "configure"
54042853 #include "confdefs.h"
54052854
54062855 #define _SYSCALL32
@@ -5409,7 +2858,7 @@ int main() {
54092858 pxstatus_t avar
54102859 ; return 0; }
54112860 EOF
5412-if { (eval echo configure:5413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2861+if { (eval echo configure:2862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
54132862 rm -rf conftest*
54142863 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
54152864 else
@@ -5431,12 +2880,12 @@ EOF
54312880 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pxstatus_t" 1>&6
54322881
54332882 echo $ac_n "checking for pstatus32_t in sys/procfs.h""... $ac_c" 1>&6
5434-echo "configure:5435: checking for pstatus32_t in sys/procfs.h" >&5
2883+echo "configure:2884: checking for pstatus32_t in sys/procfs.h" >&5
54352884 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus32_t'+set}'`\" = set"; then
54362885 echo $ac_n "(cached) $ac_c" 1>&6
54372886 else
54382887 cat > conftest.$ac_ext <<EOF
5439-#line 5440 "configure"
2888+#line 2889 "configure"
54402889 #include "confdefs.h"
54412890
54422891 #define _SYSCALL32
@@ -5445,7 +2894,7 @@ int main() {
54452894 pstatus32_t avar
54462895 ; return 0; }
54472896 EOF
5448-if { (eval echo configure:5449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2897+if { (eval echo configure:2898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
54492898 rm -rf conftest*
54502899 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
54512900 else
@@ -5467,12 +2916,12 @@ EOF
54672916 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus32_t" 1>&6
54682917
54692918 echo $ac_n "checking for prpsinfo_t in sys/procfs.h""... $ac_c" 1>&6
5470-echo "configure:5471: checking for prpsinfo_t in sys/procfs.h" >&5
2919+echo "configure:2920: checking for prpsinfo_t in sys/procfs.h" >&5
54712920 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo_t'+set}'`\" = set"; then
54722921 echo $ac_n "(cached) $ac_c" 1>&6
54732922 else
54742923 cat > conftest.$ac_ext <<EOF
5475-#line 5476 "configure"
2924+#line 2925 "configure"
54762925 #include "confdefs.h"
54772926
54782927 #define _SYSCALL32
@@ -5481,7 +2930,7 @@ int main() {
54812930 prpsinfo_t avar
54822931 ; return 0; }
54832932 EOF
5484-if { (eval echo configure:5485: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2933+if { (eval echo configure:2934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
54852934 rm -rf conftest*
54862935 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
54872936 else
@@ -5503,12 +2952,12 @@ EOF
55032952 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo_t" 1>&6
55042953
55052954 echo $ac_n "checking for prpsinfo32_t in sys/procfs.h""... $ac_c" 1>&6
5506-echo "configure:5507: checking for prpsinfo32_t in sys/procfs.h" >&5
2955+echo "configure:2956: checking for prpsinfo32_t in sys/procfs.h" >&5
55072956 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo32_t'+set}'`\" = set"; then
55082957 echo $ac_n "(cached) $ac_c" 1>&6
55092958 else
55102959 cat > conftest.$ac_ext <<EOF
5511-#line 5512 "configure"
2960+#line 2961 "configure"
55122961 #include "confdefs.h"
55132962
55142963 #define _SYSCALL32
@@ -5517,7 +2966,7 @@ int main() {
55172966 prpsinfo32_t avar
55182967 ; return 0; }
55192968 EOF
5520-if { (eval echo configure:5521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2969+if { (eval echo configure:2970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
55212970 rm -rf conftest*
55222971 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
55232972 else
@@ -5539,12 +2988,12 @@ EOF
55392988 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo32_t" 1>&6
55402989
55412990 echo $ac_n "checking for psinfo_t in sys/procfs.h""... $ac_c" 1>&6
5542-echo "configure:5543: checking for psinfo_t in sys/procfs.h" >&5
2991+echo "configure:2992: checking for psinfo_t in sys/procfs.h" >&5
55432992 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo_t'+set}'`\" = set"; then
55442993 echo $ac_n "(cached) $ac_c" 1>&6
55452994 else
55462995 cat > conftest.$ac_ext <<EOF
5547-#line 5548 "configure"
2996+#line 2997 "configure"
55482997 #include "confdefs.h"
55492998
55502999 #define _SYSCALL32
@@ -5553,7 +3002,7 @@ int main() {
55533002 psinfo_t avar
55543003 ; return 0; }
55553004 EOF
5556-if { (eval echo configure:5557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3005+if { (eval echo configure:3006: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
55573006 rm -rf conftest*
55583007 bfd_cv_have_sys_procfs_type_psinfo_t=yes
55593008 else
@@ -5575,12 +3024,12 @@ EOF
55753024 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo_t" 1>&6
55763025
55773026 echo $ac_n "checking for psinfo32_t in sys/procfs.h""... $ac_c" 1>&6
5578-echo "configure:5579: checking for psinfo32_t in sys/procfs.h" >&5
3027+echo "configure:3028: checking for psinfo32_t in sys/procfs.h" >&5
55793028 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo32_t'+set}'`\" = set"; then
55803029 echo $ac_n "(cached) $ac_c" 1>&6
55813030 else
55823031 cat > conftest.$ac_ext <<EOF
5583-#line 5584 "configure"
3032+#line 3033 "configure"
55843033 #include "confdefs.h"
55853034
55863035 #define _SYSCALL32
@@ -5589,7 +3038,7 @@ int main() {
55893038 psinfo32_t avar
55903039 ; return 0; }
55913040 EOF
5592-if { (eval echo configure:5593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3041+if { (eval echo configure:3042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
55933042 rm -rf conftest*
55943043 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
55953044 else
@@ -5611,12 +3060,12 @@ EOF
56113060 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo32_t" 1>&6
56123061
56133062 echo $ac_n "checking for lwpstatus_t in sys/procfs.h""... $ac_c" 1>&6
5614-echo "configure:5615: checking for lwpstatus_t in sys/procfs.h" >&5
3063+echo "configure:3064: checking for lwpstatus_t in sys/procfs.h" >&5
56153064 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpstatus_t'+set}'`\" = set"; then
56163065 echo $ac_n "(cached) $ac_c" 1>&6
56173066 else
56183067 cat > conftest.$ac_ext <<EOF
5619-#line 5620 "configure"
3068+#line 3069 "configure"
56203069 #include "confdefs.h"
56213070
56223071 #define _SYSCALL32
@@ -5625,7 +3074,7 @@ int main() {
56253074 lwpstatus_t avar
56263075 ; return 0; }
56273076 EOF
5628-if { (eval echo configure:5629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3077+if { (eval echo configure:3078: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
56293078 rm -rf conftest*
56303079 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
56313080 else
@@ -5647,12 +3096,12 @@ EOF
56473096 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpstatus_t" 1>&6
56483097
56493098 echo $ac_n "checking for lwpxstatus_t in sys/procfs.h""... $ac_c" 1>&6
5650-echo "configure:5651: checking for lwpxstatus_t in sys/procfs.h" >&5
3099+echo "configure:3100: checking for lwpxstatus_t in sys/procfs.h" >&5
56513100 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpxstatus_t'+set}'`\" = set"; then
56523101 echo $ac_n "(cached) $ac_c" 1>&6
56533102 else
56543103 cat > conftest.$ac_ext <<EOF
5655-#line 5656 "configure"
3104+#line 3105 "configure"
56563105 #include "confdefs.h"
56573106
56583107 #define _SYSCALL32
@@ -5661,7 +3110,7 @@ int main() {
56613110 lwpxstatus_t avar
56623111 ; return 0; }
56633112 EOF
5664-if { (eval echo configure:5665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3113+if { (eval echo configure:3114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
56653114 rm -rf conftest*
56663115 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
56673116 else
@@ -5683,12 +3132,12 @@ EOF
56833132 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpxstatus_t" 1>&6
56843133
56853134 echo $ac_n "checking for lwpstatus_t.pr_context in sys/procfs.h""... $ac_c" 1>&6
5686-echo "configure:5687: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
3135+echo "configure:3136: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
56873136 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context'+set}'`\" = set"; then
56883137 echo $ac_n "(cached) $ac_c" 1>&6
56893138 else
56903139 cat > conftest.$ac_ext <<EOF
5691-#line 5692 "configure"
3140+#line 3141 "configure"
56923141 #include "confdefs.h"
56933142
56943143 #define _SYSCALL32
@@ -5697,7 +3146,7 @@ int main() {
56973146 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
56983147 ; return 0; }
56993148 EOF
5700-if { (eval echo configure:5701: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3149+if { (eval echo configure:3150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
57013150 rm -rf conftest*
57023151 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
57033152 else
@@ -5719,12 +3168,12 @@ EOF
57193168 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" 1>&6
57203169
57213170 echo $ac_n "checking for lwpstatus_t.pr_reg in sys/procfs.h""... $ac_c" 1>&6
5722-echo "configure:5723: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
3171+echo "configure:3172: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
57233172 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg'+set}'`\" = set"; then
57243173 echo $ac_n "(cached) $ac_c" 1>&6
57253174 else
57263175 cat > conftest.$ac_ext <<EOF
5727-#line 5728 "configure"
3176+#line 3177 "configure"
57283177 #include "confdefs.h"
57293178
57303179 #define _SYSCALL32
@@ -5733,7 +3182,7 @@ int main() {
57333182 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
57343183 ; return 0; }
57353184 EOF
5736-if { (eval echo configure:5737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3185+if { (eval echo configure:3186: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
57373186 rm -rf conftest*
57383187 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
57393188 else
@@ -5755,12 +3204,12 @@ EOF
57553204 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" 1>&6
57563205
57573206 echo $ac_n "checking for win32_pstatus_t in sys/procfs.h""... $ac_c" 1>&6
5758-echo "configure:5759: checking for win32_pstatus_t in sys/procfs.h" >&5
3207+echo "configure:3208: checking for win32_pstatus_t in sys/procfs.h" >&5
57593208 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_win32_pstatus_t'+set}'`\" = set"; then
57603209 echo $ac_n "(cached) $ac_c" 1>&6
57613210 else
57623211 cat > conftest.$ac_ext <<EOF
5763-#line 5764 "configure"
3212+#line 3213 "configure"
57643213 #include "confdefs.h"
57653214
57663215 #define _SYSCALL32
@@ -5769,7 +3218,7 @@ int main() {
57693218 win32_pstatus_t avar
57703219 ; return 0; }
57713220 EOF
5772-if { (eval echo configure:5773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3221+if { (eval echo configure:3222: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
57733222 rm -rf conftest*
57743223 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
57753224 else
@@ -6167,17 +3616,17 @@ for ac_hdr in unistd.h
61673616 do
61683617 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
61693618 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6170-echo "configure:6171: checking for $ac_hdr" >&5
3619+echo "configure:3620: checking for $ac_hdr" >&5
61713620 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
61723621 echo $ac_n "(cached) $ac_c" 1>&6
61733622 else
61743623 cat > conftest.$ac_ext <<EOF
6175-#line 6176 "configure"
3624+#line 3625 "configure"
61763625 #include "confdefs.h"
61773626 #include <$ac_hdr>
61783627 EOF
61793628 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6180-{ (eval echo configure:6181: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3629+{ (eval echo configure:3630: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
61813630 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
61823631 if test -z "$ac_err"; then
61833632 rm -rf conftest*
@@ -6206,12 +3655,12 @@ done
62063655 for ac_func in getpagesize
62073656 do
62083657 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6209-echo "configure:6210: checking for $ac_func" >&5
3658+echo "configure:3659: checking for $ac_func" >&5
62103659 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
62113660 echo $ac_n "(cached) $ac_c" 1>&6
62123661 else
62133662 cat > conftest.$ac_ext <<EOF
6214-#line 6215 "configure"
3663+#line 3664 "configure"
62153664 #include "confdefs.h"
62163665 /* System header to define __stub macros and hopefully few prototypes,
62173666 which can conflict with char $ac_func(); below. */
@@ -6234,7 +3683,7 @@ $ac_func();
62343683
62353684 ; return 0; }
62363685 EOF
6237-if { (eval echo configure:6238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3686+if { (eval echo configure:3687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
62383687 rm -rf conftest*
62393688 eval "ac_cv_func_$ac_func=yes"
62403689 else
@@ -6259,7 +3708,7 @@ fi
62593708 done
62603709
62613710 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
6262-echo "configure:6263: checking for working mmap" >&5
3711+echo "configure:3712: checking for working mmap" >&5
62633712 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
62643713 echo $ac_n "(cached) $ac_c" 1>&6
62653714 else
@@ -6267,7 +3716,7 @@ else
62673716 ac_cv_func_mmap_fixed_mapped=no
62683717 else
62693718 cat > conftest.$ac_ext <<EOF
6270-#line 6271 "configure"
3719+#line 3720 "configure"
62713720 #include "confdefs.h"
62723721
62733722 /* Thanks to Mike Haertel and Jim Avera for this test.
@@ -6407,7 +3856,7 @@ main()
64073856 }
64083857
64093858 EOF
6410-if { (eval echo configure:6411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3859+if { (eval echo configure:3860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
64113860 then
64123861 ac_cv_func_mmap_fixed_mapped=yes
64133862 else
@@ -6432,12 +3881,12 @@ fi
64323881 for ac_func in madvise mprotect
64333882 do
64343883 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6435-echo "configure:6436: checking for $ac_func" >&5
3884+echo "configure:3885: checking for $ac_func" >&5
64363885 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
64373886 echo $ac_n "(cached) $ac_c" 1>&6
64383887 else
64393888 cat > conftest.$ac_ext <<EOF
6440-#line 6441 "configure"
3889+#line 3890 "configure"
64413890 #include "confdefs.h"
64423891 /* System header to define __stub macros and hopefully few prototypes,
64433892 which can conflict with char $ac_func(); below. */
@@ -6460,7 +3909,7 @@ $ac_func();
64603909
64613910 ; return 0; }
64623911 EOF
6463-if { (eval echo configure:6464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3912+if { (eval echo configure:3913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
64643913 rm -rf conftest*
64653914 eval "ac_cv_func_$ac_func=yes"
64663915 else
@@ -6654,37 +4103,11 @@ s%@MAKEINFO@%$MAKEINFO%g
66544103 s%@SET_MAKE@%$SET_MAKE%g
66554104 s%@AR@%$AR%g
66564105 s%@RANLIB@%$RANLIB%g
6657-s%@LN_S@%$LN_S%g
6658-s%@OBJEXT@%$OBJEXT%g
6659-s%@EXEEXT@%$EXEEXT%g
6660-s%@STRIP@%$STRIP%g
6661-s%@LIBTOOL@%$LIBTOOL%g
66624106 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
66634107 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
66644108 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
66654109 s%@MAINT@%$MAINT%g
6666-s%@CPP@%$CPP%g
6667-s%@ALLOCA@%$ALLOCA%g
6668-s%@USE_NLS@%$USE_NLS%g
6669-s%@MSGFMT@%$MSGFMT%g
6670-s%@GMSGFMT@%$GMSGFMT%g
6671-s%@XGETTEXT@%$XGETTEXT%g
6672-s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
6673-s%@CATALOGS@%$CATALOGS%g
6674-s%@CATOBJEXT@%$CATOBJEXT%g
6675-s%@DATADIRNAME@%$DATADIRNAME%g
6676-s%@GMOFILES@%$GMOFILES%g
6677-s%@INSTOBJEXT@%$INSTOBJEXT%g
6678-s%@INTLDEPS@%$INTLDEPS%g
6679-s%@INTLLIBS@%$INTLLIBS%g
6680-s%@INTLOBJS@%$INTLOBJS%g
6681-s%@POFILES@%$POFILES%g
6682-s%@POSUB@%$POSUB%g
6683-s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
6684-s%@GT_NO@%$GT_NO%g
6685-s%@GT_YES@%$GT_YES%g
6686-s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
6687-s%@l@%$l%g
4110+s%@EXEEXT@%$EXEEXT%g
66884111 s%@HDEFINES@%$HDEFINES%g
66894112 s%@BFD_HOST_64BIT_LONG@%$BFD_HOST_64BIT_LONG%g
66904113 s%@BFD_HOST_64_BIT_DEFINED@%$BFD_HOST_64_BIT_DEFINED%g
@@ -6692,6 +4115,7 @@ s%@BFD_HOST_64_BIT@%$BFD_HOST_64_BIT%g
66924115 s%@BFD_HOST_U_64_BIT@%$BFD_HOST_U_64_BIT%g
66934116 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
66944117 s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
4118+s%@CPP@%$CPP%g
66954119 s%@COREFILE@%$COREFILE%g
66964120 s%@COREFLAG@%$COREFLAG%g
66974121 s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g
--- a/bfd/configure.in
+++ b/bfd/configure.in
@@ -170,7 +170,7 @@ changequote([,])dnl
170170 TRAD_HEADER='"hosts/symmetry.h"'
171171 ;;
172172 changequote(,)dnl
173- i[3456]86-*-bsd* | i[34567]86-*-freebsd[1234] | i[34567]86-*-freebsd[1234]\.* | i[34567]86-*-freebsd*aout*)
173+ i[3456]86-*-bsd* | i[34567]86-*-freebsd[123] | i[34567]86-*-freebsd[123]\.* | i[34567]86-*-freebsd4\.[01]* | i[34567]86-*-freebsd*aout*)
174174 changequote([,])dnl
175175 COREFILE=trad-core.lo
176176 TRAD_HEADER='"hosts/i386bsd.h"'