3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-shared[=PKGS] build shared libraries [default=no]"
17 --enable-static[=PKGS] build static libraries [default=yes]"
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
23 --disable-libtool-lock avoid locking (might break parallel builds)"
25 --with-pic try to use only PIC/non-PIC objects [default=use both]"
27 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)"
29 --enable-targets alternative target configurations"
31 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
33 --with-mmap try using mmap for BFD input files if available"
35 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
37 --enable-maintainer-mode enable make rules and dependencies not useful
38 (and sometimes confusing) to the casual installer"
40 --disable-nls do not use Native Language Support"
42 --with-included-gettext use the GNU gettext library included here"
44 # Initialize some variables set by options.
45 # The variables have the same names as the options, with
46 # dashes changed to underlines.
48 cache_file=./config.cache
57 program_transform_name=s,x,x,
65 bindir='${exec_prefix}/bin'
66 sbindir='${exec_prefix}/sbin'
67 libexecdir='${exec_prefix}/libexec'
68 datadir='${prefix}/share'
69 sysconfdir='${prefix}/etc'
70 sharedstatedir='${prefix}/com'
71 localstatedir='${prefix}/var'
72 libdir='${exec_prefix}/lib'
73 includedir='${prefix}/include'
74 oldincludedir='/usr/include'
75 infodir='${prefix}/info'
76 mandir='${prefix}/man'
78 # Initialize some other variables.
81 SHELL=${CONFIG_SHELL-/bin/sh}
82 # Maximum number of lines to put in a shell here document.
89 # If the previous option needs an argument, assign it.
90 if test -n "$ac_prev"; then
91 eval "$ac_prev=\$ac_option"
97 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
101 # Accept the important Cygnus configure options, so we can diagnose typos.
105 -bindir | --bindir | --bindi | --bind | --bin | --bi)
107 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
108 bindir="$ac_optarg" ;;
110 -build | --build | --buil | --bui | --bu)
112 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
113 build="$ac_optarg" ;;
115 -cache-file | --cache-file | --cache-fil | --cache-fi \
116 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
117 ac_prev=cache_file ;;
118 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
119 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
120 cache_file="$ac_optarg" ;;
122 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
124 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
126 datadir="$ac_optarg" ;;
128 -disable-* | --disable-*)
129 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
130 # Reject names that are not valid shell variable names.
131 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
132 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
134 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
135 eval "enable_${ac_feature}=no" ;;
137 -enable-* | --enable-*)
138 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
139 # Reject names that are not valid shell variable names.
140 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
141 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
143 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
148 eval "enable_${ac_feature}='$ac_optarg'" ;;
150 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
151 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
152 | --exec | --exe | --ex)
153 ac_prev=exec_prefix ;;
154 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
155 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
156 | --exec=* | --exe=* | --ex=*)
157 exec_prefix="$ac_optarg" ;;
159 -gas | --gas | --ga | --g)
160 # Obsolete; use --with-gas.
163 -help | --help | --hel | --he)
164 # Omit some internal or obsolete options to make the list less imposing.
165 # This message is too long to be a string in the A/UX 3.1 sh.
167 Usage: configure [options] [host]
168 Options: [defaults in brackets after descriptions]
170 --cache-file=FILE cache test results in FILE
171 --help print this message
172 --no-create do not create output files
173 --quiet, --silent do not print \`checking...' messages
174 --version print the version of autoconf that created configure
175 Directory and file names:
176 --prefix=PREFIX install architecture-independent files in PREFIX
178 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
180 --bindir=DIR user executables in DIR [EPREFIX/bin]
181 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
182 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
183 --datadir=DIR read-only architecture-independent data in DIR
185 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
186 --sharedstatedir=DIR modifiable architecture-independent data in DIR
188 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
189 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
190 --includedir=DIR C header files in DIR [PREFIX/include]
191 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
192 --infodir=DIR info documentation in DIR [PREFIX/info]
193 --mandir=DIR man documentation in DIR [PREFIX/man]
194 --srcdir=DIR find the sources in DIR [configure dir or ..]
195 --program-prefix=PREFIX prepend PREFIX to installed program names
196 --program-suffix=SUFFIX append SUFFIX to installed program names
197 --program-transform-name=PROGRAM
198 run sed PROGRAM on installed program names
202 --build=BUILD configure for building on BUILD [BUILD=HOST]
203 --host=HOST configure for HOST [guessed]
204 --target=TARGET configure for TARGET [TARGET=HOST]
205 Features and packages:
206 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
207 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
208 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
209 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
210 --x-includes=DIR X include files are in DIR
211 --x-libraries=DIR X library files are in DIR
213 if test -n "$ac_help"; then
214 echo "--enable and --with options recognized:$ac_help"
218 -host | --host | --hos | --ho)
220 -host=* | --host=* | --hos=* | --ho=*)
223 -includedir | --includedir | --includedi | --included | --include \
224 | --includ | --inclu | --incl | --inc)
225 ac_prev=includedir ;;
226 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
227 | --includ=* | --inclu=* | --incl=* | --inc=*)
228 includedir="$ac_optarg" ;;
230 -infodir | --infodir | --infodi | --infod | --info | --inf)
232 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
233 infodir="$ac_optarg" ;;
235 -libdir | --libdir | --libdi | --libd)
237 -libdir=* | --libdir=* | --libdi=* | --libd=*)
238 libdir="$ac_optarg" ;;
240 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
241 | --libexe | --libex | --libe)
242 ac_prev=libexecdir ;;
243 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
244 | --libexe=* | --libex=* | --libe=*)
245 libexecdir="$ac_optarg" ;;
247 -localstatedir | --localstatedir | --localstatedi | --localstated \
248 | --localstate | --localstat | --localsta | --localst \
249 | --locals | --local | --loca | --loc | --lo)
250 ac_prev=localstatedir ;;
251 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
252 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
253 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
254 localstatedir="$ac_optarg" ;;
256 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
258 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
259 mandir="$ac_optarg" ;;
262 # Obsolete; use --without-fp.
265 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
269 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
270 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
273 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
274 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
275 | --oldin | --oldi | --old | --ol | --o)
276 ac_prev=oldincludedir ;;
277 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
278 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
279 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
280 oldincludedir="$ac_optarg" ;;
282 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
284 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
285 prefix="$ac_optarg" ;;
287 -program-prefix | --program-prefix | --program-prefi | --program-pref \
288 | --program-pre | --program-pr | --program-p)
289 ac_prev=program_prefix ;;
290 -program-prefix=* | --program-prefix=* | --program-prefi=* \
291 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
292 program_prefix="$ac_optarg" ;;
294 -program-suffix | --program-suffix | --program-suffi | --program-suff \
295 | --program-suf | --program-su | --program-s)
296 ac_prev=program_suffix ;;
297 -program-suffix=* | --program-suffix=* | --program-suffi=* \
298 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
299 program_suffix="$ac_optarg" ;;
301 -program-transform-name | --program-transform-name \
302 | --program-transform-nam | --program-transform-na \
303 | --program-transform-n | --program-transform- \
304 | --program-transform | --program-transfor \
305 | --program-transfo | --program-transf \
306 | --program-trans | --program-tran \
307 | --progr-tra | --program-tr | --program-t)
308 ac_prev=program_transform_name ;;
309 -program-transform-name=* | --program-transform-name=* \
310 | --program-transform-nam=* | --program-transform-na=* \
311 | --program-transform-n=* | --program-transform-=* \
312 | --program-transform=* | --program-transfor=* \
313 | --program-transfo=* | --program-transf=* \
314 | --program-trans=* | --program-tran=* \
315 | --progr-tra=* | --program-tr=* | --program-t=*)
316 program_transform_name="$ac_optarg" ;;
318 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
319 | -silent | --silent | --silen | --sile | --sil)
322 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
324 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
326 sbindir="$ac_optarg" ;;
328 -sharedstatedir | --sharedstatedir | --sharedstatedi \
329 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
330 | --sharedst | --shareds | --shared | --share | --shar \
332 ac_prev=sharedstatedir ;;
333 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
334 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
335 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
337 sharedstatedir="$ac_optarg" ;;
339 -site | --site | --sit)
341 -site=* | --site=* | --sit=*)
344 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
346 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
347 srcdir="$ac_optarg" ;;
349 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
350 | --syscon | --sysco | --sysc | --sys | --sy)
351 ac_prev=sysconfdir ;;
352 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
353 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
354 sysconfdir="$ac_optarg" ;;
356 -target | --target | --targe | --targ | --tar | --ta | --t)
358 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
359 target="$ac_optarg" ;;
361 -v | -verbose | --verbose | --verbos | --verbo | --verb)
364 -version | --version | --versio | --versi | --vers)
365 echo "configure generated by autoconf version 2.13"
369 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
370 # Reject names that are not valid shell variable names.
371 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
372 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
374 ac_package=`echo $ac_package| sed 's/-/_/g'`
379 eval "with_${ac_package}='$ac_optarg'" ;;
381 -without-* | --without-*)
382 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
383 # Reject names that are not valid shell variable names.
384 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
385 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
387 ac_package=`echo $ac_package| sed 's/-/_/g'`
388 eval "with_${ac_package}=no" ;;
391 # Obsolete; use --with-x.
394 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
395 | --x-incl | --x-inc | --x-in | --x-i)
396 ac_prev=x_includes ;;
397 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
398 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
399 x_includes="$ac_optarg" ;;
401 -x-libraries | --x-libraries | --x-librarie | --x-librari \
402 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
403 ac_prev=x_libraries ;;
404 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
405 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
406 x_libraries="$ac_optarg" ;;
408 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
412 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
413 echo "configure: warning: $ac_option: invalid host type" 1>&2
415 if test "x$nonopt" != xNONE; then
416 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
424 if test -n "$ac_prev"; then
425 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
428 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
430 # File descriptor usage:
433 # 2 errors and warnings
434 # 3 some systems may open it to /dev/tty
435 # 4 used on the Kubota Titan
436 # 6 checking for... messages and results
437 # 5 compiler messages saved in config.log
438 if test "$silent" = yes; then
446 This file contains any messages produced by compilers while
447 running configure, to aid debugging if configure makes a mistake.
450 # Strip out --no-create and --no-recursion so they do not pile up.
451 # Also quote any args containing shell metacharacters.
456 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
457 | --no-cr | --no-c) ;;
458 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
459 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
460 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
461 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
462 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
467 # Only set these to C if already set. These must not be set unconditionally
468 # because not all systems understand e.g. LANG=C (notably SCO).
469 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
470 # Non-C LC_CTYPE values break the ctype check.
471 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
472 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
473 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
474 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
476 # confdefs.h avoids OS command line length limits that DEFS can exceed.
477 rm -rf conftest* confdefs.h
478 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
481 # A filename unique to this package, relative to the directory that
482 # configure is in, which we can look for to find out if srcdir is correct.
483 ac_unique_file=libbfd.c
485 # Find the source files, if location was not specified.
486 if test -z "$srcdir"; then
487 ac_srcdir_defaulted=yes
488 # Try the directory containing this script, then its parent.
490 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
491 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
493 if test ! -r $srcdir/$ac_unique_file; then
497 ac_srcdir_defaulted=no
499 if test ! -r $srcdir/$ac_unique_file; then
500 if test "$ac_srcdir_defaulted" = yes; then
501 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
503 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
506 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
508 # Prefer explicitly selected file to automatically selected ones.
509 if test -z "$CONFIG_SITE"; then
510 if test "x$prefix" != xNONE; then
511 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
513 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
516 for ac_site_file in $CONFIG_SITE; do
517 if test -r "$ac_site_file"; then
518 echo "loading site script $ac_site_file"
523 if test -r "$cache_file"; then
524 echo "loading cache $cache_file"
527 echo "creating cache $cache_file"
532 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
533 ac_cpp='$CPP $CPPFLAGS'
534 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
535 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
536 cross_compiling=$ac_cv_prog_cc_cross
540 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
541 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
542 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
549 ac_n= ac_c='\c' ac_t=
552 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
553 echo "configure:554: checking for Cygwin environment" >&5
554 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
555 echo $ac_n "(cached) $ac_c" 1>&6
557 cat > conftest.$ac_ext <<EOF
558 #line 559 "configure"
559 #include "confdefs.h"
564 #define __CYGWIN__ __CYGWIN32__
569 if { (eval echo configure:570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
573 echo "configure: failed program was:" >&5
574 cat conftest.$ac_ext >&5
582 echo "$ac_t""$ac_cv_cygwin" 1>&6
584 test "$ac_cv_cygwin" = yes && CYGWIN=yes
585 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
586 echo "configure:587: checking for mingw32 environment" >&5
587 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
588 echo $ac_n "(cached) $ac_c" 1>&6
590 cat > conftest.$ac_ext <<EOF
591 #line 592 "configure"
592 #include "confdefs.h"
598 if { (eval echo configure:599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
602 echo "configure: failed program was:" >&5
603 cat conftest.$ac_ext >&5
611 echo "$ac_t""$ac_cv_mingw32" 1>&6
613 test "$ac_cv_mingw32" = yes && MINGW32=yes
617 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
618 if test -f $ac_dir/install-sh; then
620 ac_install_sh="$ac_aux_dir/install-sh -c"
622 elif test -f $ac_dir/install.sh; then
624 ac_install_sh="$ac_aux_dir/install.sh -c"
628 if test -z "$ac_aux_dir"; then
629 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
631 ac_config_guess=$ac_aux_dir/config.guess
632 ac_config_sub=$ac_aux_dir/config.sub
633 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
636 # Do some error checking and defaulting for the host and target type.
638 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
641 # 1. You are not allowed to specify --host, --target, and nonopt at the
643 # 2. Host defaults to nonopt.
644 # 3. If nonopt is not specified, then host defaults to the current host,
645 # as determined by config.guess.
646 # 4. Target and build default to nonopt.
647 # 5. If nonopt is not specified, then target and build default to host.
649 # The aliases save the names the user supplied, while $host etc.
650 # will get canonicalized.
651 case $host---$target---$nonopt in
652 NONE---*---* | *---NONE---* | *---*---NONE) ;;
653 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
657 # Make sure we can run config.sub.
658 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
659 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
662 echo $ac_n "checking host system type""... $ac_c" 1>&6
663 echo "configure:664: checking host system type" >&5
666 case "$host_alias" in
670 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
671 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
673 *) host_alias=$nonopt ;;
677 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
678 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
679 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
680 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
681 echo "$ac_t""$host" 1>&6
683 echo $ac_n "checking target system type""... $ac_c" 1>&6
684 echo "configure:685: checking target system type" >&5
687 case "$target_alias" in
690 NONE) target_alias=$host_alias ;;
691 *) target_alias=$nonopt ;;
695 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
696 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
697 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
698 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
699 echo "$ac_t""$target" 1>&6
701 echo $ac_n "checking build system type""... $ac_c" 1>&6
702 echo "configure:703: checking build system type" >&5
705 case "$build_alias" in
708 NONE) build_alias=$host_alias ;;
709 *) build_alias=$nonopt ;;
713 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
714 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
715 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
716 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
717 echo "$ac_t""$build" 1>&6
719 test "$host_alias" != "$target_alias" &&
720 test "$program_prefix$program_suffix$program_transform_name" = \
722 program_prefix=${target_alias}-
724 # Extract the first word of "gcc", so it can be a program name with args.
725 set dummy gcc; ac_word=$2
726 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
727 echo "configure:728: checking for $ac_word" >&5
728 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
729 echo $ac_n "(cached) $ac_c" 1>&6
731 if test -n "$CC"; then
732 ac_cv_prog_CC="$CC" # Let the user override the test.
734 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
736 for ac_dir in $ac_dummy; do
737 test -z "$ac_dir" && ac_dir=.
738 if test -f $ac_dir/$ac_word; then
747 if test -n "$CC"; then
748 echo "$ac_t""$CC" 1>&6
750 echo "$ac_t""no" 1>&6
753 if test -z "$CC"; then
754 # Extract the first word of "cc", so it can be a program name with args.
755 set dummy cc; ac_word=$2
756 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
757 echo "configure:758: checking for $ac_word" >&5
758 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
759 echo $ac_n "(cached) $ac_c" 1>&6
761 if test -n "$CC"; then
762 ac_cv_prog_CC="$CC" # Let the user override the test.
764 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
767 for ac_dir in $ac_dummy; do
768 test -z "$ac_dir" && ac_dir=.
769 if test -f $ac_dir/$ac_word; then
770 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
779 if test $ac_prog_rejected = yes; then
780 # We found a bogon in the path, so make sure we never use it.
781 set dummy $ac_cv_prog_CC
783 if test $# -gt 0; then
784 # We chose a different compiler from the bogus one.
785 # However, it has the same basename, so the bogon will be chosen
786 # first if we set CC to just the basename; use the full file name.
788 set dummy "$ac_dir/$ac_word" "$@"
796 if test -n "$CC"; then
797 echo "$ac_t""$CC" 1>&6
799 echo "$ac_t""no" 1>&6
802 if test -z "$CC"; then
805 # Extract the first word of "cl", so it can be a program name with args.
806 set dummy cl; ac_word=$2
807 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
808 echo "configure:809: checking for $ac_word" >&5
809 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
810 echo $ac_n "(cached) $ac_c" 1>&6
812 if test -n "$CC"; then
813 ac_cv_prog_CC="$CC" # Let the user override the test.
815 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
817 for ac_dir in $ac_dummy; do
818 test -z "$ac_dir" && ac_dir=.
819 if test -f $ac_dir/$ac_word; then
828 if test -n "$CC"; then
829 echo "$ac_t""$CC" 1>&6
831 echo "$ac_t""no" 1>&6
836 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
839 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
840 echo "configure:841: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
843 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
844 ac_cpp='$CPP $CPPFLAGS'
845 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
846 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
847 cross_compiling=$ac_cv_prog_cc_cross
849 cat > conftest.$ac_ext << EOF
851 #line 852 "configure"
852 #include "confdefs.h"
856 if { (eval echo configure:857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
857 ac_cv_prog_cc_works=yes
858 # If we can't run a trivial program, we are probably using a cross compiler.
859 if (./conftest; exit) 2>/dev/null; then
860 ac_cv_prog_cc_cross=no
862 ac_cv_prog_cc_cross=yes
865 echo "configure: failed program was:" >&5
866 cat conftest.$ac_ext >&5
867 ac_cv_prog_cc_works=no
871 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
872 ac_cpp='$CPP $CPPFLAGS'
873 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
874 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
875 cross_compiling=$ac_cv_prog_cc_cross
877 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
878 if test $ac_cv_prog_cc_works = no; then
879 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
881 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
882 echo "configure:883: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
883 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
884 cross_compiling=$ac_cv_prog_cc_cross
886 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
887 echo "configure:888: checking whether we are using GNU C" >&5
888 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
889 echo $ac_n "(cached) $ac_c" 1>&6
891 cat > conftest.c <<EOF
896 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
903 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
905 if test $ac_cv_prog_gcc = yes; then
911 ac_test_CFLAGS="${CFLAGS+set}"
912 ac_save_CFLAGS="$CFLAGS"
914 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
915 echo "configure:916: checking whether ${CC-cc} accepts -g" >&5
916 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
917 echo $ac_n "(cached) $ac_c" 1>&6
919 echo 'void f(){}' > conftest.c
920 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
929 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
930 if test "$ac_test_CFLAGS" = set; then
931 CFLAGS="$ac_save_CFLAGS"
932 elif test $ac_cv_prog_cc_g = yes; then
933 if test "$GCC" = yes; then
939 if test "$GCC" = yes; then
946 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
947 echo "configure:948: checking for POSIXized ISC" >&5
948 if test -d /etc/conf/kconfig.d &&
949 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
951 echo "$ac_t""yes" 1>&6
952 ISC=yes # If later tests want to check for ISC.
953 cat >> confdefs.h <<\EOF
954 #define _POSIX_SOURCE 1
957 if test "$GCC" = yes; then
963 echo "$ac_t""no" 1>&6
968 # Find a good install program. We prefer a C program (faster),
969 # so one script is as good as another. But avoid the broken or
970 # incompatible versions:
971 # SysV /etc/install, /usr/sbin/install
972 # SunOS /usr/etc/install
975 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
976 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
977 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
978 # ./install, which can be erroneously created by make from ./install.sh.
979 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
980 echo "configure:981: checking for a BSD compatible install" >&5
981 if test -z "$INSTALL"; then
982 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
983 echo $ac_n "(cached) $ac_c" 1>&6
985 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
986 for ac_dir in $PATH; do
987 # Account for people who put trailing slashes in PATH elements.
989 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
991 # OSF1 and SCO ODT 3.0 have their own names for install.
992 # Don't use installbsd from OSF since it installs stuff as root
994 for ac_prog in ginstall scoinst install; do
995 if test -f $ac_dir/$ac_prog; then
996 if test $ac_prog = install &&
997 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
998 # AIX install. It has an incompatible calling convention.
1001 ac_cv_path_install="$ac_dir/$ac_prog -c"
1012 if test "${ac_cv_path_install+set}" = set; then
1013 INSTALL="$ac_cv_path_install"
1015 # As a last resort, use the slow shell script. We don't cache a
1016 # path for INSTALL within a source directory, because that will
1017 # break other packages using the cache if that directory is
1018 # removed, or if the path is relative.
1019 INSTALL="$ac_install_sh"
1022 echo "$ac_t""$INSTALL" 1>&6
1024 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1025 # It thinks the first close brace ends the variable substitution.
1026 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1028 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1030 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1032 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1033 echo "configure:1034: checking whether build environment is sane" >&5
1036 echo timestamp > conftestfile
1037 # Do `set' in a subshell so we don't clobber the current shell's
1038 # arguments. Must try -L first in case configure is actually a
1039 # symlink; some systems play weird games with the mod time of symlinks
1040 # (eg FreeBSD returns the mod time of the symlink's containing
1043 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1044 if test "$*" = "X"; then
1046 set X `ls -t $srcdir/configure conftestfile`
1048 if test "$*" != "X $srcdir/configure conftestfile" \
1049 && test "$*" != "X conftestfile $srcdir/configure"; then
1051 # If neither matched, then we have a broken ls. This can happen
1052 # if, for instance, CONFIG_SHELL is bash and it inherits a
1053 # broken ls alias from the environment. This has actually
1054 # happened. Such a system could not be considered "sane".
1055 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1056 alias in your environment" 1>&2; exit 1; }
1059 test "$2" = conftestfile
1065 { echo "configure: error: newly created file is older than distributed files!
1066 Check your system clock" 1>&2; exit 1; }
1069 echo "$ac_t""yes" 1>&6
1070 if test "$program_transform_name" = s,x,x,; then
1071 program_transform_name=
1073 # Double any \ or $. echo might interpret backslashes.
1074 cat <<\EOF_SED > conftestsed
1075 s,\\,\\\\,g; s,\$,$$,g
1077 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1080 test "$program_prefix" != NONE &&
1081 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1082 # Use a double $ so make ignores it.
1083 test "$program_suffix" != NONE &&
1084 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1086 # sed with no file args requires a program.
1087 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1089 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1090 echo "configure:1091: checking whether ${MAKE-make} sets \${MAKE}" >&5
1091 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1092 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1093 echo $ac_n "(cached) $ac_c" 1>&6
1095 cat > conftestmake <<\EOF
1097 @echo 'ac_maketemp="${MAKE}"'
1099 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1100 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1101 if test -n "$ac_maketemp"; then
1102 eval ac_cv_prog_make_${ac_make}_set=yes
1104 eval ac_cv_prog_make_${ac_make}_set=no
1108 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1109 echo "$ac_t""yes" 1>&6
1112 echo "$ac_t""no" 1>&6
1113 SET_MAKE="MAKE=${MAKE-make}"
1121 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1122 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1124 cat >> confdefs.h <<EOF
1125 #define PACKAGE "$PACKAGE"
1128 cat >> confdefs.h <<EOF
1129 #define VERSION "$VERSION"
1134 missing_dir=`cd $ac_aux_dir && pwd`
1135 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1136 echo "configure:1137: checking for working aclocal" >&5
1137 # Run test in a subshell; some versions of sh will print an error if
1138 # an executable is not found, even if stderr is redirected.
1139 # Redirect stdin to placate older versions of autoconf. Sigh.
1140 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1142 echo "$ac_t""found" 1>&6
1144 ACLOCAL="$missing_dir/missing aclocal"
1145 echo "$ac_t""missing" 1>&6
1148 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1149 echo "configure:1150: checking for working autoconf" >&5
1150 # Run test in a subshell; some versions of sh will print an error if
1151 # an executable is not found, even if stderr is redirected.
1152 # Redirect stdin to placate older versions of autoconf. Sigh.
1153 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1155 echo "$ac_t""found" 1>&6
1157 AUTOCONF="$missing_dir/missing autoconf"
1158 echo "$ac_t""missing" 1>&6
1161 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1162 echo "configure:1163: checking for working automake" >&5
1163 # Run test in a subshell; some versions of sh will print an error if
1164 # an executable is not found, even if stderr is redirected.
1165 # Redirect stdin to placate older versions of autoconf. Sigh.
1166 if (automake --version) < /dev/null > /dev/null 2>&1; then
1168 echo "$ac_t""found" 1>&6
1170 AUTOMAKE="$missing_dir/missing automake"
1171 echo "$ac_t""missing" 1>&6
1174 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1175 echo "configure:1176: checking for working autoheader" >&5
1176 # Run test in a subshell; some versions of sh will print an error if
1177 # an executable is not found, even if stderr is redirected.
1178 # Redirect stdin to placate older versions of autoconf. Sigh.
1179 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1180 AUTOHEADER=autoheader
1181 echo "$ac_t""found" 1>&6
1183 AUTOHEADER="$missing_dir/missing autoheader"
1184 echo "$ac_t""missing" 1>&6
1187 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1188 echo "configure:1189: checking for working makeinfo" >&5
1189 # Run test in a subshell; some versions of sh will print an error if
1190 # an executable is not found, even if stderr is redirected.
1191 # Redirect stdin to placate older versions of autoconf. Sigh.
1192 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1194 echo "$ac_t""found" 1>&6
1196 MAKEINFO="$missing_dir/missing makeinfo"
1197 echo "$ac_t""missing" 1>&6
1202 if test $host != $build; then
1203 ac_tool_prefix=${host_alias}-
1208 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1209 set dummy ${ac_tool_prefix}ar; ac_word=$2
1210 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1211 echo "configure:1212: checking for $ac_word" >&5
1212 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1213 echo $ac_n "(cached) $ac_c" 1>&6
1215 if test -n "$AR"; then
1216 ac_cv_prog_AR="$AR" # Let the user override the test.
1218 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1220 for ac_dir in $ac_dummy; do
1221 test -z "$ac_dir" && ac_dir=.
1222 if test -f $ac_dir/$ac_word; then
1223 ac_cv_prog_AR="${ac_tool_prefix}ar"
1228 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1232 if test -n "$AR"; then
1233 echo "$ac_t""$AR" 1>&6
1235 echo "$ac_t""no" 1>&6
1240 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1241 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1242 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1243 echo "configure:1244: checking for $ac_word" >&5
1244 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1245 echo $ac_n "(cached) $ac_c" 1>&6
1247 if test -n "$RANLIB"; then
1248 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1250 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1252 for ac_dir in $ac_dummy; do
1253 test -z "$ac_dir" && ac_dir=.
1254 if test -f $ac_dir/$ac_word; then
1255 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1262 RANLIB="$ac_cv_prog_RANLIB"
1263 if test -n "$RANLIB"; then
1264 echo "$ac_t""$RANLIB" 1>&6
1266 echo "$ac_t""no" 1>&6
1270 if test -z "$ac_cv_prog_RANLIB"; then
1271 if test -n "$ac_tool_prefix"; then
1272 # Extract the first word of "ranlib", so it can be a program name with args.
1273 set dummy ranlib; ac_word=$2
1274 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1275 echo "configure:1276: checking for $ac_word" >&5
1276 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1277 echo $ac_n "(cached) $ac_c" 1>&6
1279 if test -n "$RANLIB"; then
1280 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1282 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1284 for ac_dir in $ac_dummy; do
1285 test -z "$ac_dir" && ac_dir=.
1286 if test -f $ac_dir/$ac_word; then
1287 ac_cv_prog_RANLIB="ranlib"
1292 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1295 RANLIB="$ac_cv_prog_RANLIB"
1296 if test -n "$RANLIB"; then
1297 echo "$ac_t""$RANLIB" 1>&6
1299 echo "$ac_t""no" 1>&6
1308 # Check whether --enable-shared or --disable-shared was given.
1309 if test "${enable_shared+set}" = set; then
1310 enableval="$enable_shared"
1311 p=${PACKAGE-default}
1313 yes) enable_shared=yes ;;
1314 no) enable_shared=no ;;
1317 # Look at the argument we got. We use all the common list separators.
1318 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1319 for pkg in $enableval; do
1320 if test "X$pkg" = "X$p"; then
1332 # Check whether --enable-static or --disable-static was given.
1333 if test "${enable_static+set}" = set; then
1334 enableval="$enable_static"
1335 p=${PACKAGE-default}
1337 yes) enable_static=yes ;;
1338 no) enable_static=no ;;
1341 # Look at the argument we got. We use all the common list separators.
1342 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1343 for pkg in $enableval; do
1344 if test "X$pkg" = "X$p"; then
1355 # Check whether --enable-fast-install or --disable-fast-install was given.
1356 if test "${enable_fast_install+set}" = set; then
1357 enableval="$enable_fast_install"
1358 p=${PACKAGE-default}
1360 yes) enable_fast_install=yes ;;
1361 no) enable_fast_install=no ;;
1363 enable_fast_install=no
1364 # Look at the argument we got. We use all the common list separators.
1365 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1366 for pkg in $enableval; do
1367 if test "X$pkg" = "X$p"; then
1368 enable_fast_install=yes
1375 enable_fast_install=yes
1378 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1379 if test "${with_gnu_ld+set}" = set; then
1380 withval="$with_gnu_ld"
1381 test "$withval" = no || with_gnu_ld=yes
1387 if test "$GCC" = yes; then
1388 # Check if gcc -print-prog-name=ld gives a path.
1389 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1390 echo "configure:1391: checking for ld used by GCC" >&5
1393 # gcc leaves a trailing carriage return which upsets mingw
1394 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1396 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1399 # Accept absolute paths.
1400 [\\/]* | [A-Za-z]:[\\/]*)
1401 re_direlt='/[^/][^/]*/\.\./'
1402 # Canonicalize the path of ld
1403 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1404 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1405 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1407 test -z "$LD" && LD="$ac_prog"
1410 # If it fails, then pretend we aren't using GCC.
1414 # If it is relative, then search for the first ld in PATH.
1418 elif test "$with_gnu_ld" = yes; then
1419 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1420 echo "configure:1421: checking for GNU ld" >&5
1422 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1423 echo "configure:1424: checking for non-GNU ld" >&5
1425 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1426 echo $ac_n "(cached) $ac_c" 1>&6
1428 if test -z "$LD"; then
1429 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1430 for ac_dir in $PATH; do
1431 test -z "$ac_dir" && ac_dir=.
1432 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1433 lt_cv_path_LD="$ac_dir/$ac_prog"
1434 # Check to see if the program is GNU ld. I'd rather use --version,
1435 # but apparently some GNU ld's only accept -v.
1436 # Break only if it was the GNU/non-GNU ld that we prefer.
1437 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1438 test "$with_gnu_ld" != no && break
1440 test "$with_gnu_ld" != yes && break
1446 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1451 if test -n "$LD"; then
1452 echo "$ac_t""$LD" 1>&6
1454 echo "$ac_t""no" 1>&6
1456 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1457 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1458 echo "configure:1459: checking if the linker ($LD) is GNU ld" >&5
1459 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1460 echo $ac_n "(cached) $ac_c" 1>&6
1462 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1463 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1464 lt_cv_prog_gnu_ld=yes
1466 lt_cv_prog_gnu_ld=no
1470 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1471 with_gnu_ld=$lt_cv_prog_gnu_ld
1474 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1475 echo "configure:1476: checking for $LD option to reload object files" >&5
1476 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1477 echo $ac_n "(cached) $ac_c" 1>&6
1479 lt_cv_ld_reload_flag='-r'
1482 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1483 reload_flag=$lt_cv_ld_reload_flag
1484 test -n "$reload_flag" && reload_flag=" $reload_flag"
1486 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1487 echo "configure:1488: checking for BSD-compatible nm" >&5
1488 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1489 echo $ac_n "(cached) $ac_c" 1>&6
1491 if test -n "$NM"; then
1492 # Let the user override the test.
1495 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1496 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1497 test -z "$ac_dir" && ac_dir=.
1498 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1499 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1500 # Check to see if the nm accepts a BSD-compat flag.
1501 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1502 # nm: unknown option "B" ignored
1503 # Tru64's nm complains that /dev/null is an invalid object file
1504 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1505 lt_cv_path_NM="$tmp_nm -B"
1507 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1508 lt_cv_path_NM="$tmp_nm -p"
1511 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1512 continue # so that we can try to find one that supports BSD flags
1517 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1522 echo "$ac_t""$NM" 1>&6
1524 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1525 echo "configure:1526: checking whether ln -s works" >&5
1526 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1527 echo $ac_n "(cached) $ac_c" 1>&6
1530 if ln -s X conftestdata 2>/dev/null
1533 ac_cv_prog_LN_S="ln -s"
1538 LN_S="$ac_cv_prog_LN_S"
1539 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1540 echo "$ac_t""yes" 1>&6
1542 echo "$ac_t""no" 1>&6
1545 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1546 echo "configure:1547: checking how to recognise dependant libraries" >&5
1547 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1548 echo $ac_n "(cached) $ac_c" 1>&6
1550 lt_cv_file_magic_cmd='$MAGIC_CMD'
1551 lt_cv_file_magic_test_file=
1552 lt_cv_deplibs_check_method='unknown'
1553 # Need to set the preceding variable on all platforms that support
1554 # interlibrary dependencies.
1555 # 'none' -- dependencies not supported.
1556 # `unknown' -- same as none, but documents that we really don't know.
1557 # 'pass_all' -- all dependencies passed with no checks.
1558 # 'test_compile' -- check by making test program.
1559 # 'file_magic [regex]' -- check by looking for files in library path
1560 # which responds to the $file_magic_cmd with a given egrep regex.
1561 # If you have `file' or equivalent on your system and you're not sure
1562 # whether `pass_all' will *always* work, you probably want this one.
1566 lt_cv_deplibs_check_method=pass_all
1570 lt_cv_deplibs_check_method=pass_all
1574 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1575 lt_cv_file_magic_cmd='/usr/bin/file -L'
1576 lt_cv_file_magic_test_file=/shlib/libc.so
1579 cygwin* | mingw* |pw32*)
1580 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1581 lt_cv_file_magic_cmd='$OBJDUMP -f'
1584 darwin* | rhapsody*)
1585 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1586 lt_cv_file_magic_cmd='/usr/bin/file -L'
1588 rhapsody* | darwin1.012)
1589 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1592 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1598 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1601 # Not sure whether the presence of OpenBSD here was a mistake.
1602 # Let's accept both of them until this is cleared up.
1603 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1604 lt_cv_file_magic_cmd=/usr/bin/file
1605 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1609 lt_cv_deplibs_check_method=pass_all
1614 lt_cv_deplibs_check_method=pass_all
1618 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1619 lt_cv_file_magic_cmd=/usr/bin/file
1620 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1626 # this will be overridden with pass_all, but let us keep it just in case
1627 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1631 *-32|*"-32 ") libmagic=32-bit;;
1632 *-n32|*"-n32 ") libmagic=N32;;
1633 *-64|*"-64 ") libmagic=64-bit;;
1634 *) libmagic=never-match;;
1636 # this will be overridden with pass_all, but let us keep it just in case
1637 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1640 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1641 lt_cv_deplibs_check_method=pass_all
1644 # This must be Linux ELF.
1647 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1648 lt_cv_deplibs_check_method=pass_all ;;
1650 # glibc up to 2.1.1 does not perform some relocations on ARM
1651 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1653 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1657 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1658 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1660 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1665 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1666 lt_cv_file_magic_cmd=/usr/bin/file
1667 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1670 osf3* | osf4* | osf5*)
1671 # this will be overridden with pass_all, but let us keep it just in case
1672 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1673 lt_cv_file_magic_test_file=/shlib/libc.so
1674 lt_cv_deplibs_check_method=pass_all
1678 lt_cv_deplibs_check_method=pass_all
1682 lt_cv_deplibs_check_method=pass_all
1683 lt_cv_file_magic_test_file=/lib/libc.so
1686 sysv5uw[78]* | sysv4*uw2*)
1687 lt_cv_deplibs_check_method=pass_all
1690 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1691 case $host_vendor in
1693 lt_cv_deplibs_check_method=pass_all
1696 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
1697 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1705 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1706 file_magic_cmd=$lt_cv_file_magic_cmd
1707 deplibs_check_method=$lt_cv_deplibs_check_method
1709 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1710 echo "configure:1711: checking for object suffix" >&5
1711 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1712 echo $ac_n "(cached) $ac_c" 1>&6
1715 echo 'int i = 1;' > conftest.$ac_ext
1716 if { (eval echo configure:1717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1717 for ac_file in conftest.*; do
1720 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1724 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1729 echo "$ac_t""$ac_cv_objext" 1>&6
1730 OBJEXT=$ac_cv_objext
1731 ac_objext=$ac_cv_objext
1735 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1736 echo "configure:1737: checking for executable suffix" >&5
1737 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1738 echo $ac_n "(cached) $ac_c" 1>&6
1740 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1744 echo 'int main () { return 0; }' > conftest.$ac_ext
1746 if { (eval echo configure:1747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1747 for file in conftest.*; do
1749 *.c | *.o | *.obj) ;;
1750 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1754 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1757 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1762 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1763 echo "$ac_t""${ac_cv_exeext}" 1>&6
1766 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1768 # Only perform the check for file, if the check method requires it
1769 case $deplibs_check_method in
1771 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1772 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1773 echo "configure:1774: checking for ${ac_tool_prefix}file" >&5
1774 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1775 echo $ac_n "(cached) $ac_c" 1>&6
1779 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1782 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1785 ac_save_MAGIC_CMD="$MAGIC_CMD"
1786 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1787 ac_dummy="/usr/bin:$PATH"
1788 for ac_dir in $ac_dummy; do
1789 test -z "$ac_dir" && ac_dir=.
1790 if test -f $ac_dir/${ac_tool_prefix}file; then
1791 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
1792 if test -n "$file_magic_test_file"; then
1793 case $deplibs_check_method in
1795 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1796 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1797 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1798 egrep "$file_magic_regex" > /dev/null; then
1803 *** Warning: the command libtool uses to detect shared libraries,
1804 *** $file_magic_cmd, produces output that libtool cannot recognize.
1805 *** The result is that libtool may fail to recognize shared libraries
1806 *** as such. This will affect the creation of libtool libraries that
1807 *** depend on shared libraries, but programs linked with such libtool
1808 *** libraries will work regardless of this problem. Nevertheless, you
1809 *** may want to report the problem to your system manager and/or to
1810 *** bug-libtool@gnu.org
1820 MAGIC_CMD="$ac_save_MAGIC_CMD"
1825 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1826 if test -n "$MAGIC_CMD"; then
1827 echo "$ac_t""$MAGIC_CMD" 1>&6
1829 echo "$ac_t""no" 1>&6
1832 if test -z "$lt_cv_path_MAGIC_CMD"; then
1833 if test -n "$ac_tool_prefix"; then
1834 echo $ac_n "checking for file""... $ac_c" 1>&6
1835 echo "configure:1836: checking for file" >&5
1836 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1837 echo $ac_n "(cached) $ac_c" 1>&6
1841 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1844 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1847 ac_save_MAGIC_CMD="$MAGIC_CMD"
1848 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1849 ac_dummy="/usr/bin:$PATH"
1850 for ac_dir in $ac_dummy; do
1851 test -z "$ac_dir" && ac_dir=.
1852 if test -f $ac_dir/file; then
1853 lt_cv_path_MAGIC_CMD="$ac_dir/file"
1854 if test -n "$file_magic_test_file"; then
1855 case $deplibs_check_method in
1857 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1858 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1859 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1860 egrep "$file_magic_regex" > /dev/null; then
1865 *** Warning: the command libtool uses to detect shared libraries,
1866 *** $file_magic_cmd, produces output that libtool cannot recognize.
1867 *** The result is that libtool may fail to recognize shared libraries
1868 *** as such. This will affect the creation of libtool libraries that
1869 *** depend on shared libraries, but programs linked with such libtool
1870 *** libraries will work regardless of this problem. Nevertheless, you
1871 *** may want to report the problem to your system manager and/or to
1872 *** bug-libtool@gnu.org
1882 MAGIC_CMD="$ac_save_MAGIC_CMD"
1887 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1888 if test -n "$MAGIC_CMD"; then
1889 echo "$ac_t""$MAGIC_CMD" 1>&6
1891 echo "$ac_t""no" 1>&6
1903 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1904 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1905 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1906 echo "configure:1907: checking for $ac_word" >&5
1907 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1908 echo $ac_n "(cached) $ac_c" 1>&6
1910 if test -n "$RANLIB"; then
1911 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1913 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1915 for ac_dir in $ac_dummy; do
1916 test -z "$ac_dir" && ac_dir=.
1917 if test -f $ac_dir/$ac_word; then
1918 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1925 RANLIB="$ac_cv_prog_RANLIB"
1926 if test -n "$RANLIB"; then
1927 echo "$ac_t""$RANLIB" 1>&6
1929 echo "$ac_t""no" 1>&6
1933 if test -z "$ac_cv_prog_RANLIB"; then
1934 if test -n "$ac_tool_prefix"; then
1935 # Extract the first word of "ranlib", so it can be a program name with args.
1936 set dummy ranlib; ac_word=$2
1937 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1938 echo "configure:1939: checking for $ac_word" >&5
1939 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1940 echo $ac_n "(cached) $ac_c" 1>&6
1942 if test -n "$RANLIB"; then
1943 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1945 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1947 for ac_dir in $ac_dummy; do
1948 test -z "$ac_dir" && ac_dir=.
1949 if test -f $ac_dir/$ac_word; then
1950 ac_cv_prog_RANLIB="ranlib"
1955 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1958 RANLIB="$ac_cv_prog_RANLIB"
1959 if test -n "$RANLIB"; then
1960 echo "$ac_t""$RANLIB" 1>&6
1962 echo "$ac_t""no" 1>&6
1970 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1971 set dummy ${ac_tool_prefix}strip; ac_word=$2
1972 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1973 echo "configure:1974: checking for $ac_word" >&5
1974 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1975 echo $ac_n "(cached) $ac_c" 1>&6
1977 if test -n "$STRIP"; then
1978 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1980 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1982 for ac_dir in $ac_dummy; do
1983 test -z "$ac_dir" && ac_dir=.
1984 if test -f $ac_dir/$ac_word; then
1985 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1992 STRIP="$ac_cv_prog_STRIP"
1993 if test -n "$STRIP"; then
1994 echo "$ac_t""$STRIP" 1>&6
1996 echo "$ac_t""no" 1>&6
2000 if test -z "$ac_cv_prog_STRIP"; then
2001 if test -n "$ac_tool_prefix"; then
2002 # Extract the first word of "strip", so it can be a program name with args.
2003 set dummy strip; ac_word=$2
2004 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2005 echo "configure:2006: checking for $ac_word" >&5
2006 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2007 echo $ac_n "(cached) $ac_c" 1>&6
2009 if test -n "$STRIP"; then
2010 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2012 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2014 for ac_dir in $ac_dummy; do
2015 test -z "$ac_dir" && ac_dir=.
2016 if test -f $ac_dir/$ac_word; then
2017 ac_cv_prog_STRIP="strip"
2022 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2025 STRIP="$ac_cv_prog_STRIP"
2026 if test -n "$STRIP"; then
2027 echo "$ac_t""$STRIP" 1>&6
2029 echo "$ac_t""no" 1>&6
2038 # Check for any special flags to pass to ltconfig.
2039 libtool_flags="--cache-file=$cache_file"
2040 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2041 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2042 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2043 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2044 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2047 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2048 if test "${enable_libtool_lock+set}" = set; then
2049 enableval="$enable_libtool_lock"
2053 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2054 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2056 # Check whether --with-pic or --without-pic was given.
2057 if test "${with_pic+set}" = set; then
2064 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2065 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2067 # Some flags need to be propagated to the compiler or linker for good
2071 # Find out which ABI we are using.
2072 echo '#line 2073 "configure"' > conftest.$ac_ext
2073 if { (eval echo configure:2074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2074 case `/usr/bin/file conftest.$ac_objext` in
2090 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2091 SAVE_CFLAGS="$CFLAGS"
2092 CFLAGS="$CFLAGS -belf"
2093 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2094 echo "configure:2095: checking whether the C compiler needs -belf" >&5
2095 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2096 echo $ac_n "(cached) $ac_c" 1>&6
2100 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2101 ac_cpp='$CPP $CPPFLAGS'
2102 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2103 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2104 cross_compiling=$ac_cv_prog_cc_cross
2106 cat > conftest.$ac_ext <<EOF
2107 #line 2108 "configure"
2108 #include "confdefs.h"
2114 if { (eval echo configure:2115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2116 lt_cv_cc_needs_belf=yes
2118 echo "configure: failed program was:" >&5
2119 cat conftest.$ac_ext >&5
2121 lt_cv_cc_needs_belf=no
2125 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2126 ac_cpp='$CPP $CPPFLAGS'
2127 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2128 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2129 cross_compiling=$ac_cv_prog_cc_cross
2133 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2134 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2135 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2136 CFLAGS="$SAVE_CFLAGS"
2144 # Save cache, so that ltconfig can load it
2145 cat > confcache <<\EOF
2146 # This file is a shell script that caches the results of configure
2147 # tests run on this system so they can be shared between configure
2148 # scripts and configure runs. It is not useful on other systems.
2149 # If it contains results you don't want to keep, you may remove or edit it.
2151 # By default, configure uses ./config.cache as the cache file,
2152 # creating it if it does not exist already. You can give configure
2153 # the --cache-file=FILE option to use a different cache file; that is
2154 # what configure does when it calls configure scripts in
2155 # subdirectories, so they share the cache.
2156 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2157 # config.status only pays attention to the cache file if you give it the
2158 # --recheck option to rerun configure.
2161 # The following way of writing the cache mishandles newlines in values,
2162 # but we know of no workaround that is simple, portable, and efficient.
2163 # So, don't put newlines in cache variables' values.
2164 # Ultrix sh set writes to stderr and can't be redirected directly,
2165 # and sets the high bit in the cache file unless we assign to the vars.
2167 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2169 # `set' does not quote correctly, so add quotes (double-quote substitution
2170 # turns \\\\ into \\, and sed turns \\ into \).
2172 -e "s/'/'\\\\''/g" \
2173 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2176 # `set' quotes correctly as required by POSIX, so do not add quotes.
2177 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2180 if cmp -s $cache_file confcache; then
2183 if test -w $cache_file; then
2184 echo "updating cache $cache_file"
2185 cat confcache > $cache_file
2187 echo "not updating unwritable cache $cache_file"
2193 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2194 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2195 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2196 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2197 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2198 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2199 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2200 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2201 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2202 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2204 # Reload cache, that may have been modified by ltconfig
2205 if test -r "$cache_file"; then
2206 echo "loading cache $cache_file"
2209 echo "creating cache $cache_file"
2214 # This can be used to rebuild libtool when needed
2215 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2217 # Always use our own libtool.
2218 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2220 # Redirect the config.log output again, so that the ltconfig log is not
2221 # clobbered by the next message.
2222 exec 5>>./config.log
2230 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
2231 if test "${enable_64_bit_bfd+set}" = set; then
2232 enableval="$enable_64_bit_bfd"
2233 case "${enableval}" in
2236 *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;;
2241 # Check whether --enable-targets or --disable-targets was given.
2242 if test "${enable_targets+set}" = set; then
2243 enableval="$enable_targets"
2244 case "${enableval}" in
2245 yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
2247 no) enable_targets= ;;
2248 *) enable_targets=$enableval ;;
2251 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
2252 if test "${enable_commonbfdlib+set}" = set; then
2253 enableval="$enable_commonbfdlib"
2254 case "${enableval}" in
2255 yes) commonbfdlib=true ;;
2256 no) commonbfdlib=false ;;
2257 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
2260 # Check whether --with-mmap or --without-mmap was given.
2261 if test "${with_mmap+set}" = set; then
2262 withval="$with_mmap"
2263 case "${withval}" in
2264 yes) want_mmap=true ;;
2265 no) want_mmap=false ;;
2266 *) { echo "configure: error: bad value ${withval} for BFD with-mmap option" 1>&2; exit 1; } ;;
2272 build_warnings="-W -Wall"
2273 # Check whether --enable-build-warnings or --disable-build-warnings was given.
2274 if test "${enable_build_warnings+set}" = set; then
2275 enableval="$enable_build_warnings"
2276 case "${enableval}" in
2278 no) build_warnings="-w";;
2279 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
2280 build_warnings="${build_warnings} ${t}";;
2281 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
2282 build_warnings="${t} ${build_warnings}";;
2283 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2285 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
2286 echo "Setting warning flags = $build_warnings" 6>&1
2290 if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
2291 WARN_CFLAGS="${build_warnings}"
2299 if test -z "$target" ; then
2300 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
2303 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2304 echo "configure:2305: checking whether to enable maintainer-specific portions of Makefiles" >&5
2305 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2306 if test "${enable_maintainer_mode+set}" = set; then
2307 enableval="$enable_maintainer_mode"
2308 USE_MAINTAINER_MODE=$enableval
2310 USE_MAINTAINER_MODE=no
2313 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2316 if test $USE_MAINTAINER_MODE = yes; then
2317 MAINTAINER_MODE_TRUE=
2318 MAINTAINER_MODE_FALSE='#'
2320 MAINTAINER_MODE_TRUE='#'
2321 MAINTAINER_MODE_FALSE=
2323 MAINT=$MAINTAINER_MODE_TRUE
2328 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2329 echo "configure:2330: checking for executable suffix" >&5
2330 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2331 echo $ac_n "(cached) $ac_c" 1>&6
2333 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2337 echo 'int main () { return 0; }' > conftest.$ac_ext
2339 if { (eval echo configure:2340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2340 for file in conftest.*; do
2342 *.c | *.o | *.obj) ;;
2343 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2347 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2350 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2355 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2356 echo "$ac_t""${ac_cv_exeext}" 1>&6
2365 # Extract the first word of "gcc", so it can be a program name with args.
2366 set dummy gcc; ac_word=$2
2367 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2368 echo "configure:2369: checking for $ac_word" >&5
2369 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2370 echo $ac_n "(cached) $ac_c" 1>&6
2372 if test -n "$CC"; then
2373 ac_cv_prog_CC="$CC" # Let the user override the test.
2375 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2377 for ac_dir in $ac_dummy; do
2378 test -z "$ac_dir" && ac_dir=.
2379 if test -f $ac_dir/$ac_word; then
2388 if test -n "$CC"; then
2389 echo "$ac_t""$CC" 1>&6
2391 echo "$ac_t""no" 1>&6
2394 if test -z "$CC"; then
2395 # Extract the first word of "cc", so it can be a program name with args.
2396 set dummy cc; ac_word=$2
2397 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2398 echo "configure:2399: checking for $ac_word" >&5
2399 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2400 echo $ac_n "(cached) $ac_c" 1>&6
2402 if test -n "$CC"; then
2403 ac_cv_prog_CC="$CC" # Let the user override the test.
2405 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2408 for ac_dir in $ac_dummy; do
2409 test -z "$ac_dir" && ac_dir=.
2410 if test -f $ac_dir/$ac_word; then
2411 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2412 ac_prog_rejected=yes
2420 if test $ac_prog_rejected = yes; then
2421 # We found a bogon in the path, so make sure we never use it.
2422 set dummy $ac_cv_prog_CC
2424 if test $# -gt 0; then
2425 # We chose a different compiler from the bogus one.
2426 # However, it has the same basename, so the bogon will be chosen
2427 # first if we set CC to just the basename; use the full file name.
2429 set dummy "$ac_dir/$ac_word" "$@"
2437 if test -n "$CC"; then
2438 echo "$ac_t""$CC" 1>&6
2440 echo "$ac_t""no" 1>&6
2443 if test -z "$CC"; then
2444 case "`uname -s`" in
2446 # Extract the first word of "cl", so it can be a program name with args.
2447 set dummy cl; ac_word=$2
2448 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2449 echo "configure:2450: checking for $ac_word" >&5
2450 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2451 echo $ac_n "(cached) $ac_c" 1>&6
2453 if test -n "$CC"; then
2454 ac_cv_prog_CC="$CC" # Let the user override the test.
2456 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2458 for ac_dir in $ac_dummy; do
2459 test -z "$ac_dir" && ac_dir=.
2460 if test -f $ac_dir/$ac_word; then
2469 if test -n "$CC"; then
2470 echo "$ac_t""$CC" 1>&6
2472 echo "$ac_t""no" 1>&6
2477 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2480 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2481 echo "configure:2482: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2484 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2485 ac_cpp='$CPP $CPPFLAGS'
2486 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2487 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2488 cross_compiling=$ac_cv_prog_cc_cross
2490 cat > conftest.$ac_ext << EOF
2492 #line 2493 "configure"
2493 #include "confdefs.h"
2497 if { (eval echo configure:2498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2498 ac_cv_prog_cc_works=yes
2499 # If we can't run a trivial program, we are probably using a cross compiler.
2500 if (./conftest; exit) 2>/dev/null; then
2501 ac_cv_prog_cc_cross=no
2503 ac_cv_prog_cc_cross=yes
2506 echo "configure: failed program was:" >&5
2507 cat conftest.$ac_ext >&5
2508 ac_cv_prog_cc_works=no
2512 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2513 ac_cpp='$CPP $CPPFLAGS'
2514 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2515 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2516 cross_compiling=$ac_cv_prog_cc_cross
2518 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2519 if test $ac_cv_prog_cc_works = no; then
2520 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2522 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2523 echo "configure:2524: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2524 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2525 cross_compiling=$ac_cv_prog_cc_cross
2527 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2528 echo "configure:2529: checking whether we are using GNU C" >&5
2529 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2530 echo $ac_n "(cached) $ac_c" 1>&6
2532 cat > conftest.c <<EOF
2537 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2544 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2546 if test $ac_cv_prog_gcc = yes; then
2552 ac_test_CFLAGS="${CFLAGS+set}"
2553 ac_save_CFLAGS="$CFLAGS"
2555 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2556 echo "configure:2557: checking whether ${CC-cc} accepts -g" >&5
2557 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2558 echo $ac_n "(cached) $ac_c" 1>&6
2560 echo 'void f(){}' > conftest.c
2561 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2570 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2571 if test "$ac_test_CFLAGS" = set; then
2572 CFLAGS="$ac_save_CFLAGS"
2573 elif test $ac_cv_prog_cc_g = yes; then
2574 if test "$GCC" = yes; then
2580 if test "$GCC" = yes; then
2589 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2590 echo "configure:2591: checking how to run the C preprocessor" >&5
2591 # On Suns, sometimes $CPP names a directory.
2592 if test -n "$CPP" && test -d "$CPP"; then
2595 if test -z "$CPP"; then
2596 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2597 echo $ac_n "(cached) $ac_c" 1>&6
2599 # This must be in double quotes, not single quotes, because CPP may get
2600 # substituted into the Makefile and "${CC-cc}" will confuse make.
2602 # On the NeXT, cc -E runs the code through the compiler's parser,
2603 # not just through cpp.
2604 cat > conftest.$ac_ext <<EOF
2605 #line 2606 "configure"
2606 #include "confdefs.h"
2610 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2611 { (eval echo configure:2612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2612 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2613 if test -z "$ac_err"; then
2617 echo "configure: failed program was:" >&5
2618 cat conftest.$ac_ext >&5
2620 CPP="${CC-cc} -E -traditional-cpp"
2621 cat > conftest.$ac_ext <<EOF
2622 #line 2623 "configure"
2623 #include "confdefs.h"
2627 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2628 { (eval echo configure:2629: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2629 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2630 if test -z "$ac_err"; then
2634 echo "configure: failed program was:" >&5
2635 cat conftest.$ac_ext >&5
2637 CPP="${CC-cc} -nologo -E"
2638 cat > conftest.$ac_ext <<EOF
2639 #line 2640 "configure"
2640 #include "confdefs.h"
2644 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2645 { (eval echo configure:2646: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2646 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2647 if test -z "$ac_err"; then
2651 echo "configure: failed program was:" >&5
2652 cat conftest.$ac_ext >&5
2661 ac_cv_prog_CPP="$CPP"
2663 CPP="$ac_cv_prog_CPP"
2665 ac_cv_prog_CPP="$CPP"
2667 echo "$ac_t""$CPP" 1>&6
2669 # Extract the first word of "ranlib", so it can be a program name with args.
2670 set dummy ranlib; ac_word=$2
2671 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2672 echo "configure:2673: checking for $ac_word" >&5
2673 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2674 echo $ac_n "(cached) $ac_c" 1>&6
2676 if test -n "$RANLIB"; then
2677 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2679 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2681 for ac_dir in $ac_dummy; do
2682 test -z "$ac_dir" && ac_dir=.
2683 if test -f $ac_dir/$ac_word; then
2684 ac_cv_prog_RANLIB="ranlib"
2689 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2692 RANLIB="$ac_cv_prog_RANLIB"
2693 if test -n "$RANLIB"; then
2694 echo "$ac_t""$RANLIB" 1>&6
2696 echo "$ac_t""no" 1>&6
2699 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2700 echo "configure:2701: checking for ANSI C header files" >&5
2701 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2702 echo $ac_n "(cached) $ac_c" 1>&6
2704 cat > conftest.$ac_ext <<EOF
2705 #line 2706 "configure"
2706 #include "confdefs.h"
2712 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2713 { (eval echo configure:2714: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2714 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2715 if test -z "$ac_err"; then
2717 ac_cv_header_stdc=yes
2720 echo "configure: failed program was:" >&5
2721 cat conftest.$ac_ext >&5
2723 ac_cv_header_stdc=no
2727 if test $ac_cv_header_stdc = yes; then
2728 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2729 cat > conftest.$ac_ext <<EOF
2730 #line 2731 "configure"
2731 #include "confdefs.h"
2734 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2735 egrep "memchr" >/dev/null 2>&1; then
2739 ac_cv_header_stdc=no
2745 if test $ac_cv_header_stdc = yes; then
2746 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2747 cat > conftest.$ac_ext <<EOF
2748 #line 2749 "configure"
2749 #include "confdefs.h"
2752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2753 egrep "free" >/dev/null 2>&1; then
2757 ac_cv_header_stdc=no
2763 if test $ac_cv_header_stdc = yes; then
2764 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2765 if test "$cross_compiling" = yes; then
2768 cat > conftest.$ac_ext <<EOF
2769 #line 2770 "configure"
2770 #include "confdefs.h"
2772 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2773 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2774 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2775 int main () { int i; for (i = 0; i < 256; i++)
2776 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2780 if { (eval echo configure:2781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2784 echo "configure: failed program was:" >&5
2785 cat conftest.$ac_ext >&5
2787 ac_cv_header_stdc=no
2795 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2796 if test $ac_cv_header_stdc = yes; then
2797 cat >> confdefs.h <<\EOF
2798 #define STDC_HEADERS 1
2803 echo $ac_n "checking for working const""... $ac_c" 1>&6
2804 echo "configure:2805: checking for working const" >&5
2805 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2806 echo $ac_n "(cached) $ac_c" 1>&6
2808 cat > conftest.$ac_ext <<EOF
2809 #line 2810 "configure"
2810 #include "confdefs.h"
2814 /* Ultrix mips cc rejects this. */
2815 typedef int charset[2]; const charset x;
2816 /* SunOS 4.1.1 cc rejects this. */
2817 char const *const *ccp;
2819 /* NEC SVR4.0.2 mips cc rejects this. */
2820 struct point {int x, y;};
2821 static struct point const zero = {0,0};
2822 /* AIX XL C 1.02.0.0 rejects this.
2823 It does not let you subtract one const X* pointer from another in an arm
2824 of an if-expression whose if-part is not a constant expression */
2825 const char *g = "string";
2826 ccp = &g + (g ? g-g : 0);
2827 /* HPUX 7.0 cc rejects these. */
2830 ccp = (char const *const *) p;
2831 { /* SCO 3.2v4 cc rejects this. */
2833 char const *s = 0 ? (char *) 0 : (char const *) 0;
2837 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2839 const int *foo = &x[0];
2842 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2843 typedef const int *iptr;
2847 { /* AIX XL C 1.02.0.0 rejects this saying
2848 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2849 struct s { int j; const int *ap[3]; };
2850 struct s *b; b->j = 5;
2852 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2858 if { (eval echo configure:2859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2862 echo "configure: failed program was:" >&5
2863 cat conftest.$ac_ext >&5
2870 echo "$ac_t""$ac_cv_c_const" 1>&6
2871 if test $ac_cv_c_const = no; then
2872 cat >> confdefs.h <<\EOF
2878 echo $ac_n "checking for inline""... $ac_c" 1>&6
2879 echo "configure:2880: checking for inline" >&5
2880 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2881 echo $ac_n "(cached) $ac_c" 1>&6
2884 for ac_kw in inline __inline__ __inline; do
2885 cat > conftest.$ac_ext <<EOF
2886 #line 2887 "configure"
2887 #include "confdefs.h"
2893 if { (eval echo configure:2894: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2895 ac_cv_c_inline=$ac_kw; break
2897 echo "configure: failed program was:" >&5
2898 cat conftest.$ac_ext >&5
2905 echo "$ac_t""$ac_cv_c_inline" 1>&6
2906 case "$ac_cv_c_inline" in
2908 no) cat >> confdefs.h <<\EOF
2912 *) cat >> confdefs.h <<EOF
2913 #define inline $ac_cv_c_inline
2918 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2919 echo "configure:2920: checking for off_t" >&5
2920 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2921 echo $ac_n "(cached) $ac_c" 1>&6
2923 cat > conftest.$ac_ext <<EOF
2924 #line 2925 "configure"
2925 #include "confdefs.h"
2926 #include <sys/types.h>
2932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2933 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2935 ac_cv_type_off_t=yes
2943 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2944 if test $ac_cv_type_off_t = no; then
2945 cat >> confdefs.h <<\EOF
2951 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2952 echo "configure:2953: checking for size_t" >&5
2953 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2954 echo $ac_n "(cached) $ac_c" 1>&6
2956 cat > conftest.$ac_ext <<EOF
2957 #line 2958 "configure"
2958 #include "confdefs.h"
2959 #include <sys/types.h>
2965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2966 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2968 ac_cv_type_size_t=yes
2971 ac_cv_type_size_t=no
2976 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2977 if test $ac_cv_type_size_t = no; then
2978 cat >> confdefs.h <<\EOF
2979 #define size_t unsigned
2984 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2985 # for constant arguments. Useless!
2986 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2987 echo "configure:2988: checking for working alloca.h" >&5
2988 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2989 echo $ac_n "(cached) $ac_c" 1>&6
2991 cat > conftest.$ac_ext <<EOF
2992 #line 2993 "configure"
2993 #include "confdefs.h"
2996 char *p = alloca(2 * sizeof(int));
2999 if { (eval echo configure:3000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3001 ac_cv_header_alloca_h=yes
3003 echo "configure: failed program was:" >&5
3004 cat conftest.$ac_ext >&5
3006 ac_cv_header_alloca_h=no
3011 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3012 if test $ac_cv_header_alloca_h = yes; then
3013 cat >> confdefs.h <<\EOF
3014 #define HAVE_ALLOCA_H 1
3019 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3020 echo "configure:3021: checking for alloca" >&5
3021 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3022 echo $ac_n "(cached) $ac_c" 1>&6
3024 cat > conftest.$ac_ext <<EOF
3025 #line 3026 "configure"
3026 #include "confdefs.h"
3029 # define alloca __builtin_alloca
3032 # include <malloc.h>
3033 # define alloca _alloca
3036 # include <alloca.h>
3041 # ifndef alloca /* predefined by HP cc +Olibcalls */
3050 char *p = (char *) alloca(1);
3053 if { (eval echo configure:3054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3055 ac_cv_func_alloca_works=yes
3057 echo "configure: failed program was:" >&5
3058 cat conftest.$ac_ext >&5
3060 ac_cv_func_alloca_works=no
3065 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3066 if test $ac_cv_func_alloca_works = yes; then
3067 cat >> confdefs.h <<\EOF
3068 #define HAVE_ALLOCA 1
3073 if test $ac_cv_func_alloca_works = no; then
3074 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3075 # that cause trouble. Some versions do not even contain alloca or
3076 # contain a buggy version. If you still want to use their alloca,
3077 # use ar to extract alloca.o from them instead of compiling alloca.c.
3078 ALLOCA=alloca.${ac_objext}
3079 cat >> confdefs.h <<\EOF
3084 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3085 echo "configure:3086: checking whether alloca needs Cray hooks" >&5
3086 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3087 echo $ac_n "(cached) $ac_c" 1>&6
3089 cat > conftest.$ac_ext <<EOF
3090 #line 3091 "configure"
3091 #include "confdefs.h"
3092 #if defined(CRAY) && ! defined(CRAY2)
3099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3100 egrep "webecray" >/dev/null 2>&1; then
3111 echo "$ac_t""$ac_cv_os_cray" 1>&6
3112 if test $ac_cv_os_cray = yes; then
3113 for ac_func in _getb67 GETB67 getb67; do
3114 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3115 echo "configure:3116: checking for $ac_func" >&5
3116 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3117 echo $ac_n "(cached) $ac_c" 1>&6
3119 cat > conftest.$ac_ext <<EOF
3120 #line 3121 "configure"
3121 #include "confdefs.h"
3122 /* System header to define __stub macros and hopefully few prototypes,
3123 which can conflict with char $ac_func(); below. */
3125 /* Override any gcc2 internal prototype to avoid an error. */
3126 /* We use char because int might match the return type of a gcc2
3127 builtin and then its argument prototype would still apply. */
3132 /* The GNU C library defines this for functions which it implements
3133 to always fail with ENOSYS. Some functions are actually named
3134 something starting with __ and the normal name is an alias. */
3135 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3143 if { (eval echo configure:3144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3145 eval "ac_cv_func_$ac_func=yes"
3147 echo "configure: failed program was:" >&5
3148 cat conftest.$ac_ext >&5
3150 eval "ac_cv_func_$ac_func=no"
3155 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3156 echo "$ac_t""yes" 1>&6
3157 cat >> confdefs.h <<EOF
3158 #define CRAY_STACKSEG_END $ac_func
3163 echo "$ac_t""no" 1>&6
3169 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3170 echo "configure:3171: checking stack direction for C alloca" >&5
3171 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3172 echo $ac_n "(cached) $ac_c" 1>&6
3174 if test "$cross_compiling" = yes; then
3175 ac_cv_c_stack_direction=0
3177 cat > conftest.$ac_ext <<EOF
3178 #line 3179 "configure"
3179 #include "confdefs.h"
3180 find_stack_direction ()
3182 static char *addr = 0;
3187 return find_stack_direction ();
3190 return (&dummy > addr) ? 1 : -1;
3194 exit (find_stack_direction() < 0);
3197 if { (eval echo configure:3198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3199 ac_cv_c_stack_direction=1
3201 echo "configure: failed program was:" >&5
3202 cat conftest.$ac_ext >&5
3204 ac_cv_c_stack_direction=-1
3211 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3212 cat >> confdefs.h <<EOF
3213 #define STACK_DIRECTION $ac_cv_c_stack_direction
3218 for ac_hdr in unistd.h
3220 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3221 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3222 echo "configure:3223: checking for $ac_hdr" >&5
3223 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3224 echo $ac_n "(cached) $ac_c" 1>&6
3226 cat > conftest.$ac_ext <<EOF
3227 #line 3228 "configure"
3228 #include "confdefs.h"
3231 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3232 { (eval echo configure:3233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3233 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3234 if test -z "$ac_err"; then
3236 eval "ac_cv_header_$ac_safe=yes"
3239 echo "configure: failed program was:" >&5
3240 cat conftest.$ac_ext >&5
3242 eval "ac_cv_header_$ac_safe=no"
3246 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3247 echo "$ac_t""yes" 1>&6
3248 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3249 cat >> confdefs.h <<EOF
3250 #define $ac_tr_hdr 1
3254 echo "$ac_t""no" 1>&6
3258 for ac_func in getpagesize
3260 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3261 echo "configure:3262: checking for $ac_func" >&5
3262 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3263 echo $ac_n "(cached) $ac_c" 1>&6
3265 cat > conftest.$ac_ext <<EOF
3266 #line 3267 "configure"
3267 #include "confdefs.h"
3268 /* System header to define __stub macros and hopefully few prototypes,
3269 which can conflict with char $ac_func(); below. */
3271 /* Override any gcc2 internal prototype to avoid an error. */
3272 /* We use char because int might match the return type of a gcc2
3273 builtin and then its argument prototype would still apply. */
3278 /* The GNU C library defines this for functions which it implements
3279 to always fail with ENOSYS. Some functions are actually named
3280 something starting with __ and the normal name is an alias. */
3281 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3289 if { (eval echo configure:3290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3291 eval "ac_cv_func_$ac_func=yes"
3293 echo "configure: failed program was:" >&5
3294 cat conftest.$ac_ext >&5
3296 eval "ac_cv_func_$ac_func=no"
3301 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3302 echo "$ac_t""yes" 1>&6
3303 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3304 cat >> confdefs.h <<EOF
3305 #define $ac_tr_func 1
3309 echo "$ac_t""no" 1>&6
3313 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3314 echo "configure:3315: checking for working mmap" >&5
3315 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3316 echo $ac_n "(cached) $ac_c" 1>&6
3318 if test "$cross_compiling" = yes; then
3319 ac_cv_func_mmap_fixed_mapped=no
3321 cat > conftest.$ac_ext <<EOF
3322 #line 3323 "configure"
3323 #include "confdefs.h"
3325 /* Thanks to Mike Haertel and Jim Avera for this test.
3326 Here is a matrix of mmap possibilities:
3327 mmap private not fixed
3328 mmap private fixed at somewhere currently unmapped
3329 mmap private fixed at somewhere already mapped
3330 mmap shared not fixed
3331 mmap shared fixed at somewhere currently unmapped
3332 mmap shared fixed at somewhere already mapped
3333 For private mappings, we should verify that changes cannot be read()
3334 back from the file, nor mmap's back from the file at a different
3335 address. (There have been systems where private was not correctly
3336 implemented like the infamous i386 svr4.0, and systems where the
3337 VM page cache was not coherent with the filesystem buffer cache
3338 like early versions of FreeBSD and possibly contemporary NetBSD.)
3339 For shared mappings, we should conversely verify that changes get
3340 propogated back to all the places they're supposed to be.
3342 Grep wants private fixed already mapped.
3343 The main things grep needs to know about mmap are:
3344 * does it exist and is it safe to write into the mmap'd area
3345 * how to use it (BSD variants) */
3346 #include <sys/types.h>
3348 #include <sys/mman.h>
3350 /* This mess was copied from the GNU getpagesize.h. */
3351 #ifndef HAVE_GETPAGESIZE
3352 # ifdef HAVE_UNISTD_H
3353 # include <unistd.h>
3356 /* Assume that all systems that can run configure have sys/param.h. */
3357 # ifndef HAVE_SYS_PARAM_H
3358 # define HAVE_SYS_PARAM_H 1
3361 # ifdef _SC_PAGESIZE
3362 # define getpagesize() sysconf(_SC_PAGESIZE)
3363 # else /* no _SC_PAGESIZE */
3364 # ifdef HAVE_SYS_PARAM_H
3365 # include <sys/param.h>
3366 # ifdef EXEC_PAGESIZE
3367 # define getpagesize() EXEC_PAGESIZE
3368 # else /* no EXEC_PAGESIZE */
3370 # define getpagesize() NBPG * CLSIZE
3373 # endif /* no CLSIZE */
3374 # else /* no NBPG */
3376 # define getpagesize() NBPC
3377 # else /* no NBPC */
3379 # define getpagesize() PAGESIZE
3380 # endif /* PAGESIZE */
3381 # endif /* no NBPC */
3382 # endif /* no NBPG */
3383 # endif /* no EXEC_PAGESIZE */
3384 # else /* no HAVE_SYS_PARAM_H */
3385 # define getpagesize() 8192 /* punt totally */
3386 # endif /* no HAVE_SYS_PARAM_H */
3387 # endif /* no _SC_PAGESIZE */
3389 #endif /* no HAVE_GETPAGESIZE */
3392 extern "C" { void *malloc(unsigned); }
3400 char *data, *data2, *data3;
3404 pagesize = getpagesize();
3407 * First, make a file with some known garbage in it.
3409 data = malloc(pagesize);
3412 for (i = 0; i < pagesize; ++i)
3413 *(data + i) = rand();
3415 fd = creat("conftestmmap", 0600);
3418 if (write(fd, data, pagesize) != pagesize)
3423 * Next, try to mmap the file at a fixed address which
3424 * already has something else allocated at it. If we can,
3425 * also make sure that we see the same garbage.
3427 fd = open("conftestmmap", O_RDWR);
3430 data2 = malloc(2 * pagesize);
3433 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3434 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3435 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3437 for (i = 0; i < pagesize; ++i)
3438 if (*(data + i) != *(data2 + i))
3442 * Finally, make sure that changes to the mapped area
3443 * do not percolate back to the file as seen by read().
3444 * (This is a bug on some variants of i386 svr4.0.)
3446 for (i = 0; i < pagesize; ++i)
3447 *(data2 + i) = *(data2 + i) + 1;
3448 data3 = malloc(pagesize);
3451 if (read(fd, data3, pagesize) != pagesize)
3453 for (i = 0; i < pagesize; ++i)
3454 if (*(data + i) != *(data3 + i))
3457 unlink("conftestmmap");
3462 if { (eval echo configure:3463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3464 ac_cv_func_mmap_fixed_mapped=yes
3466 echo "configure: failed program was:" >&5
3467 cat conftest.$ac_ext >&5
3469 ac_cv_func_mmap_fixed_mapped=no
3476 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3477 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3478 cat >> confdefs.h <<\EOF
3485 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3486 unistd.h values.h sys/param.h
3488 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3489 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3490 echo "configure:3491: checking for $ac_hdr" >&5
3491 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3492 echo $ac_n "(cached) $ac_c" 1>&6
3494 cat > conftest.$ac_ext <<EOF
3495 #line 3496 "configure"
3496 #include "confdefs.h"
3499 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3500 { (eval echo configure:3501: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3501 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3502 if test -z "$ac_err"; then
3504 eval "ac_cv_header_$ac_safe=yes"
3507 echo "configure: failed program was:" >&5
3508 cat conftest.$ac_ext >&5
3510 eval "ac_cv_header_$ac_safe=no"
3514 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3515 echo "$ac_t""yes" 1>&6
3516 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3517 cat >> confdefs.h <<EOF
3518 #define $ac_tr_hdr 1
3522 echo "$ac_t""no" 1>&6
3526 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3527 __argz_count __argz_stringify __argz_next
3529 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3530 echo "configure:3531: checking for $ac_func" >&5
3531 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3532 echo $ac_n "(cached) $ac_c" 1>&6
3534 cat > conftest.$ac_ext <<EOF
3535 #line 3536 "configure"
3536 #include "confdefs.h"
3537 /* System header to define __stub macros and hopefully few prototypes,
3538 which can conflict with char $ac_func(); below. */
3540 /* Override any gcc2 internal prototype to avoid an error. */
3541 /* We use char because int might match the return type of a gcc2
3542 builtin and then its argument prototype would still apply. */
3547 /* The GNU C library defines this for functions which it implements
3548 to always fail with ENOSYS. Some functions are actually named
3549 something starting with __ and the normal name is an alias. */
3550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3558 if { (eval echo configure:3559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3560 eval "ac_cv_func_$ac_func=yes"
3562 echo "configure: failed program was:" >&5
3563 cat conftest.$ac_ext >&5
3565 eval "ac_cv_func_$ac_func=no"
3570 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3571 echo "$ac_t""yes" 1>&6
3572 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3573 cat >> confdefs.h <<EOF
3574 #define $ac_tr_func 1
3578 echo "$ac_t""no" 1>&6
3583 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3584 for ac_func in stpcpy
3586 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3587 echo "configure:3588: checking for $ac_func" >&5
3588 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3589 echo $ac_n "(cached) $ac_c" 1>&6
3591 cat > conftest.$ac_ext <<EOF
3592 #line 3593 "configure"
3593 #include "confdefs.h"
3594 /* System header to define __stub macros and hopefully few prototypes,
3595 which can conflict with char $ac_func(); below. */
3597 /* Override any gcc2 internal prototype to avoid an error. */
3598 /* We use char because int might match the return type of a gcc2
3599 builtin and then its argument prototype would still apply. */
3604 /* The GNU C library defines this for functions which it implements
3605 to always fail with ENOSYS. Some functions are actually named
3606 something starting with __ and the normal name is an alias. */
3607 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3615 if { (eval echo configure:3616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3617 eval "ac_cv_func_$ac_func=yes"
3619 echo "configure: failed program was:" >&5
3620 cat conftest.$ac_ext >&5
3622 eval "ac_cv_func_$ac_func=no"
3627 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3628 echo "$ac_t""yes" 1>&6
3629 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3630 cat >> confdefs.h <<EOF
3631 #define $ac_tr_func 1
3635 echo "$ac_t""no" 1>&6
3640 if test "${ac_cv_func_stpcpy}" = "yes"; then
3641 cat >> confdefs.h <<\EOF
3642 #define HAVE_STPCPY 1
3647 if test $ac_cv_header_locale_h = yes; then
3648 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3649 echo "configure:3650: checking for LC_MESSAGES" >&5
3650 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3651 echo $ac_n "(cached) $ac_c" 1>&6
3653 cat > conftest.$ac_ext <<EOF
3654 #line 3655 "configure"
3655 #include "confdefs.h"
3661 if { (eval echo configure:3662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3663 am_cv_val_LC_MESSAGES=yes
3665 echo "configure: failed program was:" >&5
3666 cat conftest.$ac_ext >&5
3668 am_cv_val_LC_MESSAGES=no
3673 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3674 if test $am_cv_val_LC_MESSAGES = yes; then
3675 cat >> confdefs.h <<\EOF
3676 #define HAVE_LC_MESSAGES 1
3681 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3682 echo "configure:3683: checking whether NLS is requested" >&5
3683 # Check whether --enable-nls or --disable-nls was given.
3684 if test "${enable_nls+set}" = set; then
3685 enableval="$enable_nls"
3691 echo "$ac_t""$USE_NLS" 1>&6
3694 USE_INCLUDED_LIBINTL=no
3696 if test "$USE_NLS" = "yes"; then
3697 cat >> confdefs.h <<\EOF
3698 #define ENABLE_NLS 1
3701 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3702 echo "configure:3703: checking whether included gettext is requested" >&5
3703 # Check whether --with-included-gettext or --without-included-gettext was given.
3704 if test "${with_included_gettext+set}" = set; then
3705 withval="$with_included_gettext"
3706 nls_cv_force_use_gnu_gettext=$withval
3708 nls_cv_force_use_gnu_gettext=no
3711 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3713 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3714 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3716 nls_cv_header_libgt=
3719 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3720 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3721 echo "configure:3722: checking for libintl.h" >&5
3722 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3723 echo $ac_n "(cached) $ac_c" 1>&6
3725 cat > conftest.$ac_ext <<EOF
3726 #line 3727 "configure"
3727 #include "confdefs.h"
3728 #include <libintl.h>
3730 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3731 { (eval echo configure:3732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3732 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3733 if test -z "$ac_err"; then
3735 eval "ac_cv_header_$ac_safe=yes"
3738 echo "configure: failed program was:" >&5
3739 cat conftest.$ac_ext >&5
3741 eval "ac_cv_header_$ac_safe=no"
3745 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3746 echo "$ac_t""yes" 1>&6
3747 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3748 echo "configure:3749: checking for gettext in libc" >&5
3749 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3750 echo $ac_n "(cached) $ac_c" 1>&6
3752 cat > conftest.$ac_ext <<EOF
3753 #line 3754 "configure"
3754 #include "confdefs.h"
3755 #include <libintl.h>
3757 return (int) gettext ("")
3760 if { (eval echo configure:3761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3762 gt_cv_func_gettext_libc=yes
3764 echo "configure: failed program was:" >&5
3765 cat conftest.$ac_ext >&5
3767 gt_cv_func_gettext_libc=no
3772 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3774 if test "$gt_cv_func_gettext_libc" != "yes"; then
3775 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3776 echo "configure:3777: checking for bindtextdomain in -lintl" >&5
3777 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3778 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3779 echo $ac_n "(cached) $ac_c" 1>&6
3781 ac_save_LIBS="$LIBS"
3783 cat > conftest.$ac_ext <<EOF
3784 #line 3785 "configure"
3785 #include "confdefs.h"
3786 /* Override any gcc2 internal prototype to avoid an error. */
3787 /* We use char because int might match the return type of a gcc2
3788 builtin and then its argument prototype would still apply. */
3789 char bindtextdomain();
3795 if { (eval echo configure:3796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3797 eval "ac_cv_lib_$ac_lib_var=yes"
3799 echo "configure: failed program was:" >&5
3800 cat conftest.$ac_ext >&5
3802 eval "ac_cv_lib_$ac_lib_var=no"
3805 LIBS="$ac_save_LIBS"
3808 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3809 echo "$ac_t""yes" 1>&6
3810 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3811 echo "configure:3812: checking for gettext in libintl" >&5
3812 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3813 echo $ac_n "(cached) $ac_c" 1>&6
3815 cat > conftest.$ac_ext <<EOF
3816 #line 3817 "configure"
3817 #include "confdefs.h"
3820 return (int) gettext ("")
3823 if { (eval echo configure:3824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3825 gt_cv_func_gettext_libintl=yes
3827 echo "configure: failed program was:" >&5
3828 cat conftest.$ac_ext >&5
3830 gt_cv_func_gettext_libintl=no
3835 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3837 echo "$ac_t""no" 1>&6
3842 if test "$gt_cv_func_gettext_libc" = "yes" \
3843 || test "$gt_cv_func_gettext_libintl" = "yes"; then
3844 cat >> confdefs.h <<\EOF
3845 #define HAVE_GETTEXT 1
3848 # Extract the first word of "msgfmt", so it can be a program name with args.
3849 set dummy msgfmt; ac_word=$2
3850 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3851 echo "configure:3852: checking for $ac_word" >&5
3852 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3853 echo $ac_n "(cached) $ac_c" 1>&6
3857 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3860 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3861 for ac_dir in $PATH; do
3862 test -z "$ac_dir" && ac_dir=.
3863 if test -f $ac_dir/$ac_word; then
3864 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3865 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3871 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
3875 MSGFMT="$ac_cv_path_MSGFMT"
3876 if test -n "$MSGFMT"; then
3877 echo "$ac_t""$MSGFMT" 1>&6
3879 echo "$ac_t""no" 1>&6
3881 if test "$MSGFMT" != "no"; then
3882 for ac_func in dcgettext
3884 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3885 echo "configure:3886: checking for $ac_func" >&5
3886 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3887 echo $ac_n "(cached) $ac_c" 1>&6
3889 cat > conftest.$ac_ext <<EOF
3890 #line 3891 "configure"
3891 #include "confdefs.h"
3892 /* System header to define __stub macros and hopefully few prototypes,
3893 which can conflict with char $ac_func(); below. */
3895 /* Override any gcc2 internal prototype to avoid an error. */
3896 /* We use char because int might match the return type of a gcc2
3897 builtin and then its argument prototype would still apply. */
3902 /* The GNU C library defines this for functions which it implements
3903 to always fail with ENOSYS. Some functions are actually named
3904 something starting with __ and the normal name is an alias. */
3905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3913 if { (eval echo configure:3914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3915 eval "ac_cv_func_$ac_func=yes"
3917 echo "configure: failed program was:" >&5
3918 cat conftest.$ac_ext >&5
3920 eval "ac_cv_func_$ac_func=no"
3925 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3926 echo "$ac_t""yes" 1>&6
3927 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3928 cat >> confdefs.h <<EOF
3929 #define $ac_tr_func 1
3933 echo "$ac_t""no" 1>&6
3937 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3938 set dummy gmsgfmt; ac_word=$2
3939 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3940 echo "configure:3941: checking for $ac_word" >&5
3941 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3942 echo $ac_n "(cached) $ac_c" 1>&6
3946 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3949 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3952 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3954 for ac_dir in $ac_dummy; do
3955 test -z "$ac_dir" && ac_dir=.
3956 if test -f $ac_dir/$ac_word; then
3957 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3962 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3966 GMSGFMT="$ac_cv_path_GMSGFMT"
3967 if test -n "$GMSGFMT"; then
3968 echo "$ac_t""$GMSGFMT" 1>&6
3970 echo "$ac_t""no" 1>&6
3973 # Extract the first word of "xgettext", so it can be a program name with args.
3974 set dummy xgettext; ac_word=$2
3975 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3976 echo "configure:3977: checking for $ac_word" >&5
3977 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3978 echo $ac_n "(cached) $ac_c" 1>&6
3982 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3985 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3986 for ac_dir in $PATH; do
3987 test -z "$ac_dir" && ac_dir=.
3988 if test -f $ac_dir/$ac_word; then
3989 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3990 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3996 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4000 XGETTEXT="$ac_cv_path_XGETTEXT"
4001 if test -n "$XGETTEXT"; then
4002 echo "$ac_t""$XGETTEXT" 1>&6
4004 echo "$ac_t""no" 1>&6
4007 cat > conftest.$ac_ext <<EOF
4008 #line 4009 "configure"
4009 #include "confdefs.h"
4012 extern int _nl_msg_cat_cntr;
4013 return _nl_msg_cat_cntr
4016 if { (eval echo configure:4017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4021 echo "configure: failed program was:" >&5
4022 cat conftest.$ac_ext >&5
4033 echo "$ac_t""no" 1>&6
4038 if test "$CATOBJEXT" = "NONE"; then
4039 nls_cv_use_gnu_gettext=yes
4043 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4044 INTLOBJS="\$(GETTOBJS)"
4045 # Extract the first word of "msgfmt", so it can be a program name with args.
4046 set dummy msgfmt; ac_word=$2
4047 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4048 echo "configure:4049: checking for $ac_word" >&5
4049 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4050 echo $ac_n "(cached) $ac_c" 1>&6
4054 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4057 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4058 for ac_dir in $PATH; do
4059 test -z "$ac_dir" && ac_dir=.
4060 if test -f $ac_dir/$ac_word; then
4061 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4062 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4068 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
4072 MSGFMT="$ac_cv_path_MSGFMT"
4073 if test -n "$MSGFMT"; then
4074 echo "$ac_t""$MSGFMT" 1>&6
4076 echo "$ac_t""no" 1>&6
4079 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4080 set dummy gmsgfmt; ac_word=$2
4081 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4082 echo "configure:4083: checking for $ac_word" >&5
4083 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4084 echo $ac_n "(cached) $ac_c" 1>&6
4088 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4091 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4094 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4096 for ac_dir in $ac_dummy; do
4097 test -z "$ac_dir" && ac_dir=.
4098 if test -f $ac_dir/$ac_word; then
4099 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4104 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4108 GMSGFMT="$ac_cv_path_GMSGFMT"
4109 if test -n "$GMSGFMT"; then
4110 echo "$ac_t""$GMSGFMT" 1>&6
4112 echo "$ac_t""no" 1>&6
4115 # Extract the first word of "xgettext", so it can be a program name with args.
4116 set dummy xgettext; ac_word=$2
4117 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4118 echo "configure:4119: checking for $ac_word" >&5
4119 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4120 echo $ac_n "(cached) $ac_c" 1>&6
4124 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4127 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4128 for ac_dir in $PATH; do
4129 test -z "$ac_dir" && ac_dir=.
4130 if test -f $ac_dir/$ac_word; then
4131 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4132 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4138 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4142 XGETTEXT="$ac_cv_path_XGETTEXT"
4143 if test -n "$XGETTEXT"; then
4144 echo "$ac_t""$XGETTEXT" 1>&6
4146 echo "$ac_t""no" 1>&6
4150 USE_INCLUDED_LIBINTL=yes
4154 INTLDEPS='$(top_builddir)/../intl/libintl.a'
4156 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
4157 nls_cv_header_intl=libintl.h
4158 nls_cv_header_libgt=libgettext.h
4161 if test "$XGETTEXT" != ":"; then
4162 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
4165 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4170 # We need to process the po/ directory.
4174 nls_cv_header_intl=libintl.h
4175 nls_cv_header_libgt=libgettext.h
4178 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4179 # because some of the sources are only built for this goal.
4180 if test "$PACKAGE" = gettext; then
4182 USE_INCLUDED_LIBINTL=yes
4185 for lang in $ALL_LINGUAS; do
4186 GMOFILES="$GMOFILES $lang.gmo"
4187 POFILES="$POFILES $lang.po"
4203 if test "x$CATOBJEXT" != "x"; then
4204 if test "x$ALL_LINGUAS" = "x"; then
4207 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4208 echo "configure:4209: checking for catalogs to be installed" >&5
4210 for lang in ${LINGUAS=$ALL_LINGUAS}; do
4211 case "$ALL_LINGUAS" in
4212 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
4215 LINGUAS=$NEW_LINGUAS
4216 echo "$ac_t""$LINGUAS" 1>&6
4219 if test -n "$LINGUAS"; then
4220 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
4224 if test $ac_cv_header_locale_h = yes; then
4225 INCLUDE_LOCALE_H="#include <locale.h>"
4228 /* The system does not provide the header <locale.h>. Take care yourself. */"
4232 if test -f $srcdir/po2tbl.sed.in; then
4233 if test "$CATOBJEXT" = ".cat"; then
4234 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4235 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4236 echo "configure:4237: checking for linux/version.h" >&5
4237 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4238 echo $ac_n "(cached) $ac_c" 1>&6
4240 cat > conftest.$ac_ext <<EOF
4241 #line 4242 "configure"
4242 #include "confdefs.h"
4243 #include <linux/version.h>
4245 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4246 { (eval echo configure:4247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4247 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4248 if test -z "$ac_err"; then
4250 eval "ac_cv_header_$ac_safe=yes"
4253 echo "configure: failed program was:" >&5
4254 cat conftest.$ac_ext >&5
4256 eval "ac_cv_header_$ac_safe=no"
4260 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4261 echo "$ac_t""yes" 1>&6
4264 echo "$ac_t""no" 1>&6
4269 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
4271 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4272 $srcdir/po2tbl.sed.in > po2tbl.sed
4275 if test "$PACKAGE" = "gettext"; then
4285 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
4291 if test -d $srcdir/po; then
4292 test -d po || mkdir po
4293 if test "x$srcdir" != "x."; then
4294 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4295 posrcprefix="$srcdir/"
4297 posrcprefix="../$srcdir/"
4303 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4304 < $srcdir/po/POTFILES.in > po/POTFILES
4308 # Permit host specific settings.
4309 . ${srcdir}/configure.host
4312 # Find a good install program. We prefer a C program (faster),
4313 # so one script is as good as another. But avoid the broken or
4314 # incompatible versions:
4315 # SysV /etc/install, /usr/sbin/install
4316 # SunOS /usr/etc/install
4317 # IRIX /sbin/install
4319 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4320 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4321 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4322 # ./install, which can be erroneously created by make from ./install.sh.
4323 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4324 echo "configure:4325: checking for a BSD compatible install" >&5
4325 if test -z "$INSTALL"; then
4326 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4327 echo $ac_n "(cached) $ac_c" 1>&6
4329 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
4330 for ac_dir in $PATH; do
4331 # Account for people who put trailing slashes in PATH elements.
4333 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
4335 # OSF1 and SCO ODT 3.0 have their own names for install.
4336 # Don't use installbsd from OSF since it installs stuff as root
4338 for ac_prog in ginstall scoinst install; do
4339 if test -f $ac_dir/$ac_prog; then
4340 if test $ac_prog = install &&
4341 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
4342 # AIX install. It has an incompatible calling convention.
4345 ac_cv_path_install="$ac_dir/$ac_prog -c"
4356 if test "${ac_cv_path_install+set}" = set; then
4357 INSTALL="$ac_cv_path_install"
4359 # As a last resort, use the slow shell script. We don't cache a
4360 # path for INSTALL within a source directory, because that will
4361 # break other packages using the cache if that directory is
4362 # removed, or if the path is relative.
4363 INSTALL="$ac_install_sh"
4366 echo "$ac_t""$INSTALL" 1>&6
4368 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4369 # It thinks the first close brace ends the variable substitution.
4370 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4372 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
4374 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4377 BFD_HOST_64BIT_LONG=0
4378 BFD_HOST_64_BIT_DEFINED=0
4381 if test "x${HOST_64BIT_TYPE}" = "xlong"; then
4382 BFD_HOST_64BIT_LONG=1
4383 elif test "x${HOST_64BIT_TYPE}" != "x"; then
4384 BFD_HOST_64_BIT_DEFINED=1
4385 BFD_HOST_64_BIT=${HOST_64BIT_TYPE}
4386 BFD_HOST_U_64_BIT=${HOST_U_64BIT_TYPE}
4393 # Put a plausible default for CC_FOR_BUILD in Makefile.
4394 if test -z "$CC_FOR_BUILD"; then
4395 if test "x$cross_compiling" = "xno"; then
4396 CC_FOR_BUILD='$(CC)'
4402 # Also set EXEEXT_FOR_BUILD.
4403 if test "x$cross_compiling" = "xno"; then
4404 EXEEXT_FOR_BUILD='$(EXEEXT)'
4406 echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
4407 echo "configure:4408: checking for build system executable suffix" >&5
4408 if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
4409 echo $ac_n "(cached) $ac_c" 1>&6
4412 echo 'int main () { return 0; }' > conftest.c
4413 bfd_cv_build_exeext=
4414 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
4415 for file in conftest.*; do
4417 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
4418 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4422 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
4425 echo "$ac_t""$bfd_cv_build_exeext" 1>&6
4427 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
4431 for ac_hdr in stddef.h string.h strings.h stdlib.h time.h unistd.h
4433 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4434 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4435 echo "configure:4436: checking for $ac_hdr" >&5
4436 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4437 echo $ac_n "(cached) $ac_c" 1>&6
4439 cat > conftest.$ac_ext <<EOF
4440 #line 4441 "configure"
4441 #include "confdefs.h"
4444 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4445 { (eval echo configure:4446: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4446 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4447 if test -z "$ac_err"; then
4449 eval "ac_cv_header_$ac_safe=yes"
4452 echo "configure: failed program was:" >&5
4453 cat conftest.$ac_ext >&5
4455 eval "ac_cv_header_$ac_safe=no"
4459 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4460 echo "$ac_t""yes" 1>&6
4461 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4462 cat >> confdefs.h <<EOF
4463 #define $ac_tr_hdr 1
4467 echo "$ac_t""no" 1>&6
4471 for ac_hdr in fcntl.h sys/file.h sys/time.h
4473 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4474 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4475 echo "configure:4476: checking for $ac_hdr" >&5
4476 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4477 echo $ac_n "(cached) $ac_c" 1>&6
4479 cat > conftest.$ac_ext <<EOF
4480 #line 4481 "configure"
4481 #include "confdefs.h"
4484 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4485 { (eval echo configure:4486: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4486 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4487 if test -z "$ac_err"; then
4489 eval "ac_cv_header_$ac_safe=yes"
4492 echo "configure: failed program was:" >&5
4493 cat conftest.$ac_ext >&5
4495 eval "ac_cv_header_$ac_safe=no"
4499 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4500 echo "$ac_t""yes" 1>&6
4501 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4502 cat >> confdefs.h <<EOF
4503 #define $ac_tr_hdr 1
4507 echo "$ac_t""no" 1>&6
4511 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4512 echo "configure:4513: checking whether time.h and sys/time.h may both be included" >&5
4513 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4514 echo $ac_n "(cached) $ac_c" 1>&6
4516 cat > conftest.$ac_ext <<EOF
4517 #line 4518 "configure"
4518 #include "confdefs.h"
4519 #include <sys/types.h>
4520 #include <sys/time.h>
4526 if { (eval echo configure:4527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4528 ac_cv_header_time=yes
4530 echo "configure: failed program was:" >&5
4531 cat conftest.$ac_ext >&5
4533 ac_cv_header_time=no
4538 echo "$ac_t""$ac_cv_header_time" 1>&6
4539 if test $ac_cv_header_time = yes; then
4540 cat >> confdefs.h <<\EOF
4541 #define TIME_WITH_SYS_TIME 1
4547 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4549 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4550 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4551 echo "configure:4552: checking for $ac_hdr that defines DIR" >&5
4552 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
4553 echo $ac_n "(cached) $ac_c" 1>&6
4555 cat > conftest.$ac_ext <<EOF
4556 #line 4557 "configure"
4557 #include "confdefs.h"
4558 #include <sys/types.h>
4564 if { (eval echo configure:4565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4566 eval "ac_cv_header_dirent_$ac_safe=yes"
4568 echo "configure: failed program was:" >&5
4569 cat conftest.$ac_ext >&5
4571 eval "ac_cv_header_dirent_$ac_safe=no"
4575 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4576 echo "$ac_t""yes" 1>&6
4577 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4578 cat >> confdefs.h <<EOF
4579 #define $ac_tr_hdr 1
4581 ac_header_dirent=$ac_hdr; break
4583 echo "$ac_t""no" 1>&6
4586 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4587 if test $ac_header_dirent = dirent.h; then
4588 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4589 echo "configure:4590: checking for opendir in -ldir" >&5
4590 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
4591 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4592 echo $ac_n "(cached) $ac_c" 1>&6
4594 ac_save_LIBS="$LIBS"
4596 cat > conftest.$ac_ext <<EOF
4597 #line 4598 "configure"
4598 #include "confdefs.h"
4599 /* Override any gcc2 internal prototype to avoid an error. */
4600 /* We use char because int might match the return type of a gcc2
4601 builtin and then its argument prototype would still apply. */
4608 if { (eval echo configure:4609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4610 eval "ac_cv_lib_$ac_lib_var=yes"
4612 echo "configure: failed program was:" >&5
4613 cat conftest.$ac_ext >&5
4615 eval "ac_cv_lib_$ac_lib_var=no"
4618 LIBS="$ac_save_LIBS"
4621 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4622 echo "$ac_t""yes" 1>&6
4625 echo "$ac_t""no" 1>&6
4629 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4630 echo "configure:4631: checking for opendir in -lx" >&5
4631 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
4632 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4633 echo $ac_n "(cached) $ac_c" 1>&6
4635 ac_save_LIBS="$LIBS"
4637 cat > conftest.$ac_ext <<EOF
4638 #line 4639 "configure"
4639 #include "confdefs.h"
4640 /* Override any gcc2 internal prototype to avoid an error. */
4641 /* We use char because int might match the return type of a gcc2
4642 builtin and then its argument prototype would still apply. */
4649 if { (eval echo configure:4650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4651 eval "ac_cv_lib_$ac_lib_var=yes"
4653 echo "configure: failed program was:" >&5
4654 cat conftest.$ac_ext >&5
4656 eval "ac_cv_lib_$ac_lib_var=no"
4659 LIBS="$ac_save_LIBS"
4662 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4663 echo "$ac_t""yes" 1>&6
4666 echo "$ac_t""no" 1>&6
4671 for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
4673 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4674 echo "configure:4675: checking for $ac_func" >&5
4675 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4676 echo $ac_n "(cached) $ac_c" 1>&6
4678 cat > conftest.$ac_ext <<EOF
4679 #line 4680 "configure"
4680 #include "confdefs.h"
4681 /* System header to define __stub macros and hopefully few prototypes,
4682 which can conflict with char $ac_func(); below. */
4684 /* Override any gcc2 internal prototype to avoid an error. */
4685 /* We use char because int might match the return type of a gcc2
4686 builtin and then its argument prototype would still apply. */
4691 /* The GNU C library defines this for functions which it implements
4692 to always fail with ENOSYS. Some functions are actually named
4693 something starting with __ and the normal name is an alias. */
4694 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4702 if { (eval echo configure:4703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4704 eval "ac_cv_func_$ac_func=yes"
4706 echo "configure: failed program was:" >&5
4707 cat conftest.$ac_ext >&5
4709 eval "ac_cv_func_$ac_func=no"
4714 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4715 echo "$ac_t""yes" 1>&6
4716 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4717 cat >> confdefs.h <<EOF
4718 #define $ac_tr_func 1
4722 echo "$ac_t""no" 1>&6
4729 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
4730 cat >> confdefs.h <<\EOF
4731 #define USE_BINARY_FOPEN 1
4736 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4737 echo "configure:4738: checking whether strstr must be declared" >&5
4738 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
4739 echo $ac_n "(cached) $ac_c" 1>&6
4741 cat > conftest.$ac_ext <<EOF
4742 #line 4743 "configure"
4743 #include "confdefs.h"
4746 #ifdef HAVE_STRING_H
4749 #ifdef HAVE_STRINGS_H
4750 #include <strings.h>
4753 #ifdef HAVE_STDLIB_H
4756 #ifdef HAVE_UNISTD_H
4760 char *(*pfn) = (char *(*)) strstr
4763 if { (eval echo configure:4764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4765 bfd_cv_decl_needed_strstr=no
4767 echo "configure: failed program was:" >&5
4768 cat conftest.$ac_ext >&5
4770 bfd_cv_decl_needed_strstr=yes
4775 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4776 if test $bfd_cv_decl_needed_strstr = yes; then
4777 cat >> confdefs.h <<\EOF
4778 #define NEED_DECLARATION_STRSTR 1
4783 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
4784 echo "configure:4785: checking whether malloc must be declared" >&5
4785 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
4786 echo $ac_n "(cached) $ac_c" 1>&6
4788 cat > conftest.$ac_ext <<EOF
4789 #line 4790 "configure"
4790 #include "confdefs.h"
4793 #ifdef HAVE_STRING_H
4796 #ifdef HAVE_STRINGS_H
4797 #include <strings.h>
4800 #ifdef HAVE_STDLIB_H
4803 #ifdef HAVE_UNISTD_H
4807 char *(*pfn) = (char *(*)) malloc
4810 if { (eval echo configure:4811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4812 bfd_cv_decl_needed_malloc=no
4814 echo "configure: failed program was:" >&5
4815 cat conftest.$ac_ext >&5
4817 bfd_cv_decl_needed_malloc=yes
4822 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
4823 if test $bfd_cv_decl_needed_malloc = yes; then
4824 cat >> confdefs.h <<\EOF
4825 #define NEED_DECLARATION_MALLOC 1
4830 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
4831 echo "configure:4832: checking whether realloc must be declared" >&5
4832 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
4833 echo $ac_n "(cached) $ac_c" 1>&6
4835 cat > conftest.$ac_ext <<EOF
4836 #line 4837 "configure"
4837 #include "confdefs.h"
4840 #ifdef HAVE_STRING_H
4843 #ifdef HAVE_STRINGS_H
4844 #include <strings.h>
4847 #ifdef HAVE_STDLIB_H
4850 #ifdef HAVE_UNISTD_H
4854 char *(*pfn) = (char *(*)) realloc
4857 if { (eval echo configure:4858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4859 bfd_cv_decl_needed_realloc=no
4861 echo "configure: failed program was:" >&5
4862 cat conftest.$ac_ext >&5
4864 bfd_cv_decl_needed_realloc=yes
4869 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
4870 if test $bfd_cv_decl_needed_realloc = yes; then
4871 cat >> confdefs.h <<\EOF
4872 #define NEED_DECLARATION_REALLOC 1
4877 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
4878 echo "configure:4879: checking whether free must be declared" >&5
4879 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
4880 echo $ac_n "(cached) $ac_c" 1>&6
4882 cat > conftest.$ac_ext <<EOF
4883 #line 4884 "configure"
4884 #include "confdefs.h"
4887 #ifdef HAVE_STRING_H
4890 #ifdef HAVE_STRINGS_H
4891 #include <strings.h>
4894 #ifdef HAVE_STDLIB_H
4897 #ifdef HAVE_UNISTD_H
4901 char *(*pfn) = (char *(*)) free
4904 if { (eval echo configure:4905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4906 bfd_cv_decl_needed_free=no
4908 echo "configure: failed program was:" >&5
4909 cat conftest.$ac_ext >&5
4911 bfd_cv_decl_needed_free=yes
4916 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
4917 if test $bfd_cv_decl_needed_free = yes; then
4918 cat >> confdefs.h <<\EOF
4919 #define NEED_DECLARATION_FREE 1
4924 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
4925 echo "configure:4926: checking whether getenv must be declared" >&5
4926 if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
4927 echo $ac_n "(cached) $ac_c" 1>&6
4929 cat > conftest.$ac_ext <<EOF
4930 #line 4931 "configure"
4931 #include "confdefs.h"
4934 #ifdef HAVE_STRING_H
4937 #ifdef HAVE_STRINGS_H
4938 #include <strings.h>
4941 #ifdef HAVE_STDLIB_H
4944 #ifdef HAVE_UNISTD_H
4948 char *(*pfn) = (char *(*)) getenv
4951 if { (eval echo configure:4952: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4953 bfd_cv_decl_needed_getenv=no
4955 echo "configure: failed program was:" >&5
4956 cat conftest.$ac_ext >&5
4958 bfd_cv_decl_needed_getenv=yes
4963 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
4964 if test $bfd_cv_decl_needed_getenv = yes; then
4965 cat >> confdefs.h <<\EOF
4966 #define NEED_DECLARATION_GETENV 1
4972 # If we are configured native, pick a core file support file.
4976 if test "${target}" = "${host}"; then
4981 alpha*-*-linux-gnu*)
4982 COREFILE=trad-core.lo
4983 TRAD_HEADER='"hosts/alphalinux.h"'
4985 alpha*-*-netbsd*) COREFILE=netbsd-core.lo ;;
4986 alpha*-*-*) COREFILE=osf-core.lo ;;
4987 arm-*-freebsd*) COREFILE='' ;;
4988 arm-*-riscix) COREFILE=trad-core.lo ;;
4989 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
4990 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
4991 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
4992 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
4993 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
4995 COREFILE=trad-core.lo
4996 TRAD_HEADER='"hosts/i370linux.h"'
4999 i[3456]86-sequent-bsd*)
5000 COREFILE=trad-core.lo
5001 TRAD_HEADER='"hosts/symmetry.h"'
5003 i[3456]86-sequent-sysv4*) ;;
5004 i[3456]86-sequent-sysv*)
5005 COREFILE=trad-core.lo
5006 TRAD_HEADER='"hosts/symmetry.h"'
5008 i[3456]86-*-bsd* | i[34567]86-*-freebsd[1234] | i[34567]86-*-freebsd[1234]\.* | i[34567]86-*-freebsd*aout*)
5009 COREFILE=trad-core.lo
5010 TRAD_HEADER='"hosts/i386bsd.h"'
5012 i[3456]86-*-freebsd*)
5014 TRAD_HEADER='"hosts/i386bsd.h"'
5016 i[3456]86-*-netbsd* | i[3456]86-*-openbsd*)
5017 COREFILE=netbsd-core.lo
5019 i[3456]86-esix-sysv3*)
5020 COREFILE=trad-core.lo
5021 TRAD_HEADER='"hosts/esix.h"'
5023 i[3456]86-*-sco3.2v5*)
5024 COREFILE=sco5-core.lo
5026 i[3456]86-*-sco* | i[3456]86-*-isc*)
5027 COREFILE=trad-core.lo
5028 TRAD_HEADER='"hosts/i386sco.h"'
5031 COREFILE=trad-core.lo
5032 TRAD_HEADER='"hosts/i386mach3.h"'
5034 i[3456]86-*-linux-gnu*)
5035 COREFILE=trad-core.lo
5036 TRAD_HEADER='"hosts/i386linux.h"'
5038 i[3456]86-*-isc*) COREFILE=trad-core.lo ;;
5039 i[3456]86-*-aix*) COREFILE=aix386-core.lo ;;
5040 i860-*-mach3* | i860-*-osf1*)
5041 COREFILE=trad-core.lo
5042 TRAD_HEADER='"hosts/i860mach3.h"'
5045 COREFILE=trad-core.lo
5046 TRAD_HEADER='"hosts/mipsbsd.h"'
5049 COREFILE=trad-core.lo
5050 TRAD_HEADER='"hosts/mipsmach3.h"'
5052 mips-*-netbsd* | mips*-*-openbsd*)
5053 COREFILE=netbsd-core.lo
5056 COREFILE=trad-core.lo
5057 TRAD_HEADER='"hosts/decstation.h"'
5059 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
5060 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
5061 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
5063 COREFILE=trad-core.lo
5064 TRAD_HEADER='"hosts/mipsmach3.h"'
5067 mips-*-sysv* | mips-*-riscos*)
5068 COREFILE=trad-core.lo
5069 TRAD_HEADER='"hosts/riscos.h"'
5072 COREFILE=trad-core.lo
5073 TRAD_HEADER='"hosts/news-mips.h"'
5076 COREFILE=trad-core.lo
5077 TRAD_HEADER='"hosts/dpx2.h"'
5079 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
5081 COREFILE=trad-core.lo
5082 TRAD_HEADER='"hosts/hp300bsd.h"'
5085 COREFILE=trad-core.lo
5086 TRAD_HEADER='"hosts/m68klinux.h"'
5088 m68*-motorola-sysv*)
5089 COREFILE=trad-core.lo
5090 TRAD_HEADER='"hosts/delta68.h"'
5093 COREFILE=trad-core.lo
5094 TRAD_HEADER='"hosts/news.h"'
5096 m68*-*-netbsd* | m68*-*-openbsd*)
5097 COREFILE=netbsd-core.lo
5100 COREFILE=trad-core.lo
5101 TRAD_HEADER='"hosts/m68kaux.h"'
5104 m88*-motorola-sysv*) COREFILE=ptrace-core.lo ;;
5106 COREFILE=trad-core.lo
5107 TRAD_HEADER='"hosts/m88kmach3.h"'
5110 COREFILE=trad-core.lo
5111 TRAD_HEADER='"hosts/pc532mach.h"'
5113 ns32k-*-netbsd* | ns32k-*-openbsd*)
5114 COREFILE=netbsd-core.lo
5116 rs6000-*-lynx*) COREFILE=lynx-core.lo ;;
5117 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
5118 COREFILE=rs6000-core.lo
5119 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
5121 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
5122 rs6000-*-*) COREFILE=rs6000-core.lo ;;
5123 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
5124 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
5126 powerpc-*-freebsd*) COREFILE='' ;;
5127 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
5128 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
5129 s390*-*-*) COREFILE=trad-core.lo ;;
5130 sparc-*-netbsd* | sparc-*-openbsd*)
5131 COREFILE=netbsd-core.lo
5134 COREFILE=trad-core.lo
5135 TRAD_HEADER='"hosts/tahoe.h"'
5138 COREFILE=trad-core.lo
5139 TRAD_HEADER='"hosts/vaxult2.h"'
5142 COREFILE=trad-core.lo
5143 TRAD_HEADER='"hosts/vaxult2.h"'
5146 COREFILE=trad-core.lo
5147 TRAD_HEADER='"hosts/vaxbsd.h"'
5152 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
5153 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
5154 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
5155 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
5156 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
5157 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
5158 osf-core.lo) COREFLAG=-DOSF_CORE ;;
5159 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
5160 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
5161 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
5162 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
5165 # ELF corefile support has several flavors, but all of
5166 # them use something called <sys/procfs.h>
5167 for ac_hdr in sys/procfs.h
5169 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5170 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5171 echo "configure:5172: checking for $ac_hdr" >&5
5172 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5173 echo $ac_n "(cached) $ac_c" 1>&6
5175 cat > conftest.$ac_ext <<EOF
5176 #line 5177 "configure"
5177 #include "confdefs.h"
5180 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5181 { (eval echo configure:5182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5182 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5183 if test -z "$ac_err"; then
5185 eval "ac_cv_header_$ac_safe=yes"
5188 echo "configure: failed program was:" >&5
5189 cat conftest.$ac_ext >&5
5191 eval "ac_cv_header_$ac_safe=no"
5195 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5196 echo "$ac_t""yes" 1>&6
5197 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5198 cat >> confdefs.h <<EOF
5199 #define $ac_tr_hdr 1
5203 echo "$ac_t""no" 1>&6
5207 if test "$ac_cv_header_sys_procfs_h" = yes; then
5208 echo $ac_n "checking for prstatus_t in sys/procfs.h""... $ac_c" 1>&6
5209 echo "configure:5210: checking for prstatus_t in sys/procfs.h" >&5
5210 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus_t'+set}'`\" = set"; then
5211 echo $ac_n "(cached) $ac_c" 1>&6
5213 cat > conftest.$ac_ext <<EOF
5214 #line 5215 "configure"
5215 #include "confdefs.h"
5218 #include <sys/procfs.h>
5223 if { (eval echo configure:5224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5225 bfd_cv_have_sys_procfs_type_prstatus_t=yes
5227 echo "configure: failed program was:" >&5
5228 cat conftest.$ac_ext >&5
5230 bfd_cv_have_sys_procfs_type_prstatus_t=no
5236 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
5237 cat >> confdefs.h <<\EOF
5238 #define HAVE_PRSTATUS_T 1
5242 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus_t" 1>&6
5244 echo $ac_n "checking for prstatus32_t in sys/procfs.h""... $ac_c" 1>&6
5245 echo "configure:5246: checking for prstatus32_t in sys/procfs.h" >&5
5246 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus32_t'+set}'`\" = set"; then
5247 echo $ac_n "(cached) $ac_c" 1>&6
5249 cat > conftest.$ac_ext <<EOF
5250 #line 5251 "configure"
5251 #include "confdefs.h"
5254 #include <sys/procfs.h>
5259 if { (eval echo configure:5260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5261 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
5263 echo "configure: failed program was:" >&5
5264 cat conftest.$ac_ext >&5
5266 bfd_cv_have_sys_procfs_type_prstatus32_t=no
5272 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
5273 cat >> confdefs.h <<\EOF
5274 #define HAVE_PRSTATUS32_T 1
5278 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus32_t" 1>&6
5280 echo $ac_n "checking for prstatus_t.pr_who in sys/procfs.h""... $ac_c" 1>&6
5281 echo "configure:5282: checking for prstatus_t.pr_who in sys/procfs.h" >&5
5282 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who'+set}'`\" = set"; then
5283 echo $ac_n "(cached) $ac_c" 1>&6
5285 cat > conftest.$ac_ext <<EOF
5286 #line 5287 "configure"
5287 #include "confdefs.h"
5290 #include <sys/procfs.h>
5292 prstatus_t avar; void* aref = (void*) &avar.pr_who
5295 if { (eval echo configure:5296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5297 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
5299 echo "configure: failed program was:" >&5
5300 cat conftest.$ac_ext >&5
5302 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
5308 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
5309 cat >> confdefs.h <<\EOF
5310 #define HAVE_PRSTATUS_T_PR_WHO 1
5314 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" 1>&6
5316 echo $ac_n "checking for prstatus32_t.pr_who in sys/procfs.h""... $ac_c" 1>&6
5317 echo "configure:5318: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
5318 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who'+set}'`\" = set"; then
5319 echo $ac_n "(cached) $ac_c" 1>&6
5321 cat > conftest.$ac_ext <<EOF
5322 #line 5323 "configure"
5323 #include "confdefs.h"
5326 #include <sys/procfs.h>
5328 prstatus32_t avar; void* aref = (void*) &avar.pr_who
5331 if { (eval echo configure:5332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5333 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
5335 echo "configure: failed program was:" >&5
5336 cat conftest.$ac_ext >&5
5338 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
5344 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
5345 cat >> confdefs.h <<\EOF
5346 #define HAVE_PRSTATUS32_T_PR_WHO 1
5350 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" 1>&6
5352 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
5353 echo "configure:5354: checking for pstatus_t in sys/procfs.h" >&5
5354 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
5355 echo $ac_n "(cached) $ac_c" 1>&6
5357 cat > conftest.$ac_ext <<EOF
5358 #line 5359 "configure"
5359 #include "confdefs.h"
5362 #include <sys/procfs.h>
5367 if { (eval echo configure:5368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5369 bfd_cv_have_sys_procfs_type_pstatus_t=yes
5371 echo "configure: failed program was:" >&5
5372 cat conftest.$ac_ext >&5
5374 bfd_cv_have_sys_procfs_type_pstatus_t=no
5380 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
5381 cat >> confdefs.h <<\EOF
5382 #define HAVE_PSTATUS_T 1
5386 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
5388 echo $ac_n "checking for pxstatus_t in sys/procfs.h""... $ac_c" 1>&6
5389 echo "configure:5390: checking for pxstatus_t in sys/procfs.h" >&5
5390 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pxstatus_t'+set}'`\" = set"; then
5391 echo $ac_n "(cached) $ac_c" 1>&6
5393 cat > conftest.$ac_ext <<EOF
5394 #line 5395 "configure"
5395 #include "confdefs.h"
5398 #include <sys/procfs.h>
5403 if { (eval echo configure:5404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5405 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
5407 echo "configure: failed program was:" >&5
5408 cat conftest.$ac_ext >&5
5410 bfd_cv_have_sys_procfs_type_pxstatus_t=no
5416 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
5417 cat >> confdefs.h <<\EOF
5418 #define HAVE_PXSTATUS_T 1
5422 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pxstatus_t" 1>&6
5424 echo $ac_n "checking for pstatus32_t in sys/procfs.h""... $ac_c" 1>&6
5425 echo "configure:5426: checking for pstatus32_t in sys/procfs.h" >&5
5426 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus32_t'+set}'`\" = set"; then
5427 echo $ac_n "(cached) $ac_c" 1>&6
5429 cat > conftest.$ac_ext <<EOF
5430 #line 5431 "configure"
5431 #include "confdefs.h"
5434 #include <sys/procfs.h>
5439 if { (eval echo configure:5440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5441 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
5443 echo "configure: failed program was:" >&5
5444 cat conftest.$ac_ext >&5
5446 bfd_cv_have_sys_procfs_type_pstatus32_t=no
5452 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
5453 cat >> confdefs.h <<\EOF
5454 #define HAVE_PSTATUS32_T 1
5458 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus32_t" 1>&6
5460 echo $ac_n "checking for prpsinfo_t in sys/procfs.h""... $ac_c" 1>&6
5461 echo "configure:5462: checking for prpsinfo_t in sys/procfs.h" >&5
5462 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo_t'+set}'`\" = set"; then
5463 echo $ac_n "(cached) $ac_c" 1>&6
5465 cat > conftest.$ac_ext <<EOF
5466 #line 5467 "configure"
5467 #include "confdefs.h"
5470 #include <sys/procfs.h>
5475 if { (eval echo configure:5476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5477 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
5479 echo "configure: failed program was:" >&5
5480 cat conftest.$ac_ext >&5
5482 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
5488 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
5489 cat >> confdefs.h <<\EOF
5490 #define HAVE_PRPSINFO_T 1
5494 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo_t" 1>&6
5496 echo $ac_n "checking for prpsinfo32_t in sys/procfs.h""... $ac_c" 1>&6
5497 echo "configure:5498: checking for prpsinfo32_t in sys/procfs.h" >&5
5498 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo32_t'+set}'`\" = set"; then
5499 echo $ac_n "(cached) $ac_c" 1>&6
5501 cat > conftest.$ac_ext <<EOF
5502 #line 5503 "configure"
5503 #include "confdefs.h"
5506 #include <sys/procfs.h>
5511 if { (eval echo configure:5512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5513 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
5515 echo "configure: failed program was:" >&5
5516 cat conftest.$ac_ext >&5
5518 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
5524 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
5525 cat >> confdefs.h <<\EOF
5526 #define HAVE_PRPSINFO32_T 1
5530 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo32_t" 1>&6
5532 echo $ac_n "checking for psinfo_t in sys/procfs.h""... $ac_c" 1>&6
5533 echo "configure:5534: checking for psinfo_t in sys/procfs.h" >&5
5534 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo_t'+set}'`\" = set"; then
5535 echo $ac_n "(cached) $ac_c" 1>&6
5537 cat > conftest.$ac_ext <<EOF
5538 #line 5539 "configure"
5539 #include "confdefs.h"
5542 #include <sys/procfs.h>
5547 if { (eval echo configure:5548: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5549 bfd_cv_have_sys_procfs_type_psinfo_t=yes
5551 echo "configure: failed program was:" >&5
5552 cat conftest.$ac_ext >&5
5554 bfd_cv_have_sys_procfs_type_psinfo_t=no
5560 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
5561 cat >> confdefs.h <<\EOF
5562 #define HAVE_PSINFO_T 1
5566 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo_t" 1>&6
5568 echo $ac_n "checking for psinfo32_t in sys/procfs.h""... $ac_c" 1>&6
5569 echo "configure:5570: checking for psinfo32_t in sys/procfs.h" >&5
5570 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo32_t'+set}'`\" = set"; then
5571 echo $ac_n "(cached) $ac_c" 1>&6
5573 cat > conftest.$ac_ext <<EOF
5574 #line 5575 "configure"
5575 #include "confdefs.h"
5578 #include <sys/procfs.h>
5583 if { (eval echo configure:5584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5585 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
5587 echo "configure: failed program was:" >&5
5588 cat conftest.$ac_ext >&5
5590 bfd_cv_have_sys_procfs_type_psinfo32_t=no
5596 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
5597 cat >> confdefs.h <<\EOF
5598 #define HAVE_PSINFO32_T 1
5602 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo32_t" 1>&6
5604 echo $ac_n "checking for lwpstatus_t in sys/procfs.h""... $ac_c" 1>&6
5605 echo "configure:5606: checking for lwpstatus_t in sys/procfs.h" >&5
5606 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpstatus_t'+set}'`\" = set"; then
5607 echo $ac_n "(cached) $ac_c" 1>&6
5609 cat > conftest.$ac_ext <<EOF
5610 #line 5611 "configure"
5611 #include "confdefs.h"
5614 #include <sys/procfs.h>
5619 if { (eval echo configure:5620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5621 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
5623 echo "configure: failed program was:" >&5
5624 cat conftest.$ac_ext >&5
5626 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
5632 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
5633 cat >> confdefs.h <<\EOF
5634 #define HAVE_LWPSTATUS_T 1
5638 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpstatus_t" 1>&6
5640 echo $ac_n "checking for lwpxstatus_t in sys/procfs.h""... $ac_c" 1>&6
5641 echo "configure:5642: checking for lwpxstatus_t in sys/procfs.h" >&5
5642 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpxstatus_t'+set}'`\" = set"; then
5643 echo $ac_n "(cached) $ac_c" 1>&6
5645 cat > conftest.$ac_ext <<EOF
5646 #line 5647 "configure"
5647 #include "confdefs.h"
5650 #include <sys/procfs.h>
5655 if { (eval echo configure:5656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5657 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
5659 echo "configure: failed program was:" >&5
5660 cat conftest.$ac_ext >&5
5662 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
5668 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
5669 cat >> confdefs.h <<\EOF
5670 #define HAVE_LWPXSTATUS_T 1
5674 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpxstatus_t" 1>&6
5676 echo $ac_n "checking for lwpstatus_t.pr_context in sys/procfs.h""... $ac_c" 1>&6
5677 echo "configure:5678: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
5678 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context'+set}'`\" = set"; then
5679 echo $ac_n "(cached) $ac_c" 1>&6
5681 cat > conftest.$ac_ext <<EOF
5682 #line 5683 "configure"
5683 #include "confdefs.h"
5686 #include <sys/procfs.h>
5688 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
5691 if { (eval echo configure:5692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5693 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
5695 echo "configure: failed program was:" >&5
5696 cat conftest.$ac_ext >&5
5698 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
5704 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
5705 cat >> confdefs.h <<\EOF
5706 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
5710 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" 1>&6
5712 echo $ac_n "checking for lwpstatus_t.pr_reg in sys/procfs.h""... $ac_c" 1>&6
5713 echo "configure:5714: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
5714 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg'+set}'`\" = set"; then
5715 echo $ac_n "(cached) $ac_c" 1>&6
5717 cat > conftest.$ac_ext <<EOF
5718 #line 5719 "configure"
5719 #include "confdefs.h"
5722 #include <sys/procfs.h>
5724 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
5727 if { (eval echo configure:5728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5729 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
5731 echo "configure: failed program was:" >&5
5732 cat conftest.$ac_ext >&5
5734 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
5740 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
5741 cat >> confdefs.h <<\EOF
5742 #define HAVE_LWPSTATUS_T_PR_REG 1
5746 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" 1>&6
5748 echo $ac_n "checking for win32_pstatus_t in sys/procfs.h""... $ac_c" 1>&6
5749 echo "configure:5750: checking for win32_pstatus_t in sys/procfs.h" >&5
5750 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_win32_pstatus_t'+set}'`\" = set"; then
5751 echo $ac_n "(cached) $ac_c" 1>&6
5753 cat > conftest.$ac_ext <<EOF
5754 #line 5755 "configure"
5755 #include "confdefs.h"
5758 #include <sys/procfs.h>
5760 win32_pstatus_t avar
5763 if { (eval echo configure:5764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5765 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
5767 echo "configure: failed program was:" >&5
5768 cat conftest.$ac_ext >&5
5770 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
5776 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
5777 cat >> confdefs.h <<\EOF
5778 #define HAVE_WIN32_PSTATUS_T 1
5782 echo "$ac_t""$bfd_cv_have_sys_procfs_type_win32_pstatus_t" 1>&6
5788 if test -n "$TRAD_HEADER"; then
5789 cat >> confdefs.h <<EOF
5790 #define TRAD_HEADER $TRAD_HEADER
5795 # Horrible hacks to build DLLs on Windows.
5800 if test "$enable_shared" = "yes"; then
5801 WIN32LDFLAGS="-no-undefined"
5802 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
5811 # Canonicalize the secondary target names.
5812 if test -n "$enable_targets" ; then
5813 for targ in `echo $enable_targets | sed 's/,/ /g'`
5815 result=`$ac_config_sub $targ 2>/dev/null`
5816 if test -n "$result" ; then
5817 canon_targets="$canon_targets $result"
5819 # Allow targets that config.sub doesn't recognize, like "all".
5820 canon_targets="$canon_targets $targ"
5830 for targ in $target $canon_targets
5832 if test "x$targ" = "xall"; then
5835 . $srcdir/config.bfd
5836 if test "x$targ" = "x$target"; then
5839 selvecs="$selvecs $targ_defvec $targ_selvecs"
5840 selarchs="$selarchs $targ_archs"
5841 TDEFINES="$TDEFINES $targ_cflags"
5846 # This processing still needs to be done if we're to decide properly whether
5847 # 64-bit support needs to be compiled in. Currently, it will be included if
5848 # the default or any other explicitly requested target requires it; it
5849 # will not be included on a 32-bit host if no 64-bit target is requested, and
5850 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
5853 # uniq the default and selected vectors in all the configured targets.
5855 for i in $selvecs ; do
5864 # uniq the architectures in all the configured targets.
5866 for i in $selarchs ; do
5874 # Target backend .o files.
5877 elf="elf.lo elflink.lo dwarf1.lo"
5882 # This list is alphabetized to make it easy to compare
5883 # with the two vector lists in targets.c.
5884 a29kcoff_big_vec) tb="$tb coff-a29k.lo cofflink.lo" ;;
5885 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
5886 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
5887 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
5888 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
5889 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
5890 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
5891 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
5892 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
5893 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
5894 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
5895 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
5896 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
5897 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
5898 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
5899 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
5900 aout_mips_big_vec) tb="$tb mipsbsd.lo aout32.lo" ;;
5901 aout_mips_little_vec) tb="$tb mipsbsd.lo aout32.lo" ;;
5902 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
5903 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
5904 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
5905 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
5906 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"
5908 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"
5910 bfd_elf64_hppa_vec | bfd_elf64_hppa_linux_vec)
5911 tb="$tb elf64-hppa.lo elf64.lo $elf"
5913 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"
5915 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"
5917 bfd_elf64_ia64_aix_little_vec)
5918 tb="$tb elf64-ia64.lo elf64.lo $elf"
5920 bfd_elf64_ia64_aix_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"
5922 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
5923 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
5924 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
5925 bfd_elf32_littlearm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
5926 bfd_elf32_littlearm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
5927 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
5928 bfd_elf32_bigarm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
5929 bfd_elf32_bigarm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
5930 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
5931 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
5932 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"
5934 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
5935 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
5936 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
5937 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
5938 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
5939 bfd_elf32_hppa_vec | bfd_elf32_hppa_linux_vec)
5940 tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
5941 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
5942 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;;
5943 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"
5945 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
5946 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
5947 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
5948 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
5949 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
5950 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"
5952 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
5953 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32.lo $elf" ;;
5954 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32.lo $elf" ;;
5955 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
5956 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
5957 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
5958 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
5959 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
5960 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
5961 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
5962 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
5963 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
5964 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
5965 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
5966 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
5967 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
5968 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
5969 bfd_elf32_shlin_vec) tb="$tb elf32-sh-lin.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
5970 bfd_elf32_shblin_vec) tb="$tb elf32-sh-lin.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
5971 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elf32.lo $elf" ;;
5972 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
5973 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
5974 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
5975 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"
5977 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"
5979 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"
5981 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elf64.lo $elf"
5983 bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo $elf ecofflink.lo"
5985 bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo $elf ecofflink.lo"
5987 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
5988 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
5989 cris_aout_vec) tb="$tb aout-cris.lo" ;;
5990 demo_64_vec) tb="$tb demo64.lo aout64.lo"
5992 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
5993 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
5994 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
5995 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"
5997 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
5998 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
5999 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
6000 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
6001 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
6002 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
6003 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
6004 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
6005 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
6006 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
6007 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
6008 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
6009 i386msdos_vec) tb="$tb i386msdos.lo" ;;
6010 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
6011 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
6012 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
6013 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
6014 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
6015 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
6016 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
6017 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
6018 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
6019 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
6020 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
6021 ieee_vec) tb="$tb ieee.lo" ;;
6022 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
6023 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
6024 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
6025 m68klynx_aout_vec) tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
6026 m68klynx_coff_vec) tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
6027 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
6028 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
6029 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
6030 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
6031 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
6032 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
6033 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
6034 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
6035 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
6036 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
6037 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
6038 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
6039 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
6040 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo"
6042 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
6043 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"
6045 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
6046 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
6047 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
6048 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
6049 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
6050 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
6051 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
6052 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
6053 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
6054 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
6055 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
6056 ppcboot_vec) tb="$tb ppcboot.lo" ;;
6057 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
6058 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
6059 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
6060 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
6061 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
6062 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
6063 som_vec) tb="$tb som.lo" ;;
6064 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
6065 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
6066 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
6067 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
6068 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
6069 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
6070 srec_vec) tb="$tb srec.lo" ;;
6071 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
6072 symbolsrec_vec) tb="$tb srec.lo" ;;
6073 tekhex_vec) tb="$tb tekhex.lo" ;;
6074 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
6075 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
6076 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
6077 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
6078 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
6079 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
6080 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
6081 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
6082 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
6083 versados_vec) tb="$tb versados.lo" ;;
6084 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"
6086 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
6087 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
6088 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
6089 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo" ;;
6092 *) { echo "configure: error: *** unknown target vector $vec" 1>&2; exit 1; } ;;
6096 # Target architecture .o files.
6097 # A couple of CPUs use shorter file names to avoid problems on DOS
6099 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
6101 # Weed out duplicate .o files.
6123 if test x${all_targets} = xtrue ; then
6124 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
6125 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
6129 else # all_targets is true
6130 # Only set these if they will be nonempty, for the clever echo.
6132 test -n "$selvecs" &&
6133 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
6134 test -n "$selvecs" &&
6135 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
6136 test -n "$selarchs" &&
6137 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
6138 fi # all_targets is true
6140 case ${host64}-${target64}-${want64} in
6143 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
6144 if test -z "$GCC" && test "$BFD_HOST_64BIT_LONG" = "0" && test "$BFD_HOST_64_BIT_DEFINED" = "0"; then
6145 echo "configure: warning: You have requested a 64 bit BFD configuration, but" 1>&2
6146 echo "configure: warning: your compiler may not have a 64 bit integral type" 1>&2
6151 all_backends='$(BFD32_BACKENDS)'
6161 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
6162 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
6163 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
6164 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
6167 for ac_hdr in unistd.h
6169 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6170 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6171 echo "configure:6172: checking for $ac_hdr" >&5
6172 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6173 echo $ac_n "(cached) $ac_c" 1>&6
6175 cat > conftest.$ac_ext <<EOF
6176 #line 6177 "configure"
6177 #include "confdefs.h"
6180 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6181 { (eval echo configure:6182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6182 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6183 if test -z "$ac_err"; then
6185 eval "ac_cv_header_$ac_safe=yes"
6188 echo "configure: failed program was:" >&5
6189 cat conftest.$ac_ext >&5
6191 eval "ac_cv_header_$ac_safe=no"
6195 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6196 echo "$ac_t""yes" 1>&6
6197 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6198 cat >> confdefs.h <<EOF
6199 #define $ac_tr_hdr 1
6203 echo "$ac_t""no" 1>&6
6207 for ac_func in getpagesize
6209 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6210 echo "configure:6211: checking for $ac_func" >&5
6211 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6212 echo $ac_n "(cached) $ac_c" 1>&6
6214 cat > conftest.$ac_ext <<EOF
6215 #line 6216 "configure"
6216 #include "confdefs.h"
6217 /* System header to define __stub macros and hopefully few prototypes,
6218 which can conflict with char $ac_func(); below. */
6220 /* Override any gcc2 internal prototype to avoid an error. */
6221 /* We use char because int might match the return type of a gcc2
6222 builtin and then its argument prototype would still apply. */
6227 /* The GNU C library defines this for functions which it implements
6228 to always fail with ENOSYS. Some functions are actually named
6229 something starting with __ and the normal name is an alias. */
6230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6238 if { (eval echo configure:6239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6240 eval "ac_cv_func_$ac_func=yes"
6242 echo "configure: failed program was:" >&5
6243 cat conftest.$ac_ext >&5
6245 eval "ac_cv_func_$ac_func=no"
6250 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6251 echo "$ac_t""yes" 1>&6
6252 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6253 cat >> confdefs.h <<EOF
6254 #define $ac_tr_func 1
6258 echo "$ac_t""no" 1>&6
6262 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
6263 echo "configure:6264: checking for working mmap" >&5
6264 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
6265 echo $ac_n "(cached) $ac_c" 1>&6
6267 if test "$cross_compiling" = yes; then
6268 ac_cv_func_mmap_fixed_mapped=no
6270 cat > conftest.$ac_ext <<EOF
6271 #line 6272 "configure"
6272 #include "confdefs.h"
6274 /* Thanks to Mike Haertel and Jim Avera for this test.
6275 Here is a matrix of mmap possibilities:
6276 mmap private not fixed
6277 mmap private fixed at somewhere currently unmapped
6278 mmap private fixed at somewhere already mapped
6279 mmap shared not fixed
6280 mmap shared fixed at somewhere currently unmapped
6281 mmap shared fixed at somewhere already mapped
6282 For private mappings, we should verify that changes cannot be read()
6283 back from the file, nor mmap's back from the file at a different
6284 address. (There have been systems where private was not correctly
6285 implemented like the infamous i386 svr4.0, and systems where the
6286 VM page cache was not coherent with the filesystem buffer cache
6287 like early versions of FreeBSD and possibly contemporary NetBSD.)
6288 For shared mappings, we should conversely verify that changes get
6289 propogated back to all the places they're supposed to be.
6291 Grep wants private fixed already mapped.
6292 The main things grep needs to know about mmap are:
6293 * does it exist and is it safe to write into the mmap'd area
6294 * how to use it (BSD variants) */
6295 #include <sys/types.h>
6297 #include <sys/mman.h>
6299 /* This mess was copied from the GNU getpagesize.h. */
6300 #ifndef HAVE_GETPAGESIZE
6301 # ifdef HAVE_UNISTD_H
6302 # include <unistd.h>
6305 /* Assume that all systems that can run configure have sys/param.h. */
6306 # ifndef HAVE_SYS_PARAM_H
6307 # define HAVE_SYS_PARAM_H 1
6310 # ifdef _SC_PAGESIZE
6311 # define getpagesize() sysconf(_SC_PAGESIZE)
6312 # else /* no _SC_PAGESIZE */
6313 # ifdef HAVE_SYS_PARAM_H
6314 # include <sys/param.h>
6315 # ifdef EXEC_PAGESIZE
6316 # define getpagesize() EXEC_PAGESIZE
6317 # else /* no EXEC_PAGESIZE */
6319 # define getpagesize() NBPG * CLSIZE
6322 # endif /* no CLSIZE */
6323 # else /* no NBPG */
6325 # define getpagesize() NBPC
6326 # else /* no NBPC */
6328 # define getpagesize() PAGESIZE
6329 # endif /* PAGESIZE */
6330 # endif /* no NBPC */
6331 # endif /* no NBPG */
6332 # endif /* no EXEC_PAGESIZE */
6333 # else /* no HAVE_SYS_PARAM_H */
6334 # define getpagesize() 8192 /* punt totally */
6335 # endif /* no HAVE_SYS_PARAM_H */
6336 # endif /* no _SC_PAGESIZE */
6338 #endif /* no HAVE_GETPAGESIZE */
6341 extern "C" { void *malloc(unsigned); }
6349 char *data, *data2, *data3;
6353 pagesize = getpagesize();
6356 * First, make a file with some known garbage in it.
6358 data = malloc(pagesize);
6361 for (i = 0; i < pagesize; ++i)
6362 *(data + i) = rand();
6364 fd = creat("conftestmmap", 0600);
6367 if (write(fd, data, pagesize) != pagesize)
6372 * Next, try to mmap the file at a fixed address which
6373 * already has something else allocated at it. If we can,
6374 * also make sure that we see the same garbage.
6376 fd = open("conftestmmap", O_RDWR);
6379 data2 = malloc(2 * pagesize);
6382 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6383 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
6384 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6386 for (i = 0; i < pagesize; ++i)
6387 if (*(data + i) != *(data2 + i))
6391 * Finally, make sure that changes to the mapped area
6392 * do not percolate back to the file as seen by read().
6393 * (This is a bug on some variants of i386 svr4.0.)
6395 for (i = 0; i < pagesize; ++i)
6396 *(data2 + i) = *(data2 + i) + 1;
6397 data3 = malloc(pagesize);
6400 if (read(fd, data3, pagesize) != pagesize)
6402 for (i = 0; i < pagesize; ++i)
6403 if (*(data + i) != *(data3 + i))
6406 unlink("conftestmmap");
6411 if { (eval echo configure:6412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6413 ac_cv_func_mmap_fixed_mapped=yes
6415 echo "configure: failed program was:" >&5
6416 cat conftest.$ac_ext >&5
6418 ac_cv_func_mmap_fixed_mapped=no
6425 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
6426 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6427 cat >> confdefs.h <<\EOF
6433 for ac_func in madvise mprotect
6435 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6436 echo "configure:6437: checking for $ac_func" >&5
6437 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6438 echo $ac_n "(cached) $ac_c" 1>&6
6440 cat > conftest.$ac_ext <<EOF
6441 #line 6442 "configure"
6442 #include "confdefs.h"
6443 /* System header to define __stub macros and hopefully few prototypes,
6444 which can conflict with char $ac_func(); below. */
6446 /* Override any gcc2 internal prototype to avoid an error. */
6447 /* We use char because int might match the return type of a gcc2
6448 builtin and then its argument prototype would still apply. */
6453 /* The GNU C library defines this for functions which it implements
6454 to always fail with ENOSYS. Some functions are actually named
6455 something starting with __ and the normal name is an alias. */
6456 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6464 if { (eval echo configure:6465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6466 eval "ac_cv_func_$ac_func=yes"
6468 echo "configure: failed program was:" >&5
6469 cat conftest.$ac_ext >&5
6471 eval "ac_cv_func_$ac_func=no"
6476 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6477 echo "$ac_t""yes" 1>&6
6478 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6479 cat >> confdefs.h <<EOF
6480 #define $ac_tr_func 1
6484 echo "$ac_t""no" 1>&6
6488 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
6489 true+yes ) cat >> confdefs.h <<\EOF
6495 rm -f doc/config.status
6497 cat > confcache <<\EOF
6498 # This file is a shell script that caches the results of configure
6499 # tests run on this system so they can be shared between configure
6500 # scripts and configure runs. It is not useful on other systems.
6501 # If it contains results you don't want to keep, you may remove or edit it.
6503 # By default, configure uses ./config.cache as the cache file,
6504 # creating it if it does not exist already. You can give configure
6505 # the --cache-file=FILE option to use a different cache file; that is
6506 # what configure does when it calls configure scripts in
6507 # subdirectories, so they share the cache.
6508 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6509 # config.status only pays attention to the cache file if you give it the
6510 # --recheck option to rerun configure.
6513 # The following way of writing the cache mishandles newlines in values,
6514 # but we know of no workaround that is simple, portable, and efficient.
6515 # So, don't put newlines in cache variables' values.
6516 # Ultrix sh set writes to stderr and can't be redirected directly,
6517 # and sets the high bit in the cache file unless we assign to the vars.
6519 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6521 # `set' does not quote correctly, so add quotes (double-quote substitution
6522 # turns \\\\ into \\, and sed turns \\ into \).
6524 -e "s/'/'\\\\''/g" \
6525 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6528 # `set' quotes correctly as required by POSIX, so do not add quotes.
6529 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6532 if cmp -s $cache_file confcache; then
6535 if test -w $cache_file; then
6536 echo "updating cache $cache_file"
6537 cat confcache > $cache_file
6539 echo "not updating unwritable cache $cache_file"
6544 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6546 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6547 # Let make expand exec_prefix.
6548 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6550 # Any assignment to VPATH causes Sun make to only execute
6551 # the first set of double-colon rules, so remove it if not needed.
6552 # If there is a colon in the path, we need to keep it.
6553 if test "x$srcdir" = x.; then
6554 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6557 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6559 DEFS=-DHAVE_CONFIG_H
6561 # Without the "./", some shells look in PATH for config.status.
6562 : ${CONFIG_STATUS=./config.status}
6564 echo creating $CONFIG_STATUS
6565 rm -f $CONFIG_STATUS
6566 cat > $CONFIG_STATUS <<EOF
6568 # Generated automatically by configure.
6569 # Run this file to recreate the current configuration.
6570 # This directory was configured as follows,
6571 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6573 # $0 $ac_configure_args
6575 # Compiler output produced by configure, useful for debugging
6576 # configure, is in ./config.log if it exists.
6578 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6581 case "\$ac_option" in
6582 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6583 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6584 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6585 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6586 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6588 -help | --help | --hel | --he | --h)
6589 echo "\$ac_cs_usage"; exit 0 ;;
6590 *) echo "\$ac_cs_usage"; exit 1 ;;
6594 ac_given_srcdir=$srcdir
6595 ac_given_INSTALL="$INSTALL"
6597 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
6599 cat >> $CONFIG_STATUS <<EOF
6601 # Protect against being on the right side of a sed subst in config.status.
6602 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6603 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6607 s%@CFLAGS@%$CFLAGS%g
6608 s%@CPPFLAGS@%$CPPFLAGS%g
6609 s%@CXXFLAGS@%$CXXFLAGS%g
6610 s%@FFLAGS@%$FFLAGS%g
6612 s%@LDFLAGS@%$LDFLAGS%g
6614 s%@exec_prefix@%$exec_prefix%g
6615 s%@prefix@%$prefix%g
6616 s%@program_transform_name@%$program_transform_name%g
6617 s%@bindir@%$bindir%g
6618 s%@sbindir@%$sbindir%g
6619 s%@libexecdir@%$libexecdir%g
6620 s%@datadir@%$datadir%g
6621 s%@sysconfdir@%$sysconfdir%g
6622 s%@sharedstatedir@%$sharedstatedir%g
6623 s%@localstatedir@%$localstatedir%g
6624 s%@libdir@%$libdir%g
6625 s%@includedir@%$includedir%g
6626 s%@oldincludedir@%$oldincludedir%g
6627 s%@infodir@%$infodir%g
6628 s%@mandir@%$mandir%g
6630 s%@host_alias@%$host_alias%g
6631 s%@host_cpu@%$host_cpu%g
6632 s%@host_vendor@%$host_vendor%g
6633 s%@host_os@%$host_os%g
6634 s%@target@%$target%g
6635 s%@target_alias@%$target_alias%g
6636 s%@target_cpu@%$target_cpu%g
6637 s%@target_vendor@%$target_vendor%g
6638 s%@target_os@%$target_os%g
6640 s%@build_alias@%$build_alias%g
6641 s%@build_cpu@%$build_cpu%g
6642 s%@build_vendor@%$build_vendor%g
6643 s%@build_os@%$build_os%g
6645 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6646 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6647 s%@INSTALL_DATA@%$INSTALL_DATA%g
6648 s%@PACKAGE@%$PACKAGE%g
6649 s%@VERSION@%$VERSION%g
6650 s%@ACLOCAL@%$ACLOCAL%g
6651 s%@AUTOCONF@%$AUTOCONF%g
6652 s%@AUTOMAKE@%$AUTOMAKE%g
6653 s%@AUTOHEADER@%$AUTOHEADER%g
6654 s%@MAKEINFO@%$MAKEINFO%g
6655 s%@SET_MAKE@%$SET_MAKE%g
6657 s%@RANLIB@%$RANLIB%g
6659 s%@OBJEXT@%$OBJEXT%g
6660 s%@EXEEXT@%$EXEEXT%g
6662 s%@LIBTOOL@%$LIBTOOL%g
6663 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
6664 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
6665 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
6668 s%@ALLOCA@%$ALLOCA%g
6669 s%@USE_NLS@%$USE_NLS%g
6670 s%@MSGFMT@%$MSGFMT%g
6671 s%@GMSGFMT@%$GMSGFMT%g
6672 s%@XGETTEXT@%$XGETTEXT%g
6673 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
6674 s%@CATALOGS@%$CATALOGS%g
6675 s%@CATOBJEXT@%$CATOBJEXT%g
6676 s%@DATADIRNAME@%$DATADIRNAME%g
6677 s%@GMOFILES@%$GMOFILES%g
6678 s%@INSTOBJEXT@%$INSTOBJEXT%g
6679 s%@INTLDEPS@%$INTLDEPS%g
6680 s%@INTLLIBS@%$INTLLIBS%g
6681 s%@INTLOBJS@%$INTLOBJS%g
6682 s%@POFILES@%$POFILES%g
6684 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
6686 s%@GT_YES@%$GT_YES%g
6687 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
6689 s%@HDEFINES@%$HDEFINES%g
6690 s%@BFD_HOST_64BIT_LONG@%$BFD_HOST_64BIT_LONG%g
6691 s%@BFD_HOST_64_BIT_DEFINED@%$BFD_HOST_64_BIT_DEFINED%g
6692 s%@BFD_HOST_64_BIT@%$BFD_HOST_64_BIT%g
6693 s%@BFD_HOST_U_64_BIT@%$BFD_HOST_U_64_BIT%g
6694 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
6695 s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
6696 s%@COREFILE@%$COREFILE%g
6697 s%@COREFLAG@%$COREFLAG%g
6698 s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g
6699 s%@WIN32LIBADD@%$WIN32LIBADD%g
6700 s%@TDEFINES@%$TDEFINES%g
6701 s%@wordsize@%$wordsize%g
6702 s%@all_backends@%$all_backends%g
6703 s%@bfd_backends@%$bfd_backends%g
6704 s%@bfd_machines@%$bfd_machines%g
6705 s%@tdefaults@%$tdefaults%g
6710 cat >> $CONFIG_STATUS <<\EOF
6712 # Split the substitutions into bite-sized pieces for seds with
6713 # small command number limits, like on Digital OSF/1 and HP-UX.
6714 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6715 ac_file=1 # Number of current file.
6716 ac_beg=1 # First line for current file.
6717 ac_end=$ac_max_sed_cmds # Line after last line for current file.
6720 while $ac_more_lines; do
6721 if test $ac_beg -gt 1; then
6722 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6724 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6726 if test ! -s conftest.s$ac_file; then
6728 rm -f conftest.s$ac_file
6730 if test -z "$ac_sed_cmds"; then
6731 ac_sed_cmds="sed -f conftest.s$ac_file"
6733 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6735 ac_file=`expr $ac_file + 1`
6737 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6740 if test -z "$ac_sed_cmds"; then
6745 cat >> $CONFIG_STATUS <<EOF
6747 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"}
6749 cat >> $CONFIG_STATUS <<\EOF
6750 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6751 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6753 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6754 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6755 *) ac_file_in="${ac_file}.in" ;;
6758 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6760 # Remove last slash and all that follows it. Not all systems have dirname.
6761 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6762 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6763 # The file is in a subdirectory.
6764 test ! -d "$ac_dir" && mkdir "$ac_dir"
6765 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6766 # A "../" for each directory in $ac_dir_suffix.
6767 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6769 ac_dir_suffix= ac_dots=
6772 case "$ac_given_srcdir" in
6774 if test -z "$ac_dots"; then top_srcdir=.
6775 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6776 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6778 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6779 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6782 case "$ac_given_INSTALL" in
6783 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6784 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6787 echo creating "$ac_file"
6789 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6791 *Makefile*) ac_comsub="1i\\
6792 # $configure_input" ;;
6796 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6798 s%@configure_input@%$configure_input%g
6799 s%@srcdir@%$srcdir%g
6800 s%@top_srcdir@%$top_srcdir%g
6801 s%@INSTALL@%$INSTALL%g
6802 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6806 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6807 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6809 # ac_d sets the value in "#define NAME VALUE" lines.
6810 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6811 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6814 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6815 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6816 ac_uB='\([ ]\)%\1#\2define\3'
6819 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6820 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6821 ac_eB='$%\1#\2define\3'
6825 if test "${CONFIG_HEADERS+set}" != set; then
6827 cat >> $CONFIG_STATUS <<EOF
6828 CONFIG_HEADERS="config.h:config.in"
6830 cat >> $CONFIG_STATUS <<\EOF
6832 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6833 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6835 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6836 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6837 *) ac_file_in="${ac_file}.in" ;;
6840 echo creating $ac_file
6842 rm -f conftest.frag conftest.in conftest.out
6843 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6844 cat $ac_file_inputs > conftest.in
6848 # Transform confdefs.h into a sed script conftest.vals that substitutes
6849 # the proper values into config.h.in to produce config.h. And first:
6850 # Protect against being on the right side of a sed subst in config.status.
6851 # Protect against being in an unquoted here document in config.status.
6853 cat > conftest.hdr <<\EOF
6856 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6860 sed -n -f conftest.hdr confdefs.h > conftest.vals
6863 # This sed command replaces #undef with comments. This is necessary, for
6864 # example, in the case of _POSIX_SOURCE, which is predefined and required
6865 # on some systems where configure will not decide to define it.
6866 cat >> conftest.vals <<\EOF
6867 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6870 # Break up conftest.vals because some shells have a limit on
6871 # the size of here documents, and old seds have small limits too.
6876 ac_lines=`grep -c . conftest.vals`
6877 # grep -c gives empty output for an empty file on some AIX systems.
6878 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6879 # Write a limited-size here document to conftest.frag.
6880 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6881 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6883 sed -f conftest.frag conftest.in > conftest.out
6885 mv conftest.out conftest.in
6887 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6889 mv conftest.tail conftest.vals
6893 cat >> $CONFIG_STATUS <<\EOF
6894 rm -f conftest.frag conftest.h
6895 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6896 cat conftest.in >> conftest.h
6898 if cmp -s $ac_file conftest.h 2>/dev/null; then
6899 echo "$ac_file is unchanged"
6902 # Remove last slash and all that follows it. Not all systems have dirname.
6903 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6904 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6905 # The file is in a subdirectory.
6906 test ! -d "$ac_dir" && mkdir "$ac_dir"
6909 mv conftest.h $ac_file
6914 cat >> $CONFIG_STATUS <<EOF
6918 cat >> $CONFIG_STATUS <<\EOF
6919 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
6920 sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile
6923 chmod +x $CONFIG_STATUS
6924 rm -fr confdefs* $ac_clean_files
6925 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1