3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12.1
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 build shared libraries [default=no]
16 --enable-shared=PKGS only build shared libraries if the current package
17 appears as an element in the PKGS list"
19 --enable-static build static libraries [default=yes]
20 --enable-static=PKGS only build shared libraries if the current package
21 appears as an element in the PKGS list"
23 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
25 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)"
27 --enable-targets alternative target configurations"
29 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
31 --with-mmap try using mmap for BFD input files if available"
33 --enable-maintainer-mode enable make rules and dependencies not useful
34 (and sometimes confusing) to the casual installer"
36 --disable-nls do not use Native Language Support"
38 --with-included-gettext use the GNU gettext library included here"
40 # Initialize some variables set by options.
41 # The variables have the same names as the options, with
42 # dashes changed to underlines.
44 cache_file=./config.cache
53 program_transform_name=s,x,x,
61 bindir='${exec_prefix}/bin'
62 sbindir='${exec_prefix}/sbin'
63 libexecdir='${exec_prefix}/libexec'
64 datadir='${prefix}/share'
65 sysconfdir='${prefix}/etc'
66 sharedstatedir='${prefix}/com'
67 localstatedir='${prefix}/var'
68 libdir='${exec_prefix}/lib'
69 includedir='${prefix}/include'
70 oldincludedir='/usr/include'
71 infodir='${prefix}/info'
72 mandir='${prefix}/man'
74 # Initialize some other variables.
77 SHELL=${CONFIG_SHELL-/bin/sh}
78 # Maximum number of lines to put in a shell here document.
85 # If the previous option needs an argument, assign it.
86 if test -n "$ac_prev"; then
87 eval "$ac_prev=\$ac_option"
93 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
97 # Accept the important Cygnus configure options, so we can diagnose typos.
101 -bindir | --bindir | --bindi | --bind | --bin | --bi)
103 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
104 bindir="$ac_optarg" ;;
106 -build | --build | --buil | --bui | --bu)
108 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
109 build="$ac_optarg" ;;
111 -cache-file | --cache-file | --cache-fil | --cache-fi \
112 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
113 ac_prev=cache_file ;;
114 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
115 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
116 cache_file="$ac_optarg" ;;
118 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
120 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
122 datadir="$ac_optarg" ;;
124 -disable-* | --disable-*)
125 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
126 # Reject names that are not valid shell variable names.
127 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
128 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
130 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
131 eval "enable_${ac_feature}=no" ;;
133 -enable-* | --enable-*)
134 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
135 # Reject names that are not valid shell variable names.
136 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
137 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
139 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
144 eval "enable_${ac_feature}='$ac_optarg'" ;;
146 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
147 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
148 | --exec | --exe | --ex)
149 ac_prev=exec_prefix ;;
150 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
151 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
152 | --exec=* | --exe=* | --ex=*)
153 exec_prefix="$ac_optarg" ;;
155 -gas | --gas | --ga | --g)
156 # Obsolete; use --with-gas.
159 -help | --help | --hel | --he)
160 # Omit some internal or obsolete options to make the list less imposing.
161 # This message is too long to be a string in the A/UX 3.1 sh.
163 Usage: configure [options] [host]
164 Options: [defaults in brackets after descriptions]
166 --cache-file=FILE cache test results in FILE
167 --help print this message
168 --no-create do not create output files
169 --quiet, --silent do not print \`checking...' messages
170 --version print the version of autoconf that created configure
171 Directory and file names:
172 --prefix=PREFIX install architecture-independent files in PREFIX
174 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
176 --bindir=DIR user executables in DIR [EPREFIX/bin]
177 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
178 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
179 --datadir=DIR read-only architecture-independent data in DIR
181 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
182 --sharedstatedir=DIR modifiable architecture-independent data in DIR
184 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
185 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
186 --includedir=DIR C header files in DIR [PREFIX/include]
187 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
188 --infodir=DIR info documentation in DIR [PREFIX/info]
189 --mandir=DIR man documentation in DIR [PREFIX/man]
190 --srcdir=DIR find the sources in DIR [configure dir or ..]
191 --program-prefix=PREFIX prepend PREFIX to installed program names
192 --program-suffix=SUFFIX append SUFFIX to installed program names
193 --program-transform-name=PROGRAM
194 run sed PROGRAM on installed program names
198 --build=BUILD configure for building on BUILD [BUILD=HOST]
199 --host=HOST configure for HOST [guessed]
200 --target=TARGET configure for TARGET [TARGET=HOST]
201 Features and packages:
202 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
203 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
204 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
205 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
206 --x-includes=DIR X include files are in DIR
207 --x-libraries=DIR X library files are in DIR
209 if test -n "$ac_help"; then
210 echo "--enable and --with options recognized:$ac_help"
214 -host | --host | --hos | --ho)
216 -host=* | --host=* | --hos=* | --ho=*)
219 -includedir | --includedir | --includedi | --included | --include \
220 | --includ | --inclu | --incl | --inc)
221 ac_prev=includedir ;;
222 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
223 | --includ=* | --inclu=* | --incl=* | --inc=*)
224 includedir="$ac_optarg" ;;
226 -infodir | --infodir | --infodi | --infod | --info | --inf)
228 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
229 infodir="$ac_optarg" ;;
231 -libdir | --libdir | --libdi | --libd)
233 -libdir=* | --libdir=* | --libdi=* | --libd=*)
234 libdir="$ac_optarg" ;;
236 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
237 | --libexe | --libex | --libe)
238 ac_prev=libexecdir ;;
239 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
240 | --libexe=* | --libex=* | --libe=*)
241 libexecdir="$ac_optarg" ;;
243 -localstatedir | --localstatedir | --localstatedi | --localstated \
244 | --localstate | --localstat | --localsta | --localst \
245 | --locals | --local | --loca | --loc | --lo)
246 ac_prev=localstatedir ;;
247 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
248 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
249 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
250 localstatedir="$ac_optarg" ;;
252 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
254 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
255 mandir="$ac_optarg" ;;
258 # Obsolete; use --without-fp.
261 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
265 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
266 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
269 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
270 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
271 | --oldin | --oldi | --old | --ol | --o)
272 ac_prev=oldincludedir ;;
273 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
274 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
275 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
276 oldincludedir="$ac_optarg" ;;
278 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
280 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
281 prefix="$ac_optarg" ;;
283 -program-prefix | --program-prefix | --program-prefi | --program-pref \
284 | --program-pre | --program-pr | --program-p)
285 ac_prev=program_prefix ;;
286 -program-prefix=* | --program-prefix=* | --program-prefi=* \
287 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
288 program_prefix="$ac_optarg" ;;
290 -program-suffix | --program-suffix | --program-suffi | --program-suff \
291 | --program-suf | --program-su | --program-s)
292 ac_prev=program_suffix ;;
293 -program-suffix=* | --program-suffix=* | --program-suffi=* \
294 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
295 program_suffix="$ac_optarg" ;;
297 -program-transform-name | --program-transform-name \
298 | --program-transform-nam | --program-transform-na \
299 | --program-transform-n | --program-transform- \
300 | --program-transform | --program-transfor \
301 | --program-transfo | --program-transf \
302 | --program-trans | --program-tran \
303 | --progr-tra | --program-tr | --program-t)
304 ac_prev=program_transform_name ;;
305 -program-transform-name=* | --program-transform-name=* \
306 | --program-transform-nam=* | --program-transform-na=* \
307 | --program-transform-n=* | --program-transform-=* \
308 | --program-transform=* | --program-transfor=* \
309 | --program-transfo=* | --program-transf=* \
310 | --program-trans=* | --program-tran=* \
311 | --progr-tra=* | --program-tr=* | --program-t=*)
312 program_transform_name="$ac_optarg" ;;
314 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
315 | -silent | --silent | --silen | --sile | --sil)
318 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
320 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
322 sbindir="$ac_optarg" ;;
324 -sharedstatedir | --sharedstatedir | --sharedstatedi \
325 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
326 | --sharedst | --shareds | --shared | --share | --shar \
328 ac_prev=sharedstatedir ;;
329 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
330 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
331 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
333 sharedstatedir="$ac_optarg" ;;
335 -site | --site | --sit)
337 -site=* | --site=* | --sit=*)
340 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
342 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
343 srcdir="$ac_optarg" ;;
345 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
346 | --syscon | --sysco | --sysc | --sys | --sy)
347 ac_prev=sysconfdir ;;
348 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
349 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
350 sysconfdir="$ac_optarg" ;;
352 -target | --target | --targe | --targ | --tar | --ta | --t)
354 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
355 target="$ac_optarg" ;;
357 -v | -verbose | --verbose | --verbos | --verbo | --verb)
360 -version | --version | --versio | --versi | --vers)
361 echo "configure generated by autoconf version 2.12.1"
365 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
366 # Reject names that are not valid shell variable names.
367 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
368 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
370 ac_package=`echo $ac_package| sed 's/-/_/g'`
375 eval "with_${ac_package}='$ac_optarg'" ;;
377 -without-* | --without-*)
378 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
379 # Reject names that are not valid shell variable names.
380 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
381 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
383 ac_package=`echo $ac_package| sed 's/-/_/g'`
384 eval "with_${ac_package}=no" ;;
387 # Obsolete; use --with-x.
390 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
391 | --x-incl | --x-inc | --x-in | --x-i)
392 ac_prev=x_includes ;;
393 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
394 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
395 x_includes="$ac_optarg" ;;
397 -x-libraries | --x-libraries | --x-librarie | --x-librari \
398 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
399 ac_prev=x_libraries ;;
400 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
401 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
402 x_libraries="$ac_optarg" ;;
404 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
408 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
409 echo "configure: warning: $ac_option: invalid host type" 1>&2
411 if test "x$nonopt" != xNONE; then
412 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
420 if test -n "$ac_prev"; then
421 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
424 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
426 # File descriptor usage:
429 # 2 errors and warnings
430 # 3 some systems may open it to /dev/tty
431 # 4 used on the Kubota Titan
432 # 6 checking for... messages and results
433 # 5 compiler messages saved in config.log
434 if test "$silent" = yes; then
442 This file contains any messages produced by compilers while
443 running configure, to aid debugging if configure makes a mistake.
446 # Strip out --no-create and --no-recursion so they do not pile up.
447 # Also quote any args containing shell metacharacters.
452 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
453 | --no-cr | --no-c) ;;
454 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
455 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
456 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
457 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
458 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
463 # Only set these to C if already set. These must not be set unconditionally
464 # because not all systems understand e.g. LANG=C (notably SCO).
465 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
466 # Non-C LC_CTYPE values break the ctype check.
467 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
468 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
469 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
470 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
472 # confdefs.h avoids OS command line length limits that DEFS can exceed.
473 rm -rf conftest* confdefs.h
474 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
477 # A filename unique to this package, relative to the directory that
478 # configure is in, which we can look for to find out if srcdir is correct.
479 ac_unique_file=libbfd.c
481 # Find the source files, if location was not specified.
482 if test -z "$srcdir"; then
483 ac_srcdir_defaulted=yes
484 # Try the directory containing this script, then its parent.
486 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
487 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
489 if test ! -r $srcdir/$ac_unique_file; then
493 ac_srcdir_defaulted=no
495 if test ! -r $srcdir/$ac_unique_file; then
496 if test "$ac_srcdir_defaulted" = yes; then
497 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
499 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
502 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
504 # Prefer explicitly selected file to automatically selected ones.
505 if test -z "$CONFIG_SITE"; then
506 if test "x$prefix" != xNONE; then
507 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
509 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
512 for ac_site_file in $CONFIG_SITE; do
513 if test -r "$ac_site_file"; then
514 echo "loading site script $ac_site_file"
519 if test -r "$cache_file"; then
520 echo "loading cache $cache_file"
523 echo "creating cache $cache_file"
528 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
529 ac_cpp='$CPP $CPPFLAGS'
530 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
531 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
532 cross_compiling=$ac_cv_prog_cc_cross
534 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
536 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
543 ac_n= ac_c='\c' ac_t=
549 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
550 if test -f $ac_dir/install-sh; then
552 ac_install_sh="$ac_aux_dir/install-sh -c"
554 elif test -f $ac_dir/install.sh; then
556 ac_install_sh="$ac_aux_dir/install.sh -c"
560 if test -z "$ac_aux_dir"; then
561 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
563 ac_config_guess=$ac_aux_dir/config.guess
564 ac_config_sub=$ac_aux_dir/config.sub
565 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
568 # Do some error checking and defaulting for the host and target type.
570 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
573 # 1. You are not allowed to specify --host, --target, and nonopt at the
575 # 2. Host defaults to nonopt.
576 # 3. If nonopt is not specified, then host defaults to the current host,
577 # as determined by config.guess.
578 # 4. Target and build default to nonopt.
579 # 5. If nonopt is not specified, then target and build default to host.
581 # The aliases save the names the user supplied, while $host etc.
582 # will get canonicalized.
583 case $host---$target---$nonopt in
584 NONE---*---* | *---NONE---* | *---*---NONE) ;;
585 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
589 # Make sure we can run config.sub.
590 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
591 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
594 echo $ac_n "checking host system type""... $ac_c" 1>&6
595 echo "configure:596: checking host system type" >&5
598 case "$host_alias" in
602 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
603 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
605 *) host_alias=$nonopt ;;
609 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
610 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
611 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
612 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
613 echo "$ac_t""$host" 1>&6
615 echo $ac_n "checking target system type""... $ac_c" 1>&6
616 echo "configure:617: checking target system type" >&5
619 case "$target_alias" in
622 NONE) target_alias=$host_alias ;;
623 *) target_alias=$nonopt ;;
627 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
628 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
629 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
630 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
631 echo "$ac_t""$target" 1>&6
633 echo $ac_n "checking build system type""... $ac_c" 1>&6
634 echo "configure:635: checking build system type" >&5
637 case "$build_alias" in
640 NONE) build_alias=$host_alias ;;
641 *) build_alias=$nonopt ;;
645 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
646 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
647 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
648 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
649 echo "$ac_t""$build" 1>&6
651 test "$host_alias" != "$target_alias" &&
652 test "$program_prefix$program_suffix$program_transform_name" = \
654 program_prefix=${target_alias}-
656 # Extract the first word of "gcc", so it can be a program name with args.
657 set dummy gcc; ac_word=$2
658 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
659 echo "configure:660: checking for $ac_word" >&5
660 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
661 echo $ac_n "(cached) $ac_c" 1>&6
663 if test -n "$CC"; then
664 ac_cv_prog_CC="$CC" # Let the user override the test.
666 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
667 for ac_dir in $PATH; do
668 test -z "$ac_dir" && ac_dir=.
669 if test -f $ac_dir/$ac_word; then
678 if test -n "$CC"; then
679 echo "$ac_t""$CC" 1>&6
681 echo "$ac_t""no" 1>&6
684 if test -z "$CC"; then
685 # Extract the first word of "cc", so it can be a program name with args.
686 set dummy cc; ac_word=$2
687 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
688 echo "configure:689: checking for $ac_word" >&5
689 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
690 echo $ac_n "(cached) $ac_c" 1>&6
692 if test -n "$CC"; then
693 ac_cv_prog_CC="$CC" # Let the user override the test.
695 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
697 for ac_dir in $PATH; do
698 test -z "$ac_dir" && ac_dir=.
699 if test -f $ac_dir/$ac_word; then
700 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
709 if test $ac_prog_rejected = yes; then
710 # We found a bogon in the path, so make sure we never use it.
711 set dummy $ac_cv_prog_CC
713 if test $# -gt 0; then
714 # We chose a different compiler from the bogus one.
715 # However, it has the same basename, so the bogon will be chosen
716 # first if we set CC to just the basename; use the full file name.
718 set dummy "$ac_dir/$ac_word" "$@"
726 if test -n "$CC"; then
727 echo "$ac_t""$CC" 1>&6
729 echo "$ac_t""no" 1>&6
732 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
735 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
736 echo "configure:737: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
739 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
740 ac_cpp='$CPP $CPPFLAGS'
741 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
742 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
743 cross_compiling=$ac_cv_prog_cc_cross
745 cat > conftest.$ac_ext <<EOF
746 #line 747 "configure"
747 #include "confdefs.h"
750 if { (eval echo configure:751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
751 ac_cv_prog_cc_works=yes
752 # If we can't run a trivial program, we are probably using a cross compiler.
753 if (./conftest; exit) 2>/dev/null; then
754 ac_cv_prog_cc_cross=no
756 ac_cv_prog_cc_cross=yes
759 echo "configure: failed program was:" >&5
760 cat conftest.$ac_ext >&5
761 ac_cv_prog_cc_works=no
765 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
766 if test $ac_cv_prog_cc_works = no; then
767 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
769 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
770 echo "configure:771: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
771 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
772 cross_compiling=$ac_cv_prog_cc_cross
774 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
775 echo "configure:776: checking whether we are using GNU C" >&5
776 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
777 echo $ac_n "(cached) $ac_c" 1>&6
779 cat > conftest.c <<EOF
784 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
791 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
793 if test $ac_cv_prog_gcc = yes; then
795 ac_test_CFLAGS="${CFLAGS+set}"
796 ac_save_CFLAGS="$CFLAGS"
798 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
799 echo "configure:800: checking whether ${CC-cc} accepts -g" >&5
800 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
801 echo $ac_n "(cached) $ac_c" 1>&6
803 echo 'void f(){}' > conftest.c
804 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
813 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
814 if test "$ac_test_CFLAGS" = set; then
815 CFLAGS="$ac_save_CFLAGS"
816 elif test $ac_cv_prog_cc_g = yes; then
823 test "${CFLAGS+set}" = set || CFLAGS="-g"
826 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
827 echo "configure:828: checking for POSIXized ISC" >&5
828 if test -d /etc/conf/kconfig.d &&
829 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
831 echo "$ac_t""yes" 1>&6
832 ISC=yes # If later tests want to check for ISC.
833 cat >> confdefs.h <<\EOF
834 #define _POSIX_SOURCE 1
837 if test "$GCC" = yes; then
843 echo "$ac_t""no" 1>&6
848 # Find a good install program. We prefer a C program (faster),
849 # so one script is as good as another. But avoid the broken or
850 # incompatible versions:
851 # SysV /etc/install, /usr/sbin/install
852 # SunOS /usr/etc/install
855 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
856 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
857 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
858 # ./install, which can be erroneously created by make from ./install.sh.
859 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
860 echo "configure:861: checking for a BSD compatible install" >&5
861 if test -z "$INSTALL"; then
862 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
863 echo $ac_n "(cached) $ac_c" 1>&6
865 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
866 for ac_dir in $PATH; do
867 # Account for people who put trailing slashes in PATH elements.
869 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
871 # OSF1 and SCO ODT 3.0 have their own names for install.
872 # Don't use installbsd from OSF since it installs stuff as root
874 for ac_prog in ginstall scoinst install; do
875 if test -f $ac_dir/$ac_prog; then
876 if test $ac_prog = install &&
877 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
878 # AIX install. It has an incompatible calling convention.
881 ac_cv_path_install="$ac_dir/$ac_prog -c"
892 if test "${ac_cv_path_install+set}" = set; then
893 INSTALL="$ac_cv_path_install"
895 # As a last resort, use the slow shell script. We don't cache a
896 # path for INSTALL within a source directory, because that will
897 # break other packages using the cache if that directory is
898 # removed, or if the path is relative.
899 INSTALL="$ac_install_sh"
902 echo "$ac_t""$INSTALL" 1>&6
904 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
905 # It thinks the first close brace ends the variable substitution.
906 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
908 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
911 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
913 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
914 echo "configure:915: checking whether build environment is sane" >&5
917 echo timestamp > conftestfile
918 # Do `set' in a subshell so we don't clobber the current shell's
919 # arguments. Must try -L first in case configure is actually a
920 # symlink; some systems play weird games with the mod time of symlinks
921 # (eg FreeBSD returns the mod time of the symlink's containing
924 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
925 if test "$*" = "X"; then
927 set X `ls -t $srcdir/configure conftestfile`
929 if test "$*" != "X $srcdir/configure conftestfile" \
930 && test "$*" != "X conftestfile $srcdir/configure"; then
932 # If neither matched, then we have a broken ls. This can happen
933 # if, for instance, CONFIG_SHELL is bash and it inherits a
934 # broken ls alias from the environment. This has actually
935 # happened. Such a system could not be considered "sane".
936 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
937 alias in your environment" 1>&2; exit 1; }
940 test "$2" = conftestfile
946 { echo "configure: error: newly created file is older than distributed files!
947 Check your system clock" 1>&2; exit 1; }
950 echo "$ac_t""yes" 1>&6
951 if test "$program_transform_name" = s,x,x,; then
952 program_transform_name=
954 # Double any \ or $. echo might interpret backslashes.
955 cat <<\EOF_SED > conftestsed
956 s,\\,\\\\,g; s,\$,$$,g
958 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
961 test "$program_prefix" != NONE &&
962 program_transform_name="s,^,${program_prefix},; $program_transform_name"
963 # Use a double $ so make ignores it.
964 test "$program_suffix" != NONE &&
965 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
967 # sed with no file args requires a program.
968 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
970 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
971 echo "configure:972: checking whether ${MAKE-make} sets \${MAKE}" >&5
972 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
973 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
974 echo $ac_n "(cached) $ac_c" 1>&6
976 cat > conftestmake <<\EOF
978 @echo 'ac_maketemp="${MAKE}"'
980 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
981 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
982 if test -n "$ac_maketemp"; then
983 eval ac_cv_prog_make_${ac_make}_set=yes
985 eval ac_cv_prog_make_${ac_make}_set=no
989 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
990 echo "$ac_t""yes" 1>&6
993 echo "$ac_t""no" 1>&6
994 SET_MAKE="MAKE=${MAKE-make}"
1002 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1003 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1005 cat >> confdefs.h <<EOF
1006 #define PACKAGE "$PACKAGE"
1009 cat >> confdefs.h <<EOF
1010 #define VERSION "$VERSION"
1015 missing_dir=`cd $ac_aux_dir && pwd`
1016 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1017 echo "configure:1018: checking for working aclocal" >&5
1018 # Run test in a subshell; some versions of sh will print an error if
1019 # an executable is not found, even if stderr is redirected.
1020 # Redirect stdin to placate older versions of autoconf. Sigh.
1021 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1023 echo "$ac_t""found" 1>&6
1025 ACLOCAL="$missing_dir/missing aclocal"
1026 echo "$ac_t""missing" 1>&6
1029 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1030 echo "configure:1031: checking for working autoconf" >&5
1031 # Run test in a subshell; some versions of sh will print an error if
1032 # an executable is not found, even if stderr is redirected.
1033 # Redirect stdin to placate older versions of autoconf. Sigh.
1034 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1036 echo "$ac_t""found" 1>&6
1038 AUTOCONF="$missing_dir/missing autoconf"
1039 echo "$ac_t""missing" 1>&6
1042 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1043 echo "configure:1044: checking for working automake" >&5
1044 # Run test in a subshell; some versions of sh will print an error if
1045 # an executable is not found, even if stderr is redirected.
1046 # Redirect stdin to placate older versions of autoconf. Sigh.
1047 if (automake --version) < /dev/null > /dev/null 2>&1; then
1049 echo "$ac_t""found" 1>&6
1051 AUTOMAKE="$missing_dir/missing automake"
1052 echo "$ac_t""missing" 1>&6
1055 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1056 echo "configure:1057: checking for working autoheader" >&5
1057 # Run test in a subshell; some versions of sh will print an error if
1058 # an executable is not found, even if stderr is redirected.
1059 # Redirect stdin to placate older versions of autoconf. Sigh.
1060 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1061 AUTOHEADER=autoheader
1062 echo "$ac_t""found" 1>&6
1064 AUTOHEADER="$missing_dir/missing autoheader"
1065 echo "$ac_t""missing" 1>&6
1068 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1069 echo "configure:1070: checking for working makeinfo" >&5
1070 # Run test in a subshell; some versions of sh will print an error if
1071 # an executable is not found, even if stderr is redirected.
1072 # Redirect stdin to placate older versions of autoconf. Sigh.
1073 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1075 echo "$ac_t""found" 1>&6
1077 MAKEINFO="$missing_dir/missing makeinfo"
1078 echo "$ac_t""missing" 1>&6
1083 if test $host != $build; then
1084 ac_tool_prefix=${host_alias}-
1089 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1090 set dummy ${ac_tool_prefix}ar; ac_word=$2
1091 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1092 echo "configure:1093: checking for $ac_word" >&5
1093 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1094 echo $ac_n "(cached) $ac_c" 1>&6
1096 if test -n "$AR"; then
1097 ac_cv_prog_AR="$AR" # Let the user override the test.
1099 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1100 for ac_dir in $PATH; do
1101 test -z "$ac_dir" && ac_dir=.
1102 if test -f $ac_dir/$ac_word; then
1103 ac_cv_prog_AR="${ac_tool_prefix}ar"
1108 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1112 if test -n "$AR"; then
1113 echo "$ac_t""$AR" 1>&6
1115 echo "$ac_t""no" 1>&6
1120 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1121 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1122 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1123 echo "configure:1124: checking for $ac_word" >&5
1124 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1125 echo $ac_n "(cached) $ac_c" 1>&6
1127 if test -n "$RANLIB"; then
1128 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1130 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1131 for ac_dir in $PATH; do
1132 test -z "$ac_dir" && ac_dir=.
1133 if test -f $ac_dir/$ac_word; then
1134 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1141 RANLIB="$ac_cv_prog_RANLIB"
1142 if test -n "$RANLIB"; then
1143 echo "$ac_t""$RANLIB" 1>&6
1145 echo "$ac_t""no" 1>&6
1149 if test -z "$ac_cv_prog_RANLIB"; then
1150 if test -n "$ac_tool_prefix"; then
1151 # Extract the first word of "ranlib", so it can be a program name with args.
1152 set dummy ranlib; ac_word=$2
1153 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1154 echo "configure:1155: checking for $ac_word" >&5
1155 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1156 echo $ac_n "(cached) $ac_c" 1>&6
1158 if test -n "$RANLIB"; then
1159 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1161 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1162 for ac_dir in $PATH; do
1163 test -z "$ac_dir" && ac_dir=.
1164 if test -f $ac_dir/$ac_word; then
1165 ac_cv_prog_RANLIB="ranlib"
1170 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1173 RANLIB="$ac_cv_prog_RANLIB"
1174 if test -n "$RANLIB"; then
1175 echo "$ac_t""$RANLIB" 1>&6
1177 echo "$ac_t""no" 1>&6
1186 # Check whether --enable-shared or --disable-shared was given.
1187 if test "${enable_shared+set}" = set; then
1188 enableval="$enable_shared"
1189 p=${PACKAGE-default}
1190 case "$enableval" in
1191 yes) enable_shared=yes ;;
1192 no) enable_shared=no ;;
1195 # Look at the argument we got. We use all the common list separators.
1196 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1197 for pkg in $enableval; do
1198 if test "X$pkg" = "X$p"; then
1210 # Check whether --enable-static or --disable-static was given.
1211 if test "${enable_static+set}" = set; then
1212 enableval="$enable_static"
1213 p=${PACKAGE-default}
1214 case "$enableval" in
1215 yes) enable_static=yes ;;
1216 no) enable_static=no ;;
1219 # Look at the argument we got. We use all the common list separators.
1220 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1221 for pkg in $enableval; do
1222 if test "X$pkg" = "X$p"; then
1233 # Extract the first word of "ranlib", so it can be a program name with args.
1234 set dummy ranlib; ac_word=$2
1235 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1236 echo "configure:1237: checking for $ac_word" >&5
1237 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1238 echo $ac_n "(cached) $ac_c" 1>&6
1240 if test -n "$RANLIB"; then
1241 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1243 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1244 for ac_dir in $PATH; do
1245 test -z "$ac_dir" && ac_dir=.
1246 if test -f $ac_dir/$ac_word; then
1247 ac_cv_prog_RANLIB="ranlib"
1252 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1255 RANLIB="$ac_cv_prog_RANLIB"
1256 if test -n "$RANLIB"; then
1257 echo "$ac_t""$RANLIB" 1>&6
1259 echo "$ac_t""no" 1>&6
1262 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1263 if test "${with_gnu_ld+set}" = set; then
1264 withval="$with_gnu_ld"
1265 test "$withval" = no || with_gnu_ld=yes
1272 if test "$ac_cv_prog_gcc" = yes; then
1273 # Check if gcc -print-prog-name=ld gives a path.
1274 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1275 echo "configure:1276: checking for ld used by GCC" >&5
1276 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1278 # Accept absolute paths.
1280 test -z "$LD" && LD="$ac_prog"
1283 # If it fails, then pretend we aren't using GCC.
1287 # If it is relative, then search for the first ld in PATH.
1291 elif test "$with_gnu_ld" = yes; then
1292 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1293 echo "configure:1294: checking for GNU ld" >&5
1295 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1296 echo "configure:1297: checking for non-GNU ld" >&5
1298 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1299 echo $ac_n "(cached) $ac_c" 1>&6
1301 if test -z "$LD"; then
1302 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1303 for ac_dir in $PATH; do
1304 test -z "$ac_dir" && ac_dir=.
1305 if test -f "$ac_dir/$ac_prog"; then
1306 ac_cv_path_LD="$ac_dir/$ac_prog"
1307 # Check to see if the program is GNU ld. I'd rather use --version,
1308 # but apparently some GNU ld's only accept -v.
1309 # Break only if it was the GNU/non-GNU ld that we prefer.
1310 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1311 test "$with_gnu_ld" != no && break
1313 test "$with_gnu_ld" != yes && break
1319 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1324 if test -n "$LD"; then
1325 echo "$ac_t""$LD" 1>&6
1327 echo "$ac_t""no" 1>&6
1329 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1331 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1332 echo "configure:1333: checking if the linker ($LD) is GNU ld" >&5
1333 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1334 echo $ac_n "(cached) $ac_c" 1>&6
1336 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1337 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1338 ac_cv_prog_gnu_ld=yes
1340 ac_cv_prog_gnu_ld=no
1344 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1347 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1348 echo "configure:1349: checking for BSD-compatible nm" >&5
1349 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1350 echo $ac_n "(cached) $ac_c" 1>&6
1352 if test -z "$NM"; then
1353 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1354 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
1355 test -z "$ac_dir" && ac_dir=.
1356 if test -f $ac_dir/nm; then
1357 # Check to see if the nm accepts a BSD-compat flag.
1358 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1359 # nm: unknown option "B" ignored
1360 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1361 ac_cv_path_NM="$ac_dir/nm -B"
1362 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1363 ac_cv_path_NM="$ac_dir/nm -p"
1365 ac_cv_path_NM="$ac_dir/nm"
1371 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1373 ac_cv_path_NM="$NM" # Let the user override the test with a path.
1378 echo "$ac_t""$NM" 1>&6
1381 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1382 echo "configure:1383: checking whether ln -s works" >&5
1383 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1384 echo $ac_n "(cached) $ac_c" 1>&6
1387 if ln -s X conftestdata 2>/dev/null
1390 ac_cv_prog_LN_S="ln -s"
1395 LN_S="$ac_cv_prog_LN_S"
1396 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1397 echo "$ac_t""yes" 1>&6
1399 echo "$ac_t""no" 1>&6
1402 # Always use our own libtool.
1403 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1405 # Check for any special flags to pass to ltconfig.
1407 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1408 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1409 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
1410 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1411 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1413 # Some flags need to be propagated to the compiler or linker for good
1417 # Find out which ABI we are using.
1418 echo '#line 1419 "configure"' > conftest.$ac_ext
1419 if { (eval echo configure:1420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1420 case "`/usr/bin/file conftest.o`" in
1436 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1437 CFLAGS="$CFLAGS -belf"
1441 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
1442 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1443 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1444 echo "configure:1445: checking for $ac_word" >&5
1445 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1446 echo $ac_n "(cached) $ac_c" 1>&6
1448 if test -n "$DLLTOOL"; then
1449 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1451 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1452 for ac_dir in $PATH; do
1453 test -z "$ac_dir" && ac_dir=.
1454 if test -f $ac_dir/$ac_word; then
1455 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1462 DLLTOOL="$ac_cv_prog_DLLTOOL"
1463 if test -n "$DLLTOOL"; then
1464 echo "$ac_t""$DLLTOOL" 1>&6
1466 echo "$ac_t""no" 1>&6
1470 if test -z "$ac_cv_prog_DLLTOOL"; then
1471 if test -n "$ac_tool_prefix"; then
1472 # Extract the first word of "dlltool", so it can be a program name with args.
1473 set dummy dlltool; ac_word=$2
1474 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1475 echo "configure:1476: checking for $ac_word" >&5
1476 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1477 echo $ac_n "(cached) $ac_c" 1>&6
1479 if test -n "$DLLTOOL"; then
1480 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1482 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1483 for ac_dir in $PATH; do
1484 test -z "$ac_dir" && ac_dir=.
1485 if test -f $ac_dir/$ac_word; then
1486 ac_cv_prog_DLLTOOL="dlltool"
1491 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
1494 DLLTOOL="$ac_cv_prog_DLLTOOL"
1495 if test -n "$DLLTOOL"; then
1496 echo "$ac_t""$DLLTOOL" 1>&6
1498 echo "$ac_t""no" 1>&6
1506 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1507 set dummy ${ac_tool_prefix}as; ac_word=$2
1508 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1509 echo "configure:1510: checking for $ac_word" >&5
1510 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1511 echo $ac_n "(cached) $ac_c" 1>&6
1513 if test -n "$AS"; then
1514 ac_cv_prog_AS="$AS" # Let the user override the test.
1516 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1517 for ac_dir in $PATH; do
1518 test -z "$ac_dir" && ac_dir=.
1519 if test -f $ac_dir/$ac_word; then
1520 ac_cv_prog_AS="${ac_tool_prefix}as"
1528 if test -n "$AS"; then
1529 echo "$ac_t""$AS" 1>&6
1531 echo "$ac_t""no" 1>&6
1535 if test -z "$ac_cv_prog_AS"; then
1536 if test -n "$ac_tool_prefix"; then
1537 # Extract the first word of "as", so it can be a program name with args.
1538 set dummy as; ac_word=$2
1539 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1540 echo "configure:1541: checking for $ac_word" >&5
1541 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1542 echo $ac_n "(cached) $ac_c" 1>&6
1544 if test -n "$AS"; then
1545 ac_cv_prog_AS="$AS" # Let the user override the test.
1547 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1548 for ac_dir in $PATH; do
1549 test -z "$ac_dir" && ac_dir=.
1550 if test -f $ac_dir/$ac_word; then
1556 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
1560 if test -n "$AS"; then
1561 echo "$ac_t""$AS" 1>&6
1563 echo "$ac_t""no" 1>&6
1576 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1577 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1578 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
1579 DLLTOOL="$DLLTOOL" AS="$AS" \
1580 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
1581 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1582 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1585 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
1586 if test "${enable_64_bit_bfd+set}" = set; then
1587 enableval="$enable_64_bit_bfd"
1588 case "${enableval}" in
1591 *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;;
1596 # Check whether --enable-targets or --disable-targets was given.
1597 if test "${enable_targets+set}" = set; then
1598 enableval="$enable_targets"
1599 case "${enableval}" in
1600 yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
1602 no) enable_targets= ;;
1603 *) enable_targets=$enableval ;;
1606 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
1607 if test "${enable_commonbfdlib+set}" = set; then
1608 enableval="$enable_commonbfdlib"
1609 case "${enableval}" in
1610 yes) commonbfdlib=true ;;
1611 no) commonbfdlib=false ;;
1612 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
1615 # Check whether --with-mmap or --without-mmap was given.
1616 if test "${with_mmap+set}" = set; then
1617 withval="$with_mmap"
1618 case "${withval}" in
1619 yes) want_mmap=true ;;
1620 no) want_mmap=false ;;
1621 *) { echo "configure: error: bad value ${withval} for BFD with-mmap option" 1>&2; exit 1; } ;;
1631 if test -z "$target" ; then
1632 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
1634 if test "$program_transform_name" = s,x,x,; then
1635 program_transform_name=
1637 # Double any \ or $. echo might interpret backslashes.
1638 cat <<\EOF_SED > conftestsed
1639 s,\\,\\\\,g; s,\$,$$,g
1641 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1644 test "$program_prefix" != NONE &&
1645 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1646 # Use a double $ so make ignores it.
1647 test "$program_suffix" != NONE &&
1648 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1650 # sed with no file args requires a program.
1651 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1654 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1655 echo "configure:1656: checking whether to enable maintainer-specific portions of Makefiles" >&5
1656 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1657 if test "${enable_maintainer_mode+set}" = set; then
1658 enableval="$enable_maintainer_mode"
1659 USE_MAINTAINER_MODE=$enableval
1661 USE_MAINTAINER_MODE=no
1664 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1665 if test $USE_MAINTAINER_MODE = yes; then
1672 echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
1673 echo "configure:1674: checking for Cygwin32 environment" >&5
1674 if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
1675 echo $ac_n "(cached) $ac_c" 1>&6
1677 cat > conftest.$ac_ext <<EOF
1678 #line 1679 "configure"
1679 #include "confdefs.h"
1682 return __CYGWIN32__;
1685 if { (eval echo configure:1686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1689 echo "configure: failed program was:" >&5
1690 cat conftest.$ac_ext >&5
1698 echo "$ac_t""$am_cv_cygwin32" 1>&6
1700 test "$am_cv_cygwin32" = yes && CYGWIN32=yes
1701 echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6
1702 echo "configure:1703: checking for Mingw32 environment" >&5
1703 if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then
1704 echo $ac_n "(cached) $ac_c" 1>&6
1706 cat > conftest.$ac_ext <<EOF
1707 #line 1708 "configure"
1708 #include "confdefs.h"
1714 if { (eval echo configure:1715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1718 echo "configure: failed program was:" >&5
1719 cat conftest.$ac_ext >&5
1727 echo "$ac_t""$am_cv_mingw32" 1>&6
1729 test "$am_cv_mingw32" = yes && MINGW32=yes
1732 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1733 echo "configure:1734: checking for executable suffix" >&5
1734 if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
1735 echo $ac_n "(cached) $ac_c" 1>&6
1737 if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then
1740 cat > am_c_test.c << 'EOF'
1742 /* Nothing needed here */
1745 ${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5
1747 for file in am_c_test.*; do
1751 *) am_cv_exeext=`echo $file | sed -e s/am_c_test//` ;;
1757 test x"${am_cv_exeext}" = x && am_cv_exeext=no
1760 test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext}
1761 echo "$ac_t""${am_cv_exeext}" 1>&6
1769 # Extract the first word of "gcc", so it can be a program name with args.
1770 set dummy gcc; ac_word=$2
1771 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1772 echo "configure:1773: checking for $ac_word" >&5
1773 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1774 echo $ac_n "(cached) $ac_c" 1>&6
1776 if test -n "$CC"; then
1777 ac_cv_prog_CC="$CC" # Let the user override the test.
1779 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1780 for ac_dir in $PATH; do
1781 test -z "$ac_dir" && ac_dir=.
1782 if test -f $ac_dir/$ac_word; then
1791 if test -n "$CC"; then
1792 echo "$ac_t""$CC" 1>&6
1794 echo "$ac_t""no" 1>&6
1797 if test -z "$CC"; then
1798 # Extract the first word of "cc", so it can be a program name with args.
1799 set dummy cc; ac_word=$2
1800 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1801 echo "configure:1802: checking for $ac_word" >&5
1802 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1803 echo $ac_n "(cached) $ac_c" 1>&6
1805 if test -n "$CC"; then
1806 ac_cv_prog_CC="$CC" # Let the user override the test.
1808 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1810 for ac_dir in $PATH; do
1811 test -z "$ac_dir" && ac_dir=.
1812 if test -f $ac_dir/$ac_word; then
1813 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1814 ac_prog_rejected=yes
1822 if test $ac_prog_rejected = yes; then
1823 # We found a bogon in the path, so make sure we never use it.
1824 set dummy $ac_cv_prog_CC
1826 if test $# -gt 0; then
1827 # We chose a different compiler from the bogus one.
1828 # However, it has the same basename, so the bogon will be chosen
1829 # first if we set CC to just the basename; use the full file name.
1831 set dummy "$ac_dir/$ac_word" "$@"
1839 if test -n "$CC"; then
1840 echo "$ac_t""$CC" 1>&6
1842 echo "$ac_t""no" 1>&6
1845 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1848 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1849 echo "configure:1850: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1852 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1853 ac_cpp='$CPP $CPPFLAGS'
1854 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1855 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1856 cross_compiling=$ac_cv_prog_cc_cross
1858 cat > conftest.$ac_ext <<EOF
1859 #line 1860 "configure"
1860 #include "confdefs.h"
1863 if { (eval echo configure:1864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1864 ac_cv_prog_cc_works=yes
1865 # If we can't run a trivial program, we are probably using a cross compiler.
1866 if (./conftest; exit) 2>/dev/null; then
1867 ac_cv_prog_cc_cross=no
1869 ac_cv_prog_cc_cross=yes
1872 echo "configure: failed program was:" >&5
1873 cat conftest.$ac_ext >&5
1874 ac_cv_prog_cc_works=no
1878 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1879 if test $ac_cv_prog_cc_works = no; then
1880 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1882 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1883 echo "configure:1884: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1884 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1885 cross_compiling=$ac_cv_prog_cc_cross
1887 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1888 echo "configure:1889: checking whether we are using GNU C" >&5
1889 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1890 echo $ac_n "(cached) $ac_c" 1>&6
1892 cat > conftest.c <<EOF
1897 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1904 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1906 if test $ac_cv_prog_gcc = yes; then
1908 ac_test_CFLAGS="${CFLAGS+set}"
1909 ac_save_CFLAGS="$CFLAGS"
1911 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1912 echo "configure:1913: checking whether ${CC-cc} accepts -g" >&5
1913 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1914 echo $ac_n "(cached) $ac_c" 1>&6
1916 echo 'void f(){}' > conftest.c
1917 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1926 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1927 if test "$ac_test_CFLAGS" = set; then
1928 CFLAGS="$ac_save_CFLAGS"
1929 elif test $ac_cv_prog_cc_g = yes; then
1936 test "${CFLAGS+set}" = set || CFLAGS="-g"
1941 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1942 echo "configure:1943: checking how to run the C preprocessor" >&5
1943 # On Suns, sometimes $CPP names a directory.
1944 if test -n "$CPP" && test -d "$CPP"; then
1947 if test -z "$CPP"; then
1948 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1949 echo $ac_n "(cached) $ac_c" 1>&6
1951 # This must be in double quotes, not single quotes, because CPP may get
1952 # substituted into the Makefile and "${CC-cc}" will confuse make.
1954 # On the NeXT, cc -E runs the code through the compiler's parser,
1955 # not just through cpp.
1956 cat > conftest.$ac_ext <<EOF
1957 #line 1958 "configure"
1958 #include "confdefs.h"
1962 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1963 { (eval echo configure:1964: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1964 ac_err=`grep -v '^ *+' conftest.out`
1965 if test -z "$ac_err"; then
1969 echo "configure: failed program was:" >&5
1970 cat conftest.$ac_ext >&5
1972 CPP="${CC-cc} -E -traditional-cpp"
1973 cat > conftest.$ac_ext <<EOF
1974 #line 1975 "configure"
1975 #include "confdefs.h"
1979 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1980 { (eval echo configure:1981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1981 ac_err=`grep -v '^ *+' conftest.out`
1982 if test -z "$ac_err"; then
1986 echo "configure: failed program was:" >&5
1987 cat conftest.$ac_ext >&5
1994 ac_cv_prog_CPP="$CPP"
1996 CPP="$ac_cv_prog_CPP"
1998 ac_cv_prog_CPP="$CPP"
2000 echo "$ac_t""$CPP" 1>&6
2002 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2003 echo "configure:2004: checking for ANSI C header files" >&5
2004 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2005 echo $ac_n "(cached) $ac_c" 1>&6
2007 cat > conftest.$ac_ext <<EOF
2008 #line 2009 "configure"
2009 #include "confdefs.h"
2015 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2016 { (eval echo configure:2017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2017 ac_err=`grep -v '^ *+' conftest.out`
2018 if test -z "$ac_err"; then
2020 ac_cv_header_stdc=yes
2023 echo "configure: failed program was:" >&5
2024 cat conftest.$ac_ext >&5
2026 ac_cv_header_stdc=no
2030 if test $ac_cv_header_stdc = yes; then
2031 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2032 cat > conftest.$ac_ext <<EOF
2033 #line 2034 "configure"
2034 #include "confdefs.h"
2037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2038 egrep "memchr" >/dev/null 2>&1; then
2042 ac_cv_header_stdc=no
2048 if test $ac_cv_header_stdc = yes; then
2049 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2050 cat > conftest.$ac_ext <<EOF
2051 #line 2052 "configure"
2052 #include "confdefs.h"
2055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2056 egrep "free" >/dev/null 2>&1; then
2060 ac_cv_header_stdc=no
2066 if test $ac_cv_header_stdc = yes; then
2067 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2068 if test "$cross_compiling" = yes; then
2071 cat > conftest.$ac_ext <<EOF
2072 #line 2073 "configure"
2073 #include "confdefs.h"
2075 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2076 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2077 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2078 int main () { int i; for (i = 0; i < 256; i++)
2079 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2083 if { (eval echo configure:2084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2087 echo "configure: failed program was:" >&5
2088 cat conftest.$ac_ext >&5
2090 ac_cv_header_stdc=no
2098 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2099 if test $ac_cv_header_stdc = yes; then
2100 cat >> confdefs.h <<\EOF
2101 #define STDC_HEADERS 1
2106 echo $ac_n "checking for working const""... $ac_c" 1>&6
2107 echo "configure:2108: checking for working const" >&5
2108 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2109 echo $ac_n "(cached) $ac_c" 1>&6
2111 cat > conftest.$ac_ext <<EOF
2112 #line 2113 "configure"
2113 #include "confdefs.h"
2117 /* Ultrix mips cc rejects this. */
2118 typedef int charset[2]; const charset x;
2119 /* SunOS 4.1.1 cc rejects this. */
2120 char const *const *ccp;
2122 /* NEC SVR4.0.2 mips cc rejects this. */
2123 struct point {int x, y;};
2124 static struct point const zero = {0,0};
2125 /* AIX XL C 1.02.0.0 rejects this.
2126 It does not let you subtract one const X* pointer from another in an arm
2127 of an if-expression whose if-part is not a constant expression */
2128 const char *g = "string";
2129 ccp = &g + (g ? g-g : 0);
2130 /* HPUX 7.0 cc rejects these. */
2133 ccp = (char const *const *) p;
2134 { /* SCO 3.2v4 cc rejects this. */
2136 char const *s = 0 ? (char *) 0 : (char const *) 0;
2140 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2142 const int *foo = &x[0];
2145 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2146 typedef const int *iptr;
2150 { /* AIX XL C 1.02.0.0 rejects this saying
2151 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2152 struct s { int j; const int *ap[3]; };
2153 struct s *b; b->j = 5;
2155 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2161 if { (eval echo configure:2162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2165 echo "configure: failed program was:" >&5
2166 cat conftest.$ac_ext >&5
2173 echo "$ac_t""$ac_cv_c_const" 1>&6
2174 if test $ac_cv_c_const = no; then
2175 cat >> confdefs.h <<\EOF
2181 echo $ac_n "checking for inline""... $ac_c" 1>&6
2182 echo "configure:2183: checking for inline" >&5
2183 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2184 echo $ac_n "(cached) $ac_c" 1>&6
2187 for ac_kw in inline __inline__ __inline; do
2188 cat > conftest.$ac_ext <<EOF
2189 #line 2190 "configure"
2190 #include "confdefs.h"
2196 if { (eval echo configure:2197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2198 ac_cv_c_inline=$ac_kw; break
2200 echo "configure: failed program was:" >&5
2201 cat conftest.$ac_ext >&5
2208 echo "$ac_t""$ac_cv_c_inline" 1>&6
2209 case "$ac_cv_c_inline" in
2211 no) cat >> confdefs.h <<\EOF
2215 *) cat >> confdefs.h <<EOF
2216 #define inline $ac_cv_c_inline
2221 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2222 echo "configure:2223: checking for off_t" >&5
2223 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2224 echo $ac_n "(cached) $ac_c" 1>&6
2226 cat > conftest.$ac_ext <<EOF
2227 #line 2228 "configure"
2228 #include "confdefs.h"
2229 #include <sys/types.h>
2235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2236 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2238 ac_cv_type_off_t=yes
2246 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2247 if test $ac_cv_type_off_t = no; then
2248 cat >> confdefs.h <<\EOF
2254 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2255 echo "configure:2256: checking for size_t" >&5
2256 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2257 echo $ac_n "(cached) $ac_c" 1>&6
2259 cat > conftest.$ac_ext <<EOF
2260 #line 2261 "configure"
2261 #include "confdefs.h"
2262 #include <sys/types.h>
2268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2269 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2271 ac_cv_type_size_t=yes
2274 ac_cv_type_size_t=no
2279 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2280 if test $ac_cv_type_size_t = no; then
2281 cat >> confdefs.h <<\EOF
2282 #define size_t unsigned
2287 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2288 # for constant arguments. Useless!
2289 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2290 echo "configure:2291: checking for working alloca.h" >&5
2291 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2292 echo $ac_n "(cached) $ac_c" 1>&6
2294 cat > conftest.$ac_ext <<EOF
2295 #line 2296 "configure"
2296 #include "confdefs.h"
2299 char *p = alloca(2 * sizeof(int));
2302 if { (eval echo configure:2303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2304 ac_cv_header_alloca_h=yes
2306 echo "configure: failed program was:" >&5
2307 cat conftest.$ac_ext >&5
2309 ac_cv_header_alloca_h=no
2314 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2315 if test $ac_cv_header_alloca_h = yes; then
2316 cat >> confdefs.h <<\EOF
2317 #define HAVE_ALLOCA_H 1
2322 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2323 echo "configure:2324: checking for alloca" >&5
2324 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2325 echo $ac_n "(cached) $ac_c" 1>&6
2327 cat > conftest.$ac_ext <<EOF
2328 #line 2329 "configure"
2329 #include "confdefs.h"
2332 # define alloca __builtin_alloca
2335 # include <alloca.h>
2340 # ifndef alloca /* predefined by HP cc +Olibcalls */
2348 char *p = (char *) alloca(1);
2351 if { (eval echo configure:2352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2353 ac_cv_func_alloca_works=yes
2355 echo "configure: failed program was:" >&5
2356 cat conftest.$ac_ext >&5
2358 ac_cv_func_alloca_works=no
2363 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2364 if test $ac_cv_func_alloca_works = yes; then
2365 cat >> confdefs.h <<\EOF
2366 #define HAVE_ALLOCA 1
2371 if test $ac_cv_func_alloca_works = no; then
2372 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2373 # that cause trouble. Some versions do not even contain alloca or
2374 # contain a buggy version. If you still want to use their alloca,
2375 # use ar to extract alloca.o from them instead of compiling alloca.c.
2377 cat >> confdefs.h <<\EOF
2382 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2383 echo "configure:2384: checking whether alloca needs Cray hooks" >&5
2384 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2385 echo $ac_n "(cached) $ac_c" 1>&6
2387 cat > conftest.$ac_ext <<EOF
2388 #line 2389 "configure"
2389 #include "confdefs.h"
2390 #if defined(CRAY) && ! defined(CRAY2)
2397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2398 egrep "webecray" >/dev/null 2>&1; then
2409 echo "$ac_t""$ac_cv_os_cray" 1>&6
2410 if test $ac_cv_os_cray = yes; then
2411 for ac_func in _getb67 GETB67 getb67; do
2412 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2413 echo "configure:2414: checking for $ac_func" >&5
2414 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2415 echo $ac_n "(cached) $ac_c" 1>&6
2417 cat > conftest.$ac_ext <<EOF
2418 #line 2419 "configure"
2419 #include "confdefs.h"
2420 /* System header to define __stub macros and hopefully few prototypes,
2421 which can conflict with char $ac_func(); below. */
2423 /* Override any gcc2 internal prototype to avoid an error. */
2424 /* We use char because int might match the return type of a gcc2
2425 builtin and then its argument prototype would still apply. */
2430 /* The GNU C library defines this for functions which it implements
2431 to always fail with ENOSYS. Some functions are actually named
2432 something starting with __ and the normal name is an alias. */
2433 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2441 if { (eval echo configure:2442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2443 eval "ac_cv_func_$ac_func=yes"
2445 echo "configure: failed program was:" >&5
2446 cat conftest.$ac_ext >&5
2448 eval "ac_cv_func_$ac_func=no"
2453 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2454 echo "$ac_t""yes" 1>&6
2455 cat >> confdefs.h <<EOF
2456 #define CRAY_STACKSEG_END $ac_func
2461 echo "$ac_t""no" 1>&6
2467 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2468 echo "configure:2469: checking stack direction for C alloca" >&5
2469 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2470 echo $ac_n "(cached) $ac_c" 1>&6
2472 if test "$cross_compiling" = yes; then
2473 ac_cv_c_stack_direction=0
2475 cat > conftest.$ac_ext <<EOF
2476 #line 2477 "configure"
2477 #include "confdefs.h"
2478 find_stack_direction ()
2480 static char *addr = 0;
2485 return find_stack_direction ();
2488 return (&dummy > addr) ? 1 : -1;
2492 exit (find_stack_direction() < 0);
2495 if { (eval echo configure:2496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2497 ac_cv_c_stack_direction=1
2499 echo "configure: failed program was:" >&5
2500 cat conftest.$ac_ext >&5
2502 ac_cv_c_stack_direction=-1
2509 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2510 cat >> confdefs.h <<EOF
2511 #define STACK_DIRECTION $ac_cv_c_stack_direction
2516 for ac_hdr in unistd.h
2518 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2519 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2520 echo "configure:2521: checking for $ac_hdr" >&5
2521 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2522 echo $ac_n "(cached) $ac_c" 1>&6
2524 cat > conftest.$ac_ext <<EOF
2525 #line 2526 "configure"
2526 #include "confdefs.h"
2529 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2530 { (eval echo configure:2531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2531 ac_err=`grep -v '^ *+' conftest.out`
2532 if test -z "$ac_err"; then
2534 eval "ac_cv_header_$ac_safe=yes"
2537 echo "configure: failed program was:" >&5
2538 cat conftest.$ac_ext >&5
2540 eval "ac_cv_header_$ac_safe=no"
2544 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2545 echo "$ac_t""yes" 1>&6
2546 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2547 cat >> confdefs.h <<EOF
2548 #define $ac_tr_hdr 1
2552 echo "$ac_t""no" 1>&6
2556 for ac_func in getpagesize
2558 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2559 echo "configure:2560: checking for $ac_func" >&5
2560 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2561 echo $ac_n "(cached) $ac_c" 1>&6
2563 cat > conftest.$ac_ext <<EOF
2564 #line 2565 "configure"
2565 #include "confdefs.h"
2566 /* System header to define __stub macros and hopefully few prototypes,
2567 which can conflict with char $ac_func(); below. */
2569 /* Override any gcc2 internal prototype to avoid an error. */
2570 /* We use char because int might match the return type of a gcc2
2571 builtin and then its argument prototype would still apply. */
2576 /* The GNU C library defines this for functions which it implements
2577 to always fail with ENOSYS. Some functions are actually named
2578 something starting with __ and the normal name is an alias. */
2579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2587 if { (eval echo configure:2588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2589 eval "ac_cv_func_$ac_func=yes"
2591 echo "configure: failed program was:" >&5
2592 cat conftest.$ac_ext >&5
2594 eval "ac_cv_func_$ac_func=no"
2599 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2600 echo "$ac_t""yes" 1>&6
2601 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2602 cat >> confdefs.h <<EOF
2603 #define $ac_tr_func 1
2607 echo "$ac_t""no" 1>&6
2611 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2612 echo "configure:2613: checking for working mmap" >&5
2613 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2614 echo $ac_n "(cached) $ac_c" 1>&6
2616 if test "$cross_compiling" = yes; then
2617 ac_cv_func_mmap_fixed_mapped=no
2619 cat > conftest.$ac_ext <<EOF
2620 #line 2621 "configure"
2621 #include "confdefs.h"
2623 /* Thanks to Mike Haertel and Jim Avera for this test.
2624 Here is a matrix of mmap possibilities:
2625 mmap private not fixed
2626 mmap private fixed at somewhere currently unmapped
2627 mmap private fixed at somewhere already mapped
2628 mmap shared not fixed
2629 mmap shared fixed at somewhere currently unmapped
2630 mmap shared fixed at somewhere already mapped
2631 For private mappings, we should verify that changes cannot be read()
2632 back from the file, nor mmap's back from the file at a different
2633 address. (There have been systems where private was not correctly
2634 implemented like the infamous i386 svr4.0, and systems where the
2635 VM page cache was not coherent with the filesystem buffer cache
2636 like early versions of FreeBSD and possibly contemporary NetBSD.)
2637 For shared mappings, we should conversely verify that changes get
2638 propogated back to all the places they're supposed to be.
2640 Grep wants private fixed already mapped.
2641 The main things grep needs to know about mmap are:
2642 * does it exist and is it safe to write into the mmap'd area
2643 * how to use it (BSD variants) */
2644 #include <sys/types.h>
2646 #include <sys/mman.h>
2648 /* This mess was copied from the GNU getpagesize.h. */
2649 #ifndef HAVE_GETPAGESIZE
2650 # ifdef HAVE_UNISTD_H
2651 # include <unistd.h>
2654 /* Assume that all systems that can run configure have sys/param.h. */
2655 # ifndef HAVE_SYS_PARAM_H
2656 # define HAVE_SYS_PARAM_H 1
2659 # ifdef _SC_PAGESIZE
2660 # define getpagesize() sysconf(_SC_PAGESIZE)
2661 # else /* no _SC_PAGESIZE */
2662 # ifdef HAVE_SYS_PARAM_H
2663 # include <sys/param.h>
2664 # ifdef EXEC_PAGESIZE
2665 # define getpagesize() EXEC_PAGESIZE
2666 # else /* no EXEC_PAGESIZE */
2668 # define getpagesize() NBPG * CLSIZE
2671 # endif /* no CLSIZE */
2672 # else /* no NBPG */
2674 # define getpagesize() NBPC
2675 # else /* no NBPC */
2677 # define getpagesize() PAGESIZE
2678 # endif /* PAGESIZE */
2679 # endif /* no NBPC */
2680 # endif /* no NBPG */
2681 # endif /* no EXEC_PAGESIZE */
2682 # else /* no HAVE_SYS_PARAM_H */
2683 # define getpagesize() 8192 /* punt totally */
2684 # endif /* no HAVE_SYS_PARAM_H */
2685 # endif /* no _SC_PAGESIZE */
2687 #endif /* no HAVE_GETPAGESIZE */
2690 extern "C" { void *malloc(unsigned); }
2698 char *data, *data2, *data3;
2702 pagesize = getpagesize();
2705 * First, make a file with some known garbage in it.
2707 data = malloc(pagesize);
2710 for (i = 0; i < pagesize; ++i)
2711 *(data + i) = rand();
2713 fd = creat("conftestmmap", 0600);
2716 if (write(fd, data, pagesize) != pagesize)
2721 * Next, try to mmap the file at a fixed address which
2722 * already has something else allocated at it. If we can,
2723 * also make sure that we see the same garbage.
2725 fd = open("conftestmmap", O_RDWR);
2728 data2 = malloc(2 * pagesize);
2731 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2732 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2733 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2735 for (i = 0; i < pagesize; ++i)
2736 if (*(data + i) != *(data2 + i))
2740 * Finally, make sure that changes to the mapped area
2741 * do not percolate back to the file as seen by read().
2742 * (This is a bug on some variants of i386 svr4.0.)
2744 for (i = 0; i < pagesize; ++i)
2745 *(data2 + i) = *(data2 + i) + 1;
2746 data3 = malloc(pagesize);
2749 if (read(fd, data3, pagesize) != pagesize)
2751 for (i = 0; i < pagesize; ++i)
2752 if (*(data + i) != *(data3 + i))
2755 unlink("conftestmmap");
2760 if { (eval echo configure:2761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2762 ac_cv_func_mmap_fixed_mapped=yes
2764 echo "configure: failed program was:" >&5
2765 cat conftest.$ac_ext >&5
2767 ac_cv_func_mmap_fixed_mapped=no
2774 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2775 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2776 cat >> confdefs.h <<\EOF
2783 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2784 unistd.h values.h sys/param.h
2786 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2787 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2788 echo "configure:2789: checking for $ac_hdr" >&5
2789 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2790 echo $ac_n "(cached) $ac_c" 1>&6
2792 cat > conftest.$ac_ext <<EOF
2793 #line 2794 "configure"
2794 #include "confdefs.h"
2797 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2798 { (eval echo configure:2799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2799 ac_err=`grep -v '^ *+' conftest.out`
2800 if test -z "$ac_err"; then
2802 eval "ac_cv_header_$ac_safe=yes"
2805 echo "configure: failed program was:" >&5
2806 cat conftest.$ac_ext >&5
2808 eval "ac_cv_header_$ac_safe=no"
2812 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2813 echo "$ac_t""yes" 1>&6
2814 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2815 cat >> confdefs.h <<EOF
2816 #define $ac_tr_hdr 1
2820 echo "$ac_t""no" 1>&6
2824 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2825 __argz_count __argz_stringify __argz_next
2827 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2828 echo "configure:2829: checking for $ac_func" >&5
2829 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2830 echo $ac_n "(cached) $ac_c" 1>&6
2832 cat > conftest.$ac_ext <<EOF
2833 #line 2834 "configure"
2834 #include "confdefs.h"
2835 /* System header to define __stub macros and hopefully few prototypes,
2836 which can conflict with char $ac_func(); below. */
2838 /* Override any gcc2 internal prototype to avoid an error. */
2839 /* We use char because int might match the return type of a gcc2
2840 builtin and then its argument prototype would still apply. */
2845 /* The GNU C library defines this for functions which it implements
2846 to always fail with ENOSYS. Some functions are actually named
2847 something starting with __ and the normal name is an alias. */
2848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2856 if { (eval echo configure:2857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2858 eval "ac_cv_func_$ac_func=yes"
2860 echo "configure: failed program was:" >&5
2861 cat conftest.$ac_ext >&5
2863 eval "ac_cv_func_$ac_func=no"
2868 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2869 echo "$ac_t""yes" 1>&6
2870 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2871 cat >> confdefs.h <<EOF
2872 #define $ac_tr_func 1
2876 echo "$ac_t""no" 1>&6
2881 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2882 for ac_func in stpcpy
2884 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2885 echo "configure:2886: checking for $ac_func" >&5
2886 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2887 echo $ac_n "(cached) $ac_c" 1>&6
2889 cat > conftest.$ac_ext <<EOF
2890 #line 2891 "configure"
2891 #include "confdefs.h"
2892 /* System header to define __stub macros and hopefully few prototypes,
2893 which can conflict with char $ac_func(); below. */
2895 /* Override any gcc2 internal prototype to avoid an error. */
2896 /* We use char because int might match the return type of a gcc2
2897 builtin and then its argument prototype would still apply. */
2902 /* The GNU C library defines this for functions which it implements
2903 to always fail with ENOSYS. Some functions are actually named
2904 something starting with __ and the normal name is an alias. */
2905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2913 if { (eval echo configure:2914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2915 eval "ac_cv_func_$ac_func=yes"
2917 echo "configure: failed program was:" >&5
2918 cat conftest.$ac_ext >&5
2920 eval "ac_cv_func_$ac_func=no"
2925 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2926 echo "$ac_t""yes" 1>&6
2927 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2928 cat >> confdefs.h <<EOF
2929 #define $ac_tr_func 1
2933 echo "$ac_t""no" 1>&6
2938 if test "${ac_cv_func_stpcpy}" = "yes"; then
2939 cat >> confdefs.h <<\EOF
2940 #define HAVE_STPCPY 1
2945 if test $ac_cv_header_locale_h = yes; then
2946 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2947 echo "configure:2948: checking for LC_MESSAGES" >&5
2948 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2949 echo $ac_n "(cached) $ac_c" 1>&6
2951 cat > conftest.$ac_ext <<EOF
2952 #line 2953 "configure"
2953 #include "confdefs.h"
2959 if { (eval echo configure:2960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2961 am_cv_val_LC_MESSAGES=yes
2963 echo "configure: failed program was:" >&5
2964 cat conftest.$ac_ext >&5
2966 am_cv_val_LC_MESSAGES=no
2971 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2972 if test $am_cv_val_LC_MESSAGES = yes; then
2973 cat >> confdefs.h <<\EOF
2974 #define HAVE_LC_MESSAGES 1
2979 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2980 echo "configure:2981: checking whether NLS is requested" >&5
2981 # Check whether --enable-nls or --disable-nls was given.
2982 if test "${enable_nls+set}" = set; then
2983 enableval="$enable_nls"
2989 echo "$ac_t""$USE_NLS" 1>&6
2992 USE_INCLUDED_LIBINTL=no
2994 if test "$USE_NLS" = "yes"; then
2995 cat >> confdefs.h <<\EOF
2996 #define ENABLE_NLS 1
2999 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3000 echo "configure:3001: checking whether included gettext is requested" >&5
3001 # Check whether --with-included-gettext or --without-included-gettext was given.
3002 if test "${with_included_gettext+set}" = set; then
3003 withval="$with_included_gettext"
3004 nls_cv_force_use_gnu_gettext=$withval
3006 nls_cv_force_use_gnu_gettext=no
3009 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3011 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3012 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3014 nls_cv_header_libgt=
3017 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3018 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3019 echo "configure:3020: checking for libintl.h" >&5
3020 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3021 echo $ac_n "(cached) $ac_c" 1>&6
3023 cat > conftest.$ac_ext <<EOF
3024 #line 3025 "configure"
3025 #include "confdefs.h"
3026 #include <libintl.h>
3028 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3029 { (eval echo configure:3030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3030 ac_err=`grep -v '^ *+' conftest.out`
3031 if test -z "$ac_err"; then
3033 eval "ac_cv_header_$ac_safe=yes"
3036 echo "configure: failed program was:" >&5
3037 cat conftest.$ac_ext >&5
3039 eval "ac_cv_header_$ac_safe=no"
3043 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3044 echo "$ac_t""yes" 1>&6
3045 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3046 echo "configure:3047: checking for gettext in libc" >&5
3047 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3048 echo $ac_n "(cached) $ac_c" 1>&6
3050 cat > conftest.$ac_ext <<EOF
3051 #line 3052 "configure"
3052 #include "confdefs.h"
3053 #include <libintl.h>
3055 return (int) gettext ("")
3058 if { (eval echo configure:3059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3060 gt_cv_func_gettext_libc=yes
3062 echo "configure: failed program was:" >&5
3063 cat conftest.$ac_ext >&5
3065 gt_cv_func_gettext_libc=no
3070 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3072 if test "$gt_cv_func_gettext_libc" != "yes"; then
3073 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3074 echo "configure:3075: checking for bindtextdomain in -lintl" >&5
3075 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3076 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3077 echo $ac_n "(cached) $ac_c" 1>&6
3079 ac_save_LIBS="$LIBS"
3081 cat > conftest.$ac_ext <<EOF
3082 #line 3083 "configure"
3083 #include "confdefs.h"
3084 /* Override any gcc2 internal prototype to avoid an error. */
3085 /* We use char because int might match the return type of a gcc2
3086 builtin and then its argument prototype would still apply. */
3087 char bindtextdomain();
3093 if { (eval echo configure:3094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3095 eval "ac_cv_lib_$ac_lib_var=yes"
3097 echo "configure: failed program was:" >&5
3098 cat conftest.$ac_ext >&5
3100 eval "ac_cv_lib_$ac_lib_var=no"
3103 LIBS="$ac_save_LIBS"
3106 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3107 echo "$ac_t""yes" 1>&6
3108 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3109 echo "configure:3110: checking for gettext in libintl" >&5
3110 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3111 echo $ac_n "(cached) $ac_c" 1>&6
3113 cat > conftest.$ac_ext <<EOF
3114 #line 3115 "configure"
3115 #include "confdefs.h"
3118 return (int) gettext ("")
3121 if { (eval echo configure:3122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3123 gt_cv_func_gettext_libintl=yes
3125 echo "configure: failed program was:" >&5
3126 cat conftest.$ac_ext >&5
3128 gt_cv_func_gettext_libintl=no
3133 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3135 echo "$ac_t""no" 1>&6
3140 if test "$gt_cv_func_gettext_libc" = "yes" \
3141 || test "$gt_cv_func_gettext_libintl" = "yes"; then
3142 cat >> confdefs.h <<\EOF
3143 #define HAVE_GETTEXT 1
3146 # Extract the first word of "msgfmt", so it can be a program name with args.
3147 set dummy msgfmt; ac_word=$2
3148 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3149 echo "configure:3150: checking for $ac_word" >&5
3150 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3151 echo $ac_n "(cached) $ac_c" 1>&6
3155 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3158 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3159 for ac_dir in $PATH; do
3160 test -z "$ac_dir" && ac_dir=.
3161 if test -f $ac_dir/$ac_word; then
3162 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3163 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3169 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
3173 MSGFMT="$ac_cv_path_MSGFMT"
3174 if test -n "$MSGFMT"; then
3175 echo "$ac_t""$MSGFMT" 1>&6
3177 echo "$ac_t""no" 1>&6
3179 if test "$MSGFMT" != "no"; then
3180 for ac_func in dcgettext
3182 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3183 echo "configure:3184: checking for $ac_func" >&5
3184 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3185 echo $ac_n "(cached) $ac_c" 1>&6
3187 cat > conftest.$ac_ext <<EOF
3188 #line 3189 "configure"
3189 #include "confdefs.h"
3190 /* System header to define __stub macros and hopefully few prototypes,
3191 which can conflict with char $ac_func(); below. */
3193 /* Override any gcc2 internal prototype to avoid an error. */
3194 /* We use char because int might match the return type of a gcc2
3195 builtin and then its argument prototype would still apply. */
3200 /* The GNU C library defines this for functions which it implements
3201 to always fail with ENOSYS. Some functions are actually named
3202 something starting with __ and the normal name is an alias. */
3203 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3211 if { (eval echo configure:3212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3213 eval "ac_cv_func_$ac_func=yes"
3215 echo "configure: failed program was:" >&5
3216 cat conftest.$ac_ext >&5
3218 eval "ac_cv_func_$ac_func=no"
3223 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3224 echo "$ac_t""yes" 1>&6
3225 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3226 cat >> confdefs.h <<EOF
3227 #define $ac_tr_func 1
3231 echo "$ac_t""no" 1>&6
3235 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3236 set dummy gmsgfmt; ac_word=$2
3237 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3238 echo "configure:3239: checking for $ac_word" >&5
3239 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3240 echo $ac_n "(cached) $ac_c" 1>&6
3244 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3247 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3250 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3251 for ac_dir in $PATH; do
3252 test -z "$ac_dir" && ac_dir=.
3253 if test -f $ac_dir/$ac_word; then
3254 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3259 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3263 GMSGFMT="$ac_cv_path_GMSGFMT"
3264 if test -n "$GMSGFMT"; then
3265 echo "$ac_t""$GMSGFMT" 1>&6
3267 echo "$ac_t""no" 1>&6
3270 # Extract the first word of "xgettext", so it can be a program name with args.
3271 set dummy xgettext; ac_word=$2
3272 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3273 echo "configure:3274: checking for $ac_word" >&5
3274 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3275 echo $ac_n "(cached) $ac_c" 1>&6
3279 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3282 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3283 for ac_dir in $PATH; do
3284 test -z "$ac_dir" && ac_dir=.
3285 if test -f $ac_dir/$ac_word; then
3286 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3287 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3293 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3297 XGETTEXT="$ac_cv_path_XGETTEXT"
3298 if test -n "$XGETTEXT"; then
3299 echo "$ac_t""$XGETTEXT" 1>&6
3301 echo "$ac_t""no" 1>&6
3304 cat > conftest.$ac_ext <<EOF
3305 #line 3306 "configure"
3306 #include "confdefs.h"
3309 extern int _nl_msg_cat_cntr;
3310 return _nl_msg_cat_cntr
3313 if { (eval echo configure:3314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3318 echo "configure: failed program was:" >&5
3319 cat conftest.$ac_ext >&5
3330 echo "$ac_t""no" 1>&6
3335 if test "$CATOBJEXT" = "NONE"; then
3336 nls_cv_use_gnu_gettext=yes
3340 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3341 INTLOBJS="\$(GETTOBJS)"
3342 # Extract the first word of "msgfmt", so it can be a program name with args.
3343 set dummy msgfmt; ac_word=$2
3344 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3345 echo "configure:3346: checking for $ac_word" >&5
3346 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3347 echo $ac_n "(cached) $ac_c" 1>&6
3351 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3354 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3355 for ac_dir in $PATH; do
3356 test -z "$ac_dir" && ac_dir=.
3357 if test -f $ac_dir/$ac_word; then
3358 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3359 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3365 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
3369 MSGFMT="$ac_cv_path_MSGFMT"
3370 if test -n "$MSGFMT"; then
3371 echo "$ac_t""$MSGFMT" 1>&6
3373 echo "$ac_t""no" 1>&6
3376 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3377 set dummy gmsgfmt; ac_word=$2
3378 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3379 echo "configure:3380: checking for $ac_word" >&5
3380 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3381 echo $ac_n "(cached) $ac_c" 1>&6
3385 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3388 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3391 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3392 for ac_dir in $PATH; do
3393 test -z "$ac_dir" && ac_dir=.
3394 if test -f $ac_dir/$ac_word; then
3395 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3400 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3404 GMSGFMT="$ac_cv_path_GMSGFMT"
3405 if test -n "$GMSGFMT"; then
3406 echo "$ac_t""$GMSGFMT" 1>&6
3408 echo "$ac_t""no" 1>&6
3411 # Extract the first word of "xgettext", so it can be a program name with args.
3412 set dummy xgettext; ac_word=$2
3413 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3414 echo "configure:3415: checking for $ac_word" >&5
3415 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3416 echo $ac_n "(cached) $ac_c" 1>&6
3420 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3423 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3424 for ac_dir in $PATH; do
3425 test -z "$ac_dir" && ac_dir=.
3426 if test -f $ac_dir/$ac_word; then
3427 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3428 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3434 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3438 XGETTEXT="$ac_cv_path_XGETTEXT"
3439 if test -n "$XGETTEXT"; then
3440 echo "$ac_t""$XGETTEXT" 1>&6
3442 echo "$ac_t""no" 1>&6
3446 USE_INCLUDED_LIBINTL=yes
3450 INTLDEPS='$(top_builddir)/../intl/libintl.a'
3452 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3453 nls_cv_header_intl=libintl.h
3454 nls_cv_header_libgt=libgettext.h
3457 if test "$XGETTEXT" != ":"; then
3458 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
3461 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
3466 # We need to process the po/ directory.
3470 nls_cv_header_intl=libintl.h
3471 nls_cv_header_libgt=libgettext.h
3474 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3475 # because some of the sources are only built for this goal.
3476 if test "$PACKAGE" = gettext; then
3478 USE_INCLUDED_LIBINTL=yes
3481 for lang in $ALL_LINGUAS; do
3482 GMOFILES="$GMOFILES $lang.gmo"
3483 POFILES="$POFILES $lang.po"
3499 if test "x$CATOBJEXT" != "x"; then
3500 if test "x$ALL_LINGUAS" = "x"; then
3503 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3504 echo "configure:3505: checking for catalogs to be installed" >&5
3506 for lang in ${LINGUAS=$ALL_LINGUAS}; do
3507 case "$ALL_LINGUAS" in
3508 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
3511 LINGUAS=$NEW_LINGUAS
3512 echo "$ac_t""$LINGUAS" 1>&6
3515 if test -n "$LINGUAS"; then
3516 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3520 if test $ac_cv_header_locale_h = yes; then
3521 INCLUDE_LOCALE_H="#include <locale.h>"
3524 /* The system does not provide the header <locale.h>. Take care yourself. */"
3528 if test -f $srcdir/po2tbl.sed.in; then
3529 if test "$CATOBJEXT" = ".cat"; then
3530 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3531 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
3532 echo "configure:3533: checking for linux/version.h" >&5
3533 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3534 echo $ac_n "(cached) $ac_c" 1>&6
3536 cat > conftest.$ac_ext <<EOF
3537 #line 3538 "configure"
3538 #include "confdefs.h"
3539 #include <linux/version.h>
3541 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3542 { (eval echo configure:3543: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3543 ac_err=`grep -v '^ *+' conftest.out`
3544 if test -z "$ac_err"; then
3546 eval "ac_cv_header_$ac_safe=yes"
3549 echo "configure: failed program was:" >&5
3550 cat conftest.$ac_ext >&5
3552 eval "ac_cv_header_$ac_safe=no"
3556 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3557 echo "$ac_t""yes" 1>&6
3560 echo "$ac_t""no" 1>&6
3565 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
3567 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3568 $srcdir/po2tbl.sed.in > po2tbl.sed
3571 if test "$PACKAGE" = "gettext"; then
3581 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
3587 if test -d $srcdir/po; then
3588 test -d po || mkdir po
3589 if test "x$srcdir" != "x."; then
3590 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3591 posrcprefix="$srcdir/"
3593 posrcprefix="../$srcdir/"
3599 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3600 < $srcdir/po/POTFILES.in > po/POTFILES
3604 # Permit host specific settings.
3605 . ${srcdir}/configure.host
3609 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3612 BFD_HOST_64BIT_LONG=0
3613 BFD_HOST_64_BIT_DEFINED=0
3616 if test "x${HOST_64BIT_TYPE}" = "xlong"; then
3617 BFD_HOST_64BIT_LONG=1
3618 elif test "x${HOST_64BIT_TYPE}" != "x"; then
3619 BFD_HOST_64_BIT_DEFINED=1
3620 BFD_HOST_64_BIT=${HOST_64BIT_TYPE}
3621 BFD_HOST_U_64_BIT=${HOST_U_64BIT_TYPE}
3628 # Put a plausible default for CC_FOR_BUILD in Makefile.
3629 if test -z "$CC_FOR_BUILD"; then
3630 if test "x$cross_compiling" = "xno"; then
3631 CC_FOR_BUILD='$(CC)'
3637 # Also set EXEEXT_FOR_BUILD.
3638 if test "x$cross_compiling" = "xno"; then
3639 EXEEXT_FOR_BUILD='$(EXEEXT)'
3641 echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
3642 echo "configure:3643: checking for build system executable suffix" >&5
3643 if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
3644 echo $ac_n "(cached) $ac_c" 1>&6
3646 cat > ac_c_test.c << 'EOF'
3648 /* Nothing needed here */
3651 ${CC_FOR_BUILD} -o ac_c_test am_c_test.c 1>&5 2>&5
3652 bfd_cv_build_exeext=`echo ac_c_test.* | grep -v ac_c_test.c | sed -e s/ac_c_test//`
3654 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
3657 echo "$ac_t""$bfd_cv_build_exeext" 1>&6
3659 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
3663 for ac_hdr in stddef.h string.h strings.h stdlib.h time.h unistd.h
3665 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3666 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3667 echo "configure:3668: checking for $ac_hdr" >&5
3668 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3669 echo $ac_n "(cached) $ac_c" 1>&6
3671 cat > conftest.$ac_ext <<EOF
3672 #line 3673 "configure"
3673 #include "confdefs.h"
3676 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3677 { (eval echo configure:3678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3678 ac_err=`grep -v '^ *+' conftest.out`
3679 if test -z "$ac_err"; then
3681 eval "ac_cv_header_$ac_safe=yes"
3684 echo "configure: failed program was:" >&5
3685 cat conftest.$ac_ext >&5
3687 eval "ac_cv_header_$ac_safe=no"
3691 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3692 echo "$ac_t""yes" 1>&6
3693 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3694 cat >> confdefs.h <<EOF
3695 #define $ac_tr_hdr 1
3699 echo "$ac_t""no" 1>&6
3703 for ac_hdr in fcntl.h sys/file.h sys/time.h
3705 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3706 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3707 echo "configure:3708: checking for $ac_hdr" >&5
3708 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3709 echo $ac_n "(cached) $ac_c" 1>&6
3711 cat > conftest.$ac_ext <<EOF
3712 #line 3713 "configure"
3713 #include "confdefs.h"
3716 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3717 { (eval echo configure:3718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3718 ac_err=`grep -v '^ *+' conftest.out`
3719 if test -z "$ac_err"; then
3721 eval "ac_cv_header_$ac_safe=yes"
3724 echo "configure: failed program was:" >&5
3725 cat conftest.$ac_ext >&5
3727 eval "ac_cv_header_$ac_safe=no"
3731 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3732 echo "$ac_t""yes" 1>&6
3733 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3734 cat >> confdefs.h <<EOF
3735 #define $ac_tr_hdr 1
3739 echo "$ac_t""no" 1>&6
3743 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3744 echo "configure:3745: checking whether time.h and sys/time.h may both be included" >&5
3745 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3746 echo $ac_n "(cached) $ac_c" 1>&6
3748 cat > conftest.$ac_ext <<EOF
3749 #line 3750 "configure"
3750 #include "confdefs.h"
3751 #include <sys/types.h>
3752 #include <sys/time.h>
3758 if { (eval echo configure:3759: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3760 ac_cv_header_time=yes
3762 echo "configure: failed program was:" >&5
3763 cat conftest.$ac_ext >&5
3765 ac_cv_header_time=no
3770 echo "$ac_t""$ac_cv_header_time" 1>&6
3771 if test $ac_cv_header_time = yes; then
3772 cat >> confdefs.h <<\EOF
3773 #define TIME_WITH_SYS_TIME 1
3778 for ac_func in fcntl getpagesize setitimer sysconf fdopen
3780 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3781 echo "configure:3782: checking for $ac_func" >&5
3782 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3783 echo $ac_n "(cached) $ac_c" 1>&6
3785 cat > conftest.$ac_ext <<EOF
3786 #line 3787 "configure"
3787 #include "confdefs.h"
3788 /* System header to define __stub macros and hopefully few prototypes,
3789 which can conflict with char $ac_func(); below. */
3791 /* Override any gcc2 internal prototype to avoid an error. */
3792 /* We use char because int might match the return type of a gcc2
3793 builtin and then its argument prototype would still apply. */
3798 /* The GNU C library defines this for functions which it implements
3799 to always fail with ENOSYS. Some functions are actually named
3800 something starting with __ and the normal name is an alias. */
3801 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3809 if { (eval echo configure:3810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3811 eval "ac_cv_func_$ac_func=yes"
3813 echo "configure: failed program was:" >&5
3814 cat conftest.$ac_ext >&5
3816 eval "ac_cv_func_$ac_func=no"
3821 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3822 echo "$ac_t""yes" 1>&6
3823 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3824 cat >> confdefs.h <<EOF
3825 #define $ac_tr_func 1
3829 echo "$ac_t""no" 1>&6
3836 i[345]86-*-msdos* | i[345]86-*-go32* | i[345]86-*-mingw32* | *-*-cygwin32* | *-*-windows)
3837 cat >> confdefs.h <<\EOF
3838 #define USE_BINARY_FOPEN 1
3843 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
3844 echo "configure:3845: checking whether strstr must be declared" >&5
3845 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
3846 echo $ac_n "(cached) $ac_c" 1>&6
3848 cat > conftest.$ac_ext <<EOF
3849 #line 3850 "configure"
3850 #include "confdefs.h"
3853 #ifdef HAVE_STRING_H
3856 #ifdef HAVE_STRINGS_H
3857 #include <strings.h>
3860 #ifdef HAVE_STDLIB_H
3863 #ifdef HAVE_UNISTD_H
3867 char *(*pfn) = (char *(*)) strstr
3870 if { (eval echo configure:3871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3872 bfd_cv_decl_needed_strstr=no
3874 echo "configure: failed program was:" >&5
3875 cat conftest.$ac_ext >&5
3877 bfd_cv_decl_needed_strstr=yes
3882 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
3883 if test $bfd_cv_decl_needed_strstr = yes; then
3884 bfd_tr_decl=NEED_DECLARATION_`echo strstr | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3885 cat >> confdefs.h <<EOF
3886 #define $bfd_tr_decl 1
3891 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
3892 echo "configure:3893: checking whether malloc must be declared" >&5
3893 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
3894 echo $ac_n "(cached) $ac_c" 1>&6
3896 cat > conftest.$ac_ext <<EOF
3897 #line 3898 "configure"
3898 #include "confdefs.h"
3901 #ifdef HAVE_STRING_H
3904 #ifdef HAVE_STRINGS_H
3905 #include <strings.h>
3908 #ifdef HAVE_STDLIB_H
3911 #ifdef HAVE_UNISTD_H
3915 char *(*pfn) = (char *(*)) malloc
3918 if { (eval echo configure:3919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3920 bfd_cv_decl_needed_malloc=no
3922 echo "configure: failed program was:" >&5
3923 cat conftest.$ac_ext >&5
3925 bfd_cv_decl_needed_malloc=yes
3930 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
3931 if test $bfd_cv_decl_needed_malloc = yes; then
3932 bfd_tr_decl=NEED_DECLARATION_`echo malloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3933 cat >> confdefs.h <<EOF
3934 #define $bfd_tr_decl 1
3939 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
3940 echo "configure:3941: checking whether realloc must be declared" >&5
3941 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
3942 echo $ac_n "(cached) $ac_c" 1>&6
3944 cat > conftest.$ac_ext <<EOF
3945 #line 3946 "configure"
3946 #include "confdefs.h"
3949 #ifdef HAVE_STRING_H
3952 #ifdef HAVE_STRINGS_H
3953 #include <strings.h>
3956 #ifdef HAVE_STDLIB_H
3959 #ifdef HAVE_UNISTD_H
3963 char *(*pfn) = (char *(*)) realloc
3966 if { (eval echo configure:3967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3968 bfd_cv_decl_needed_realloc=no
3970 echo "configure: failed program was:" >&5
3971 cat conftest.$ac_ext >&5
3973 bfd_cv_decl_needed_realloc=yes
3978 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
3979 if test $bfd_cv_decl_needed_realloc = yes; then
3980 bfd_tr_decl=NEED_DECLARATION_`echo realloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3981 cat >> confdefs.h <<EOF
3982 #define $bfd_tr_decl 1
3987 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
3988 echo "configure:3989: checking whether free must be declared" >&5
3989 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
3990 echo $ac_n "(cached) $ac_c" 1>&6
3992 cat > conftest.$ac_ext <<EOF
3993 #line 3994 "configure"
3994 #include "confdefs.h"
3997 #ifdef HAVE_STRING_H
4000 #ifdef HAVE_STRINGS_H
4001 #include <strings.h>
4004 #ifdef HAVE_STDLIB_H
4007 #ifdef HAVE_UNISTD_H
4011 char *(*pfn) = (char *(*)) free
4014 if { (eval echo configure:4015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4016 bfd_cv_decl_needed_free=no
4018 echo "configure: failed program was:" >&5
4019 cat conftest.$ac_ext >&5
4021 bfd_cv_decl_needed_free=yes
4026 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
4027 if test $bfd_cv_decl_needed_free = yes; then
4028 bfd_tr_decl=NEED_DECLARATION_`echo free | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4029 cat >> confdefs.h <<EOF
4030 #define $bfd_tr_decl 1
4035 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
4036 echo "configure:4037: checking whether getenv must be declared" >&5
4037 if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
4038 echo $ac_n "(cached) $ac_c" 1>&6
4040 cat > conftest.$ac_ext <<EOF
4041 #line 4042 "configure"
4042 #include "confdefs.h"
4045 #ifdef HAVE_STRING_H
4048 #ifdef HAVE_STRINGS_H
4049 #include <strings.h>
4052 #ifdef HAVE_STDLIB_H
4055 #ifdef HAVE_UNISTD_H
4059 char *(*pfn) = (char *(*)) getenv
4062 if { (eval echo configure:4063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4064 bfd_cv_decl_needed_getenv=no
4066 echo "configure: failed program was:" >&5
4067 cat conftest.$ac_ext >&5
4069 bfd_cv_decl_needed_getenv=yes
4074 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
4075 if test $bfd_cv_decl_needed_getenv = yes; then
4076 bfd_tr_decl=NEED_DECLARATION_`echo getenv | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4077 cat >> confdefs.h <<EOF
4078 #define $bfd_tr_decl 1
4084 # If we are configured native, pick a core file support file.
4087 if test "${target}" = "${host}"; then
4089 alpha*-*-linux-gnu*)
4090 COREFILE=trad-core.lo
4091 cat >> confdefs.h <<\EOF
4092 #define TRAD_HEADER "hosts/alphalinux.h"
4096 alpha*-*-netbsd*) COREFILE=netbsd-core.lo ;;
4097 alpha*-*-*) COREFILE=osf-core.lo ;;
4098 arm-*-riscix) COREFILE=trad-core.lo ;;
4099 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
4100 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
4101 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
4102 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
4103 i[3456]86-sequent-bsd*)
4104 COREFILE=trad-core.lo;
4105 cat >> confdefs.h <<\EOF
4106 #define TRAD_HEADER "hosts/symmetry.h"
4110 i[3456]86-sequent-sysv4*) ;;
4111 i[3456]86-sequent-sysv*)
4112 COREFILE=trad-core.lo
4113 cat >> confdefs.h <<\EOF
4114 #define TRAD_HEADER "hosts/symmetry.h"
4118 i[3456]86-*-bsd* | i[3456]86-*-freebsd*)
4119 COREFILE=trad-core.lo
4120 cat >> confdefs.h <<\EOF
4121 #define TRAD_HEADER "hosts/i386bsd.h"
4125 i[3456]86-*-netbsd* | i[3456]86-*-openbsd*)
4126 COREFILE=netbsd-core.lo
4128 i[3456]86-esix-sysv3*)
4129 COREFILE=trad-core.lo
4130 cat >> confdefs.h <<\EOF
4131 #define TRAD_HEADER "hosts/esix.h"
4135 i[3456]86-*-sco* | i[3456]86-*-isc*)
4136 COREFILE=trad-core.lo
4137 cat >> confdefs.h <<\EOF
4138 #define TRAD_HEADER "hosts/i386sco.h"
4143 COREFILE=trad-core.lo
4144 cat >> confdefs.h <<\EOF
4145 #define TRAD_HEADER "hosts/i386mach3.h"
4149 i[3456]86-*-linux-gnu*)
4150 COREFILE=trad-core.lo
4151 cat >> confdefs.h <<\EOF
4152 #define TRAD_HEADER "hosts/i386linux.h"
4156 i[3456]86-*-isc*) COREFILE=trad-core.lo ;;
4157 i[3456]86-*-aix*) COREFILE=aix386-core.lo ;;
4158 i860-*-mach3* | i860-*-osf1*)
4159 COREFILE=trad-core.lo
4160 cat >> confdefs.h <<\EOF
4161 #define TRAD_HEADER "hosts/i860mach3.h"
4166 COREFILE=trad-core.lo
4167 cat >> confdefs.h <<\EOF
4168 #define TRAD_HEADER "hosts/mipsbsd.h"
4173 COREFILE=trad-core.lo
4174 cat >> confdefs.h <<\EOF
4175 #define TRAD_HEADER "hosts/mipsmach3.h"
4179 mips-*-netbsd* | mips*-*-openbsd*)
4180 COREFILE=netbsd-core.lo
4183 COREFILE=trad-core.lo
4184 cat >> confdefs.h <<\EOF
4185 #define TRAD_HEADER "hosts/decstation.h"
4189 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
4190 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
4191 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
4193 COREFILE=trad-core.lo
4194 cat >> confdefs.h <<\EOF
4195 #define TRAD_HEADER "hosts/mipsmach3.h"
4200 mips-*-sysv* | mips-*-riscos*)
4201 COREFILE=trad-core.lo
4202 cat >> confdefs.h <<\EOF
4203 #define TRAD_HEADER "hosts/riscos.h"
4208 COREFILE=trad-core.lo
4209 cat >> confdefs.h <<\EOF
4210 #define TRAD_HEADER "hosts/news-mips.h"
4215 COREFILE=trad-core.lo
4216 cat >> confdefs.h <<\EOF
4217 #define TRAD_HEADER "hosts/dpx2.h"
4221 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
4223 COREFILE=trad-core.lo
4224 cat >> confdefs.h <<\EOF
4225 #define TRAD_HEADER "hosts/hp300bsd.h"
4230 COREFILE=trad-core.lo
4231 cat >> confdefs.h <<\EOF
4232 #define TRAD_HEADER "hosts/m68klinux.h"
4236 m68*-motorola-sysv*)
4237 COREFILE=trad-core.lo
4238 cat >> confdefs.h <<\EOF
4239 #define TRAD_HEADER "hosts/delta68.h"
4244 COREFILE=trad-core.lo
4245 cat >> confdefs.h <<\EOF
4246 #define TRAD_HEADER "hosts/news.h"
4250 m68*-*-netbsd* | m68*-*-openbsd*)
4251 COREFILE=netbsd-core.lo
4254 COREFILE=trad-core.lo
4255 cat >> confdefs.h <<\EOF
4256 #define TRAD_HEADER "hosts/m68kaux.h"
4261 m88*-motorola-sysv*) COREFILE=ptrace-core.lo ;;
4263 COREFILE=trad-core.lo
4264 cat >> confdefs.h <<\EOF
4265 #define TRAD_HEADER "hosts/m88kmach3.h"
4270 COREFILE=trad-core.lo
4271 cat >> confdefs.h <<\EOF
4272 #define TRAD_HEADER "hosts/pc532mach.h"
4276 ns32k-*-netbsd* | ns32k-*-openbsd*)
4277 COREFILE=netbsd-core.lo
4279 rs6000-*-lynx*) COREFILE=lynx-core.lo ;;
4280 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
4281 rs6000-*-*) COREFILE=rs6000-core.lo ;;
4282 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
4283 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
4284 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
4286 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
4287 sparc-*-netbsd* | sparc-*-openbsd*)
4288 COREFILE=netbsd-core.lo
4291 COREFILE=trad-core.lo
4292 cat >> confdefs.h <<\EOF
4293 #define TRAD_HEADER "hosts/tahoe.h"
4298 COREFILE=trad-core.lo
4299 cat >> confdefs.h <<\EOF
4300 #define TRAD_HEADER "hosts/vaxult2.h"
4305 COREFILE=trad-core.lo
4306 cat >> confdefs.h <<\EOF
4307 #define TRAD_HEADER "hosts/vaxult2.h"
4312 COREFILE=trad-core.lo
4313 cat >> confdefs.h <<\EOF
4314 #define TRAD_HEADER "hosts/vaxbsd.h"
4321 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
4322 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
4323 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
4324 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
4325 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
4326 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
4327 osf-core.lo) COREFLAG=-DOSF_CORE ;;
4328 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
4329 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
4330 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
4333 # The ELF code uses the native <sys/procfs.h> to handle core files.
4334 # Define HAVE_SYS_PROCFS_H if the file exists and defines
4336 echo $ac_n "checking for sys/procfs.h""... $ac_c" 1>&6
4337 echo "configure:4338: checking for sys/procfs.h" >&5
4338 if eval "test \"`echo '$''{'bfd_cv_header_sys_procfs_h'+set}'`\" = set"; then
4339 echo $ac_n "(cached) $ac_c" 1>&6
4341 cat > conftest.$ac_ext <<EOF
4342 #line 4343 "configure"
4343 #include "confdefs.h"
4344 #include <sys/procfs.h>
4349 if { (eval echo configure:4350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4351 bfd_cv_header_sys_procfs_h=yes
4353 echo "configure: failed program was:" >&5
4354 cat conftest.$ac_ext >&5
4356 bfd_cv_header_sys_procfs_h=no
4361 echo "$ac_t""$bfd_cv_header_sys_procfs_h" 1>&6
4362 if test $bfd_cv_header_sys_procfs_h = yes; then
4363 cat >> confdefs.h <<\EOF
4364 #define HAVE_SYS_PROCFS_H 1
4373 # Horrible hacks to build DLLs on Windows.
4378 if test "$enable_shared" = "yes"; then
4379 WIN32LDFLAGS="-no-undefined"
4380 WIN32LIBADD="-L`pwd`/../libiberty -liberty -lcygwin -lkernel32"
4389 # Canonicalize the secondary target names.
4390 if test -n "$enable_targets" ; then
4391 for targ in `echo $enable_targets | sed 's/,/ /g'`
4393 result=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $targ 2>/dev/null`
4394 if test -n "$result" ; then
4395 canon_targets="$canon_targets $result"
4397 # Allow targets that config.sub doesn't recognize, like "all".
4398 canon_targets="$canon_targets $targ"
4408 for targ in $target $canon_targets
4410 if test "x$targ" = "xall"; then
4413 . $srcdir/config.bfd
4414 if test "x$targ" = "x$target"; then
4417 selvecs="$selvecs $targ_defvec $targ_selvecs"
4418 selarchs="$selarchs $targ_archs"
4419 TDEFINES="$TDEFINES $targ_cflags"
4424 # This processing still needs to be done if we're to decide properly whether
4425 # 64-bit support needs to be compiled in. Currently, it will be included if
4426 # the default or any other explicitly requested target requires it; it
4427 # will not be included on a 32-bit host if no 64-bit target is requested, and
4428 # no "--with-64-bit-bfd" option is given, even if "--with-targets=all" is
4431 # uniq the default and selected vectors in all the configured targets.
4433 for i in $selvecs ; do
4441 # start-sanitize-sky
4442 # dvp is really mips, but we need to distinguish it from mips for opcodes
4443 selarchs=`echo $selarchs | sed -e s/dvp/mips/g`
4446 # uniq the architectures in all the configured targets.
4448 for i in $selarchs ; do
4456 # Target backend .o files.
4459 elf="elf.lo elflink.lo dwarf2.lo"
4464 # This list is alphabetized to make it easy to compare
4465 # with the two vector lists in targets.c.
4466 a29kcoff_big_vec) tb="$tb coff-a29k.lo cofflink.lo" ;;
4467 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
4468 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
4469 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
4470 armpe_little_vec) tb="$tb pe-arm.lo coff-arm.lo cofflink.lo " ;;
4471 armpe_big_vec) tb="$tb pe-arm.lo coff-arm.lo cofflink.lo " ;;
4472 armpei_little_vec) tb="$tb pei-arm.lo cofflink.lo " ;;
4473 armpei_big_vec) tb="$tb pei-arm.lo cofflink.lo " ;;
4474 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
4475 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
4476 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
4477 aout_mips_big_vec) tb="$tb mipsbsd.lo aout32.lo" ;;
4478 aout_mips_little_vec) tb="$tb mipsbsd.lo aout32.lo" ;;
4479 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
4480 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
4481 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
4482 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"
4484 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
4485 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
4486 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
4487 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
4488 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"
4490 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
4491 # start-sanitize-d30v
4492 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
4494 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
4495 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;;
4496 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
4497 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
4498 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
4499 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"
4501 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
4502 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
4503 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
4504 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
4505 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
4506 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
4507 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
4508 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
4509 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
4510 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elf32.lo $elf" ;;
4511 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
4512 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"
4514 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"
4516 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elf64.lo $elf"
4518 cisco_core_vec) tb="$tb cisco-core.lo" ;;
4519 demo_64_vec) tb="$tb demo64.lo aout64.lo"
4521 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
4522 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
4523 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
4524 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"
4526 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
4527 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
4528 evax_alpha_vec) tb="$tb evax-alpha.lo evax-emh.lo evax-egsd.lo evax-etir.lo evax-misc.lo"
4530 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
4531 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
4532 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
4533 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
4534 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
4535 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
4536 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
4537 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
4538 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
4539 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
4540 i386msdos_vec) tb="$tb i386msdos.lo" ;;
4541 i386pe_vec) tb="$tb pe-i386.lo cofflink.lo " ;;
4542 i386pei_vec) tb="$tb pei-i386.lo cofflink.lo" ;;
4543 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
4544 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
4545 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
4546 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
4547 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
4548 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
4549 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
4550 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
4551 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
4552 ieee_vec) tb="$tb ieee.lo" ;;
4553 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
4554 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
4555 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
4556 m68klynx_aout_vec) tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
4557 m68klynx_coff_vec) tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
4558 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
4559 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
4560 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
4561 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
4562 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
4563 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
4564 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
4565 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
4566 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"
4568 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
4569 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
4570 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
4571 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
4572 pmac_xcoff_vec) tb="$tb coff-pmac.lo xcofflink.lo" ;;
4573 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
4574 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo cofflink.lo" ;;
4575 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo cofflink.lo" ;;
4576 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo cofflink.lo" ;;
4577 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo cofflink.lo" ;;
4578 ppcboot_vec) tb="$tb ppcboot.lo" ;;
4579 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
4580 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
4581 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
4582 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
4583 som_vec) tb="$tb som.lo" ;;
4584 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
4585 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
4586 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
4587 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
4588 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
4589 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
4590 srec_vec) tb="$tb srec.lo" ;;
4591 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
4592 symbolsrec_vec) tb="$tb srec.lo" ;;
4593 tekhex_vec) tb="$tb tekhex.lo" ;;
4594 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
4595 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
4596 # start-sanitize-tic80
4597 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
4598 # end-sanitize-tic80
4599 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
4600 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo" ;;
4601 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
4602 versados_vec) tb="$tb versados.lo" ;;
4605 *) { echo "configure: error: *** unknown target vector $vec" 1>&2; exit 1; } ;;
4609 # Target architecture .o files.
4610 # A couple of CPUs use shorter file names to avoid problems on DOS
4612 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
4614 # Weed out duplicate .o files.
4636 if test x${all_targets} = xtrue ; then
4637 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
4638 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
4642 else # all_targets is true
4643 # Only set these if they will be nonempty, for the clever echo.
4645 test -n "$selvecs" &&
4646 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
4647 test -n "$selvecs" &&
4648 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
4649 test -n "$selarchs" &&
4650 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
4651 fi # all_targets is true
4653 case ${host64}-${target64}-${want64} in
4656 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
4657 if test -z "$GCC" && test "$BFD_HOST_64BIT_LONG" = "0" && test "$BFD_HOST_64_BIT_DEFINED" = "0"; then
4658 echo "configure: warning: You have requested a 64 bit BFD configuration, but" 1>&2
4659 echo "configure: warning: your compiler may not have a 64 bit integral type" 1>&2
4664 all_backends='$(BFD32_BACKENDS)'
4674 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
4675 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
4676 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
4677 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
4680 for ac_hdr in unistd.h
4682 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4683 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4684 echo "configure:4685: checking for $ac_hdr" >&5
4685 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4686 echo $ac_n "(cached) $ac_c" 1>&6
4688 cat > conftest.$ac_ext <<EOF
4689 #line 4690 "configure"
4690 #include "confdefs.h"
4693 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4694 { (eval echo configure:4695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4695 ac_err=`grep -v '^ *+' conftest.out`
4696 if test -z "$ac_err"; then
4698 eval "ac_cv_header_$ac_safe=yes"
4701 echo "configure: failed program was:" >&5
4702 cat conftest.$ac_ext >&5
4704 eval "ac_cv_header_$ac_safe=no"
4708 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4709 echo "$ac_t""yes" 1>&6
4710 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4711 cat >> confdefs.h <<EOF
4712 #define $ac_tr_hdr 1
4716 echo "$ac_t""no" 1>&6
4720 for ac_func in getpagesize
4722 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4723 echo "configure:4724: checking for $ac_func" >&5
4724 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+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"
4730 /* System header to define __stub macros and hopefully few prototypes,
4731 which can conflict with char $ac_func(); below. */
4733 /* Override any gcc2 internal prototype to avoid an error. */
4734 /* We use char because int might match the return type of a gcc2
4735 builtin and then its argument prototype would still apply. */
4740 /* The GNU C library defines this for functions which it implements
4741 to always fail with ENOSYS. Some functions are actually named
4742 something starting with __ and the normal name is an alias. */
4743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4751 if { (eval echo configure:4752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4753 eval "ac_cv_func_$ac_func=yes"
4755 echo "configure: failed program was:" >&5
4756 cat conftest.$ac_ext >&5
4758 eval "ac_cv_func_$ac_func=no"
4763 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4764 echo "$ac_t""yes" 1>&6
4765 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4766 cat >> confdefs.h <<EOF
4767 #define $ac_tr_func 1
4771 echo "$ac_t""no" 1>&6
4775 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
4776 echo "configure:4777: checking for working mmap" >&5
4777 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
4778 echo $ac_n "(cached) $ac_c" 1>&6
4780 if test "$cross_compiling" = yes; then
4781 ac_cv_func_mmap_fixed_mapped=no
4783 cat > conftest.$ac_ext <<EOF
4784 #line 4785 "configure"
4785 #include "confdefs.h"
4787 /* Thanks to Mike Haertel and Jim Avera for this test.
4788 Here is a matrix of mmap possibilities:
4789 mmap private not fixed
4790 mmap private fixed at somewhere currently unmapped
4791 mmap private fixed at somewhere already mapped
4792 mmap shared not fixed
4793 mmap shared fixed at somewhere currently unmapped
4794 mmap shared fixed at somewhere already mapped
4795 For private mappings, we should verify that changes cannot be read()
4796 back from the file, nor mmap's back from the file at a different
4797 address. (There have been systems where private was not correctly
4798 implemented like the infamous i386 svr4.0, and systems where the
4799 VM page cache was not coherent with the filesystem buffer cache
4800 like early versions of FreeBSD and possibly contemporary NetBSD.)
4801 For shared mappings, we should conversely verify that changes get
4802 propogated back to all the places they're supposed to be.
4804 Grep wants private fixed already mapped.
4805 The main things grep needs to know about mmap are:
4806 * does it exist and is it safe to write into the mmap'd area
4807 * how to use it (BSD variants) */
4808 #include <sys/types.h>
4810 #include <sys/mman.h>
4812 /* This mess was copied from the GNU getpagesize.h. */
4813 #ifndef HAVE_GETPAGESIZE
4814 # ifdef HAVE_UNISTD_H
4815 # include <unistd.h>
4818 /* Assume that all systems that can run configure have sys/param.h. */
4819 # ifndef HAVE_SYS_PARAM_H
4820 # define HAVE_SYS_PARAM_H 1
4823 # ifdef _SC_PAGESIZE
4824 # define getpagesize() sysconf(_SC_PAGESIZE)
4825 # else /* no _SC_PAGESIZE */
4826 # ifdef HAVE_SYS_PARAM_H
4827 # include <sys/param.h>
4828 # ifdef EXEC_PAGESIZE
4829 # define getpagesize() EXEC_PAGESIZE
4830 # else /* no EXEC_PAGESIZE */
4832 # define getpagesize() NBPG * CLSIZE
4835 # endif /* no CLSIZE */
4836 # else /* no NBPG */
4838 # define getpagesize() NBPC
4839 # else /* no NBPC */
4841 # define getpagesize() PAGESIZE
4842 # endif /* PAGESIZE */
4843 # endif /* no NBPC */
4844 # endif /* no NBPG */
4845 # endif /* no EXEC_PAGESIZE */
4846 # else /* no HAVE_SYS_PARAM_H */
4847 # define getpagesize() 8192 /* punt totally */
4848 # endif /* no HAVE_SYS_PARAM_H */
4849 # endif /* no _SC_PAGESIZE */
4851 #endif /* no HAVE_GETPAGESIZE */
4854 extern "C" { void *malloc(unsigned); }
4862 char *data, *data2, *data3;
4866 pagesize = getpagesize();
4869 * First, make a file with some known garbage in it.
4871 data = malloc(pagesize);
4874 for (i = 0; i < pagesize; ++i)
4875 *(data + i) = rand();
4877 fd = creat("conftestmmap", 0600);
4880 if (write(fd, data, pagesize) != pagesize)
4885 * Next, try to mmap the file at a fixed address which
4886 * already has something else allocated at it. If we can,
4887 * also make sure that we see the same garbage.
4889 fd = open("conftestmmap", O_RDWR);
4892 data2 = malloc(2 * pagesize);
4895 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
4896 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
4897 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4899 for (i = 0; i < pagesize; ++i)
4900 if (*(data + i) != *(data2 + i))
4904 * Finally, make sure that changes to the mapped area
4905 * do not percolate back to the file as seen by read().
4906 * (This is a bug on some variants of i386 svr4.0.)
4908 for (i = 0; i < pagesize; ++i)
4909 *(data2 + i) = *(data2 + i) + 1;
4910 data3 = malloc(pagesize);
4913 if (read(fd, data3, pagesize) != pagesize)
4915 for (i = 0; i < pagesize; ++i)
4916 if (*(data + i) != *(data3 + i))
4919 unlink("conftestmmap");
4924 if { (eval echo configure:4925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4926 ac_cv_func_mmap_fixed_mapped=yes
4928 echo "configure: failed program was:" >&5
4929 cat conftest.$ac_ext >&5
4931 ac_cv_func_mmap_fixed_mapped=no
4938 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
4939 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4940 cat >> confdefs.h <<\EOF
4946 for ac_func in madvise mprotect
4948 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4949 echo "configure:4950: checking for $ac_func" >&5
4950 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4951 echo $ac_n "(cached) $ac_c" 1>&6
4953 cat > conftest.$ac_ext <<EOF
4954 #line 4955 "configure"
4955 #include "confdefs.h"
4956 /* System header to define __stub macros and hopefully few prototypes,
4957 which can conflict with char $ac_func(); below. */
4959 /* Override any gcc2 internal prototype to avoid an error. */
4960 /* We use char because int might match the return type of a gcc2
4961 builtin and then its argument prototype would still apply. */
4966 /* The GNU C library defines this for functions which it implements
4967 to always fail with ENOSYS. Some functions are actually named
4968 something starting with __ and the normal name is an alias. */
4969 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4977 if { (eval echo configure:4978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4979 eval "ac_cv_func_$ac_func=yes"
4981 echo "configure: failed program was:" >&5
4982 cat conftest.$ac_ext >&5
4984 eval "ac_cv_func_$ac_func=no"
4989 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4990 echo "$ac_t""yes" 1>&6
4991 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4992 cat >> confdefs.h <<EOF
4993 #define $ac_tr_func 1
4997 echo "$ac_t""no" 1>&6
5001 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
5002 true+yes ) cat >> confdefs.h <<\EOF
5008 rm -f doc/config.status
5010 cat > confcache <<\EOF
5011 # This file is a shell script that caches the results of configure
5012 # tests run on this system so they can be shared between configure
5013 # scripts and configure runs. It is not useful on other systems.
5014 # If it contains results you don't want to keep, you may remove or edit it.
5016 # By default, configure uses ./config.cache as the cache file,
5017 # creating it if it does not exist already. You can give configure
5018 # the --cache-file=FILE option to use a different cache file; that is
5019 # what configure does when it calls configure scripts in
5020 # subdirectories, so they share the cache.
5021 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5022 # config.status only pays attention to the cache file if you give it the
5023 # --recheck option to rerun configure.
5026 # The following way of writing the cache mishandles newlines in values,
5027 # but we know of no workaround that is simple, portable, and efficient.
5028 # So, don't put newlines in cache variables' values.
5029 # Ultrix sh set writes to stderr and can't be redirected directly,
5030 # and sets the high bit in the cache file unless we assign to the vars.
5032 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
5034 # `set' does not quote correctly, so add quotes (double-quote substitution
5035 # turns \\\\ into \\, and sed turns \\ into \).
5037 -e "s/'/'\\\\''/g" \
5038 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5041 # `set' quotes correctly as required by POSIX, so do not add quotes.
5042 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5045 if cmp -s $cache_file confcache; then
5048 if test -w $cache_file; then
5049 echo "updating cache $cache_file"
5050 cat confcache > $cache_file
5052 echo "not updating unwritable cache $cache_file"
5057 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5059 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5060 # Let make expand exec_prefix.
5061 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5063 # Any assignment to VPATH causes Sun make to only execute
5064 # the first set of double-colon rules, so remove it if not needed.
5065 # If there is a colon in the path, we need to keep it.
5066 if test "x$srcdir" = x.; then
5067 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5070 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5072 DEFS=-DHAVE_CONFIG_H
5074 # Without the "./", some shells look in PATH for config.status.
5075 : ${CONFIG_STATUS=./config.status}
5077 echo creating $CONFIG_STATUS
5078 rm -f $CONFIG_STATUS
5079 cat > $CONFIG_STATUS <<EOF
5081 # Generated automatically by configure.
5082 # Run this file to recreate the current configuration.
5083 # This directory was configured as follows,
5084 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5086 # $0 $ac_configure_args
5088 # Compiler output produced by configure, useful for debugging
5089 # configure, is in ./config.log if it exists.
5091 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5094 case "\$ac_option" in
5095 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5096 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5097 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5098 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5099 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
5101 -help | --help | --hel | --he | --h)
5102 echo "\$ac_cs_usage"; exit 0 ;;
5103 *) echo "\$ac_cs_usage"; exit 1 ;;
5107 ac_given_srcdir=$srcdir
5108 ac_given_INSTALL="$INSTALL"
5110 trap 'rm -fr `echo "Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5112 cat >> $CONFIG_STATUS <<EOF
5114 # Protect against being on the right side of a sed subst in config.status.
5115 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5116 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5120 s%@CFLAGS@%$CFLAGS%g
5121 s%@CPPFLAGS@%$CPPFLAGS%g
5122 s%@CXXFLAGS@%$CXXFLAGS%g
5124 s%@LDFLAGS@%$LDFLAGS%g
5126 s%@exec_prefix@%$exec_prefix%g
5127 s%@prefix@%$prefix%g
5128 s%@program_transform_name@%$program_transform_name%g
5129 s%@bindir@%$bindir%g
5130 s%@sbindir@%$sbindir%g
5131 s%@libexecdir@%$libexecdir%g
5132 s%@datadir@%$datadir%g
5133 s%@sysconfdir@%$sysconfdir%g
5134 s%@sharedstatedir@%$sharedstatedir%g
5135 s%@localstatedir@%$localstatedir%g
5136 s%@libdir@%$libdir%g
5137 s%@includedir@%$includedir%g
5138 s%@oldincludedir@%$oldincludedir%g
5139 s%@infodir@%$infodir%g
5140 s%@mandir@%$mandir%g
5142 s%@host_alias@%$host_alias%g
5143 s%@host_cpu@%$host_cpu%g
5144 s%@host_vendor@%$host_vendor%g
5145 s%@host_os@%$host_os%g
5146 s%@target@%$target%g
5147 s%@target_alias@%$target_alias%g
5148 s%@target_cpu@%$target_cpu%g
5149 s%@target_vendor@%$target_vendor%g
5150 s%@target_os@%$target_os%g
5152 s%@build_alias@%$build_alias%g
5153 s%@build_cpu@%$build_cpu%g
5154 s%@build_vendor@%$build_vendor%g
5155 s%@build_os@%$build_os%g
5157 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5158 s%@INSTALL_DATA@%$INSTALL_DATA%g
5159 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5160 s%@PACKAGE@%$PACKAGE%g
5161 s%@VERSION@%$VERSION%g
5162 s%@ACLOCAL@%$ACLOCAL%g
5163 s%@AUTOCONF@%$AUTOCONF%g
5164 s%@AUTOMAKE@%$AUTOMAKE%g
5165 s%@AUTOHEADER@%$AUTOHEADER%g
5166 s%@MAKEINFO@%$MAKEINFO%g
5167 s%@SET_MAKE@%$SET_MAKE%g
5169 s%@RANLIB@%$RANLIB%g
5173 s%@LIBTOOL@%$LIBTOOL%g
5174 s%@DLLTOOL@%$DLLTOOL%g
5177 s%@EXEEXT@%$EXEEXT%g
5179 s%@ALLOCA@%$ALLOCA%g
5180 s%@USE_NLS@%$USE_NLS%g
5181 s%@MSGFMT@%$MSGFMT%g
5182 s%@GMSGFMT@%$GMSGFMT%g
5183 s%@XGETTEXT@%$XGETTEXT%g
5184 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5185 s%@CATALOGS@%$CATALOGS%g
5186 s%@CATOBJEXT@%$CATOBJEXT%g
5187 s%@DATADIRNAME@%$DATADIRNAME%g
5188 s%@GMOFILES@%$GMOFILES%g
5189 s%@INSTOBJEXT@%$INSTOBJEXT%g
5190 s%@INTLDEPS@%$INTLDEPS%g
5191 s%@INTLLIBS@%$INTLLIBS%g
5192 s%@INTLOBJS@%$INTLOBJS%g
5193 s%@POFILES@%$POFILES%g
5195 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5197 s%@GT_YES@%$GT_YES%g
5198 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5200 s%@HDEFINES@%$HDEFINES%g
5201 s%@BFD_HOST_64BIT_LONG@%$BFD_HOST_64BIT_LONG%g
5202 s%@BFD_HOST_64_BIT_DEFINED@%$BFD_HOST_64_BIT_DEFINED%g
5203 s%@BFD_HOST_64_BIT@%$BFD_HOST_64_BIT%g
5204 s%@BFD_HOST_U_64_BIT@%$BFD_HOST_U_64_BIT%g
5205 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
5206 s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
5207 s%@COREFILE@%$COREFILE%g
5208 s%@COREFLAG@%$COREFLAG%g
5209 s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g
5210 s%@WIN32LIBADD@%$WIN32LIBADD%g
5211 s%@TDEFINES@%$TDEFINES%g
5212 s%@wordsize@%$wordsize%g
5213 s%@all_backends@%$all_backends%g
5214 s%@bfd_backends@%$bfd_backends%g
5215 s%@bfd_machines@%$bfd_machines%g
5216 s%@tdefaults@%$tdefaults%g
5221 cat >> $CONFIG_STATUS <<\EOF
5223 # Split the substitutions into bite-sized pieces for seds with
5224 # small command number limits, like on Digital OSF/1 and HP-UX.
5225 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5226 ac_file=1 # Number of current file.
5227 ac_beg=1 # First line for current file.
5228 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5231 while $ac_more_lines; do
5232 if test $ac_beg -gt 1; then
5233 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5235 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5237 if test ! -s conftest.s$ac_file; then
5239 rm -f conftest.s$ac_file
5241 if test -z "$ac_sed_cmds"; then
5242 ac_sed_cmds="sed -f conftest.s$ac_file"
5244 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5246 ac_file=`expr $ac_file + 1`
5248 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5251 if test -z "$ac_sed_cmds"; then
5256 cat >> $CONFIG_STATUS <<EOF
5258 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"}
5260 cat >> $CONFIG_STATUS <<\EOF
5261 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5262 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5264 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5265 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5266 *) ac_file_in="${ac_file}.in" ;;
5269 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5271 # Remove last slash and all that follows it. Not all systems have dirname.
5272 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5273 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5274 # The file is in a subdirectory.
5275 test ! -d "$ac_dir" && mkdir "$ac_dir"
5276 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5277 # A "../" for each directory in $ac_dir_suffix.
5278 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5280 ac_dir_suffix= ac_dots=
5283 case "$ac_given_srcdir" in
5285 if test -z "$ac_dots"; then top_srcdir=.
5286 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5287 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5289 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5290 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5293 case "$ac_given_INSTALL" in
5294 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5295 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5298 echo creating "$ac_file"
5300 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5302 *Makefile*) ac_comsub="1i\\
5303 # $configure_input" ;;
5307 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5309 s%@configure_input@%$configure_input%g
5310 s%@srcdir@%$srcdir%g
5311 s%@top_srcdir@%$top_srcdir%g
5312 s%@INSTALL@%$INSTALL%g
5313 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5317 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5318 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5320 # ac_d sets the value in "#define NAME VALUE" lines.
5321 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5322 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5325 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5326 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5327 ac_uB='\([ ]\)%\1#\2define\3'
5330 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5331 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5332 ac_eB='$%\1#\2define\3'
5336 if test "${CONFIG_HEADERS+set}" != set; then
5338 cat >> $CONFIG_STATUS <<EOF
5339 CONFIG_HEADERS="config.h:config.in"
5341 cat >> $CONFIG_STATUS <<\EOF
5343 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5344 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5346 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5347 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5348 *) ac_file_in="${ac_file}.in" ;;
5351 echo creating $ac_file
5353 rm -f conftest.frag conftest.in conftest.out
5354 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5355 cat $ac_file_inputs > conftest.in
5359 # Transform confdefs.h into a sed script conftest.vals that substitutes
5360 # the proper values into config.h.in to produce config.h. And first:
5361 # Protect against being on the right side of a sed subst in config.status.
5362 # Protect against being in an unquoted here document in config.status.
5364 cat > conftest.hdr <<\EOF
5367 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5371 sed -n -f conftest.hdr confdefs.h > conftest.vals
5374 # This sed command replaces #undef with comments. This is necessary, for
5375 # example, in the case of _POSIX_SOURCE, which is predefined and required
5376 # on some systems where configure will not decide to define it.
5377 cat >> conftest.vals <<\EOF
5378 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5381 # Break up conftest.vals because some shells have a limit on
5382 # the size of here documents, and old seds have small limits too.
5387 ac_lines=`grep -c . conftest.vals`
5388 # grep -c gives empty output for an empty file on some AIX systems.
5389 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5390 # Write a limited-size here document to conftest.frag.
5391 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5392 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5394 sed -f conftest.frag conftest.in > conftest.out
5396 mv conftest.out conftest.in
5398 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5400 mv conftest.tail conftest.vals
5404 cat >> $CONFIG_STATUS <<\EOF
5405 rm -f conftest.frag conftest.h
5406 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5407 cat conftest.in >> conftest.h
5409 if cmp -s $ac_file conftest.h 2>/dev/null; then
5410 echo "$ac_file is unchanged"
5413 # Remove last slash and all that follows it. Not all systems have dirname.
5414 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5415 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5416 # The file is in a subdirectory.
5417 test ! -d "$ac_dir" && mkdir "$ac_dir"
5420 mv conftest.h $ac_file
5425 cat >> $CONFIG_STATUS <<EOF
5429 cat >> $CONFIG_STATUS <<\EOF
5430 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
5431 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
5434 chmod +x $CONFIG_STATUS
5435 rm -fr confdefs* $ac_clean_files
5436 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1