3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-shared[=PKGS] build shared libraries [default=yes]"
17 --enable-static[=PKGS] build static libraries [default=yes]"
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
23 --disable-libtool-lock avoid locking (might break parallel builds)"
25 --with-pic try to use only PIC/non-PIC objects [default=use both]"
27 --enable-targets alternative target configurations"
29 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
31 --enable-werror treat compile warnings as errors"
33 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
35 --disable-nls do not use Native Language Support"
37 --with-included-gettext use the GNU gettext library included here"
39 --enable-maintainer-mode enable make rules and dependencies not useful
40 (and sometimes confusing) to the casual installer"
42 # Initialize some variables set by options.
43 # The variables have the same names as the options, with
44 # dashes changed to underlines.
46 cache_file=./config.cache
55 program_transform_name=s,x,x,
63 bindir='${exec_prefix}/bin'
64 sbindir='${exec_prefix}/sbin'
65 libexecdir='${exec_prefix}/libexec'
66 datadir='${prefix}/share'
67 sysconfdir='${prefix}/etc'
68 sharedstatedir='${prefix}/com'
69 localstatedir='${prefix}/var'
70 libdir='${exec_prefix}/lib'
71 includedir='${prefix}/include'
72 oldincludedir='/usr/include'
73 infodir='${prefix}/info'
74 mandir='${prefix}/man'
76 # Initialize some other variables.
79 SHELL=${CONFIG_SHELL-/bin/sh}
80 # Maximum number of lines to put in a shell here document.
87 # If the previous option needs an argument, assign it.
88 if test -n "$ac_prev"; then
89 eval "$ac_prev=\$ac_option"
95 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
99 # Accept the important Cygnus configure options, so we can diagnose typos.
103 -bindir | --bindir | --bindi | --bind | --bin | --bi)
105 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
106 bindir="$ac_optarg" ;;
108 -build | --build | --buil | --bui | --bu)
110 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
111 build="$ac_optarg" ;;
113 -cache-file | --cache-file | --cache-fil | --cache-fi \
114 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
115 ac_prev=cache_file ;;
116 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
117 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
118 cache_file="$ac_optarg" ;;
120 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
122 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
124 datadir="$ac_optarg" ;;
126 -disable-* | --disable-*)
127 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
128 # Reject names that are not valid shell variable names.
129 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
130 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
132 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
133 eval "enable_${ac_feature}=no" ;;
135 -enable-* | --enable-*)
136 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
137 # Reject names that are not valid shell variable names.
138 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
139 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
141 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
146 eval "enable_${ac_feature}='$ac_optarg'" ;;
148 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
149 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
150 | --exec | --exe | --ex)
151 ac_prev=exec_prefix ;;
152 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
153 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
154 | --exec=* | --exe=* | --ex=*)
155 exec_prefix="$ac_optarg" ;;
157 -gas | --gas | --ga | --g)
158 # Obsolete; use --with-gas.
161 -help | --help | --hel | --he)
162 # Omit some internal or obsolete options to make the list less imposing.
163 # This message is too long to be a string in the A/UX 3.1 sh.
165 Usage: configure [options] [host]
166 Options: [defaults in brackets after descriptions]
168 --cache-file=FILE cache test results in FILE
169 --help print this message
170 --no-create do not create output files
171 --quiet, --silent do not print \`checking...' messages
172 --version print the version of autoconf that created configure
173 Directory and file names:
174 --prefix=PREFIX install architecture-independent files in PREFIX
176 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
178 --bindir=DIR user executables in DIR [EPREFIX/bin]
179 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
180 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
181 --datadir=DIR read-only architecture-independent data in DIR
183 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
184 --sharedstatedir=DIR modifiable architecture-independent data in DIR
186 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
187 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
188 --includedir=DIR C header files in DIR [PREFIX/include]
189 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
190 --infodir=DIR info documentation in DIR [PREFIX/info]
191 --mandir=DIR man documentation in DIR [PREFIX/man]
192 --srcdir=DIR find the sources in DIR [configure dir or ..]
193 --program-prefix=PREFIX prepend PREFIX to installed program names
194 --program-suffix=SUFFIX append SUFFIX to installed program names
195 --program-transform-name=PROGRAM
196 run sed PROGRAM on installed program names
200 --build=BUILD configure for building on BUILD [BUILD=HOST]
201 --host=HOST configure for HOST [guessed]
202 --target=TARGET configure for TARGET [TARGET=HOST]
203 Features and packages:
204 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
205 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
206 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
207 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
208 --x-includes=DIR X include files are in DIR
209 --x-libraries=DIR X library files are in DIR
211 if test -n "$ac_help"; then
212 echo "--enable and --with options recognized:$ac_help"
216 -host | --host | --hos | --ho)
218 -host=* | --host=* | --hos=* | --ho=*)
221 -includedir | --includedir | --includedi | --included | --include \
222 | --includ | --inclu | --incl | --inc)
223 ac_prev=includedir ;;
224 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
225 | --includ=* | --inclu=* | --incl=* | --inc=*)
226 includedir="$ac_optarg" ;;
228 -infodir | --infodir | --infodi | --infod | --info | --inf)
230 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
231 infodir="$ac_optarg" ;;
233 -libdir | --libdir | --libdi | --libd)
235 -libdir=* | --libdir=* | --libdi=* | --libd=*)
236 libdir="$ac_optarg" ;;
238 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
239 | --libexe | --libex | --libe)
240 ac_prev=libexecdir ;;
241 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
242 | --libexe=* | --libex=* | --libe=*)
243 libexecdir="$ac_optarg" ;;
245 -localstatedir | --localstatedir | --localstatedi | --localstated \
246 | --localstate | --localstat | --localsta | --localst \
247 | --locals | --local | --loca | --loc | --lo)
248 ac_prev=localstatedir ;;
249 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
250 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
251 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
252 localstatedir="$ac_optarg" ;;
254 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
256 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
257 mandir="$ac_optarg" ;;
260 # Obsolete; use --without-fp.
263 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
267 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
268 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
271 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
272 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
273 | --oldin | --oldi | --old | --ol | --o)
274 ac_prev=oldincludedir ;;
275 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
276 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
277 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
278 oldincludedir="$ac_optarg" ;;
280 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
282 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
283 prefix="$ac_optarg" ;;
285 -program-prefix | --program-prefix | --program-prefi | --program-pref \
286 | --program-pre | --program-pr | --program-p)
287 ac_prev=program_prefix ;;
288 -program-prefix=* | --program-prefix=* | --program-prefi=* \
289 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
290 program_prefix="$ac_optarg" ;;
292 -program-suffix | --program-suffix | --program-suffi | --program-suff \
293 | --program-suf | --program-su | --program-s)
294 ac_prev=program_suffix ;;
295 -program-suffix=* | --program-suffix=* | --program-suffi=* \
296 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
297 program_suffix="$ac_optarg" ;;
299 -program-transform-name | --program-transform-name \
300 | --program-transform-nam | --program-transform-na \
301 | --program-transform-n | --program-transform- \
302 | --program-transform | --program-transfor \
303 | --program-transfo | --program-transf \
304 | --program-trans | --program-tran \
305 | --progr-tra | --program-tr | --program-t)
306 ac_prev=program_transform_name ;;
307 -program-transform-name=* | --program-transform-name=* \
308 | --program-transform-nam=* | --program-transform-na=* \
309 | --program-transform-n=* | --program-transform-=* \
310 | --program-transform=* | --program-transfor=* \
311 | --program-transfo=* | --program-transf=* \
312 | --program-trans=* | --program-tran=* \
313 | --progr-tra=* | --program-tr=* | --program-t=*)
314 program_transform_name="$ac_optarg" ;;
316 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
317 | -silent | --silent | --silen | --sile | --sil)
320 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
322 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
324 sbindir="$ac_optarg" ;;
326 -sharedstatedir | --sharedstatedir | --sharedstatedi \
327 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
328 | --sharedst | --shareds | --shared | --share | --shar \
330 ac_prev=sharedstatedir ;;
331 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
332 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
333 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
335 sharedstatedir="$ac_optarg" ;;
337 -site | --site | --sit)
339 -site=* | --site=* | --sit=*)
342 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
344 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
345 srcdir="$ac_optarg" ;;
347 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
348 | --syscon | --sysco | --sysc | --sys | --sy)
349 ac_prev=sysconfdir ;;
350 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
351 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
352 sysconfdir="$ac_optarg" ;;
354 -target | --target | --targe | --targ | --tar | --ta | --t)
356 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
357 target="$ac_optarg" ;;
359 -v | -verbose | --verbose | --verbos | --verbo | --verb)
362 -version | --version | --versio | --versi | --vers)
363 echo "configure generated by autoconf version 2.13"
367 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
368 # Reject names that are not valid shell variable names.
369 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
370 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
372 ac_package=`echo $ac_package| sed 's/-/_/g'`
377 eval "with_${ac_package}='$ac_optarg'" ;;
379 -without-* | --without-*)
380 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
381 # Reject names that are not valid shell variable names.
382 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
383 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
385 ac_package=`echo $ac_package| sed 's/-/_/g'`
386 eval "with_${ac_package}=no" ;;
389 # Obsolete; use --with-x.
392 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
393 | --x-incl | --x-inc | --x-in | --x-i)
394 ac_prev=x_includes ;;
395 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
396 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
397 x_includes="$ac_optarg" ;;
399 -x-libraries | --x-libraries | --x-librarie | --x-librari \
400 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
401 ac_prev=x_libraries ;;
402 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
403 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
404 x_libraries="$ac_optarg" ;;
406 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
410 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
411 echo "configure: warning: $ac_option: invalid host type" 1>&2
413 if test "x$nonopt" != xNONE; then
414 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
422 if test -n "$ac_prev"; then
423 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
426 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
428 # File descriptor usage:
431 # 2 errors and warnings
432 # 3 some systems may open it to /dev/tty
433 # 4 used on the Kubota Titan
434 # 6 checking for... messages and results
435 # 5 compiler messages saved in config.log
436 if test "$silent" = yes; then
444 This file contains any messages produced by compilers while
445 running configure, to aid debugging if configure makes a mistake.
448 # Strip out --no-create and --no-recursion so they do not pile up.
449 # Also quote any args containing shell metacharacters.
454 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
455 | --no-cr | --no-c) ;;
456 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
457 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
458 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
459 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
460 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
465 # Only set these to C if already set. These must not be set unconditionally
466 # because not all systems understand e.g. LANG=C (notably SCO).
467 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
468 # Non-C LC_CTYPE values break the ctype check.
469 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
470 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
471 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
472 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
474 # confdefs.h avoids OS command line length limits that DEFS can exceed.
475 rm -rf conftest* confdefs.h
476 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
479 # A filename unique to this package, relative to the directory that
480 # configure is in, which we can look for to find out if srcdir is correct.
483 # Find the source files, if location was not specified.
484 if test -z "$srcdir"; then
485 ac_srcdir_defaulted=yes
486 # Try the directory containing this script, then its parent.
488 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
489 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
491 if test ! -r $srcdir/$ac_unique_file; then
495 ac_srcdir_defaulted=no
497 if test ! -r $srcdir/$ac_unique_file; then
498 if test "$ac_srcdir_defaulted" = yes; then
499 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
501 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
504 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
506 # Prefer explicitly selected file to automatically selected ones.
507 if test -z "$CONFIG_SITE"; then
508 if test "x$prefix" != xNONE; then
509 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
511 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
514 for ac_site_file in $CONFIG_SITE; do
515 if test -r "$ac_site_file"; then
516 echo "loading site script $ac_site_file"
521 if test -r "$cache_file"; then
522 echo "loading cache $cache_file"
525 echo "creating cache $cache_file"
530 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
531 ac_cpp='$CPP $CPPFLAGS'
532 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
533 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
534 cross_compiling=$ac_cv_prog_cc_cross
538 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
539 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
540 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
547 ac_n= ac_c='\c' ac_t=
550 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
551 echo "configure:552: checking for Cygwin environment" >&5
552 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
553 echo $ac_n "(cached) $ac_c" 1>&6
555 cat > conftest.$ac_ext <<EOF
556 #line 557 "configure"
557 #include "confdefs.h"
562 #define __CYGWIN__ __CYGWIN32__
567 if { (eval echo configure:568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
571 echo "configure: failed program was:" >&5
572 cat conftest.$ac_ext >&5
580 echo "$ac_t""$ac_cv_cygwin" 1>&6
582 test "$ac_cv_cygwin" = yes && CYGWIN=yes
583 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
584 echo "configure:585: checking for mingw32 environment" >&5
585 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
586 echo $ac_n "(cached) $ac_c" 1>&6
588 cat > conftest.$ac_ext <<EOF
589 #line 590 "configure"
590 #include "confdefs.h"
596 if { (eval echo configure:597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
600 echo "configure: failed program was:" >&5
601 cat conftest.$ac_ext >&5
609 echo "$ac_t""$ac_cv_mingw32" 1>&6
611 test "$ac_cv_mingw32" = yes && MINGW32=yes
615 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
616 if test -f $ac_dir/install-sh; then
618 ac_install_sh="$ac_aux_dir/install-sh -c"
620 elif test -f $ac_dir/install.sh; then
622 ac_install_sh="$ac_aux_dir/install.sh -c"
626 if test -z "$ac_aux_dir"; then
627 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
629 ac_config_guess=$ac_aux_dir/config.guess
630 ac_config_sub=$ac_aux_dir/config.sub
631 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
634 # Do some error checking and defaulting for the host and target type.
636 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
639 # 1. You are not allowed to specify --host, --target, and nonopt at the
641 # 2. Host defaults to nonopt.
642 # 3. If nonopt is not specified, then host defaults to the current host,
643 # as determined by config.guess.
644 # 4. Target and build default to nonopt.
645 # 5. If nonopt is not specified, then target and build default to host.
647 # The aliases save the names the user supplied, while $host etc.
648 # will get canonicalized.
649 case $host---$target---$nonopt in
650 NONE---*---* | *---NONE---* | *---*---NONE) ;;
651 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
655 # Make sure we can run config.sub.
656 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
657 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
660 echo $ac_n "checking host system type""... $ac_c" 1>&6
661 echo "configure:662: checking host system type" >&5
664 case "$host_alias" in
668 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
669 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
671 *) host_alias=$nonopt ;;
675 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
676 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
677 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
678 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
679 echo "$ac_t""$host" 1>&6
681 echo $ac_n "checking target system type""... $ac_c" 1>&6
682 echo "configure:683: checking target system type" >&5
685 case "$target_alias" in
688 NONE) target_alias=$host_alias ;;
689 *) target_alias=$nonopt ;;
693 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
694 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
695 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
696 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
697 echo "$ac_t""$target" 1>&6
699 echo $ac_n "checking build system type""... $ac_c" 1>&6
700 echo "configure:701: checking build system type" >&5
703 case "$build_alias" in
706 NONE) build_alias=$host_alias ;;
707 *) build_alias=$nonopt ;;
711 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
712 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
713 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
714 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
715 echo "$ac_t""$build" 1>&6
717 test "$host_alias" != "$target_alias" &&
718 test "$program_prefix$program_suffix$program_transform_name" = \
720 program_prefix=${target_alias}-
723 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
724 echo "configure:725: checking for strerror in -lcposix" >&5
725 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
726 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
727 echo $ac_n "(cached) $ac_c" 1>&6
730 LIBS="-lcposix $LIBS"
731 cat > conftest.$ac_ext <<EOF
732 #line 733 "configure"
733 #include "confdefs.h"
734 /* Override any gcc2 internal prototype to avoid an error. */
735 /* We use char because int might match the return type of a gcc2
736 builtin and then its argument prototype would still apply. */
743 if { (eval echo configure:744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
745 eval "ac_cv_lib_$ac_lib_var=yes"
747 echo "configure: failed program was:" >&5
748 cat conftest.$ac_ext >&5
750 eval "ac_cv_lib_$ac_lib_var=no"
756 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
757 echo "$ac_t""yes" 1>&6
758 LIBS="$LIBS -lcposix"
760 echo "$ac_t""no" 1>&6
766 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
767 am__api_version="1.4"
768 # Find a good install program. We prefer a C program (faster),
769 # so one script is as good as another. But avoid the broken or
770 # incompatible versions:
771 # SysV /etc/install, /usr/sbin/install
772 # SunOS /usr/etc/install
775 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
776 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
777 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
778 # ./install, which can be erroneously created by make from ./install.sh.
779 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
780 echo "configure:781: checking for a BSD compatible install" >&5
781 if test -z "$INSTALL"; then
782 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
783 echo $ac_n "(cached) $ac_c" 1>&6
785 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
786 for ac_dir in $PATH; do
787 # Account for people who put trailing slashes in PATH elements.
789 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
791 # OSF1 and SCO ODT 3.0 have their own names for install.
792 # Don't use installbsd from OSF since it installs stuff as root
794 for ac_prog in ginstall scoinst install; do
795 if test -f $ac_dir/$ac_prog; then
796 if test $ac_prog = install &&
797 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
798 # AIX install. It has an incompatible calling convention.
801 ac_cv_path_install="$ac_dir/$ac_prog -c"
812 if test "${ac_cv_path_install+set}" = set; then
813 INSTALL="$ac_cv_path_install"
815 # As a last resort, use the slow shell script. We don't cache a
816 # path for INSTALL within a source directory, because that will
817 # break other packages using the cache if that directory is
818 # removed, or if the path is relative.
819 INSTALL="$ac_install_sh"
822 echo "$ac_t""$INSTALL" 1>&6
824 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
825 # It thinks the first close brace ends the variable substitution.
826 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
828 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
830 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
832 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
833 echo "configure:834: checking whether build environment is sane" >&5
836 echo timestamp > conftestfile
837 # Do `set' in a subshell so we don't clobber the current shell's
838 # arguments. Must try -L first in case configure is actually a
839 # symlink; some systems play weird games with the mod time of symlinks
840 # (eg FreeBSD returns the mod time of the symlink's containing
843 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
844 if test "$*" = "X"; then
846 set X `ls -t $srcdir/configure conftestfile`
848 if test "$*" != "X $srcdir/configure conftestfile" \
849 && test "$*" != "X conftestfile $srcdir/configure"; then
851 # If neither matched, then we have a broken ls. This can happen
852 # if, for instance, CONFIG_SHELL is bash and it inherits a
853 # broken ls alias from the environment. This has actually
854 # happened. Such a system could not be considered "sane".
855 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
856 alias in your environment" 1>&2; exit 1; }
859 test "$2" = conftestfile
865 { echo "configure: error: newly created file is older than distributed files!
866 Check your system clock" 1>&2; exit 1; }
869 echo "$ac_t""yes" 1>&6
870 if test "$program_transform_name" = s,x,x,; then
871 program_transform_name=
873 # Double any \ or $. echo might interpret backslashes.
874 cat <<\EOF_SED > conftestsed
875 s,\\,\\\\,g; s,\$,$$,g
877 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
880 test "$program_prefix" != NONE &&
881 program_transform_name="s,^,${program_prefix},; $program_transform_name"
882 # Use a double $ so make ignores it.
883 test "$program_suffix" != NONE &&
884 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
886 # sed with no file args requires a program.
887 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
889 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
890 echo "configure:891: checking whether ${MAKE-make} sets \${MAKE}" >&5
891 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
892 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
893 echo $ac_n "(cached) $ac_c" 1>&6
895 cat > conftestmake <<\EOF
897 @echo 'ac_maketemp="${MAKE}"'
899 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
900 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
901 if test -n "$ac_maketemp"; then
902 eval ac_cv_prog_make_${ac_make}_set=yes
904 eval ac_cv_prog_make_${ac_make}_set=no
908 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
909 echo "$ac_t""yes" 1>&6
912 echo "$ac_t""no" 1>&6
913 SET_MAKE="MAKE=${MAKE-make}"
919 VERSION=${BFD_VERSION}
921 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
922 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
924 cat >> confdefs.h <<EOF
925 #define PACKAGE "$PACKAGE"
928 cat >> confdefs.h <<EOF
929 #define VERSION "$VERSION"
934 missing_dir=`cd $ac_aux_dir && pwd`
935 echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
936 echo "configure:937: checking for working aclocal-${am__api_version}" >&5
937 # Run test in a subshell; some versions of sh will print an error if
938 # an executable is not found, even if stderr is redirected.
939 # Redirect stdin to placate older versions of autoconf. Sigh.
940 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
941 ACLOCAL=aclocal-${am__api_version}
942 echo "$ac_t""found" 1>&6
944 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
945 echo "$ac_t""missing" 1>&6
948 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
949 echo "configure:950: checking for working autoconf" >&5
950 # Run test in a subshell; some versions of sh will print an error if
951 # an executable is not found, even if stderr is redirected.
952 # Redirect stdin to placate older versions of autoconf. Sigh.
953 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
955 echo "$ac_t""found" 1>&6
957 AUTOCONF="$missing_dir/missing autoconf"
958 echo "$ac_t""missing" 1>&6
961 echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
962 echo "configure:963: checking for working automake-${am__api_version}" >&5
963 # Run test in a subshell; some versions of sh will print an error if
964 # an executable is not found, even if stderr is redirected.
965 # Redirect stdin to placate older versions of autoconf. Sigh.
966 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
967 AUTOMAKE=automake-${am__api_version}
968 echo "$ac_t""found" 1>&6
970 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
971 echo "$ac_t""missing" 1>&6
974 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
975 echo "configure:976: checking for working autoheader" >&5
976 # Run test in a subshell; some versions of sh will print an error if
977 # an executable is not found, even if stderr is redirected.
978 # Redirect stdin to placate older versions of autoconf. Sigh.
979 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
980 AUTOHEADER=autoheader
981 echo "$ac_t""found" 1>&6
983 AUTOHEADER="$missing_dir/missing autoheader"
984 echo "$ac_t""missing" 1>&6
987 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
988 echo "configure:989: checking for working makeinfo" >&5
989 # Run test in a subshell; some versions of sh will print an error if
990 # an executable is not found, even if stderr is redirected.
991 # Redirect stdin to placate older versions of autoconf. Sigh.
992 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
994 echo "$ac_t""found" 1>&6
996 MAKEINFO="$missing_dir/missing makeinfo"
997 echo "$ac_t""missing" 1>&6
1002 # Check whether --enable-shared or --disable-shared was given.
1003 if test "${enable_shared+set}" = set; then
1004 enableval="$enable_shared"
1005 p=${PACKAGE-default}
1007 yes) enable_shared=yes ;;
1008 no) enable_shared=no ;;
1011 # Look at the argument we got. We use all the common list separators.
1012 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1013 for pkg in $enableval; do
1014 if test "X$pkg" = "X$p"; then
1025 # Check whether --enable-static or --disable-static was given.
1026 if test "${enable_static+set}" = set; then
1027 enableval="$enable_static"
1028 p=${PACKAGE-default}
1030 yes) enable_static=yes ;;
1031 no) enable_static=no ;;
1034 # Look at the argument we got. We use all the common list separators.
1035 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1036 for pkg in $enableval; do
1037 if test "X$pkg" = "X$p"; then
1048 # Check whether --enable-fast-install or --disable-fast-install was given.
1049 if test "${enable_fast_install+set}" = set; then
1050 enableval="$enable_fast_install"
1051 p=${PACKAGE-default}
1053 yes) enable_fast_install=yes ;;
1054 no) enable_fast_install=no ;;
1056 enable_fast_install=no
1057 # Look at the argument we got. We use all the common list separators.
1058 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1059 for pkg in $enableval; do
1060 if test "X$pkg" = "X$p"; then
1061 enable_fast_install=yes
1068 enable_fast_install=yes
1071 # Extract the first word of "gcc", so it can be a program name with args.
1072 set dummy gcc; ac_word=$2
1073 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1074 echo "configure:1075: checking for $ac_word" >&5
1075 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1076 echo $ac_n "(cached) $ac_c" 1>&6
1078 if test -n "$CC"; then
1079 ac_cv_prog_CC="$CC" # Let the user override the test.
1081 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1083 for ac_dir in $ac_dummy; do
1084 test -z "$ac_dir" && ac_dir=.
1085 if test -f $ac_dir/$ac_word; then
1094 if test -n "$CC"; then
1095 echo "$ac_t""$CC" 1>&6
1097 echo "$ac_t""no" 1>&6
1100 if test -z "$CC"; then
1101 # Extract the first word of "cc", so it can be a program name with args.
1102 set dummy cc; ac_word=$2
1103 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1104 echo "configure:1105: checking for $ac_word" >&5
1105 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1106 echo $ac_n "(cached) $ac_c" 1>&6
1108 if test -n "$CC"; then
1109 ac_cv_prog_CC="$CC" # Let the user override the test.
1111 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1114 for ac_dir in $ac_dummy; do
1115 test -z "$ac_dir" && ac_dir=.
1116 if test -f $ac_dir/$ac_word; then
1117 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1118 ac_prog_rejected=yes
1126 if test $ac_prog_rejected = yes; then
1127 # We found a bogon in the path, so make sure we never use it.
1128 set dummy $ac_cv_prog_CC
1130 if test $# -gt 0; then
1131 # We chose a different compiler from the bogus one.
1132 # However, it has the same basename, so the bogon will be chosen
1133 # first if we set CC to just the basename; use the full file name.
1135 set dummy "$ac_dir/$ac_word" "$@"
1143 if test -n "$CC"; then
1144 echo "$ac_t""$CC" 1>&6
1146 echo "$ac_t""no" 1>&6
1149 if test -z "$CC"; then
1150 case "`uname -s`" in
1152 # Extract the first word of "cl", so it can be a program name with args.
1153 set dummy cl; ac_word=$2
1154 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1155 echo "configure:1156: checking for $ac_word" >&5
1156 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1157 echo $ac_n "(cached) $ac_c" 1>&6
1159 if test -n "$CC"; then
1160 ac_cv_prog_CC="$CC" # Let the user override the test.
1162 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1164 for ac_dir in $ac_dummy; do
1165 test -z "$ac_dir" && ac_dir=.
1166 if test -f $ac_dir/$ac_word; then
1175 if test -n "$CC"; then
1176 echo "$ac_t""$CC" 1>&6
1178 echo "$ac_t""no" 1>&6
1183 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1186 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1187 echo "configure:1188: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1190 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1191 ac_cpp='$CPP $CPPFLAGS'
1192 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1193 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1194 cross_compiling=$ac_cv_prog_cc_cross
1196 cat > conftest.$ac_ext << EOF
1198 #line 1199 "configure"
1199 #include "confdefs.h"
1203 if { (eval echo configure:1204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1204 ac_cv_prog_cc_works=yes
1205 # If we can't run a trivial program, we are probably using a cross compiler.
1206 if (./conftest; exit) 2>/dev/null; then
1207 ac_cv_prog_cc_cross=no
1209 ac_cv_prog_cc_cross=yes
1212 echo "configure: failed program was:" >&5
1213 cat conftest.$ac_ext >&5
1214 ac_cv_prog_cc_works=no
1218 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1219 ac_cpp='$CPP $CPPFLAGS'
1220 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1221 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1222 cross_compiling=$ac_cv_prog_cc_cross
1224 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1225 if test $ac_cv_prog_cc_works = no; then
1226 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1228 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1229 echo "configure:1230: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1230 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1231 cross_compiling=$ac_cv_prog_cc_cross
1233 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1234 echo "configure:1235: checking whether we are using GNU C" >&5
1235 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1236 echo $ac_n "(cached) $ac_c" 1>&6
1238 cat > conftest.c <<EOF
1243 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1250 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1252 if test $ac_cv_prog_gcc = yes; then
1258 ac_test_CFLAGS="${CFLAGS+set}"
1259 ac_save_CFLAGS="$CFLAGS"
1261 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1262 echo "configure:1263: checking whether ${CC-cc} accepts -g" >&5
1263 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1264 echo $ac_n "(cached) $ac_c" 1>&6
1266 echo 'void f(){}' > conftest.c
1267 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1276 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1277 if test "$ac_test_CFLAGS" = set; then
1278 CFLAGS="$ac_save_CFLAGS"
1279 elif test $ac_cv_prog_cc_g = yes; then
1280 if test "$GCC" = yes; then
1286 if test "$GCC" = yes; then
1293 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1294 if test "${with_gnu_ld+set}" = set; then
1295 withval="$with_gnu_ld"
1296 test "$withval" = no || with_gnu_ld=yes
1302 if test "$GCC" = yes; then
1303 # Check if gcc -print-prog-name=ld gives a path.
1304 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1305 echo "configure:1306: checking for ld used by GCC" >&5
1308 # gcc leaves a trailing carriage return which upsets mingw
1309 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1311 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1314 # Accept absolute paths.
1315 [\\/]* | [A-Za-z]:[\\/]*)
1316 re_direlt='/[^/][^/]*/\.\./'
1317 # Canonicalize the path of ld
1318 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1319 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1320 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1322 test -z "$LD" && LD="$ac_prog"
1325 # If it fails, then pretend we aren't using GCC.
1329 # If it is relative, then search for the first ld in PATH.
1333 elif test "$with_gnu_ld" = yes; then
1334 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1335 echo "configure:1336: checking for GNU ld" >&5
1337 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1338 echo "configure:1339: checking for non-GNU ld" >&5
1340 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1341 echo $ac_n "(cached) $ac_c" 1>&6
1343 if test -z "$LD"; then
1344 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1345 for ac_dir in $PATH; do
1346 test -z "$ac_dir" && ac_dir=.
1347 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1348 lt_cv_path_LD="$ac_dir/$ac_prog"
1349 # Check to see if the program is GNU ld. I'd rather use --version,
1350 # but apparently some GNU ld's only accept -v.
1351 # Break only if it was the GNU/non-GNU ld that we prefer.
1352 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1353 test "$with_gnu_ld" != no && break
1355 test "$with_gnu_ld" != yes && break
1361 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1366 if test -n "$LD"; then
1367 echo "$ac_t""$LD" 1>&6
1369 echo "$ac_t""no" 1>&6
1371 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1372 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1373 echo "configure:1374: checking if the linker ($LD) is GNU ld" >&5
1374 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1375 echo $ac_n "(cached) $ac_c" 1>&6
1377 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1378 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1379 lt_cv_prog_gnu_ld=yes
1381 lt_cv_prog_gnu_ld=no
1385 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1386 with_gnu_ld=$lt_cv_prog_gnu_ld
1389 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1390 echo "configure:1391: checking for $LD option to reload object files" >&5
1391 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1392 echo $ac_n "(cached) $ac_c" 1>&6
1394 lt_cv_ld_reload_flag='-r'
1397 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1398 reload_flag=$lt_cv_ld_reload_flag
1399 test -n "$reload_flag" && reload_flag=" $reload_flag"
1401 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1402 echo "configure:1403: checking for BSD-compatible nm" >&5
1403 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1404 echo $ac_n "(cached) $ac_c" 1>&6
1406 if test -n "$NM"; then
1407 # Let the user override the test.
1410 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1411 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1412 test -z "$ac_dir" && ac_dir=.
1413 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1414 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1415 # Check to see if the nm accepts a BSD-compat flag.
1416 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1417 # nm: unknown option "B" ignored
1418 # Tru64's nm complains that /dev/null is an invalid object file
1419 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1420 lt_cv_path_NM="$tmp_nm -B"
1422 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1423 lt_cv_path_NM="$tmp_nm -p"
1426 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1427 continue # so that we can try to find one that supports BSD flags
1432 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1437 echo "$ac_t""$NM" 1>&6
1439 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1440 echo "configure:1441: checking whether ln -s works" >&5
1441 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1442 echo $ac_n "(cached) $ac_c" 1>&6
1445 if ln -s X conftestdata 2>/dev/null
1448 ac_cv_prog_LN_S="ln -s"
1453 LN_S="$ac_cv_prog_LN_S"
1454 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1455 echo "$ac_t""yes" 1>&6
1457 echo "$ac_t""no" 1>&6
1460 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1461 echo "configure:1462: checking how to recognise dependant libraries" >&5
1462 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1463 echo $ac_n "(cached) $ac_c" 1>&6
1465 lt_cv_file_magic_cmd='$MAGIC_CMD'
1466 lt_cv_file_magic_test_file=
1467 lt_cv_deplibs_check_method='unknown'
1468 # Need to set the preceding variable on all platforms that support
1469 # interlibrary dependencies.
1470 # 'none' -- dependencies not supported.
1471 # `unknown' -- same as none, but documents that we really don't know.
1472 # 'pass_all' -- all dependencies passed with no checks.
1473 # 'test_compile' -- check by making test program.
1474 # 'file_magic [regex]' -- check by looking for files in library path
1475 # which responds to the $file_magic_cmd with a given egrep regex.
1476 # If you have `file' or equivalent on your system and you're not sure
1477 # whether `pass_all' will *always* work, you probably want this one.
1481 lt_cv_deplibs_check_method=pass_all
1485 lt_cv_deplibs_check_method=pass_all
1489 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1490 lt_cv_file_magic_cmd='/usr/bin/file -L'
1491 lt_cv_file_magic_test_file=/shlib/libc.so
1494 cygwin* | mingw* |pw32*)
1495 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1496 lt_cv_file_magic_cmd='$OBJDUMP -f'
1499 darwin* | rhapsody*)
1500 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1501 lt_cv_file_magic_cmd='/usr/bin/file -L'
1503 rhapsody* | darwin1.012)
1504 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1507 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1512 freebsd* | kfreebsd*-gnu)
1513 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1516 # Not sure whether the presence of OpenBSD here was a mistake.
1517 # Let's accept both of them until this is cleared up.
1518 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1519 lt_cv_file_magic_cmd=/usr/bin/file
1520 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1524 lt_cv_deplibs_check_method=pass_all
1529 lt_cv_deplibs_check_method=pass_all
1535 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1536 lt_cv_file_magic_cmd=/usr/bin/file
1537 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1540 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1541 lt_cv_file_magic_cmd=/usr/bin/file
1542 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1550 # this will be overridden with pass_all, but let us keep it just in case
1551 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1555 *-32|*"-32 ") libmagic=32-bit;;
1556 *-n32|*"-n32 ") libmagic=N32;;
1557 *-64|*"-64 ") libmagic=64-bit;;
1558 *) libmagic=never-match;;
1560 # this will be overridden with pass_all, but let us keep it just in case
1561 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1564 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1565 lt_cv_deplibs_check_method=pass_all
1568 # This must be Linux ELF.
1571 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1572 lt_cv_deplibs_check_method=pass_all ;;
1574 # glibc up to 2.1.1 does not perform some relocations on ARM
1575 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1577 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1580 netbsd* | knetbsd*-gnu)
1581 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1582 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1584 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1589 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1590 lt_cv_file_magic_cmd=/usr/bin/file
1591 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1594 osf3* | osf4* | osf5*)
1595 # this will be overridden with pass_all, but let us keep it just in case
1596 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1597 lt_cv_file_magic_test_file=/shlib/libc.so
1598 lt_cv_deplibs_check_method=pass_all
1602 lt_cv_deplibs_check_method=pass_all
1606 lt_cv_deplibs_check_method=pass_all
1607 lt_cv_file_magic_test_file=/lib/libc.so
1610 sysv5uw[78]* | sysv4*uw2*)
1611 lt_cv_deplibs_check_method=pass_all
1614 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1615 case $host_vendor in
1617 lt_cv_deplibs_check_method=pass_all
1620 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]'
1621 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1629 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1630 file_magic_cmd=$lt_cv_file_magic_cmd
1631 deplibs_check_method=$lt_cv_deplibs_check_method
1633 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1634 echo "configure:1635: checking for object suffix" >&5
1635 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1636 echo $ac_n "(cached) $ac_c" 1>&6
1639 echo 'int i = 1;' > conftest.$ac_ext
1640 if { (eval echo configure:1641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1641 for ac_file in conftest.*; do
1644 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1648 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1653 echo "$ac_t""$ac_cv_objext" 1>&6
1654 OBJEXT=$ac_cv_objext
1655 ac_objext=$ac_cv_objext
1659 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1660 echo "configure:1661: checking for executable suffix" >&5
1661 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1662 echo $ac_n "(cached) $ac_c" 1>&6
1664 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1668 echo 'int main () { return 0; }' > conftest.$ac_ext
1670 if { (eval echo configure:1671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1671 for file in conftest.*; do
1673 *.c | *.o | *.obj) ;;
1674 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1678 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1681 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1686 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1687 echo "$ac_t""${ac_cv_exeext}" 1>&6
1690 if test $host != $build; then
1691 ac_tool_prefix=${host_alias}-
1696 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1698 # Only perform the check for file, if the check method requires it
1699 case $deplibs_check_method in
1701 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1702 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1703 echo "configure:1704: checking for ${ac_tool_prefix}file" >&5
1704 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1705 echo $ac_n "(cached) $ac_c" 1>&6
1709 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1712 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1715 ac_save_MAGIC_CMD="$MAGIC_CMD"
1716 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1717 ac_dummy="/usr/bin:$PATH"
1718 for ac_dir in $ac_dummy; do
1719 test -z "$ac_dir" && ac_dir=.
1720 if test -f $ac_dir/${ac_tool_prefix}file; then
1721 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
1722 if test -n "$file_magic_test_file"; then
1723 case $deplibs_check_method in
1725 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1726 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1727 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1728 egrep "$file_magic_regex" > /dev/null; then
1733 *** Warning: the command libtool uses to detect shared libraries,
1734 *** $file_magic_cmd, produces output that libtool cannot recognize.
1735 *** The result is that libtool may fail to recognize shared libraries
1736 *** as such. This will affect the creation of libtool libraries that
1737 *** depend on shared libraries, but programs linked with such libtool
1738 *** libraries will work regardless of this problem. Nevertheless, you
1739 *** may want to report the problem to your system manager and/or to
1740 *** bug-libtool@gnu.org
1750 MAGIC_CMD="$ac_save_MAGIC_CMD"
1755 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1756 if test -n "$MAGIC_CMD"; then
1757 echo "$ac_t""$MAGIC_CMD" 1>&6
1759 echo "$ac_t""no" 1>&6
1762 if test -z "$lt_cv_path_MAGIC_CMD"; then
1763 if test -n "$ac_tool_prefix"; then
1764 echo $ac_n "checking for file""... $ac_c" 1>&6
1765 echo "configure:1766: checking for file" >&5
1766 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1767 echo $ac_n "(cached) $ac_c" 1>&6
1771 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1774 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1777 ac_save_MAGIC_CMD="$MAGIC_CMD"
1778 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1779 ac_dummy="/usr/bin:$PATH"
1780 for ac_dir in $ac_dummy; do
1781 test -z "$ac_dir" && ac_dir=.
1782 if test -f $ac_dir/file; then
1783 lt_cv_path_MAGIC_CMD="$ac_dir/file"
1784 if test -n "$file_magic_test_file"; then
1785 case $deplibs_check_method in
1787 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1788 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1789 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1790 egrep "$file_magic_regex" > /dev/null; then
1795 *** Warning: the command libtool uses to detect shared libraries,
1796 *** $file_magic_cmd, produces output that libtool cannot recognize.
1797 *** The result is that libtool may fail to recognize shared libraries
1798 *** as such. This will affect the creation of libtool libraries that
1799 *** depend on shared libraries, but programs linked with such libtool
1800 *** libraries will work regardless of this problem. Nevertheless, you
1801 *** may want to report the problem to your system manager and/or to
1802 *** bug-libtool@gnu.org
1812 MAGIC_CMD="$ac_save_MAGIC_CMD"
1817 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1818 if test -n "$MAGIC_CMD"; then
1819 echo "$ac_t""$MAGIC_CMD" 1>&6
1821 echo "$ac_t""no" 1>&6
1833 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1834 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1835 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1836 echo "configure:1837: checking for $ac_word" >&5
1837 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1838 echo $ac_n "(cached) $ac_c" 1>&6
1840 if test -n "$RANLIB"; then
1841 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1843 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1845 for ac_dir in $ac_dummy; do
1846 test -z "$ac_dir" && ac_dir=.
1847 if test -f $ac_dir/$ac_word; then
1848 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1855 RANLIB="$ac_cv_prog_RANLIB"
1856 if test -n "$RANLIB"; then
1857 echo "$ac_t""$RANLIB" 1>&6
1859 echo "$ac_t""no" 1>&6
1863 if test -z "$ac_cv_prog_RANLIB"; then
1864 if test -n "$ac_tool_prefix"; then
1865 # Extract the first word of "ranlib", so it can be a program name with args.
1866 set dummy ranlib; ac_word=$2
1867 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1868 echo "configure:1869: checking for $ac_word" >&5
1869 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1870 echo $ac_n "(cached) $ac_c" 1>&6
1872 if test -n "$RANLIB"; then
1873 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1875 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1877 for ac_dir in $ac_dummy; do
1878 test -z "$ac_dir" && ac_dir=.
1879 if test -f $ac_dir/$ac_word; then
1880 ac_cv_prog_RANLIB="ranlib"
1885 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1888 RANLIB="$ac_cv_prog_RANLIB"
1889 if test -n "$RANLIB"; then
1890 echo "$ac_t""$RANLIB" 1>&6
1892 echo "$ac_t""no" 1>&6
1900 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1901 set dummy ${ac_tool_prefix}strip; ac_word=$2
1902 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1903 echo "configure:1904: checking for $ac_word" >&5
1904 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1905 echo $ac_n "(cached) $ac_c" 1>&6
1907 if test -n "$STRIP"; then
1908 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1910 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1912 for ac_dir in $ac_dummy; do
1913 test -z "$ac_dir" && ac_dir=.
1914 if test -f $ac_dir/$ac_word; then
1915 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1922 STRIP="$ac_cv_prog_STRIP"
1923 if test -n "$STRIP"; then
1924 echo "$ac_t""$STRIP" 1>&6
1926 echo "$ac_t""no" 1>&6
1930 if test -z "$ac_cv_prog_STRIP"; then
1931 if test -n "$ac_tool_prefix"; then
1932 # Extract the first word of "strip", so it can be a program name with args.
1933 set dummy strip; ac_word=$2
1934 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1935 echo "configure:1936: checking for $ac_word" >&5
1936 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1937 echo $ac_n "(cached) $ac_c" 1>&6
1939 if test -n "$STRIP"; then
1940 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1942 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1944 for ac_dir in $ac_dummy; do
1945 test -z "$ac_dir" && ac_dir=.
1946 if test -f $ac_dir/$ac_word; then
1947 ac_cv_prog_STRIP="strip"
1952 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1955 STRIP="$ac_cv_prog_STRIP"
1956 if test -n "$STRIP"; then
1957 echo "$ac_t""$STRIP" 1>&6
1959 echo "$ac_t""no" 1>&6
1968 # Check for any special flags to pass to ltconfig.
1969 libtool_flags="--cache-file=$cache_file"
1970 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1971 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1972 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1973 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
1974 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1977 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1978 if test "${enable_libtool_lock+set}" = set; then
1979 enableval="$enable_libtool_lock"
1983 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1984 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1986 # Check whether --with-pic or --without-pic was given.
1987 if test "${with_pic+set}" = set; then
1994 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
1995 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
1997 # Some flags need to be propagated to the compiler or linker for good
2001 # Find out which ABI we are using.
2002 echo '#line 2003 "configure"' > conftest.$ac_ext
2003 if { (eval echo configure:2004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2004 if test "$lt_cv_prog_gnu_ld" = yes; then
2005 case `/usr/bin/file conftest.$ac_objext` in
2007 LD="${LD-ld} -melf32bsmip"
2010 LD="${LD-ld} -melf32bmipn32"
2013 LD="${LD-ld} -melf64bmip"
2017 case `/usr/bin/file conftest.$ac_objext` in
2034 # Find out which ABI we are using.
2035 echo 'int i;' > conftest.$ac_ext
2036 if { (eval echo configure:2037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2037 case "`/usr/bin/file conftest.o`" in
2050 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2051 SAVE_CFLAGS="$CFLAGS"
2052 CFLAGS="$CFLAGS -belf"
2053 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2054 echo "configure:2055: checking whether the C compiler needs -belf" >&5
2055 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2056 echo $ac_n "(cached) $ac_c" 1>&6
2060 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2061 ac_cpp='$CPP $CPPFLAGS'
2062 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2063 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2064 cross_compiling=$ac_cv_prog_cc_cross
2066 cat > conftest.$ac_ext <<EOF
2067 #line 2068 "configure"
2068 #include "confdefs.h"
2074 if { (eval echo configure:2075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2076 lt_cv_cc_needs_belf=yes
2078 echo "configure: failed program was:" >&5
2079 cat conftest.$ac_ext >&5
2081 lt_cv_cc_needs_belf=no
2085 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2086 ac_cpp='$CPP $CPPFLAGS'
2087 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2088 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2089 cross_compiling=$ac_cv_prog_cc_cross
2093 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2094 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2095 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2096 CFLAGS="$SAVE_CFLAGS"
2104 # Save cache, so that ltconfig can load it
2105 cat > confcache <<\EOF
2106 # This file is a shell script that caches the results of configure
2107 # tests run on this system so they can be shared between configure
2108 # scripts and configure runs. It is not useful on other systems.
2109 # If it contains results you don't want to keep, you may remove or edit it.
2111 # By default, configure uses ./config.cache as the cache file,
2112 # creating it if it does not exist already. You can give configure
2113 # the --cache-file=FILE option to use a different cache file; that is
2114 # what configure does when it calls configure scripts in
2115 # subdirectories, so they share the cache.
2116 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2117 # config.status only pays attention to the cache file if you give it the
2118 # --recheck option to rerun configure.
2121 # The following way of writing the cache mishandles newlines in values,
2122 # but we know of no workaround that is simple, portable, and efficient.
2123 # So, don't put newlines in cache variables' values.
2124 # Ultrix sh set writes to stderr and can't be redirected directly,
2125 # and sets the high bit in the cache file unless we assign to the vars.
2127 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2129 # `set' does not quote correctly, so add quotes (double-quote substitution
2130 # turns \\\\ into \\, and sed turns \\ into \).
2132 -e "s/'/'\\\\''/g" \
2133 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2136 # `set' quotes correctly as required by POSIX, so do not add quotes.
2137 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2140 if cmp -s $cache_file confcache; then
2143 if test -w $cache_file; then
2144 echo "updating cache $cache_file"
2145 cat confcache > $cache_file
2147 echo "not updating unwritable cache $cache_file"
2153 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2154 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2155 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2156 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2157 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2158 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2159 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2160 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2161 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2162 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2164 # Reload cache, that may have been modified by ltconfig
2165 if test -r "$cache_file"; then
2166 echo "loading cache $cache_file"
2169 echo "creating cache $cache_file"
2174 # This can be used to rebuild libtool when needed
2175 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2177 # Always use our own libtool.
2178 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2180 # Redirect the config.log output again, so that the ltconfig log is not
2181 # clobbered by the next message.
2182 exec 5>>./config.log
2190 # Check whether --enable-targets or --disable-targets was given.
2191 if test "${enable_targets+set}" = set; then
2192 enableval="$enable_targets"
2193 case "${enableval}" in
2194 yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
2196 no) enable_targets= ;;
2197 *) enable_targets=$enableval ;;
2200 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
2201 if test "${enable_commonbfdlib+set}" = set; then
2202 enableval="$enable_commonbfdlib"
2203 case "${enableval}" in
2204 yes) commonbfdlib=true ;;
2205 no) commonbfdlib=false ;;
2206 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
2210 build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
2212 # Check whether --enable-werror or --disable-werror was given.
2213 if test "${enable_werror+set}" = set; then
2214 enableval="$enable_werror"
2215 case "${enableval}" in
2216 yes | y) ERROR_ON_WARNING="yes" ;;
2217 no | n) ERROR_ON_WARNING="no" ;;
2218 *) { echo "configure: error: bad value ${enableval} for --enable-werror" 1>&2; exit 1; } ;;
2223 # Enable -Werror by default, suppressing it only for --disable-werror
2224 # or --disable-build-warnings.
2225 if test "${ERROR_ON_WARNING}" != no
2227 build_warnings="$build_warnings -Werror"
2230 # Check whether --enable-build-warnings or --disable-build-warnings was given.
2231 if test "${enable_build_warnings+set}" = set; then
2232 enableval="$enable_build_warnings"
2233 case "${enableval}" in
2235 no) build_warnings="-w";;
2236 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
2237 build_warnings="${build_warnings} ${t}";;
2238 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
2239 build_warnings="${t} ${build_warnings}";;
2240 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2242 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
2243 echo "Setting warning flags = $build_warnings" 6>&1
2247 if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
2248 WARN_CFLAGS="${build_warnings}"
2256 if test -z "$target" ; then
2257 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
2259 if test -z "$host" ; then
2260 { echo "configure: error: Unrecognized host system type; please check config.sub." 1>&2; exit 1; }
2263 # Extract the first word of "gcc", so it can be a program name with args.
2264 set dummy gcc; ac_word=$2
2265 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2266 echo "configure:2267: checking for $ac_word" >&5
2267 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2268 echo $ac_n "(cached) $ac_c" 1>&6
2270 if test -n "$CC"; then
2271 ac_cv_prog_CC="$CC" # Let the user override the test.
2273 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2275 for ac_dir in $ac_dummy; do
2276 test -z "$ac_dir" && ac_dir=.
2277 if test -f $ac_dir/$ac_word; then
2286 if test -n "$CC"; then
2287 echo "$ac_t""$CC" 1>&6
2289 echo "$ac_t""no" 1>&6
2292 if test -z "$CC"; then
2293 # Extract the first word of "cc", so it can be a program name with args.
2294 set dummy cc; ac_word=$2
2295 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2296 echo "configure:2297: checking for $ac_word" >&5
2297 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2298 echo $ac_n "(cached) $ac_c" 1>&6
2300 if test -n "$CC"; then
2301 ac_cv_prog_CC="$CC" # Let the user override the test.
2303 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2306 for ac_dir in $ac_dummy; do
2307 test -z "$ac_dir" && ac_dir=.
2308 if test -f $ac_dir/$ac_word; then
2309 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2310 ac_prog_rejected=yes
2318 if test $ac_prog_rejected = yes; then
2319 # We found a bogon in the path, so make sure we never use it.
2320 set dummy $ac_cv_prog_CC
2322 if test $# -gt 0; then
2323 # We chose a different compiler from the bogus one.
2324 # However, it has the same basename, so the bogon will be chosen
2325 # first if we set CC to just the basename; use the full file name.
2327 set dummy "$ac_dir/$ac_word" "$@"
2335 if test -n "$CC"; then
2336 echo "$ac_t""$CC" 1>&6
2338 echo "$ac_t""no" 1>&6
2341 if test -z "$CC"; then
2342 case "`uname -s`" in
2344 # Extract the first word of "cl", so it can be a program name with args.
2345 set dummy cl; ac_word=$2
2346 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2347 echo "configure:2348: checking for $ac_word" >&5
2348 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2349 echo $ac_n "(cached) $ac_c" 1>&6
2351 if test -n "$CC"; then
2352 ac_cv_prog_CC="$CC" # Let the user override the test.
2354 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2356 for ac_dir in $ac_dummy; do
2357 test -z "$ac_dir" && ac_dir=.
2358 if test -f $ac_dir/$ac_word; then
2367 if test -n "$CC"; then
2368 echo "$ac_t""$CC" 1>&6
2370 echo "$ac_t""no" 1>&6
2375 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2378 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2379 echo "configure:2380: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2382 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2383 ac_cpp='$CPP $CPPFLAGS'
2384 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2385 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2386 cross_compiling=$ac_cv_prog_cc_cross
2388 cat > conftest.$ac_ext << EOF
2390 #line 2391 "configure"
2391 #include "confdefs.h"
2395 if { (eval echo configure:2396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2396 ac_cv_prog_cc_works=yes
2397 # If we can't run a trivial program, we are probably using a cross compiler.
2398 if (./conftest; exit) 2>/dev/null; then
2399 ac_cv_prog_cc_cross=no
2401 ac_cv_prog_cc_cross=yes
2404 echo "configure: failed program was:" >&5
2405 cat conftest.$ac_ext >&5
2406 ac_cv_prog_cc_works=no
2410 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2411 ac_cpp='$CPP $CPPFLAGS'
2412 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2413 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2414 cross_compiling=$ac_cv_prog_cc_cross
2416 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2417 if test $ac_cv_prog_cc_works = no; then
2418 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2420 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2421 echo "configure:2422: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2422 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2423 cross_compiling=$ac_cv_prog_cc_cross
2425 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2426 echo "configure:2427: checking whether we are using GNU C" >&5
2427 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2428 echo $ac_n "(cached) $ac_c" 1>&6
2430 cat > conftest.c <<EOF
2435 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2442 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2444 if test $ac_cv_prog_gcc = yes; then
2450 ac_test_CFLAGS="${CFLAGS+set}"
2451 ac_save_CFLAGS="$CFLAGS"
2453 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2454 echo "configure:2455: checking whether ${CC-cc} accepts -g" >&5
2455 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2456 echo $ac_n "(cached) $ac_c" 1>&6
2458 echo 'void f(){}' > conftest.c
2459 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2468 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2469 if test "$ac_test_CFLAGS" = set; then
2470 CFLAGS="$ac_save_CFLAGS"
2471 elif test $ac_cv_prog_cc_g = yes; then
2472 if test "$GCC" = yes; then
2478 if test "$GCC" = yes; then
2486 for ac_prog in 'bison -y' byacc
2488 # Extract the first word of "$ac_prog", so it can be a program name with args.
2489 set dummy $ac_prog; ac_word=$2
2490 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2491 echo "configure:2492: checking for $ac_word" >&5
2492 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2493 echo $ac_n "(cached) $ac_c" 1>&6
2495 if test -n "$YACC"; then
2496 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2498 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2500 for ac_dir in $ac_dummy; do
2501 test -z "$ac_dir" && ac_dir=.
2502 if test -f $ac_dir/$ac_word; then
2503 ac_cv_prog_YACC="$ac_prog"
2510 YACC="$ac_cv_prog_YACC"
2511 if test -n "$YACC"; then
2512 echo "$ac_t""$YACC" 1>&6
2514 echo "$ac_t""no" 1>&6
2517 test -n "$YACC" && break
2519 test -n "$YACC" || YACC="yacc"
2521 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2522 echo "configure:2523: checking how to run the C preprocessor" >&5
2523 # On Suns, sometimes $CPP names a directory.
2524 if test -n "$CPP" && test -d "$CPP"; then
2527 if test -z "$CPP"; then
2528 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2529 echo $ac_n "(cached) $ac_c" 1>&6
2531 # This must be in double quotes, not single quotes, because CPP may get
2532 # substituted into the Makefile and "${CC-cc}" will confuse make.
2534 # On the NeXT, cc -E runs the code through the compiler's parser,
2535 # not just through cpp.
2536 cat > conftest.$ac_ext <<EOF
2537 #line 2538 "configure"
2538 #include "confdefs.h"
2542 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2543 { (eval echo configure:2544: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2544 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2545 if test -z "$ac_err"; then
2549 echo "configure: failed program was:" >&5
2550 cat conftest.$ac_ext >&5
2552 CPP="${CC-cc} -E -traditional-cpp"
2553 cat > conftest.$ac_ext <<EOF
2554 #line 2555 "configure"
2555 #include "confdefs.h"
2559 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2560 { (eval echo configure:2561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2561 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2562 if test -z "$ac_err"; then
2566 echo "configure: failed program was:" >&5
2567 cat conftest.$ac_ext >&5
2569 CPP="${CC-cc} -nologo -E"
2570 cat > conftest.$ac_ext <<EOF
2571 #line 2572 "configure"
2572 #include "confdefs.h"
2576 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2577 { (eval echo configure:2578: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2578 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2579 if test -z "$ac_err"; then
2583 echo "configure: failed program was:" >&5
2584 cat conftest.$ac_ext >&5
2593 ac_cv_prog_CPP="$CPP"
2595 CPP="$ac_cv_prog_CPP"
2597 ac_cv_prog_CPP="$CPP"
2599 echo "$ac_t""$CPP" 1>&6
2601 missing_dir=`cd $ac_aux_dir && pwd`
2602 for ac_prog in flex lex
2604 # Extract the first word of "$ac_prog", so it can be a program name with args.
2605 set dummy $ac_prog; ac_word=$2
2606 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2607 echo "configure:2608: checking for $ac_word" >&5
2608 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
2609 echo $ac_n "(cached) $ac_c" 1>&6
2611 if test -n "$LEX"; then
2612 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2614 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2616 for ac_dir in $ac_dummy; do
2617 test -z "$ac_dir" && ac_dir=.
2618 if test -f $ac_dir/$ac_word; then
2619 ac_cv_prog_LEX="$ac_prog"
2626 LEX="$ac_cv_prog_LEX"
2627 if test -n "$LEX"; then
2628 echo "$ac_t""$LEX" 1>&6
2630 echo "$ac_t""no" 1>&6
2633 test -n "$LEX" && break
2635 test -n "$LEX" || LEX="$missing_dir/missing flex"
2637 # Extract the first word of "flex", so it can be a program name with args.
2638 set dummy flex; ac_word=$2
2639 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2640 echo "configure:2641: checking for $ac_word" >&5
2641 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
2642 echo $ac_n "(cached) $ac_c" 1>&6
2644 if test -n "$LEX"; then
2645 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2647 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2649 for ac_dir in $ac_dummy; do
2650 test -z "$ac_dir" && ac_dir=.
2651 if test -f $ac_dir/$ac_word; then
2652 ac_cv_prog_LEX="flex"
2657 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
2660 LEX="$ac_cv_prog_LEX"
2661 if test -n "$LEX"; then
2662 echo "$ac_t""$LEX" 1>&6
2664 echo "$ac_t""no" 1>&6
2667 if test -z "$LEXLIB"
2673 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
2674 echo "configure:2675: checking for yywrap in -l$ac_lib" >&5
2675 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
2676 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2677 echo $ac_n "(cached) $ac_c" 1>&6
2679 ac_save_LIBS="$LIBS"
2680 LIBS="-l$ac_lib $LIBS"
2681 cat > conftest.$ac_ext <<EOF
2682 #line 2683 "configure"
2683 #include "confdefs.h"
2684 /* Override any gcc2 internal prototype to avoid an error. */
2685 /* We use char because int might match the return type of a gcc2
2686 builtin and then its argument prototype would still apply. */
2693 if { (eval echo configure:2694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2695 eval "ac_cv_lib_$ac_lib_var=yes"
2697 echo "configure: failed program was:" >&5
2698 cat conftest.$ac_ext >&5
2700 eval "ac_cv_lib_$ac_lib_var=no"
2703 LIBS="$ac_save_LIBS"
2706 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2707 echo "$ac_t""yes" 1>&6
2710 echo "$ac_t""no" 1>&6
2715 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
2716 echo "configure:2717: checking lex output file root" >&5
2717 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
2718 echo $ac_n "(cached) $ac_c" 1>&6
2720 # The minimal lex program is just a single line: %%. But some broken lexes
2721 # (Solaris, I think it was) want two %% lines, so accommodate them.
2724 if test -f lex.yy.c; then
2725 ac_cv_prog_lex_root=lex.yy
2726 elif test -f lexyy.c; then
2727 ac_cv_prog_lex_root=lexyy
2729 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
2733 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
2734 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
2736 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
2737 echo "configure:2738: checking whether yytext is a pointer" >&5
2738 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
2739 echo $ac_n "(cached) $ac_c" 1>&6
2741 # POSIX says lex can declare yytext either as a pointer or an array; the
2742 # default is implementation-dependent. Figure out which it is, since
2743 # not all implementations provide the %pointer and %array declarations.
2744 ac_cv_prog_lex_yytext_pointer=no
2745 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2746 ac_save_LIBS="$LIBS"
2747 LIBS="$LIBS $LEXLIB"
2748 cat > conftest.$ac_ext <<EOF
2749 #line 2750 "configure"
2750 #include "confdefs.h"
2751 `cat $LEX_OUTPUT_ROOT.c`
2756 if { (eval echo configure:2757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2758 ac_cv_prog_lex_yytext_pointer=yes
2760 echo "configure: failed program was:" >&5
2761 cat conftest.$ac_ext >&5
2764 LIBS="$ac_save_LIBS"
2765 rm -f "${LEX_OUTPUT_ROOT}.c"
2769 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
2770 if test $ac_cv_prog_lex_yytext_pointer = yes; then
2771 cat >> confdefs.h <<\EOF
2772 #define YYTEXT_POINTER 1
2778 ALL_LINGUAS="fr tr ja es sv da zh_CN ru ro"
2779 # Extract the first word of "ranlib", so it can be a program name with args.
2780 set dummy ranlib; ac_word=$2
2781 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2782 echo "configure:2783: checking for $ac_word" >&5
2783 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2784 echo $ac_n "(cached) $ac_c" 1>&6
2786 if test -n "$RANLIB"; then
2787 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2789 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2791 for ac_dir in $ac_dummy; do
2792 test -z "$ac_dir" && ac_dir=.
2793 if test -f $ac_dir/$ac_word; then
2794 ac_cv_prog_RANLIB="ranlib"
2799 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2802 RANLIB="$ac_cv_prog_RANLIB"
2803 if test -n "$RANLIB"; then
2804 echo "$ac_t""$RANLIB" 1>&6
2806 echo "$ac_t""no" 1>&6
2809 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2810 echo "configure:2811: checking for ANSI C header files" >&5
2811 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2812 echo $ac_n "(cached) $ac_c" 1>&6
2814 cat > conftest.$ac_ext <<EOF
2815 #line 2816 "configure"
2816 #include "confdefs.h"
2822 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2823 { (eval echo configure:2824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2824 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2825 if test -z "$ac_err"; then
2827 ac_cv_header_stdc=yes
2830 echo "configure: failed program was:" >&5
2831 cat conftest.$ac_ext >&5
2833 ac_cv_header_stdc=no
2837 if test $ac_cv_header_stdc = yes; then
2838 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2839 cat > conftest.$ac_ext <<EOF
2840 #line 2841 "configure"
2841 #include "confdefs.h"
2844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2845 egrep "memchr" >/dev/null 2>&1; then
2849 ac_cv_header_stdc=no
2855 if test $ac_cv_header_stdc = yes; then
2856 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2857 cat > conftest.$ac_ext <<EOF
2858 #line 2859 "configure"
2859 #include "confdefs.h"
2862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2863 egrep "free" >/dev/null 2>&1; then
2867 ac_cv_header_stdc=no
2873 if test $ac_cv_header_stdc = yes; then
2874 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2875 if test "$cross_compiling" = yes; then
2878 cat > conftest.$ac_ext <<EOF
2879 #line 2880 "configure"
2880 #include "confdefs.h"
2882 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2883 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2884 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2885 int main () { int i; for (i = 0; i < 256; i++)
2886 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2890 if { (eval echo configure:2891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2894 echo "configure: failed program was:" >&5
2895 cat conftest.$ac_ext >&5
2897 ac_cv_header_stdc=no
2905 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2906 if test $ac_cv_header_stdc = yes; then
2907 cat >> confdefs.h <<\EOF
2908 #define STDC_HEADERS 1
2913 echo $ac_n "checking for working const""... $ac_c" 1>&6
2914 echo "configure:2915: checking for working const" >&5
2915 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2916 echo $ac_n "(cached) $ac_c" 1>&6
2918 cat > conftest.$ac_ext <<EOF
2919 #line 2920 "configure"
2920 #include "confdefs.h"
2924 /* Ultrix mips cc rejects this. */
2925 typedef int charset[2]; const charset x;
2926 /* SunOS 4.1.1 cc rejects this. */
2927 char const *const *ccp;
2929 /* NEC SVR4.0.2 mips cc rejects this. */
2930 struct point {int x, y;};
2931 static struct point const zero = {0,0};
2932 /* AIX XL C 1.02.0.0 rejects this.
2933 It does not let you subtract one const X* pointer from another in an arm
2934 of an if-expression whose if-part is not a constant expression */
2935 const char *g = "string";
2936 ccp = &g + (g ? g-g : 0);
2937 /* HPUX 7.0 cc rejects these. */
2940 ccp = (char const *const *) p;
2941 { /* SCO 3.2v4 cc rejects this. */
2943 char const *s = 0 ? (char *) 0 : (char const *) 0;
2947 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2949 const int *foo = &x[0];
2952 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2953 typedef const int *iptr;
2957 { /* AIX XL C 1.02.0.0 rejects this saying
2958 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2959 struct s { int j; const int *ap[3]; };
2960 struct s *b; b->j = 5;
2962 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2968 if { (eval echo configure:2969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2972 echo "configure: failed program was:" >&5
2973 cat conftest.$ac_ext >&5
2980 echo "$ac_t""$ac_cv_c_const" 1>&6
2981 if test $ac_cv_c_const = no; then
2982 cat >> confdefs.h <<\EOF
2988 echo $ac_n "checking for inline""... $ac_c" 1>&6
2989 echo "configure:2990: checking for inline" >&5
2990 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2991 echo $ac_n "(cached) $ac_c" 1>&6
2994 for ac_kw in inline __inline__ __inline; do
2995 cat > conftest.$ac_ext <<EOF
2996 #line 2997 "configure"
2997 #include "confdefs.h"
3003 if { (eval echo configure:3004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3005 ac_cv_c_inline=$ac_kw; break
3007 echo "configure: failed program was:" >&5
3008 cat conftest.$ac_ext >&5
3015 echo "$ac_t""$ac_cv_c_inline" 1>&6
3016 case "$ac_cv_c_inline" in
3018 no) cat >> confdefs.h <<\EOF
3022 *) cat >> confdefs.h <<EOF
3023 #define inline $ac_cv_c_inline
3028 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3029 echo "configure:3030: checking for off_t" >&5
3030 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3031 echo $ac_n "(cached) $ac_c" 1>&6
3033 cat > conftest.$ac_ext <<EOF
3034 #line 3035 "configure"
3035 #include "confdefs.h"
3036 #include <sys/types.h>
3042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3043 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3045 ac_cv_type_off_t=yes
3053 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3054 if test $ac_cv_type_off_t = no; then
3055 cat >> confdefs.h <<\EOF
3061 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3062 echo "configure:3063: checking for size_t" >&5
3063 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3064 echo $ac_n "(cached) $ac_c" 1>&6
3066 cat > conftest.$ac_ext <<EOF
3067 #line 3068 "configure"
3068 #include "confdefs.h"
3069 #include <sys/types.h>
3075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3076 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3078 ac_cv_type_size_t=yes
3081 ac_cv_type_size_t=no
3086 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3087 if test $ac_cv_type_size_t = no; then
3088 cat >> confdefs.h <<\EOF
3089 #define size_t unsigned
3094 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3095 # for constant arguments. Useless!
3096 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3097 echo "configure:3098: checking for working alloca.h" >&5
3098 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3099 echo $ac_n "(cached) $ac_c" 1>&6
3101 cat > conftest.$ac_ext <<EOF
3102 #line 3103 "configure"
3103 #include "confdefs.h"
3106 char *p = alloca(2 * sizeof(int));
3109 if { (eval echo configure:3110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3111 ac_cv_header_alloca_h=yes
3113 echo "configure: failed program was:" >&5
3114 cat conftest.$ac_ext >&5
3116 ac_cv_header_alloca_h=no
3121 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3122 if test $ac_cv_header_alloca_h = yes; then
3123 cat >> confdefs.h <<\EOF
3124 #define HAVE_ALLOCA_H 1
3129 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3130 echo "configure:3131: checking for alloca" >&5
3131 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3132 echo $ac_n "(cached) $ac_c" 1>&6
3134 cat > conftest.$ac_ext <<EOF
3135 #line 3136 "configure"
3136 #include "confdefs.h"
3139 # define alloca __builtin_alloca
3142 # include <malloc.h>
3143 # define alloca _alloca
3146 # include <alloca.h>
3151 # ifndef alloca /* predefined by HP cc +Olibcalls */
3160 char *p = (char *) alloca(1);
3163 if { (eval echo configure:3164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3165 ac_cv_func_alloca_works=yes
3167 echo "configure: failed program was:" >&5
3168 cat conftest.$ac_ext >&5
3170 ac_cv_func_alloca_works=no
3175 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3176 if test $ac_cv_func_alloca_works = yes; then
3177 cat >> confdefs.h <<\EOF
3178 #define HAVE_ALLOCA 1
3183 if test $ac_cv_func_alloca_works = no; then
3184 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3185 # that cause trouble. Some versions do not even contain alloca or
3186 # contain a buggy version. If you still want to use their alloca,
3187 # use ar to extract alloca.o from them instead of compiling alloca.c.
3188 ALLOCA=alloca.${ac_objext}
3189 cat >> confdefs.h <<\EOF
3194 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3195 echo "configure:3196: checking whether alloca needs Cray hooks" >&5
3196 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3197 echo $ac_n "(cached) $ac_c" 1>&6
3199 cat > conftest.$ac_ext <<EOF
3200 #line 3201 "configure"
3201 #include "confdefs.h"
3202 #if defined(CRAY) && ! defined(CRAY2)
3209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3210 egrep "webecray" >/dev/null 2>&1; then
3221 echo "$ac_t""$ac_cv_os_cray" 1>&6
3222 if test $ac_cv_os_cray = yes; then
3223 for ac_func in _getb67 GETB67 getb67; do
3224 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3225 echo "configure:3226: checking for $ac_func" >&5
3226 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3227 echo $ac_n "(cached) $ac_c" 1>&6
3229 cat > conftest.$ac_ext <<EOF
3230 #line 3231 "configure"
3231 #include "confdefs.h"
3232 /* System header to define __stub macros and hopefully few prototypes,
3233 which can conflict with char $ac_func(); below. */
3235 /* Override any gcc2 internal prototype to avoid an error. */
3236 /* We use char because int might match the return type of a gcc2
3237 builtin and then its argument prototype would still apply. */
3242 /* The GNU C library defines this for functions which it implements
3243 to always fail with ENOSYS. Some functions are actually named
3244 something starting with __ and the normal name is an alias. */
3245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3253 if { (eval echo configure:3254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3255 eval "ac_cv_func_$ac_func=yes"
3257 echo "configure: failed program was:" >&5
3258 cat conftest.$ac_ext >&5
3260 eval "ac_cv_func_$ac_func=no"
3265 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3266 echo "$ac_t""yes" 1>&6
3267 cat >> confdefs.h <<EOF
3268 #define CRAY_STACKSEG_END $ac_func
3273 echo "$ac_t""no" 1>&6
3279 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3280 echo "configure:3281: checking stack direction for C alloca" >&5
3281 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3282 echo $ac_n "(cached) $ac_c" 1>&6
3284 if test "$cross_compiling" = yes; then
3285 ac_cv_c_stack_direction=0
3287 cat > conftest.$ac_ext <<EOF
3288 #line 3289 "configure"
3289 #include "confdefs.h"
3290 find_stack_direction ()
3292 static char *addr = 0;
3297 return find_stack_direction ();
3300 return (&dummy > addr) ? 1 : -1;
3304 exit (find_stack_direction() < 0);
3307 if { (eval echo configure:3308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3309 ac_cv_c_stack_direction=1
3311 echo "configure: failed program was:" >&5
3312 cat conftest.$ac_ext >&5
3314 ac_cv_c_stack_direction=-1
3321 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3322 cat >> confdefs.h <<EOF
3323 #define STACK_DIRECTION $ac_cv_c_stack_direction
3328 for ac_hdr in unistd.h
3330 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3331 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3332 echo "configure:3333: checking for $ac_hdr" >&5
3333 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3334 echo $ac_n "(cached) $ac_c" 1>&6
3336 cat > conftest.$ac_ext <<EOF
3337 #line 3338 "configure"
3338 #include "confdefs.h"
3341 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3342 { (eval echo configure:3343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3343 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3344 if test -z "$ac_err"; then
3346 eval "ac_cv_header_$ac_safe=yes"
3349 echo "configure: failed program was:" >&5
3350 cat conftest.$ac_ext >&5
3352 eval "ac_cv_header_$ac_safe=no"
3356 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3357 echo "$ac_t""yes" 1>&6
3358 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3359 cat >> confdefs.h <<EOF
3360 #define $ac_tr_hdr 1
3364 echo "$ac_t""no" 1>&6
3368 for ac_func in getpagesize
3370 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3371 echo "configure:3372: checking for $ac_func" >&5
3372 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3373 echo $ac_n "(cached) $ac_c" 1>&6
3375 cat > conftest.$ac_ext <<EOF
3376 #line 3377 "configure"
3377 #include "confdefs.h"
3378 /* System header to define __stub macros and hopefully few prototypes,
3379 which can conflict with char $ac_func(); below. */
3381 /* Override any gcc2 internal prototype to avoid an error. */
3382 /* We use char because int might match the return type of a gcc2
3383 builtin and then its argument prototype would still apply. */
3388 /* The GNU C library defines this for functions which it implements
3389 to always fail with ENOSYS. Some functions are actually named
3390 something starting with __ and the normal name is an alias. */
3391 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3399 if { (eval echo configure:3400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3401 eval "ac_cv_func_$ac_func=yes"
3403 echo "configure: failed program was:" >&5
3404 cat conftest.$ac_ext >&5
3406 eval "ac_cv_func_$ac_func=no"
3411 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3412 echo "$ac_t""yes" 1>&6
3413 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3414 cat >> confdefs.h <<EOF
3415 #define $ac_tr_func 1
3419 echo "$ac_t""no" 1>&6
3423 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3424 echo "configure:3425: checking for working mmap" >&5
3425 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3426 echo $ac_n "(cached) $ac_c" 1>&6
3428 if test "$cross_compiling" = yes; then
3429 ac_cv_func_mmap_fixed_mapped=no
3431 cat > conftest.$ac_ext <<EOF
3432 #line 3433 "configure"
3433 #include "confdefs.h"
3435 /* Thanks to Mike Haertel and Jim Avera for this test.
3436 Here is a matrix of mmap possibilities:
3437 mmap private not fixed
3438 mmap private fixed at somewhere currently unmapped
3439 mmap private fixed at somewhere already mapped
3440 mmap shared not fixed
3441 mmap shared fixed at somewhere currently unmapped
3442 mmap shared fixed at somewhere already mapped
3443 For private mappings, we should verify that changes cannot be read()
3444 back from the file, nor mmap's back from the file at a different
3445 address. (There have been systems where private was not correctly
3446 implemented like the infamous i386 svr4.0, and systems where the
3447 VM page cache was not coherent with the filesystem buffer cache
3448 like early versions of FreeBSD and possibly contemporary NetBSD.)
3449 For shared mappings, we should conversely verify that changes get
3450 propogated back to all the places they're supposed to be.
3452 Grep wants private fixed already mapped.
3453 The main things grep needs to know about mmap are:
3454 * does it exist and is it safe to write into the mmap'd area
3455 * how to use it (BSD variants) */
3456 #include <sys/types.h>
3458 #include <sys/mman.h>
3460 /* This mess was copied from the GNU getpagesize.h. */
3461 #ifndef HAVE_GETPAGESIZE
3462 # ifdef HAVE_UNISTD_H
3463 # include <unistd.h>
3466 /* Assume that all systems that can run configure have sys/param.h. */
3467 # ifndef HAVE_SYS_PARAM_H
3468 # define HAVE_SYS_PARAM_H 1
3471 # ifdef _SC_PAGESIZE
3472 # define getpagesize() sysconf(_SC_PAGESIZE)
3473 # else /* no _SC_PAGESIZE */
3474 # ifdef HAVE_SYS_PARAM_H
3475 # include <sys/param.h>
3476 # ifdef EXEC_PAGESIZE
3477 # define getpagesize() EXEC_PAGESIZE
3478 # else /* no EXEC_PAGESIZE */
3480 # define getpagesize() NBPG * CLSIZE
3483 # endif /* no CLSIZE */
3484 # else /* no NBPG */
3486 # define getpagesize() NBPC
3487 # else /* no NBPC */
3489 # define getpagesize() PAGESIZE
3490 # endif /* PAGESIZE */
3491 # endif /* no NBPC */
3492 # endif /* no NBPG */
3493 # endif /* no EXEC_PAGESIZE */
3494 # else /* no HAVE_SYS_PARAM_H */
3495 # define getpagesize() 8192 /* punt totally */
3496 # endif /* no HAVE_SYS_PARAM_H */
3497 # endif /* no _SC_PAGESIZE */
3499 #endif /* no HAVE_GETPAGESIZE */
3502 extern "C" { void *malloc(unsigned); }
3510 char *data, *data2, *data3;
3514 pagesize = getpagesize();
3517 * First, make a file with some known garbage in it.
3519 data = malloc(pagesize);
3522 for (i = 0; i < pagesize; ++i)
3523 *(data + i) = rand();
3525 fd = creat("conftestmmap", 0600);
3528 if (write(fd, data, pagesize) != pagesize)
3533 * Next, try to mmap the file at a fixed address which
3534 * already has something else allocated at it. If we can,
3535 * also make sure that we see the same garbage.
3537 fd = open("conftestmmap", O_RDWR);
3540 data2 = malloc(2 * pagesize);
3543 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3544 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3545 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3547 for (i = 0; i < pagesize; ++i)
3548 if (*(data + i) != *(data2 + i))
3552 * Finally, make sure that changes to the mapped area
3553 * do not percolate back to the file as seen by read().
3554 * (This is a bug on some variants of i386 svr4.0.)
3556 for (i = 0; i < pagesize; ++i)
3557 *(data2 + i) = *(data2 + i) + 1;
3558 data3 = malloc(pagesize);
3561 if (read(fd, data3, pagesize) != pagesize)
3563 for (i = 0; i < pagesize; ++i)
3564 if (*(data + i) != *(data3 + i))
3567 unlink("conftestmmap");
3572 if { (eval echo configure:3573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3574 ac_cv_func_mmap_fixed_mapped=yes
3576 echo "configure: failed program was:" >&5
3577 cat conftest.$ac_ext >&5
3579 ac_cv_func_mmap_fixed_mapped=no
3586 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3587 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3588 cat >> confdefs.h <<\EOF
3595 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3596 unistd.h values.h sys/param.h
3598 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3599 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3600 echo "configure:3601: checking for $ac_hdr" >&5
3601 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3602 echo $ac_n "(cached) $ac_c" 1>&6
3604 cat > conftest.$ac_ext <<EOF
3605 #line 3606 "configure"
3606 #include "confdefs.h"
3609 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3610 { (eval echo configure:3611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3611 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3612 if test -z "$ac_err"; then
3614 eval "ac_cv_header_$ac_safe=yes"
3617 echo "configure: failed program was:" >&5
3618 cat conftest.$ac_ext >&5
3620 eval "ac_cv_header_$ac_safe=no"
3624 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3625 echo "$ac_t""yes" 1>&6
3626 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3627 cat >> confdefs.h <<EOF
3628 #define $ac_tr_hdr 1
3632 echo "$ac_t""no" 1>&6
3636 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3637 __argz_count __argz_stringify __argz_next
3639 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3640 echo "configure:3641: checking for $ac_func" >&5
3641 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3642 echo $ac_n "(cached) $ac_c" 1>&6
3644 cat > conftest.$ac_ext <<EOF
3645 #line 3646 "configure"
3646 #include "confdefs.h"
3647 /* System header to define __stub macros and hopefully few prototypes,
3648 which can conflict with char $ac_func(); below. */
3650 /* Override any gcc2 internal prototype to avoid an error. */
3651 /* We use char because int might match the return type of a gcc2
3652 builtin and then its argument prototype would still apply. */
3657 /* The GNU C library defines this for functions which it implements
3658 to always fail with ENOSYS. Some functions are actually named
3659 something starting with __ and the normal name is an alias. */
3660 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3668 if { (eval echo configure:3669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3670 eval "ac_cv_func_$ac_func=yes"
3672 echo "configure: failed program was:" >&5
3673 cat conftest.$ac_ext >&5
3675 eval "ac_cv_func_$ac_func=no"
3680 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3681 echo "$ac_t""yes" 1>&6
3682 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3683 cat >> confdefs.h <<EOF
3684 #define $ac_tr_func 1
3688 echo "$ac_t""no" 1>&6
3693 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3694 for ac_func in stpcpy
3696 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3697 echo "configure:3698: checking for $ac_func" >&5
3698 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3699 echo $ac_n "(cached) $ac_c" 1>&6
3701 cat > conftest.$ac_ext <<EOF
3702 #line 3703 "configure"
3703 #include "confdefs.h"
3704 /* System header to define __stub macros and hopefully few prototypes,
3705 which can conflict with char $ac_func(); below. */
3707 /* Override any gcc2 internal prototype to avoid an error. */
3708 /* We use char because int might match the return type of a gcc2
3709 builtin and then its argument prototype would still apply. */
3714 /* The GNU C library defines this for functions which it implements
3715 to always fail with ENOSYS. Some functions are actually named
3716 something starting with __ and the normal name is an alias. */
3717 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3725 if { (eval echo configure:3726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3727 eval "ac_cv_func_$ac_func=yes"
3729 echo "configure: failed program was:" >&5
3730 cat conftest.$ac_ext >&5
3732 eval "ac_cv_func_$ac_func=no"
3737 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3738 echo "$ac_t""yes" 1>&6
3739 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3740 cat >> confdefs.h <<EOF
3741 #define $ac_tr_func 1
3745 echo "$ac_t""no" 1>&6
3750 if test "${ac_cv_func_stpcpy}" = "yes"; then
3751 cat >> confdefs.h <<\EOF
3752 #define HAVE_STPCPY 1
3757 if test $ac_cv_header_locale_h = yes; then
3758 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3759 echo "configure:3760: checking for LC_MESSAGES" >&5
3760 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3761 echo $ac_n "(cached) $ac_c" 1>&6
3763 cat > conftest.$ac_ext <<EOF
3764 #line 3765 "configure"
3765 #include "confdefs.h"
3771 if { (eval echo configure:3772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3773 am_cv_val_LC_MESSAGES=yes
3775 echo "configure: failed program was:" >&5
3776 cat conftest.$ac_ext >&5
3778 am_cv_val_LC_MESSAGES=no
3783 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3784 if test $am_cv_val_LC_MESSAGES = yes; then
3785 cat >> confdefs.h <<\EOF
3786 #define HAVE_LC_MESSAGES 1
3791 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3792 echo "configure:3793: checking whether NLS is requested" >&5
3793 # Check whether --enable-nls or --disable-nls was given.
3794 if test "${enable_nls+set}" = set; then
3795 enableval="$enable_nls"
3801 echo "$ac_t""$USE_NLS" 1>&6
3804 USE_INCLUDED_LIBINTL=no
3806 if test "$USE_NLS" = "yes"; then
3807 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3808 echo "configure:3809: checking whether included gettext is requested" >&5
3809 # Check whether --with-included-gettext or --without-included-gettext was given.
3810 if test "${with_included_gettext+set}" = set; then
3811 withval="$with_included_gettext"
3812 nls_cv_force_use_gnu_gettext=$withval
3814 nls_cv_force_use_gnu_gettext=no
3817 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3819 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3820 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3822 nls_cv_header_libgt=
3825 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3826 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3827 echo "configure:3828: checking for libintl.h" >&5
3828 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3829 echo $ac_n "(cached) $ac_c" 1>&6
3831 cat > conftest.$ac_ext <<EOF
3832 #line 3833 "configure"
3833 #include "confdefs.h"
3834 #include <libintl.h>
3836 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3837 { (eval echo configure:3838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3838 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3839 if test -z "$ac_err"; then
3841 eval "ac_cv_header_$ac_safe=yes"
3844 echo "configure: failed program was:" >&5
3845 cat conftest.$ac_ext >&5
3847 eval "ac_cv_header_$ac_safe=no"
3851 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3852 echo "$ac_t""yes" 1>&6
3853 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3854 echo "configure:3855: checking for gettext in libc" >&5
3855 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3856 echo $ac_n "(cached) $ac_c" 1>&6
3858 cat > conftest.$ac_ext <<EOF
3859 #line 3860 "configure"
3860 #include "confdefs.h"
3861 #include <libintl.h>
3863 return (int) gettext ("")
3866 if { (eval echo configure:3867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3868 gt_cv_func_gettext_libc=yes
3870 echo "configure: failed program was:" >&5
3871 cat conftest.$ac_ext >&5
3873 gt_cv_func_gettext_libc=no
3878 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3880 if test "$gt_cv_func_gettext_libc" != "yes"; then
3881 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3882 echo "configure:3883: checking for bindtextdomain in -lintl" >&5
3883 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3884 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3885 echo $ac_n "(cached) $ac_c" 1>&6
3887 ac_save_LIBS="$LIBS"
3889 cat > conftest.$ac_ext <<EOF
3890 #line 3891 "configure"
3891 #include "confdefs.h"
3892 /* Override any gcc2 internal prototype to avoid an error. */
3893 /* We use char because int might match the return type of a gcc2
3894 builtin and then its argument prototype would still apply. */
3895 char bindtextdomain();
3901 if { (eval echo configure:3902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3903 eval "ac_cv_lib_$ac_lib_var=yes"
3905 echo "configure: failed program was:" >&5
3906 cat conftest.$ac_ext >&5
3908 eval "ac_cv_lib_$ac_lib_var=no"
3911 LIBS="$ac_save_LIBS"
3914 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3915 echo "$ac_t""yes" 1>&6
3916 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3917 echo "configure:3918: checking for gettext in libintl" >&5
3918 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3919 echo $ac_n "(cached) $ac_c" 1>&6
3921 cat > conftest.$ac_ext <<EOF
3922 #line 3923 "configure"
3923 #include "confdefs.h"
3926 return (int) gettext ("")
3929 if { (eval echo configure:3930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3931 gt_cv_func_gettext_libintl=yes
3933 echo "configure: failed program was:" >&5
3934 cat conftest.$ac_ext >&5
3936 gt_cv_func_gettext_libintl=no
3941 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3943 echo "$ac_t""no" 1>&6
3948 if test "$gt_cv_func_gettext_libc" = "yes" \
3949 || test "$gt_cv_func_gettext_libintl" = "yes"; then
3950 cat >> confdefs.h <<\EOF
3951 #define HAVE_GETTEXT 1
3954 # Extract the first word of "msgfmt", so it can be a program name with args.
3955 set dummy msgfmt; ac_word=$2
3956 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3957 echo "configure:3958: checking for $ac_word" >&5
3958 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3959 echo $ac_n "(cached) $ac_c" 1>&6
3963 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3966 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3967 for ac_dir in $PATH; do
3968 test -z "$ac_dir" && ac_dir=.
3969 if test -f $ac_dir/$ac_word; then
3970 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3971 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3977 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
3981 MSGFMT="$ac_cv_path_MSGFMT"
3982 if test -n "$MSGFMT"; then
3983 echo "$ac_t""$MSGFMT" 1>&6
3985 echo "$ac_t""no" 1>&6
3987 if test "$MSGFMT" != "no"; then
3988 for ac_func in dcgettext
3990 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3991 echo "configure:3992: checking for $ac_func" >&5
3992 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3993 echo $ac_n "(cached) $ac_c" 1>&6
3995 cat > conftest.$ac_ext <<EOF
3996 #line 3997 "configure"
3997 #include "confdefs.h"
3998 /* System header to define __stub macros and hopefully few prototypes,
3999 which can conflict with char $ac_func(); below. */
4001 /* Override any gcc2 internal prototype to avoid an error. */
4002 /* We use char because int might match the return type of a gcc2
4003 builtin and then its argument prototype would still apply. */
4008 /* The GNU C library defines this for functions which it implements
4009 to always fail with ENOSYS. Some functions are actually named
4010 something starting with __ and the normal name is an alias. */
4011 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4019 if { (eval echo configure:4020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4021 eval "ac_cv_func_$ac_func=yes"
4023 echo "configure: failed program was:" >&5
4024 cat conftest.$ac_ext >&5
4026 eval "ac_cv_func_$ac_func=no"
4031 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4032 echo "$ac_t""yes" 1>&6
4033 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4034 cat >> confdefs.h <<EOF
4035 #define $ac_tr_func 1
4039 echo "$ac_t""no" 1>&6
4043 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4044 set dummy gmsgfmt; ac_word=$2
4045 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4046 echo "configure:4047: checking for $ac_word" >&5
4047 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4048 echo $ac_n "(cached) $ac_c" 1>&6
4052 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4055 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4058 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4060 for ac_dir in $ac_dummy; do
4061 test -z "$ac_dir" && ac_dir=.
4062 if test -f $ac_dir/$ac_word; then
4063 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4068 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4072 GMSGFMT="$ac_cv_path_GMSGFMT"
4073 if test -n "$GMSGFMT"; then
4074 echo "$ac_t""$GMSGFMT" 1>&6
4076 echo "$ac_t""no" 1>&6
4079 # Extract the first word of "xgettext", so it can be a program name with args.
4080 set dummy xgettext; ac_word=$2
4081 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4082 echo "configure:4083: checking for $ac_word" >&5
4083 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4084 echo $ac_n "(cached) $ac_c" 1>&6
4088 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4091 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4092 for ac_dir in $PATH; do
4093 test -z "$ac_dir" && ac_dir=.
4094 if test -f $ac_dir/$ac_word; then
4095 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4096 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4102 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4106 XGETTEXT="$ac_cv_path_XGETTEXT"
4107 if test -n "$XGETTEXT"; then
4108 echo "$ac_t""$XGETTEXT" 1>&6
4110 echo "$ac_t""no" 1>&6
4113 cat > conftest.$ac_ext <<EOF
4114 #line 4115 "configure"
4115 #include "confdefs.h"
4118 extern int _nl_msg_cat_cntr;
4119 return _nl_msg_cat_cntr
4122 if { (eval echo configure:4123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4127 echo "configure: failed program was:" >&5
4128 cat conftest.$ac_ext >&5
4139 echo "$ac_t""no" 1>&6
4144 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
4145 # Neither gettext nor catgets in included in the C library.
4146 # Fall back on GNU gettext library (assuming it is present).
4147 nls_cv_use_gnu_gettext=yes
4151 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4152 INTLOBJS="\$(GETTOBJS)"
4153 # Extract the first word of "msgfmt", so it can be a program name with args.
4154 set dummy msgfmt; ac_word=$2
4155 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4156 echo "configure:4157: checking for $ac_word" >&5
4157 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4158 echo $ac_n "(cached) $ac_c" 1>&6
4162 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4165 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4166 for ac_dir in $PATH; do
4167 test -z "$ac_dir" && ac_dir=.
4168 if test -f $ac_dir/$ac_word; then
4169 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4170 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4176 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
4180 MSGFMT="$ac_cv_path_MSGFMT"
4181 if test -n "$MSGFMT"; then
4182 echo "$ac_t""$MSGFMT" 1>&6
4184 echo "$ac_t""no" 1>&6
4187 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4188 set dummy gmsgfmt; ac_word=$2
4189 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4190 echo "configure:4191: checking for $ac_word" >&5
4191 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4192 echo $ac_n "(cached) $ac_c" 1>&6
4196 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4199 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4202 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4204 for ac_dir in $ac_dummy; do
4205 test -z "$ac_dir" && ac_dir=.
4206 if test -f $ac_dir/$ac_word; then
4207 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4212 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4216 GMSGFMT="$ac_cv_path_GMSGFMT"
4217 if test -n "$GMSGFMT"; then
4218 echo "$ac_t""$GMSGFMT" 1>&6
4220 echo "$ac_t""no" 1>&6
4223 # Extract the first word of "xgettext", so it can be a program name with args.
4224 set dummy xgettext; ac_word=$2
4225 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4226 echo "configure:4227: checking for $ac_word" >&5
4227 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4228 echo $ac_n "(cached) $ac_c" 1>&6
4232 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4235 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4236 for ac_dir in $PATH; do
4237 test -z "$ac_dir" && ac_dir=.
4238 if test -f $ac_dir/$ac_word; then
4239 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4240 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4246 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4250 XGETTEXT="$ac_cv_path_XGETTEXT"
4251 if test -n "$XGETTEXT"; then
4252 echo "$ac_t""$XGETTEXT" 1>&6
4254 echo "$ac_t""no" 1>&6
4258 USE_INCLUDED_LIBINTL=yes
4262 INTLDEPS='$(top_builddir)/../intl/libintl.a'
4264 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
4265 nls_cv_header_intl=libintl.h
4266 nls_cv_header_libgt=libgettext.h
4269 if test "$XGETTEXT" != ":"; then
4270 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
4273 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4278 # We need to process the po/ directory.
4282 nls_cv_header_intl=libintl.h
4283 nls_cv_header_libgt=libgettext.h
4286 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4287 # because some of the sources are only built for this goal.
4288 if test "$PACKAGE" = gettext; then
4290 USE_INCLUDED_LIBINTL=yes
4293 for lang in $ALL_LINGUAS; do
4294 GMOFILES="$GMOFILES $lang.gmo"
4295 POFILES="$POFILES $lang.po"
4309 if test "x$CATOBJEXT" != "x"; then
4310 cat >> confdefs.h <<\EOF
4311 #define ENABLE_NLS 1
4317 if test "x$CATOBJEXT" != "x"; then
4318 if test "x$ALL_LINGUAS" = "x"; then
4321 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4322 echo "configure:4323: checking for catalogs to be installed" >&5
4324 for lang in ${LINGUAS=$ALL_LINGUAS}; do
4325 case "$ALL_LINGUAS" in
4326 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
4329 LINGUAS=$NEW_LINGUAS
4330 echo "$ac_t""$LINGUAS" 1>&6
4333 if test -n "$LINGUAS"; then
4334 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
4338 if test $ac_cv_header_locale_h = yes; then
4339 INCLUDE_LOCALE_H="#include <locale.h>"
4342 /* The system does not provide the header <locale.h>. Take care yourself. */"
4346 if test -f $srcdir/po2tbl.sed.in; then
4347 if test "$CATOBJEXT" = ".cat"; then
4348 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4349 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4350 echo "configure:4351: checking for linux/version.h" >&5
4351 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4352 echo $ac_n "(cached) $ac_c" 1>&6
4354 cat > conftest.$ac_ext <<EOF
4355 #line 4356 "configure"
4356 #include "confdefs.h"
4357 #include <linux/version.h>
4359 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4360 { (eval echo configure:4361: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4361 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4362 if test -z "$ac_err"; then
4364 eval "ac_cv_header_$ac_safe=yes"
4367 echo "configure: failed program was:" >&5
4368 cat conftest.$ac_ext >&5
4370 eval "ac_cv_header_$ac_safe=no"
4374 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4375 echo "$ac_t""yes" 1>&6
4378 echo "$ac_t""no" 1>&6
4383 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
4385 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4386 $srcdir/po2tbl.sed.in > po2tbl.sed
4389 if test "$PACKAGE" = "gettext"; then
4399 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
4405 if test -f $srcdir/po/POTFILES.in; then
4406 test -d po || mkdir po
4407 if test "x$srcdir" != "x."; then
4408 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4409 posrcprefix="$srcdir/"
4411 posrcprefix="../$srcdir/"
4417 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4418 < $srcdir/po/POTFILES.in > po/POTFILES
4422 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
4423 echo "configure:4424: checking whether to enable maintainer-specific portions of Makefiles" >&5
4424 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4425 if test "${enable_maintainer_mode+set}" = set; then
4426 enableval="$enable_maintainer_mode"
4427 USE_MAINTAINER_MODE=$enableval
4429 USE_MAINTAINER_MODE=no
4432 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4435 if test $USE_MAINTAINER_MODE = yes; then
4436 MAINTAINER_MODE_TRUE=
4437 MAINTAINER_MODE_FALSE='#'
4439 MAINTAINER_MODE_TRUE='#'
4440 MAINTAINER_MODE_FALSE=
4442 MAINT=$MAINTAINER_MODE_TRUE
4447 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4448 echo "configure:4449: checking for executable suffix" >&5
4449 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
4450 echo $ac_n "(cached) $ac_c" 1>&6
4452 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4456 echo 'int main () { return 0; }' > conftest.$ac_ext
4458 if { (eval echo configure:4459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4459 for file in conftest.*; do
4461 *.c | *.o | *.obj) ;;
4462 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4466 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4469 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4474 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4475 echo "$ac_t""${ac_cv_exeext}" 1>&6
4478 if test -n "$EXEEXT"; then
4479 cat >> confdefs.h <<\EOF
4480 #define HAVE_EXECUTABLE_SUFFIX 1
4484 cat >> confdefs.h <<EOF
4485 #define EXECUTABLE_SUFFIX "${EXEEXT}"
4489 # host-specific stuff:
4493 . ${srcdir}/../bfd/configure.host
4498 # Extract the first word of "ranlib", so it can be a program name with args.
4499 set dummy ranlib; ac_word=$2
4500 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4501 echo "configure:4502: checking for $ac_word" >&5
4502 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4503 echo $ac_n "(cached) $ac_c" 1>&6
4505 if test -n "$RANLIB"; then
4506 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4508 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4510 for ac_dir in $ac_dummy; do
4511 test -z "$ac_dir" && ac_dir=.
4512 if test -f $ac_dir/$ac_word; then
4513 ac_cv_prog_RANLIB="ranlib"
4518 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4521 RANLIB="$ac_cv_prog_RANLIB"
4522 if test -n "$RANLIB"; then
4523 echo "$ac_t""$RANLIB" 1>&6
4525 echo "$ac_t""no" 1>&6
4528 # Find a good install program. We prefer a C program (faster),
4529 # so one script is as good as another. But avoid the broken or
4530 # incompatible versions:
4531 # SysV /etc/install, /usr/sbin/install
4532 # SunOS /usr/etc/install
4533 # IRIX /sbin/install
4535 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4536 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4537 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4538 # ./install, which can be erroneously created by make from ./install.sh.
4539 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4540 echo "configure:4541: checking for a BSD compatible install" >&5
4541 if test -z "$INSTALL"; then
4542 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4543 echo $ac_n "(cached) $ac_c" 1>&6
4545 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
4546 for ac_dir in $PATH; do
4547 # Account for people who put trailing slashes in PATH elements.
4549 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
4551 # OSF1 and SCO ODT 3.0 have their own names for install.
4552 # Don't use installbsd from OSF since it installs stuff as root
4554 for ac_prog in ginstall scoinst install; do
4555 if test -f $ac_dir/$ac_prog; then
4556 if test $ac_prog = install &&
4557 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
4558 # AIX install. It has an incompatible calling convention.
4561 ac_cv_path_install="$ac_dir/$ac_prog -c"
4572 if test "${ac_cv_path_install+set}" = set; then
4573 INSTALL="$ac_cv_path_install"
4575 # As a last resort, use the slow shell script. We don't cache a
4576 # path for INSTALL within a source directory, because that will
4577 # break other packages using the cache if that directory is
4578 # removed, or if the path is relative.
4579 INSTALL="$ac_install_sh"
4582 echo "$ac_t""$INSTALL" 1>&6
4584 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4585 # It thinks the first close brace ends the variable substitution.
4586 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4588 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
4590 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4593 # Put a plausible default for CC_FOR_BUILD in Makefile.
4594 if test -z "$CC_FOR_BUILD"; then
4595 if test "x$cross_compiling" = "xno"; then
4596 CC_FOR_BUILD='$(CC)'
4602 # Also set EXEEXT_FOR_BUILD.
4603 if test "x$cross_compiling" = "xno"; then
4604 EXEEXT_FOR_BUILD='$(EXEEXT)'
4606 echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
4607 echo "configure:4608: checking for build system executable suffix" >&5
4608 if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
4609 echo $ac_n "(cached) $ac_c" 1>&6
4612 echo 'int main () { return 0; }' > conftest.c
4613 bfd_cv_build_exeext=
4614 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
4615 for file in conftest.*; do
4617 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
4618 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4622 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
4625 echo "$ac_t""$bfd_cv_build_exeext" 1>&6
4627 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
4631 DEMANGLER_NAME=c++filt
4633 *-*-go32* | *-*-msdos*)
4634 DEMANGLER_NAME=cxxfilt
4638 for ac_hdr in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h
4640 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4641 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4642 echo "configure:4643: checking for $ac_hdr" >&5
4643 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4644 echo $ac_n "(cached) $ac_c" 1>&6
4646 cat > conftest.$ac_ext <<EOF
4647 #line 4648 "configure"
4648 #include "confdefs.h"
4651 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4652 { (eval echo configure:4653: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4653 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4654 if test -z "$ac_err"; then
4656 eval "ac_cv_header_$ac_safe=yes"
4659 echo "configure: failed program was:" >&5
4660 cat conftest.$ac_ext >&5
4662 eval "ac_cv_header_$ac_safe=no"
4666 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4667 echo "$ac_t""yes" 1>&6
4668 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4669 cat >> confdefs.h <<EOF
4670 #define $ac_tr_hdr 1
4674 echo "$ac_t""no" 1>&6
4678 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4679 echo "configure:4680: checking for sys/wait.h that is POSIX.1 compatible" >&5
4680 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
4681 echo $ac_n "(cached) $ac_c" 1>&6
4683 cat > conftest.$ac_ext <<EOF
4684 #line 4685 "configure"
4685 #include "confdefs.h"
4686 #include <sys/types.h>
4687 #include <sys/wait.h>
4689 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4692 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4697 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4700 if { (eval echo configure:4701: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4702 ac_cv_header_sys_wait_h=yes
4704 echo "configure: failed program was:" >&5
4705 cat conftest.$ac_ext >&5
4707 ac_cv_header_sys_wait_h=no
4712 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4713 if test $ac_cv_header_sys_wait_h = yes; then
4714 cat >> confdefs.h <<\EOF
4715 #define HAVE_SYS_WAIT_H 1
4720 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4721 # for constant arguments. Useless!
4722 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4723 echo "configure:4724: checking for working alloca.h" >&5
4724 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4725 echo $ac_n "(cached) $ac_c" 1>&6
4727 cat > conftest.$ac_ext <<EOF
4728 #line 4729 "configure"
4729 #include "confdefs.h"
4732 char *p = alloca(2 * sizeof(int));
4735 if { (eval echo configure:4736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4737 ac_cv_header_alloca_h=yes
4739 echo "configure: failed program was:" >&5
4740 cat conftest.$ac_ext >&5
4742 ac_cv_header_alloca_h=no
4747 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4748 if test $ac_cv_header_alloca_h = yes; then
4749 cat >> confdefs.h <<\EOF
4750 #define HAVE_ALLOCA_H 1
4755 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4756 echo "configure:4757: checking for alloca" >&5
4757 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4758 echo $ac_n "(cached) $ac_c" 1>&6
4760 cat > conftest.$ac_ext <<EOF
4761 #line 4762 "configure"
4762 #include "confdefs.h"
4765 # define alloca __builtin_alloca
4768 # include <malloc.h>
4769 # define alloca _alloca
4772 # include <alloca.h>
4777 # ifndef alloca /* predefined by HP cc +Olibcalls */
4786 char *p = (char *) alloca(1);
4789 if { (eval echo configure:4790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4791 ac_cv_func_alloca_works=yes
4793 echo "configure: failed program was:" >&5
4794 cat conftest.$ac_ext >&5
4796 ac_cv_func_alloca_works=no
4801 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4802 if test $ac_cv_func_alloca_works = yes; then
4803 cat >> confdefs.h <<\EOF
4804 #define HAVE_ALLOCA 1
4809 if test $ac_cv_func_alloca_works = no; then
4810 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4811 # that cause trouble. Some versions do not even contain alloca or
4812 # contain a buggy version. If you still want to use their alloca,
4813 # use ar to extract alloca.o from them instead of compiling alloca.c.
4814 ALLOCA=alloca.${ac_objext}
4815 cat >> confdefs.h <<\EOF
4820 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4821 echo "configure:4822: checking whether alloca needs Cray hooks" >&5
4822 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4823 echo $ac_n "(cached) $ac_c" 1>&6
4825 cat > conftest.$ac_ext <<EOF
4826 #line 4827 "configure"
4827 #include "confdefs.h"
4828 #if defined(CRAY) && ! defined(CRAY2)
4835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4836 egrep "webecray" >/dev/null 2>&1; then
4847 echo "$ac_t""$ac_cv_os_cray" 1>&6
4848 if test $ac_cv_os_cray = yes; then
4849 for ac_func in _getb67 GETB67 getb67; do
4850 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4851 echo "configure:4852: checking for $ac_func" >&5
4852 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4853 echo $ac_n "(cached) $ac_c" 1>&6
4855 cat > conftest.$ac_ext <<EOF
4856 #line 4857 "configure"
4857 #include "confdefs.h"
4858 /* System header to define __stub macros and hopefully few prototypes,
4859 which can conflict with char $ac_func(); below. */
4861 /* Override any gcc2 internal prototype to avoid an error. */
4862 /* We use char because int might match the return type of a gcc2
4863 builtin and then its argument prototype would still apply. */
4868 /* The GNU C library defines this for functions which it implements
4869 to always fail with ENOSYS. Some functions are actually named
4870 something starting with __ and the normal name is an alias. */
4871 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4879 if { (eval echo configure:4880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4881 eval "ac_cv_func_$ac_func=yes"
4883 echo "configure: failed program was:" >&5
4884 cat conftest.$ac_ext >&5
4886 eval "ac_cv_func_$ac_func=no"
4891 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4892 echo "$ac_t""yes" 1>&6
4893 cat >> confdefs.h <<EOF
4894 #define CRAY_STACKSEG_END $ac_func
4899 echo "$ac_t""no" 1>&6
4905 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4906 echo "configure:4907: checking stack direction for C alloca" >&5
4907 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4908 echo $ac_n "(cached) $ac_c" 1>&6
4910 if test "$cross_compiling" = yes; then
4911 ac_cv_c_stack_direction=0
4913 cat > conftest.$ac_ext <<EOF
4914 #line 4915 "configure"
4915 #include "confdefs.h"
4916 find_stack_direction ()
4918 static char *addr = 0;
4923 return find_stack_direction ();
4926 return (&dummy > addr) ? 1 : -1;
4930 exit (find_stack_direction() < 0);
4933 if { (eval echo configure:4934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4935 ac_cv_c_stack_direction=1
4937 echo "configure: failed program was:" >&5
4938 cat conftest.$ac_ext >&5
4940 ac_cv_c_stack_direction=-1
4947 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4948 cat >> confdefs.h <<EOF
4949 #define STACK_DIRECTION $ac_cv_c_stack_direction
4954 for ac_func in sbrk utimes setmode getc_unlocked strcoll
4956 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4957 echo "configure:4958: checking for $ac_func" >&5
4958 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4959 echo $ac_n "(cached) $ac_c" 1>&6
4961 cat > conftest.$ac_ext <<EOF
4962 #line 4963 "configure"
4963 #include "confdefs.h"
4964 /* System header to define __stub macros and hopefully few prototypes,
4965 which can conflict with char $ac_func(); below. */
4967 /* Override any gcc2 internal prototype to avoid an error. */
4968 /* We use char because int might match the return type of a gcc2
4969 builtin and then its argument prototype would still apply. */
4974 /* The GNU C library defines this for functions which it implements
4975 to always fail with ENOSYS. Some functions are actually named
4976 something starting with __ and the normal name is an alias. */
4977 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4985 if { (eval echo configure:4986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4987 eval "ac_cv_func_$ac_func=yes"
4989 echo "configure: failed program was:" >&5
4990 cat conftest.$ac_ext >&5
4992 eval "ac_cv_func_$ac_func=no"
4997 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4998 echo "$ac_t""yes" 1>&6
4999 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5000 cat >> confdefs.h <<EOF
5001 #define $ac_tr_func 1
5005 echo "$ac_t""no" 1>&6
5010 # Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
5011 # needs to be defined for it
5012 echo $ac_n "checking for fopen64""... $ac_c" 1>&6
5013 echo "configure:5014: checking for fopen64" >&5
5014 if eval "test \"`echo '$''{'bu_cv_have_fopen64'+set}'`\" = set"; then
5015 echo $ac_n "(cached) $ac_c" 1>&6
5017 cat > conftest.$ac_ext <<EOF
5018 #line 5019 "configure"
5019 #include "confdefs.h"
5022 FILE *f = fopen64 ("/tmp/foo","r");
5025 if { (eval echo configure:5026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5027 bu_cv_have_fopen64=yes
5029 echo "configure: failed program was:" >&5
5030 cat conftest.$ac_ext >&5
5032 saved_CPPFLAGS=$CPPFLAGS
5033 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
5034 cat > conftest.$ac_ext <<EOF
5035 #line 5036 "configure"
5036 #include "confdefs.h"
5039 FILE *f = fopen64 ("/tmp/foo","r");
5042 if { (eval echo configure:5043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5044 bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE"
5046 echo "configure: failed program was:" >&5
5047 cat conftest.$ac_ext >&5
5049 bu_cv_have_fopen64=no
5052 CPPFLAGS=$saved_CPPFLAGS
5057 echo "$ac_t""$bu_cv_have_fopen64" 1>&6
5058 if test "$bu_cv_have_fopen64" != no; then
5059 cat >> confdefs.h <<\EOF
5060 #define HAVE_FOPEN64 1
5064 echo $ac_n "checking for stat64""... $ac_c" 1>&6
5065 echo "configure:5066: checking for stat64" >&5
5066 if eval "test \"`echo '$''{'bu_cv_have_stat64'+set}'`\" = set"; then
5067 echo $ac_n "(cached) $ac_c" 1>&6
5069 cat > conftest.$ac_ext <<EOF
5070 #line 5071 "configure"
5071 #include "confdefs.h"
5072 #include <sys/stat.h>
5074 struct stat64 st; stat64 ("/tmp/foo", &st);
5077 if { (eval echo configure:5078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5079 bu_cv_have_stat64=yes
5081 echo "configure: failed program was:" >&5
5082 cat conftest.$ac_ext >&5
5084 saved_CPPFLAGS=$CPPFLAGS
5085 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
5086 cat > conftest.$ac_ext <<EOF
5087 #line 5088 "configure"
5088 #include "confdefs.h"
5089 #include <sys/stat.h>
5091 struct stat64 st; stat64 ("/tmp/foo", &st);
5094 if { (eval echo configure:5095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5096 bu_cv_have_stat64="need -D_LARGEFILE64_SOURCE"
5098 echo "configure: failed program was:" >&5
5099 cat conftest.$ac_ext >&5
5101 bu_cv_have_stat64=no
5104 CPPFLAGS=$saved_CPPFLAGS
5109 echo "$ac_t""$bu_cv_have_stat64" 1>&6
5110 if test "$bu_cv_have_stat64" != no; then
5111 cat >> confdefs.h <<\EOF
5112 #define HAVE_STAT64 1
5116 if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE" \
5117 || test "$bu_cv_have_stat64" = "need -D_LARGEFILE64_SOURCE"; then
5118 cat >> confdefs.h <<\EOF
5119 #define _LARGEFILE64_SOURCE 1
5122 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
5125 # Some systems have frexp only in -lm, not in -lc.
5127 echo $ac_n "checking for library containing frexp""... $ac_c" 1>&6
5128 echo "configure:5129: checking for library containing frexp" >&5
5129 if eval "test \"`echo '$''{'ac_cv_search_frexp'+set}'`\" = set"; then
5130 echo $ac_n "(cached) $ac_c" 1>&6
5132 ac_func_search_save_LIBS="$LIBS"
5133 ac_cv_search_frexp="no"
5134 cat > conftest.$ac_ext <<EOF
5135 #line 5136 "configure"
5136 #include "confdefs.h"
5137 /* Override any gcc2 internal prototype to avoid an error. */
5138 /* We use char because int might match the return type of a gcc2
5139 builtin and then its argument prototype would still apply. */
5146 if { (eval echo configure:5147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5148 ac_cv_search_frexp="none required"
5150 echo "configure: failed program was:" >&5
5151 cat conftest.$ac_ext >&5
5154 test "$ac_cv_search_frexp" = "no" && for i in m; do
5155 LIBS="-l$i $ac_func_search_save_LIBS"
5156 cat > conftest.$ac_ext <<EOF
5157 #line 5158 "configure"
5158 #include "confdefs.h"
5159 /* Override any gcc2 internal prototype to avoid an error. */
5160 /* We use char because int might match the return type of a gcc2
5161 builtin and then its argument prototype would still apply. */
5168 if { (eval echo configure:5169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5170 ac_cv_search_frexp="-l$i"
5173 echo "configure: failed program was:" >&5
5174 cat conftest.$ac_ext >&5
5178 LIBS="$ac_func_search_save_LIBS"
5181 echo "$ac_t""$ac_cv_search_frexp" 1>&6
5182 if test "$ac_cv_search_frexp" != "no"; then
5183 test "$ac_cv_search_frexp" = "none required" || LIBS="$ac_cv_search_frexp $LIBS"
5189 echo $ac_n "checking for time_t in time.h""... $ac_c" 1>&6
5190 echo "configure:5191: checking for time_t in time.h" >&5
5191 if eval "test \"`echo '$''{'bu_cv_decl_time_t_time_h'+set}'`\" = set"; then
5192 echo $ac_n "(cached) $ac_c" 1>&6
5194 cat > conftest.$ac_ext <<EOF
5195 #line 5196 "configure"
5196 #include "confdefs.h"
5202 if { (eval echo configure:5203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5204 bu_cv_decl_time_t_time_h=yes
5206 echo "configure: failed program was:" >&5
5207 cat conftest.$ac_ext >&5
5209 bu_cv_decl_time_t_time_h=no
5214 echo "$ac_t""$bu_cv_decl_time_t_time_h" 1>&6
5215 if test $bu_cv_decl_time_t_time_h = yes; then
5216 cat >> confdefs.h <<\EOF
5217 #define HAVE_TIME_T_IN_TIME_H 1
5222 echo $ac_n "checking for time_t in sys/types.h""... $ac_c" 1>&6
5223 echo "configure:5224: checking for time_t in sys/types.h" >&5
5224 if eval "test \"`echo '$''{'bu_cv_decl_time_t_types_h'+set}'`\" = set"; then
5225 echo $ac_n "(cached) $ac_c" 1>&6
5227 cat > conftest.$ac_ext <<EOF
5228 #line 5229 "configure"
5229 #include "confdefs.h"
5230 #include <sys/types.h>
5235 if { (eval echo configure:5236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5237 bu_cv_decl_time_t_types_h=yes
5239 echo "configure: failed program was:" >&5
5240 cat conftest.$ac_ext >&5
5242 bu_cv_decl_time_t_types_h=no
5247 echo "$ac_t""$bu_cv_decl_time_t_types_h" 1>&6
5248 if test $bu_cv_decl_time_t_types_h = yes; then
5249 cat >> confdefs.h <<\EOF
5250 #define HAVE_TIME_T_IN_TYPES_H 1
5256 echo $ac_n "checking for an known getopt prototype in unistd.h""... $ac_c" 1>&6
5257 echo "configure:5258: checking for an known getopt prototype in unistd.h" >&5
5258 if eval "test \"`echo '$''{'bu_cv_decl_getopt_unistd_h'+set}'`\" = set"; then
5259 echo $ac_n "(cached) $ac_c" 1>&6
5261 cat > conftest.$ac_ext <<EOF
5262 #line 5263 "configure"
5263 #include "confdefs.h"
5266 extern int getopt (int, char *const*, const char *);
5269 if { (eval echo configure:5270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5271 bu_cv_decl_getopt_unistd_h=yes
5273 echo "configure: failed program was:" >&5
5274 cat conftest.$ac_ext >&5
5276 bu_cv_decl_getopt_unistd_h=no
5281 echo "$ac_t""$bu_cv_decl_getopt_unistd_h" 1>&6
5282 if test $bu_cv_decl_getopt_unistd_h = yes; then
5283 cat >> confdefs.h <<\EOF
5284 #define HAVE_DECL_GETOPT 1
5295 # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
5297 echo $ac_n "checking for utime.h""... $ac_c" 1>&6
5298 echo "configure:5299: checking for utime.h" >&5
5299 if eval "test \"`echo '$''{'bu_cv_header_utime_h'+set}'`\" = set"; then
5300 echo $ac_n "(cached) $ac_c" 1>&6
5302 cat > conftest.$ac_ext <<EOF
5303 #line 5304 "configure"
5304 #include "confdefs.h"
5305 #include <sys/types.h>
5314 if { (eval echo configure:5315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5316 bu_cv_header_utime_h=yes
5318 echo "configure: failed program was:" >&5
5319 cat conftest.$ac_ext >&5
5321 bu_cv_header_utime_h=no
5326 echo "$ac_t""$bu_cv_header_utime_h" 1>&6
5327 if test $bu_cv_header_utime_h = yes; then
5328 cat >> confdefs.h <<\EOF
5329 #define HAVE_GOOD_UTIME_H 1
5334 echo $ac_n "checking whether fprintf must be declared""... $ac_c" 1>&6
5335 echo "configure:5336: checking whether fprintf must be declared" >&5
5336 if eval "test \"`echo '$''{'bfd_cv_decl_needed_fprintf'+set}'`\" = set"; then
5337 echo $ac_n "(cached) $ac_c" 1>&6
5339 cat > conftest.$ac_ext <<EOF
5340 #line 5341 "configure"
5341 #include "confdefs.h"
5344 #ifdef HAVE_STRING_H
5347 #ifdef HAVE_STRINGS_H
5348 #include <strings.h>
5351 #ifdef HAVE_STDLIB_H
5354 #ifdef HAVE_UNISTD_H
5358 char *(*pfn) = (char *(*)) fprintf
5361 if { (eval echo configure:5362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5363 bfd_cv_decl_needed_fprintf=no
5365 echo "configure: failed program was:" >&5
5366 cat conftest.$ac_ext >&5
5368 bfd_cv_decl_needed_fprintf=yes
5373 echo "$ac_t""$bfd_cv_decl_needed_fprintf" 1>&6
5374 if test $bfd_cv_decl_needed_fprintf = yes; then
5375 cat >> confdefs.h <<\EOF
5376 #define NEED_DECLARATION_FPRINTF 1
5381 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
5382 echo "configure:5383: checking whether strstr must be declared" >&5
5383 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
5384 echo $ac_n "(cached) $ac_c" 1>&6
5386 cat > conftest.$ac_ext <<EOF
5387 #line 5388 "configure"
5388 #include "confdefs.h"
5391 #ifdef HAVE_STRING_H
5394 #ifdef HAVE_STRINGS_H
5395 #include <strings.h>
5398 #ifdef HAVE_STDLIB_H
5401 #ifdef HAVE_UNISTD_H
5405 char *(*pfn) = (char *(*)) strstr
5408 if { (eval echo configure:5409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5410 bfd_cv_decl_needed_strstr=no
5412 echo "configure: failed program was:" >&5
5413 cat conftest.$ac_ext >&5
5415 bfd_cv_decl_needed_strstr=yes
5420 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
5421 if test $bfd_cv_decl_needed_strstr = yes; then
5422 cat >> confdefs.h <<\EOF
5423 #define NEED_DECLARATION_STRSTR 1
5428 echo $ac_n "checking whether sbrk must be declared""... $ac_c" 1>&6
5429 echo "configure:5430: checking whether sbrk must be declared" >&5
5430 if eval "test \"`echo '$''{'bfd_cv_decl_needed_sbrk'+set}'`\" = set"; then
5431 echo $ac_n "(cached) $ac_c" 1>&6
5433 cat > conftest.$ac_ext <<EOF
5434 #line 5435 "configure"
5435 #include "confdefs.h"
5438 #ifdef HAVE_STRING_H
5441 #ifdef HAVE_STRINGS_H
5442 #include <strings.h>
5445 #ifdef HAVE_STDLIB_H
5448 #ifdef HAVE_UNISTD_H
5452 char *(*pfn) = (char *(*)) sbrk
5455 if { (eval echo configure:5456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5457 bfd_cv_decl_needed_sbrk=no
5459 echo "configure: failed program was:" >&5
5460 cat conftest.$ac_ext >&5
5462 bfd_cv_decl_needed_sbrk=yes
5467 echo "$ac_t""$bfd_cv_decl_needed_sbrk" 1>&6
5468 if test $bfd_cv_decl_needed_sbrk = yes; then
5469 cat >> confdefs.h <<\EOF
5470 #define NEED_DECLARATION_SBRK 1
5475 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
5476 echo "configure:5477: checking whether getenv must be declared" >&5
5477 if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
5478 echo $ac_n "(cached) $ac_c" 1>&6
5480 cat > conftest.$ac_ext <<EOF
5481 #line 5482 "configure"
5482 #include "confdefs.h"
5485 #ifdef HAVE_STRING_H
5488 #ifdef HAVE_STRINGS_H
5489 #include <strings.h>
5492 #ifdef HAVE_STDLIB_H
5495 #ifdef HAVE_UNISTD_H
5499 char *(*pfn) = (char *(*)) getenv
5502 if { (eval echo configure:5503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5504 bfd_cv_decl_needed_getenv=no
5506 echo "configure: failed program was:" >&5
5507 cat conftest.$ac_ext >&5
5509 bfd_cv_decl_needed_getenv=yes
5514 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
5515 if test $bfd_cv_decl_needed_getenv = yes; then
5516 cat >> confdefs.h <<\EOF
5517 #define NEED_DECLARATION_GETENV 1
5522 echo $ac_n "checking whether environ must be declared""... $ac_c" 1>&6
5523 echo "configure:5524: checking whether environ must be declared" >&5
5524 if eval "test \"`echo '$''{'bfd_cv_decl_needed_environ'+set}'`\" = set"; then
5525 echo $ac_n "(cached) $ac_c" 1>&6
5527 cat > conftest.$ac_ext <<EOF
5528 #line 5529 "configure"
5529 #include "confdefs.h"
5532 #ifdef HAVE_STRING_H
5535 #ifdef HAVE_STRINGS_H
5536 #include <strings.h>
5539 #ifdef HAVE_STDLIB_H
5542 #ifdef HAVE_UNISTD_H
5546 char *(*pfn) = (char *(*)) environ
5549 if { (eval echo configure:5550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5551 bfd_cv_decl_needed_environ=no
5553 echo "configure: failed program was:" >&5
5554 cat conftest.$ac_ext >&5
5556 bfd_cv_decl_needed_environ=yes
5561 echo "$ac_t""$bfd_cv_decl_needed_environ" 1>&6
5562 if test $bfd_cv_decl_needed_environ = yes; then
5563 cat >> confdefs.h <<\EOF
5564 #define NEED_DECLARATION_ENVIRON 1
5572 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
5573 cat >> confdefs.h <<\EOF
5574 #define USE_BINARY_FOPEN 1
5579 # target-specific stuff:
5581 # Canonicalize the secondary target names.
5582 if test -n "$enable_targets"; then
5583 for targ in `echo $enable_targets | sed 's/,/ /g'`
5585 result=`$ac_config_sub $targ 2>/dev/null`
5586 if test -n "$result"; then
5587 canon_targets="$canon_targets $result"
5589 # Allow targets that config.sub doesn't recognize, like "all".
5590 canon_targets="$canon_targets $targ"
5606 for targ in $target $canon_targets
5608 if test "x$targ" = "xall"; then
5610 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
5611 BUILD_SRCONV='$(SRCONV_PROG)'
5612 NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
5615 i[3-7]86*-*-netware*)
5616 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
5617 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
5620 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
5621 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
5623 powerpc*-*-netware*)
5624 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
5625 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
5628 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
5629 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
5633 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
5637 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5638 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
5639 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5641 arm-*-pe* | arm-*-wince)
5642 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5643 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
5644 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5647 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5648 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
5649 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5651 arm*-* | xscale-* | strongarm-* | d10v-*)
5652 OBJDUMP_DEFS="-DDISASSEMBLER_NEEDS_RELOCS"
5654 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
5655 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5656 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
5657 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5658 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
5661 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
5662 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
5667 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
5669 powerpc*-*-pe* | powerpc*-*-cygwin*)
5670 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5671 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
5672 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5675 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5676 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
5677 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5680 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5681 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
5682 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5685 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5686 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
5687 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5690 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5691 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
5697 if test "${with_windres+set}" = set; then
5698 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5711 cat >> confdefs.h <<EOF
5712 #define TARGET "${target}"
5717 . $srcdir/../bfd/config.bfd
5718 if test "x$targ_underscore" = "xyes"; then
5723 cat >> confdefs.h <<EOF
5724 #define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
5729 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
5731 # Canonicalize the secondary target names.
5732 result=`$ac_config_sub $targ_alias 2>/dev/null`
5733 if test -n "$result"; then
5739 . ${srcdir}/configure.tgt
5741 EMULATION=$targ_emul
5742 EMULATION_VECTOR=$targ_emul_vector
5749 cat > confcache <<\EOF
5750 # This file is a shell script that caches the results of configure
5751 # tests run on this system so they can be shared between configure
5752 # scripts and configure runs. It is not useful on other systems.
5753 # If it contains results you don't want to keep, you may remove or edit it.
5755 # By default, configure uses ./config.cache as the cache file,
5756 # creating it if it does not exist already. You can give configure
5757 # the --cache-file=FILE option to use a different cache file; that is
5758 # what configure does when it calls configure scripts in
5759 # subdirectories, so they share the cache.
5760 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5761 # config.status only pays attention to the cache file if you give it the
5762 # --recheck option to rerun configure.
5765 # The following way of writing the cache mishandles newlines in values,
5766 # but we know of no workaround that is simple, portable, and efficient.
5767 # So, don't put newlines in cache variables' values.
5768 # Ultrix sh set writes to stderr and can't be redirected directly,
5769 # and sets the high bit in the cache file unless we assign to the vars.
5771 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5773 # `set' does not quote correctly, so add quotes (double-quote substitution
5774 # turns \\\\ into \\, and sed turns \\ into \).
5776 -e "s/'/'\\\\''/g" \
5777 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5780 # `set' quotes correctly as required by POSIX, so do not add quotes.
5781 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5784 if cmp -s $cache_file confcache; then
5787 if test -w $cache_file; then
5788 echo "updating cache $cache_file"
5789 cat confcache > $cache_file
5791 echo "not updating unwritable cache $cache_file"
5796 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5798 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5799 # Let make expand exec_prefix.
5800 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5802 # Any assignment to VPATH causes Sun make to only execute
5803 # the first set of double-colon rules, so remove it if not needed.
5804 # If there is a colon in the path, we need to keep it.
5805 if test "x$srcdir" = x.; then
5806 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5809 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5811 DEFS=-DHAVE_CONFIG_H
5813 # Without the "./", some shells look in PATH for config.status.
5814 : ${CONFIG_STATUS=./config.status}
5816 echo creating $CONFIG_STATUS
5817 rm -f $CONFIG_STATUS
5818 cat > $CONFIG_STATUS <<EOF
5820 # Generated automatically by configure.
5821 # Run this file to recreate the current configuration.
5822 # This directory was configured as follows,
5823 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5825 # $0 $ac_configure_args
5827 # Compiler output produced by configure, useful for debugging
5828 # configure, is in ./config.log if it exists.
5830 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5833 case "\$ac_option" in
5834 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5835 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5836 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5837 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5838 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5840 -help | --help | --hel | --he | --h)
5841 echo "\$ac_cs_usage"; exit 0 ;;
5842 *) echo "\$ac_cs_usage"; exit 1 ;;
5846 ac_given_srcdir=$srcdir
5847 ac_given_INSTALL="$INSTALL"
5849 trap 'rm -fr `echo "Makefile doc/Makefile po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5851 cat >> $CONFIG_STATUS <<EOF
5853 # Protect against being on the right side of a sed subst in config.status.
5854 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5855 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5859 s%@CFLAGS@%$CFLAGS%g
5860 s%@CPPFLAGS@%$CPPFLAGS%g
5861 s%@CXXFLAGS@%$CXXFLAGS%g
5862 s%@FFLAGS@%$FFLAGS%g
5864 s%@LDFLAGS@%$LDFLAGS%g
5866 s%@exec_prefix@%$exec_prefix%g
5867 s%@prefix@%$prefix%g
5868 s%@program_transform_name@%$program_transform_name%g
5869 s%@bindir@%$bindir%g
5870 s%@sbindir@%$sbindir%g
5871 s%@libexecdir@%$libexecdir%g
5872 s%@datadir@%$datadir%g
5873 s%@sysconfdir@%$sysconfdir%g
5874 s%@sharedstatedir@%$sharedstatedir%g
5875 s%@localstatedir@%$localstatedir%g
5876 s%@libdir@%$libdir%g
5877 s%@includedir@%$includedir%g
5878 s%@oldincludedir@%$oldincludedir%g
5879 s%@infodir@%$infodir%g
5880 s%@mandir@%$mandir%g
5882 s%@host_alias@%$host_alias%g
5883 s%@host_cpu@%$host_cpu%g
5884 s%@host_vendor@%$host_vendor%g
5885 s%@host_os@%$host_os%g
5886 s%@target@%$target%g
5887 s%@target_alias@%$target_alias%g
5888 s%@target_cpu@%$target_cpu%g
5889 s%@target_vendor@%$target_vendor%g
5890 s%@target_os@%$target_os%g
5892 s%@build_alias@%$build_alias%g
5893 s%@build_cpu@%$build_cpu%g
5894 s%@build_vendor@%$build_vendor%g
5895 s%@build_os@%$build_os%g
5896 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5897 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5898 s%@INSTALL_DATA@%$INSTALL_DATA%g
5899 s%@PACKAGE@%$PACKAGE%g
5900 s%@VERSION@%$VERSION%g
5901 s%@ACLOCAL@%$ACLOCAL%g
5902 s%@AUTOCONF@%$AUTOCONF%g
5903 s%@AUTOMAKE@%$AUTOMAKE%g
5904 s%@AUTOHEADER@%$AUTOHEADER%g
5905 s%@MAKEINFO@%$MAKEINFO%g
5906 s%@SET_MAKE@%$SET_MAKE%g
5909 s%@OBJEXT@%$OBJEXT%g
5910 s%@EXEEXT@%$EXEEXT%g
5911 s%@RANLIB@%$RANLIB%g
5913 s%@LIBTOOL@%$LIBTOOL%g
5914 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
5917 s%@LEXLIB@%$LEXLIB%g
5919 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
5920 s%@ALLOCA@%$ALLOCA%g
5921 s%@USE_NLS@%$USE_NLS%g
5922 s%@MSGFMT@%$MSGFMT%g
5923 s%@GMSGFMT@%$GMSGFMT%g
5924 s%@XGETTEXT@%$XGETTEXT%g
5925 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5926 s%@CATALOGS@%$CATALOGS%g
5927 s%@CATOBJEXT@%$CATOBJEXT%g
5928 s%@DATADIRNAME@%$DATADIRNAME%g
5929 s%@GMOFILES@%$GMOFILES%g
5930 s%@INSTOBJEXT@%$INSTOBJEXT%g
5931 s%@INTLDEPS@%$INTLDEPS%g
5932 s%@INTLLIBS@%$INTLLIBS%g
5933 s%@INTLOBJS@%$INTLOBJS%g
5934 s%@POFILES@%$POFILES%g
5936 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5938 s%@GT_YES@%$GT_YES%g
5939 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5941 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5942 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5944 s%@HDEFINES@%$HDEFINES%g
5946 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
5947 s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
5948 s%@DEMANGLER_NAME@%$DEMANGLER_NAME%g
5949 s%@NLMCONV_DEFS@%$NLMCONV_DEFS%g
5950 s%@BUILD_NLMCONV@%$BUILD_NLMCONV%g
5951 s%@BUILD_SRCONV@%$BUILD_SRCONV%g
5952 s%@BUILD_DLLTOOL@%$BUILD_DLLTOOL%g
5953 s%@DLLTOOL_DEFS@%$DLLTOOL_DEFS%g
5954 s%@BUILD_WINDRES@%$BUILD_WINDRES%g
5955 s%@BUILD_DLLWRAP@%$BUILD_DLLWRAP%g
5956 s%@BUILD_MISC@%$BUILD_MISC%g
5957 s%@OBJDUMP_DEFS@%$OBJDUMP_DEFS%g
5958 s%@EMULATION@%$EMULATION%g
5959 s%@EMULATION_VECTOR@%$EMULATION_VECTOR%g
5964 cat >> $CONFIG_STATUS <<\EOF
5966 # Split the substitutions into bite-sized pieces for seds with
5967 # small command number limits, like on Digital OSF/1 and HP-UX.
5968 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5969 ac_file=1 # Number of current file.
5970 ac_beg=1 # First line for current file.
5971 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5974 while $ac_more_lines; do
5975 if test $ac_beg -gt 1; then
5976 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5978 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5980 if test ! -s conftest.s$ac_file; then
5982 rm -f conftest.s$ac_file
5984 if test -z "$ac_sed_cmds"; then
5985 ac_sed_cmds="sed -f conftest.s$ac_file"
5987 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5989 ac_file=`expr $ac_file + 1`
5991 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5994 if test -z "$ac_sed_cmds"; then
5999 cat >> $CONFIG_STATUS <<EOF
6001 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile po/Makefile.in:po/Make-in"}
6003 cat >> $CONFIG_STATUS <<\EOF
6004 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6005 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6007 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6008 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6009 *) ac_file_in="${ac_file}.in" ;;
6012 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6014 # Remove last slash and all that follows it. Not all systems have dirname.
6015 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6016 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6017 # The file is in a subdirectory.
6018 test ! -d "$ac_dir" && mkdir "$ac_dir"
6019 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6020 # A "../" for each directory in $ac_dir_suffix.
6021 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6023 ac_dir_suffix= ac_dots=
6026 case "$ac_given_srcdir" in
6028 if test -z "$ac_dots"; then top_srcdir=.
6029 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6030 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6032 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6033 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6036 case "$ac_given_INSTALL" in
6037 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6038 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6041 echo creating "$ac_file"
6043 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6045 *Makefile*) ac_comsub="1i\\
6046 # $configure_input" ;;
6050 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6052 s%@configure_input@%$configure_input%g
6053 s%@srcdir@%$srcdir%g
6054 s%@top_srcdir@%$top_srcdir%g
6055 s%@INSTALL@%$INSTALL%g
6056 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6060 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6061 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6063 # ac_d sets the value in "#define NAME VALUE" lines.
6064 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6065 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6068 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6069 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6070 ac_uB='\([ ]\)%\1#\2define\3'
6073 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6074 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6075 ac_eB='$%\1#\2define\3'
6079 if test "${CONFIG_HEADERS+set}" != set; then
6081 cat >> $CONFIG_STATUS <<EOF
6082 CONFIG_HEADERS="config.h:config.in"
6084 cat >> $CONFIG_STATUS <<\EOF
6086 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6087 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6089 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6090 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6091 *) ac_file_in="${ac_file}.in" ;;
6094 echo creating $ac_file
6096 rm -f conftest.frag conftest.in conftest.out
6097 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6098 cat $ac_file_inputs > conftest.in
6102 # Transform confdefs.h into a sed script conftest.vals that substitutes
6103 # the proper values into config.h.in to produce config.h. And first:
6104 # Protect against being on the right side of a sed subst in config.status.
6105 # Protect against being in an unquoted here document in config.status.
6107 cat > conftest.hdr <<\EOF
6110 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6114 sed -n -f conftest.hdr confdefs.h > conftest.vals
6117 # This sed command replaces #undef with comments. This is necessary, for
6118 # example, in the case of _POSIX_SOURCE, which is predefined and required
6119 # on some systems where configure will not decide to define it.
6120 cat >> conftest.vals <<\EOF
6121 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6124 # Break up conftest.vals because some shells have a limit on
6125 # the size of here documents, and old seds have small limits too.
6130 ac_lines=`grep -c . conftest.vals`
6131 # grep -c gives empty output for an empty file on some AIX systems.
6132 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6133 # Write a limited-size here document to conftest.frag.
6134 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6135 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6137 sed -f conftest.frag conftest.in > conftest.out
6139 mv conftest.out conftest.in
6141 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6143 mv conftest.tail conftest.vals
6147 cat >> $CONFIG_STATUS <<\EOF
6148 rm -f conftest.frag conftest.h
6149 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6150 cat conftest.in >> conftest.h
6152 if cmp -s $ac_file conftest.h 2>/dev/null; then
6153 echo "$ac_file is unchanged"
6156 # Remove last slash and all that follows it. Not all systems have dirname.
6157 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6158 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6159 # The file is in a subdirectory.
6160 test ! -d "$ac_dir" && mkdir "$ac_dir"
6163 mv conftest.h $ac_file
6168 cat >> $CONFIG_STATUS <<EOF
6172 cat >> $CONFIG_STATUS <<\EOF
6173 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
6175 case "x$CONFIG_FILES" in
6176 *) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
6181 chmod +x $CONFIG_STATUS
6182 rm -fr confdefs* $ac_clean_files
6183 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1