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 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)"
27 --enable-targets alternative target configurations"
29 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
31 --with-mmap try using mmap for BFD input files if available"
33 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
35 --enable-maintainer-mode enable make rules and dependencies not useful
36 (and sometimes confusing) to the casual installer"
38 --disable-nls do not use Native Language Support"
40 --with-included-gettext use the GNU gettext library included here"
42 # Initialize some variables set by options.
43 # The variables have the same names as the options, with
44 # dashes changed to underlines.
46 cache_file=./config.cache
55 program_transform_name=s,x,x,
64 bindir='${exec_prefix}/bin'
65 sbindir='${exec_prefix}/sbin'
66 libexecdir='${exec_prefix}/libexec'
67 datadir='${prefix}/share'
68 sysconfdir='${prefix}/etc'
69 sharedstatedir='${prefix}/com'
70 localstatedir='${prefix}/var'
71 libdir='${exec_prefix}/lib'
72 includedir='${prefix}/include'
73 oldincludedir='/usr/include'
74 infodir='${prefix}/info'
75 mandir='${prefix}/man'
77 # Initialize some other variables.
80 SHELL=${CONFIG_SHELL-/bin/sh}
81 # Maximum number of lines to put in a shell here document.
88 # If the previous option needs an argument, assign it.
89 if test -n "$ac_prev"; then
90 eval "$ac_prev=\$ac_option"
96 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
100 # Accept the important Cygnus configure options, so we can diagnose typos.
104 -bindir | --bindir | --bindi | --bind | --bin | --bi)
106 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
107 bindir="$ac_optarg" ;;
109 -build | --build | --buil | --bui | --bu)
111 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
112 build="$ac_optarg" ;;
114 -cache-file | --cache-file | --cache-fil | --cache-fi \
115 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
116 ac_prev=cache_file ;;
117 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
118 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
119 cache_file="$ac_optarg" ;;
121 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
123 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
125 datadir="$ac_optarg" ;;
127 -disable-* | --disable-*)
128 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
129 # Reject names that are not valid shell variable names.
130 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
131 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
133 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
134 eval "enable_${ac_feature}=no" ;;
136 -enable-* | --enable-*)
137 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
138 # Reject names that are not valid shell variable names.
139 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
140 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
142 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
147 eval "enable_${ac_feature}='$ac_optarg'" ;;
149 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
150 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
151 | --exec | --exe | --ex)
152 ac_prev=exec_prefix ;;
153 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
154 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
155 | --exec=* | --exe=* | --ex=*)
156 exec_prefix="$ac_optarg" ;;
158 -gas | --gas | --ga | --g)
159 # Obsolete; use --with-gas.
162 -help | --help | --hel | --he)
163 # Omit some internal or obsolete options to make the list less imposing.
164 # This message is too long to be a string in the A/UX 3.1 sh.
166 Usage: configure [options] [host]
167 Options: [defaults in brackets after descriptions]
169 --cache-file=FILE cache test results in FILE
170 --help print this message
171 --no-create do not create output files
172 --quiet, --silent do not print \`checking...' messages
173 --site-file=FILE use FILE as the site file
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 -site-file | --site-file | --site-fil | --site-fi | --site-f)
346 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
347 sitefile="$ac_optarg" ;;
349 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
351 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
352 srcdir="$ac_optarg" ;;
354 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
355 | --syscon | --sysco | --sysc | --sys | --sy)
356 ac_prev=sysconfdir ;;
357 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
358 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
359 sysconfdir="$ac_optarg" ;;
361 -target | --target | --targe | --targ | --tar | --ta | --t)
363 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
364 target="$ac_optarg" ;;
366 -v | -verbose | --verbose | --verbos | --verbo | --verb)
369 -version | --version | --versio | --versi | --vers)
370 echo "configure generated by autoconf version 2.13"
374 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
375 # Reject names that are not valid shell variable names.
376 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
377 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
379 ac_package=`echo $ac_package| sed 's/-/_/g'`
384 eval "with_${ac_package}='$ac_optarg'" ;;
386 -without-* | --without-*)
387 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
388 # Reject names that are not valid shell variable names.
389 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
390 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
392 ac_package=`echo $ac_package| sed 's/-/_/g'`
393 eval "with_${ac_package}=no" ;;
396 # Obsolete; use --with-x.
399 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
400 | --x-incl | --x-inc | --x-in | --x-i)
401 ac_prev=x_includes ;;
402 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
403 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
404 x_includes="$ac_optarg" ;;
406 -x-libraries | --x-libraries | --x-librarie | --x-librari \
407 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
408 ac_prev=x_libraries ;;
409 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
410 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
411 x_libraries="$ac_optarg" ;;
413 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
417 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
418 echo "configure: warning: $ac_option: invalid host type" 1>&2
420 if test "x$nonopt" != xNONE; then
421 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
429 if test -n "$ac_prev"; then
430 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
433 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
435 # File descriptor usage:
438 # 2 errors and warnings
439 # 3 some systems may open it to /dev/tty
440 # 4 used on the Kubota Titan
441 # 6 checking for... messages and results
442 # 5 compiler messages saved in config.log
443 if test "$silent" = yes; then
451 This file contains any messages produced by compilers while
452 running configure, to aid debugging if configure makes a mistake.
455 # Strip out --no-create and --no-recursion so they do not pile up.
456 # Also quote any args containing shell metacharacters.
461 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
462 | --no-cr | --no-c) ;;
463 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
464 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
465 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
466 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
467 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
472 # Only set these to C if already set. These must not be set unconditionally
473 # because not all systems understand e.g. LANG=C (notably SCO).
474 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
475 # Non-C LC_CTYPE values break the ctype check.
476 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
477 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
478 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
479 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
481 # confdefs.h avoids OS command line length limits that DEFS can exceed.
482 rm -rf conftest* confdefs.h
483 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
486 # A filename unique to this package, relative to the directory that
487 # configure is in, which we can look for to find out if srcdir is correct.
488 ac_unique_file=libbfd.c
490 # Find the source files, if location was not specified.
491 if test -z "$srcdir"; then
492 ac_srcdir_defaulted=yes
493 # Try the directory containing this script, then its parent.
495 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
496 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
498 if test ! -r $srcdir/$ac_unique_file; then
502 ac_srcdir_defaulted=no
504 if test ! -r $srcdir/$ac_unique_file; then
505 if test "$ac_srcdir_defaulted" = yes; then
506 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
508 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
511 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
513 # Prefer explicitly selected file to automatically selected ones.
514 if test -z "$sitefile"; then
515 if test -z "$CONFIG_SITE"; then
516 if test "x$prefix" != xNONE; then
517 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
519 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
523 CONFIG_SITE="$sitefile"
525 for ac_site_file in $CONFIG_SITE; do
526 if test -r "$ac_site_file"; then
527 echo "loading site script $ac_site_file"
532 if test -r "$cache_file"; then
533 echo "loading cache $cache_file"
536 echo "creating cache $cache_file"
541 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
542 ac_cpp='$CPP $CPPFLAGS'
543 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
544 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
545 cross_compiling=$ac_cv_prog_cc_cross
549 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
550 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
551 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
558 ac_n= ac_c='\c' ac_t=
564 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
565 if test -f $ac_dir/install-sh; then
567 ac_install_sh="$ac_aux_dir/install-sh -c"
569 elif test -f $ac_dir/install.sh; then
571 ac_install_sh="$ac_aux_dir/install.sh -c"
575 if test -z "$ac_aux_dir"; then
576 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
578 ac_config_guess=$ac_aux_dir/config.guess
579 ac_config_sub=$ac_aux_dir/config.sub
580 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
583 # Do some error checking and defaulting for the host and target type.
585 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
588 # 1. You are not allowed to specify --host, --target, and nonopt at the
590 # 2. Host defaults to nonopt.
591 # 3. If nonopt is not specified, then host defaults to the current host,
592 # as determined by config.guess.
593 # 4. Target and build default to nonopt.
594 # 5. If nonopt is not specified, then target and build default to host.
596 # The aliases save the names the user supplied, while $host etc.
597 # will get canonicalized.
598 case $host---$target---$nonopt in
599 NONE---*---* | *---NONE---* | *---*---NONE) ;;
600 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
604 # Make sure we can run config.sub.
605 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
606 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
609 echo $ac_n "checking host system type""... $ac_c" 1>&6
610 echo "configure:611: checking host system type" >&5
613 case "$host_alias" in
617 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
618 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
620 *) host_alias=$nonopt ;;
624 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
625 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
626 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
627 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
628 echo "$ac_t""$host" 1>&6
630 echo $ac_n "checking target system type""... $ac_c" 1>&6
631 echo "configure:632: checking target system type" >&5
634 case "$target_alias" in
637 NONE) target_alias=$host_alias ;;
638 *) target_alias=$nonopt ;;
642 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
643 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
644 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
645 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
646 echo "$ac_t""$target" 1>&6
648 echo $ac_n "checking build system type""... $ac_c" 1>&6
649 echo "configure:650: checking build system type" >&5
652 case "$build_alias" in
655 NONE) build_alias=$host_alias ;;
656 *) build_alias=$nonopt ;;
660 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
661 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
662 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
663 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
664 echo "$ac_t""$build" 1>&6
666 test "$host_alias" != "$target_alias" &&
667 test "$program_prefix$program_suffix$program_transform_name" = \
669 program_prefix=${target_alias}-
671 # Extract the first word of "gcc", so it can be a program name with args.
672 set dummy gcc; ac_word=$2
673 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
674 echo "configure:675: checking for $ac_word" >&5
675 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
676 echo $ac_n "(cached) $ac_c" 1>&6
678 if test -n "$CC"; then
679 ac_cv_prog_CC="$CC" # Let the user override the test.
681 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
683 for ac_dir in $ac_dummy; do
684 test -z "$ac_dir" && ac_dir=.
685 if test -f $ac_dir/$ac_word; then
694 if test -n "$CC"; then
695 echo "$ac_t""$CC" 1>&6
697 echo "$ac_t""no" 1>&6
700 if test -z "$CC"; then
701 # Extract the first word of "cc", so it can be a program name with args.
702 set dummy cc; ac_word=$2
703 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
704 echo "configure:705: checking for $ac_word" >&5
705 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
706 echo $ac_n "(cached) $ac_c" 1>&6
708 if test -n "$CC"; then
709 ac_cv_prog_CC="$CC" # Let the user override the test.
711 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
714 for ac_dir in $ac_dummy; do
715 test -z "$ac_dir" && ac_dir=.
716 if test -f $ac_dir/$ac_word; then
717 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
726 if test $ac_prog_rejected = yes; then
727 # We found a bogon in the path, so make sure we never use it.
728 set dummy $ac_cv_prog_CC
730 if test $# -gt 0; then
731 # We chose a different compiler from the bogus one.
732 # However, it has the same basename, so the bogon will be chosen
733 # first if we set CC to just the basename; use the full file name.
735 set dummy "$ac_dir/$ac_word" "$@"
743 if test -n "$CC"; then
744 echo "$ac_t""$CC" 1>&6
746 echo "$ac_t""no" 1>&6
749 if test -z "$CC"; then
752 # Extract the first word of "cl", so it can be a program name with args.
753 set dummy cl; ac_word=$2
754 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
755 echo "configure:756: checking for $ac_word" >&5
756 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
757 echo $ac_n "(cached) $ac_c" 1>&6
759 if test -n "$CC"; then
760 ac_cv_prog_CC="$CC" # Let the user override the test.
762 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
764 for ac_dir in $ac_dummy; do
765 test -z "$ac_dir" && ac_dir=.
766 if test -f $ac_dir/$ac_word; then
775 if test -n "$CC"; then
776 echo "$ac_t""$CC" 1>&6
778 echo "$ac_t""no" 1>&6
783 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
786 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
787 echo "configure:788: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
790 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
791 ac_cpp='$CPP $CPPFLAGS'
792 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
793 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
794 cross_compiling=$ac_cv_prog_cc_cross
796 cat > conftest.$ac_ext << EOF
798 #line 799 "configure"
799 #include "confdefs.h"
803 if { (eval echo configure:804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
804 ac_cv_prog_cc_works=yes
805 # If we can't run a trivial program, we are probably using a cross compiler.
806 if (./conftest; exit) 2>/dev/null; then
807 ac_cv_prog_cc_cross=no
809 ac_cv_prog_cc_cross=yes
812 echo "configure: failed program was:" >&5
813 cat conftest.$ac_ext >&5
814 ac_cv_prog_cc_works=no
818 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
819 ac_cpp='$CPP $CPPFLAGS'
820 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
821 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
822 cross_compiling=$ac_cv_prog_cc_cross
824 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
825 if test $ac_cv_prog_cc_works = no; then
826 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
828 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
829 echo "configure:830: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
830 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
831 cross_compiling=$ac_cv_prog_cc_cross
833 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
834 echo "configure:835: checking whether we are using GNU C" >&5
835 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
836 echo $ac_n "(cached) $ac_c" 1>&6
838 cat > conftest.c <<EOF
843 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
850 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
852 if test $ac_cv_prog_gcc = yes; then
858 ac_test_CFLAGS="${CFLAGS+set}"
859 ac_save_CFLAGS="$CFLAGS"
861 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
862 echo "configure:863: checking whether ${CC-cc} accepts -g" >&5
863 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
864 echo $ac_n "(cached) $ac_c" 1>&6
866 echo 'void f(){}' > conftest.c
867 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
876 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
877 if test "$ac_test_CFLAGS" = set; then
878 CFLAGS="$ac_save_CFLAGS"
879 elif test $ac_cv_prog_cc_g = yes; then
880 if test "$GCC" = yes; then
886 if test "$GCC" = yes; then
893 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
894 echo "configure:895: checking for POSIXized ISC" >&5
895 if test -d /etc/conf/kconfig.d &&
896 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
898 echo "$ac_t""yes" 1>&6
899 ISC=yes # If later tests want to check for ISC.
900 cat >> confdefs.h <<\EOF
901 #define _POSIX_SOURCE 1
904 if test "$GCC" = yes; then
910 echo "$ac_t""no" 1>&6
915 # Find a good install program. We prefer a C program (faster),
916 # so one script is as good as another. But avoid the broken or
917 # incompatible versions:
918 # SysV /etc/install, /usr/sbin/install
919 # SunOS /usr/etc/install
922 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
923 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
924 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
925 # ./install, which can be erroneously created by make from ./install.sh.
926 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
927 echo "configure:928: checking for a BSD compatible install" >&5
928 if test -z "$INSTALL"; then
929 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
930 echo $ac_n "(cached) $ac_c" 1>&6
932 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
933 for ac_dir in $PATH; do
934 # Account for people who put trailing slashes in PATH elements.
936 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
938 # OSF1 and SCO ODT 3.0 have their own names for install.
939 # Don't use installbsd from OSF since it installs stuff as root
941 for ac_prog in ginstall scoinst install; do
942 if test -f $ac_dir/$ac_prog; then
943 if test $ac_prog = install &&
944 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
945 # AIX install. It has an incompatible calling convention.
948 ac_cv_path_install="$ac_dir/$ac_prog -c"
959 if test "${ac_cv_path_install+set}" = set; then
960 INSTALL="$ac_cv_path_install"
962 # As a last resort, use the slow shell script. We don't cache a
963 # path for INSTALL within a source directory, because that will
964 # break other packages using the cache if that directory is
965 # removed, or if the path is relative.
966 INSTALL="$ac_install_sh"
969 echo "$ac_t""$INSTALL" 1>&6
971 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
972 # It thinks the first close brace ends the variable substitution.
973 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
975 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
977 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
979 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
980 echo "configure:981: checking whether build environment is sane" >&5
983 echo timestamp > conftestfile
984 # Do `set' in a subshell so we don't clobber the current shell's
985 # arguments. Must try -L first in case configure is actually a
986 # symlink; some systems play weird games with the mod time of symlinks
987 # (eg FreeBSD returns the mod time of the symlink's containing
990 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
991 if test "$*" = "X"; then
993 set X `ls -t $srcdir/configure conftestfile`
995 if test "$*" != "X $srcdir/configure conftestfile" \
996 && test "$*" != "X conftestfile $srcdir/configure"; then
998 # If neither matched, then we have a broken ls. This can happen
999 # if, for instance, CONFIG_SHELL is bash and it inherits a
1000 # broken ls alias from the environment. This has actually
1001 # happened. Such a system could not be considered "sane".
1002 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1003 alias in your environment" 1>&2; exit 1; }
1006 test "$2" = conftestfile
1012 { echo "configure: error: newly created file is older than distributed files!
1013 Check your system clock" 1>&2; exit 1; }
1016 echo "$ac_t""yes" 1>&6
1017 if test "$program_transform_name" = s,x,x,; then
1018 program_transform_name=
1020 # Double any \ or $. echo might interpret backslashes.
1021 cat <<\EOF_SED > conftestsed
1022 s,\\,\\\\,g; s,\$,$$,g
1024 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1027 test "$program_prefix" != NONE &&
1028 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1029 # Use a double $ so make ignores it.
1030 test "$program_suffix" != NONE &&
1031 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1033 # sed with no file args requires a program.
1034 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1036 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1037 echo "configure:1038: checking whether ${MAKE-make} sets \${MAKE}" >&5
1038 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1039 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1040 echo $ac_n "(cached) $ac_c" 1>&6
1042 cat > conftestmake <<\EOF
1044 @echo 'ac_maketemp="${MAKE}"'
1046 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1047 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1048 if test -n "$ac_maketemp"; then
1049 eval ac_cv_prog_make_${ac_make}_set=yes
1051 eval ac_cv_prog_make_${ac_make}_set=no
1055 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1056 echo "$ac_t""yes" 1>&6
1059 echo "$ac_t""no" 1>&6
1060 SET_MAKE="MAKE=${MAKE-make}"
1068 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1069 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1071 cat >> confdefs.h <<EOF
1072 #define PACKAGE "$PACKAGE"
1075 cat >> confdefs.h <<EOF
1076 #define VERSION "$VERSION"
1081 missing_dir=`cd $ac_aux_dir && pwd`
1082 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1083 echo "configure:1084: checking for working aclocal" >&5
1084 # Run test in a subshell; some versions of sh will print an error if
1085 # an executable is not found, even if stderr is redirected.
1086 # Redirect stdin to placate older versions of autoconf. Sigh.
1087 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1089 echo "$ac_t""found" 1>&6
1091 ACLOCAL="$missing_dir/missing aclocal"
1092 echo "$ac_t""missing" 1>&6
1095 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1096 echo "configure:1097: checking for working autoconf" >&5
1097 # Run test in a subshell; some versions of sh will print an error if
1098 # an executable is not found, even if stderr is redirected.
1099 # Redirect stdin to placate older versions of autoconf. Sigh.
1100 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1102 echo "$ac_t""found" 1>&6
1104 AUTOCONF="$missing_dir/missing autoconf"
1105 echo "$ac_t""missing" 1>&6
1108 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1109 echo "configure:1110: checking for working automake" >&5
1110 # Run test in a subshell; some versions of sh will print an error if
1111 # an executable is not found, even if stderr is redirected.
1112 # Redirect stdin to placate older versions of autoconf. Sigh.
1113 if (automake --version) < /dev/null > /dev/null 2>&1; then
1115 echo "$ac_t""found" 1>&6
1117 AUTOMAKE="$missing_dir/missing automake"
1118 echo "$ac_t""missing" 1>&6
1121 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1122 echo "configure:1123: checking for working autoheader" >&5
1123 # Run test in a subshell; some versions of sh will print an error if
1124 # an executable is not found, even if stderr is redirected.
1125 # Redirect stdin to placate older versions of autoconf. Sigh.
1126 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1127 AUTOHEADER=autoheader
1128 echo "$ac_t""found" 1>&6
1130 AUTOHEADER="$missing_dir/missing autoheader"
1131 echo "$ac_t""missing" 1>&6
1134 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1135 echo "configure:1136: checking for working makeinfo" >&5
1136 # Run test in a subshell; some versions of sh will print an error if
1137 # an executable is not found, even if stderr is redirected.
1138 # Redirect stdin to placate older versions of autoconf. Sigh.
1139 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1141 echo "$ac_t""found" 1>&6
1143 MAKEINFO="$missing_dir/missing makeinfo"
1144 echo "$ac_t""missing" 1>&6
1149 if test $host != $build; then
1150 ac_tool_prefix=${host_alias}-
1155 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1156 set dummy ${ac_tool_prefix}ar; ac_word=$2
1157 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1158 echo "configure:1159: checking for $ac_word" >&5
1159 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1160 echo $ac_n "(cached) $ac_c" 1>&6
1162 if test -n "$AR"; then
1163 ac_cv_prog_AR="$AR" # Let the user override the test.
1165 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1167 for ac_dir in $ac_dummy; do
1168 test -z "$ac_dir" && ac_dir=.
1169 if test -f $ac_dir/$ac_word; then
1170 ac_cv_prog_AR="${ac_tool_prefix}ar"
1175 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1179 if test -n "$AR"; then
1180 echo "$ac_t""$AR" 1>&6
1182 echo "$ac_t""no" 1>&6
1187 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1188 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1189 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1190 echo "configure:1191: checking for $ac_word" >&5
1191 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1192 echo $ac_n "(cached) $ac_c" 1>&6
1194 if test -n "$RANLIB"; then
1195 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1197 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1199 for ac_dir in $ac_dummy; do
1200 test -z "$ac_dir" && ac_dir=.
1201 if test -f $ac_dir/$ac_word; then
1202 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1209 RANLIB="$ac_cv_prog_RANLIB"
1210 if test -n "$RANLIB"; then
1211 echo "$ac_t""$RANLIB" 1>&6
1213 echo "$ac_t""no" 1>&6
1217 if test -z "$ac_cv_prog_RANLIB"; then
1218 if test -n "$ac_tool_prefix"; then
1219 # Extract the first word of "ranlib", so it can be a program name with args.
1220 set dummy ranlib; ac_word=$2
1221 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1222 echo "configure:1223: checking for $ac_word" >&5
1223 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1224 echo $ac_n "(cached) $ac_c" 1>&6
1226 if test -n "$RANLIB"; then
1227 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1229 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1231 for ac_dir in $ac_dummy; do
1232 test -z "$ac_dir" && ac_dir=.
1233 if test -f $ac_dir/$ac_word; then
1234 ac_cv_prog_RANLIB="ranlib"
1239 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1242 RANLIB="$ac_cv_prog_RANLIB"
1243 if test -n "$RANLIB"; then
1244 echo "$ac_t""$RANLIB" 1>&6
1246 echo "$ac_t""no" 1>&6
1255 # Check whether --enable-shared or --disable-shared was given.
1256 if test "${enable_shared+set}" = set; then
1257 enableval="$enable_shared"
1258 p=${PACKAGE-default}
1259 case "$enableval" in
1260 yes) enable_shared=yes ;;
1261 no) enable_shared=no ;;
1264 # Look at the argument we got. We use all the common list separators.
1265 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1266 for pkg in $enableval; do
1267 if test "X$pkg" = "X$p"; then
1279 # Check whether --enable-static or --disable-static was given.
1280 if test "${enable_static+set}" = set; then
1281 enableval="$enable_static"
1282 p=${PACKAGE-default}
1283 case "$enableval" in
1284 yes) enable_static=yes ;;
1285 no) enable_static=no ;;
1288 # Look at the argument we got. We use all the common list separators.
1289 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1290 for pkg in $enableval; do
1291 if test "X$pkg" = "X$p"; then
1302 # Check whether --enable-fast-install or --disable-fast-install was given.
1303 if test "${enable_fast_install+set}" = set; then
1304 enableval="$enable_fast_install"
1305 p=${PACKAGE-default}
1306 case "$enableval" in
1307 yes) enable_fast_install=yes ;;
1308 no) enable_fast_install=no ;;
1310 enable_fast_install=no
1311 # Look at the argument we got. We use all the common list separators.
1312 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1313 for pkg in $enableval; do
1314 if test "X$pkg" = "X$p"; then
1315 enable_fast_install=yes
1322 enable_fast_install=yes
1325 # Extract the first word of "ranlib", so it can be a program name with args.
1326 set dummy ranlib; ac_word=$2
1327 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1328 echo "configure:1329: checking for $ac_word" >&5
1329 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1330 echo $ac_n "(cached) $ac_c" 1>&6
1332 if test -n "$RANLIB"; then
1333 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1335 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1337 for ac_dir in $ac_dummy; do
1338 test -z "$ac_dir" && ac_dir=.
1339 if test -f $ac_dir/$ac_word; then
1340 ac_cv_prog_RANLIB="ranlib"
1345 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1348 RANLIB="$ac_cv_prog_RANLIB"
1349 if test -n "$RANLIB"; then
1350 echo "$ac_t""$RANLIB" 1>&6
1352 echo "$ac_t""no" 1>&6
1355 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1356 if test "${with_gnu_ld+set}" = set; then
1357 withval="$with_gnu_ld"
1358 test "$withval" = no || with_gnu_ld=yes
1364 if test "$ac_cv_prog_gcc" = yes; then
1365 # Check if gcc -print-prog-name=ld gives a path.
1366 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1367 echo "configure:1368: checking for ld used by GCC" >&5
1368 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1370 # Accept absolute paths.
1371 [\\/]* | [A-Za-z]:[\\/]*)
1372 re_direlt='/[^/][^/]*/\.\./'
1373 # Canonicalize the path of ld
1374 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1375 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1376 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1378 test -z "$LD" && LD="$ac_prog"
1381 # If it fails, then pretend we aren't using GCC.
1385 # If it is relative, then search for the first ld in PATH.
1389 elif test "$with_gnu_ld" = yes; then
1390 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1391 echo "configure:1392: checking for GNU ld" >&5
1393 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1394 echo "configure:1395: checking for non-GNU ld" >&5
1396 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1397 echo $ac_n "(cached) $ac_c" 1>&6
1399 if test -z "$LD"; then
1400 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1401 for ac_dir in $PATH; do
1402 test -z "$ac_dir" && ac_dir=.
1403 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1404 ac_cv_path_LD="$ac_dir/$ac_prog"
1405 # Check to see if the program is GNU ld. I'd rather use --version,
1406 # but apparently some GNU ld's only accept -v.
1407 # Break only if it was the GNU/non-GNU ld that we prefer.
1408 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1409 test "$with_gnu_ld" != no && break
1411 test "$with_gnu_ld" != yes && break
1417 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1422 if test -n "$LD"; then
1423 echo "$ac_t""$LD" 1>&6
1425 echo "$ac_t""no" 1>&6
1427 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1428 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1429 echo "configure:1430: checking if the linker ($LD) is GNU ld" >&5
1430 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1431 echo $ac_n "(cached) $ac_c" 1>&6
1433 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1434 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1435 ac_cv_prog_gnu_ld=yes
1437 ac_cv_prog_gnu_ld=no
1441 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1444 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1445 echo "configure:1446: checking for BSD-compatible nm" >&5
1446 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1447 echo $ac_n "(cached) $ac_c" 1>&6
1449 if test -n "$NM"; then
1450 # Let the user override the test.
1453 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1454 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1455 test -z "$ac_dir" && ac_dir=.
1456 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1457 # Check to see if the nm accepts a BSD-compat flag.
1458 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1459 # nm: unknown option "B" ignored
1460 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1461 ac_cv_path_NM="$ac_dir/nm -B"
1463 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1464 ac_cv_path_NM="$ac_dir/nm -p"
1467 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1468 continue # so that we can try to find one that supports BSD flags
1473 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1478 echo "$ac_t""$NM" 1>&6
1480 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1481 echo "configure:1482: checking whether ln -s works" >&5
1482 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1483 echo $ac_n "(cached) $ac_c" 1>&6
1486 if ln -s X conftestdata 2>/dev/null
1489 ac_cv_prog_LN_S="ln -s"
1494 LN_S="$ac_cv_prog_LN_S"
1495 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1496 echo "$ac_t""yes" 1>&6
1498 echo "$ac_t""no" 1>&6
1502 # Check for any special flags to pass to ltconfig.
1503 libtool_flags="--cache-file=$cache_file"
1504 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1505 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1506 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1507 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1508 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1511 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1512 if test "${enable_libtool_lock+set}" = set; then
1513 enableval="$enable_libtool_lock"
1517 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1518 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1520 # Some flags need to be propagated to the compiler or linker for good
1524 # Find out which ABI we are using.
1525 echo '#line 1526 "configure"' > conftest.$ac_ext
1526 if { (eval echo configure:1527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1527 case "`/usr/bin/file conftest.o`" in
1543 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1544 SAVE_CFLAGS="$CFLAGS"
1545 CFLAGS="$CFLAGS -belf"
1546 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1547 echo "configure:1548: checking whether the C compiler needs -belf" >&5
1548 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1549 echo $ac_n "(cached) $ac_c" 1>&6
1551 cat > conftest.$ac_ext <<EOF
1552 #line 1553 "configure"
1553 #include "confdefs.h"
1559 if { (eval echo configure:1560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1561 lt_cv_cc_needs_belf=yes
1563 echo "configure: failed program was:" >&5
1564 cat conftest.$ac_ext >&5
1566 lt_cv_cc_needs_belf=no
1571 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1572 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1573 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1574 CFLAGS="$SAVE_CFLAGS"
1582 # Save cache, so that ltconfig can load it
1583 cat > confcache <<\EOF
1584 # This file is a shell script that caches the results of configure
1585 # tests run on this system so they can be shared between configure
1586 # scripts and configure runs. It is not useful on other systems.
1587 # If it contains results you don't want to keep, you may remove or edit it.
1589 # By default, configure uses ./config.cache as the cache file,
1590 # creating it if it does not exist already. You can give configure
1591 # the --cache-file=FILE option to use a different cache file; that is
1592 # what configure does when it calls configure scripts in
1593 # subdirectories, so they share the cache.
1594 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1595 # config.status only pays attention to the cache file if you give it the
1596 # --recheck option to rerun configure.
1599 # The following way of writing the cache mishandles newlines in values,
1600 # but we know of no workaround that is simple, portable, and efficient.
1601 # So, don't put newlines in cache variables' values.
1602 # Ultrix sh set writes to stderr and can't be redirected directly,
1603 # and sets the high bit in the cache file unless we assign to the vars.
1605 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1607 # `set' does not quote correctly, so add quotes (double-quote substitution
1608 # turns \\\\ into \\, and sed turns \\ into \).
1610 -e "s/'/'\\\\''/g" \
1611 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1614 # `set' quotes correctly as required by POSIX, so do not add quotes.
1615 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1618 if cmp -s $cache_file confcache; then
1621 if test -w $cache_file; then
1622 echo "updating cache $cache_file"
1623 cat confcache > $cache_file
1625 echo "not updating unwritable cache $cache_file"
1631 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1632 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1633 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1634 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1635 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1636 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1637 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1638 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1640 # Reload cache, that may have been modified by ltconfig
1641 if test -r "$cache_file"; then
1642 echo "loading cache $cache_file"
1645 echo "creating cache $cache_file"
1650 # This can be used to rebuild libtool when needed
1651 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1653 # Always use our own libtool.
1654 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1656 # Redirect the config.log output again, so that the ltconfig log is not
1657 # clobbered by the next message.
1658 exec 5>>./config.log
1661 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
1662 if test "${enable_64_bit_bfd+set}" = set; then
1663 enableval="$enable_64_bit_bfd"
1664 case "${enableval}" in
1667 *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;;
1672 # Check whether --enable-targets or --disable-targets was given.
1673 if test "${enable_targets+set}" = set; then
1674 enableval="$enable_targets"
1675 case "${enableval}" in
1676 yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
1678 no) enable_targets= ;;
1679 *) enable_targets=$enableval ;;
1682 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
1683 if test "${enable_commonbfdlib+set}" = set; then
1684 enableval="$enable_commonbfdlib"
1685 case "${enableval}" in
1686 yes) commonbfdlib=true ;;
1687 no) commonbfdlib=false ;;
1688 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
1691 # Check whether --with-mmap or --without-mmap was given.
1692 if test "${with_mmap+set}" = set; then
1693 withval="$with_mmap"
1694 case "${withval}" in
1695 yes) want_mmap=true ;;
1696 no) want_mmap=false ;;
1697 *) { echo "configure: error: bad value ${withval} for BFD with-mmap option" 1>&2; exit 1; } ;;
1703 build_warnings="-W -Wall"
1704 # Check whether --enable-build-warnings or --disable-build-warnings was given.
1705 if test "${enable_build_warnings+set}" = set; then
1706 enableval="$enable_build_warnings"
1707 case "${enableval}" in
1709 no) build_warnings="-w";;
1710 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
1711 build_warnings="${build_warnings} ${t}";;
1712 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
1713 build_warnings="${t} ${build_warnings}";;
1714 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
1716 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
1717 echo "Setting warning flags = $build_warnings" 6>&1
1721 if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
1722 WARN_CFLAGS="${build_warnings}"
1730 if test -z "$target" ; then
1731 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
1733 if test "$program_transform_name" = s,x,x,; then
1734 program_transform_name=
1736 # Double any \ or $. echo might interpret backslashes.
1737 cat <<\EOF_SED > conftestsed
1738 s,\\,\\\\,g; s,\$,$$,g
1740 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1743 test "$program_prefix" != NONE &&
1744 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1745 # Use a double $ so make ignores it.
1746 test "$program_suffix" != NONE &&
1747 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1749 # sed with no file args requires a program.
1750 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1753 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1754 echo "configure:1755: checking whether to enable maintainer-specific portions of Makefiles" >&5
1755 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1756 if test "${enable_maintainer_mode+set}" = set; then
1757 enableval="$enable_maintainer_mode"
1758 USE_MAINTAINER_MODE=$enableval
1760 USE_MAINTAINER_MODE=no
1763 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1766 if test $USE_MAINTAINER_MODE = yes; then
1767 MAINTAINER_MODE_TRUE=
1768 MAINTAINER_MODE_FALSE='#'
1770 MAINTAINER_MODE_TRUE='#'
1771 MAINTAINER_MODE_FALSE=
1773 MAINT=$MAINTAINER_MODE_TRUE
1776 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1777 echo "configure:1778: checking for Cygwin environment" >&5
1778 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1779 echo $ac_n "(cached) $ac_c" 1>&6
1781 cat > conftest.$ac_ext <<EOF
1782 #line 1783 "configure"
1783 #include "confdefs.h"
1788 #define __CYGWIN__ __CYGWIN32__
1793 if { (eval echo configure:1794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1797 echo "configure: failed program was:" >&5
1798 cat conftest.$ac_ext >&5
1806 echo "$ac_t""$ac_cv_cygwin" 1>&6
1808 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1809 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1810 echo "configure:1811: checking for mingw32 environment" >&5
1811 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1812 echo $ac_n "(cached) $ac_c" 1>&6
1814 cat > conftest.$ac_ext <<EOF
1815 #line 1816 "configure"
1816 #include "confdefs.h"
1822 if { (eval echo configure:1823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1826 echo "configure: failed program was:" >&5
1827 cat conftest.$ac_ext >&5
1835 echo "$ac_t""$ac_cv_mingw32" 1>&6
1837 test "$ac_cv_mingw32" = yes && MINGW32=yes
1840 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1841 echo "configure:1842: checking for executable suffix" >&5
1842 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1843 echo $ac_n "(cached) $ac_c" 1>&6
1845 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1849 echo 'int main () { return 0; }' > conftest.$ac_ext
1851 if { (eval echo configure:1852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1852 for file in conftest.*; do
1854 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1855 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1859 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1862 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1867 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1868 echo "$ac_t""${ac_cv_exeext}" 1>&6
1877 # Extract the first word of "gcc", so it can be a program name with args.
1878 set dummy gcc; ac_word=$2
1879 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1880 echo "configure:1881: checking for $ac_word" >&5
1881 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1882 echo $ac_n "(cached) $ac_c" 1>&6
1884 if test -n "$CC"; then
1885 ac_cv_prog_CC="$CC" # Let the user override the test.
1887 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1889 for ac_dir in $ac_dummy; do
1890 test -z "$ac_dir" && ac_dir=.
1891 if test -f $ac_dir/$ac_word; then
1900 if test -n "$CC"; then
1901 echo "$ac_t""$CC" 1>&6
1903 echo "$ac_t""no" 1>&6
1906 if test -z "$CC"; then
1907 # Extract the first word of "cc", so it can be a program name with args.
1908 set dummy cc; ac_word=$2
1909 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1910 echo "configure:1911: checking for $ac_word" >&5
1911 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1912 echo $ac_n "(cached) $ac_c" 1>&6
1914 if test -n "$CC"; then
1915 ac_cv_prog_CC="$CC" # Let the user override the test.
1917 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1920 for ac_dir in $ac_dummy; do
1921 test -z "$ac_dir" && ac_dir=.
1922 if test -f $ac_dir/$ac_word; then
1923 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1924 ac_prog_rejected=yes
1932 if test $ac_prog_rejected = yes; then
1933 # We found a bogon in the path, so make sure we never use it.
1934 set dummy $ac_cv_prog_CC
1936 if test $# -gt 0; then
1937 # We chose a different compiler from the bogus one.
1938 # However, it has the same basename, so the bogon will be chosen
1939 # first if we set CC to just the basename; use the full file name.
1941 set dummy "$ac_dir/$ac_word" "$@"
1949 if test -n "$CC"; then
1950 echo "$ac_t""$CC" 1>&6
1952 echo "$ac_t""no" 1>&6
1955 if test -z "$CC"; then
1956 case "`uname -s`" in
1958 # Extract the first word of "cl", so it can be a program name with args.
1959 set dummy cl; ac_word=$2
1960 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1961 echo "configure:1962: checking for $ac_word" >&5
1962 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1963 echo $ac_n "(cached) $ac_c" 1>&6
1965 if test -n "$CC"; then
1966 ac_cv_prog_CC="$CC" # Let the user override the test.
1968 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1970 for ac_dir in $ac_dummy; do
1971 test -z "$ac_dir" && ac_dir=.
1972 if test -f $ac_dir/$ac_word; then
1981 if test -n "$CC"; then
1982 echo "$ac_t""$CC" 1>&6
1984 echo "$ac_t""no" 1>&6
1989 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1992 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1993 echo "configure:1994: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1996 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1997 ac_cpp='$CPP $CPPFLAGS'
1998 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1999 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2000 cross_compiling=$ac_cv_prog_cc_cross
2002 cat > conftest.$ac_ext << EOF
2004 #line 2005 "configure"
2005 #include "confdefs.h"
2009 if { (eval echo configure:2010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2010 ac_cv_prog_cc_works=yes
2011 # If we can't run a trivial program, we are probably using a cross compiler.
2012 if (./conftest; exit) 2>/dev/null; then
2013 ac_cv_prog_cc_cross=no
2015 ac_cv_prog_cc_cross=yes
2018 echo "configure: failed program was:" >&5
2019 cat conftest.$ac_ext >&5
2020 ac_cv_prog_cc_works=no
2024 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2025 ac_cpp='$CPP $CPPFLAGS'
2026 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2027 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2028 cross_compiling=$ac_cv_prog_cc_cross
2030 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2031 if test $ac_cv_prog_cc_works = no; then
2032 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2034 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2035 echo "configure:2036: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2036 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2037 cross_compiling=$ac_cv_prog_cc_cross
2039 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2040 echo "configure:2041: checking whether we are using GNU C" >&5
2041 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2042 echo $ac_n "(cached) $ac_c" 1>&6
2044 cat > conftest.c <<EOF
2049 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2050: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2056 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2058 if test $ac_cv_prog_gcc = yes; then
2064 ac_test_CFLAGS="${CFLAGS+set}"
2065 ac_save_CFLAGS="$CFLAGS"
2067 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2068 echo "configure:2069: checking whether ${CC-cc} accepts -g" >&5
2069 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2070 echo $ac_n "(cached) $ac_c" 1>&6
2072 echo 'void f(){}' > conftest.c
2073 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2082 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2083 if test "$ac_test_CFLAGS" = set; then
2084 CFLAGS="$ac_save_CFLAGS"
2085 elif test $ac_cv_prog_cc_g = yes; then
2086 if test "$GCC" = yes; then
2092 if test "$GCC" = yes; then
2101 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2102 echo "configure:2103: checking how to run the C preprocessor" >&5
2103 # On Suns, sometimes $CPP names a directory.
2104 if test -n "$CPP" && test -d "$CPP"; then
2107 if test -z "$CPP"; then
2108 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2109 echo $ac_n "(cached) $ac_c" 1>&6
2111 # This must be in double quotes, not single quotes, because CPP may get
2112 # substituted into the Makefile and "${CC-cc}" will confuse make.
2114 # On the NeXT, cc -E runs the code through the compiler's parser,
2115 # not just through cpp.
2116 cat > conftest.$ac_ext <<EOF
2117 #line 2118 "configure"
2118 #include "confdefs.h"
2122 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2123 { (eval echo configure:2124: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2124 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2125 if test -z "$ac_err"; then
2129 echo "configure: failed program was:" >&5
2130 cat conftest.$ac_ext >&5
2132 CPP="${CC-cc} -E -traditional-cpp"
2133 cat > conftest.$ac_ext <<EOF
2134 #line 2135 "configure"
2135 #include "confdefs.h"
2139 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2140 { (eval echo configure:2141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2141 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2142 if test -z "$ac_err"; then
2146 echo "configure: failed program was:" >&5
2147 cat conftest.$ac_ext >&5
2149 CPP="${CC-cc} -nologo -E"
2150 cat > conftest.$ac_ext <<EOF
2151 #line 2152 "configure"
2152 #include "confdefs.h"
2156 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2157 { (eval echo configure:2158: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2158 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2159 if test -z "$ac_err"; then
2163 echo "configure: failed program was:" >&5
2164 cat conftest.$ac_ext >&5
2173 ac_cv_prog_CPP="$CPP"
2175 CPP="$ac_cv_prog_CPP"
2177 ac_cv_prog_CPP="$CPP"
2179 echo "$ac_t""$CPP" 1>&6
2181 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2182 echo "configure:2183: checking for ANSI C header files" >&5
2183 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2184 echo $ac_n "(cached) $ac_c" 1>&6
2186 cat > conftest.$ac_ext <<EOF
2187 #line 2188 "configure"
2188 #include "confdefs.h"
2194 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2195 { (eval echo configure:2196: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2196 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2197 if test -z "$ac_err"; then
2199 ac_cv_header_stdc=yes
2202 echo "configure: failed program was:" >&5
2203 cat conftest.$ac_ext >&5
2205 ac_cv_header_stdc=no
2209 if test $ac_cv_header_stdc = yes; then
2210 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2211 cat > conftest.$ac_ext <<EOF
2212 #line 2213 "configure"
2213 #include "confdefs.h"
2216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2217 egrep "memchr" >/dev/null 2>&1; then
2221 ac_cv_header_stdc=no
2227 if test $ac_cv_header_stdc = yes; then
2228 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2229 cat > conftest.$ac_ext <<EOF
2230 #line 2231 "configure"
2231 #include "confdefs.h"
2234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2235 egrep "free" >/dev/null 2>&1; then
2239 ac_cv_header_stdc=no
2245 if test $ac_cv_header_stdc = yes; then
2246 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2247 if test "$cross_compiling" = yes; then
2250 cat > conftest.$ac_ext <<EOF
2251 #line 2252 "configure"
2252 #include "confdefs.h"
2254 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2255 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2256 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2257 int main () { int i; for (i = 0; i < 256; i++)
2258 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2262 if { (eval echo configure:2263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2266 echo "configure: failed program was:" >&5
2267 cat conftest.$ac_ext >&5
2269 ac_cv_header_stdc=no
2277 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2278 if test $ac_cv_header_stdc = yes; then
2279 cat >> confdefs.h <<\EOF
2280 #define STDC_HEADERS 1
2285 echo $ac_n "checking for working const""... $ac_c" 1>&6
2286 echo "configure:2287: checking for working const" >&5
2287 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2288 echo $ac_n "(cached) $ac_c" 1>&6
2290 cat > conftest.$ac_ext <<EOF
2291 #line 2292 "configure"
2292 #include "confdefs.h"
2296 /* Ultrix mips cc rejects this. */
2297 typedef int charset[2]; const charset x;
2298 /* SunOS 4.1.1 cc rejects this. */
2299 char const *const *ccp;
2301 /* NEC SVR4.0.2 mips cc rejects this. */
2302 struct point {int x, y;};
2303 static struct point const zero = {0,0};
2304 /* AIX XL C 1.02.0.0 rejects this.
2305 It does not let you subtract one const X* pointer from another in an arm
2306 of an if-expression whose if-part is not a constant expression */
2307 const char *g = "string";
2308 ccp = &g + (g ? g-g : 0);
2309 /* HPUX 7.0 cc rejects these. */
2312 ccp = (char const *const *) p;
2313 { /* SCO 3.2v4 cc rejects this. */
2315 char const *s = 0 ? (char *) 0 : (char const *) 0;
2319 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2321 const int *foo = &x[0];
2324 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2325 typedef const int *iptr;
2329 { /* AIX XL C 1.02.0.0 rejects this saying
2330 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2331 struct s { int j; const int *ap[3]; };
2332 struct s *b; b->j = 5;
2334 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2340 if { (eval echo configure:2341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2344 echo "configure: failed program was:" >&5
2345 cat conftest.$ac_ext >&5
2352 echo "$ac_t""$ac_cv_c_const" 1>&6
2353 if test $ac_cv_c_const = no; then
2354 cat >> confdefs.h <<\EOF
2360 echo $ac_n "checking for inline""... $ac_c" 1>&6
2361 echo "configure:2362: checking for inline" >&5
2362 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2363 echo $ac_n "(cached) $ac_c" 1>&6
2366 for ac_kw in inline __inline__ __inline; do
2367 cat > conftest.$ac_ext <<EOF
2368 #line 2369 "configure"
2369 #include "confdefs.h"
2375 if { (eval echo configure:2376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2377 ac_cv_c_inline=$ac_kw; break
2379 echo "configure: failed program was:" >&5
2380 cat conftest.$ac_ext >&5
2387 echo "$ac_t""$ac_cv_c_inline" 1>&6
2388 case "$ac_cv_c_inline" in
2390 no) cat >> confdefs.h <<\EOF
2394 *) cat >> confdefs.h <<EOF
2395 #define inline $ac_cv_c_inline
2400 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2401 echo "configure:2402: checking for off_t" >&5
2402 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2403 echo $ac_n "(cached) $ac_c" 1>&6
2405 cat > conftest.$ac_ext <<EOF
2406 #line 2407 "configure"
2407 #include "confdefs.h"
2408 #include <sys/types.h>
2414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2415 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2417 ac_cv_type_off_t=yes
2425 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2426 if test $ac_cv_type_off_t = no; then
2427 cat >> confdefs.h <<\EOF
2433 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2434 echo "configure:2435: checking for size_t" >&5
2435 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2436 echo $ac_n "(cached) $ac_c" 1>&6
2438 cat > conftest.$ac_ext <<EOF
2439 #line 2440 "configure"
2440 #include "confdefs.h"
2441 #include <sys/types.h>
2447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2448 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2450 ac_cv_type_size_t=yes
2453 ac_cv_type_size_t=no
2458 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2459 if test $ac_cv_type_size_t = no; then
2460 cat >> confdefs.h <<\EOF
2461 #define size_t unsigned
2466 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2467 # for constant arguments. Useless!
2468 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2469 echo "configure:2470: checking for working alloca.h" >&5
2470 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2471 echo $ac_n "(cached) $ac_c" 1>&6
2473 cat > conftest.$ac_ext <<EOF
2474 #line 2475 "configure"
2475 #include "confdefs.h"
2478 char *p = alloca(2 * sizeof(int));
2481 if { (eval echo configure:2482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2483 ac_cv_header_alloca_h=yes
2485 echo "configure: failed program was:" >&5
2486 cat conftest.$ac_ext >&5
2488 ac_cv_header_alloca_h=no
2493 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2494 if test $ac_cv_header_alloca_h = yes; then
2495 cat >> confdefs.h <<\EOF
2496 #define HAVE_ALLOCA_H 1
2501 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2502 echo "configure:2503: checking for alloca" >&5
2503 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2504 echo $ac_n "(cached) $ac_c" 1>&6
2506 cat > conftest.$ac_ext <<EOF
2507 #line 2508 "configure"
2508 #include "confdefs.h"
2511 # define alloca __builtin_alloca
2514 # include <malloc.h>
2515 # define alloca _alloca
2518 # include <alloca.h>
2523 # ifndef alloca /* predefined by HP cc +Olibcalls */
2532 char *p = (char *) alloca(1);
2535 if { (eval echo configure:2536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2537 ac_cv_func_alloca_works=yes
2539 echo "configure: failed program was:" >&5
2540 cat conftest.$ac_ext >&5
2542 ac_cv_func_alloca_works=no
2547 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2548 if test $ac_cv_func_alloca_works = yes; then
2549 cat >> confdefs.h <<\EOF
2550 #define HAVE_ALLOCA 1
2555 if test $ac_cv_func_alloca_works = no; then
2556 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2557 # that cause trouble. Some versions do not even contain alloca or
2558 # contain a buggy version. If you still want to use their alloca,
2559 # use ar to extract alloca.o from them instead of compiling alloca.c.
2560 ALLOCA=alloca.${ac_objext}
2561 cat >> confdefs.h <<\EOF
2566 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2567 echo "configure:2568: checking whether alloca needs Cray hooks" >&5
2568 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2569 echo $ac_n "(cached) $ac_c" 1>&6
2571 cat > conftest.$ac_ext <<EOF
2572 #line 2573 "configure"
2573 #include "confdefs.h"
2574 #if defined(CRAY) && ! defined(CRAY2)
2581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2582 egrep "webecray" >/dev/null 2>&1; then
2593 echo "$ac_t""$ac_cv_os_cray" 1>&6
2594 if test $ac_cv_os_cray = yes; then
2595 for ac_func in _getb67 GETB67 getb67; do
2596 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2597 echo "configure:2598: checking for $ac_func" >&5
2598 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2599 echo $ac_n "(cached) $ac_c" 1>&6
2601 cat > conftest.$ac_ext <<EOF
2602 #line 2603 "configure"
2603 #include "confdefs.h"
2604 /* System header to define __stub macros and hopefully few prototypes,
2605 which can conflict with char $ac_func(); below. */
2607 /* Override any gcc2 internal prototype to avoid an error. */
2608 /* We use char because int might match the return type of a gcc2
2609 builtin and then its argument prototype would still apply. */
2614 /* The GNU C library defines this for functions which it implements
2615 to always fail with ENOSYS. Some functions are actually named
2616 something starting with __ and the normal name is an alias. */
2617 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2625 if { (eval echo configure:2626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2627 eval "ac_cv_func_$ac_func=yes"
2629 echo "configure: failed program was:" >&5
2630 cat conftest.$ac_ext >&5
2632 eval "ac_cv_func_$ac_func=no"
2637 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2638 echo "$ac_t""yes" 1>&6
2639 cat >> confdefs.h <<EOF
2640 #define CRAY_STACKSEG_END $ac_func
2645 echo "$ac_t""no" 1>&6
2651 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2652 echo "configure:2653: checking stack direction for C alloca" >&5
2653 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2654 echo $ac_n "(cached) $ac_c" 1>&6
2656 if test "$cross_compiling" = yes; then
2657 ac_cv_c_stack_direction=0
2659 cat > conftest.$ac_ext <<EOF
2660 #line 2661 "configure"
2661 #include "confdefs.h"
2662 find_stack_direction ()
2664 static char *addr = 0;
2669 return find_stack_direction ();
2672 return (&dummy > addr) ? 1 : -1;
2676 exit (find_stack_direction() < 0);
2679 if { (eval echo configure:2680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2681 ac_cv_c_stack_direction=1
2683 echo "configure: failed program was:" >&5
2684 cat conftest.$ac_ext >&5
2686 ac_cv_c_stack_direction=-1
2693 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2694 cat >> confdefs.h <<EOF
2695 #define STACK_DIRECTION $ac_cv_c_stack_direction
2700 for ac_hdr in unistd.h
2702 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2703 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2704 echo "configure:2705: checking for $ac_hdr" >&5
2705 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2706 echo $ac_n "(cached) $ac_c" 1>&6
2708 cat > conftest.$ac_ext <<EOF
2709 #line 2710 "configure"
2710 #include "confdefs.h"
2713 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2714 { (eval echo configure:2715: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2715 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2716 if test -z "$ac_err"; then
2718 eval "ac_cv_header_$ac_safe=yes"
2721 echo "configure: failed program was:" >&5
2722 cat conftest.$ac_ext >&5
2724 eval "ac_cv_header_$ac_safe=no"
2728 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2729 echo "$ac_t""yes" 1>&6
2730 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2731 cat >> confdefs.h <<EOF
2732 #define $ac_tr_hdr 1
2736 echo "$ac_t""no" 1>&6
2740 for ac_func in getpagesize
2742 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2743 echo "configure:2744: checking for $ac_func" >&5
2744 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2745 echo $ac_n "(cached) $ac_c" 1>&6
2747 cat > conftest.$ac_ext <<EOF
2748 #line 2749 "configure"
2749 #include "confdefs.h"
2750 /* System header to define __stub macros and hopefully few prototypes,
2751 which can conflict with char $ac_func(); below. */
2753 /* Override any gcc2 internal prototype to avoid an error. */
2754 /* We use char because int might match the return type of a gcc2
2755 builtin and then its argument prototype would still apply. */
2760 /* The GNU C library defines this for functions which it implements
2761 to always fail with ENOSYS. Some functions are actually named
2762 something starting with __ and the normal name is an alias. */
2763 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2771 if { (eval echo configure:2772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2773 eval "ac_cv_func_$ac_func=yes"
2775 echo "configure: failed program was:" >&5
2776 cat conftest.$ac_ext >&5
2778 eval "ac_cv_func_$ac_func=no"
2783 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2784 echo "$ac_t""yes" 1>&6
2785 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2786 cat >> confdefs.h <<EOF
2787 #define $ac_tr_func 1
2791 echo "$ac_t""no" 1>&6
2795 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2796 echo "configure:2797: checking for working mmap" >&5
2797 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2798 echo $ac_n "(cached) $ac_c" 1>&6
2800 if test "$cross_compiling" = yes; then
2801 ac_cv_func_mmap_fixed_mapped=no
2803 cat > conftest.$ac_ext <<EOF
2804 #line 2805 "configure"
2805 #include "confdefs.h"
2807 /* Thanks to Mike Haertel and Jim Avera for this test.
2808 Here is a matrix of mmap possibilities:
2809 mmap private not fixed
2810 mmap private fixed at somewhere currently unmapped
2811 mmap private fixed at somewhere already mapped
2812 mmap shared not fixed
2813 mmap shared fixed at somewhere currently unmapped
2814 mmap shared fixed at somewhere already mapped
2815 For private mappings, we should verify that changes cannot be read()
2816 back from the file, nor mmap's back from the file at a different
2817 address. (There have been systems where private was not correctly
2818 implemented like the infamous i386 svr4.0, and systems where the
2819 VM page cache was not coherent with the filesystem buffer cache
2820 like early versions of FreeBSD and possibly contemporary NetBSD.)
2821 For shared mappings, we should conversely verify that changes get
2822 propogated back to all the places they're supposed to be.
2824 Grep wants private fixed already mapped.
2825 The main things grep needs to know about mmap are:
2826 * does it exist and is it safe to write into the mmap'd area
2827 * how to use it (BSD variants) */
2828 #include <sys/types.h>
2830 #include <sys/mman.h>
2832 /* This mess was copied from the GNU getpagesize.h. */
2833 #ifndef HAVE_GETPAGESIZE
2834 # ifdef HAVE_UNISTD_H
2835 # include <unistd.h>
2838 /* Assume that all systems that can run configure have sys/param.h. */
2839 # ifndef HAVE_SYS_PARAM_H
2840 # define HAVE_SYS_PARAM_H 1
2843 # ifdef _SC_PAGESIZE
2844 # define getpagesize() sysconf(_SC_PAGESIZE)
2845 # else /* no _SC_PAGESIZE */
2846 # ifdef HAVE_SYS_PARAM_H
2847 # include <sys/param.h>
2848 # ifdef EXEC_PAGESIZE
2849 # define getpagesize() EXEC_PAGESIZE
2850 # else /* no EXEC_PAGESIZE */
2852 # define getpagesize() NBPG * CLSIZE
2855 # endif /* no CLSIZE */
2856 # else /* no NBPG */
2858 # define getpagesize() NBPC
2859 # else /* no NBPC */
2861 # define getpagesize() PAGESIZE
2862 # endif /* PAGESIZE */
2863 # endif /* no NBPC */
2864 # endif /* no NBPG */
2865 # endif /* no EXEC_PAGESIZE */
2866 # else /* no HAVE_SYS_PARAM_H */
2867 # define getpagesize() 8192 /* punt totally */
2868 # endif /* no HAVE_SYS_PARAM_H */
2869 # endif /* no _SC_PAGESIZE */
2871 #endif /* no HAVE_GETPAGESIZE */
2874 extern "C" { void *malloc(unsigned); }
2882 char *data, *data2, *data3;
2886 pagesize = getpagesize();
2889 * First, make a file with some known garbage in it.
2891 data = malloc(pagesize);
2894 for (i = 0; i < pagesize; ++i)
2895 *(data + i) = rand();
2897 fd = creat("conftestmmap", 0600);
2900 if (write(fd, data, pagesize) != pagesize)
2905 * Next, try to mmap the file at a fixed address which
2906 * already has something else allocated at it. If we can,
2907 * also make sure that we see the same garbage.
2909 fd = open("conftestmmap", O_RDWR);
2912 data2 = malloc(2 * pagesize);
2915 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2916 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2917 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2919 for (i = 0; i < pagesize; ++i)
2920 if (*(data + i) != *(data2 + i))
2924 * Finally, make sure that changes to the mapped area
2925 * do not percolate back to the file as seen by read().
2926 * (This is a bug on some variants of i386 svr4.0.)
2928 for (i = 0; i < pagesize; ++i)
2929 *(data2 + i) = *(data2 + i) + 1;
2930 data3 = malloc(pagesize);
2933 if (read(fd, data3, pagesize) != pagesize)
2935 for (i = 0; i < pagesize; ++i)
2936 if (*(data + i) != *(data3 + i))
2939 unlink("conftestmmap");
2944 if { (eval echo configure:2945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2946 ac_cv_func_mmap_fixed_mapped=yes
2948 echo "configure: failed program was:" >&5
2949 cat conftest.$ac_ext >&5
2951 ac_cv_func_mmap_fixed_mapped=no
2958 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2959 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2960 cat >> confdefs.h <<\EOF
2967 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2968 unistd.h values.h sys/param.h
2970 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2971 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2972 echo "configure:2973: checking for $ac_hdr" >&5
2973 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2974 echo $ac_n "(cached) $ac_c" 1>&6
2976 cat > conftest.$ac_ext <<EOF
2977 #line 2978 "configure"
2978 #include "confdefs.h"
2981 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2982 { (eval echo configure:2983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2983 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2984 if test -z "$ac_err"; then
2986 eval "ac_cv_header_$ac_safe=yes"
2989 echo "configure: failed program was:" >&5
2990 cat conftest.$ac_ext >&5
2992 eval "ac_cv_header_$ac_safe=no"
2996 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2997 echo "$ac_t""yes" 1>&6
2998 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2999 cat >> confdefs.h <<EOF
3000 #define $ac_tr_hdr 1
3004 echo "$ac_t""no" 1>&6
3008 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3009 __argz_count __argz_stringify __argz_next
3011 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3012 echo "configure:3013: checking for $ac_func" >&5
3013 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3014 echo $ac_n "(cached) $ac_c" 1>&6
3016 cat > conftest.$ac_ext <<EOF
3017 #line 3018 "configure"
3018 #include "confdefs.h"
3019 /* System header to define __stub macros and hopefully few prototypes,
3020 which can conflict with char $ac_func(); below. */
3022 /* Override any gcc2 internal prototype to avoid an error. */
3023 /* We use char because int might match the return type of a gcc2
3024 builtin and then its argument prototype would still apply. */
3029 /* The GNU C library defines this for functions which it implements
3030 to always fail with ENOSYS. Some functions are actually named
3031 something starting with __ and the normal name is an alias. */
3032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3040 if { (eval echo configure:3041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3042 eval "ac_cv_func_$ac_func=yes"
3044 echo "configure: failed program was:" >&5
3045 cat conftest.$ac_ext >&5
3047 eval "ac_cv_func_$ac_func=no"
3052 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3053 echo "$ac_t""yes" 1>&6
3054 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3055 cat >> confdefs.h <<EOF
3056 #define $ac_tr_func 1
3060 echo "$ac_t""no" 1>&6
3065 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3066 for ac_func in stpcpy
3068 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3069 echo "configure:3070: checking for $ac_func" >&5
3070 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3071 echo $ac_n "(cached) $ac_c" 1>&6
3073 cat > conftest.$ac_ext <<EOF
3074 #line 3075 "configure"
3075 #include "confdefs.h"
3076 /* System header to define __stub macros and hopefully few prototypes,
3077 which can conflict with char $ac_func(); below. */
3079 /* Override any gcc2 internal prototype to avoid an error. */
3080 /* We use char because int might match the return type of a gcc2
3081 builtin and then its argument prototype would still apply. */
3086 /* The GNU C library defines this for functions which it implements
3087 to always fail with ENOSYS. Some functions are actually named
3088 something starting with __ and the normal name is an alias. */
3089 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3097 if { (eval echo configure:3098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3099 eval "ac_cv_func_$ac_func=yes"
3101 echo "configure: failed program was:" >&5
3102 cat conftest.$ac_ext >&5
3104 eval "ac_cv_func_$ac_func=no"
3109 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3110 echo "$ac_t""yes" 1>&6
3111 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3112 cat >> confdefs.h <<EOF
3113 #define $ac_tr_func 1
3117 echo "$ac_t""no" 1>&6
3122 if test "${ac_cv_func_stpcpy}" = "yes"; then
3123 cat >> confdefs.h <<\EOF
3124 #define HAVE_STPCPY 1
3129 if test $ac_cv_header_locale_h = yes; then
3130 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3131 echo "configure:3132: checking for LC_MESSAGES" >&5
3132 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3133 echo $ac_n "(cached) $ac_c" 1>&6
3135 cat > conftest.$ac_ext <<EOF
3136 #line 3137 "configure"
3137 #include "confdefs.h"
3143 if { (eval echo configure:3144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3145 am_cv_val_LC_MESSAGES=yes
3147 echo "configure: failed program was:" >&5
3148 cat conftest.$ac_ext >&5
3150 am_cv_val_LC_MESSAGES=no
3155 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3156 if test $am_cv_val_LC_MESSAGES = yes; then
3157 cat >> confdefs.h <<\EOF
3158 #define HAVE_LC_MESSAGES 1
3163 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3164 echo "configure:3165: checking whether NLS is requested" >&5
3165 # Check whether --enable-nls or --disable-nls was given.
3166 if test "${enable_nls+set}" = set; then
3167 enableval="$enable_nls"
3173 echo "$ac_t""$USE_NLS" 1>&6
3176 USE_INCLUDED_LIBINTL=no
3178 if test "$USE_NLS" = "yes"; then
3179 cat >> confdefs.h <<\EOF
3180 #define ENABLE_NLS 1
3183 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3184 echo "configure:3185: checking whether included gettext is requested" >&5
3185 # Check whether --with-included-gettext or --without-included-gettext was given.
3186 if test "${with_included_gettext+set}" = set; then
3187 withval="$with_included_gettext"
3188 nls_cv_force_use_gnu_gettext=$withval
3190 nls_cv_force_use_gnu_gettext=no
3193 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3195 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3196 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3198 nls_cv_header_libgt=
3201 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3202 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3203 echo "configure:3204: checking for libintl.h" >&5
3204 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3205 echo $ac_n "(cached) $ac_c" 1>&6
3207 cat > conftest.$ac_ext <<EOF
3208 #line 3209 "configure"
3209 #include "confdefs.h"
3210 #include <libintl.h>
3212 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3213 { (eval echo configure:3214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3214 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3215 if test -z "$ac_err"; then
3217 eval "ac_cv_header_$ac_safe=yes"
3220 echo "configure: failed program was:" >&5
3221 cat conftest.$ac_ext >&5
3223 eval "ac_cv_header_$ac_safe=no"
3227 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3228 echo "$ac_t""yes" 1>&6
3229 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3230 echo "configure:3231: checking for gettext in libc" >&5
3231 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3232 echo $ac_n "(cached) $ac_c" 1>&6
3234 cat > conftest.$ac_ext <<EOF
3235 #line 3236 "configure"
3236 #include "confdefs.h"
3237 #include <libintl.h>
3239 return (int) gettext ("")
3242 if { (eval echo configure:3243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3244 gt_cv_func_gettext_libc=yes
3246 echo "configure: failed program was:" >&5
3247 cat conftest.$ac_ext >&5
3249 gt_cv_func_gettext_libc=no
3254 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3256 if test "$gt_cv_func_gettext_libc" != "yes"; then
3257 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3258 echo "configure:3259: checking for bindtextdomain in -lintl" >&5
3259 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3260 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3261 echo $ac_n "(cached) $ac_c" 1>&6
3263 ac_save_LIBS="$LIBS"
3265 cat > conftest.$ac_ext <<EOF
3266 #line 3267 "configure"
3267 #include "confdefs.h"
3268 /* Override any gcc2 internal prototype to avoid an error. */
3269 /* We use char because int might match the return type of a gcc2
3270 builtin and then its argument prototype would still apply. */
3271 char bindtextdomain();
3277 if { (eval echo configure:3278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3279 eval "ac_cv_lib_$ac_lib_var=yes"
3281 echo "configure: failed program was:" >&5
3282 cat conftest.$ac_ext >&5
3284 eval "ac_cv_lib_$ac_lib_var=no"
3287 LIBS="$ac_save_LIBS"
3290 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3291 echo "$ac_t""yes" 1>&6
3292 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3293 echo "configure:3294: checking for gettext in libintl" >&5
3294 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3295 echo $ac_n "(cached) $ac_c" 1>&6
3297 cat > conftest.$ac_ext <<EOF
3298 #line 3299 "configure"
3299 #include "confdefs.h"
3302 return (int) gettext ("")
3305 if { (eval echo configure:3306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3307 gt_cv_func_gettext_libintl=yes
3309 echo "configure: failed program was:" >&5
3310 cat conftest.$ac_ext >&5
3312 gt_cv_func_gettext_libintl=no
3317 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3319 echo "$ac_t""no" 1>&6
3324 if test "$gt_cv_func_gettext_libc" = "yes" \
3325 || test "$gt_cv_func_gettext_libintl" = "yes"; then
3326 cat >> confdefs.h <<\EOF
3327 #define HAVE_GETTEXT 1
3330 # Extract the first word of "msgfmt", so it can be a program name with args.
3331 set dummy msgfmt; ac_word=$2
3332 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3333 echo "configure:3334: checking for $ac_word" >&5
3334 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3335 echo $ac_n "(cached) $ac_c" 1>&6
3339 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3342 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3343 for ac_dir in $PATH; do
3344 test -z "$ac_dir" && ac_dir=.
3345 if test -f $ac_dir/$ac_word; then
3346 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3347 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3353 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
3357 MSGFMT="$ac_cv_path_MSGFMT"
3358 if test -n "$MSGFMT"; then
3359 echo "$ac_t""$MSGFMT" 1>&6
3361 echo "$ac_t""no" 1>&6
3363 if test "$MSGFMT" != "no"; then
3364 for ac_func in dcgettext
3366 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3367 echo "configure:3368: checking for $ac_func" >&5
3368 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3369 echo $ac_n "(cached) $ac_c" 1>&6
3371 cat > conftest.$ac_ext <<EOF
3372 #line 3373 "configure"
3373 #include "confdefs.h"
3374 /* System header to define __stub macros and hopefully few prototypes,
3375 which can conflict with char $ac_func(); below. */
3377 /* Override any gcc2 internal prototype to avoid an error. */
3378 /* We use char because int might match the return type of a gcc2
3379 builtin and then its argument prototype would still apply. */
3384 /* The GNU C library defines this for functions which it implements
3385 to always fail with ENOSYS. Some functions are actually named
3386 something starting with __ and the normal name is an alias. */
3387 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3395 if { (eval echo configure:3396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3397 eval "ac_cv_func_$ac_func=yes"
3399 echo "configure: failed program was:" >&5
3400 cat conftest.$ac_ext >&5
3402 eval "ac_cv_func_$ac_func=no"
3407 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3408 echo "$ac_t""yes" 1>&6
3409 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3410 cat >> confdefs.h <<EOF
3411 #define $ac_tr_func 1
3415 echo "$ac_t""no" 1>&6
3419 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3420 set dummy gmsgfmt; ac_word=$2
3421 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3422 echo "configure:3423: checking for $ac_word" >&5
3423 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3424 echo $ac_n "(cached) $ac_c" 1>&6
3428 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3431 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3434 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3436 for ac_dir in $ac_dummy; do
3437 test -z "$ac_dir" && ac_dir=.
3438 if test -f $ac_dir/$ac_word; then
3439 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3444 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3448 GMSGFMT="$ac_cv_path_GMSGFMT"
3449 if test -n "$GMSGFMT"; then
3450 echo "$ac_t""$GMSGFMT" 1>&6
3452 echo "$ac_t""no" 1>&6
3455 # Extract the first word of "xgettext", so it can be a program name with args.
3456 set dummy xgettext; ac_word=$2
3457 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3458 echo "configure:3459: checking for $ac_word" >&5
3459 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3460 echo $ac_n "(cached) $ac_c" 1>&6
3464 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3467 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3468 for ac_dir in $PATH; do
3469 test -z "$ac_dir" && ac_dir=.
3470 if test -f $ac_dir/$ac_word; then
3471 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3472 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3478 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3482 XGETTEXT="$ac_cv_path_XGETTEXT"
3483 if test -n "$XGETTEXT"; then
3484 echo "$ac_t""$XGETTEXT" 1>&6
3486 echo "$ac_t""no" 1>&6
3489 cat > conftest.$ac_ext <<EOF
3490 #line 3491 "configure"
3491 #include "confdefs.h"
3494 extern int _nl_msg_cat_cntr;
3495 return _nl_msg_cat_cntr
3498 if { (eval echo configure:3499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3503 echo "configure: failed program was:" >&5
3504 cat conftest.$ac_ext >&5
3515 echo "$ac_t""no" 1>&6
3520 if test "$CATOBJEXT" = "NONE"; then
3521 nls_cv_use_gnu_gettext=yes
3525 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3526 INTLOBJS="\$(GETTOBJS)"
3527 # Extract the first word of "msgfmt", so it can be a program name with args.
3528 set dummy msgfmt; ac_word=$2
3529 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3530 echo "configure:3531: checking for $ac_word" >&5
3531 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3532 echo $ac_n "(cached) $ac_c" 1>&6
3536 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3539 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3540 for ac_dir in $PATH; do
3541 test -z "$ac_dir" && ac_dir=.
3542 if test -f $ac_dir/$ac_word; then
3543 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3544 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3550 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
3554 MSGFMT="$ac_cv_path_MSGFMT"
3555 if test -n "$MSGFMT"; then
3556 echo "$ac_t""$MSGFMT" 1>&6
3558 echo "$ac_t""no" 1>&6
3561 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3562 set dummy gmsgfmt; ac_word=$2
3563 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3564 echo "configure:3565: checking for $ac_word" >&5
3565 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3566 echo $ac_n "(cached) $ac_c" 1>&6
3570 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3573 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3576 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3578 for ac_dir in $ac_dummy; do
3579 test -z "$ac_dir" && ac_dir=.
3580 if test -f $ac_dir/$ac_word; then
3581 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3586 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3590 GMSGFMT="$ac_cv_path_GMSGFMT"
3591 if test -n "$GMSGFMT"; then
3592 echo "$ac_t""$GMSGFMT" 1>&6
3594 echo "$ac_t""no" 1>&6
3597 # Extract the first word of "xgettext", so it can be a program name with args.
3598 set dummy xgettext; ac_word=$2
3599 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3600 echo "configure:3601: checking for $ac_word" >&5
3601 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3602 echo $ac_n "(cached) $ac_c" 1>&6
3606 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3609 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3610 for ac_dir in $PATH; do
3611 test -z "$ac_dir" && ac_dir=.
3612 if test -f $ac_dir/$ac_word; then
3613 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3614 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3620 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3624 XGETTEXT="$ac_cv_path_XGETTEXT"
3625 if test -n "$XGETTEXT"; then
3626 echo "$ac_t""$XGETTEXT" 1>&6
3628 echo "$ac_t""no" 1>&6
3632 USE_INCLUDED_LIBINTL=yes
3636 INTLDEPS='$(top_builddir)/../intl/libintl.a'
3638 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3639 nls_cv_header_intl=libintl.h
3640 nls_cv_header_libgt=libgettext.h
3643 if test "$XGETTEXT" != ":"; then
3644 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
3647 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
3652 # We need to process the po/ directory.
3656 nls_cv_header_intl=libintl.h
3657 nls_cv_header_libgt=libgettext.h
3660 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3661 # because some of the sources are only built for this goal.
3662 if test "$PACKAGE" = gettext; then
3664 USE_INCLUDED_LIBINTL=yes
3667 for lang in $ALL_LINGUAS; do
3668 GMOFILES="$GMOFILES $lang.gmo"
3669 POFILES="$POFILES $lang.po"
3685 if test "x$CATOBJEXT" != "x"; then
3686 if test "x$ALL_LINGUAS" = "x"; then
3689 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3690 echo "configure:3691: checking for catalogs to be installed" >&5
3692 for lang in ${LINGUAS=$ALL_LINGUAS}; do
3693 case "$ALL_LINGUAS" in
3694 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
3697 LINGUAS=$NEW_LINGUAS
3698 echo "$ac_t""$LINGUAS" 1>&6
3701 if test -n "$LINGUAS"; then
3702 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3706 if test $ac_cv_header_locale_h = yes; then
3707 INCLUDE_LOCALE_H="#include <locale.h>"
3710 /* The system does not provide the header <locale.h>. Take care yourself. */"
3714 if test -f $srcdir/po2tbl.sed.in; then
3715 if test "$CATOBJEXT" = ".cat"; then
3716 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3717 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
3718 echo "configure:3719: checking for linux/version.h" >&5
3719 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3720 echo $ac_n "(cached) $ac_c" 1>&6
3722 cat > conftest.$ac_ext <<EOF
3723 #line 3724 "configure"
3724 #include "confdefs.h"
3725 #include <linux/version.h>
3727 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3728 { (eval echo configure:3729: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3729 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3730 if test -z "$ac_err"; then
3732 eval "ac_cv_header_$ac_safe=yes"
3735 echo "configure: failed program was:" >&5
3736 cat conftest.$ac_ext >&5
3738 eval "ac_cv_header_$ac_safe=no"
3742 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3743 echo "$ac_t""yes" 1>&6
3746 echo "$ac_t""no" 1>&6
3751 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
3753 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3754 $srcdir/po2tbl.sed.in > po2tbl.sed
3757 if test "$PACKAGE" = "gettext"; then
3767 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
3773 if test -d $srcdir/po; then
3774 test -d po || mkdir po
3775 if test "x$srcdir" != "x."; then
3776 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3777 posrcprefix="$srcdir/"
3779 posrcprefix="../$srcdir/"
3785 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3786 < $srcdir/po/POTFILES.in > po/POTFILES
3790 # Permit host specific settings.
3791 . ${srcdir}/configure.host
3794 # Find a good install program. We prefer a C program (faster),
3795 # so one script is as good as another. But avoid the broken or
3796 # incompatible versions:
3797 # SysV /etc/install, /usr/sbin/install
3798 # SunOS /usr/etc/install
3799 # IRIX /sbin/install
3801 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3802 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3803 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3804 # ./install, which can be erroneously created by make from ./install.sh.
3805 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3806 echo "configure:3807: checking for a BSD compatible install" >&5
3807 if test -z "$INSTALL"; then
3808 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3809 echo $ac_n "(cached) $ac_c" 1>&6
3811 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3812 for ac_dir in $PATH; do
3813 # Account for people who put trailing slashes in PATH elements.
3815 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3817 # OSF1 and SCO ODT 3.0 have their own names for install.
3818 # Don't use installbsd from OSF since it installs stuff as root
3820 for ac_prog in ginstall scoinst install; do
3821 if test -f $ac_dir/$ac_prog; then
3822 if test $ac_prog = install &&
3823 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3824 # AIX install. It has an incompatible calling convention.
3827 ac_cv_path_install="$ac_dir/$ac_prog -c"
3838 if test "${ac_cv_path_install+set}" = set; then
3839 INSTALL="$ac_cv_path_install"
3841 # As a last resort, use the slow shell script. We don't cache a
3842 # path for INSTALL within a source directory, because that will
3843 # break other packages using the cache if that directory is
3844 # removed, or if the path is relative.
3845 INSTALL="$ac_install_sh"
3848 echo "$ac_t""$INSTALL" 1>&6
3850 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3851 # It thinks the first close brace ends the variable substitution.
3852 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3854 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3856 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3859 BFD_HOST_64BIT_LONG=0
3860 BFD_HOST_64_BIT_DEFINED=0
3863 if test "x${HOST_64BIT_TYPE}" = "xlong"; then
3864 BFD_HOST_64BIT_LONG=1
3865 elif test "x${HOST_64BIT_TYPE}" != "x"; then
3866 BFD_HOST_64_BIT_DEFINED=1
3867 BFD_HOST_64_BIT=${HOST_64BIT_TYPE}
3868 BFD_HOST_U_64_BIT=${HOST_U_64BIT_TYPE}
3875 # Put a plausible default for CC_FOR_BUILD in Makefile.
3876 if test -z "$CC_FOR_BUILD"; then
3877 if test "x$cross_compiling" = "xno"; then
3878 CC_FOR_BUILD='$(CC)'
3884 # Also set EXEEXT_FOR_BUILD.
3885 if test "x$cross_compiling" = "xno"; then
3886 EXEEXT_FOR_BUILD='$(EXEEXT)'
3888 echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
3889 echo "configure:3890: checking for build system executable suffix" >&5
3890 if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
3891 echo $ac_n "(cached) $ac_c" 1>&6
3894 echo 'int main () { return 0; }' > conftest.c
3895 bfd_cv_build_exeext=
3896 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
3897 for file in conftest.*; do
3899 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
3900 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
3904 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
3907 echo "$ac_t""$bfd_cv_build_exeext" 1>&6
3909 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
3913 for ac_hdr in stddef.h string.h strings.h stdlib.h time.h unistd.h
3915 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3916 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3917 echo "configure:3918: checking for $ac_hdr" >&5
3918 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3919 echo $ac_n "(cached) $ac_c" 1>&6
3921 cat > conftest.$ac_ext <<EOF
3922 #line 3923 "configure"
3923 #include "confdefs.h"
3926 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3927 { (eval echo configure:3928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3928 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3929 if test -z "$ac_err"; then
3931 eval "ac_cv_header_$ac_safe=yes"
3934 echo "configure: failed program was:" >&5
3935 cat conftest.$ac_ext >&5
3937 eval "ac_cv_header_$ac_safe=no"
3941 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3942 echo "$ac_t""yes" 1>&6
3943 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3944 cat >> confdefs.h <<EOF
3945 #define $ac_tr_hdr 1
3949 echo "$ac_t""no" 1>&6
3953 for ac_hdr in fcntl.h sys/file.h sys/time.h
3955 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3956 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3957 echo "configure:3958: checking for $ac_hdr" >&5
3958 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3959 echo $ac_n "(cached) $ac_c" 1>&6
3961 cat > conftest.$ac_ext <<EOF
3962 #line 3963 "configure"
3963 #include "confdefs.h"
3966 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3967 { (eval echo configure:3968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3968 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3969 if test -z "$ac_err"; then
3971 eval "ac_cv_header_$ac_safe=yes"
3974 echo "configure: failed program was:" >&5
3975 cat conftest.$ac_ext >&5
3977 eval "ac_cv_header_$ac_safe=no"
3981 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3982 echo "$ac_t""yes" 1>&6
3983 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3984 cat >> confdefs.h <<EOF
3985 #define $ac_tr_hdr 1
3989 echo "$ac_t""no" 1>&6
3993 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3994 echo "configure:3995: checking whether time.h and sys/time.h may both be included" >&5
3995 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3996 echo $ac_n "(cached) $ac_c" 1>&6
3998 cat > conftest.$ac_ext <<EOF
3999 #line 4000 "configure"
4000 #include "confdefs.h"
4001 #include <sys/types.h>
4002 #include <sys/time.h>
4008 if { (eval echo configure:4009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4010 ac_cv_header_time=yes
4012 echo "configure: failed program was:" >&5
4013 cat conftest.$ac_ext >&5
4015 ac_cv_header_time=no
4020 echo "$ac_t""$ac_cv_header_time" 1>&6
4021 if test $ac_cv_header_time = yes; then
4022 cat >> confdefs.h <<\EOF
4023 #define TIME_WITH_SYS_TIME 1
4029 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4031 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4032 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4033 echo "configure:4034: checking for $ac_hdr that defines DIR" >&5
4034 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
4035 echo $ac_n "(cached) $ac_c" 1>&6
4037 cat > conftest.$ac_ext <<EOF
4038 #line 4039 "configure"
4039 #include "confdefs.h"
4040 #include <sys/types.h>
4046 if { (eval echo configure:4047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4048 eval "ac_cv_header_dirent_$ac_safe=yes"
4050 echo "configure: failed program was:" >&5
4051 cat conftest.$ac_ext >&5
4053 eval "ac_cv_header_dirent_$ac_safe=no"
4057 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4058 echo "$ac_t""yes" 1>&6
4059 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4060 cat >> confdefs.h <<EOF
4061 #define $ac_tr_hdr 1
4063 ac_header_dirent=$ac_hdr; break
4065 echo "$ac_t""no" 1>&6
4068 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4069 if test $ac_header_dirent = dirent.h; then
4070 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4071 echo "configure:4072: checking for opendir in -ldir" >&5
4072 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
4073 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4074 echo $ac_n "(cached) $ac_c" 1>&6
4076 ac_save_LIBS="$LIBS"
4078 cat > conftest.$ac_ext <<EOF
4079 #line 4080 "configure"
4080 #include "confdefs.h"
4081 /* Override any gcc2 internal prototype to avoid an error. */
4082 /* We use char because int might match the return type of a gcc2
4083 builtin and then its argument prototype would still apply. */
4090 if { (eval echo configure:4091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4092 eval "ac_cv_lib_$ac_lib_var=yes"
4094 echo "configure: failed program was:" >&5
4095 cat conftest.$ac_ext >&5
4097 eval "ac_cv_lib_$ac_lib_var=no"
4100 LIBS="$ac_save_LIBS"
4103 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4104 echo "$ac_t""yes" 1>&6
4107 echo "$ac_t""no" 1>&6
4111 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4112 echo "configure:4113: checking for opendir in -lx" >&5
4113 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
4114 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4115 echo $ac_n "(cached) $ac_c" 1>&6
4117 ac_save_LIBS="$LIBS"
4119 cat > conftest.$ac_ext <<EOF
4120 #line 4121 "configure"
4121 #include "confdefs.h"
4122 /* Override any gcc2 internal prototype to avoid an error. */
4123 /* We use char because int might match the return type of a gcc2
4124 builtin and then its argument prototype would still apply. */
4131 if { (eval echo configure:4132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4133 eval "ac_cv_lib_$ac_lib_var=yes"
4135 echo "configure: failed program was:" >&5
4136 cat conftest.$ac_ext >&5
4138 eval "ac_cv_lib_$ac_lib_var=no"
4141 LIBS="$ac_save_LIBS"
4144 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4145 echo "$ac_t""yes" 1>&6
4148 echo "$ac_t""no" 1>&6
4153 for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
4155 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4156 echo "configure:4157: checking for $ac_func" >&5
4157 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4158 echo $ac_n "(cached) $ac_c" 1>&6
4160 cat > conftest.$ac_ext <<EOF
4161 #line 4162 "configure"
4162 #include "confdefs.h"
4163 /* System header to define __stub macros and hopefully few prototypes,
4164 which can conflict with char $ac_func(); below. */
4166 /* Override any gcc2 internal prototype to avoid an error. */
4167 /* We use char because int might match the return type of a gcc2
4168 builtin and then its argument prototype would still apply. */
4173 /* The GNU C library defines this for functions which it implements
4174 to always fail with ENOSYS. Some functions are actually named
4175 something starting with __ and the normal name is an alias. */
4176 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4184 if { (eval echo configure:4185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4186 eval "ac_cv_func_$ac_func=yes"
4188 echo "configure: failed program was:" >&5
4189 cat conftest.$ac_ext >&5
4191 eval "ac_cv_func_$ac_func=no"
4196 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4197 echo "$ac_t""yes" 1>&6
4198 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4199 cat >> confdefs.h <<EOF
4200 #define $ac_tr_func 1
4204 echo "$ac_t""no" 1>&6
4211 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
4212 cat >> confdefs.h <<\EOF
4213 #define USE_BINARY_FOPEN 1
4218 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4219 echo "configure:4220: checking whether strstr must be declared" >&5
4220 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
4221 echo $ac_n "(cached) $ac_c" 1>&6
4223 cat > conftest.$ac_ext <<EOF
4224 #line 4225 "configure"
4225 #include "confdefs.h"
4228 #ifdef HAVE_STRING_H
4231 #ifdef HAVE_STRINGS_H
4232 #include <strings.h>
4235 #ifdef HAVE_STDLIB_H
4238 #ifdef HAVE_UNISTD_H
4242 char *(*pfn) = (char *(*)) strstr
4245 if { (eval echo configure:4246: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4247 bfd_cv_decl_needed_strstr=no
4249 echo "configure: failed program was:" >&5
4250 cat conftest.$ac_ext >&5
4252 bfd_cv_decl_needed_strstr=yes
4257 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4258 if test $bfd_cv_decl_needed_strstr = yes; then
4259 cat >> confdefs.h <<\EOF
4260 #define NEED_DECLARATION_STRSTR 1
4265 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
4266 echo "configure:4267: checking whether malloc must be declared" >&5
4267 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
4268 echo $ac_n "(cached) $ac_c" 1>&6
4270 cat > conftest.$ac_ext <<EOF
4271 #line 4272 "configure"
4272 #include "confdefs.h"
4275 #ifdef HAVE_STRING_H
4278 #ifdef HAVE_STRINGS_H
4279 #include <strings.h>
4282 #ifdef HAVE_STDLIB_H
4285 #ifdef HAVE_UNISTD_H
4289 char *(*pfn) = (char *(*)) malloc
4292 if { (eval echo configure:4293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4294 bfd_cv_decl_needed_malloc=no
4296 echo "configure: failed program was:" >&5
4297 cat conftest.$ac_ext >&5
4299 bfd_cv_decl_needed_malloc=yes
4304 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
4305 if test $bfd_cv_decl_needed_malloc = yes; then
4306 cat >> confdefs.h <<\EOF
4307 #define NEED_DECLARATION_MALLOC 1
4312 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
4313 echo "configure:4314: checking whether realloc must be declared" >&5
4314 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
4315 echo $ac_n "(cached) $ac_c" 1>&6
4317 cat > conftest.$ac_ext <<EOF
4318 #line 4319 "configure"
4319 #include "confdefs.h"
4322 #ifdef HAVE_STRING_H
4325 #ifdef HAVE_STRINGS_H
4326 #include <strings.h>
4329 #ifdef HAVE_STDLIB_H
4332 #ifdef HAVE_UNISTD_H
4336 char *(*pfn) = (char *(*)) realloc
4339 if { (eval echo configure:4340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4341 bfd_cv_decl_needed_realloc=no
4343 echo "configure: failed program was:" >&5
4344 cat conftest.$ac_ext >&5
4346 bfd_cv_decl_needed_realloc=yes
4351 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
4352 if test $bfd_cv_decl_needed_realloc = yes; then
4353 cat >> confdefs.h <<\EOF
4354 #define NEED_DECLARATION_REALLOC 1
4359 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
4360 echo "configure:4361: checking whether free must be declared" >&5
4361 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
4362 echo $ac_n "(cached) $ac_c" 1>&6
4364 cat > conftest.$ac_ext <<EOF
4365 #line 4366 "configure"
4366 #include "confdefs.h"
4369 #ifdef HAVE_STRING_H
4372 #ifdef HAVE_STRINGS_H
4373 #include <strings.h>
4376 #ifdef HAVE_STDLIB_H
4379 #ifdef HAVE_UNISTD_H
4383 char *(*pfn) = (char *(*)) free
4386 if { (eval echo configure:4387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4388 bfd_cv_decl_needed_free=no
4390 echo "configure: failed program was:" >&5
4391 cat conftest.$ac_ext >&5
4393 bfd_cv_decl_needed_free=yes
4398 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
4399 if test $bfd_cv_decl_needed_free = yes; then
4400 cat >> confdefs.h <<\EOF
4401 #define NEED_DECLARATION_FREE 1
4406 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
4407 echo "configure:4408: checking whether getenv must be declared" >&5
4408 if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
4409 echo $ac_n "(cached) $ac_c" 1>&6
4411 cat > conftest.$ac_ext <<EOF
4412 #line 4413 "configure"
4413 #include "confdefs.h"
4416 #ifdef HAVE_STRING_H
4419 #ifdef HAVE_STRINGS_H
4420 #include <strings.h>
4423 #ifdef HAVE_STDLIB_H
4426 #ifdef HAVE_UNISTD_H
4430 char *(*pfn) = (char *(*)) getenv
4433 if { (eval echo configure:4434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4435 bfd_cv_decl_needed_getenv=no
4437 echo "configure: failed program was:" >&5
4438 cat conftest.$ac_ext >&5
4440 bfd_cv_decl_needed_getenv=yes
4445 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
4446 if test $bfd_cv_decl_needed_getenv = yes; then
4447 cat >> confdefs.h <<\EOF
4448 #define NEED_DECLARATION_GETENV 1
4454 # If we are configured native, pick a core file support file.
4458 if test "${target}" = "${host}"; then
4460 alpha*-*-linux-gnu*)
4461 COREFILE=trad-core.lo
4462 TRAD_HEADER='"hosts/alphalinux.h"'
4464 alpha*-*-netbsd*) COREFILE=netbsd-core.lo ;;
4465 alpha*-*-*) COREFILE=osf-core.lo ;;
4466 arm-*-riscix) COREFILE=trad-core.lo ;;
4467 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
4468 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
4469 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
4470 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
4471 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
4473 COREFILE=trad-core.lo
4474 TRAD_HEADER='"hosts/i370linux.h"'
4477 i[3456]86-sequent-bsd*)
4478 COREFILE=trad-core.lo
4479 TRAD_HEADER='"hosts/symmetry.h"'
4481 i[3456]86-sequent-sysv4*) ;;
4482 i[3456]86-sequent-sysv*)
4483 COREFILE=trad-core.lo
4484 TRAD_HEADER='"hosts/symmetry.h"'
4486 i[3456]86-*-bsd* | i[3456]86-*-freebsd*)
4487 COREFILE=trad-core.lo
4488 TRAD_HEADER='"hosts/i386bsd.h"'
4490 i[3456]86-*-netbsd* | i[3456]86-*-openbsd*)
4491 COREFILE=netbsd-core.lo
4493 i[3456]86-esix-sysv3*)
4494 COREFILE=trad-core.lo
4495 TRAD_HEADER='"hosts/esix.h"'
4497 i[3456]86-*-sco3.2v5*)
4498 COREFILE=sco5-core.lo
4500 i[3456]86-*-sco* | i[3456]86-*-isc*)
4501 COREFILE=trad-core.lo
4502 TRAD_HEADER='"hosts/i386sco.h"'
4505 COREFILE=trad-core.lo
4506 TRAD_HEADER='"hosts/i386mach3.h"'
4508 i[3456]86-*-linux-gnu*)
4509 COREFILE=trad-core.lo
4510 TRAD_HEADER='"hosts/i386linux.h"'
4512 i[3456]86-*-isc*) COREFILE=trad-core.lo ;;
4513 i[3456]86-*-aix*) COREFILE=aix386-core.lo ;;
4514 i860-*-mach3* | i860-*-osf1*)
4515 COREFILE=trad-core.lo
4516 TRAD_HEADER='"hosts/i860mach3.h"'
4519 COREFILE=trad-core.lo
4520 TRAD_HEADER='"hosts/mipsbsd.h"'
4523 COREFILE=trad-core.lo
4524 TRAD_HEADER='"hosts/mipsmach3.h"'
4526 mips-*-netbsd* | mips*-*-openbsd*)
4527 COREFILE=netbsd-core.lo
4530 COREFILE=trad-core.lo
4531 TRAD_HEADER='"hosts/decstation.h"'
4533 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
4534 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
4535 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
4537 COREFILE=trad-core.lo
4538 TRAD_HEADER='"hosts/mipsmach3.h"'
4541 mips-*-sysv* | mips-*-riscos*)
4542 COREFILE=trad-core.lo
4543 TRAD_HEADER='"hosts/riscos.h"'
4546 COREFILE=trad-core.lo
4547 TRAD_HEADER='"hosts/news-mips.h"'
4550 COREFILE=trad-core.lo
4551 TRAD_HEADER='"hosts/dpx2.h"'
4553 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
4555 COREFILE=trad-core.lo
4556 TRAD_HEADER='"hosts/hp300bsd.h"'
4559 COREFILE=trad-core.lo
4560 TRAD_HEADER='"hosts/m68klinux.h"'
4562 m68*-motorola-sysv*)
4563 COREFILE=trad-core.lo
4564 TRAD_HEADER='"hosts/delta68.h"'
4567 COREFILE=trad-core.lo
4568 TRAD_HEADER='"hosts/news.h"'
4570 m68*-*-netbsd* | m68*-*-openbsd*)
4571 COREFILE=netbsd-core.lo
4574 COREFILE=trad-core.lo
4575 TRAD_HEADER='"hosts/m68kaux.h"'
4578 m88*-motorola-sysv*) COREFILE=ptrace-core.lo ;;
4580 COREFILE=trad-core.lo
4581 TRAD_HEADER='"hosts/m88kmach3.h"'
4584 COREFILE=trad-core.lo
4585 TRAD_HEADER='"hosts/pc532mach.h"'
4587 ns32k-*-netbsd* | ns32k-*-openbsd*)
4588 COREFILE=netbsd-core.lo
4590 rs6000-*-lynx*) COREFILE=lynx-core.lo ;;
4591 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
4592 COREFILE=rs6000-core.lo
4593 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
4595 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
4596 rs6000-*-*) COREFILE=rs6000-core.lo ;;
4597 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
4598 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
4599 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
4601 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
4602 sparc-*-netbsd* | sparc-*-openbsd*)
4603 COREFILE=netbsd-core.lo
4606 COREFILE=trad-core.lo
4607 TRAD_HEADER='"hosts/tahoe.h"'
4610 COREFILE=trad-core.lo
4611 TRAD_HEADER='"hosts/vaxult2.h"'
4614 COREFILE=trad-core.lo
4615 TRAD_HEADER='"hosts/vaxult2.h"'
4618 COREFILE=trad-core.lo
4619 TRAD_HEADER='"hosts/vaxbsd.h"'
4624 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
4625 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
4626 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
4627 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
4628 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
4629 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
4630 osf-core.lo) COREFLAG=-DOSF_CORE ;;
4631 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
4632 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
4633 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
4634 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
4637 # ELF corefile support has several flavors, but all of
4638 # them use something called <sys/procfs.h>
4639 for ac_hdr in sys/procfs.h
4641 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4642 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4643 echo "configure:4644: checking for $ac_hdr" >&5
4644 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4645 echo $ac_n "(cached) $ac_c" 1>&6
4647 cat > conftest.$ac_ext <<EOF
4648 #line 4649 "configure"
4649 #include "confdefs.h"
4652 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4653 { (eval echo configure:4654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4654 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4655 if test -z "$ac_err"; then
4657 eval "ac_cv_header_$ac_safe=yes"
4660 echo "configure: failed program was:" >&5
4661 cat conftest.$ac_ext >&5
4663 eval "ac_cv_header_$ac_safe=no"
4667 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4668 echo "$ac_t""yes" 1>&6
4669 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4670 cat >> confdefs.h <<EOF
4671 #define $ac_tr_hdr 1
4675 echo "$ac_t""no" 1>&6
4679 if test "$ac_cv_header_sys_procfs_h" = yes; then
4680 echo $ac_n "checking for prstatus_t in sys/procfs.h""... $ac_c" 1>&6
4681 echo "configure:4682: checking for prstatus_t in sys/procfs.h" >&5
4682 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus_t'+set}'`\" = set"; then
4683 echo $ac_n "(cached) $ac_c" 1>&6
4685 cat > conftest.$ac_ext <<EOF
4686 #line 4687 "configure"
4687 #include "confdefs.h"
4690 #include <sys/procfs.h>
4695 if { (eval echo configure:4696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4697 bfd_cv_have_sys_procfs_type_prstatus_t=yes
4699 echo "configure: failed program was:" >&5
4700 cat conftest.$ac_ext >&5
4702 bfd_cv_have_sys_procfs_type_prstatus_t=no
4708 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
4709 cat >> confdefs.h <<\EOF
4710 #define HAVE_PRSTATUS_T 1
4714 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus_t" 1>&6
4716 echo $ac_n "checking for prstatus32_t in sys/procfs.h""... $ac_c" 1>&6
4717 echo "configure:4718: checking for prstatus32_t in sys/procfs.h" >&5
4718 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus32_t'+set}'`\" = set"; then
4719 echo $ac_n "(cached) $ac_c" 1>&6
4721 cat > conftest.$ac_ext <<EOF
4722 #line 4723 "configure"
4723 #include "confdefs.h"
4726 #include <sys/procfs.h>
4731 if { (eval echo configure:4732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4733 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
4735 echo "configure: failed program was:" >&5
4736 cat conftest.$ac_ext >&5
4738 bfd_cv_have_sys_procfs_type_prstatus32_t=no
4744 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
4745 cat >> confdefs.h <<\EOF
4746 #define HAVE_PRSTATUS32_T 1
4750 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus32_t" 1>&6
4752 echo $ac_n "checking for prstatus_t.pr_who in sys/procfs.h""... $ac_c" 1>&6
4753 echo "configure:4754: checking for prstatus_t.pr_who in sys/procfs.h" >&5
4754 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who'+set}'`\" = set"; then
4755 echo $ac_n "(cached) $ac_c" 1>&6
4757 cat > conftest.$ac_ext <<EOF
4758 #line 4759 "configure"
4759 #include "confdefs.h"
4762 #include <sys/procfs.h>
4764 prstatus_t avar; void* aref = (void*) &avar.pr_who
4767 if { (eval echo configure:4768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4769 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
4771 echo "configure: failed program was:" >&5
4772 cat conftest.$ac_ext >&5
4774 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
4780 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
4781 cat >> confdefs.h <<\EOF
4782 #define HAVE_PRSTATUS_T_PR_WHO 1
4786 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" 1>&6
4788 echo $ac_n "checking for prstatus32_t.pr_who in sys/procfs.h""... $ac_c" 1>&6
4789 echo "configure:4790: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
4790 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who'+set}'`\" = set"; then
4791 echo $ac_n "(cached) $ac_c" 1>&6
4793 cat > conftest.$ac_ext <<EOF
4794 #line 4795 "configure"
4795 #include "confdefs.h"
4798 #include <sys/procfs.h>
4800 prstatus32_t avar; void* aref = (void*) &avar.pr_who
4803 if { (eval echo configure:4804: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4805 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
4807 echo "configure: failed program was:" >&5
4808 cat conftest.$ac_ext >&5
4810 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
4816 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
4817 cat >> confdefs.h <<\EOF
4818 #define HAVE_PRSTATUS32_T_PR_WHO 1
4822 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" 1>&6
4824 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
4825 echo "configure:4826: checking for pstatus_t in sys/procfs.h" >&5
4826 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
4827 echo $ac_n "(cached) $ac_c" 1>&6
4829 cat > conftest.$ac_ext <<EOF
4830 #line 4831 "configure"
4831 #include "confdefs.h"
4834 #include <sys/procfs.h>
4839 if { (eval echo configure:4840: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4841 bfd_cv_have_sys_procfs_type_pstatus_t=yes
4843 echo "configure: failed program was:" >&5
4844 cat conftest.$ac_ext >&5
4846 bfd_cv_have_sys_procfs_type_pstatus_t=no
4852 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
4853 cat >> confdefs.h <<\EOF
4854 #define HAVE_PSTATUS_T 1
4858 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
4860 echo $ac_n "checking for pstatus32_t in sys/procfs.h""... $ac_c" 1>&6
4861 echo "configure:4862: checking for pstatus32_t in sys/procfs.h" >&5
4862 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus32_t'+set}'`\" = set"; then
4863 echo $ac_n "(cached) $ac_c" 1>&6
4865 cat > conftest.$ac_ext <<EOF
4866 #line 4867 "configure"
4867 #include "confdefs.h"
4870 #include <sys/procfs.h>
4875 if { (eval echo configure:4876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4877 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
4879 echo "configure: failed program was:" >&5
4880 cat conftest.$ac_ext >&5
4882 bfd_cv_have_sys_procfs_type_pstatus32_t=no
4888 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
4889 cat >> confdefs.h <<\EOF
4890 #define HAVE_PSTATUS32_T 1
4894 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus32_t" 1>&6
4896 echo $ac_n "checking for prpsinfo_t in sys/procfs.h""... $ac_c" 1>&6
4897 echo "configure:4898: checking for prpsinfo_t in sys/procfs.h" >&5
4898 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo_t'+set}'`\" = set"; then
4899 echo $ac_n "(cached) $ac_c" 1>&6
4901 cat > conftest.$ac_ext <<EOF
4902 #line 4903 "configure"
4903 #include "confdefs.h"
4906 #include <sys/procfs.h>
4911 if { (eval echo configure:4912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4913 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
4915 echo "configure: failed program was:" >&5
4916 cat conftest.$ac_ext >&5
4918 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
4924 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
4925 cat >> confdefs.h <<\EOF
4926 #define HAVE_PRPSINFO_T 1
4930 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo_t" 1>&6
4932 echo $ac_n "checking for prpsinfo32_t in sys/procfs.h""... $ac_c" 1>&6
4933 echo "configure:4934: checking for prpsinfo32_t in sys/procfs.h" >&5
4934 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo32_t'+set}'`\" = set"; then
4935 echo $ac_n "(cached) $ac_c" 1>&6
4937 cat > conftest.$ac_ext <<EOF
4938 #line 4939 "configure"
4939 #include "confdefs.h"
4942 #include <sys/procfs.h>
4947 if { (eval echo configure:4948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4949 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
4951 echo "configure: failed program was:" >&5
4952 cat conftest.$ac_ext >&5
4954 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
4960 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
4961 cat >> confdefs.h <<\EOF
4962 #define HAVE_PRPSINFO32_T 1
4966 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo32_t" 1>&6
4968 echo $ac_n "checking for psinfo_t in sys/procfs.h""... $ac_c" 1>&6
4969 echo "configure:4970: checking for psinfo_t in sys/procfs.h" >&5
4970 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo_t'+set}'`\" = set"; then
4971 echo $ac_n "(cached) $ac_c" 1>&6
4973 cat > conftest.$ac_ext <<EOF
4974 #line 4975 "configure"
4975 #include "confdefs.h"
4978 #include <sys/procfs.h>
4983 if { (eval echo configure:4984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4985 bfd_cv_have_sys_procfs_type_psinfo_t=yes
4987 echo "configure: failed program was:" >&5
4988 cat conftest.$ac_ext >&5
4990 bfd_cv_have_sys_procfs_type_psinfo_t=no
4996 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
4997 cat >> confdefs.h <<\EOF
4998 #define HAVE_PSINFO_T 1
5002 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo_t" 1>&6
5004 echo $ac_n "checking for psinfo32_t in sys/procfs.h""... $ac_c" 1>&6
5005 echo "configure:5006: checking for psinfo32_t in sys/procfs.h" >&5
5006 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo32_t'+set}'`\" = set"; then
5007 echo $ac_n "(cached) $ac_c" 1>&6
5009 cat > conftest.$ac_ext <<EOF
5010 #line 5011 "configure"
5011 #include "confdefs.h"
5014 #include <sys/procfs.h>
5019 if { (eval echo configure:5020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5021 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
5023 echo "configure: failed program was:" >&5
5024 cat conftest.$ac_ext >&5
5026 bfd_cv_have_sys_procfs_type_psinfo32_t=no
5032 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
5033 cat >> confdefs.h <<\EOF
5034 #define HAVE_PSINFO32_T 1
5038 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo32_t" 1>&6
5040 echo $ac_n "checking for lwpstatus_t in sys/procfs.h""... $ac_c" 1>&6
5041 echo "configure:5042: checking for lwpstatus_t in sys/procfs.h" >&5
5042 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpstatus_t'+set}'`\" = set"; then
5043 echo $ac_n "(cached) $ac_c" 1>&6
5045 cat > conftest.$ac_ext <<EOF
5046 #line 5047 "configure"
5047 #include "confdefs.h"
5050 #include <sys/procfs.h>
5055 if { (eval echo configure:5056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5057 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
5059 echo "configure: failed program was:" >&5
5060 cat conftest.$ac_ext >&5
5062 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
5068 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
5069 cat >> confdefs.h <<\EOF
5070 #define HAVE_LWPSTATUS_T 1
5074 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpstatus_t" 1>&6
5076 echo $ac_n "checking for lwpstatus_t.pr_context in sys/procfs.h""... $ac_c" 1>&6
5077 echo "configure:5078: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
5078 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context'+set}'`\" = set"; then
5079 echo $ac_n "(cached) $ac_c" 1>&6
5081 cat > conftest.$ac_ext <<EOF
5082 #line 5083 "configure"
5083 #include "confdefs.h"
5086 #include <sys/procfs.h>
5088 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
5091 if { (eval echo configure:5092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5093 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
5095 echo "configure: failed program was:" >&5
5096 cat conftest.$ac_ext >&5
5098 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
5104 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
5105 cat >> confdefs.h <<\EOF
5106 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
5110 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" 1>&6
5112 echo $ac_n "checking for lwpstatus_t.pr_reg in sys/procfs.h""... $ac_c" 1>&6
5113 echo "configure:5114: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
5114 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg'+set}'`\" = set"; then
5115 echo $ac_n "(cached) $ac_c" 1>&6
5117 cat > conftest.$ac_ext <<EOF
5118 #line 5119 "configure"
5119 #include "confdefs.h"
5122 #include <sys/procfs.h>
5124 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
5127 if { (eval echo configure:5128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5129 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
5131 echo "configure: failed program was:" >&5
5132 cat conftest.$ac_ext >&5
5134 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
5140 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
5141 cat >> confdefs.h <<\EOF
5142 #define HAVE_LWPSTATUS_T_PR_REG 1
5146 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" 1>&6
5148 echo $ac_n "checking for win32_pstatus_t in sys/procfs.h""... $ac_c" 1>&6
5149 echo "configure:5150: checking for win32_pstatus_t in sys/procfs.h" >&5
5150 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_win32_pstatus_t'+set}'`\" = set"; then
5151 echo $ac_n "(cached) $ac_c" 1>&6
5153 cat > conftest.$ac_ext <<EOF
5154 #line 5155 "configure"
5155 #include "confdefs.h"
5158 #include <sys/procfs.h>
5160 win32_pstatus_t avar
5163 if { (eval echo configure:5164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5165 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
5167 echo "configure: failed program was:" >&5
5168 cat conftest.$ac_ext >&5
5170 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
5176 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
5177 cat >> confdefs.h <<\EOF
5178 #define HAVE_WIN32_PSTATUS_T 1
5182 echo "$ac_t""$bfd_cv_have_sys_procfs_type_win32_pstatus_t" 1>&6
5188 if test -n "$TRAD_HEADER"; then
5189 cat >> confdefs.h <<EOF
5190 #define TRAD_HEADER $TRAD_HEADER
5195 # Horrible hacks to build DLLs on Windows.
5200 if test "$enable_shared" = "yes"; then
5201 WIN32LDFLAGS="-no-undefined"
5202 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
5211 # Canonicalize the secondary target names.
5212 if test -n "$enable_targets" ; then
5213 for targ in `echo $enable_targets | sed 's/,/ /g'`
5215 result=`$ac_config_sub $targ 2>/dev/null`
5216 if test -n "$result" ; then
5217 canon_targets="$canon_targets $result"
5219 # Allow targets that config.sub doesn't recognize, like "all".
5220 canon_targets="$canon_targets $targ"
5230 for targ in $target $canon_targets
5232 if test "x$targ" = "xall"; then
5235 . $srcdir/config.bfd
5236 if test "x$targ" = "x$target"; then
5239 selvecs="$selvecs $targ_defvec $targ_selvecs"
5240 selarchs="$selarchs $targ_archs"
5241 TDEFINES="$TDEFINES $targ_cflags"
5246 # This processing still needs to be done if we're to decide properly whether
5247 # 64-bit support needs to be compiled in. Currently, it will be included if
5248 # the default or any other explicitly requested target requires it; it
5249 # will not be included on a 32-bit host if no 64-bit target is requested, and
5250 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
5253 # uniq the default and selected vectors in all the configured targets.
5255 for i in $selvecs ; do
5264 # uniq the architectures in all the configured targets.
5266 for i in $selarchs ; do
5274 # Target backend .o files.
5277 elf="elf.lo elflink.lo dwarf2.lo dwarf1.lo"
5282 # This list is alphabetized to make it easy to compare
5283 # with the two vector lists in targets.c.
5284 a29kcoff_big_vec) tb="$tb coff-a29k.lo cofflink.lo" ;;
5285 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
5286 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
5287 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
5288 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
5289 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
5290 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
5291 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
5292 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
5293 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
5294 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
5295 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
5296 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
5297 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
5298 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
5299 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
5300 aout_mips_big_vec) tb="$tb mipsbsd.lo aout32.lo" ;;
5301 aout_mips_little_vec) tb="$tb mipsbsd.lo aout32.lo" ;;
5302 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
5303 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
5304 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
5305 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
5306 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo peigen.lo cofflink.lo"
5308 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"
5310 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"
5312 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"
5314 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"
5316 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
5317 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
5318 bfd_elf32_littlearm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
5319 bfd_elf32_littlearm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
5320 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
5321 bfd_elf32_bigarm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
5322 bfd_elf32_bigarm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
5323 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
5324 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
5325 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"
5327 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
5328 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
5329 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
5330 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
5331 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
5332 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
5333 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;;
5334 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
5335 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
5336 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
5337 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
5338 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
5339 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"
5341 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
5342 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32.lo $elf" ;;
5343 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32.lo $elf" ;;
5344 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
5345 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
5346 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
5347 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
5348 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
5349 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
5350 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
5351 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
5352 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
5353 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
5354 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
5355 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
5356 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elf32.lo $elf" ;;
5357 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
5358 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
5359 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
5360 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"
5362 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"
5364 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elf64.lo $elf"
5366 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
5367 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
5368 cris_aout_vec) tb="$tb aout-cris.lo" ;;
5369 demo_64_vec) tb="$tb demo64.lo aout64.lo"
5371 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
5372 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
5373 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
5374 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"
5376 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
5377 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
5378 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
5379 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
5380 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
5381 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
5382 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
5383 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
5384 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
5385 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
5386 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
5387 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
5388 i386msdos_vec) tb="$tb i386msdos.lo" ;;
5389 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
5390 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
5391 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
5392 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
5393 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
5394 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
5395 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
5396 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
5397 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
5398 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
5399 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
5400 ieee_vec) tb="$tb ieee.lo" ;;
5401 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
5402 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
5403 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
5404 m68klynx_aout_vec) tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
5405 m68klynx_coff_vec) tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
5406 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
5407 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
5408 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
5409 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
5410 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
5411 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
5412 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
5413 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
5414 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
5415 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
5416 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
5417 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
5418 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
5419 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo"
5421 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
5422 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"
5424 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
5425 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
5426 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
5427 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
5428 pmac_xcoff_vec) tb="$tb coff-pmac.lo xcofflink.lo" ;;
5429 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
5430 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
5431 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
5432 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
5433 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
5434 ppcboot_vec) tb="$tb ppcboot.lo" ;;
5435 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
5436 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
5437 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
5438 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
5439 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
5440 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
5441 som_vec) tb="$tb som.lo" ;;
5442 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
5443 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
5444 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
5445 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
5446 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
5447 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
5448 srec_vec) tb="$tb srec.lo" ;;
5449 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
5450 symbolsrec_vec) tb="$tb srec.lo" ;;
5451 tekhex_vec) tb="$tb tekhex.lo" ;;
5452 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
5453 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
5454 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
5455 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
5456 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
5457 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
5458 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
5459 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
5460 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
5461 versados_vec) tb="$tb versados.lo" ;;
5462 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"
5464 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
5465 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
5466 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
5467 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo" ;;
5470 *) { echo "configure: error: *** unknown target vector $vec" 1>&2; exit 1; } ;;
5474 # Target architecture .o files.
5475 # A couple of CPUs use shorter file names to avoid problems on DOS
5477 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
5479 # Weed out duplicate .o files.
5501 if test x${all_targets} = xtrue ; then
5502 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
5503 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
5507 else # all_targets is true
5508 # Only set these if they will be nonempty, for the clever echo.
5510 test -n "$selvecs" &&
5511 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
5512 test -n "$selvecs" &&
5513 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
5514 test -n "$selarchs" &&
5515 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
5516 fi # all_targets is true
5518 case ${host64}-${target64}-${want64} in
5521 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
5522 if test -z "$GCC" && test "$BFD_HOST_64BIT_LONG" = "0" && test "$BFD_HOST_64_BIT_DEFINED" = "0"; then
5523 echo "configure: warning: You have requested a 64 bit BFD configuration, but" 1>&2
5524 echo "configure: warning: your compiler may not have a 64 bit integral type" 1>&2
5529 all_backends='$(BFD32_BACKENDS)'
5539 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
5540 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
5541 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
5542 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
5545 for ac_hdr in unistd.h
5547 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5548 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5549 echo "configure:5550: checking for $ac_hdr" >&5
5550 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5551 echo $ac_n "(cached) $ac_c" 1>&6
5553 cat > conftest.$ac_ext <<EOF
5554 #line 5555 "configure"
5555 #include "confdefs.h"
5558 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5559 { (eval echo configure:5560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5560 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5561 if test -z "$ac_err"; then
5563 eval "ac_cv_header_$ac_safe=yes"
5566 echo "configure: failed program was:" >&5
5567 cat conftest.$ac_ext >&5
5569 eval "ac_cv_header_$ac_safe=no"
5573 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5574 echo "$ac_t""yes" 1>&6
5575 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5576 cat >> confdefs.h <<EOF
5577 #define $ac_tr_hdr 1
5581 echo "$ac_t""no" 1>&6
5585 for ac_func in getpagesize
5587 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5588 echo "configure:5589: checking for $ac_func" >&5
5589 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5590 echo $ac_n "(cached) $ac_c" 1>&6
5592 cat > conftest.$ac_ext <<EOF
5593 #line 5594 "configure"
5594 #include "confdefs.h"
5595 /* System header to define __stub macros and hopefully few prototypes,
5596 which can conflict with char $ac_func(); below. */
5598 /* Override any gcc2 internal prototype to avoid an error. */
5599 /* We use char because int might match the return type of a gcc2
5600 builtin and then its argument prototype would still apply. */
5605 /* The GNU C library defines this for functions which it implements
5606 to always fail with ENOSYS. Some functions are actually named
5607 something starting with __ and the normal name is an alias. */
5608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5616 if { (eval echo configure:5617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5618 eval "ac_cv_func_$ac_func=yes"
5620 echo "configure: failed program was:" >&5
5621 cat conftest.$ac_ext >&5
5623 eval "ac_cv_func_$ac_func=no"
5628 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5629 echo "$ac_t""yes" 1>&6
5630 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5631 cat >> confdefs.h <<EOF
5632 #define $ac_tr_func 1
5636 echo "$ac_t""no" 1>&6
5640 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
5641 echo "configure:5642: checking for working mmap" >&5
5642 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
5643 echo $ac_n "(cached) $ac_c" 1>&6
5645 if test "$cross_compiling" = yes; then
5646 ac_cv_func_mmap_fixed_mapped=no
5648 cat > conftest.$ac_ext <<EOF
5649 #line 5650 "configure"
5650 #include "confdefs.h"
5652 /* Thanks to Mike Haertel and Jim Avera for this test.
5653 Here is a matrix of mmap possibilities:
5654 mmap private not fixed
5655 mmap private fixed at somewhere currently unmapped
5656 mmap private fixed at somewhere already mapped
5657 mmap shared not fixed
5658 mmap shared fixed at somewhere currently unmapped
5659 mmap shared fixed at somewhere already mapped
5660 For private mappings, we should verify that changes cannot be read()
5661 back from the file, nor mmap's back from the file at a different
5662 address. (There have been systems where private was not correctly
5663 implemented like the infamous i386 svr4.0, and systems where the
5664 VM page cache was not coherent with the filesystem buffer cache
5665 like early versions of FreeBSD and possibly contemporary NetBSD.)
5666 For shared mappings, we should conversely verify that changes get
5667 propogated back to all the places they're supposed to be.
5669 Grep wants private fixed already mapped.
5670 The main things grep needs to know about mmap are:
5671 * does it exist and is it safe to write into the mmap'd area
5672 * how to use it (BSD variants) */
5673 #include <sys/types.h>
5675 #include <sys/mman.h>
5677 /* This mess was copied from the GNU getpagesize.h. */
5678 #ifndef HAVE_GETPAGESIZE
5679 # ifdef HAVE_UNISTD_H
5680 # include <unistd.h>
5683 /* Assume that all systems that can run configure have sys/param.h. */
5684 # ifndef HAVE_SYS_PARAM_H
5685 # define HAVE_SYS_PARAM_H 1
5688 # ifdef _SC_PAGESIZE
5689 # define getpagesize() sysconf(_SC_PAGESIZE)
5690 # else /* no _SC_PAGESIZE */
5691 # ifdef HAVE_SYS_PARAM_H
5692 # include <sys/param.h>
5693 # ifdef EXEC_PAGESIZE
5694 # define getpagesize() EXEC_PAGESIZE
5695 # else /* no EXEC_PAGESIZE */
5697 # define getpagesize() NBPG * CLSIZE
5700 # endif /* no CLSIZE */
5701 # else /* no NBPG */
5703 # define getpagesize() NBPC
5704 # else /* no NBPC */
5706 # define getpagesize() PAGESIZE
5707 # endif /* PAGESIZE */
5708 # endif /* no NBPC */
5709 # endif /* no NBPG */
5710 # endif /* no EXEC_PAGESIZE */
5711 # else /* no HAVE_SYS_PARAM_H */
5712 # define getpagesize() 8192 /* punt totally */
5713 # endif /* no HAVE_SYS_PARAM_H */
5714 # endif /* no _SC_PAGESIZE */
5716 #endif /* no HAVE_GETPAGESIZE */
5719 extern "C" { void *malloc(unsigned); }
5727 char *data, *data2, *data3;
5731 pagesize = getpagesize();
5734 * First, make a file with some known garbage in it.
5736 data = malloc(pagesize);
5739 for (i = 0; i < pagesize; ++i)
5740 *(data + i) = rand();
5742 fd = creat("conftestmmap", 0600);
5745 if (write(fd, data, pagesize) != pagesize)
5750 * Next, try to mmap the file at a fixed address which
5751 * already has something else allocated at it. If we can,
5752 * also make sure that we see the same garbage.
5754 fd = open("conftestmmap", O_RDWR);
5757 data2 = malloc(2 * pagesize);
5760 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
5761 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
5762 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5764 for (i = 0; i < pagesize; ++i)
5765 if (*(data + i) != *(data2 + i))
5769 * Finally, make sure that changes to the mapped area
5770 * do not percolate back to the file as seen by read().
5771 * (This is a bug on some variants of i386 svr4.0.)
5773 for (i = 0; i < pagesize; ++i)
5774 *(data2 + i) = *(data2 + i) + 1;
5775 data3 = malloc(pagesize);
5778 if (read(fd, data3, pagesize) != pagesize)
5780 for (i = 0; i < pagesize; ++i)
5781 if (*(data + i) != *(data3 + i))
5784 unlink("conftestmmap");
5789 if { (eval echo configure:5790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5791 ac_cv_func_mmap_fixed_mapped=yes
5793 echo "configure: failed program was:" >&5
5794 cat conftest.$ac_ext >&5
5796 ac_cv_func_mmap_fixed_mapped=no
5803 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
5804 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5805 cat >> confdefs.h <<\EOF
5811 for ac_func in madvise mprotect
5813 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5814 echo "configure:5815: checking for $ac_func" >&5
5815 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5816 echo $ac_n "(cached) $ac_c" 1>&6
5818 cat > conftest.$ac_ext <<EOF
5819 #line 5820 "configure"
5820 #include "confdefs.h"
5821 /* System header to define __stub macros and hopefully few prototypes,
5822 which can conflict with char $ac_func(); below. */
5824 /* Override any gcc2 internal prototype to avoid an error. */
5825 /* We use char because int might match the return type of a gcc2
5826 builtin and then its argument prototype would still apply. */
5831 /* The GNU C library defines this for functions which it implements
5832 to always fail with ENOSYS. Some functions are actually named
5833 something starting with __ and the normal name is an alias. */
5834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5842 if { (eval echo configure:5843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5844 eval "ac_cv_func_$ac_func=yes"
5846 echo "configure: failed program was:" >&5
5847 cat conftest.$ac_ext >&5
5849 eval "ac_cv_func_$ac_func=no"
5854 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5855 echo "$ac_t""yes" 1>&6
5856 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5857 cat >> confdefs.h <<EOF
5858 #define $ac_tr_func 1
5862 echo "$ac_t""no" 1>&6
5866 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
5867 true+yes ) cat >> confdefs.h <<\EOF
5873 rm -f doc/config.status
5875 cat > confcache <<\EOF
5876 # This file is a shell script that caches the results of configure
5877 # tests run on this system so they can be shared between configure
5878 # scripts and configure runs. It is not useful on other systems.
5879 # If it contains results you don't want to keep, you may remove or edit it.
5881 # By default, configure uses ./config.cache as the cache file,
5882 # creating it if it does not exist already. You can give configure
5883 # the --cache-file=FILE option to use a different cache file; that is
5884 # what configure does when it calls configure scripts in
5885 # subdirectories, so they share the cache.
5886 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5887 # config.status only pays attention to the cache file if you give it the
5888 # --recheck option to rerun configure.
5891 # The following way of writing the cache mishandles newlines in values,
5892 # but we know of no workaround that is simple, portable, and efficient.
5893 # So, don't put newlines in cache variables' values.
5894 # Ultrix sh set writes to stderr and can't be redirected directly,
5895 # and sets the high bit in the cache file unless we assign to the vars.
5897 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5899 # `set' does not quote correctly, so add quotes (double-quote substitution
5900 # turns \\\\ into \\, and sed turns \\ into \).
5902 -e "s/'/'\\\\''/g" \
5903 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5906 # `set' quotes correctly as required by POSIX, so do not add quotes.
5907 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5910 if cmp -s $cache_file confcache; then
5913 if test -w $cache_file; then
5914 echo "updating cache $cache_file"
5915 cat confcache > $cache_file
5917 echo "not updating unwritable cache $cache_file"
5922 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5924 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5925 # Let make expand exec_prefix.
5926 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5928 # Any assignment to VPATH causes Sun make to only execute
5929 # the first set of double-colon rules, so remove it if not needed.
5930 # If there is a colon in the path, we need to keep it.
5931 if test "x$srcdir" = x.; then
5932 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5935 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5937 DEFS=-DHAVE_CONFIG_H
5939 # Without the "./", some shells look in PATH for config.status.
5940 : ${CONFIG_STATUS=./config.status}
5942 echo creating $CONFIG_STATUS
5943 rm -f $CONFIG_STATUS
5944 cat > $CONFIG_STATUS <<EOF
5946 # Generated automatically by configure.
5947 # Run this file to recreate the current configuration.
5948 # This directory was configured as follows,
5949 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5951 # $0 $ac_configure_args
5953 # Compiler output produced by configure, useful for debugging
5954 # configure, is in ./config.log if it exists.
5956 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5959 case "\$ac_option" in
5960 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5961 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5962 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5963 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5964 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5966 -help | --help | --hel | --he | --h)
5967 echo "\$ac_cs_usage"; exit 0 ;;
5968 *) echo "\$ac_cs_usage"; exit 1 ;;
5972 ac_given_srcdir=$srcdir
5973 ac_given_INSTALL="$INSTALL"
5975 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
5977 cat >> $CONFIG_STATUS <<EOF
5979 # Protect against being on the right side of a sed subst in config.status.
5980 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5981 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5985 s%@CFLAGS@%$CFLAGS%g
5986 s%@CPPFLAGS@%$CPPFLAGS%g
5987 s%@CXXFLAGS@%$CXXFLAGS%g
5988 s%@FFLAGS@%$FFLAGS%g
5990 s%@LDFLAGS@%$LDFLAGS%g
5992 s%@exec_prefix@%$exec_prefix%g
5993 s%@prefix@%$prefix%g
5994 s%@program_transform_name@%$program_transform_name%g
5995 s%@bindir@%$bindir%g
5996 s%@sbindir@%$sbindir%g
5997 s%@libexecdir@%$libexecdir%g
5998 s%@datadir@%$datadir%g
5999 s%@sysconfdir@%$sysconfdir%g
6000 s%@sharedstatedir@%$sharedstatedir%g
6001 s%@localstatedir@%$localstatedir%g
6002 s%@libdir@%$libdir%g
6003 s%@includedir@%$includedir%g
6004 s%@oldincludedir@%$oldincludedir%g
6005 s%@infodir@%$infodir%g
6006 s%@mandir@%$mandir%g
6008 s%@host_alias@%$host_alias%g
6009 s%@host_cpu@%$host_cpu%g
6010 s%@host_vendor@%$host_vendor%g
6011 s%@host_os@%$host_os%g
6012 s%@target@%$target%g
6013 s%@target_alias@%$target_alias%g
6014 s%@target_cpu@%$target_cpu%g
6015 s%@target_vendor@%$target_vendor%g
6016 s%@target_os@%$target_os%g
6018 s%@build_alias@%$build_alias%g
6019 s%@build_cpu@%$build_cpu%g
6020 s%@build_vendor@%$build_vendor%g
6021 s%@build_os@%$build_os%g
6023 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6024 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6025 s%@INSTALL_DATA@%$INSTALL_DATA%g
6026 s%@PACKAGE@%$PACKAGE%g
6027 s%@VERSION@%$VERSION%g
6028 s%@ACLOCAL@%$ACLOCAL%g
6029 s%@AUTOCONF@%$AUTOCONF%g
6030 s%@AUTOMAKE@%$AUTOMAKE%g
6031 s%@AUTOHEADER@%$AUTOHEADER%g
6032 s%@MAKEINFO@%$MAKEINFO%g
6033 s%@SET_MAKE@%$SET_MAKE%g
6035 s%@RANLIB@%$RANLIB%g
6037 s%@LIBTOOL@%$LIBTOOL%g
6038 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
6039 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
6040 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
6042 s%@EXEEXT@%$EXEEXT%g
6044 s%@ALLOCA@%$ALLOCA%g
6045 s%@USE_NLS@%$USE_NLS%g
6046 s%@MSGFMT@%$MSGFMT%g
6047 s%@GMSGFMT@%$GMSGFMT%g
6048 s%@XGETTEXT@%$XGETTEXT%g
6049 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
6050 s%@CATALOGS@%$CATALOGS%g
6051 s%@CATOBJEXT@%$CATOBJEXT%g
6052 s%@DATADIRNAME@%$DATADIRNAME%g
6053 s%@GMOFILES@%$GMOFILES%g
6054 s%@INSTOBJEXT@%$INSTOBJEXT%g
6055 s%@INTLDEPS@%$INTLDEPS%g
6056 s%@INTLLIBS@%$INTLLIBS%g
6057 s%@INTLOBJS@%$INTLOBJS%g
6058 s%@POFILES@%$POFILES%g
6060 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
6062 s%@GT_YES@%$GT_YES%g
6063 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
6065 s%@HDEFINES@%$HDEFINES%g
6066 s%@BFD_HOST_64BIT_LONG@%$BFD_HOST_64BIT_LONG%g
6067 s%@BFD_HOST_64_BIT_DEFINED@%$BFD_HOST_64_BIT_DEFINED%g
6068 s%@BFD_HOST_64_BIT@%$BFD_HOST_64_BIT%g
6069 s%@BFD_HOST_U_64_BIT@%$BFD_HOST_U_64_BIT%g
6070 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
6071 s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
6072 s%@COREFILE@%$COREFILE%g
6073 s%@COREFLAG@%$COREFLAG%g
6074 s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g
6075 s%@WIN32LIBADD@%$WIN32LIBADD%g
6076 s%@TDEFINES@%$TDEFINES%g
6077 s%@wordsize@%$wordsize%g
6078 s%@all_backends@%$all_backends%g
6079 s%@bfd_backends@%$bfd_backends%g
6080 s%@bfd_machines@%$bfd_machines%g
6081 s%@tdefaults@%$tdefaults%g
6086 cat >> $CONFIG_STATUS <<\EOF
6088 # Split the substitutions into bite-sized pieces for seds with
6089 # small command number limits, like on Digital OSF/1 and HP-UX.
6090 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6091 ac_file=1 # Number of current file.
6092 ac_beg=1 # First line for current file.
6093 ac_end=$ac_max_sed_cmds # Line after last line for current file.
6096 while $ac_more_lines; do
6097 if test $ac_beg -gt 1; then
6098 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6100 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6102 if test ! -s conftest.s$ac_file; then
6104 rm -f conftest.s$ac_file
6106 if test -z "$ac_sed_cmds"; then
6107 ac_sed_cmds="sed -f conftest.s$ac_file"
6109 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6111 ac_file=`expr $ac_file + 1`
6113 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6116 if test -z "$ac_sed_cmds"; then
6121 cat >> $CONFIG_STATUS <<EOF
6123 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"}
6125 cat >> $CONFIG_STATUS <<\EOF
6126 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6127 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6129 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6130 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6131 *) ac_file_in="${ac_file}.in" ;;
6134 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6136 # Remove last slash and all that follows it. Not all systems have dirname.
6137 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6138 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6139 # The file is in a subdirectory.
6140 test ! -d "$ac_dir" && mkdir "$ac_dir"
6141 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6142 # A "../" for each directory in $ac_dir_suffix.
6143 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6145 ac_dir_suffix= ac_dots=
6148 case "$ac_given_srcdir" in
6150 if test -z "$ac_dots"; then top_srcdir=.
6151 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6152 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6154 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6155 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6158 case "$ac_given_INSTALL" in
6159 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6160 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6163 echo creating "$ac_file"
6165 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6167 *Makefile*) ac_comsub="1i\\
6168 # $configure_input" ;;
6172 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6174 s%@configure_input@%$configure_input%g
6175 s%@srcdir@%$srcdir%g
6176 s%@top_srcdir@%$top_srcdir%g
6177 s%@INSTALL@%$INSTALL%g
6178 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6182 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6183 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6185 # ac_d sets the value in "#define NAME VALUE" lines.
6186 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6187 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6190 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6191 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6192 ac_uB='\([ ]\)%\1#\2define\3'
6195 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6196 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6197 ac_eB='$%\1#\2define\3'
6201 if test "${CONFIG_HEADERS+set}" != set; then
6203 cat >> $CONFIG_STATUS <<EOF
6204 CONFIG_HEADERS="config.h:config.in"
6206 cat >> $CONFIG_STATUS <<\EOF
6208 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6209 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6211 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6212 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6213 *) ac_file_in="${ac_file}.in" ;;
6216 echo creating $ac_file
6218 rm -f conftest.frag conftest.in conftest.out
6219 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6220 cat $ac_file_inputs > conftest.in
6224 # Transform confdefs.h into a sed script conftest.vals that substitutes
6225 # the proper values into config.h.in to produce config.h. And first:
6226 # Protect against being on the right side of a sed subst in config.status.
6227 # Protect against being in an unquoted here document in config.status.
6229 cat > conftest.hdr <<\EOF
6232 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6236 sed -n -f conftest.hdr confdefs.h > conftest.vals
6239 # This sed command replaces #undef with comments. This is necessary, for
6240 # example, in the case of _POSIX_SOURCE, which is predefined and required
6241 # on some systems where configure will not decide to define it.
6242 cat >> conftest.vals <<\EOF
6243 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6246 # Break up conftest.vals because some shells have a limit on
6247 # the size of here documents, and old seds have small limits too.
6252 ac_lines=`grep -c . conftest.vals`
6253 # grep -c gives empty output for an empty file on some AIX systems.
6254 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6255 # Write a limited-size here document to conftest.frag.
6256 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6257 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6259 sed -f conftest.frag conftest.in > conftest.out
6261 mv conftest.out conftest.in
6263 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6265 mv conftest.tail conftest.vals
6269 cat >> $CONFIG_STATUS <<\EOF
6270 rm -f conftest.frag conftest.h
6271 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6272 cat conftest.in >> conftest.h
6274 if cmp -s $ac_file conftest.h 2>/dev/null; then
6275 echo "$ac_file is unchanged"
6278 # Remove last slash and all that follows it. Not all systems have dirname.
6279 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6280 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6281 # The file is in a subdirectory.
6282 test ! -d "$ac_dir" && mkdir "$ac_dir"
6285 mv conftest.h $ac_file
6290 cat >> $CONFIG_STATUS <<EOF
6294 cat >> $CONFIG_STATUS <<\EOF
6295 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
6296 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
6299 chmod +x $CONFIG_STATUS
6300 rm -fr confdefs* $ac_clean_files
6301 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1