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
,
63 bindir
='${exec_prefix}/bin'
64 sbindir
='${exec_prefix}/sbin'
65 libexecdir
='${exec_prefix}/libexec'
66 datadir
='${prefix}/share'
67 sysconfdir
='${prefix}/etc'
68 sharedstatedir
='${prefix}/com'
69 localstatedir
='${prefix}/var'
70 libdir
='${exec_prefix}/lib'
71 includedir
='${prefix}/include'
72 oldincludedir
='/usr/include'
73 infodir
='${prefix}/info'
74 mandir
='${prefix}/man'
76 # Initialize some other variables.
79 SHELL
=${CONFIG_SHELL-/bin/sh}
80 # Maximum number of lines to put in a shell here document.
87 # If the previous option needs an argument, assign it.
88 if test -n "$ac_prev"; then
89 eval "$ac_prev=\$ac_option"
95 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
99 # Accept the important Cygnus configure options, so we can diagnose typos.
103 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
105 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
106 bindir
="$ac_optarg" ;;
108 -build |
--build |
--buil |
--bui |
--bu)
110 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
111 build
="$ac_optarg" ;;
113 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
114 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
115 ac_prev
=cache_file
;;
116 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
117 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
118 cache_file
="$ac_optarg" ;;
120 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
122 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
124 datadir
="$ac_optarg" ;;
126 -disable-* |
--disable-*)
127 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
128 # Reject names that are not valid shell variable names.
129 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
130 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
132 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
133 eval "enable_${ac_feature}=no" ;;
135 -enable-* |
--enable-*)
136 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
137 # Reject names that are not valid shell variable names.
138 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
139 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
141 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
146 eval "enable_${ac_feature}='$ac_optarg'" ;;
148 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
149 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
150 |
--exec |
--exe |
--ex)
151 ac_prev
=exec_prefix
;;
152 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
153 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
154 |
--exec=* |
--exe=* |
--ex=*)
155 exec_prefix
="$ac_optarg" ;;
157 -gas |
--gas |
--ga |
--g)
158 # Obsolete; use --with-gas.
161 -help |
--help |
--hel |
--he)
162 # Omit some internal or obsolete options to make the list less imposing.
163 # This message is too long to be a string in the A/UX 3.1 sh.
165 Usage: configure [options] [host]
166 Options: [defaults in brackets after descriptions]
168 --cache-file=FILE cache test results in FILE
169 --help print this message
170 --no-create do not create output files
171 --quiet, --silent do not print \`checking...' messages
172 --version print the version of autoconf that created configure
173 Directory and file names:
174 --prefix=PREFIX install architecture-independent files in PREFIX
176 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
178 --bindir=DIR user executables in DIR [EPREFIX/bin]
179 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
180 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
181 --datadir=DIR read-only architecture-independent data in DIR
183 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
184 --sharedstatedir=DIR modifiable architecture-independent data in DIR
186 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
187 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
188 --includedir=DIR C header files in DIR [PREFIX/include]
189 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
190 --infodir=DIR info documentation in DIR [PREFIX/info]
191 --mandir=DIR man documentation in DIR [PREFIX/man]
192 --srcdir=DIR find the sources in DIR [configure dir or ..]
193 --program-prefix=PREFIX prepend PREFIX to installed program names
194 --program-suffix=SUFFIX append SUFFIX to installed program names
195 --program-transform-name=PROGRAM
196 run sed PROGRAM on installed program names
200 --build=BUILD configure for building on BUILD [BUILD=HOST]
201 --host=HOST configure for HOST [guessed]
202 --target=TARGET configure for TARGET [TARGET=HOST]
203 Features and packages:
204 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
205 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
206 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
207 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
208 --x-includes=DIR X include files are in DIR
209 --x-libraries=DIR X library files are in DIR
211 if test -n "$ac_help"; then
212 echo "--enable and --with options recognized:$ac_help"
216 -host |
--host |
--hos |
--ho)
218 -host=* |
--host=* |
--hos=* |
--ho=*)
221 -includedir |
--includedir |
--includedi |
--included |
--include \
222 |
--includ |
--inclu |
--incl |
--inc)
223 ac_prev
=includedir
;;
224 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
225 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
226 includedir
="$ac_optarg" ;;
228 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
230 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
231 infodir
="$ac_optarg" ;;
233 -libdir |
--libdir |
--libdi |
--libd)
235 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
236 libdir
="$ac_optarg" ;;
238 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
239 |
--libexe |
--libex |
--libe)
240 ac_prev
=libexecdir
;;
241 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
242 |
--libexe=* |
--libex=* |
--libe=*)
243 libexecdir
="$ac_optarg" ;;
245 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
246 |
--localstate |
--localstat |
--localsta |
--localst \
247 |
--locals |
--local |
--loca |
--loc |
--lo)
248 ac_prev
=localstatedir
;;
249 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
250 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
251 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
252 localstatedir
="$ac_optarg" ;;
254 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
256 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
257 mandir
="$ac_optarg" ;;
260 # Obsolete; use --without-fp.
263 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
267 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
268 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
271 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
272 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
273 |
--oldin |
--oldi |
--old |
--ol |
--o)
274 ac_prev
=oldincludedir
;;
275 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
276 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
277 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
278 oldincludedir
="$ac_optarg" ;;
280 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
282 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
283 prefix
="$ac_optarg" ;;
285 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
286 |
--program-pre |
--program-pr |
--program-p)
287 ac_prev
=program_prefix
;;
288 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
289 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
290 program_prefix
="$ac_optarg" ;;
292 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
293 |
--program-suf |
--program-su |
--program-s)
294 ac_prev
=program_suffix
;;
295 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
296 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
297 program_suffix
="$ac_optarg" ;;
299 -program-transform-name |
--program-transform-name \
300 |
--program-transform-nam |
--program-transform-na \
301 |
--program-transform-n |
--program-transform- \
302 |
--program-transform |
--program-transfor \
303 |
--program-transfo |
--program-transf \
304 |
--program-trans |
--program-tran \
305 |
--progr-tra |
--program-tr |
--program-t)
306 ac_prev
=program_transform_name
;;
307 -program-transform-name=* |
--program-transform-name=* \
308 |
--program-transform-nam=* |
--program-transform-na=* \
309 |
--program-transform-n=* |
--program-transform-=* \
310 |
--program-transform=* |
--program-transfor=* \
311 |
--program-transfo=* |
--program-transf=* \
312 |
--program-trans=* |
--program-tran=* \
313 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
314 program_transform_name
="$ac_optarg" ;;
316 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
317 |
-silent |
--silent |
--silen |
--sile |
--sil)
320 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
322 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
324 sbindir
="$ac_optarg" ;;
326 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
327 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
328 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
330 ac_prev
=sharedstatedir
;;
331 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
332 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
333 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
335 sharedstatedir
="$ac_optarg" ;;
337 -site |
--site |
--sit)
339 -site=* |
--site=* |
--sit=*)
342 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
344 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
345 srcdir
="$ac_optarg" ;;
347 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
348 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
349 ac_prev
=sysconfdir
;;
350 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
351 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
352 sysconfdir
="$ac_optarg" ;;
354 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
356 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
357 target
="$ac_optarg" ;;
359 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
362 -version |
--version |
--versio |
--versi |
--vers)
363 echo "configure generated by autoconf version 2.13"
367 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
368 # Reject names that are not valid shell variable names.
369 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
370 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
372 ac_package
=`echo $ac_package| sed 's/-/_/g'`
377 eval "with_${ac_package}='$ac_optarg'" ;;
379 -without-* |
--without-*)
380 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
381 # Reject names that are not valid shell variable names.
382 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
383 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
385 ac_package
=`echo $ac_package| sed 's/-/_/g'`
386 eval "with_${ac_package}=no" ;;
389 # Obsolete; use --with-x.
392 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
393 |
--x-incl |
--x-inc |
--x-in |
--x-i)
394 ac_prev
=x_includes
;;
395 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
396 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
397 x_includes
="$ac_optarg" ;;
399 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
400 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
401 ac_prev
=x_libraries
;;
402 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
403 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
404 x_libraries
="$ac_optarg" ;;
406 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
410 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
411 echo "configure: warning: $ac_option: invalid host type" 1>&2
413 if test "x$nonopt" != xNONE
; then
414 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
422 if test -n "$ac_prev"; then
423 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
426 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
428 # File descriptor usage:
431 # 2 errors and warnings
432 # 3 some systems may open it to /dev/tty
433 # 4 used on the Kubota Titan
434 # 6 checking for... messages and results
435 # 5 compiler messages saved in config.log
436 if test "$silent" = yes; then
444 This file contains any messages produced by compilers while
445 running configure, to aid debugging if configure makes a mistake.
448 # Strip out --no-create and --no-recursion so they do not pile up.
449 # Also quote any args containing shell metacharacters.
454 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
455 |
--no-cr |
--no-c) ;;
456 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
457 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
458 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
459 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
460 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
465 # Only set these to C if already set. These must not be set unconditionally
466 # because not all systems understand e.g. LANG=C (notably SCO).
467 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
468 # Non-C LC_CTYPE values break the ctype check.
469 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
470 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
471 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
472 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
474 # confdefs.h avoids OS command line length limits that DEFS can exceed.
475 rm -rf conftest
* confdefs.h
476 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
479 # A filename unique to this package, relative to the directory that
480 # configure is in, which we can look for to find out if srcdir is correct.
481 ac_unique_file
=libbfd.c
483 # Find the source files, if location was not specified.
484 if test -z "$srcdir"; then
485 ac_srcdir_defaulted
=yes
486 # Try the directory containing this script, then its parent.
488 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
489 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
491 if test ! -r $srcdir/$ac_unique_file; then
495 ac_srcdir_defaulted
=no
497 if test ! -r $srcdir/$ac_unique_file; then
498 if test "$ac_srcdir_defaulted" = yes; then
499 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
501 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
504 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
506 # Prefer explicitly selected file to automatically selected ones.
507 if test -z "$CONFIG_SITE"; then
508 if test "x$prefix" != xNONE
; then
509 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
511 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
514 for ac_site_file
in $CONFIG_SITE; do
515 if test -r "$ac_site_file"; then
516 echo "loading site script $ac_site_file"
521 if test -r "$cache_file"; then
522 echo "loading cache $cache_file"
525 echo "creating cache $cache_file"
530 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
531 ac_cpp
='$CPP $CPPFLAGS'
532 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
533 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
534 cross_compiling
=$ac_cv_prog_cc_cross
538 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
539 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
540 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
547 ac_n
= ac_c
='\c' ac_t
=
553 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
554 if test -f $ac_dir/install-sh
; then
556 ac_install_sh
="$ac_aux_dir/install-sh -c"
558 elif test -f $ac_dir/install.sh
; then
560 ac_install_sh
="$ac_aux_dir/install.sh -c"
564 if test -z "$ac_aux_dir"; then
565 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
567 ac_config_guess
=$ac_aux_dir/config.guess
568 ac_config_sub
=$ac_aux_dir/config.sub
569 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
572 # Do some error checking and defaulting for the host and target type.
574 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
577 # 1. You are not allowed to specify --host, --target, and nonopt at the
579 # 2. Host defaults to nonopt.
580 # 3. If nonopt is not specified, then host defaults to the current host,
581 # as determined by config.guess.
582 # 4. Target and build default to nonopt.
583 # 5. If nonopt is not specified, then target and build default to host.
585 # The aliases save the names the user supplied, while $host etc.
586 # will get canonicalized.
587 case $host---$target---$nonopt in
588 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
589 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
593 # Make sure we can run config.sub.
594 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
595 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
598 echo $ac_n "checking host system type""... $ac_c" 1>&6
599 echo "configure:600: checking host system type" >&5
602 case "$host_alias" in
606 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
607 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
609 *) host_alias
=$nonopt ;;
613 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
614 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
615 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
616 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
617 echo "$ac_t""$host" 1>&6
619 echo $ac_n "checking target system type""... $ac_c" 1>&6
620 echo "configure:621: checking target system type" >&5
623 case "$target_alias" in
626 NONE
) target_alias
=$host_alias ;;
627 *) target_alias
=$nonopt ;;
631 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
632 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
633 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
634 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
635 echo "$ac_t""$target" 1>&6
637 echo $ac_n "checking build system type""... $ac_c" 1>&6
638 echo "configure:639: checking build system type" >&5
641 case "$build_alias" in
644 NONE
) build_alias
=$host_alias ;;
645 *) build_alias
=$nonopt ;;
649 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
650 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
651 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
652 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
653 echo "$ac_t""$build" 1>&6
655 test "$host_alias" != "$target_alias" &&
656 test "$program_prefix$program_suffix$program_transform_name" = \
658 program_prefix
=${target_alias}-
660 # Extract the first word of "gcc", so it can be a program name with args.
661 set dummy gcc
; ac_word
=$2
662 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
663 echo "configure:664: checking for $ac_word" >&5
664 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
665 echo $ac_n "(cached) $ac_c" 1>&6
667 if test -n "$CC"; then
668 ac_cv_prog_CC
="$CC" # Let the user override the test.
670 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
672 for ac_dir
in $ac_dummy; do
673 test -z "$ac_dir" && ac_dir
=.
674 if test -f $ac_dir/$ac_word; then
683 if test -n "$CC"; then
684 echo "$ac_t""$CC" 1>&6
686 echo "$ac_t""no" 1>&6
689 if test -z "$CC"; then
690 # Extract the first word of "cc", so it can be a program name with args.
691 set dummy cc
; ac_word
=$2
692 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
693 echo "configure:694: checking for $ac_word" >&5
694 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
695 echo $ac_n "(cached) $ac_c" 1>&6
697 if test -n "$CC"; then
698 ac_cv_prog_CC
="$CC" # Let the user override the test.
700 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
703 for ac_dir
in $ac_dummy; do
704 test -z "$ac_dir" && ac_dir
=.
705 if test -f $ac_dir/$ac_word; then
706 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
715 if test $ac_prog_rejected = yes; then
716 # We found a bogon in the path, so make sure we never use it.
717 set dummy
$ac_cv_prog_CC
719 if test $# -gt 0; then
720 # We chose a different compiler from the bogus one.
721 # However, it has the same basename, so the bogon will be chosen
722 # first if we set CC to just the basename; use the full file name.
724 set dummy
"$ac_dir/$ac_word" "$@"
732 if test -n "$CC"; then
733 echo "$ac_t""$CC" 1>&6
735 echo "$ac_t""no" 1>&6
738 if test -z "$CC"; then
741 # Extract the first word of "cl", so it can be a program name with args.
742 set dummy cl
; ac_word
=$2
743 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
744 echo "configure:745: checking for $ac_word" >&5
745 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
746 echo $ac_n "(cached) $ac_c" 1>&6
748 if test -n "$CC"; then
749 ac_cv_prog_CC
="$CC" # Let the user override the test.
751 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
753 for ac_dir
in $ac_dummy; do
754 test -z "$ac_dir" && ac_dir
=.
755 if test -f $ac_dir/$ac_word; then
764 if test -n "$CC"; then
765 echo "$ac_t""$CC" 1>&6
767 echo "$ac_t""no" 1>&6
772 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
775 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
776 echo "configure:777: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
779 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
780 ac_cpp
='$CPP $CPPFLAGS'
781 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
782 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
783 cross_compiling
=$ac_cv_prog_cc_cross
785 cat > conftest.
$ac_ext << EOF
787 #line 788 "configure"
788 #include "confdefs.h"
792 if { (eval echo configure
:793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
793 ac_cv_prog_cc_works
=yes
794 # If we can't run a trivial program, we are probably using a cross compiler.
795 if (.
/conftest
; exit) 2>/dev
/null
; then
796 ac_cv_prog_cc_cross
=no
798 ac_cv_prog_cc_cross
=yes
801 echo "configure: failed program was:" >&5
802 cat conftest.
$ac_ext >&5
803 ac_cv_prog_cc_works
=no
807 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
808 ac_cpp
='$CPP $CPPFLAGS'
809 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
810 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
811 cross_compiling
=$ac_cv_prog_cc_cross
813 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
814 if test $ac_cv_prog_cc_works = no
; then
815 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
817 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
818 echo "configure:819: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
819 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
820 cross_compiling
=$ac_cv_prog_cc_cross
822 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
823 echo "configure:824: checking whether we are using GNU C" >&5
824 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
825 echo $ac_n "(cached) $ac_c" 1>&6
827 cat > conftest.c
<<EOF
832 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:833: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
839 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
841 if test $ac_cv_prog_gcc = yes; then
847 ac_test_CFLAGS
="${CFLAGS+set}"
848 ac_save_CFLAGS
="$CFLAGS"
850 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
851 echo "configure:852: checking whether ${CC-cc} accepts -g" >&5
852 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
853 echo $ac_n "(cached) $ac_c" 1>&6
855 echo 'void f(){}' > conftest.c
856 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
865 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
866 if test "$ac_test_CFLAGS" = set; then
867 CFLAGS
="$ac_save_CFLAGS"
868 elif test $ac_cv_prog_cc_g = yes; then
869 if test "$GCC" = yes; then
875 if test "$GCC" = yes; then
882 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
883 echo "configure:884: checking for POSIXized ISC" >&5
884 if test -d /etc
/conf
/kconfig.d
&&
885 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
887 echo "$ac_t""yes" 1>&6
888 ISC
=yes # If later tests want to check for ISC.
889 cat >> confdefs.h
<<\EOF
890 #define _POSIX_SOURCE 1
893 if test "$GCC" = yes; then
899 echo "$ac_t""no" 1>&6
904 # Find a good install program. We prefer a C program (faster),
905 # so one script is as good as another. But avoid the broken or
906 # incompatible versions:
907 # SysV /etc/install, /usr/sbin/install
908 # SunOS /usr/etc/install
911 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
912 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
913 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
914 # ./install, which can be erroneously created by make from ./install.sh.
915 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
916 echo "configure:917: checking for a BSD compatible install" >&5
917 if test -z "$INSTALL"; then
918 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
919 echo $ac_n "(cached) $ac_c" 1>&6
921 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
922 for ac_dir
in $PATH; do
923 # Account for people who put trailing slashes in PATH elements.
925 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
927 # OSF1 and SCO ODT 3.0 have their own names for install.
928 # Don't use installbsd from OSF since it installs stuff as root
930 for ac_prog
in ginstall scoinst
install; do
931 if test -f $ac_dir/$ac_prog; then
932 if test $ac_prog = install &&
933 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
934 # AIX install. It has an incompatible calling convention.
937 ac_cv_path_install
="$ac_dir/$ac_prog -c"
948 if test "${ac_cv_path_install+set}" = set; then
949 INSTALL
="$ac_cv_path_install"
951 # As a last resort, use the slow shell script. We don't cache a
952 # path for INSTALL within a source directory, because that will
953 # break other packages using the cache if that directory is
954 # removed, or if the path is relative.
955 INSTALL
="$ac_install_sh"
958 echo "$ac_t""$INSTALL" 1>&6
960 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
961 # It thinks the first close brace ends the variable substitution.
962 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
964 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
966 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
968 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
969 echo "configure:970: checking whether build environment is sane" >&5
972 echo timestamp
> conftestfile
973 # Do `set' in a subshell so we don't clobber the current shell's
974 # arguments. Must try -L first in case configure is actually a
975 # symlink; some systems play weird games with the mod time of symlinks
976 # (eg FreeBSD returns the mod time of the symlink's containing
979 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
980 if test "$*" = "X"; then
982 set X
`ls -t $srcdir/configure conftestfile`
984 if test "$*" != "X $srcdir/configure conftestfile" \
985 && test "$*" != "X conftestfile $srcdir/configure"; then
987 # If neither matched, then we have a broken ls. This can happen
988 # if, for instance, CONFIG_SHELL is bash and it inherits a
989 # broken ls alias from the environment. This has actually
990 # happened. Such a system could not be considered "sane".
991 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
992 alias in your environment" 1>&2; exit 1; }
995 test "$2" = conftestfile
1001 { echo "configure: error: newly created file is older than distributed files!
1002 Check your system clock" 1>&2; exit 1; }
1005 echo "$ac_t""yes" 1>&6
1006 if test "$program_transform_name" = s
,x
,x
,; then
1007 program_transform_name
=
1009 # Double any \ or $. echo might interpret backslashes.
1010 cat <<\EOF_SED
> conftestsed
1011 s
,\\,\\\\,g
; s
,\$
,$$
,g
1013 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1016 test "$program_prefix" != NONE
&&
1017 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1018 # Use a double $ so make ignores it.
1019 test "$program_suffix" != NONE
&&
1020 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1022 # sed with no file args requires a program.
1023 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1025 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1026 echo "configure:1027: checking whether ${MAKE-make} sets \${MAKE}" >&5
1027 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1028 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1029 echo $ac_n "(cached) $ac_c" 1>&6
1031 cat > conftestmake
<<\EOF
1033 @
echo 'ac_maketemp="${MAKE}"'
1035 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1036 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1037 if test -n "$ac_maketemp"; then
1038 eval ac_cv_prog_make_
${ac_make}_set
=yes
1040 eval ac_cv_prog_make_
${ac_make}_set
=no
1044 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1045 echo "$ac_t""yes" 1>&6
1048 echo "$ac_t""no" 1>&6
1049 SET_MAKE
="MAKE=${MAKE-make}"
1057 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
1058 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
1060 cat >> confdefs.h
<<EOF
1061 #define PACKAGE "$PACKAGE"
1064 cat >> confdefs.h
<<EOF
1065 #define VERSION "$VERSION"
1070 missing_dir
=`cd $ac_aux_dir && pwd`
1071 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1072 echo "configure:1073: checking for working aclocal" >&5
1073 # Run test in a subshell; some versions of sh will print an error if
1074 # an executable is not found, even if stderr is redirected.
1075 # Redirect stdin to placate older versions of autoconf. Sigh.
1076 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
1078 echo "$ac_t""found" 1>&6
1080 ACLOCAL
="$missing_dir/missing aclocal"
1081 echo "$ac_t""missing" 1>&6
1084 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1085 echo "configure:1086: checking for working autoconf" >&5
1086 # Run test in a subshell; some versions of sh will print an error if
1087 # an executable is not found, even if stderr is redirected.
1088 # Redirect stdin to placate older versions of autoconf. Sigh.
1089 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
1091 echo "$ac_t""found" 1>&6
1093 AUTOCONF
="$missing_dir/missing autoconf"
1094 echo "$ac_t""missing" 1>&6
1097 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1098 echo "configure:1099: checking for working automake" >&5
1099 # Run test in a subshell; some versions of sh will print an error if
1100 # an executable is not found, even if stderr is redirected.
1101 # Redirect stdin to placate older versions of autoconf. Sigh.
1102 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
1104 echo "$ac_t""found" 1>&6
1106 AUTOMAKE
="$missing_dir/missing automake"
1107 echo "$ac_t""missing" 1>&6
1110 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1111 echo "configure:1112: checking for working autoheader" >&5
1112 # Run test in a subshell; some versions of sh will print an error if
1113 # an executable is not found, even if stderr is redirected.
1114 # Redirect stdin to placate older versions of autoconf. Sigh.
1115 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
1116 AUTOHEADER
=autoheader
1117 echo "$ac_t""found" 1>&6
1119 AUTOHEADER
="$missing_dir/missing autoheader"
1120 echo "$ac_t""missing" 1>&6
1123 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1124 echo "configure:1125: checking for working makeinfo" >&5
1125 # Run test in a subshell; some versions of sh will print an error if
1126 # an executable is not found, even if stderr is redirected.
1127 # Redirect stdin to placate older versions of autoconf. Sigh.
1128 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
1130 echo "$ac_t""found" 1>&6
1132 MAKEINFO
="$missing_dir/missing makeinfo"
1133 echo "$ac_t""missing" 1>&6
1138 if test $host != $build; then
1139 ac_tool_prefix
=${host_alias}-
1144 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1145 set dummy
${ac_tool_prefix}ar; ac_word
=$2
1146 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1147 echo "configure:1148: checking for $ac_word" >&5
1148 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1149 echo $ac_n "(cached) $ac_c" 1>&6
1151 if test -n "$AR"; then
1152 ac_cv_prog_AR
="$AR" # Let the user override the test.
1154 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1156 for ac_dir
in $ac_dummy; do
1157 test -z "$ac_dir" && ac_dir
=.
1158 if test -f $ac_dir/$ac_word; then
1159 ac_cv_prog_AR
="${ac_tool_prefix}ar"
1164 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1168 if test -n "$AR"; then
1169 echo "$ac_t""$AR" 1>&6
1171 echo "$ac_t""no" 1>&6
1176 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1177 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1178 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1179 echo "configure:1180: checking for $ac_word" >&5
1180 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1181 echo $ac_n "(cached) $ac_c" 1>&6
1183 if test -n "$RANLIB"; then
1184 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1186 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1188 for ac_dir
in $ac_dummy; do
1189 test -z "$ac_dir" && ac_dir
=.
1190 if test -f $ac_dir/$ac_word; then
1191 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1198 RANLIB
="$ac_cv_prog_RANLIB"
1199 if test -n "$RANLIB"; then
1200 echo "$ac_t""$RANLIB" 1>&6
1202 echo "$ac_t""no" 1>&6
1206 if test -z "$ac_cv_prog_RANLIB"; then
1207 if test -n "$ac_tool_prefix"; then
1208 # Extract the first word of "ranlib", so it can be a program name with args.
1209 set dummy ranlib
; ac_word
=$2
1210 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1211 echo "configure:1212: checking for $ac_word" >&5
1212 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1213 echo $ac_n "(cached) $ac_c" 1>&6
1215 if test -n "$RANLIB"; then
1216 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1218 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1220 for ac_dir
in $ac_dummy; do
1221 test -z "$ac_dir" && ac_dir
=.
1222 if test -f $ac_dir/$ac_word; then
1223 ac_cv_prog_RANLIB
="ranlib"
1228 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1231 RANLIB
="$ac_cv_prog_RANLIB"
1232 if test -n "$RANLIB"; then
1233 echo "$ac_t""$RANLIB" 1>&6
1235 echo "$ac_t""no" 1>&6
1244 # Check whether --enable-shared or --disable-shared was given.
1245 if test "${enable_shared+set}" = set; then
1246 enableval
="$enable_shared"
1247 p
=${PACKAGE-default}
1248 case "$enableval" in
1249 yes) enable_shared
=yes ;;
1250 no
) enable_shared
=no
;;
1253 # Look at the argument we got. We use all the common list separators.
1254 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1255 for pkg
in $enableval; do
1256 if test "X$pkg" = "X$p"; then
1268 # Check whether --enable-static or --disable-static was given.
1269 if test "${enable_static+set}" = set; then
1270 enableval
="$enable_static"
1271 p
=${PACKAGE-default}
1272 case "$enableval" in
1273 yes) enable_static
=yes ;;
1274 no
) enable_static
=no
;;
1277 # Look at the argument we got. We use all the common list separators.
1278 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1279 for pkg
in $enableval; do
1280 if test "X$pkg" = "X$p"; then
1291 # Check whether --enable-fast-install or --disable-fast-install was given.
1292 if test "${enable_fast_install+set}" = set; then
1293 enableval
="$enable_fast_install"
1294 p
=${PACKAGE-default}
1295 case "$enableval" in
1296 yes) enable_fast_install
=yes ;;
1297 no
) enable_fast_install
=no
;;
1299 enable_fast_install
=no
1300 # Look at the argument we got. We use all the common list separators.
1301 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1302 for pkg
in $enableval; do
1303 if test "X$pkg" = "X$p"; then
1304 enable_fast_install
=yes
1311 enable_fast_install
=yes
1314 # Extract the first word of "ranlib", so it can be a program name with args.
1315 set dummy ranlib
; ac_word
=$2
1316 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1317 echo "configure:1318: checking for $ac_word" >&5
1318 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1319 echo $ac_n "(cached) $ac_c" 1>&6
1321 if test -n "$RANLIB"; then
1322 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1324 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1326 for ac_dir
in $ac_dummy; do
1327 test -z "$ac_dir" && ac_dir
=.
1328 if test -f $ac_dir/$ac_word; then
1329 ac_cv_prog_RANLIB
="ranlib"
1334 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1337 RANLIB
="$ac_cv_prog_RANLIB"
1338 if test -n "$RANLIB"; then
1339 echo "$ac_t""$RANLIB" 1>&6
1341 echo "$ac_t""no" 1>&6
1344 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1345 if test "${with_gnu_ld+set}" = set; then
1346 withval
="$with_gnu_ld"
1347 test "$withval" = no || with_gnu_ld
=yes
1353 if test "$ac_cv_prog_gcc" = yes; then
1354 # Check if gcc -print-prog-name=ld gives a path.
1355 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1356 echo "configure:1357: checking for ld used by GCC" >&5
1357 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1359 # Accept absolute paths.
1360 [\\/]* |
[A-Za-z
]:[\\/]*)
1361 re_direlt
='/[^/][^/]*/\.\./'
1362 # Canonicalize the path of ld
1363 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1364 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1365 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1367 test -z "$LD" && LD
="$ac_prog"
1370 # If it fails, then pretend we aren't using GCC.
1374 # If it is relative, then search for the first ld in PATH.
1378 elif test "$with_gnu_ld" = yes; then
1379 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1380 echo "configure:1381: checking for GNU ld" >&5
1382 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1383 echo "configure:1384: checking for non-GNU ld" >&5
1385 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1386 echo $ac_n "(cached) $ac_c" 1>&6
1388 if test -z "$LD"; then
1389 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1390 for ac_dir
in $PATH; do
1391 test -z "$ac_dir" && ac_dir
=.
1392 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1393 ac_cv_path_LD
="$ac_dir/$ac_prog"
1394 # Check to see if the program is GNU ld. I'd rather use --version,
1395 # but apparently some GNU ld's only accept -v.
1396 # Break only if it was the GNU/non-GNU ld that we prefer.
1397 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1398 test "$with_gnu_ld" != no
&& break
1400 test "$with_gnu_ld" != yes && break
1406 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1411 if test -n "$LD"; then
1412 echo "$ac_t""$LD" 1>&6
1414 echo "$ac_t""no" 1>&6
1416 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1417 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1418 echo "configure:1419: checking if the linker ($LD) is GNU ld" >&5
1419 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1420 echo $ac_n "(cached) $ac_c" 1>&6
1422 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1423 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1424 ac_cv_prog_gnu_ld
=yes
1426 ac_cv_prog_gnu_ld
=no
1430 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1433 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1434 echo "configure:1435: checking for BSD-compatible nm" >&5
1435 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1436 echo $ac_n "(cached) $ac_c" 1>&6
1438 if test -n "$NM"; then
1439 # Let the user override the test.
1442 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1443 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1444 test -z "$ac_dir" && ac_dir
=.
1445 if test -f $ac_dir/nm ||
test -f $ac_dir/nm
$ac_exeext ; then
1446 # Check to see if the nm accepts a BSD-compat flag.
1447 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1448 # nm: unknown option "B" ignored
1449 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1450 ac_cv_path_NM
="$ac_dir/nm -B"
1452 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1453 ac_cv_path_NM
="$ac_dir/nm -p"
1456 ac_cv_path_NM
=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1457 continue # so that we can try to find one that supports BSD flags
1462 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1467 echo "$ac_t""$NM" 1>&6
1469 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1470 echo "configure:1471: checking whether ln -s works" >&5
1471 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1472 echo $ac_n "(cached) $ac_c" 1>&6
1475 if ln -s X conftestdata
2>/dev
/null
1478 ac_cv_prog_LN_S
="ln -s"
1483 LN_S
="$ac_cv_prog_LN_S"
1484 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1485 echo "$ac_t""yes" 1>&6
1487 echo "$ac_t""no" 1>&6
1492 NONE
) lt_target
="$host" ;;
1493 *) lt_target
="$target" ;;
1496 # Check for any special flags to pass to ltconfig.
1497 libtool_flags
="--cache-file=$cache_file"
1498 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1499 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1500 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1501 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1502 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1505 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1506 if test "${enable_libtool_lock+set}" = set; then
1507 enableval
="$enable_libtool_lock"
1511 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
1512 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
1514 # Some flags need to be propagated to the compiler or linker for good
1516 case "$lt_target" in
1518 # Find out which ABI we are using.
1519 echo '#line 1520 "configure"' > conftest.
$ac_ext
1520 if { (eval echo configure
:1521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1521 case "`/usr/bin/file conftest.o`" in
1537 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1538 SAVE_CFLAGS
="$CFLAGS"
1539 CFLAGS
="$CFLAGS -belf"
1540 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1541 echo "configure:1542: checking whether the C compiler needs -belf" >&5
1542 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1543 echo $ac_n "(cached) $ac_c" 1>&6
1545 cat > conftest.
$ac_ext <<EOF
1546 #line 1547 "configure"
1547 #include "confdefs.h"
1553 if { (eval echo configure
:1554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1555 lt_cv_cc_needs_belf
=yes
1557 echo "configure: failed program was:" >&5
1558 cat conftest.
$ac_ext >&5
1560 lt_cv_cc_needs_belf
=no
1565 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1566 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
1567 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1568 CFLAGS
="$SAVE_CFLAGS"
1576 # Save cache, so that ltconfig can load it
1577 cat > confcache
<<\EOF
1578 # This file is a shell script that caches the results of configure
1579 # tests run on this system so they can be shared between configure
1580 # scripts and configure runs. It is not useful on other systems.
1581 # If it contains results you don't want to keep, you may remove or edit it.
1583 # By default, configure uses ./config.cache as the cache file,
1584 # creating it if it does not exist already. You can give configure
1585 # the --cache-file=FILE option to use a different cache file; that is
1586 # what configure does when it calls configure scripts in
1587 # subdirectories, so they share the cache.
1588 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1589 # config.status only pays attention to the cache file if you give it the
1590 # --recheck option to rerun configure.
1593 # The following way of writing the cache mishandles newlines in values,
1594 # but we know of no workaround that is simple, portable, and efficient.
1595 # So, don't put newlines in cache variables' values.
1596 # Ultrix sh set writes to stderr and can't be redirected directly,
1597 # and sets the high bit in the cache file unless we assign to the vars.
1599 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1601 # `set' does not quote correctly, so add quotes (double-quote substitution
1602 # turns \\\\ into \\, and sed turns \\ into \).
1604 -e "s/'/'\\\\''/g" \
1605 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1608 # `set' quotes correctly as required by POSIX, so do not add quotes.
1609 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1612 if cmp -s $cache_file confcache
; then
1615 if test -w $cache_file; then
1616 echo "updating cache $cache_file"
1617 cat confcache
> $cache_file
1619 echo "not updating unwritable cache $cache_file"
1625 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1626 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1627 LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
1628 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" \
1629 DLLTOOL
="$DLLTOOL" AS
="$AS" OBJDUMP
="$OBJDUMP" \
1630 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
1631 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$lt_target \
1632 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1634 # Reload cache, that may have been modified by ltconfig
1635 if test -r "$cache_file"; then
1636 echo "loading cache $cache_file"
1639 echo "creating cache $cache_file"
1644 # This can be used to rebuild libtool when needed
1645 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1647 # Always use our own libtool.
1648 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1650 # Redirect the config.log output again, so that the ltconfig log is not
1651 # clobbered by the next message.
1652 exec 5>>.
/config.log
1655 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
1656 if test "${enable_64_bit_bfd+set}" = set; then
1657 enableval
="$enable_64_bit_bfd"
1658 case "${enableval}" in
1661 *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;;
1666 # Check whether --enable-targets or --disable-targets was given.
1667 if test "${enable_targets+set}" = set; then
1668 enableval
="$enable_targets"
1669 case "${enableval}" in
1670 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
1672 no
) enable_targets
= ;;
1673 *) enable_targets
=$enableval ;;
1676 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
1677 if test "${enable_commonbfdlib+set}" = set; then
1678 enableval
="$enable_commonbfdlib"
1679 case "${enableval}" in
1680 yes) commonbfdlib
=true
;;
1681 no
) commonbfdlib
=false
;;
1682 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
1685 # Check whether --with-mmap or --without-mmap was given.
1686 if test "${with_mmap+set}" = set; then
1687 withval
="$with_mmap"
1688 case "${withval}" in
1689 yes) want_mmap
=true
;;
1690 no
) want_mmap
=false
;;
1691 *) { echo "configure: error: bad value ${withval} for BFD with-mmap option" 1>&2; exit 1; } ;;
1697 build_warnings
="-W -Wall"
1698 # Check whether --enable-build-warnings or --disable-build-warnings was given.
1699 if test "${enable_build_warnings+set}" = set; then
1700 enableval
="$enable_build_warnings"
1701 case "${enableval}" in
1703 no
) build_warnings
="-w";;
1704 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
1705 build_warnings
="${build_warnings} ${t}";;
1706 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
1707 build_warnings
="${t} ${build_warnings}";;
1708 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
1710 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
1711 echo "Setting warning flags = $build_warnings" 6>&1
1715 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
; then
1716 WARN_CFLAGS
="${build_warnings}"
1724 if test -z "$target" ; then
1725 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
1727 if test "$program_transform_name" = s
,x
,x
,; then
1728 program_transform_name
=
1730 # Double any \ or $. echo might interpret backslashes.
1731 cat <<\EOF_SED
> conftestsed
1732 s
,\\,\\\\,g
; s
,\$
,$$
,g
1734 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1737 test "$program_prefix" != NONE
&&
1738 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1739 # Use a double $ so make ignores it.
1740 test "$program_suffix" != NONE
&&
1741 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1743 # sed with no file args requires a program.
1744 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1747 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1748 echo "configure:1749: checking whether to enable maintainer-specific portions of Makefiles" >&5
1749 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1750 if test "${enable_maintainer_mode+set}" = set; then
1751 enableval
="$enable_maintainer_mode"
1752 USE_MAINTAINER_MODE
=$enableval
1754 USE_MAINTAINER_MODE
=no
1757 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1760 if test $USE_MAINTAINER_MODE = yes; then
1761 MAINTAINER_MODE_TRUE
=
1762 MAINTAINER_MODE_FALSE
='#'
1764 MAINTAINER_MODE_TRUE
='#'
1765 MAINTAINER_MODE_FALSE
=
1767 MAINT
=$MAINTAINER_MODE_TRUE
1770 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1771 echo "configure:1772: checking for Cygwin environment" >&5
1772 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1773 echo $ac_n "(cached) $ac_c" 1>&6
1775 cat > conftest.
$ac_ext <<EOF
1776 #line 1777 "configure"
1777 #include "confdefs.h"
1782 #define __CYGWIN__ __CYGWIN32__
1787 if { (eval echo configure
:1788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1791 echo "configure: failed program was:" >&5
1792 cat conftest.
$ac_ext >&5
1800 echo "$ac_t""$ac_cv_cygwin" 1>&6
1802 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
1803 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1804 echo "configure:1805: checking for mingw32 environment" >&5
1805 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1806 echo $ac_n "(cached) $ac_c" 1>&6
1808 cat > conftest.
$ac_ext <<EOF
1809 #line 1810 "configure"
1810 #include "confdefs.h"
1816 if { (eval echo configure
:1817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1820 echo "configure: failed program was:" >&5
1821 cat conftest.
$ac_ext >&5
1829 echo "$ac_t""$ac_cv_mingw32" 1>&6
1831 test "$ac_cv_mingw32" = yes && MINGW32
=yes
1834 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1835 echo "configure:1836: checking for executable suffix" >&5
1836 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1837 echo $ac_n "(cached) $ac_c" 1>&6
1839 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1843 echo 'int main () { return 0; }' > conftest.
$ac_ext
1845 if { (eval echo configure
:1846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1846 for file in conftest.
*; do
1848 *.c |
*.o |
*.obj
) ;;
1849 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1853 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1856 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1861 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1862 echo "$ac_t""${ac_cv_exeext}" 1>&6
1871 # Extract the first word of "gcc", so it can be a program name with args.
1872 set dummy gcc
; ac_word
=$2
1873 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1874 echo "configure:1875: checking for $ac_word" >&5
1875 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1876 echo $ac_n "(cached) $ac_c" 1>&6
1878 if test -n "$CC"; then
1879 ac_cv_prog_CC
="$CC" # Let the user override the test.
1881 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1883 for ac_dir
in $ac_dummy; do
1884 test -z "$ac_dir" && ac_dir
=.
1885 if test -f $ac_dir/$ac_word; then
1894 if test -n "$CC"; then
1895 echo "$ac_t""$CC" 1>&6
1897 echo "$ac_t""no" 1>&6
1900 if test -z "$CC"; then
1901 # Extract the first word of "cc", so it can be a program name with args.
1902 set dummy cc
; ac_word
=$2
1903 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1904 echo "configure:1905: checking for $ac_word" >&5
1905 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1906 echo $ac_n "(cached) $ac_c" 1>&6
1908 if test -n "$CC"; then
1909 ac_cv_prog_CC
="$CC" # Let the user override the test.
1911 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1914 for ac_dir
in $ac_dummy; do
1915 test -z "$ac_dir" && ac_dir
=.
1916 if test -f $ac_dir/$ac_word; then
1917 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1918 ac_prog_rejected
=yes
1926 if test $ac_prog_rejected = yes; then
1927 # We found a bogon in the path, so make sure we never use it.
1928 set dummy
$ac_cv_prog_CC
1930 if test $# -gt 0; then
1931 # We chose a different compiler from the bogus one.
1932 # However, it has the same basename, so the bogon will be chosen
1933 # first if we set CC to just the basename; use the full file name.
1935 set dummy
"$ac_dir/$ac_word" "$@"
1943 if test -n "$CC"; then
1944 echo "$ac_t""$CC" 1>&6
1946 echo "$ac_t""no" 1>&6
1949 if test -z "$CC"; then
1950 case "`uname -s`" in
1952 # Extract the first word of "cl", so it can be a program name with args.
1953 set dummy cl
; ac_word
=$2
1954 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1955 echo "configure:1956: checking for $ac_word" >&5
1956 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1957 echo $ac_n "(cached) $ac_c" 1>&6
1959 if test -n "$CC"; then
1960 ac_cv_prog_CC
="$CC" # Let the user override the test.
1962 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1964 for ac_dir
in $ac_dummy; do
1965 test -z "$ac_dir" && ac_dir
=.
1966 if test -f $ac_dir/$ac_word; then
1975 if test -n "$CC"; then
1976 echo "$ac_t""$CC" 1>&6
1978 echo "$ac_t""no" 1>&6
1983 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1986 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1987 echo "configure:1988: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1990 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1991 ac_cpp
='$CPP $CPPFLAGS'
1992 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1993 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1994 cross_compiling
=$ac_cv_prog_cc_cross
1996 cat > conftest.
$ac_ext << EOF
1998 #line 1999 "configure"
1999 #include "confdefs.h"
2003 if { (eval echo configure
:2004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2004 ac_cv_prog_cc_works
=yes
2005 # If we can't run a trivial program, we are probably using a cross compiler.
2006 if (.
/conftest
; exit) 2>/dev
/null
; then
2007 ac_cv_prog_cc_cross
=no
2009 ac_cv_prog_cc_cross
=yes
2012 echo "configure: failed program was:" >&5
2013 cat conftest.
$ac_ext >&5
2014 ac_cv_prog_cc_works
=no
2018 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2019 ac_cpp
='$CPP $CPPFLAGS'
2020 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2021 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2022 cross_compiling
=$ac_cv_prog_cc_cross
2024 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2025 if test $ac_cv_prog_cc_works = no
; then
2026 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2028 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2029 echo "configure:2030: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2030 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2031 cross_compiling
=$ac_cv_prog_cc_cross
2033 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2034 echo "configure:2035: checking whether we are using GNU C" >&5
2035 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2036 echo $ac_n "(cached) $ac_c" 1>&6
2038 cat > conftest.c
<<EOF
2043 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2050 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2052 if test $ac_cv_prog_gcc = yes; then
2058 ac_test_CFLAGS
="${CFLAGS+set}"
2059 ac_save_CFLAGS
="$CFLAGS"
2061 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2062 echo "configure:2063: checking whether ${CC-cc} accepts -g" >&5
2063 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2064 echo $ac_n "(cached) $ac_c" 1>&6
2066 echo 'void f(){}' > conftest.c
2067 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2076 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2077 if test "$ac_test_CFLAGS" = set; then
2078 CFLAGS
="$ac_save_CFLAGS"
2079 elif test $ac_cv_prog_cc_g = yes; then
2080 if test "$GCC" = yes; then
2086 if test "$GCC" = yes; then
2095 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2096 echo "configure:2097: checking how to run the C preprocessor" >&5
2097 # On Suns, sometimes $CPP names a directory.
2098 if test -n "$CPP" && test -d "$CPP"; then
2101 if test -z "$CPP"; then
2102 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2103 echo $ac_n "(cached) $ac_c" 1>&6
2105 # This must be in double quotes, not single quotes, because CPP may get
2106 # substituted into the Makefile and "${CC-cc}" will confuse make.
2108 # On the NeXT, cc -E runs the code through the compiler's parser,
2109 # not just through cpp.
2110 cat > conftest.
$ac_ext <<EOF
2111 #line 2112 "configure"
2112 #include "confdefs.h"
2116 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2117 { (eval echo configure
:2118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2118 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2119 if test -z "$ac_err"; then
2123 echo "configure: failed program was:" >&5
2124 cat conftest.
$ac_ext >&5
2126 CPP
="${CC-cc} -E -traditional-cpp"
2127 cat > conftest.
$ac_ext <<EOF
2128 #line 2129 "configure"
2129 #include "confdefs.h"
2133 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2134 { (eval echo configure
:2135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2135 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2136 if test -z "$ac_err"; then
2140 echo "configure: failed program was:" >&5
2141 cat conftest.
$ac_ext >&5
2143 CPP
="${CC-cc} -nologo -E"
2144 cat > conftest.
$ac_ext <<EOF
2145 #line 2146 "configure"
2146 #include "confdefs.h"
2150 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2151 { (eval echo configure
:2152: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2152 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2153 if test -z "$ac_err"; then
2157 echo "configure: failed program was:" >&5
2158 cat conftest.
$ac_ext >&5
2167 ac_cv_prog_CPP
="$CPP"
2169 CPP
="$ac_cv_prog_CPP"
2171 ac_cv_prog_CPP
="$CPP"
2173 echo "$ac_t""$CPP" 1>&6
2175 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2176 echo "configure:2177: checking for ANSI C header files" >&5
2177 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2178 echo $ac_n "(cached) $ac_c" 1>&6
2180 cat > conftest.
$ac_ext <<EOF
2181 #line 2182 "configure"
2182 #include "confdefs.h"
2188 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2189 { (eval echo configure
:2190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2190 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2191 if test -z "$ac_err"; then
2193 ac_cv_header_stdc
=yes
2196 echo "configure: failed program was:" >&5
2197 cat conftest.
$ac_ext >&5
2199 ac_cv_header_stdc
=no
2203 if test $ac_cv_header_stdc = yes; then
2204 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2205 cat > conftest.
$ac_ext <<EOF
2206 #line 2207 "configure"
2207 #include "confdefs.h"
2210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2211 egrep "memchr" >/dev
/null
2>&1; then
2215 ac_cv_header_stdc
=no
2221 if test $ac_cv_header_stdc = yes; then
2222 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2223 cat > conftest.
$ac_ext <<EOF
2224 #line 2225 "configure"
2225 #include "confdefs.h"
2228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2229 egrep "free" >/dev
/null
2>&1; then
2233 ac_cv_header_stdc
=no
2239 if test $ac_cv_header_stdc = yes; then
2240 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2241 if test "$cross_compiling" = yes; then
2244 cat > conftest.
$ac_ext <<EOF
2245 #line 2246 "configure"
2246 #include "confdefs.h"
2248 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2249 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2250 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2251 int main () { int i; for (i = 0; i < 256; i++)
2252 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2256 if { (eval echo configure
:2257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2260 echo "configure: failed program was:" >&5
2261 cat conftest.
$ac_ext >&5
2263 ac_cv_header_stdc
=no
2271 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2272 if test $ac_cv_header_stdc = yes; then
2273 cat >> confdefs.h
<<\EOF
2274 #define STDC_HEADERS 1
2279 echo $ac_n "checking for working const""... $ac_c" 1>&6
2280 echo "configure:2281: checking for working const" >&5
2281 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2282 echo $ac_n "(cached) $ac_c" 1>&6
2284 cat > conftest.
$ac_ext <<EOF
2285 #line 2286 "configure"
2286 #include "confdefs.h"
2290 /* Ultrix mips cc rejects this. */
2291 typedef int charset[2]; const charset x;
2292 /* SunOS 4.1.1 cc rejects this. */
2293 char const *const *ccp;
2295 /* NEC SVR4.0.2 mips cc rejects this. */
2296 struct point {int x, y;};
2297 static struct point const zero = {0,0};
2298 /* AIX XL C 1.02.0.0 rejects this.
2299 It does not let you subtract one const X* pointer from another in an arm
2300 of an if-expression whose if-part is not a constant expression */
2301 const char *g = "string";
2302 ccp = &g + (g ? g-g : 0);
2303 /* HPUX 7.0 cc rejects these. */
2306 ccp = (char const *const *) p;
2307 { /* SCO 3.2v4 cc rejects this. */
2309 char const *s = 0 ? (char *) 0 : (char const *) 0;
2313 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2315 const int *foo = &x[0];
2318 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2319 typedef const int *iptr;
2323 { /* AIX XL C 1.02.0.0 rejects this saying
2324 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2325 struct s { int j; const int *ap[3]; };
2326 struct s *b; b->j = 5;
2328 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2334 if { (eval echo configure
:2335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2338 echo "configure: failed program was:" >&5
2339 cat conftest.
$ac_ext >&5
2346 echo "$ac_t""$ac_cv_c_const" 1>&6
2347 if test $ac_cv_c_const = no
; then
2348 cat >> confdefs.h
<<\EOF
2354 echo $ac_n "checking for inline""... $ac_c" 1>&6
2355 echo "configure:2356: checking for inline" >&5
2356 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2357 echo $ac_n "(cached) $ac_c" 1>&6
2360 for ac_kw
in inline __inline__ __inline
; do
2361 cat > conftest.
$ac_ext <<EOF
2362 #line 2363 "configure"
2363 #include "confdefs.h"
2369 if { (eval echo configure
:2370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2371 ac_cv_c_inline
=$ac_kw; break
2373 echo "configure: failed program was:" >&5
2374 cat conftest.
$ac_ext >&5
2381 echo "$ac_t""$ac_cv_c_inline" 1>&6
2382 case "$ac_cv_c_inline" in
2384 no
) cat >> confdefs.h
<<\EOF
2388 *) cat >> confdefs.h
<<EOF
2389 #define inline $ac_cv_c_inline
2394 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2395 echo "configure:2396: checking for off_t" >&5
2396 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2397 echo $ac_n "(cached) $ac_c" 1>&6
2399 cat > conftest.
$ac_ext <<EOF
2400 #line 2401 "configure"
2401 #include "confdefs.h"
2402 #include <sys/types.h>
2408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2409 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2411 ac_cv_type_off_t
=yes
2419 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2420 if test $ac_cv_type_off_t = no
; then
2421 cat >> confdefs.h
<<\EOF
2427 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2428 echo "configure:2429: checking for size_t" >&5
2429 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2430 echo $ac_n "(cached) $ac_c" 1>&6
2432 cat > conftest.
$ac_ext <<EOF
2433 #line 2434 "configure"
2434 #include "confdefs.h"
2435 #include <sys/types.h>
2441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2442 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2444 ac_cv_type_size_t
=yes
2447 ac_cv_type_size_t
=no
2452 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2453 if test $ac_cv_type_size_t = no
; then
2454 cat >> confdefs.h
<<\EOF
2455 #define size_t unsigned
2460 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2461 # for constant arguments. Useless!
2462 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2463 echo "configure:2464: checking for working alloca.h" >&5
2464 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2465 echo $ac_n "(cached) $ac_c" 1>&6
2467 cat > conftest.
$ac_ext <<EOF
2468 #line 2469 "configure"
2469 #include "confdefs.h"
2472 char *p = alloca(2 * sizeof(int));
2475 if { (eval echo configure
:2476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2477 ac_cv_header_alloca_h
=yes
2479 echo "configure: failed program was:" >&5
2480 cat conftest.
$ac_ext >&5
2482 ac_cv_header_alloca_h
=no
2487 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2488 if test $ac_cv_header_alloca_h = yes; then
2489 cat >> confdefs.h
<<\EOF
2490 #define HAVE_ALLOCA_H 1
2495 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2496 echo "configure:2497: checking for alloca" >&5
2497 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2498 echo $ac_n "(cached) $ac_c" 1>&6
2500 cat > conftest.
$ac_ext <<EOF
2501 #line 2502 "configure"
2502 #include "confdefs.h"
2505 # define alloca __builtin_alloca
2508 # include <malloc.h>
2509 # define alloca _alloca
2512 # include <alloca.h>
2517 # ifndef alloca /* predefined by HP cc +Olibcalls */
2526 char *p = (char *) alloca(1);
2529 if { (eval echo configure
:2530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2531 ac_cv_func_alloca_works
=yes
2533 echo "configure: failed program was:" >&5
2534 cat conftest.
$ac_ext >&5
2536 ac_cv_func_alloca_works
=no
2541 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2542 if test $ac_cv_func_alloca_works = yes; then
2543 cat >> confdefs.h
<<\EOF
2544 #define HAVE_ALLOCA 1
2549 if test $ac_cv_func_alloca_works = no
; then
2550 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2551 # that cause trouble. Some versions do not even contain alloca or
2552 # contain a buggy version. If you still want to use their alloca,
2553 # use ar to extract alloca.o from them instead of compiling alloca.c.
2554 ALLOCA
=alloca.
${ac_objext}
2555 cat >> confdefs.h
<<\EOF
2560 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2561 echo "configure:2562: checking whether alloca needs Cray hooks" >&5
2562 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2563 echo $ac_n "(cached) $ac_c" 1>&6
2565 cat > conftest.
$ac_ext <<EOF
2566 #line 2567 "configure"
2567 #include "confdefs.h"
2568 #if defined(CRAY) && ! defined(CRAY2)
2575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2576 egrep "webecray" >/dev
/null
2>&1; then
2587 echo "$ac_t""$ac_cv_os_cray" 1>&6
2588 if test $ac_cv_os_cray = yes; then
2589 for ac_func
in _getb67 GETB67 getb67
; do
2590 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2591 echo "configure:2592: checking for $ac_func" >&5
2592 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2593 echo $ac_n "(cached) $ac_c" 1>&6
2595 cat > conftest.
$ac_ext <<EOF
2596 #line 2597 "configure"
2597 #include "confdefs.h"
2598 /* System header to define __stub macros and hopefully few prototypes,
2599 which can conflict with char $ac_func(); below. */
2601 /* Override any gcc2 internal prototype to avoid an error. */
2602 /* We use char because int might match the return type of a gcc2
2603 builtin and then its argument prototype would still apply. */
2608 /* The GNU C library defines this for functions which it implements
2609 to always fail with ENOSYS. Some functions are actually named
2610 something starting with __ and the normal name is an alias. */
2611 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2619 if { (eval echo configure
:2620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2621 eval "ac_cv_func_$ac_func=yes"
2623 echo "configure: failed program was:" >&5
2624 cat conftest.
$ac_ext >&5
2626 eval "ac_cv_func_$ac_func=no"
2631 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2632 echo "$ac_t""yes" 1>&6
2633 cat >> confdefs.h
<<EOF
2634 #define CRAY_STACKSEG_END $ac_func
2639 echo "$ac_t""no" 1>&6
2645 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2646 echo "configure:2647: checking stack direction for C alloca" >&5
2647 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2648 echo $ac_n "(cached) $ac_c" 1>&6
2650 if test "$cross_compiling" = yes; then
2651 ac_cv_c_stack_direction
=0
2653 cat > conftest.
$ac_ext <<EOF
2654 #line 2655 "configure"
2655 #include "confdefs.h"
2656 find_stack_direction ()
2658 static char *addr = 0;
2663 return find_stack_direction ();
2666 return (&dummy > addr) ? 1 : -1;
2670 exit (find_stack_direction() < 0);
2673 if { (eval echo configure
:2674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2675 ac_cv_c_stack_direction
=1
2677 echo "configure: failed program was:" >&5
2678 cat conftest.
$ac_ext >&5
2680 ac_cv_c_stack_direction
=-1
2687 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2688 cat >> confdefs.h
<<EOF
2689 #define STACK_DIRECTION $ac_cv_c_stack_direction
2694 for ac_hdr
in unistd.h
2696 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2697 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2698 echo "configure:2699: checking for $ac_hdr" >&5
2699 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2700 echo $ac_n "(cached) $ac_c" 1>&6
2702 cat > conftest.
$ac_ext <<EOF
2703 #line 2704 "configure"
2704 #include "confdefs.h"
2707 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2708 { (eval echo configure
:2709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2709 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2710 if test -z "$ac_err"; then
2712 eval "ac_cv_header_$ac_safe=yes"
2715 echo "configure: failed program was:" >&5
2716 cat conftest.
$ac_ext >&5
2718 eval "ac_cv_header_$ac_safe=no"
2722 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2723 echo "$ac_t""yes" 1>&6
2724 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2725 cat >> confdefs.h
<<EOF
2726 #define $ac_tr_hdr 1
2730 echo "$ac_t""no" 1>&6
2734 for ac_func
in getpagesize
2736 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2737 echo "configure:2738: checking for $ac_func" >&5
2738 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2739 echo $ac_n "(cached) $ac_c" 1>&6
2741 cat > conftest.
$ac_ext <<EOF
2742 #line 2743 "configure"
2743 #include "confdefs.h"
2744 /* System header to define __stub macros and hopefully few prototypes,
2745 which can conflict with char $ac_func(); below. */
2747 /* Override any gcc2 internal prototype to avoid an error. */
2748 /* We use char because int might match the return type of a gcc2
2749 builtin and then its argument prototype would still apply. */
2754 /* The GNU C library defines this for functions which it implements
2755 to always fail with ENOSYS. Some functions are actually named
2756 something starting with __ and the normal name is an alias. */
2757 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2765 if { (eval echo configure
:2766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2767 eval "ac_cv_func_$ac_func=yes"
2769 echo "configure: failed program was:" >&5
2770 cat conftest.
$ac_ext >&5
2772 eval "ac_cv_func_$ac_func=no"
2777 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2778 echo "$ac_t""yes" 1>&6
2779 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2780 cat >> confdefs.h
<<EOF
2781 #define $ac_tr_func 1
2785 echo "$ac_t""no" 1>&6
2789 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2790 echo "configure:2791: checking for working mmap" >&5
2791 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2792 echo $ac_n "(cached) $ac_c" 1>&6
2794 if test "$cross_compiling" = yes; then
2795 ac_cv_func_mmap_fixed_mapped
=no
2797 cat > conftest.
$ac_ext <<EOF
2798 #line 2799 "configure"
2799 #include "confdefs.h"
2801 /* Thanks to Mike Haertel and Jim Avera for this test.
2802 Here is a matrix of mmap possibilities:
2803 mmap private not fixed
2804 mmap private fixed at somewhere currently unmapped
2805 mmap private fixed at somewhere already mapped
2806 mmap shared not fixed
2807 mmap shared fixed at somewhere currently unmapped
2808 mmap shared fixed at somewhere already mapped
2809 For private mappings, we should verify that changes cannot be read()
2810 back from the file, nor mmap's back from the file at a different
2811 address. (There have been systems where private was not correctly
2812 implemented like the infamous i386 svr4.0, and systems where the
2813 VM page cache was not coherent with the filesystem buffer cache
2814 like early versions of FreeBSD and possibly contemporary NetBSD.)
2815 For shared mappings, we should conversely verify that changes get
2816 propogated back to all the places they're supposed to be.
2818 Grep wants private fixed already mapped.
2819 The main things grep needs to know about mmap are:
2820 * does it exist and is it safe to write into the mmap'd area
2821 * how to use it (BSD variants) */
2822 #include <sys/types.h>
2824 #include <sys/mman.h>
2826 /* This mess was copied from the GNU getpagesize.h. */
2827 #ifndef HAVE_GETPAGESIZE
2828 # ifdef HAVE_UNISTD_H
2829 # include <unistd.h>
2832 /* Assume that all systems that can run configure have sys/param.h. */
2833 # ifndef HAVE_SYS_PARAM_H
2834 # define HAVE_SYS_PARAM_H 1
2837 # ifdef _SC_PAGESIZE
2838 # define getpagesize() sysconf(_SC_PAGESIZE)
2839 # else /* no _SC_PAGESIZE */
2840 # ifdef HAVE_SYS_PARAM_H
2841 # include <sys/param.h>
2842 # ifdef EXEC_PAGESIZE
2843 # define getpagesize() EXEC_PAGESIZE
2844 # else /* no EXEC_PAGESIZE */
2846 # define getpagesize() NBPG * CLSIZE
2849 # endif /* no CLSIZE */
2850 # else /* no NBPG */
2852 # define getpagesize() NBPC
2853 # else /* no NBPC */
2855 # define getpagesize() PAGESIZE
2856 # endif /* PAGESIZE */
2857 # endif /* no NBPC */
2858 # endif /* no NBPG */
2859 # endif /* no EXEC_PAGESIZE */
2860 # else /* no HAVE_SYS_PARAM_H */
2861 # define getpagesize() 8192 /* punt totally */
2862 # endif /* no HAVE_SYS_PARAM_H */
2863 # endif /* no _SC_PAGESIZE */
2865 #endif /* no HAVE_GETPAGESIZE */
2868 extern "C" { void *malloc(unsigned); }
2876 char *data, *data2, *data3;
2880 pagesize = getpagesize();
2883 * First, make a file with some known garbage in it.
2885 data = malloc(pagesize);
2888 for (i = 0; i < pagesize; ++i)
2889 *(data + i) = rand();
2891 fd = creat("conftestmmap", 0600);
2894 if (write(fd, data, pagesize) != pagesize)
2899 * Next, try to mmap the file at a fixed address which
2900 * already has something else allocated at it. If we can,
2901 * also make sure that we see the same garbage.
2903 fd = open("conftestmmap", O_RDWR);
2906 data2 = malloc(2 * pagesize);
2909 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2910 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2911 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2913 for (i = 0; i < pagesize; ++i)
2914 if (*(data + i) != *(data2 + i))
2918 * Finally, make sure that changes to the mapped area
2919 * do not percolate back to the file as seen by read().
2920 * (This is a bug on some variants of i386 svr4.0.)
2922 for (i = 0; i < pagesize; ++i)
2923 *(data2 + i) = *(data2 + i) + 1;
2924 data3 = malloc(pagesize);
2927 if (read(fd, data3, pagesize) != pagesize)
2929 for (i = 0; i < pagesize; ++i)
2930 if (*(data + i) != *(data3 + i))
2933 unlink("conftestmmap");
2938 if { (eval echo configure
:2939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2940 ac_cv_func_mmap_fixed_mapped
=yes
2942 echo "configure: failed program was:" >&5
2943 cat conftest.
$ac_ext >&5
2945 ac_cv_func_mmap_fixed_mapped
=no
2952 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2953 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2954 cat >> confdefs.h
<<\EOF
2961 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2962 unistd.h values.h sys
/param.h
2964 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2965 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2966 echo "configure:2967: checking for $ac_hdr" >&5
2967 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2968 echo $ac_n "(cached) $ac_c" 1>&6
2970 cat > conftest.
$ac_ext <<EOF
2971 #line 2972 "configure"
2972 #include "confdefs.h"
2975 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2976 { (eval echo configure
:2977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2977 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2978 if test -z "$ac_err"; then
2980 eval "ac_cv_header_$ac_safe=yes"
2983 echo "configure: failed program was:" >&5
2984 cat conftest.
$ac_ext >&5
2986 eval "ac_cv_header_$ac_safe=no"
2990 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2991 echo "$ac_t""yes" 1>&6
2992 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2993 cat >> confdefs.h
<<EOF
2994 #define $ac_tr_hdr 1
2998 echo "$ac_t""no" 1>&6
3002 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3003 __argz_count __argz_stringify __argz_next
3005 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3006 echo "configure:3007: checking for $ac_func" >&5
3007 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3008 echo $ac_n "(cached) $ac_c" 1>&6
3010 cat > conftest.
$ac_ext <<EOF
3011 #line 3012 "configure"
3012 #include "confdefs.h"
3013 /* System header to define __stub macros and hopefully few prototypes,
3014 which can conflict with char $ac_func(); below. */
3016 /* Override any gcc2 internal prototype to avoid an error. */
3017 /* We use char because int might match the return type of a gcc2
3018 builtin and then its argument prototype would still apply. */
3023 /* The GNU C library defines this for functions which it implements
3024 to always fail with ENOSYS. Some functions are actually named
3025 something starting with __ and the normal name is an alias. */
3026 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3034 if { (eval echo configure
:3035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3036 eval "ac_cv_func_$ac_func=yes"
3038 echo "configure: failed program was:" >&5
3039 cat conftest.
$ac_ext >&5
3041 eval "ac_cv_func_$ac_func=no"
3046 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3047 echo "$ac_t""yes" 1>&6
3048 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3049 cat >> confdefs.h
<<EOF
3050 #define $ac_tr_func 1
3054 echo "$ac_t""no" 1>&6
3059 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3060 for ac_func
in stpcpy
3062 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3063 echo "configure:3064: checking for $ac_func" >&5
3064 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3065 echo $ac_n "(cached) $ac_c" 1>&6
3067 cat > conftest.
$ac_ext <<EOF
3068 #line 3069 "configure"
3069 #include "confdefs.h"
3070 /* System header to define __stub macros and hopefully few prototypes,
3071 which can conflict with char $ac_func(); below. */
3073 /* Override any gcc2 internal prototype to avoid an error. */
3074 /* We use char because int might match the return type of a gcc2
3075 builtin and then its argument prototype would still apply. */
3080 /* The GNU C library defines this for functions which it implements
3081 to always fail with ENOSYS. Some functions are actually named
3082 something starting with __ and the normal name is an alias. */
3083 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3091 if { (eval echo configure
:3092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3093 eval "ac_cv_func_$ac_func=yes"
3095 echo "configure: failed program was:" >&5
3096 cat conftest.
$ac_ext >&5
3098 eval "ac_cv_func_$ac_func=no"
3103 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3104 echo "$ac_t""yes" 1>&6
3105 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3106 cat >> confdefs.h
<<EOF
3107 #define $ac_tr_func 1
3111 echo "$ac_t""no" 1>&6
3116 if test "${ac_cv_func_stpcpy}" = "yes"; then
3117 cat >> confdefs.h
<<\EOF
3118 #define HAVE_STPCPY 1
3123 if test $ac_cv_header_locale_h = yes; then
3124 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3125 echo "configure:3126: checking for LC_MESSAGES" >&5
3126 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3127 echo $ac_n "(cached) $ac_c" 1>&6
3129 cat > conftest.
$ac_ext <<EOF
3130 #line 3131 "configure"
3131 #include "confdefs.h"
3137 if { (eval echo configure
:3138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3139 am_cv_val_LC_MESSAGES
=yes
3141 echo "configure: failed program was:" >&5
3142 cat conftest.
$ac_ext >&5
3144 am_cv_val_LC_MESSAGES
=no
3149 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3150 if test $am_cv_val_LC_MESSAGES = yes; then
3151 cat >> confdefs.h
<<\EOF
3152 #define HAVE_LC_MESSAGES 1
3157 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3158 echo "configure:3159: checking whether NLS is requested" >&5
3159 # Check whether --enable-nls or --disable-nls was given.
3160 if test "${enable_nls+set}" = set; then
3161 enableval
="$enable_nls"
3167 echo "$ac_t""$USE_NLS" 1>&6
3170 USE_INCLUDED_LIBINTL
=no
3172 if test "$USE_NLS" = "yes"; then
3173 cat >> confdefs.h
<<\EOF
3174 #define ENABLE_NLS 1
3177 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3178 echo "configure:3179: checking whether included gettext is requested" >&5
3179 # Check whether --with-included-gettext or --without-included-gettext was given.
3180 if test "${with_included_gettext+set}" = set; then
3181 withval
="$with_included_gettext"
3182 nls_cv_force_use_gnu_gettext
=$withval
3184 nls_cv_force_use_gnu_gettext
=no
3187 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3189 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
3190 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3192 nls_cv_header_libgt
=
3195 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3196 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3197 echo "configure:3198: checking for libintl.h" >&5
3198 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3199 echo $ac_n "(cached) $ac_c" 1>&6
3201 cat > conftest.
$ac_ext <<EOF
3202 #line 3203 "configure"
3203 #include "confdefs.h"
3204 #include <libintl.h>
3206 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3207 { (eval echo configure
:3208: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3208 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3209 if test -z "$ac_err"; then
3211 eval "ac_cv_header_$ac_safe=yes"
3214 echo "configure: failed program was:" >&5
3215 cat conftest.
$ac_ext >&5
3217 eval "ac_cv_header_$ac_safe=no"
3221 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3222 echo "$ac_t""yes" 1>&6
3223 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3224 echo "configure:3225: checking for gettext in libc" >&5
3225 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3226 echo $ac_n "(cached) $ac_c" 1>&6
3228 cat > conftest.
$ac_ext <<EOF
3229 #line 3230 "configure"
3230 #include "confdefs.h"
3231 #include <libintl.h>
3233 return (int) gettext ("")
3236 if { (eval echo configure
:3237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3238 gt_cv_func_gettext_libc
=yes
3240 echo "configure: failed program was:" >&5
3241 cat conftest.
$ac_ext >&5
3243 gt_cv_func_gettext_libc
=no
3248 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3250 if test "$gt_cv_func_gettext_libc" != "yes"; then
3251 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3252 echo "configure:3253: checking for bindtextdomain in -lintl" >&5
3253 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3254 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3255 echo $ac_n "(cached) $ac_c" 1>&6
3257 ac_save_LIBS
="$LIBS"
3259 cat > conftest.
$ac_ext <<EOF
3260 #line 3261 "configure"
3261 #include "confdefs.h"
3262 /* Override any gcc2 internal prototype to avoid an error. */
3263 /* We use char because int might match the return type of a gcc2
3264 builtin and then its argument prototype would still apply. */
3265 char bindtextdomain();
3271 if { (eval echo configure
:3272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3273 eval "ac_cv_lib_$ac_lib_var=yes"
3275 echo "configure: failed program was:" >&5
3276 cat conftest.
$ac_ext >&5
3278 eval "ac_cv_lib_$ac_lib_var=no"
3281 LIBS
="$ac_save_LIBS"
3284 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3285 echo "$ac_t""yes" 1>&6
3286 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3287 echo "configure:3288: checking for gettext in libintl" >&5
3288 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3289 echo $ac_n "(cached) $ac_c" 1>&6
3291 cat > conftest.
$ac_ext <<EOF
3292 #line 3293 "configure"
3293 #include "confdefs.h"
3296 return (int) gettext ("")
3299 if { (eval echo configure
:3300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3301 gt_cv_func_gettext_libintl
=yes
3303 echo "configure: failed program was:" >&5
3304 cat conftest.
$ac_ext >&5
3306 gt_cv_func_gettext_libintl
=no
3311 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3313 echo "$ac_t""no" 1>&6
3318 if test "$gt_cv_func_gettext_libc" = "yes" \
3319 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
3320 cat >> confdefs.h
<<\EOF
3321 #define HAVE_GETTEXT 1
3324 # Extract the first word of "msgfmt", so it can be a program name with args.
3325 set dummy msgfmt
; ac_word
=$2
3326 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3327 echo "configure:3328: checking for $ac_word" >&5
3328 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3329 echo $ac_n "(cached) $ac_c" 1>&6
3333 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3336 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3337 for ac_dir
in $PATH; do
3338 test -z "$ac_dir" && ac_dir
=.
3339 if test -f $ac_dir/$ac_word; then
3340 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3341 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3347 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
3351 MSGFMT
="$ac_cv_path_MSGFMT"
3352 if test -n "$MSGFMT"; then
3353 echo "$ac_t""$MSGFMT" 1>&6
3355 echo "$ac_t""no" 1>&6
3357 if test "$MSGFMT" != "no"; then
3358 for ac_func
in dcgettext
3360 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3361 echo "configure:3362: checking for $ac_func" >&5
3362 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3363 echo $ac_n "(cached) $ac_c" 1>&6
3365 cat > conftest.
$ac_ext <<EOF
3366 #line 3367 "configure"
3367 #include "confdefs.h"
3368 /* System header to define __stub macros and hopefully few prototypes,
3369 which can conflict with char $ac_func(); below. */
3371 /* Override any gcc2 internal prototype to avoid an error. */
3372 /* We use char because int might match the return type of a gcc2
3373 builtin and then its argument prototype would still apply. */
3378 /* The GNU C library defines this for functions which it implements
3379 to always fail with ENOSYS. Some functions are actually named
3380 something starting with __ and the normal name is an alias. */
3381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3389 if { (eval echo configure
:3390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3391 eval "ac_cv_func_$ac_func=yes"
3393 echo "configure: failed program was:" >&5
3394 cat conftest.
$ac_ext >&5
3396 eval "ac_cv_func_$ac_func=no"
3401 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3402 echo "$ac_t""yes" 1>&6
3403 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3404 cat >> confdefs.h
<<EOF
3405 #define $ac_tr_func 1
3409 echo "$ac_t""no" 1>&6
3413 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3414 set dummy gmsgfmt
; ac_word
=$2
3415 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3416 echo "configure:3417: checking for $ac_word" >&5
3417 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3418 echo $ac_n "(cached) $ac_c" 1>&6
3422 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3425 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3428 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3430 for ac_dir
in $ac_dummy; do
3431 test -z "$ac_dir" && ac_dir
=.
3432 if test -f $ac_dir/$ac_word; then
3433 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3438 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3442 GMSGFMT
="$ac_cv_path_GMSGFMT"
3443 if test -n "$GMSGFMT"; then
3444 echo "$ac_t""$GMSGFMT" 1>&6
3446 echo "$ac_t""no" 1>&6
3449 # Extract the first word of "xgettext", so it can be a program name with args.
3450 set dummy xgettext
; ac_word
=$2
3451 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3452 echo "configure:3453: checking for $ac_word" >&5
3453 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3454 echo $ac_n "(cached) $ac_c" 1>&6
3458 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3461 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3462 for ac_dir
in $PATH; do
3463 test -z "$ac_dir" && ac_dir
=.
3464 if test -f $ac_dir/$ac_word; then
3465 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3466 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
3472 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
3476 XGETTEXT
="$ac_cv_path_XGETTEXT"
3477 if test -n "$XGETTEXT"; then
3478 echo "$ac_t""$XGETTEXT" 1>&6
3480 echo "$ac_t""no" 1>&6
3483 cat > conftest.
$ac_ext <<EOF
3484 #line 3485 "configure"
3485 #include "confdefs.h"
3488 extern int _nl_msg_cat_cntr;
3489 return _nl_msg_cat_cntr
3492 if { (eval echo configure
:3493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3497 echo "configure: failed program was:" >&5
3498 cat conftest.
$ac_ext >&5
3509 echo "$ac_t""no" 1>&6
3514 if test "$CATOBJEXT" = "NONE"; then
3515 nls_cv_use_gnu_gettext
=yes
3519 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3520 INTLOBJS
="\$(GETTOBJS)"
3521 # Extract the first word of "msgfmt", so it can be a program name with args.
3522 set dummy msgfmt
; ac_word
=$2
3523 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3524 echo "configure:3525: checking for $ac_word" >&5
3525 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3526 echo $ac_n "(cached) $ac_c" 1>&6
3530 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3533 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3534 for ac_dir
in $PATH; do
3535 test -z "$ac_dir" && ac_dir
=.
3536 if test -f $ac_dir/$ac_word; then
3537 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3538 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3544 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
3548 MSGFMT
="$ac_cv_path_MSGFMT"
3549 if test -n "$MSGFMT"; then
3550 echo "$ac_t""$MSGFMT" 1>&6
3552 echo "$ac_t""no" 1>&6
3555 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3556 set dummy gmsgfmt
; ac_word
=$2
3557 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3558 echo "configure:3559: checking for $ac_word" >&5
3559 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3560 echo $ac_n "(cached) $ac_c" 1>&6
3564 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3567 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3570 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3572 for ac_dir
in $ac_dummy; do
3573 test -z "$ac_dir" && ac_dir
=.
3574 if test -f $ac_dir/$ac_word; then
3575 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3580 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3584 GMSGFMT
="$ac_cv_path_GMSGFMT"
3585 if test -n "$GMSGFMT"; then
3586 echo "$ac_t""$GMSGFMT" 1>&6
3588 echo "$ac_t""no" 1>&6
3591 # Extract the first word of "xgettext", so it can be a program name with args.
3592 set dummy xgettext
; ac_word
=$2
3593 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3594 echo "configure:3595: checking for $ac_word" >&5
3595 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3596 echo $ac_n "(cached) $ac_c" 1>&6
3600 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3603 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3604 for ac_dir
in $PATH; do
3605 test -z "$ac_dir" && ac_dir
=.
3606 if test -f $ac_dir/$ac_word; then
3607 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3608 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
3614 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
3618 XGETTEXT
="$ac_cv_path_XGETTEXT"
3619 if test -n "$XGETTEXT"; then
3620 echo "$ac_t""$XGETTEXT" 1>&6
3622 echo "$ac_t""no" 1>&6
3626 USE_INCLUDED_LIBINTL
=yes
3630 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
3632 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
3633 nls_cv_header_intl
=libintl.h
3634 nls_cv_header_libgt
=libgettext.h
3637 if test "$XGETTEXT" != ":"; then
3638 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
3641 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
3646 # We need to process the po/ directory.
3650 nls_cv_header_intl
=libintl.h
3651 nls_cv_header_libgt
=libgettext.h
3654 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3655 # because some of the sources are only built for this goal.
3656 if test "$PACKAGE" = gettext; then
3658 USE_INCLUDED_LIBINTL
=yes
3661 for lang
in $ALL_LINGUAS; do
3662 GMOFILES
="$GMOFILES $lang.gmo"
3663 POFILES
="$POFILES $lang.po"
3679 if test "x$CATOBJEXT" != "x"; then
3680 if test "x$ALL_LINGUAS" = "x"; then
3683 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3684 echo "configure:3685: checking for catalogs to be installed" >&5
3686 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
3687 case "$ALL_LINGUAS" in
3688 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
3691 LINGUAS
=$NEW_LINGUAS
3692 echo "$ac_t""$LINGUAS" 1>&6
3695 if test -n "$LINGUAS"; then
3696 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
3700 if test $ac_cv_header_locale_h = yes; then
3701 INCLUDE_LOCALE_H
="#include <locale.h>"
3704 /* The system does not provide the header <locale.h>. Take care yourself. */"
3708 if test -f $srcdir/po2tbl.
sed.
in; then
3709 if test "$CATOBJEXT" = ".cat"; then
3710 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3711 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
3712 echo "configure:3713: checking for linux/version.h" >&5
3713 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3714 echo $ac_n "(cached) $ac_c" 1>&6
3716 cat > conftest.
$ac_ext <<EOF
3717 #line 3718 "configure"
3718 #include "confdefs.h"
3719 #include <linux/version.h>
3721 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3722 { (eval echo configure
:3723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3723 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3724 if test -z "$ac_err"; then
3726 eval "ac_cv_header_$ac_safe=yes"
3729 echo "configure: failed program was:" >&5
3730 cat conftest.
$ac_ext >&5
3732 eval "ac_cv_header_$ac_safe=no"
3736 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3737 echo "$ac_t""yes" 1>&6
3740 echo "$ac_t""no" 1>&6
3745 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
3747 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3748 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
3751 if test "$PACKAGE" = "gettext"; then
3761 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
3767 if test -d $srcdir/po
; then
3768 test -d po || mkdir po
3769 if test "x$srcdir" != "x."; then
3770 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3771 posrcprefix
="$srcdir/"
3773 posrcprefix
="../$srcdir/"
3779 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3780 < $srcdir/po
/POTFILES.
in > po
/POTFILES
3784 # Permit host specific settings.
3785 .
${srcdir}/configure.
host
3788 # Find a good install program. We prefer a C program (faster),
3789 # so one script is as good as another. But avoid the broken or
3790 # incompatible versions:
3791 # SysV /etc/install, /usr/sbin/install
3792 # SunOS /usr/etc/install
3793 # IRIX /sbin/install
3795 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3796 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3797 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3798 # ./install, which can be erroneously created by make from ./install.sh.
3799 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3800 echo "configure:3801: checking for a BSD compatible install" >&5
3801 if test -z "$INSTALL"; then
3802 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3803 echo $ac_n "(cached) $ac_c" 1>&6
3805 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
3806 for ac_dir
in $PATH; do
3807 # Account for people who put trailing slashes in PATH elements.
3809 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
3811 # OSF1 and SCO ODT 3.0 have their own names for install.
3812 # Don't use installbsd from OSF since it installs stuff as root
3814 for ac_prog
in ginstall scoinst
install; do
3815 if test -f $ac_dir/$ac_prog; then
3816 if test $ac_prog = install &&
3817 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
3818 # AIX install. It has an incompatible calling convention.
3821 ac_cv_path_install
="$ac_dir/$ac_prog -c"
3832 if test "${ac_cv_path_install+set}" = set; then
3833 INSTALL
="$ac_cv_path_install"
3835 # As a last resort, use the slow shell script. We don't cache a
3836 # path for INSTALL within a source directory, because that will
3837 # break other packages using the cache if that directory is
3838 # removed, or if the path is relative.
3839 INSTALL
="$ac_install_sh"
3842 echo "$ac_t""$INSTALL" 1>&6
3844 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3845 # It thinks the first close brace ends the variable substitution.
3846 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3848 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
3850 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3853 BFD_HOST_64BIT_LONG
=0
3854 BFD_HOST_64_BIT_DEFINED
=0
3857 if test "x${HOST_64BIT_TYPE}" = "xlong"; then
3858 BFD_HOST_64BIT_LONG
=1
3859 elif test "x${HOST_64BIT_TYPE}" != "x"; then
3860 BFD_HOST_64_BIT_DEFINED
=1
3861 BFD_HOST_64_BIT
=${HOST_64BIT_TYPE}
3862 BFD_HOST_U_64_BIT
=${HOST_U_64BIT_TYPE}
3869 # Put a plausible default for CC_FOR_BUILD in Makefile.
3870 if test -z "$CC_FOR_BUILD"; then
3871 if test "x$cross_compiling" = "xno"; then
3872 CC_FOR_BUILD
='$(CC)'
3878 # Also set EXEEXT_FOR_BUILD.
3879 if test "x$cross_compiling" = "xno"; then
3880 EXEEXT_FOR_BUILD
='$(EXEEXT)'
3882 echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
3883 echo "configure:3884: checking for build system executable suffix" >&5
3884 if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
3885 echo $ac_n "(cached) $ac_c" 1>&6
3888 echo 'int main () { return 0; }' > conftest.c
3889 bfd_cv_build_exeext
=
3890 ${CC_FOR_BUILD} -o conftest conftest.c
1>&5 2>&5
3891 for file in conftest.
*; do
3893 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
3894 *) bfd_cv_build_exeext
=`echo $file | sed -e s/conftest//` ;;
3898 test x
"${bfd_cv_build_exeext}" = x
&& bfd_cv_build_exeext
=no
3901 echo "$ac_t""$bfd_cv_build_exeext" 1>&6
3903 test x
"${bfd_cv_build_exeext}" != xno
&& EXEEXT_FOR_BUILD
=${bfd_cv_build_exeext}
3907 for ac_hdr
in stddef.h string.h
strings.h stdlib.h
time.h unistd.h
3909 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3910 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3911 echo "configure:3912: checking for $ac_hdr" >&5
3912 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3913 echo $ac_n "(cached) $ac_c" 1>&6
3915 cat > conftest.
$ac_ext <<EOF
3916 #line 3917 "configure"
3917 #include "confdefs.h"
3920 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3921 { (eval echo configure
:3922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3922 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3923 if test -z "$ac_err"; then
3925 eval "ac_cv_header_$ac_safe=yes"
3928 echo "configure: failed program was:" >&5
3929 cat conftest.
$ac_ext >&5
3931 eval "ac_cv_header_$ac_safe=no"
3935 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3936 echo "$ac_t""yes" 1>&6
3937 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3938 cat >> confdefs.h
<<EOF
3939 #define $ac_tr_hdr 1
3943 echo "$ac_t""no" 1>&6
3947 for ac_hdr
in fcntl.h sys
/file.h sys
/time.h
3949 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3950 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3951 echo "configure:3952: checking for $ac_hdr" >&5
3952 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3953 echo $ac_n "(cached) $ac_c" 1>&6
3955 cat > conftest.
$ac_ext <<EOF
3956 #line 3957 "configure"
3957 #include "confdefs.h"
3960 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3961 { (eval echo configure
:3962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3962 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3963 if test -z "$ac_err"; then
3965 eval "ac_cv_header_$ac_safe=yes"
3968 echo "configure: failed program was:" >&5
3969 cat conftest.
$ac_ext >&5
3971 eval "ac_cv_header_$ac_safe=no"
3975 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3976 echo "$ac_t""yes" 1>&6
3977 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3978 cat >> confdefs.h
<<EOF
3979 #define $ac_tr_hdr 1
3983 echo "$ac_t""no" 1>&6
3987 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3988 echo "configure:3989: checking whether time.h and sys/time.h may both be included" >&5
3989 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3990 echo $ac_n "(cached) $ac_c" 1>&6
3992 cat > conftest.
$ac_ext <<EOF
3993 #line 3994 "configure"
3994 #include "confdefs.h"
3995 #include <sys/types.h>
3996 #include <sys/time.h>
4002 if { (eval echo configure
:4003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4004 ac_cv_header_time
=yes
4006 echo "configure: failed program was:" >&5
4007 cat conftest.
$ac_ext >&5
4009 ac_cv_header_time
=no
4014 echo "$ac_t""$ac_cv_header_time" 1>&6
4015 if test $ac_cv_header_time = yes; then
4016 cat >> confdefs.h
<<\EOF
4017 #define TIME_WITH_SYS_TIME 1
4023 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
4025 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4026 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4027 echo "configure:4028: checking for $ac_hdr that defines DIR" >&5
4028 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
4029 echo $ac_n "(cached) $ac_c" 1>&6
4031 cat > conftest.
$ac_ext <<EOF
4032 #line 4033 "configure"
4033 #include "confdefs.h"
4034 #include <sys/types.h>
4040 if { (eval echo configure
:4041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4042 eval "ac_cv_header_dirent_$ac_safe=yes"
4044 echo "configure: failed program was:" >&5
4045 cat conftest.
$ac_ext >&5
4047 eval "ac_cv_header_dirent_$ac_safe=no"
4051 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4052 echo "$ac_t""yes" 1>&6
4053 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4054 cat >> confdefs.h
<<EOF
4055 #define $ac_tr_hdr 1
4057 ac_header_dirent
=$ac_hdr; break
4059 echo "$ac_t""no" 1>&6
4062 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4063 if test $ac_header_dirent = dirent.h
; then
4064 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4065 echo "configure:4066: checking for opendir in -ldir" >&5
4066 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
4067 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4068 echo $ac_n "(cached) $ac_c" 1>&6
4070 ac_save_LIBS
="$LIBS"
4072 cat > conftest.
$ac_ext <<EOF
4073 #line 4074 "configure"
4074 #include "confdefs.h"
4075 /* Override any gcc2 internal prototype to avoid an error. */
4076 /* We use char because int might match the return type of a gcc2
4077 builtin and then its argument prototype would still apply. */
4084 if { (eval echo configure
:4085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4086 eval "ac_cv_lib_$ac_lib_var=yes"
4088 echo "configure: failed program was:" >&5
4089 cat conftest.
$ac_ext >&5
4091 eval "ac_cv_lib_$ac_lib_var=no"
4094 LIBS
="$ac_save_LIBS"
4097 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4098 echo "$ac_t""yes" 1>&6
4101 echo "$ac_t""no" 1>&6
4105 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4106 echo "configure:4107: checking for opendir in -lx" >&5
4107 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
4108 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4109 echo $ac_n "(cached) $ac_c" 1>&6
4111 ac_save_LIBS
="$LIBS"
4113 cat > conftest.
$ac_ext <<EOF
4114 #line 4115 "configure"
4115 #include "confdefs.h"
4116 /* Override any gcc2 internal prototype to avoid an error. */
4117 /* We use char because int might match the return type of a gcc2
4118 builtin and then its argument prototype would still apply. */
4125 if { (eval echo configure
:4126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4127 eval "ac_cv_lib_$ac_lib_var=yes"
4129 echo "configure: failed program was:" >&5
4130 cat conftest.
$ac_ext >&5
4132 eval "ac_cv_lib_$ac_lib_var=no"
4135 LIBS
="$ac_save_LIBS"
4138 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4139 echo "$ac_t""yes" 1>&6
4142 echo "$ac_t""no" 1>&6
4147 for ac_func
in fcntl getpagesize setitimer sysconf fdopen getuid getgid
4149 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4150 echo "configure:4151: checking for $ac_func" >&5
4151 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4152 echo $ac_n "(cached) $ac_c" 1>&6
4154 cat > conftest.
$ac_ext <<EOF
4155 #line 4156 "configure"
4156 #include "confdefs.h"
4157 /* System header to define __stub macros and hopefully few prototypes,
4158 which can conflict with char $ac_func(); below. */
4160 /* Override any gcc2 internal prototype to avoid an error. */
4161 /* We use char because int might match the return type of a gcc2
4162 builtin and then its argument prototype would still apply. */
4167 /* The GNU C library defines this for functions which it implements
4168 to always fail with ENOSYS. Some functions are actually named
4169 something starting with __ and the normal name is an alias. */
4170 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4178 if { (eval echo configure
:4179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4180 eval "ac_cv_func_$ac_func=yes"
4182 echo "configure: failed program was:" >&5
4183 cat conftest.
$ac_ext >&5
4185 eval "ac_cv_func_$ac_func=no"
4190 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4191 echo "$ac_t""yes" 1>&6
4192 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4193 cat >> confdefs.h
<<EOF
4194 #define $ac_tr_func 1
4198 echo "$ac_t""no" 1>&6
4205 *-*-msdos* |
*-*-go32* |
*-*-mingw32* |
*-*-cygwin* |
*-*-windows*)
4206 cat >> confdefs.h
<<\EOF
4207 #define USE_BINARY_FOPEN 1
4212 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4213 echo "configure:4214: checking whether strstr must be declared" >&5
4214 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
4215 echo $ac_n "(cached) $ac_c" 1>&6
4217 cat > conftest.
$ac_ext <<EOF
4218 #line 4219 "configure"
4219 #include "confdefs.h"
4222 #ifdef HAVE_STRING_H
4225 #ifdef HAVE_STRINGS_H
4226 #include <strings.h>
4229 #ifdef HAVE_STDLIB_H
4232 #ifdef HAVE_UNISTD_H
4236 char *(*pfn) = (char *(*)) strstr
4239 if { (eval echo configure
:4240: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4241 bfd_cv_decl_needed_strstr
=no
4243 echo "configure: failed program was:" >&5
4244 cat conftest.
$ac_ext >&5
4246 bfd_cv_decl_needed_strstr
=yes
4251 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4252 if test $bfd_cv_decl_needed_strstr = yes; then
4253 cat >> confdefs.h
<<\EOF
4254 #define NEED_DECLARATION_STRSTR 1
4259 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
4260 echo "configure:4261: checking whether malloc must be declared" >&5
4261 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
4262 echo $ac_n "(cached) $ac_c" 1>&6
4264 cat > conftest.
$ac_ext <<EOF
4265 #line 4266 "configure"
4266 #include "confdefs.h"
4269 #ifdef HAVE_STRING_H
4272 #ifdef HAVE_STRINGS_H
4273 #include <strings.h>
4276 #ifdef HAVE_STDLIB_H
4279 #ifdef HAVE_UNISTD_H
4283 char *(*pfn) = (char *(*)) malloc
4286 if { (eval echo configure
:4287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4288 bfd_cv_decl_needed_malloc
=no
4290 echo "configure: failed program was:" >&5
4291 cat conftest.
$ac_ext >&5
4293 bfd_cv_decl_needed_malloc
=yes
4298 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
4299 if test $bfd_cv_decl_needed_malloc = yes; then
4300 cat >> confdefs.h
<<\EOF
4301 #define NEED_DECLARATION_MALLOC 1
4306 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
4307 echo "configure:4308: checking whether realloc must be declared" >&5
4308 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
4309 echo $ac_n "(cached) $ac_c" 1>&6
4311 cat > conftest.
$ac_ext <<EOF
4312 #line 4313 "configure"
4313 #include "confdefs.h"
4316 #ifdef HAVE_STRING_H
4319 #ifdef HAVE_STRINGS_H
4320 #include <strings.h>
4323 #ifdef HAVE_STDLIB_H
4326 #ifdef HAVE_UNISTD_H
4330 char *(*pfn) = (char *(*)) realloc
4333 if { (eval echo configure
:4334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4335 bfd_cv_decl_needed_realloc
=no
4337 echo "configure: failed program was:" >&5
4338 cat conftest.
$ac_ext >&5
4340 bfd_cv_decl_needed_realloc
=yes
4345 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
4346 if test $bfd_cv_decl_needed_realloc = yes; then
4347 cat >> confdefs.h
<<\EOF
4348 #define NEED_DECLARATION_REALLOC 1
4353 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
4354 echo "configure:4355: checking whether free must be declared" >&5
4355 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
4356 echo $ac_n "(cached) $ac_c" 1>&6
4358 cat > conftest.
$ac_ext <<EOF
4359 #line 4360 "configure"
4360 #include "confdefs.h"
4363 #ifdef HAVE_STRING_H
4366 #ifdef HAVE_STRINGS_H
4367 #include <strings.h>
4370 #ifdef HAVE_STDLIB_H
4373 #ifdef HAVE_UNISTD_H
4377 char *(*pfn) = (char *(*)) free
4380 if { (eval echo configure
:4381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4382 bfd_cv_decl_needed_free
=no
4384 echo "configure: failed program was:" >&5
4385 cat conftest.
$ac_ext >&5
4387 bfd_cv_decl_needed_free
=yes
4392 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
4393 if test $bfd_cv_decl_needed_free = yes; then
4394 cat >> confdefs.h
<<\EOF
4395 #define NEED_DECLARATION_FREE 1
4400 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
4401 echo "configure:4402: checking whether getenv must be declared" >&5
4402 if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
4403 echo $ac_n "(cached) $ac_c" 1>&6
4405 cat > conftest.
$ac_ext <<EOF
4406 #line 4407 "configure"
4407 #include "confdefs.h"
4410 #ifdef HAVE_STRING_H
4413 #ifdef HAVE_STRINGS_H
4414 #include <strings.h>
4417 #ifdef HAVE_STDLIB_H
4420 #ifdef HAVE_UNISTD_H
4424 char *(*pfn) = (char *(*)) getenv
4427 if { (eval echo configure
:4428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4429 bfd_cv_decl_needed_getenv
=no
4431 echo "configure: failed program was:" >&5
4432 cat conftest.
$ac_ext >&5
4434 bfd_cv_decl_needed_getenv
=yes
4439 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
4440 if test $bfd_cv_decl_needed_getenv = yes; then
4441 cat >> confdefs.h
<<\EOF
4442 #define NEED_DECLARATION_GETENV 1
4448 # If we are configured native, pick a core file support file.
4452 if test "${target}" = "${host}"; then
4454 alpha
*-*-linux-gnu*)
4455 COREFILE
=trad-core.lo
4456 TRAD_HEADER
='"hosts/alphalinux.h"'
4458 alpha
*-*-netbsd*) COREFILE
=netbsd-core.lo
;;
4459 alpha
*-*-*) COREFILE
=osf-core.lo
;;
4460 arm-
*-riscix) COREFILE
=trad-core.lo
;;
4461 hppa
*-*-hpux*) COREFILE
=hpux-core.lo
;;
4462 hppa
*-*-hiux*) COREFILE
=hpux-core.lo
;;
4463 hppa
*-*-mpeix*) COREFILE
=hpux-core.lo
;;
4464 hppa
*-*-bsd*) COREFILE
="hpux-core.lo hppabsd-core.lo"
4465 COREFLAG
="-DHPUX_CORE -DHPPABSD_CORE" ;;
4467 COREFILE
=trad-core.lo
4468 TRAD_HEADER
='"hosts/i370linux.h"'
4471 i
[3456]86-sequent-bsd*)
4472 COREFILE
=trad-core.lo
4473 TRAD_HEADER
='"hosts/symmetry.h"'
4475 i
[3456]86-sequent-sysv4*) ;;
4476 i
[3456]86-sequent-sysv*)
4477 COREFILE
=trad-core.lo
4478 TRAD_HEADER
='"hosts/symmetry.h"'
4480 i
[3456]86-*-bsd* | i
[3456]86-*-freebsd*)
4481 COREFILE
=trad-core.lo
4482 TRAD_HEADER
='"hosts/i386bsd.h"'
4484 i
[3456]86-*-netbsd* | i
[3456]86-*-openbsd*)
4485 COREFILE
=netbsd-core.lo
4487 i
[3456]86-esix-sysv3*)
4488 COREFILE
=trad-core.lo
4489 TRAD_HEADER
='"hosts/esix.h"'
4491 i
[3456]86-*-sco3.2v5
*)
4492 COREFILE
=sco5-core.lo
4494 i
[3456]86-*-sco* | i
[3456]86-*-isc*)
4495 COREFILE
=trad-core.lo
4496 TRAD_HEADER
='"hosts/i386sco.h"'
4499 COREFILE
=trad-core.lo
4500 TRAD_HEADER
='"hosts/i386mach3.h"'
4502 i
[3456]86-*-linux-gnu*)
4503 COREFILE
=trad-core.lo
4504 TRAD_HEADER
='"hosts/i386linux.h"'
4506 i
[3456]86-*-isc*) COREFILE
=trad-core.lo
;;
4507 i
[3456]86-*-aix*) COREFILE
=aix386-core.lo
;;
4508 i860-
*-mach3* | i860-
*-osf1*)
4509 COREFILE
=trad-core.lo
4510 TRAD_HEADER
='"hosts/i860mach3.h"'
4513 COREFILE
=trad-core.lo
4514 TRAD_HEADER
='"hosts/mipsbsd.h"'
4517 COREFILE
=trad-core.lo
4518 TRAD_HEADER
='"hosts/mipsmach3.h"'
4520 mips-
*-netbsd* | mips
*-*-openbsd*)
4521 COREFILE
=netbsd-core.lo
4524 COREFILE
=trad-core.lo
4525 TRAD_HEADER
='"hosts/decstation.h"'
4527 mips-sgi-irix4
*) COREFILE
=irix-core.lo
;;
4528 mips-sgi-irix5
*) COREFILE
=irix-core.lo
;;
4529 mips-sgi-irix6
*) COREFILE
=irix-core.lo
;;
4531 COREFILE
=trad-core.lo
4532 TRAD_HEADER
='"hosts/mipsmach3.h"'
4535 mips-
*-sysv* | mips-
*-riscos*)
4536 COREFILE
=trad-core.lo
4537 TRAD_HEADER
='"hosts/riscos.h"'
4540 COREFILE
=trad-core.lo
4541 TRAD_HEADER
='"hosts/news-mips.h"'
4544 COREFILE
=trad-core.lo
4545 TRAD_HEADER
='"hosts/dpx2.h"'
4547 m68
*-hp-hpux*) COREFILE
=hpux-core.lo
;;
4549 COREFILE
=trad-core.lo
4550 TRAD_HEADER
='"hosts/hp300bsd.h"'
4553 COREFILE
=trad-core.lo
4554 TRAD_HEADER
='"hosts/m68klinux.h"'
4556 m68
*-motorola-sysv*)
4557 COREFILE
=trad-core.lo
4558 TRAD_HEADER
='"hosts/delta68.h"'
4561 COREFILE
=trad-core.lo
4562 TRAD_HEADER
='"hosts/news.h"'
4564 m68
*-*-netbsd* | m68
*-*-openbsd*)
4565 COREFILE
=netbsd-core.lo
4568 COREFILE
=trad-core.lo
4569 TRAD_HEADER
='"hosts/m68kaux.h"'
4572 m88
*-motorola-sysv*) COREFILE
=ptrace-core.lo
;;
4574 COREFILE
=trad-core.lo
4575 TRAD_HEADER
='"hosts/m88kmach3.h"'
4578 COREFILE
=trad-core.lo
4579 TRAD_HEADER
='"hosts/pc532mach.h"'
4581 ns32k-
*-netbsd* | ns32k-
*-openbsd*)
4582 COREFILE
=netbsd-core.lo
4584 rs6000-
*-lynx*) COREFILE
=lynx-core.lo
;;
4585 rs6000-
*-aix4.
[3-9]* | powerpc-
*-aix4.
[3-9]*)
4586 COREFILE
=rs6000-core.lo
4587 COREFLAG
="$COREFLAG -DAIX_CORE_DUMPX_CORE"
4589 rs6000-
*-aix4*) COREFILE
=rs6000-core.lo
;;
4590 rs6000-
*-*) COREFILE
=rs6000-core.lo
;;
4591 powerpc-
*-*bsd
*) COREFILE
=netbsd-core.lo
;;
4592 powerpc-
*-aix4*) COREFILE
=rs6000-core.lo
;;
4593 powerpc-
*-aix*) COREFILE
=rs6000-core.lo
;;
4595 powerpc-
*-netbsd*) COREFILE
=netbsd-core.lo
;;
4596 sparc-
*-netbsd* | sparc-
*-openbsd*)
4597 COREFILE
=netbsd-core.lo
4600 COREFILE
=trad-core.lo
4601 TRAD_HEADER
='"hosts/tahoe.h"'
4604 COREFILE
=trad-core.lo
4605 TRAD_HEADER
='"hosts/vaxult2.h"'
4608 COREFILE
=trad-core.lo
4609 TRAD_HEADER
='"hosts/vaxult2.h"'
4612 COREFILE
=trad-core.lo
4613 TRAD_HEADER
='"hosts/vaxbsd.h"'
4618 aix386-core.lo
) COREFLAG
=-DAIX386_CORE ;;
4619 hppabsd-core.lo
) COREFLAG
=-DHPPABSD_CORE ;;
4620 hpux-core.lo
) COREFLAG
=-DHPUX_CORE ;;
4621 irix-core.lo
) COREFLAG
=-DIRIX_CORE ;;
4622 lynx-core.lo
) COREFLAG
=-DLYNX_CORE ;;
4623 netbsd-core.lo
) COREFLAG
=-DNETBSD_CORE ;;
4624 osf-core.lo
) COREFLAG
=-DOSF_CORE ;;
4625 ptrace-core.lo
) COREFLAG
=-DPTRACE_CORE ;;
4626 rs6000-core.lo
) COREFLAG
="$COREFLAG -DAIX_CORE" ;;
4627 sco5-core.lo
) COREFLAG
="$COREFLAG -DSCO5_CORE" ;;
4628 trad-core.lo
) COREFLAG
="$COREFLAG -DTRAD_CORE" ;;
4631 # ELF corefile support has several flavors, but all of
4632 # them use something called <sys/procfs.h>
4633 for ac_hdr
in sys
/procfs.h
4635 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4636 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4637 echo "configure:4638: checking for $ac_hdr" >&5
4638 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4639 echo $ac_n "(cached) $ac_c" 1>&6
4641 cat > conftest.
$ac_ext <<EOF
4642 #line 4643 "configure"
4643 #include "confdefs.h"
4646 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4647 { (eval echo configure
:4648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4648 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4649 if test -z "$ac_err"; then
4651 eval "ac_cv_header_$ac_safe=yes"
4654 echo "configure: failed program was:" >&5
4655 cat conftest.
$ac_ext >&5
4657 eval "ac_cv_header_$ac_safe=no"
4661 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4662 echo "$ac_t""yes" 1>&6
4663 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4664 cat >> confdefs.h
<<EOF
4665 #define $ac_tr_hdr 1
4669 echo "$ac_t""no" 1>&6
4673 if test "$ac_cv_header_sys_procfs_h" = yes; then
4674 echo $ac_n "checking for prstatus_t in sys/procfs.h""... $ac_c" 1>&6
4675 echo "configure:4676: checking for prstatus_t in sys/procfs.h" >&5
4676 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus_t'+set}'`\" = set"; then
4677 echo $ac_n "(cached) $ac_c" 1>&6
4679 cat > conftest.
$ac_ext <<EOF
4680 #line 4681 "configure"
4681 #include "confdefs.h"
4682 #include <sys/procfs.h>
4687 if { (eval echo configure
:4688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4689 bfd_cv_have_sys_procfs_type_prstatus_t
=yes
4691 echo "configure: failed program was:" >&5
4692 cat conftest.
$ac_ext >&5
4694 bfd_cv_have_sys_procfs_type_prstatus_t
=no
4700 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
4701 cat >> confdefs.h
<<\EOF
4702 #define HAVE_PRSTATUS_T 1
4706 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus_t" 1>&6
4708 echo $ac_n "checking for prstatus_t.pr_who in sys/procfs.h""... $ac_c" 1>&6
4709 echo "configure:4710: checking for prstatus_t.pr_who in sys/procfs.h" >&5
4710 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who'+set}'`\" = set"; then
4711 echo $ac_n "(cached) $ac_c" 1>&6
4713 cat > conftest.
$ac_ext <<EOF
4714 #line 4715 "configure"
4715 #include "confdefs.h"
4716 #include <sys/procfs.h>
4718 prstatus_t avar; void* aref = (void*) &avar.pr_who
4721 if { (eval echo configure
:4722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4723 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who
=yes
4725 echo "configure: failed program was:" >&5
4726 cat conftest.
$ac_ext >&5
4728 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who
=no
4734 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
4735 cat >> confdefs.h
<<\EOF
4736 #define HAVE_PRSTATUS_T_PR_WHO 1
4740 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" 1>&6
4742 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
4743 echo "configure:4744: checking for pstatus_t in sys/procfs.h" >&5
4744 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
4745 echo $ac_n "(cached) $ac_c" 1>&6
4747 cat > conftest.
$ac_ext <<EOF
4748 #line 4749 "configure"
4749 #include "confdefs.h"
4750 #include <sys/procfs.h>
4755 if { (eval echo configure
:4756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4757 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
4759 echo "configure: failed program was:" >&5
4760 cat conftest.
$ac_ext >&5
4762 bfd_cv_have_sys_procfs_type_pstatus_t
=no
4768 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
4769 cat >> confdefs.h
<<\EOF
4770 #define HAVE_PSTATUS_T 1
4774 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
4776 echo $ac_n "checking for prpsinfo_t in sys/procfs.h""... $ac_c" 1>&6
4777 echo "configure:4778: checking for prpsinfo_t in sys/procfs.h" >&5
4778 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo_t'+set}'`\" = set"; then
4779 echo $ac_n "(cached) $ac_c" 1>&6
4781 cat > conftest.
$ac_ext <<EOF
4782 #line 4783 "configure"
4783 #include "confdefs.h"
4784 #include <sys/procfs.h>
4789 if { (eval echo configure
:4790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4791 bfd_cv_have_sys_procfs_type_prpsinfo_t
=yes
4793 echo "configure: failed program was:" >&5
4794 cat conftest.
$ac_ext >&5
4796 bfd_cv_have_sys_procfs_type_prpsinfo_t
=no
4802 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
4803 cat >> confdefs.h
<<\EOF
4804 #define HAVE_PRPSINFO_T 1
4808 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo_t" 1>&6
4810 echo $ac_n "checking for psinfo_t in sys/procfs.h""... $ac_c" 1>&6
4811 echo "configure:4812: checking for psinfo_t in sys/procfs.h" >&5
4812 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo_t'+set}'`\" = set"; then
4813 echo $ac_n "(cached) $ac_c" 1>&6
4815 cat > conftest.
$ac_ext <<EOF
4816 #line 4817 "configure"
4817 #include "confdefs.h"
4818 #include <sys/procfs.h>
4823 if { (eval echo configure
:4824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4825 bfd_cv_have_sys_procfs_type_psinfo_t
=yes
4827 echo "configure: failed program was:" >&5
4828 cat conftest.
$ac_ext >&5
4830 bfd_cv_have_sys_procfs_type_psinfo_t
=no
4836 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
4837 cat >> confdefs.h
<<\EOF
4838 #define HAVE_PSINFO_T 1
4842 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo_t" 1>&6
4844 echo $ac_n "checking for lwpstatus_t in sys/procfs.h""... $ac_c" 1>&6
4845 echo "configure:4846: checking for lwpstatus_t in sys/procfs.h" >&5
4846 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpstatus_t'+set}'`\" = set"; then
4847 echo $ac_n "(cached) $ac_c" 1>&6
4849 cat > conftest.
$ac_ext <<EOF
4850 #line 4851 "configure"
4851 #include "confdefs.h"
4852 #include <sys/procfs.h>
4857 if { (eval echo configure
:4858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4859 bfd_cv_have_sys_procfs_type_lwpstatus_t
=yes
4861 echo "configure: failed program was:" >&5
4862 cat conftest.
$ac_ext >&5
4864 bfd_cv_have_sys_procfs_type_lwpstatus_t
=no
4870 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
4871 cat >> confdefs.h
<<\EOF
4872 #define HAVE_LWPSTATUS_T 1
4876 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpstatus_t" 1>&6
4878 echo $ac_n "checking for lwpstatus_t.pr_context in sys/procfs.h""... $ac_c" 1>&6
4879 echo "configure:4880: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
4880 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context'+set}'`\" = set"; then
4881 echo $ac_n "(cached) $ac_c" 1>&6
4883 cat > conftest.
$ac_ext <<EOF
4884 #line 4885 "configure"
4885 #include "confdefs.h"
4886 #include <sys/procfs.h>
4888 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
4891 if { (eval echo configure
:4892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4893 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context
=yes
4895 echo "configure: failed program was:" >&5
4896 cat conftest.
$ac_ext >&5
4898 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context
=no
4904 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
4905 cat >> confdefs.h
<<\EOF
4906 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
4910 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" 1>&6
4912 echo $ac_n "checking for lwpstatus_t.pr_reg in sys/procfs.h""... $ac_c" 1>&6
4913 echo "configure:4914: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
4914 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg'+set}'`\" = set"; then
4915 echo $ac_n "(cached) $ac_c" 1>&6
4917 cat > conftest.
$ac_ext <<EOF
4918 #line 4919 "configure"
4919 #include "confdefs.h"
4920 #include <sys/procfs.h>
4922 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
4925 if { (eval echo configure
:4926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4927 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg
=yes
4929 echo "configure: failed program was:" >&5
4930 cat conftest.
$ac_ext >&5
4932 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg
=no
4938 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
4939 cat >> confdefs.h
<<\EOF
4940 #define HAVE_LWPSTATUS_T_PR_REG 1
4944 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" 1>&6
4946 echo $ac_n "checking for win32_pstatus_t in sys/procfs.h""... $ac_c" 1>&6
4947 echo "configure:4948: checking for win32_pstatus_t in sys/procfs.h" >&5
4948 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_win32_pstatus_t'+set}'`\" = set"; then
4949 echo $ac_n "(cached) $ac_c" 1>&6
4951 cat > conftest.
$ac_ext <<EOF
4952 #line 4953 "configure"
4953 #include "confdefs.h"
4954 #include <sys/procfs.h>
4956 win32_pstatus_t avar
4959 if { (eval echo configure
:4960: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4961 bfd_cv_have_sys_procfs_type_win32_pstatus_t
=yes
4963 echo "configure: failed program was:" >&5
4964 cat conftest.
$ac_ext >&5
4966 bfd_cv_have_sys_procfs_type_win32_pstatus_t
=no
4972 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
4973 cat >> confdefs.h
<<\EOF
4974 #define HAVE_WIN32_PSTATUS_T 1
4978 echo "$ac_t""$bfd_cv_have_sys_procfs_type_win32_pstatus_t" 1>&6
4984 cat >> confdefs.h
<<EOF
4985 #define TRAD_HEADER $TRAD_HEADER
4989 # Horrible hacks to build DLLs on Windows.
4994 if test "$enable_shared" = "yes"; then
4995 WIN32LDFLAGS
="-no-undefined"
4996 WIN32LIBADD
="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
5005 # Canonicalize the secondary target names.
5006 if test -n "$enable_targets" ; then
5007 for targ
in `echo $enable_targets | sed 's/,/ /g'`
5009 result
=`$ac_config_sub $targ 2>/dev/null`
5010 if test -n "$result" ; then
5011 canon_targets
="$canon_targets $result"
5013 # Allow targets that config.sub doesn't recognize, like "all".
5014 canon_targets
="$canon_targets $targ"
5024 for targ
in $target $canon_targets
5026 if test "x$targ" = "xall"; then
5029 .
$srcdir/config.bfd
5030 if test "x$targ" = "x$target"; then
5033 selvecs
="$selvecs $targ_defvec $targ_selvecs"
5034 selarchs
="$selarchs $targ_archs"
5035 TDEFINES
="$TDEFINES $targ_cflags"
5040 # This processing still needs to be done if we're to decide properly whether
5041 # 64-bit support needs to be compiled in. Currently, it will be included if
5042 # the default or any other explicitly requested target requires it; it
5043 # will not be included on a 32-bit host if no 64-bit target is requested, and
5044 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
5047 # uniq the default and selected vectors in all the configured targets.
5049 for i
in $selvecs ; do
5058 # uniq the architectures in all the configured targets.
5060 for i
in $selarchs ; do
5068 # Target backend .o files.
5071 elf
="elf.lo elflink.lo dwarf2.lo dwarf1.lo"
5076 # This list is alphabetized to make it easy to compare
5077 # with the two vector lists in targets.c.
5078 a29kcoff_big_vec
) tb
="$tb coff-a29k.lo cofflink.lo" ;;
5079 a_out_adobe_vec
) tb
="$tb aout-adobe.lo aout32.lo" ;;
5080 armcoff_little_vec
) tb
="$tb coff-arm.lo cofflink.lo " ;;
5081 armcoff_big_vec
) tb
="$tb coff-arm.lo cofflink.lo " ;;
5082 armnetbsd_vec
) tb
="$tb armnetbsd.lo aout32.lo" ;;
5083 armpe_little_vec
) tb
="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
5084 armpe_big_vec
) tb
="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
5085 armpei_little_vec
) tb
="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
5086 armpei_big_vec
) tb
="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
5087 arm_epoc_pe_little_vec
) tb
="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
5088 arm_epoc_pe_big_vec
) tb
="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
5089 arm_epoc_pei_little_vec
) tb
="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
5090 arm_epoc_pei_big_vec
) tb
="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
5091 aout0_big_vec
) tb
="$tb aout0.lo aout32.lo" ;;
5092 aout_arm_big_vec
) tb
="$tb aout-arm.lo aout32.lo" ;;
5093 aout_arm_little_vec
) tb
="$tb aout-arm.lo aout32.lo" ;;
5094 aout_mips_big_vec
) tb
="$tb mipsbsd.lo aout32.lo" ;;
5095 aout_mips_little_vec
) tb
="$tb mipsbsd.lo aout32.lo" ;;
5096 apollocoff_vec
) tb
="$tb coff-apollo.lo" ;;
5097 b_out_vec_big_host
) tb
="$tb bout.lo aout32.lo" ;;
5098 b_out_vec_little_host
) tb
="$tb bout.lo aout32.lo" ;;
5099 bfd_efi_app_ia32_vec
) tb
="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
5100 bfd_efi_app_ia64_vec
) tb
="$tb efi-app-ia64.lo peigen.lo cofflink.lo"
5102 bfd_elf64_alpha_vec
) tb
="$tb elf64-alpha.lo elf64.lo $elf"
5104 bfd_elf64_hppa_vec
) tb
="$tb elf64-hppa.lo elf64.lo $elf"
5106 bfd_elf64_ia64_little_vec
) tb
="$tb elf64-ia64.lo elf64.lo $elf"
5108 bfd_elf64_ia64_big_vec
) tb
="$tb elf64-ia64.lo elf64.lo $elf"
5110 bfd_efi_app_ia32_vec
) tb
="$tb efi-app-ia32.lo cofflink.lo" ;;
5111 bfd_efi_app_ia64_vec
) tb
="$tb efi-app-ia64.lo cofflink.lo"
5113 bfd_elf32_avr_vec
) tb
="$tb elf32-avr.lo elf32.lo $elf" ;;
5114 bfd_elf32_littlearc_vec
) tb
="$tb elf32-arc.lo elf32.lo $elf" ;;
5115 bfd_elf32_littlearm_vec
) tb
="$tb elfarm-nabi.lo elf32.lo $elf" ;;
5116 bfd_elf32_littlearm_oabi_vec
) tb
="$tb elfarm-oabi.lo elf32.lo $elf" ;;
5117 bfd_elf32_bigarc_vec
) tb
="$tb elf32-arc.lo elf32.lo $elf" ;;
5118 bfd_elf32_bigarm_vec
) tb
="$tb elfarm-nabi.lo elf32.lo $elf" ;;
5119 bfd_elf32_bigarm_oabi_vec
) tb
="$tb elfarm-oabi.lo elf32.lo $elf" ;;
5120 bfd_elf32_big_generic_vec
) tb
="$tb elf32-gen.lo elf32.lo $elf" ;;
5121 bfd_elf32_bigmips_vec
) tb
="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
5122 bfd_elf64_bigmips_vec
) tb
="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"
5124 bfd_elf32_d10v_vec
) tb
="$tb elf32-d10v.lo elf32.lo $elf" ;;
5125 bfd_elf32_d30v_vec
) tb
="$tb elf32-d30v.lo elf32.lo $elf" ;;
5126 bfd_elf32_fr30_vec
) tb
="$tb elf32-fr30.lo elf32.lo $elf" ;;
5127 bfd_elf32_hppa_vec
) tb
="$tb elf32-hppa.lo elf32.lo $elf" ;;
5128 bfd_elf32_i370_vec
) tb
="$tb elf32-i370.lo elf32.lo $elf" ;;
5129 bfd_elf32_i386_vec
) tb
="$tb elf32-i386.lo elf32.lo $elf" ;;
5130 bfd_elf32_i860_vec
) tb
="$tb elf32-i860.lo elf32.lo $elf" ;;
5131 bfd_elf32_i960_vec
) tb
="$tb elf32-i960.lo elf32.lo $elf" ;;
5132 bfd_elf32_little_generic_vec
) tb
="$tb elf32-gen.lo elf32.lo $elf" ;;
5133 bfd_elf32_littlemips_vec
) tb
="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
5134 bfd_elf64_littlemips_vec
) tb
="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"
5136 bfd_elf32_m32r_vec
) tb
="$tb elf32-m32r.lo elf32.lo $elf" ;;
5137 bfd_elf32_m68k_vec
) tb
="$tb elf32-m68k.lo elf32.lo $elf" ;;
5138 bfd_elf32_m88k_vec
) tb
="$tb elf32-m88k.lo elf32.lo $elf" ;;
5139 bfd_elf32_mcore_big_vec
) tb
="$tb elf32-mcore.lo elf32.lo $elf" ;;
5140 bfd_elf32_mcore_little_vec
) tb
="$tb elf32-mcore.lo elf32.lo $elf" ;;
5141 bfd_elf32_mn10200_vec
) tb
="$tb elf-m10200.lo elf32.lo $elf" ;;
5142 bfd_elf32_mn10300_vec
) tb
="$tb elf-m10300.lo elf32.lo $elf" ;;
5143 bfd_elf32_pj_vec
) tb
="$tb elf32-pj.lo elf32.lo $elf";;
5144 bfd_elf32_pjl_vec
) tb
="$tb elf32-pj.lo elf32.lo $elf";;
5145 bfd_elf32_powerpc_vec
) tb
="$tb elf32-ppc.lo elf32.lo $elf" ;;
5146 bfd_elf32_powerpcle_vec
) tb
="$tb elf32-ppc.lo elf32.lo $elf" ;;
5147 bfd_elf32_sh_vec
) tb
="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
5148 bfd_elf32_shl_vec
) tb
="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
5149 bfd_elf32_sparc_vec
) tb
="$tb elf32-sparc.lo elf32.lo $elf" ;;
5150 bfd_elf32_v850_vec
) tb
="$tb elf32-v850.lo elf32.lo $elf" ;;
5151 bfd_elf64_big_generic_vec
) tb
="$tb elf64-gen.lo elf64.lo $elf"
5153 bfd_elf64_little_generic_vec
) tb
="$tb elf64-gen.lo elf64.lo $elf"
5155 bfd_elf64_sparc_vec
) tb
="$tb elf64-sparc.lo elf64.lo $elf"
5157 cisco_core_big_vec
) tb
="$tb cisco-core.lo" ;;
5158 cisco_core_little_vec
) tb
="$tb cisco-core.lo" ;;
5159 demo_64_vec
) tb
="$tb demo64.lo aout64.lo"
5161 ecoff_big_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
5162 ecoff_little_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
5163 ecoff_biglittle_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
5164 ecoffalpha_little_vec
) tb
="$tb coff-alpha.lo ecoff.lo ecofflink.lo"
5166 go32coff_vec
) tb
="$tb coff-go32.lo cofflink.lo" ;;
5167 go32stubbedcoff_vec
) tb
="$tb coff-stgo32.lo cofflink.lo" ;;
5168 h8300coff_vec
) tb
="$tb coff-h8300.lo reloc16.lo" ;;
5169 h8500coff_vec
) tb
="$tb coff-h8500.lo reloc16.lo" ;;
5170 host_aout_vec
) tb
="$tb host-aout.lo aout32.lo" ;;
5171 hp300bsd_vec
) tb
="$tb hp300bsd.lo aout32.lo" ;;
5172 hp300hpux_vec
) tb
="$tb hp300hpux.lo aout32.lo" ;;
5173 i386aout_vec
) tb
="$tb i386aout.lo aout32.lo" ;;
5174 i386bsd_vec
) tb
="$tb i386bsd.lo aout32.lo" ;;
5175 i386coff_vec
) tb
="$tb coff-i386.lo cofflink.lo" ;;
5176 i386dynix_vec
) tb
="$tb i386dynix.lo aout32.lo" ;;
5177 i386freebsd_vec
) tb
="$tb i386freebsd.lo aout32.lo" ;;
5178 i386msdos_vec
) tb
="$tb i386msdos.lo" ;;
5179 i386pe_vec
) tb
="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
5180 i386pei_vec
) tb
="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
5181 i386linux_vec
) tb
="$tb i386linux.lo aout32.lo" ;;
5182 i386lynx_aout_vec
) tb
="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
5183 i386lynx_coff_vec
) tb
="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
5184 i386mach3_vec
) tb
="$tb i386mach3.lo aout32.lo" ;;
5185 i386netbsd_vec
) tb
="$tb i386netbsd.lo aout32.lo" ;;
5186 i386os9k_vec
) tb
="$tb i386os9k.lo aout32.lo" ;;
5187 i860coff_vec
) tb
="$tb coff-i860.lo cofflink.lo" ;;
5188 icoff_big_vec
) tb
="$tb coff-i960.lo cofflink.lo" ;;
5189 icoff_little_vec
) tb
="$tb coff-i960.lo cofflink.lo" ;;
5190 ieee_vec
) tb
="$tb ieee.lo" ;;
5191 m68kcoff_vec
) tb
="$tb coff-m68k.lo cofflink.lo" ;;
5192 m68kcoffun_vec
) tb
="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
5193 m68klinux_vec
) tb
="$tb m68klinux.lo aout32.lo" ;;
5194 m68klynx_aout_vec
) tb
="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
5195 m68klynx_coff_vec
) tb
="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
5196 m68knetbsd_vec
) tb
="$tb m68knetbsd.lo aout32.lo" ;;
5197 m68k4knetbsd_vec
) tb
="$tb m68k4knetbsd.lo aout32.lo" ;;
5198 m68kaux_coff_vec
) tb
="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
5199 m68ksysvcoff_vec
) tb
="$tb coff-svm68k.lo cofflink.lo" ;;
5200 m88kbcs_vec
) tb
="$tb coff-m88k.lo" ;;
5201 mipslpe_vec
) tb
="$tb pe-mips.lo cofflink.lo" ;;
5202 mipslpei_vec
) tb
="$tb pei-mips.lo cofflink.lo" ;;
5203 mcore_pe_big_vec
) tb
="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
5204 mcore_pe_little_vec
) tb
="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
5205 mcore_pei_big_vec
) tb
="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
5206 mcore_pei_little_vec
) tb
="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
5207 newsos3_vec
) tb
="$tb newsos3.lo aout32.lo" ;;
5208 nlm32_i386_vec
) tb
="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
5209 rs6000coff64_vec
) tb
="$tb coff64-rs6000.lo xcofflink.lo"
5211 nlm32_sparc_vec
) tb
="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
5212 nlm32_alpha_vec
) tb
="$tb nlm32-alpha.lo nlm32.lo nlm.lo"
5214 riscix_vec
) tb
="$tb aout32.lo riscix.lo" ;;
5215 nlm32_powerpc_vec
) tb
="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
5216 pc532netbsd_vec
) tb
="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
5217 pc532machaout_vec
) tb
="$tb pc532-mach.lo aout-ns32k.lo" ;;
5218 pmac_xcoff_vec
) tb
="$tb coff-pmac.lo xcofflink.lo" ;;
5219 rs6000coff_vec
) tb
="$tb coff-rs6000.lo xcofflink.lo" ;;
5220 bfd_powerpc_pe_vec
) tb
="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
5221 bfd_powerpcle_pe_vec
) tb
="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
5222 bfd_powerpc_pei_vec
) tb
="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
5223 bfd_powerpcle_pei_vec
) tb
="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
5224 ppcboot_vec
) tb
="$tb ppcboot.lo" ;;
5225 shcoff_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
5226 shlcoff_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
5227 shcoff_small_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
5228 shlcoff_small_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
5229 shlpe_vec
) tb
="$tb pe-sh.lo coff-sh.lo cofflink.lo" ;;
5230 shlpei_vec
) tb
="$tb pei-sh.lo coff-sh.lo cofflink.lo" ;;
5231 som_vec
) tb
="$tb som.lo" ;;
5232 sparcle_aout_vec
) tb
="$tb aout-sparcle.lo aout32.lo" ;;
5233 sparclinux_vec
) tb
="$tb sparclinux.lo aout32.lo" ;;
5234 sparclynx_aout_vec
) tb
="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
5235 sparclynx_coff_vec
) tb
="$tb cf-sparclynx.lo lynx-core.lo" ;;
5236 sparcnetbsd_vec
) tb
="$tb sparcnetbsd.lo aout32.lo" ;;
5237 sparccoff_vec
) tb
="$tb coff-sparc.lo" ;;
5238 srec_vec
) tb
="$tb srec.lo" ;;
5239 sunos_big_vec
) tb
="$tb sunos.lo aout32.lo" ;;
5240 symbolsrec_vec
) tb
="$tb srec.lo" ;;
5241 tekhex_vec
) tb
="$tb tekhex.lo" ;;
5242 tic30_aout_vec
) tb
="$tb aout-tic30.lo" ;;
5243 tic30_coff_vec
) tb
="$tb coff-tic30.lo" ;;
5244 tic54x_coff0_vec
) tb
="$tb coff-tic54x.lo" ;;
5245 tic54x_coff0_beh_vec
) tb
="$tb coff-tic54x.lo" ;;
5246 tic54x_coff1_vec
) tb
="$tb coff-tic54x.lo" ;;
5247 tic54x_coff1_beh_vec
) tb
="$tb coff-tic54x.lo" ;;
5248 tic54x_coff2_vec
) tb
="$tb coff-tic54x.lo" ;;
5249 tic54x_coff2_beh_vec
) tb
="$tb coff-tic54x.lo" ;;
5250 tic80coff_vec
) tb
="$tb coff-tic80.lo cofflink.lo" ;;
5251 versados_vec
) tb
="$tb versados.lo" ;;
5252 vms_alpha_vec
) tb
="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"
5254 vms_vax_vec
) tb
="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
5255 w65_vec
) tb
="$tb coff-w65.lo reloc16.lo" ;;
5256 we32kcoff_vec
) tb
="$tb coff-we32k.lo" ;;
5257 z8kcoff_vec
) tb
="$tb coff-z8k.lo reloc16.lo" ;;
5260 *) { echo "configure: error: *** unknown target vector $vec" 1>&2; exit 1; } ;;
5264 # Target architecture .o files.
5265 # A couple of CPUs use shorter file names to avoid problems on DOS
5267 ta
=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
5269 # Weed out duplicate .o files.
5291 if test x
${all_targets} = xtrue
; then
5292 bfd_backends
="${bfd_backends}"' $(ALL_BACKENDS)'
5293 bfd_machines
="${bfd_machines}"' $(ALL_MACHINES)'
5297 else # all_targets is true
5298 # Only set these if they will be nonempty, for the clever echo.
5300 test -n "$selvecs" &&
5301 havevecs
=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
5302 test -n "$selvecs" &&
5303 selvecs
=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
5304 test -n "$selarchs" &&
5305 selarchs
=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
5306 fi # all_targets is true
5308 case ${host64}-${target64}-${want64} in
5311 all_backends
='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
5312 if test -z "$GCC" && test "$BFD_HOST_64BIT_LONG" = "0" && test "$BFD_HOST_64_BIT_DEFINED" = "0"; then
5313 echo "configure: warning: You have requested a 64 bit BFD configuration, but" 1>&2
5314 echo "configure: warning: your compiler may not have a 64 bit integral type" 1>&2
5319 all_backends
='$(BFD32_BACKENDS)'
5329 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
5330 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
5331 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
5332 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
5335 for ac_hdr
in unistd.h
5337 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5338 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5339 echo "configure:5340: checking for $ac_hdr" >&5
5340 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5341 echo $ac_n "(cached) $ac_c" 1>&6
5343 cat > conftest.
$ac_ext <<EOF
5344 #line 5345 "configure"
5345 #include "confdefs.h"
5348 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5349 { (eval echo configure
:5350: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5350 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5351 if test -z "$ac_err"; then
5353 eval "ac_cv_header_$ac_safe=yes"
5356 echo "configure: failed program was:" >&5
5357 cat conftest.
$ac_ext >&5
5359 eval "ac_cv_header_$ac_safe=no"
5363 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5364 echo "$ac_t""yes" 1>&6
5365 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5366 cat >> confdefs.h
<<EOF
5367 #define $ac_tr_hdr 1
5371 echo "$ac_t""no" 1>&6
5375 for ac_func
in getpagesize
5377 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5378 echo "configure:5379: checking for $ac_func" >&5
5379 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5380 echo $ac_n "(cached) $ac_c" 1>&6
5382 cat > conftest.
$ac_ext <<EOF
5383 #line 5384 "configure"
5384 #include "confdefs.h"
5385 /* System header to define __stub macros and hopefully few prototypes,
5386 which can conflict with char $ac_func(); below. */
5388 /* Override any gcc2 internal prototype to avoid an error. */
5389 /* We use char because int might match the return type of a gcc2
5390 builtin and then its argument prototype would still apply. */
5395 /* The GNU C library defines this for functions which it implements
5396 to always fail with ENOSYS. Some functions are actually named
5397 something starting with __ and the normal name is an alias. */
5398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5406 if { (eval echo configure
:5407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5408 eval "ac_cv_func_$ac_func=yes"
5410 echo "configure: failed program was:" >&5
5411 cat conftest.
$ac_ext >&5
5413 eval "ac_cv_func_$ac_func=no"
5418 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5419 echo "$ac_t""yes" 1>&6
5420 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5421 cat >> confdefs.h
<<EOF
5422 #define $ac_tr_func 1
5426 echo "$ac_t""no" 1>&6
5430 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
5431 echo "configure:5432: checking for working mmap" >&5
5432 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
5433 echo $ac_n "(cached) $ac_c" 1>&6
5435 if test "$cross_compiling" = yes; then
5436 ac_cv_func_mmap_fixed_mapped
=no
5438 cat > conftest.
$ac_ext <<EOF
5439 #line 5440 "configure"
5440 #include "confdefs.h"
5442 /* Thanks to Mike Haertel and Jim Avera for this test.
5443 Here is a matrix of mmap possibilities:
5444 mmap private not fixed
5445 mmap private fixed at somewhere currently unmapped
5446 mmap private fixed at somewhere already mapped
5447 mmap shared not fixed
5448 mmap shared fixed at somewhere currently unmapped
5449 mmap shared fixed at somewhere already mapped
5450 For private mappings, we should verify that changes cannot be read()
5451 back from the file, nor mmap's back from the file at a different
5452 address. (There have been systems where private was not correctly
5453 implemented like the infamous i386 svr4.0, and systems where the
5454 VM page cache was not coherent with the filesystem buffer cache
5455 like early versions of FreeBSD and possibly contemporary NetBSD.)
5456 For shared mappings, we should conversely verify that changes get
5457 propogated back to all the places they're supposed to be.
5459 Grep wants private fixed already mapped.
5460 The main things grep needs to know about mmap are:
5461 * does it exist and is it safe to write into the mmap'd area
5462 * how to use it (BSD variants) */
5463 #include <sys/types.h>
5465 #include <sys/mman.h>
5467 /* This mess was copied from the GNU getpagesize.h. */
5468 #ifndef HAVE_GETPAGESIZE
5469 # ifdef HAVE_UNISTD_H
5470 # include <unistd.h>
5473 /* Assume that all systems that can run configure have sys/param.h. */
5474 # ifndef HAVE_SYS_PARAM_H
5475 # define HAVE_SYS_PARAM_H 1
5478 # ifdef _SC_PAGESIZE
5479 # define getpagesize() sysconf(_SC_PAGESIZE)
5480 # else /* no _SC_PAGESIZE */
5481 # ifdef HAVE_SYS_PARAM_H
5482 # include <sys/param.h>
5483 # ifdef EXEC_PAGESIZE
5484 # define getpagesize() EXEC_PAGESIZE
5485 # else /* no EXEC_PAGESIZE */
5487 # define getpagesize() NBPG * CLSIZE
5490 # endif /* no CLSIZE */
5491 # else /* no NBPG */
5493 # define getpagesize() NBPC
5494 # else /* no NBPC */
5496 # define getpagesize() PAGESIZE
5497 # endif /* PAGESIZE */
5498 # endif /* no NBPC */
5499 # endif /* no NBPG */
5500 # endif /* no EXEC_PAGESIZE */
5501 # else /* no HAVE_SYS_PARAM_H */
5502 # define getpagesize() 8192 /* punt totally */
5503 # endif /* no HAVE_SYS_PARAM_H */
5504 # endif /* no _SC_PAGESIZE */
5506 #endif /* no HAVE_GETPAGESIZE */
5509 extern "C" { void *malloc(unsigned); }
5517 char *data, *data2, *data3;
5521 pagesize = getpagesize();
5524 * First, make a file with some known garbage in it.
5526 data = malloc(pagesize);
5529 for (i = 0; i < pagesize; ++i)
5530 *(data + i) = rand();
5532 fd = creat("conftestmmap", 0600);
5535 if (write(fd, data, pagesize) != pagesize)
5540 * Next, try to mmap the file at a fixed address which
5541 * already has something else allocated at it. If we can,
5542 * also make sure that we see the same garbage.
5544 fd = open("conftestmmap", O_RDWR);
5547 data2 = malloc(2 * pagesize);
5550 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
5551 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
5552 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5554 for (i = 0; i < pagesize; ++i)
5555 if (*(data + i) != *(data2 + i))
5559 * Finally, make sure that changes to the mapped area
5560 * do not percolate back to the file as seen by read().
5561 * (This is a bug on some variants of i386 svr4.0.)
5563 for (i = 0; i < pagesize; ++i)
5564 *(data2 + i) = *(data2 + i) + 1;
5565 data3 = malloc(pagesize);
5568 if (read(fd, data3, pagesize) != pagesize)
5570 for (i = 0; i < pagesize; ++i)
5571 if (*(data + i) != *(data3 + i))
5574 unlink("conftestmmap");
5579 if { (eval echo configure
:5580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5581 ac_cv_func_mmap_fixed_mapped
=yes
5583 echo "configure: failed program was:" >&5
5584 cat conftest.
$ac_ext >&5
5586 ac_cv_func_mmap_fixed_mapped
=no
5593 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
5594 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5595 cat >> confdefs.h
<<\EOF
5601 for ac_func
in madvise mprotect
5603 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5604 echo "configure:5605: checking for $ac_func" >&5
5605 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5606 echo $ac_n "(cached) $ac_c" 1>&6
5608 cat > conftest.
$ac_ext <<EOF
5609 #line 5610 "configure"
5610 #include "confdefs.h"
5611 /* System header to define __stub macros and hopefully few prototypes,
5612 which can conflict with char $ac_func(); below. */
5614 /* Override any gcc2 internal prototype to avoid an error. */
5615 /* We use char because int might match the return type of a gcc2
5616 builtin and then its argument prototype would still apply. */
5621 /* The GNU C library defines this for functions which it implements
5622 to always fail with ENOSYS. Some functions are actually named
5623 something starting with __ and the normal name is an alias. */
5624 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5632 if { (eval echo configure
:5633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5634 eval "ac_cv_func_$ac_func=yes"
5636 echo "configure: failed program was:" >&5
5637 cat conftest.
$ac_ext >&5
5639 eval "ac_cv_func_$ac_func=no"
5644 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5645 echo "$ac_t""yes" 1>&6
5646 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5647 cat >> confdefs.h
<<EOF
5648 #define $ac_tr_func 1
5652 echo "$ac_t""no" 1>&6
5656 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
5657 true
+yes ) cat >> confdefs.h
<<\EOF
5663 rm -f doc
/config.status
5665 cat > confcache
<<\EOF
5666 # This file is a shell script that caches the results of configure
5667 # tests run on this system so they can be shared between configure
5668 # scripts and configure runs. It is not useful on other systems.
5669 # If it contains results you don't want to keep, you may remove or edit it.
5671 # By default, configure uses ./config.cache as the cache file,
5672 # creating it if it does not exist already. You can give configure
5673 # the --cache-file=FILE option to use a different cache file; that is
5674 # what configure does when it calls configure scripts in
5675 # subdirectories, so they share the cache.
5676 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5677 # config.status only pays attention to the cache file if you give it the
5678 # --recheck option to rerun configure.
5681 # The following way of writing the cache mishandles newlines in values,
5682 # but we know of no workaround that is simple, portable, and efficient.
5683 # So, don't put newlines in cache variables' values.
5684 # Ultrix sh set writes to stderr and can't be redirected directly,
5685 # and sets the high bit in the cache file unless we assign to the vars.
5687 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5689 # `set' does not quote correctly, so add quotes (double-quote substitution
5690 # turns \\\\ into \\, and sed turns \\ into \).
5692 -e "s/'/'\\\\''/g" \
5693 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5696 # `set' quotes correctly as required by POSIX, so do not add quotes.
5697 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5700 if cmp -s $cache_file confcache
; then
5703 if test -w $cache_file; then
5704 echo "updating cache $cache_file"
5705 cat confcache
> $cache_file
5707 echo "not updating unwritable cache $cache_file"
5712 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5714 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5715 # Let make expand exec_prefix.
5716 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5718 # Any assignment to VPATH causes Sun make to only execute
5719 # the first set of double-colon rules, so remove it if not needed.
5720 # If there is a colon in the path, we need to keep it.
5721 if test "x$srcdir" = x.
; then
5722 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5725 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5727 DEFS
=-DHAVE_CONFIG_H
5729 # Without the "./", some shells look in PATH for config.status.
5730 : ${CONFIG_STATUS=./config.status}
5732 echo creating
$CONFIG_STATUS
5733 rm -f $CONFIG_STATUS
5734 cat > $CONFIG_STATUS <<EOF
5736 # Generated automatically by configure.
5737 # Run this file to recreate the current configuration.
5738 # This directory was configured as follows,
5739 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5741 # $0 $ac_configure_args
5743 # Compiler output produced by configure, useful for debugging
5744 # configure, is in ./config.log if it exists.
5746 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5749 case "\$ac_option" in
5750 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5751 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5752 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5753 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5754 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5756 -help | --help | --hel | --he | --h)
5757 echo "\$ac_cs_usage"; exit 0 ;;
5758 *) echo "\$ac_cs_usage"; exit 1 ;;
5762 ac_given_srcdir=$srcdir
5763 ac_given_INSTALL="$INSTALL"
5765 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
5767 cat >> $CONFIG_STATUS <<EOF
5769 # Protect against being on the right side of a sed subst in config.status.
5770 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5771 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5775 s%@CFLAGS@%$CFLAGS%g
5776 s%@CPPFLAGS@%$CPPFLAGS%g
5777 s%@CXXFLAGS@%$CXXFLAGS%g
5778 s%@FFLAGS@%$FFLAGS%g
5780 s%@LDFLAGS@%$LDFLAGS%g
5782 s%@exec_prefix@%$exec_prefix%g
5783 s%@prefix@%$prefix%g
5784 s%@program_transform_name@%$program_transform_name%g
5785 s%@bindir@%$bindir%g
5786 s%@sbindir@%$sbindir%g
5787 s%@libexecdir@%$libexecdir%g
5788 s%@datadir@%$datadir%g
5789 s%@sysconfdir@%$sysconfdir%g
5790 s%@sharedstatedir@%$sharedstatedir%g
5791 s%@localstatedir@%$localstatedir%g
5792 s%@libdir@%$libdir%g
5793 s%@includedir@%$includedir%g
5794 s%@oldincludedir@%$oldincludedir%g
5795 s%@infodir@%$infodir%g
5796 s%@mandir@%$mandir%g
5798 s%@host_alias@%$host_alias%g
5799 s%@host_cpu@%$host_cpu%g
5800 s%@host_vendor@%$host_vendor%g
5801 s%@host_os@%$host_os%g
5802 s%@target@%$target%g
5803 s%@target_alias@%$target_alias%g
5804 s%@target_cpu@%$target_cpu%g
5805 s%@target_vendor@%$target_vendor%g
5806 s%@target_os@%$target_os%g
5808 s%@build_alias@%$build_alias%g
5809 s%@build_cpu@%$build_cpu%g
5810 s%@build_vendor@%$build_vendor%g
5811 s%@build_os@%$build_os%g
5813 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5814 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5815 s%@INSTALL_DATA@%$INSTALL_DATA%g
5816 s%@PACKAGE@%$PACKAGE%g
5817 s%@VERSION@%$VERSION%g
5818 s%@ACLOCAL@%$ACLOCAL%g
5819 s%@AUTOCONF@%$AUTOCONF%g
5820 s%@AUTOMAKE@%$AUTOMAKE%g
5821 s%@AUTOHEADER@%$AUTOHEADER%g
5822 s%@MAKEINFO@%$MAKEINFO%g
5823 s%@SET_MAKE@%$SET_MAKE%g
5825 s%@RANLIB@%$RANLIB%g
5827 s%@LIBTOOL@%$LIBTOOL%g
5828 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
5829 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5830 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5832 s%@EXEEXT@%$EXEEXT%g
5834 s%@ALLOCA@%$ALLOCA%g
5835 s%@USE_NLS@%$USE_NLS%g
5836 s%@MSGFMT@%$MSGFMT%g
5837 s%@GMSGFMT@%$GMSGFMT%g
5838 s%@XGETTEXT@%$XGETTEXT%g
5839 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5840 s%@CATALOGS@%$CATALOGS%g
5841 s%@CATOBJEXT@%$CATOBJEXT%g
5842 s%@DATADIRNAME@%$DATADIRNAME%g
5843 s%@GMOFILES@%$GMOFILES%g
5844 s%@INSTOBJEXT@%$INSTOBJEXT%g
5845 s%@INTLDEPS@%$INTLDEPS%g
5846 s%@INTLLIBS@%$INTLLIBS%g
5847 s%@INTLOBJS@%$INTLOBJS%g
5848 s%@POFILES@%$POFILES%g
5850 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5852 s%@GT_YES@%$GT_YES%g
5853 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5855 s%@HDEFINES@%$HDEFINES%g
5856 s%@BFD_HOST_64BIT_LONG@%$BFD_HOST_64BIT_LONG%g
5857 s%@BFD_HOST_64_BIT_DEFINED@%$BFD_HOST_64_BIT_DEFINED%g
5858 s%@BFD_HOST_64_BIT@%$BFD_HOST_64_BIT%g
5859 s%@BFD_HOST_U_64_BIT@%$BFD_HOST_U_64_BIT%g
5860 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
5861 s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
5862 s%@COREFILE@%$COREFILE%g
5863 s%@COREFLAG@%$COREFLAG%g
5864 s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g
5865 s%@WIN32LIBADD@%$WIN32LIBADD%g
5866 s%@TDEFINES@%$TDEFINES%g
5867 s%@wordsize@%$wordsize%g
5868 s%@all_backends@%$all_backends%g
5869 s%@bfd_backends@%$bfd_backends%g
5870 s%@bfd_machines@%$bfd_machines%g
5871 s%@tdefaults@%$tdefaults%g
5876 cat >> $CONFIG_STATUS <<\EOF
5878 # Split the substitutions into bite-sized pieces for seds with
5879 # small command number limits, like on Digital OSF/1 and HP-UX.
5880 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5881 ac_file
=1 # Number of current file.
5882 ac_beg
=1 # First line for current file.
5883 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5886 while $ac_more_lines; do
5887 if test $ac_beg -gt 1; then
5888 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5890 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5892 if test ! -s conftest.s
$ac_file; then
5894 rm -f conftest.s
$ac_file
5896 if test -z "$ac_sed_cmds"; then
5897 ac_sed_cmds
="sed -f conftest.s$ac_file"
5899 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5901 ac_file
=`expr $ac_file + 1`
5903 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5906 if test -z "$ac_sed_cmds"; then
5911 cat >> $CONFIG_STATUS <<EOF
5913 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"}
5915 cat >> $CONFIG_STATUS <<\EOF
5916 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5917 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5919 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5920 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5921 *) ac_file_in
="${ac_file}.in" ;;
5924 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5926 # Remove last slash and all that follows it. Not all systems have dirname.
5927 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5928 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5929 # The file is in a subdirectory.
5930 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5931 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5932 # A "../" for each directory in $ac_dir_suffix.
5933 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5935 ac_dir_suffix
= ac_dots
=
5938 case "$ac_given_srcdir" in
5940 if test -z "$ac_dots"; then top_srcdir
=.
5941 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5942 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5944 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5945 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5948 case "$ac_given_INSTALL" in
5949 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5950 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5953 echo creating
"$ac_file"
5955 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5957 *Makefile
*) ac_comsub
="1i\\
5958 # $configure_input" ;;
5962 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5964 s%@configure_input@%$configure_input%g
5965 s%@srcdir@%$srcdir%g
5966 s%@top_srcdir@%$top_srcdir%g
5967 s%@INSTALL@%$INSTALL%g
5968 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5972 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5973 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5975 # ac_d sets the value in "#define NAME VALUE" lines.
5976 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5977 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5980 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5981 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5982 ac_uB
='\([ ]\)%\1#\2define\3'
5985 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5986 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5987 ac_eB
='$%\1#\2define\3'
5991 if test "${CONFIG_HEADERS+set}" != set; then
5993 cat >> $CONFIG_STATUS <<EOF
5994 CONFIG_HEADERS="config.h:config.in"
5996 cat >> $CONFIG_STATUS <<\EOF
5998 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5999 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6001 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6002 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6003 *) ac_file_in
="${ac_file}.in" ;;
6006 echo creating
$ac_file
6008 rm -f conftest.frag conftest.
in conftest.out
6009 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6010 cat $ac_file_inputs > conftest.
in
6014 # Transform confdefs.h into a sed script conftest.vals that substitutes
6015 # the proper values into config.h.in to produce config.h. And first:
6016 # Protect against being on the right side of a sed subst in config.status.
6017 # Protect against being in an unquoted here document in config.status.
6019 cat > conftest.hdr
<<\EOF
6022 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6026 sed -n -f conftest.hdr confdefs.h > conftest.vals
6029 # This sed command replaces #undef with comments. This is necessary, for
6030 # example, in the case of _POSIX_SOURCE, which is predefined and required
6031 # on some systems where configure will not decide to define it.
6032 cat >> conftest.vals <<\EOF
6033 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6036 # Break up conftest.vals because some shells have a limit on
6037 # the size of here documents, and old seds have small limits too.
6042 ac_lines=`grep -c . conftest.vals
`
6043 # grep -c gives empty output for an empty file on some AIX systems.
6044 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6045 # Write a limited-size here document to conftest.frag.
6046 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6047 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6049 sed -f conftest.frag conftest.in > conftest.out
6051 mv conftest.out conftest.in
6053 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6055 mv conftest.tail conftest.vals
6059 cat >> $CONFIG_STATUS <<\EOF
6060 rm -f conftest.frag conftest.h
6061 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6062 cat conftest.in >> conftest.h
6064 if cmp -s $ac_file conftest.h 2>/dev/null; then
6065 echo "$ac_file is unchanged"
6068 # Remove last slash and all that follows it. Not all systems have dirname.
6069 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
6070 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6071 # The file is in a subdirectory.
6072 test ! -d "$ac_dir" && mkdir "$ac_dir"
6075 mv conftest.h $ac_file
6080 cat >> $CONFIG_STATUS <<EOF
6084 cat >> $CONFIG_STATUS <<\EOF
6085 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
6086 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
6089 chmod +x $CONFIG_STATUS
6090 rm -fr confdefs* $ac_clean_files
6091 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1