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
1491 # Check for any special flags to pass to ltconfig.
1492 libtool_flags
="--cache-file=$cache_file"
1493 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1494 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1495 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1496 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1497 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1500 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1501 if test "${enable_libtool_lock+set}" = set; then
1502 enableval
="$enable_libtool_lock"
1506 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
1507 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
1509 # Some flags need to be propagated to the compiler or linker for good
1513 # Find out which ABI we are using.
1514 echo '#line 1515 "configure"' > conftest.
$ac_ext
1515 if { (eval echo configure
:1516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1516 case "`/usr/bin/file conftest.o`" in
1532 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1533 SAVE_CFLAGS
="$CFLAGS"
1534 CFLAGS
="$CFLAGS -belf"
1535 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1536 echo "configure:1537: checking whether the C compiler needs -belf" >&5
1537 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1538 echo $ac_n "(cached) $ac_c" 1>&6
1540 cat > conftest.
$ac_ext <<EOF
1541 #line 1542 "configure"
1542 #include "confdefs.h"
1548 if { (eval echo configure
:1549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1550 lt_cv_cc_needs_belf
=yes
1552 echo "configure: failed program was:" >&5
1553 cat conftest.
$ac_ext >&5
1555 lt_cv_cc_needs_belf
=no
1560 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1561 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
1562 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1563 CFLAGS
="$SAVE_CFLAGS"
1571 # Save cache, so that ltconfig can load it
1572 cat > confcache
<<\EOF
1573 # This file is a shell script that caches the results of configure
1574 # tests run on this system so they can be shared between configure
1575 # scripts and configure runs. It is not useful on other systems.
1576 # If it contains results you don't want to keep, you may remove or edit it.
1578 # By default, configure uses ./config.cache as the cache file,
1579 # creating it if it does not exist already. You can give configure
1580 # the --cache-file=FILE option to use a different cache file; that is
1581 # what configure does when it calls configure scripts in
1582 # subdirectories, so they share the cache.
1583 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1584 # config.status only pays attention to the cache file if you give it the
1585 # --recheck option to rerun configure.
1588 # The following way of writing the cache mishandles newlines in values,
1589 # but we know of no workaround that is simple, portable, and efficient.
1590 # So, don't put newlines in cache variables' values.
1591 # Ultrix sh set writes to stderr and can't be redirected directly,
1592 # and sets the high bit in the cache file unless we assign to the vars.
1594 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1596 # `set' does not quote correctly, so add quotes (double-quote substitution
1597 # turns \\\\ into \\, and sed turns \\ into \).
1599 -e "s/'/'\\\\''/g" \
1600 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1603 # `set' quotes correctly as required by POSIX, so do not add quotes.
1604 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1607 if cmp -s $cache_file confcache
; then
1610 if test -w $cache_file; then
1611 echo "updating cache $cache_file"
1612 cat confcache
> $cache_file
1614 echo "not updating unwritable cache $cache_file"
1620 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1621 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1622 LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
1623 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" \
1624 DLLTOOL
="$DLLTOOL" AS
="$AS" OBJDUMP
="$OBJDUMP" \
1625 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
1626 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$host \
1627 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1629 # Reload cache, that may have been modified by ltconfig
1630 if test -r "$cache_file"; then
1631 echo "loading cache $cache_file"
1634 echo "creating cache $cache_file"
1639 # This can be used to rebuild libtool when needed
1640 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1642 # Always use our own libtool.
1643 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1645 # Redirect the config.log output again, so that the ltconfig log is not
1646 # clobbered by the next message.
1647 exec 5>>.
/config.log
1650 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
1651 if test "${enable_64_bit_bfd+set}" = set; then
1652 enableval
="$enable_64_bit_bfd"
1653 case "${enableval}" in
1656 *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;;
1661 # Check whether --enable-targets or --disable-targets was given.
1662 if test "${enable_targets+set}" = set; then
1663 enableval
="$enable_targets"
1664 case "${enableval}" in
1665 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
1667 no
) enable_targets
= ;;
1668 *) enable_targets
=$enableval ;;
1671 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
1672 if test "${enable_commonbfdlib+set}" = set; then
1673 enableval
="$enable_commonbfdlib"
1674 case "${enableval}" in
1675 yes) commonbfdlib
=true
;;
1676 no
) commonbfdlib
=false
;;
1677 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
1680 # Check whether --with-mmap or --without-mmap was given.
1681 if test "${with_mmap+set}" = set; then
1682 withval
="$with_mmap"
1683 case "${withval}" in
1684 yes) want_mmap
=true
;;
1685 no
) want_mmap
=false
;;
1686 *) { echo "configure: error: bad value ${withval} for BFD with-mmap option" 1>&2; exit 1; } ;;
1692 build_warnings
="-W -Wall"
1693 # Check whether --enable-build-warnings or --disable-build-warnings was given.
1694 if test "${enable_build_warnings+set}" = set; then
1695 enableval
="$enable_build_warnings"
1696 case "${enableval}" in
1698 no
) build_warnings
="-w";;
1699 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
1700 build_warnings
="${build_warnings} ${t}";;
1701 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
1702 build_warnings
="${t} ${build_warnings}";;
1703 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
1705 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
1706 echo "Setting warning flags = $build_warnings" 6>&1
1710 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
; then
1711 WARN_CFLAGS
="${build_warnings}"
1719 if test -z "$target" ; then
1720 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
1722 if test "$program_transform_name" = s
,x
,x
,; then
1723 program_transform_name
=
1725 # Double any \ or $. echo might interpret backslashes.
1726 cat <<\EOF_SED
> conftestsed
1727 s
,\\,\\\\,g
; s
,\$
,$$
,g
1729 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1732 test "$program_prefix" != NONE
&&
1733 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1734 # Use a double $ so make ignores it.
1735 test "$program_suffix" != NONE
&&
1736 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1738 # sed with no file args requires a program.
1739 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1742 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1743 echo "configure:1744: checking whether to enable maintainer-specific portions of Makefiles" >&5
1744 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1745 if test "${enable_maintainer_mode+set}" = set; then
1746 enableval
="$enable_maintainer_mode"
1747 USE_MAINTAINER_MODE
=$enableval
1749 USE_MAINTAINER_MODE
=no
1752 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1755 if test $USE_MAINTAINER_MODE = yes; then
1756 MAINTAINER_MODE_TRUE
=
1757 MAINTAINER_MODE_FALSE
='#'
1759 MAINTAINER_MODE_TRUE
='#'
1760 MAINTAINER_MODE_FALSE
=
1762 MAINT
=$MAINTAINER_MODE_TRUE
1765 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1766 echo "configure:1767: checking for Cygwin environment" >&5
1767 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1768 echo $ac_n "(cached) $ac_c" 1>&6
1770 cat > conftest.
$ac_ext <<EOF
1771 #line 1772 "configure"
1772 #include "confdefs.h"
1777 #define __CYGWIN__ __CYGWIN32__
1782 if { (eval echo configure
:1783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1786 echo "configure: failed program was:" >&5
1787 cat conftest.
$ac_ext >&5
1795 echo "$ac_t""$ac_cv_cygwin" 1>&6
1797 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
1798 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1799 echo "configure:1800: checking for mingw32 environment" >&5
1800 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1801 echo $ac_n "(cached) $ac_c" 1>&6
1803 cat > conftest.
$ac_ext <<EOF
1804 #line 1805 "configure"
1805 #include "confdefs.h"
1811 if { (eval echo configure
:1812: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1815 echo "configure: failed program was:" >&5
1816 cat conftest.
$ac_ext >&5
1824 echo "$ac_t""$ac_cv_mingw32" 1>&6
1826 test "$ac_cv_mingw32" = yes && MINGW32
=yes
1829 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1830 echo "configure:1831: checking for executable suffix" >&5
1831 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1832 echo $ac_n "(cached) $ac_c" 1>&6
1834 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1838 echo 'int main () { return 0; }' > conftest.
$ac_ext
1840 if { (eval echo configure
:1841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1841 for file in conftest.
*; do
1843 *.c |
*.o |
*.obj
) ;;
1844 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1848 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1851 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1856 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1857 echo "$ac_t""${ac_cv_exeext}" 1>&6
1866 # Extract the first word of "gcc", so it can be a program name with args.
1867 set dummy gcc
; ac_word
=$2
1868 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1869 echo "configure:1870: checking for $ac_word" >&5
1870 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1871 echo $ac_n "(cached) $ac_c" 1>&6
1873 if test -n "$CC"; then
1874 ac_cv_prog_CC
="$CC" # Let the user override the test.
1876 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1878 for ac_dir
in $ac_dummy; do
1879 test -z "$ac_dir" && ac_dir
=.
1880 if test -f $ac_dir/$ac_word; then
1889 if test -n "$CC"; then
1890 echo "$ac_t""$CC" 1>&6
1892 echo "$ac_t""no" 1>&6
1895 if test -z "$CC"; then
1896 # Extract the first word of "cc", so it can be a program name with args.
1897 set dummy cc
; ac_word
=$2
1898 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1899 echo "configure:1900: checking for $ac_word" >&5
1900 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1901 echo $ac_n "(cached) $ac_c" 1>&6
1903 if test -n "$CC"; then
1904 ac_cv_prog_CC
="$CC" # Let the user override the test.
1906 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1909 for ac_dir
in $ac_dummy; do
1910 test -z "$ac_dir" && ac_dir
=.
1911 if test -f $ac_dir/$ac_word; then
1912 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1913 ac_prog_rejected
=yes
1921 if test $ac_prog_rejected = yes; then
1922 # We found a bogon in the path, so make sure we never use it.
1923 set dummy
$ac_cv_prog_CC
1925 if test $# -gt 0; then
1926 # We chose a different compiler from the bogus one.
1927 # However, it has the same basename, so the bogon will be chosen
1928 # first if we set CC to just the basename; use the full file name.
1930 set dummy
"$ac_dir/$ac_word" "$@"
1938 if test -n "$CC"; then
1939 echo "$ac_t""$CC" 1>&6
1941 echo "$ac_t""no" 1>&6
1944 if test -z "$CC"; then
1945 case "`uname -s`" in
1947 # Extract the first word of "cl", so it can be a program name with args.
1948 set dummy cl
; ac_word
=$2
1949 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1950 echo "configure:1951: checking for $ac_word" >&5
1951 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1952 echo $ac_n "(cached) $ac_c" 1>&6
1954 if test -n "$CC"; then
1955 ac_cv_prog_CC
="$CC" # Let the user override the test.
1957 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1959 for ac_dir
in $ac_dummy; do
1960 test -z "$ac_dir" && ac_dir
=.
1961 if test -f $ac_dir/$ac_word; then
1970 if test -n "$CC"; then
1971 echo "$ac_t""$CC" 1>&6
1973 echo "$ac_t""no" 1>&6
1978 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1981 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1982 echo "configure:1983: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1985 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1986 ac_cpp
='$CPP $CPPFLAGS'
1987 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1988 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1989 cross_compiling
=$ac_cv_prog_cc_cross
1991 cat > conftest.
$ac_ext << EOF
1993 #line 1994 "configure"
1994 #include "confdefs.h"
1998 if { (eval echo configure
:1999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1999 ac_cv_prog_cc_works
=yes
2000 # If we can't run a trivial program, we are probably using a cross compiler.
2001 if (.
/conftest
; exit) 2>/dev
/null
; then
2002 ac_cv_prog_cc_cross
=no
2004 ac_cv_prog_cc_cross
=yes
2007 echo "configure: failed program was:" >&5
2008 cat conftest.
$ac_ext >&5
2009 ac_cv_prog_cc_works
=no
2013 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2014 ac_cpp
='$CPP $CPPFLAGS'
2015 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2016 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2017 cross_compiling
=$ac_cv_prog_cc_cross
2019 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2020 if test $ac_cv_prog_cc_works = no
; then
2021 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2023 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2024 echo "configure:2025: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2025 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2026 cross_compiling
=$ac_cv_prog_cc_cross
2028 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2029 echo "configure:2030: checking whether we are using GNU C" >&5
2030 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2031 echo $ac_n "(cached) $ac_c" 1>&6
2033 cat > conftest.c
<<EOF
2038 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2045 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2047 if test $ac_cv_prog_gcc = yes; then
2053 ac_test_CFLAGS
="${CFLAGS+set}"
2054 ac_save_CFLAGS
="$CFLAGS"
2056 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2057 echo "configure:2058: checking whether ${CC-cc} accepts -g" >&5
2058 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2059 echo $ac_n "(cached) $ac_c" 1>&6
2061 echo 'void f(){}' > conftest.c
2062 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2071 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2072 if test "$ac_test_CFLAGS" = set; then
2073 CFLAGS
="$ac_save_CFLAGS"
2074 elif test $ac_cv_prog_cc_g = yes; then
2075 if test "$GCC" = yes; then
2081 if test "$GCC" = yes; then
2090 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2091 echo "configure:2092: checking how to run the C preprocessor" >&5
2092 # On Suns, sometimes $CPP names a directory.
2093 if test -n "$CPP" && test -d "$CPP"; then
2096 if test -z "$CPP"; then
2097 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2098 echo $ac_n "(cached) $ac_c" 1>&6
2100 # This must be in double quotes, not single quotes, because CPP may get
2101 # substituted into the Makefile and "${CC-cc}" will confuse make.
2103 # On the NeXT, cc -E runs the code through the compiler's parser,
2104 # not just through cpp.
2105 cat > conftest.
$ac_ext <<EOF
2106 #line 2107 "configure"
2107 #include "confdefs.h"
2111 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2112 { (eval echo configure
:2113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2113 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2114 if test -z "$ac_err"; then
2118 echo "configure: failed program was:" >&5
2119 cat conftest.
$ac_ext >&5
2121 CPP
="${CC-cc} -E -traditional-cpp"
2122 cat > conftest.
$ac_ext <<EOF
2123 #line 2124 "configure"
2124 #include "confdefs.h"
2128 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2129 { (eval echo configure
:2130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2130 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2131 if test -z "$ac_err"; then
2135 echo "configure: failed program was:" >&5
2136 cat conftest.
$ac_ext >&5
2138 CPP
="${CC-cc} -nologo -E"
2139 cat > conftest.
$ac_ext <<EOF
2140 #line 2141 "configure"
2141 #include "confdefs.h"
2145 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2146 { (eval echo configure
:2147: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2147 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2148 if test -z "$ac_err"; then
2152 echo "configure: failed program was:" >&5
2153 cat conftest.
$ac_ext >&5
2162 ac_cv_prog_CPP
="$CPP"
2164 CPP
="$ac_cv_prog_CPP"
2166 ac_cv_prog_CPP
="$CPP"
2168 echo "$ac_t""$CPP" 1>&6
2170 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2171 echo "configure:2172: checking for ANSI C header files" >&5
2172 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2173 echo $ac_n "(cached) $ac_c" 1>&6
2175 cat > conftest.
$ac_ext <<EOF
2176 #line 2177 "configure"
2177 #include "confdefs.h"
2183 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2184 { (eval echo configure
:2185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2185 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2186 if test -z "$ac_err"; then
2188 ac_cv_header_stdc
=yes
2191 echo "configure: failed program was:" >&5
2192 cat conftest.
$ac_ext >&5
2194 ac_cv_header_stdc
=no
2198 if test $ac_cv_header_stdc = yes; then
2199 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2200 cat > conftest.
$ac_ext <<EOF
2201 #line 2202 "configure"
2202 #include "confdefs.h"
2205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2206 egrep "memchr" >/dev
/null
2>&1; then
2210 ac_cv_header_stdc
=no
2216 if test $ac_cv_header_stdc = yes; then
2217 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2218 cat > conftest.
$ac_ext <<EOF
2219 #line 2220 "configure"
2220 #include "confdefs.h"
2223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2224 egrep "free" >/dev
/null
2>&1; then
2228 ac_cv_header_stdc
=no
2234 if test $ac_cv_header_stdc = yes; then
2235 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2236 if test "$cross_compiling" = yes; then
2239 cat > conftest.
$ac_ext <<EOF
2240 #line 2241 "configure"
2241 #include "confdefs.h"
2243 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2244 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2245 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2246 int main () { int i; for (i = 0; i < 256; i++)
2247 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2251 if { (eval echo configure
:2252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2255 echo "configure: failed program was:" >&5
2256 cat conftest.
$ac_ext >&5
2258 ac_cv_header_stdc
=no
2266 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2267 if test $ac_cv_header_stdc = yes; then
2268 cat >> confdefs.h
<<\EOF
2269 #define STDC_HEADERS 1
2274 echo $ac_n "checking for working const""... $ac_c" 1>&6
2275 echo "configure:2276: checking for working const" >&5
2276 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2277 echo $ac_n "(cached) $ac_c" 1>&6
2279 cat > conftest.
$ac_ext <<EOF
2280 #line 2281 "configure"
2281 #include "confdefs.h"
2285 /* Ultrix mips cc rejects this. */
2286 typedef int charset[2]; const charset x;
2287 /* SunOS 4.1.1 cc rejects this. */
2288 char const *const *ccp;
2290 /* NEC SVR4.0.2 mips cc rejects this. */
2291 struct point {int x, y;};
2292 static struct point const zero = {0,0};
2293 /* AIX XL C 1.02.0.0 rejects this.
2294 It does not let you subtract one const X* pointer from another in an arm
2295 of an if-expression whose if-part is not a constant expression */
2296 const char *g = "string";
2297 ccp = &g + (g ? g-g : 0);
2298 /* HPUX 7.0 cc rejects these. */
2301 ccp = (char const *const *) p;
2302 { /* SCO 3.2v4 cc rejects this. */
2304 char const *s = 0 ? (char *) 0 : (char const *) 0;
2308 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2310 const int *foo = &x[0];
2313 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2314 typedef const int *iptr;
2318 { /* AIX XL C 1.02.0.0 rejects this saying
2319 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2320 struct s { int j; const int *ap[3]; };
2321 struct s *b; b->j = 5;
2323 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2329 if { (eval echo configure
:2330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2333 echo "configure: failed program was:" >&5
2334 cat conftest.
$ac_ext >&5
2341 echo "$ac_t""$ac_cv_c_const" 1>&6
2342 if test $ac_cv_c_const = no
; then
2343 cat >> confdefs.h
<<\EOF
2349 echo $ac_n "checking for inline""... $ac_c" 1>&6
2350 echo "configure:2351: checking for inline" >&5
2351 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2352 echo $ac_n "(cached) $ac_c" 1>&6
2355 for ac_kw
in inline __inline__ __inline
; do
2356 cat > conftest.
$ac_ext <<EOF
2357 #line 2358 "configure"
2358 #include "confdefs.h"
2364 if { (eval echo configure
:2365: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2366 ac_cv_c_inline
=$ac_kw; break
2368 echo "configure: failed program was:" >&5
2369 cat conftest.
$ac_ext >&5
2376 echo "$ac_t""$ac_cv_c_inline" 1>&6
2377 case "$ac_cv_c_inline" in
2379 no
) cat >> confdefs.h
<<\EOF
2383 *) cat >> confdefs.h
<<EOF
2384 #define inline $ac_cv_c_inline
2389 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2390 echo "configure:2391: checking for off_t" >&5
2391 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2392 echo $ac_n "(cached) $ac_c" 1>&6
2394 cat > conftest.
$ac_ext <<EOF
2395 #line 2396 "configure"
2396 #include "confdefs.h"
2397 #include <sys/types.h>
2403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2404 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2406 ac_cv_type_off_t
=yes
2414 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2415 if test $ac_cv_type_off_t = no
; then
2416 cat >> confdefs.h
<<\EOF
2422 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2423 echo "configure:2424: checking for size_t" >&5
2424 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2425 echo $ac_n "(cached) $ac_c" 1>&6
2427 cat > conftest.
$ac_ext <<EOF
2428 #line 2429 "configure"
2429 #include "confdefs.h"
2430 #include <sys/types.h>
2436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2437 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2439 ac_cv_type_size_t
=yes
2442 ac_cv_type_size_t
=no
2447 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2448 if test $ac_cv_type_size_t = no
; then
2449 cat >> confdefs.h
<<\EOF
2450 #define size_t unsigned
2455 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2456 # for constant arguments. Useless!
2457 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2458 echo "configure:2459: checking for working alloca.h" >&5
2459 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2460 echo $ac_n "(cached) $ac_c" 1>&6
2462 cat > conftest.
$ac_ext <<EOF
2463 #line 2464 "configure"
2464 #include "confdefs.h"
2467 char *p = alloca(2 * sizeof(int));
2470 if { (eval echo configure
:2471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2472 ac_cv_header_alloca_h
=yes
2474 echo "configure: failed program was:" >&5
2475 cat conftest.
$ac_ext >&5
2477 ac_cv_header_alloca_h
=no
2482 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2483 if test $ac_cv_header_alloca_h = yes; then
2484 cat >> confdefs.h
<<\EOF
2485 #define HAVE_ALLOCA_H 1
2490 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2491 echo "configure:2492: checking for alloca" >&5
2492 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2493 echo $ac_n "(cached) $ac_c" 1>&6
2495 cat > conftest.
$ac_ext <<EOF
2496 #line 2497 "configure"
2497 #include "confdefs.h"
2500 # define alloca __builtin_alloca
2503 # include <malloc.h>
2504 # define alloca _alloca
2507 # include <alloca.h>
2512 # ifndef alloca /* predefined by HP cc +Olibcalls */
2521 char *p = (char *) alloca(1);
2524 if { (eval echo configure
:2525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2526 ac_cv_func_alloca_works
=yes
2528 echo "configure: failed program was:" >&5
2529 cat conftest.
$ac_ext >&5
2531 ac_cv_func_alloca_works
=no
2536 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2537 if test $ac_cv_func_alloca_works = yes; then
2538 cat >> confdefs.h
<<\EOF
2539 #define HAVE_ALLOCA 1
2544 if test $ac_cv_func_alloca_works = no
; then
2545 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2546 # that cause trouble. Some versions do not even contain alloca or
2547 # contain a buggy version. If you still want to use their alloca,
2548 # use ar to extract alloca.o from them instead of compiling alloca.c.
2549 ALLOCA
=alloca.
${ac_objext}
2550 cat >> confdefs.h
<<\EOF
2555 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2556 echo "configure:2557: checking whether alloca needs Cray hooks" >&5
2557 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2558 echo $ac_n "(cached) $ac_c" 1>&6
2560 cat > conftest.
$ac_ext <<EOF
2561 #line 2562 "configure"
2562 #include "confdefs.h"
2563 #if defined(CRAY) && ! defined(CRAY2)
2570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2571 egrep "webecray" >/dev
/null
2>&1; then
2582 echo "$ac_t""$ac_cv_os_cray" 1>&6
2583 if test $ac_cv_os_cray = yes; then
2584 for ac_func
in _getb67 GETB67 getb67
; do
2585 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2586 echo "configure:2587: checking for $ac_func" >&5
2587 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2588 echo $ac_n "(cached) $ac_c" 1>&6
2590 cat > conftest.
$ac_ext <<EOF
2591 #line 2592 "configure"
2592 #include "confdefs.h"
2593 /* System header to define __stub macros and hopefully few prototypes,
2594 which can conflict with char $ac_func(); below. */
2596 /* Override any gcc2 internal prototype to avoid an error. */
2597 /* We use char because int might match the return type of a gcc2
2598 builtin and then its argument prototype would still apply. */
2603 /* The GNU C library defines this for functions which it implements
2604 to always fail with ENOSYS. Some functions are actually named
2605 something starting with __ and the normal name is an alias. */
2606 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2614 if { (eval echo configure
:2615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2616 eval "ac_cv_func_$ac_func=yes"
2618 echo "configure: failed program was:" >&5
2619 cat conftest.
$ac_ext >&5
2621 eval "ac_cv_func_$ac_func=no"
2626 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2627 echo "$ac_t""yes" 1>&6
2628 cat >> confdefs.h
<<EOF
2629 #define CRAY_STACKSEG_END $ac_func
2634 echo "$ac_t""no" 1>&6
2640 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2641 echo "configure:2642: checking stack direction for C alloca" >&5
2642 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2643 echo $ac_n "(cached) $ac_c" 1>&6
2645 if test "$cross_compiling" = yes; then
2646 ac_cv_c_stack_direction
=0
2648 cat > conftest.
$ac_ext <<EOF
2649 #line 2650 "configure"
2650 #include "confdefs.h"
2651 find_stack_direction ()
2653 static char *addr = 0;
2658 return find_stack_direction ();
2661 return (&dummy > addr) ? 1 : -1;
2665 exit (find_stack_direction() < 0);
2668 if { (eval echo configure
:2669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2670 ac_cv_c_stack_direction
=1
2672 echo "configure: failed program was:" >&5
2673 cat conftest.
$ac_ext >&5
2675 ac_cv_c_stack_direction
=-1
2682 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2683 cat >> confdefs.h
<<EOF
2684 #define STACK_DIRECTION $ac_cv_c_stack_direction
2689 for ac_hdr
in unistd.h
2691 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2692 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2693 echo "configure:2694: checking for $ac_hdr" >&5
2694 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2695 echo $ac_n "(cached) $ac_c" 1>&6
2697 cat > conftest.
$ac_ext <<EOF
2698 #line 2699 "configure"
2699 #include "confdefs.h"
2702 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2703 { (eval echo configure
:2704: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2704 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2705 if test -z "$ac_err"; then
2707 eval "ac_cv_header_$ac_safe=yes"
2710 echo "configure: failed program was:" >&5
2711 cat conftest.
$ac_ext >&5
2713 eval "ac_cv_header_$ac_safe=no"
2717 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2718 echo "$ac_t""yes" 1>&6
2719 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2720 cat >> confdefs.h
<<EOF
2721 #define $ac_tr_hdr 1
2725 echo "$ac_t""no" 1>&6
2729 for ac_func
in getpagesize
2731 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2732 echo "configure:2733: checking for $ac_func" >&5
2733 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2734 echo $ac_n "(cached) $ac_c" 1>&6
2736 cat > conftest.
$ac_ext <<EOF
2737 #line 2738 "configure"
2738 #include "confdefs.h"
2739 /* System header to define __stub macros and hopefully few prototypes,
2740 which can conflict with char $ac_func(); below. */
2742 /* Override any gcc2 internal prototype to avoid an error. */
2743 /* We use char because int might match the return type of a gcc2
2744 builtin and then its argument prototype would still apply. */
2749 /* The GNU C library defines this for functions which it implements
2750 to always fail with ENOSYS. Some functions are actually named
2751 something starting with __ and the normal name is an alias. */
2752 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2760 if { (eval echo configure
:2761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2762 eval "ac_cv_func_$ac_func=yes"
2764 echo "configure: failed program was:" >&5
2765 cat conftest.
$ac_ext >&5
2767 eval "ac_cv_func_$ac_func=no"
2772 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2773 echo "$ac_t""yes" 1>&6
2774 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2775 cat >> confdefs.h
<<EOF
2776 #define $ac_tr_func 1
2780 echo "$ac_t""no" 1>&6
2784 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2785 echo "configure:2786: checking for working mmap" >&5
2786 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2787 echo $ac_n "(cached) $ac_c" 1>&6
2789 if test "$cross_compiling" = yes; then
2790 ac_cv_func_mmap_fixed_mapped
=no
2792 cat > conftest.
$ac_ext <<EOF
2793 #line 2794 "configure"
2794 #include "confdefs.h"
2796 /* Thanks to Mike Haertel and Jim Avera for this test.
2797 Here is a matrix of mmap possibilities:
2798 mmap private not fixed
2799 mmap private fixed at somewhere currently unmapped
2800 mmap private fixed at somewhere already mapped
2801 mmap shared not fixed
2802 mmap shared fixed at somewhere currently unmapped
2803 mmap shared fixed at somewhere already mapped
2804 For private mappings, we should verify that changes cannot be read()
2805 back from the file, nor mmap's back from the file at a different
2806 address. (There have been systems where private was not correctly
2807 implemented like the infamous i386 svr4.0, and systems where the
2808 VM page cache was not coherent with the filesystem buffer cache
2809 like early versions of FreeBSD and possibly contemporary NetBSD.)
2810 For shared mappings, we should conversely verify that changes get
2811 propogated back to all the places they're supposed to be.
2813 Grep wants private fixed already mapped.
2814 The main things grep needs to know about mmap are:
2815 * does it exist and is it safe to write into the mmap'd area
2816 * how to use it (BSD variants) */
2817 #include <sys/types.h>
2819 #include <sys/mman.h>
2821 /* This mess was copied from the GNU getpagesize.h. */
2822 #ifndef HAVE_GETPAGESIZE
2823 # ifdef HAVE_UNISTD_H
2824 # include <unistd.h>
2827 /* Assume that all systems that can run configure have sys/param.h. */
2828 # ifndef HAVE_SYS_PARAM_H
2829 # define HAVE_SYS_PARAM_H 1
2832 # ifdef _SC_PAGESIZE
2833 # define getpagesize() sysconf(_SC_PAGESIZE)
2834 # else /* no _SC_PAGESIZE */
2835 # ifdef HAVE_SYS_PARAM_H
2836 # include <sys/param.h>
2837 # ifdef EXEC_PAGESIZE
2838 # define getpagesize() EXEC_PAGESIZE
2839 # else /* no EXEC_PAGESIZE */
2841 # define getpagesize() NBPG * CLSIZE
2844 # endif /* no CLSIZE */
2845 # else /* no NBPG */
2847 # define getpagesize() NBPC
2848 # else /* no NBPC */
2850 # define getpagesize() PAGESIZE
2851 # endif /* PAGESIZE */
2852 # endif /* no NBPC */
2853 # endif /* no NBPG */
2854 # endif /* no EXEC_PAGESIZE */
2855 # else /* no HAVE_SYS_PARAM_H */
2856 # define getpagesize() 8192 /* punt totally */
2857 # endif /* no HAVE_SYS_PARAM_H */
2858 # endif /* no _SC_PAGESIZE */
2860 #endif /* no HAVE_GETPAGESIZE */
2863 extern "C" { void *malloc(unsigned); }
2871 char *data, *data2, *data3;
2875 pagesize = getpagesize();
2878 * First, make a file with some known garbage in it.
2880 data = malloc(pagesize);
2883 for (i = 0; i < pagesize; ++i)
2884 *(data + i) = rand();
2886 fd = creat("conftestmmap", 0600);
2889 if (write(fd, data, pagesize) != pagesize)
2894 * Next, try to mmap the file at a fixed address which
2895 * already has something else allocated at it. If we can,
2896 * also make sure that we see the same garbage.
2898 fd = open("conftestmmap", O_RDWR);
2901 data2 = malloc(2 * pagesize);
2904 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2905 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2906 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2908 for (i = 0; i < pagesize; ++i)
2909 if (*(data + i) != *(data2 + i))
2913 * Finally, make sure that changes to the mapped area
2914 * do not percolate back to the file as seen by read().
2915 * (This is a bug on some variants of i386 svr4.0.)
2917 for (i = 0; i < pagesize; ++i)
2918 *(data2 + i) = *(data2 + i) + 1;
2919 data3 = malloc(pagesize);
2922 if (read(fd, data3, pagesize) != pagesize)
2924 for (i = 0; i < pagesize; ++i)
2925 if (*(data + i) != *(data3 + i))
2928 unlink("conftestmmap");
2933 if { (eval echo configure
:2934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2935 ac_cv_func_mmap_fixed_mapped
=yes
2937 echo "configure: failed program was:" >&5
2938 cat conftest.
$ac_ext >&5
2940 ac_cv_func_mmap_fixed_mapped
=no
2947 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2948 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2949 cat >> confdefs.h
<<\EOF
2956 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2957 unistd.h values.h sys
/param.h
2959 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2960 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2961 echo "configure:2962: checking for $ac_hdr" >&5
2962 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2963 echo $ac_n "(cached) $ac_c" 1>&6
2965 cat > conftest.
$ac_ext <<EOF
2966 #line 2967 "configure"
2967 #include "confdefs.h"
2970 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2971 { (eval echo configure
:2972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2972 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2973 if test -z "$ac_err"; then
2975 eval "ac_cv_header_$ac_safe=yes"
2978 echo "configure: failed program was:" >&5
2979 cat conftest.
$ac_ext >&5
2981 eval "ac_cv_header_$ac_safe=no"
2985 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2986 echo "$ac_t""yes" 1>&6
2987 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2988 cat >> confdefs.h
<<EOF
2989 #define $ac_tr_hdr 1
2993 echo "$ac_t""no" 1>&6
2997 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2998 __argz_count __argz_stringify __argz_next
3000 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3001 echo "configure:3002: checking for $ac_func" >&5
3002 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3003 echo $ac_n "(cached) $ac_c" 1>&6
3005 cat > conftest.
$ac_ext <<EOF
3006 #line 3007 "configure"
3007 #include "confdefs.h"
3008 /* System header to define __stub macros and hopefully few prototypes,
3009 which can conflict with char $ac_func(); below. */
3011 /* Override any gcc2 internal prototype to avoid an error. */
3012 /* We use char because int might match the return type of a gcc2
3013 builtin and then its argument prototype would still apply. */
3018 /* The GNU C library defines this for functions which it implements
3019 to always fail with ENOSYS. Some functions are actually named
3020 something starting with __ and the normal name is an alias. */
3021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3029 if { (eval echo configure
:3030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3031 eval "ac_cv_func_$ac_func=yes"
3033 echo "configure: failed program was:" >&5
3034 cat conftest.
$ac_ext >&5
3036 eval "ac_cv_func_$ac_func=no"
3041 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3042 echo "$ac_t""yes" 1>&6
3043 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3044 cat >> confdefs.h
<<EOF
3045 #define $ac_tr_func 1
3049 echo "$ac_t""no" 1>&6
3054 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3055 for ac_func
in stpcpy
3057 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3058 echo "configure:3059: checking for $ac_func" >&5
3059 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3060 echo $ac_n "(cached) $ac_c" 1>&6
3062 cat > conftest.
$ac_ext <<EOF
3063 #line 3064 "configure"
3064 #include "confdefs.h"
3065 /* System header to define __stub macros and hopefully few prototypes,
3066 which can conflict with char $ac_func(); below. */
3068 /* Override any gcc2 internal prototype to avoid an error. */
3069 /* We use char because int might match the return type of a gcc2
3070 builtin and then its argument prototype would still apply. */
3075 /* The GNU C library defines this for functions which it implements
3076 to always fail with ENOSYS. Some functions are actually named
3077 something starting with __ and the normal name is an alias. */
3078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3086 if { (eval echo configure
:3087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3088 eval "ac_cv_func_$ac_func=yes"
3090 echo "configure: failed program was:" >&5
3091 cat conftest.
$ac_ext >&5
3093 eval "ac_cv_func_$ac_func=no"
3098 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3099 echo "$ac_t""yes" 1>&6
3100 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3101 cat >> confdefs.h
<<EOF
3102 #define $ac_tr_func 1
3106 echo "$ac_t""no" 1>&6
3111 if test "${ac_cv_func_stpcpy}" = "yes"; then
3112 cat >> confdefs.h
<<\EOF
3113 #define HAVE_STPCPY 1
3118 if test $ac_cv_header_locale_h = yes; then
3119 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3120 echo "configure:3121: checking for LC_MESSAGES" >&5
3121 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3122 echo $ac_n "(cached) $ac_c" 1>&6
3124 cat > conftest.
$ac_ext <<EOF
3125 #line 3126 "configure"
3126 #include "confdefs.h"
3132 if { (eval echo configure
:3133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3134 am_cv_val_LC_MESSAGES
=yes
3136 echo "configure: failed program was:" >&5
3137 cat conftest.
$ac_ext >&5
3139 am_cv_val_LC_MESSAGES
=no
3144 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3145 if test $am_cv_val_LC_MESSAGES = yes; then
3146 cat >> confdefs.h
<<\EOF
3147 #define HAVE_LC_MESSAGES 1
3152 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3153 echo "configure:3154: checking whether NLS is requested" >&5
3154 # Check whether --enable-nls or --disable-nls was given.
3155 if test "${enable_nls+set}" = set; then
3156 enableval
="$enable_nls"
3162 echo "$ac_t""$USE_NLS" 1>&6
3165 USE_INCLUDED_LIBINTL
=no
3167 if test "$USE_NLS" = "yes"; then
3168 cat >> confdefs.h
<<\EOF
3169 #define ENABLE_NLS 1
3172 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3173 echo "configure:3174: checking whether included gettext is requested" >&5
3174 # Check whether --with-included-gettext or --without-included-gettext was given.
3175 if test "${with_included_gettext+set}" = set; then
3176 withval
="$with_included_gettext"
3177 nls_cv_force_use_gnu_gettext
=$withval
3179 nls_cv_force_use_gnu_gettext
=no
3182 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3184 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
3185 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3187 nls_cv_header_libgt
=
3190 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3191 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3192 echo "configure:3193: checking for libintl.h" >&5
3193 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3194 echo $ac_n "(cached) $ac_c" 1>&6
3196 cat > conftest.
$ac_ext <<EOF
3197 #line 3198 "configure"
3198 #include "confdefs.h"
3199 #include <libintl.h>
3201 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3202 { (eval echo configure
:3203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3203 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3204 if test -z "$ac_err"; then
3206 eval "ac_cv_header_$ac_safe=yes"
3209 echo "configure: failed program was:" >&5
3210 cat conftest.
$ac_ext >&5
3212 eval "ac_cv_header_$ac_safe=no"
3216 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3217 echo "$ac_t""yes" 1>&6
3218 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3219 echo "configure:3220: checking for gettext in libc" >&5
3220 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3221 echo $ac_n "(cached) $ac_c" 1>&6
3223 cat > conftest.
$ac_ext <<EOF
3224 #line 3225 "configure"
3225 #include "confdefs.h"
3226 #include <libintl.h>
3228 return (int) gettext ("")
3231 if { (eval echo configure
:3232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3233 gt_cv_func_gettext_libc
=yes
3235 echo "configure: failed program was:" >&5
3236 cat conftest.
$ac_ext >&5
3238 gt_cv_func_gettext_libc
=no
3243 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3245 if test "$gt_cv_func_gettext_libc" != "yes"; then
3246 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3247 echo "configure:3248: checking for bindtextdomain in -lintl" >&5
3248 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3249 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3250 echo $ac_n "(cached) $ac_c" 1>&6
3252 ac_save_LIBS
="$LIBS"
3254 cat > conftest.
$ac_ext <<EOF
3255 #line 3256 "configure"
3256 #include "confdefs.h"
3257 /* Override any gcc2 internal prototype to avoid an error. */
3258 /* We use char because int might match the return type of a gcc2
3259 builtin and then its argument prototype would still apply. */
3260 char bindtextdomain();
3266 if { (eval echo configure
:3267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3268 eval "ac_cv_lib_$ac_lib_var=yes"
3270 echo "configure: failed program was:" >&5
3271 cat conftest.
$ac_ext >&5
3273 eval "ac_cv_lib_$ac_lib_var=no"
3276 LIBS
="$ac_save_LIBS"
3279 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3280 echo "$ac_t""yes" 1>&6
3281 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3282 echo "configure:3283: checking for gettext in libintl" >&5
3283 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3284 echo $ac_n "(cached) $ac_c" 1>&6
3286 cat > conftest.
$ac_ext <<EOF
3287 #line 3288 "configure"
3288 #include "confdefs.h"
3291 return (int) gettext ("")
3294 if { (eval echo configure
:3295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3296 gt_cv_func_gettext_libintl
=yes
3298 echo "configure: failed program was:" >&5
3299 cat conftest.
$ac_ext >&5
3301 gt_cv_func_gettext_libintl
=no
3306 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3308 echo "$ac_t""no" 1>&6
3313 if test "$gt_cv_func_gettext_libc" = "yes" \
3314 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
3315 cat >> confdefs.h
<<\EOF
3316 #define HAVE_GETTEXT 1
3319 # Extract the first word of "msgfmt", so it can be a program name with args.
3320 set dummy msgfmt
; ac_word
=$2
3321 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3322 echo "configure:3323: checking for $ac_word" >&5
3323 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3324 echo $ac_n "(cached) $ac_c" 1>&6
3328 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3331 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3332 for ac_dir
in $PATH; do
3333 test -z "$ac_dir" && ac_dir
=.
3334 if test -f $ac_dir/$ac_word; then
3335 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3336 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3342 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
3346 MSGFMT
="$ac_cv_path_MSGFMT"
3347 if test -n "$MSGFMT"; then
3348 echo "$ac_t""$MSGFMT" 1>&6
3350 echo "$ac_t""no" 1>&6
3352 if test "$MSGFMT" != "no"; then
3353 for ac_func
in dcgettext
3355 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3356 echo "configure:3357: checking for $ac_func" >&5
3357 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3358 echo $ac_n "(cached) $ac_c" 1>&6
3360 cat > conftest.
$ac_ext <<EOF
3361 #line 3362 "configure"
3362 #include "confdefs.h"
3363 /* System header to define __stub macros and hopefully few prototypes,
3364 which can conflict with char $ac_func(); below. */
3366 /* Override any gcc2 internal prototype to avoid an error. */
3367 /* We use char because int might match the return type of a gcc2
3368 builtin and then its argument prototype would still apply. */
3373 /* The GNU C library defines this for functions which it implements
3374 to always fail with ENOSYS. Some functions are actually named
3375 something starting with __ and the normal name is an alias. */
3376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3384 if { (eval echo configure
:3385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3386 eval "ac_cv_func_$ac_func=yes"
3388 echo "configure: failed program was:" >&5
3389 cat conftest.
$ac_ext >&5
3391 eval "ac_cv_func_$ac_func=no"
3396 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3397 echo "$ac_t""yes" 1>&6
3398 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3399 cat >> confdefs.h
<<EOF
3400 #define $ac_tr_func 1
3404 echo "$ac_t""no" 1>&6
3408 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3409 set dummy gmsgfmt
; ac_word
=$2
3410 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3411 echo "configure:3412: checking for $ac_word" >&5
3412 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3413 echo $ac_n "(cached) $ac_c" 1>&6
3417 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3420 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3423 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3425 for ac_dir
in $ac_dummy; do
3426 test -z "$ac_dir" && ac_dir
=.
3427 if test -f $ac_dir/$ac_word; then
3428 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3433 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3437 GMSGFMT
="$ac_cv_path_GMSGFMT"
3438 if test -n "$GMSGFMT"; then
3439 echo "$ac_t""$GMSGFMT" 1>&6
3441 echo "$ac_t""no" 1>&6
3444 # Extract the first word of "xgettext", so it can be a program name with args.
3445 set dummy xgettext
; ac_word
=$2
3446 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3447 echo "configure:3448: checking for $ac_word" >&5
3448 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3449 echo $ac_n "(cached) $ac_c" 1>&6
3453 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3456 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3457 for ac_dir
in $PATH; do
3458 test -z "$ac_dir" && ac_dir
=.
3459 if test -f $ac_dir/$ac_word; then
3460 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3461 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
3467 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
3471 XGETTEXT
="$ac_cv_path_XGETTEXT"
3472 if test -n "$XGETTEXT"; then
3473 echo "$ac_t""$XGETTEXT" 1>&6
3475 echo "$ac_t""no" 1>&6
3478 cat > conftest.
$ac_ext <<EOF
3479 #line 3480 "configure"
3480 #include "confdefs.h"
3483 extern int _nl_msg_cat_cntr;
3484 return _nl_msg_cat_cntr
3487 if { (eval echo configure
:3488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3492 echo "configure: failed program was:" >&5
3493 cat conftest.
$ac_ext >&5
3504 echo "$ac_t""no" 1>&6
3509 if test "$CATOBJEXT" = "NONE"; then
3510 nls_cv_use_gnu_gettext
=yes
3514 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3515 INTLOBJS
="\$(GETTOBJS)"
3516 # Extract the first word of "msgfmt", so it can be a program name with args.
3517 set dummy msgfmt
; ac_word
=$2
3518 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3519 echo "configure:3520: checking for $ac_word" >&5
3520 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3521 echo $ac_n "(cached) $ac_c" 1>&6
3525 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3528 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3529 for ac_dir
in $PATH; do
3530 test -z "$ac_dir" && ac_dir
=.
3531 if test -f $ac_dir/$ac_word; then
3532 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3533 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3539 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
3543 MSGFMT
="$ac_cv_path_MSGFMT"
3544 if test -n "$MSGFMT"; then
3545 echo "$ac_t""$MSGFMT" 1>&6
3547 echo "$ac_t""no" 1>&6
3550 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3551 set dummy gmsgfmt
; ac_word
=$2
3552 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3553 echo "configure:3554: checking for $ac_word" >&5
3554 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3555 echo $ac_n "(cached) $ac_c" 1>&6
3559 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3562 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3565 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3567 for ac_dir
in $ac_dummy; do
3568 test -z "$ac_dir" && ac_dir
=.
3569 if test -f $ac_dir/$ac_word; then
3570 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3575 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3579 GMSGFMT
="$ac_cv_path_GMSGFMT"
3580 if test -n "$GMSGFMT"; then
3581 echo "$ac_t""$GMSGFMT" 1>&6
3583 echo "$ac_t""no" 1>&6
3586 # Extract the first word of "xgettext", so it can be a program name with args.
3587 set dummy xgettext
; ac_word
=$2
3588 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3589 echo "configure:3590: checking for $ac_word" >&5
3590 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3591 echo $ac_n "(cached) $ac_c" 1>&6
3595 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3598 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3599 for ac_dir
in $PATH; do
3600 test -z "$ac_dir" && ac_dir
=.
3601 if test -f $ac_dir/$ac_word; then
3602 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3603 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
3609 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
3613 XGETTEXT
="$ac_cv_path_XGETTEXT"
3614 if test -n "$XGETTEXT"; then
3615 echo "$ac_t""$XGETTEXT" 1>&6
3617 echo "$ac_t""no" 1>&6
3621 USE_INCLUDED_LIBINTL
=yes
3625 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
3627 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
3628 nls_cv_header_intl
=libintl.h
3629 nls_cv_header_libgt
=libgettext.h
3632 if test "$XGETTEXT" != ":"; then
3633 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
3636 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
3641 # We need to process the po/ directory.
3645 nls_cv_header_intl
=libintl.h
3646 nls_cv_header_libgt
=libgettext.h
3649 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3650 # because some of the sources are only built for this goal.
3651 if test "$PACKAGE" = gettext; then
3653 USE_INCLUDED_LIBINTL
=yes
3656 for lang
in $ALL_LINGUAS; do
3657 GMOFILES
="$GMOFILES $lang.gmo"
3658 POFILES
="$POFILES $lang.po"
3674 if test "x$CATOBJEXT" != "x"; then
3675 if test "x$ALL_LINGUAS" = "x"; then
3678 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3679 echo "configure:3680: checking for catalogs to be installed" >&5
3681 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
3682 case "$ALL_LINGUAS" in
3683 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
3686 LINGUAS
=$NEW_LINGUAS
3687 echo "$ac_t""$LINGUAS" 1>&6
3690 if test -n "$LINGUAS"; then
3691 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
3695 if test $ac_cv_header_locale_h = yes; then
3696 INCLUDE_LOCALE_H
="#include <locale.h>"
3699 /* The system does not provide the header <locale.h>. Take care yourself. */"
3703 if test -f $srcdir/po2tbl.
sed.
in; then
3704 if test "$CATOBJEXT" = ".cat"; then
3705 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3706 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
3707 echo "configure:3708: checking for linux/version.h" >&5
3708 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3709 echo $ac_n "(cached) $ac_c" 1>&6
3711 cat > conftest.
$ac_ext <<EOF
3712 #line 3713 "configure"
3713 #include "confdefs.h"
3714 #include <linux/version.h>
3716 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3717 { (eval echo configure
:3718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3718 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3719 if test -z "$ac_err"; then
3721 eval "ac_cv_header_$ac_safe=yes"
3724 echo "configure: failed program was:" >&5
3725 cat conftest.
$ac_ext >&5
3727 eval "ac_cv_header_$ac_safe=no"
3731 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3732 echo "$ac_t""yes" 1>&6
3735 echo "$ac_t""no" 1>&6
3740 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
3742 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3743 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
3746 if test "$PACKAGE" = "gettext"; then
3756 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
3762 if test -d $srcdir/po
; then
3763 test -d po || mkdir po
3764 if test "x$srcdir" != "x."; then
3765 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3766 posrcprefix
="$srcdir/"
3768 posrcprefix
="../$srcdir/"
3774 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3775 < $srcdir/po
/POTFILES.
in > po
/POTFILES
3779 # Permit host specific settings.
3780 .
${srcdir}/configure.
host
3783 # Find a good install program. We prefer a C program (faster),
3784 # so one script is as good as another. But avoid the broken or
3785 # incompatible versions:
3786 # SysV /etc/install, /usr/sbin/install
3787 # SunOS /usr/etc/install
3788 # IRIX /sbin/install
3790 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3791 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3792 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3793 # ./install, which can be erroneously created by make from ./install.sh.
3794 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3795 echo "configure:3796: checking for a BSD compatible install" >&5
3796 if test -z "$INSTALL"; then
3797 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3798 echo $ac_n "(cached) $ac_c" 1>&6
3800 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
3801 for ac_dir
in $PATH; do
3802 # Account for people who put trailing slashes in PATH elements.
3804 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
3806 # OSF1 and SCO ODT 3.0 have their own names for install.
3807 # Don't use installbsd from OSF since it installs stuff as root
3809 for ac_prog
in ginstall scoinst
install; do
3810 if test -f $ac_dir/$ac_prog; then
3811 if test $ac_prog = install &&
3812 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
3813 # AIX install. It has an incompatible calling convention.
3816 ac_cv_path_install
="$ac_dir/$ac_prog -c"
3827 if test "${ac_cv_path_install+set}" = set; then
3828 INSTALL
="$ac_cv_path_install"
3830 # As a last resort, use the slow shell script. We don't cache a
3831 # path for INSTALL within a source directory, because that will
3832 # break other packages using the cache if that directory is
3833 # removed, or if the path is relative.
3834 INSTALL
="$ac_install_sh"
3837 echo "$ac_t""$INSTALL" 1>&6
3839 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3840 # It thinks the first close brace ends the variable substitution.
3841 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3843 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
3845 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3848 BFD_HOST_64BIT_LONG
=0
3849 BFD_HOST_64_BIT_DEFINED
=0
3852 if test "x${HOST_64BIT_TYPE}" = "xlong"; then
3853 BFD_HOST_64BIT_LONG
=1
3854 elif test "x${HOST_64BIT_TYPE}" != "x"; then
3855 BFD_HOST_64_BIT_DEFINED
=1
3856 BFD_HOST_64_BIT
=${HOST_64BIT_TYPE}
3857 BFD_HOST_U_64_BIT
=${HOST_U_64BIT_TYPE}
3864 # Put a plausible default for CC_FOR_BUILD in Makefile.
3865 if test -z "$CC_FOR_BUILD"; then
3866 if test "x$cross_compiling" = "xno"; then
3867 CC_FOR_BUILD
='$(CC)'
3873 # Also set EXEEXT_FOR_BUILD.
3874 if test "x$cross_compiling" = "xno"; then
3875 EXEEXT_FOR_BUILD
='$(EXEEXT)'
3877 echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
3878 echo "configure:3879: checking for build system executable suffix" >&5
3879 if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
3880 echo $ac_n "(cached) $ac_c" 1>&6
3883 echo 'int main () { return 0; }' > conftest.c
3884 bfd_cv_build_exeext
=
3885 ${CC_FOR_BUILD} -o conftest conftest.c
1>&5 2>&5
3886 for file in conftest.
*; do
3888 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
3889 *) bfd_cv_build_exeext
=`echo $file | sed -e s/conftest//` ;;
3893 test x
"${bfd_cv_build_exeext}" = x
&& bfd_cv_build_exeext
=no
3896 echo "$ac_t""$bfd_cv_build_exeext" 1>&6
3898 test x
"${bfd_cv_build_exeext}" != xno
&& EXEEXT_FOR_BUILD
=${bfd_cv_build_exeext}
3902 for ac_hdr
in stddef.h string.h
strings.h stdlib.h
time.h unistd.h
3904 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3905 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3906 echo "configure:3907: checking for $ac_hdr" >&5
3907 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3908 echo $ac_n "(cached) $ac_c" 1>&6
3910 cat > conftest.
$ac_ext <<EOF
3911 #line 3912 "configure"
3912 #include "confdefs.h"
3915 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3916 { (eval echo configure
:3917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3917 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3918 if test -z "$ac_err"; then
3920 eval "ac_cv_header_$ac_safe=yes"
3923 echo "configure: failed program was:" >&5
3924 cat conftest.
$ac_ext >&5
3926 eval "ac_cv_header_$ac_safe=no"
3930 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3931 echo "$ac_t""yes" 1>&6
3932 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3933 cat >> confdefs.h
<<EOF
3934 #define $ac_tr_hdr 1
3938 echo "$ac_t""no" 1>&6
3942 for ac_hdr
in fcntl.h sys
/file.h sys
/time.h
3944 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3945 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3946 echo "configure:3947: checking for $ac_hdr" >&5
3947 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3948 echo $ac_n "(cached) $ac_c" 1>&6
3950 cat > conftest.
$ac_ext <<EOF
3951 #line 3952 "configure"
3952 #include "confdefs.h"
3955 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3956 { (eval echo configure
:3957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3957 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3958 if test -z "$ac_err"; then
3960 eval "ac_cv_header_$ac_safe=yes"
3963 echo "configure: failed program was:" >&5
3964 cat conftest.
$ac_ext >&5
3966 eval "ac_cv_header_$ac_safe=no"
3970 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3971 echo "$ac_t""yes" 1>&6
3972 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3973 cat >> confdefs.h
<<EOF
3974 #define $ac_tr_hdr 1
3978 echo "$ac_t""no" 1>&6
3982 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3983 echo "configure:3984: checking whether time.h and sys/time.h may both be included" >&5
3984 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3985 echo $ac_n "(cached) $ac_c" 1>&6
3987 cat > conftest.
$ac_ext <<EOF
3988 #line 3989 "configure"
3989 #include "confdefs.h"
3990 #include <sys/types.h>
3991 #include <sys/time.h>
3997 if { (eval echo configure
:3998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3999 ac_cv_header_time
=yes
4001 echo "configure: failed program was:" >&5
4002 cat conftest.
$ac_ext >&5
4004 ac_cv_header_time
=no
4009 echo "$ac_t""$ac_cv_header_time" 1>&6
4010 if test $ac_cv_header_time = yes; then
4011 cat >> confdefs.h
<<\EOF
4012 #define TIME_WITH_SYS_TIME 1
4018 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
4020 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4021 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4022 echo "configure:4023: checking for $ac_hdr that defines DIR" >&5
4023 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
4024 echo $ac_n "(cached) $ac_c" 1>&6
4026 cat > conftest.
$ac_ext <<EOF
4027 #line 4028 "configure"
4028 #include "confdefs.h"
4029 #include <sys/types.h>
4035 if { (eval echo configure
:4036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4037 eval "ac_cv_header_dirent_$ac_safe=yes"
4039 echo "configure: failed program was:" >&5
4040 cat conftest.
$ac_ext >&5
4042 eval "ac_cv_header_dirent_$ac_safe=no"
4046 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4047 echo "$ac_t""yes" 1>&6
4048 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4049 cat >> confdefs.h
<<EOF
4050 #define $ac_tr_hdr 1
4052 ac_header_dirent
=$ac_hdr; break
4054 echo "$ac_t""no" 1>&6
4057 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4058 if test $ac_header_dirent = dirent.h
; then
4059 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4060 echo "configure:4061: checking for opendir in -ldir" >&5
4061 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
4062 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4063 echo $ac_n "(cached) $ac_c" 1>&6
4065 ac_save_LIBS
="$LIBS"
4067 cat > conftest.
$ac_ext <<EOF
4068 #line 4069 "configure"
4069 #include "confdefs.h"
4070 /* Override any gcc2 internal prototype to avoid an error. */
4071 /* We use char because int might match the return type of a gcc2
4072 builtin and then its argument prototype would still apply. */
4079 if { (eval echo configure
:4080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4081 eval "ac_cv_lib_$ac_lib_var=yes"
4083 echo "configure: failed program was:" >&5
4084 cat conftest.
$ac_ext >&5
4086 eval "ac_cv_lib_$ac_lib_var=no"
4089 LIBS
="$ac_save_LIBS"
4092 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4093 echo "$ac_t""yes" 1>&6
4096 echo "$ac_t""no" 1>&6
4100 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4101 echo "configure:4102: checking for opendir in -lx" >&5
4102 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
4103 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4104 echo $ac_n "(cached) $ac_c" 1>&6
4106 ac_save_LIBS
="$LIBS"
4108 cat > conftest.
$ac_ext <<EOF
4109 #line 4110 "configure"
4110 #include "confdefs.h"
4111 /* Override any gcc2 internal prototype to avoid an error. */
4112 /* We use char because int might match the return type of a gcc2
4113 builtin and then its argument prototype would still apply. */
4120 if { (eval echo configure
:4121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4122 eval "ac_cv_lib_$ac_lib_var=yes"
4124 echo "configure: failed program was:" >&5
4125 cat conftest.
$ac_ext >&5
4127 eval "ac_cv_lib_$ac_lib_var=no"
4130 LIBS
="$ac_save_LIBS"
4133 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4134 echo "$ac_t""yes" 1>&6
4137 echo "$ac_t""no" 1>&6
4142 for ac_func
in fcntl getpagesize setitimer sysconf fdopen getuid getgid
4144 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4145 echo "configure:4146: checking for $ac_func" >&5
4146 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4147 echo $ac_n "(cached) $ac_c" 1>&6
4149 cat > conftest.
$ac_ext <<EOF
4150 #line 4151 "configure"
4151 #include "confdefs.h"
4152 /* System header to define __stub macros and hopefully few prototypes,
4153 which can conflict with char $ac_func(); below. */
4155 /* Override any gcc2 internal prototype to avoid an error. */
4156 /* We use char because int might match the return type of a gcc2
4157 builtin and then its argument prototype would still apply. */
4162 /* The GNU C library defines this for functions which it implements
4163 to always fail with ENOSYS. Some functions are actually named
4164 something starting with __ and the normal name is an alias. */
4165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4173 if { (eval echo configure
:4174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4175 eval "ac_cv_func_$ac_func=yes"
4177 echo "configure: failed program was:" >&5
4178 cat conftest.
$ac_ext >&5
4180 eval "ac_cv_func_$ac_func=no"
4185 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4186 echo "$ac_t""yes" 1>&6
4187 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4188 cat >> confdefs.h
<<EOF
4189 #define $ac_tr_func 1
4193 echo "$ac_t""no" 1>&6
4200 *-*-msdos* |
*-*-go32* |
*-*-mingw32* |
*-*-cygwin* |
*-*-windows*)
4201 cat >> confdefs.h
<<\EOF
4202 #define USE_BINARY_FOPEN 1
4207 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4208 echo "configure:4209: checking whether strstr must be declared" >&5
4209 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
4210 echo $ac_n "(cached) $ac_c" 1>&6
4212 cat > conftest.
$ac_ext <<EOF
4213 #line 4214 "configure"
4214 #include "confdefs.h"
4217 #ifdef HAVE_STRING_H
4220 #ifdef HAVE_STRINGS_H
4221 #include <strings.h>
4224 #ifdef HAVE_STDLIB_H
4227 #ifdef HAVE_UNISTD_H
4231 char *(*pfn) = (char *(*)) strstr
4234 if { (eval echo configure
:4235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4236 bfd_cv_decl_needed_strstr
=no
4238 echo "configure: failed program was:" >&5
4239 cat conftest.
$ac_ext >&5
4241 bfd_cv_decl_needed_strstr
=yes
4246 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4247 if test $bfd_cv_decl_needed_strstr = yes; then
4248 cat >> confdefs.h
<<\EOF
4249 #define NEED_DECLARATION_STRSTR 1
4254 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
4255 echo "configure:4256: checking whether malloc must be declared" >&5
4256 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
4257 echo $ac_n "(cached) $ac_c" 1>&6
4259 cat > conftest.
$ac_ext <<EOF
4260 #line 4261 "configure"
4261 #include "confdefs.h"
4264 #ifdef HAVE_STRING_H
4267 #ifdef HAVE_STRINGS_H
4268 #include <strings.h>
4271 #ifdef HAVE_STDLIB_H
4274 #ifdef HAVE_UNISTD_H
4278 char *(*pfn) = (char *(*)) malloc
4281 if { (eval echo configure
:4282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4283 bfd_cv_decl_needed_malloc
=no
4285 echo "configure: failed program was:" >&5
4286 cat conftest.
$ac_ext >&5
4288 bfd_cv_decl_needed_malloc
=yes
4293 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
4294 if test $bfd_cv_decl_needed_malloc = yes; then
4295 cat >> confdefs.h
<<\EOF
4296 #define NEED_DECLARATION_MALLOC 1
4301 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
4302 echo "configure:4303: checking whether realloc must be declared" >&5
4303 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
4304 echo $ac_n "(cached) $ac_c" 1>&6
4306 cat > conftest.
$ac_ext <<EOF
4307 #line 4308 "configure"
4308 #include "confdefs.h"
4311 #ifdef HAVE_STRING_H
4314 #ifdef HAVE_STRINGS_H
4315 #include <strings.h>
4318 #ifdef HAVE_STDLIB_H
4321 #ifdef HAVE_UNISTD_H
4325 char *(*pfn) = (char *(*)) realloc
4328 if { (eval echo configure
:4329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4330 bfd_cv_decl_needed_realloc
=no
4332 echo "configure: failed program was:" >&5
4333 cat conftest.
$ac_ext >&5
4335 bfd_cv_decl_needed_realloc
=yes
4340 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
4341 if test $bfd_cv_decl_needed_realloc = yes; then
4342 cat >> confdefs.h
<<\EOF
4343 #define NEED_DECLARATION_REALLOC 1
4348 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
4349 echo "configure:4350: checking whether free must be declared" >&5
4350 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
4351 echo $ac_n "(cached) $ac_c" 1>&6
4353 cat > conftest.
$ac_ext <<EOF
4354 #line 4355 "configure"
4355 #include "confdefs.h"
4358 #ifdef HAVE_STRING_H
4361 #ifdef HAVE_STRINGS_H
4362 #include <strings.h>
4365 #ifdef HAVE_STDLIB_H
4368 #ifdef HAVE_UNISTD_H
4372 char *(*pfn) = (char *(*)) free
4375 if { (eval echo configure
:4376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4377 bfd_cv_decl_needed_free
=no
4379 echo "configure: failed program was:" >&5
4380 cat conftest.
$ac_ext >&5
4382 bfd_cv_decl_needed_free
=yes
4387 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
4388 if test $bfd_cv_decl_needed_free = yes; then
4389 cat >> confdefs.h
<<\EOF
4390 #define NEED_DECLARATION_FREE 1
4395 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
4396 echo "configure:4397: checking whether getenv must be declared" >&5
4397 if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
4398 echo $ac_n "(cached) $ac_c" 1>&6
4400 cat > conftest.
$ac_ext <<EOF
4401 #line 4402 "configure"
4402 #include "confdefs.h"
4405 #ifdef HAVE_STRING_H
4408 #ifdef HAVE_STRINGS_H
4409 #include <strings.h>
4412 #ifdef HAVE_STDLIB_H
4415 #ifdef HAVE_UNISTD_H
4419 char *(*pfn) = (char *(*)) getenv
4422 if { (eval echo configure
:4423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4424 bfd_cv_decl_needed_getenv
=no
4426 echo "configure: failed program was:" >&5
4427 cat conftest.
$ac_ext >&5
4429 bfd_cv_decl_needed_getenv
=yes
4434 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
4435 if test $bfd_cv_decl_needed_getenv = yes; then
4436 cat >> confdefs.h
<<\EOF
4437 #define NEED_DECLARATION_GETENV 1
4443 # If we are configured native, pick a core file support file.
4447 if test "${target}" = "${host}"; then
4449 alpha
*-*-linux-gnu*)
4450 COREFILE
=trad-core.lo
4451 TRAD_HEADER
='"hosts/alphalinux.h"'
4453 alpha
*-*-netbsd*) COREFILE
=netbsd-core.lo
;;
4454 alpha
*-*-*) COREFILE
=osf-core.lo
;;
4455 arm-
*-riscix) COREFILE
=trad-core.lo
;;
4456 hppa
*-*-hpux*) COREFILE
=hpux-core.lo
;;
4457 hppa
*-*-hiux*) COREFILE
=hpux-core.lo
;;
4458 hppa
*-*-mpeix*) COREFILE
=hpux-core.lo
;;
4459 hppa
*-*-bsd*) COREFILE
="hpux-core.lo hppabsd-core.lo"
4460 COREFLAG
="-DHPUX_CORE -DHPPABSD_CORE" ;;
4462 COREFILE
=trad-core.lo
4463 TRAD_HEADER
='"hosts/i370linux.h"'
4466 i
[3456]86-sequent-bsd*)
4467 COREFILE
=trad-core.lo
4468 TRAD_HEADER
='"hosts/symmetry.h"'
4470 i
[3456]86-sequent-sysv4*) ;;
4471 i
[3456]86-sequent-sysv*)
4472 COREFILE
=trad-core.lo
4473 TRAD_HEADER
='"hosts/symmetry.h"'
4475 i
[3456]86-*-bsd* | i
[3456]86-*-freebsd*)
4476 COREFILE
=trad-core.lo
4477 TRAD_HEADER
='"hosts/i386bsd.h"'
4479 i
[3456]86-*-netbsd* | i
[3456]86-*-openbsd*)
4480 COREFILE
=netbsd-core.lo
4482 i
[3456]86-esix-sysv3*)
4483 COREFILE
=trad-core.lo
4484 TRAD_HEADER
='"hosts/esix.h"'
4486 i
[3456]86-*-sco3.2v5
*)
4487 COREFILE
=sco5-core.lo
4489 i
[3456]86-*-sco* | i
[3456]86-*-isc*)
4490 COREFILE
=trad-core.lo
4491 TRAD_HEADER
='"hosts/i386sco.h"'
4494 COREFILE
=trad-core.lo
4495 TRAD_HEADER
='"hosts/i386mach3.h"'
4497 i
[3456]86-*-linux-gnu*)
4498 COREFILE
=trad-core.lo
4499 TRAD_HEADER
='"hosts/i386linux.h"'
4501 i
[3456]86-*-isc*) COREFILE
=trad-core.lo
;;
4502 i
[3456]86-*-aix*) COREFILE
=aix386-core.lo
;;
4503 i860-
*-mach3* | i860-
*-osf1*)
4504 COREFILE
=trad-core.lo
4505 TRAD_HEADER
='"hosts/i860mach3.h"'
4508 COREFILE
=trad-core.lo
4509 TRAD_HEADER
='"hosts/mipsbsd.h"'
4512 COREFILE
=trad-core.lo
4513 TRAD_HEADER
='"hosts/mipsmach3.h"'
4515 mips-
*-netbsd* | mips
*-*-openbsd*)
4516 COREFILE
=netbsd-core.lo
4519 COREFILE
=trad-core.lo
4520 TRAD_HEADER
='"hosts/decstation.h"'
4522 mips-sgi-irix4
*) COREFILE
=irix-core.lo
;;
4523 mips-sgi-irix5
*) COREFILE
=irix-core.lo
;;
4524 mips-sgi-irix6
*) COREFILE
=irix-core.lo
;;
4526 COREFILE
=trad-core.lo
4527 TRAD_HEADER
='"hosts/mipsmach3.h"'
4530 mips-
*-sysv* | mips-
*-riscos*)
4531 COREFILE
=trad-core.lo
4532 TRAD_HEADER
='"hosts/riscos.h"'
4535 COREFILE
=trad-core.lo
4536 TRAD_HEADER
='"hosts/news-mips.h"'
4539 COREFILE
=trad-core.lo
4540 TRAD_HEADER
='"hosts/dpx2.h"'
4542 m68
*-hp-hpux*) COREFILE
=hpux-core.lo
;;
4544 COREFILE
=trad-core.lo
4545 TRAD_HEADER
='"hosts/hp300bsd.h"'
4548 COREFILE
=trad-core.lo
4549 TRAD_HEADER
='"hosts/m68klinux.h"'
4551 m68
*-motorola-sysv*)
4552 COREFILE
=trad-core.lo
4553 TRAD_HEADER
='"hosts/delta68.h"'
4556 COREFILE
=trad-core.lo
4557 TRAD_HEADER
='"hosts/news.h"'
4559 m68
*-*-netbsd* | m68
*-*-openbsd*)
4560 COREFILE
=netbsd-core.lo
4563 COREFILE
=trad-core.lo
4564 TRAD_HEADER
='"hosts/m68kaux.h"'
4567 m88
*-motorola-sysv*) COREFILE
=ptrace-core.lo
;;
4569 COREFILE
=trad-core.lo
4570 TRAD_HEADER
='"hosts/m88kmach3.h"'
4573 COREFILE
=trad-core.lo
4574 TRAD_HEADER
='"hosts/pc532mach.h"'
4576 ns32k-
*-netbsd* | ns32k-
*-openbsd*)
4577 COREFILE
=netbsd-core.lo
4579 rs6000-
*-lynx*) COREFILE
=lynx-core.lo
;;
4580 rs6000-
*-aix4.
[3-9]* | powerpc-
*-aix4.
[3-9]*)
4581 COREFILE
=rs6000-core.lo
4582 COREFLAG
="$COREFLAG -DAIX_CORE_DUMPX_CORE"
4584 rs6000-
*-aix4*) COREFILE
=rs6000-core.lo
;;
4585 rs6000-
*-*) COREFILE
=rs6000-core.lo
;;
4586 powerpc-
*-*bsd
*) COREFILE
=netbsd-core.lo
;;
4587 powerpc-
*-aix4*) COREFILE
=rs6000-core.lo
;;
4588 powerpc-
*-aix*) COREFILE
=rs6000-core.lo
;;
4590 powerpc-
*-netbsd*) COREFILE
=netbsd-core.lo
;;
4591 sparc-
*-netbsd* | sparc-
*-openbsd*)
4592 COREFILE
=netbsd-core.lo
4595 COREFILE
=trad-core.lo
4596 TRAD_HEADER
='"hosts/tahoe.h"'
4599 COREFILE
=trad-core.lo
4600 TRAD_HEADER
='"hosts/vaxult2.h"'
4603 COREFILE
=trad-core.lo
4604 TRAD_HEADER
='"hosts/vaxult2.h"'
4607 COREFILE
=trad-core.lo
4608 TRAD_HEADER
='"hosts/vaxbsd.h"'
4613 aix386-core.lo
) COREFLAG
=-DAIX386_CORE ;;
4614 hppabsd-core.lo
) COREFLAG
=-DHPPABSD_CORE ;;
4615 hpux-core.lo
) COREFLAG
=-DHPUX_CORE ;;
4616 irix-core.lo
) COREFLAG
=-DIRIX_CORE ;;
4617 lynx-core.lo
) COREFLAG
=-DLYNX_CORE ;;
4618 netbsd-core.lo
) COREFLAG
=-DNETBSD_CORE ;;
4619 osf-core.lo
) COREFLAG
=-DOSF_CORE ;;
4620 ptrace-core.lo
) COREFLAG
=-DPTRACE_CORE ;;
4621 rs6000-core.lo
) COREFLAG
="$COREFLAG -DAIX_CORE" ;;
4622 sco5-core.lo
) COREFLAG
="$COREFLAG -DSCO5_CORE" ;;
4623 trad-core.lo
) COREFLAG
="$COREFLAG -DTRAD_CORE" ;;
4626 # ELF corefile support has several flavors, but all of
4627 # them use something called <sys/procfs.h>
4628 for ac_hdr
in sys
/procfs.h
4630 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4631 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4632 echo "configure:4633: checking for $ac_hdr" >&5
4633 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4634 echo $ac_n "(cached) $ac_c" 1>&6
4636 cat > conftest.
$ac_ext <<EOF
4637 #line 4638 "configure"
4638 #include "confdefs.h"
4641 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4642 { (eval echo configure
:4643: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4643 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4644 if test -z "$ac_err"; then
4646 eval "ac_cv_header_$ac_safe=yes"
4649 echo "configure: failed program was:" >&5
4650 cat conftest.
$ac_ext >&5
4652 eval "ac_cv_header_$ac_safe=no"
4656 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4657 echo "$ac_t""yes" 1>&6
4658 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4659 cat >> confdefs.h
<<EOF
4660 #define $ac_tr_hdr 1
4664 echo "$ac_t""no" 1>&6
4668 if test "$ac_cv_header_sys_procfs_h" = yes; then
4669 echo $ac_n "checking for prstatus_t in sys/procfs.h""... $ac_c" 1>&6
4670 echo "configure:4671: checking for prstatus_t in sys/procfs.h" >&5
4671 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus_t'+set}'`\" = set"; then
4672 echo $ac_n "(cached) $ac_c" 1>&6
4674 cat > conftest.
$ac_ext <<EOF
4675 #line 4676 "configure"
4676 #include "confdefs.h"
4677 #include <sys/procfs.h>
4682 if { (eval echo configure
:4683: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4684 bfd_cv_have_sys_procfs_type_prstatus_t
=yes
4686 echo "configure: failed program was:" >&5
4687 cat conftest.
$ac_ext >&5
4689 bfd_cv_have_sys_procfs_type_prstatus_t
=no
4695 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
4696 cat >> confdefs.h
<<\EOF
4697 #define HAVE_PRSTATUS_T 1
4701 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus_t" 1>&6
4703 echo $ac_n "checking for prstatus_t.pr_who in sys/procfs.h""... $ac_c" 1>&6
4704 echo "configure:4705: checking for prstatus_t.pr_who in sys/procfs.h" >&5
4705 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who'+set}'`\" = set"; then
4706 echo $ac_n "(cached) $ac_c" 1>&6
4708 cat > conftest.
$ac_ext <<EOF
4709 #line 4710 "configure"
4710 #include "confdefs.h"
4711 #include <sys/procfs.h>
4713 prstatus_t avar; void* aref = (void*) &avar.pr_who
4716 if { (eval echo configure
:4717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4718 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who
=yes
4720 echo "configure: failed program was:" >&5
4721 cat conftest.
$ac_ext >&5
4723 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who
=no
4729 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
4730 cat >> confdefs.h
<<\EOF
4731 #define HAVE_PRSTATUS_T_PR_WHO 1
4735 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" 1>&6
4737 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
4738 echo "configure:4739: checking for pstatus_t in sys/procfs.h" >&5
4739 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
4740 echo $ac_n "(cached) $ac_c" 1>&6
4742 cat > conftest.
$ac_ext <<EOF
4743 #line 4744 "configure"
4744 #include "confdefs.h"
4745 #include <sys/procfs.h>
4750 if { (eval echo configure
:4751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4752 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
4754 echo "configure: failed program was:" >&5
4755 cat conftest.
$ac_ext >&5
4757 bfd_cv_have_sys_procfs_type_pstatus_t
=no
4763 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
4764 cat >> confdefs.h
<<\EOF
4765 #define HAVE_PSTATUS_T 1
4769 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
4771 echo $ac_n "checking for prpsinfo_t in sys/procfs.h""... $ac_c" 1>&6
4772 echo "configure:4773: checking for prpsinfo_t in sys/procfs.h" >&5
4773 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo_t'+set}'`\" = set"; then
4774 echo $ac_n "(cached) $ac_c" 1>&6
4776 cat > conftest.
$ac_ext <<EOF
4777 #line 4778 "configure"
4778 #include "confdefs.h"
4779 #include <sys/procfs.h>
4784 if { (eval echo configure
:4785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4786 bfd_cv_have_sys_procfs_type_prpsinfo_t
=yes
4788 echo "configure: failed program was:" >&5
4789 cat conftest.
$ac_ext >&5
4791 bfd_cv_have_sys_procfs_type_prpsinfo_t
=no
4797 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
4798 cat >> confdefs.h
<<\EOF
4799 #define HAVE_PRPSINFO_T 1
4803 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo_t" 1>&6
4805 echo $ac_n "checking for psinfo_t in sys/procfs.h""... $ac_c" 1>&6
4806 echo "configure:4807: checking for psinfo_t in sys/procfs.h" >&5
4807 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo_t'+set}'`\" = set"; then
4808 echo $ac_n "(cached) $ac_c" 1>&6
4810 cat > conftest.
$ac_ext <<EOF
4811 #line 4812 "configure"
4812 #include "confdefs.h"
4813 #include <sys/procfs.h>
4818 if { (eval echo configure
:4819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4820 bfd_cv_have_sys_procfs_type_psinfo_t
=yes
4822 echo "configure: failed program was:" >&5
4823 cat conftest.
$ac_ext >&5
4825 bfd_cv_have_sys_procfs_type_psinfo_t
=no
4831 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
4832 cat >> confdefs.h
<<\EOF
4833 #define HAVE_PSINFO_T 1
4837 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo_t" 1>&6
4839 echo $ac_n "checking for lwpstatus_t in sys/procfs.h""... $ac_c" 1>&6
4840 echo "configure:4841: checking for lwpstatus_t in sys/procfs.h" >&5
4841 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpstatus_t'+set}'`\" = set"; then
4842 echo $ac_n "(cached) $ac_c" 1>&6
4844 cat > conftest.
$ac_ext <<EOF
4845 #line 4846 "configure"
4846 #include "confdefs.h"
4847 #include <sys/procfs.h>
4852 if { (eval echo configure
:4853: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4854 bfd_cv_have_sys_procfs_type_lwpstatus_t
=yes
4856 echo "configure: failed program was:" >&5
4857 cat conftest.
$ac_ext >&5
4859 bfd_cv_have_sys_procfs_type_lwpstatus_t
=no
4865 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
4866 cat >> confdefs.h
<<\EOF
4867 #define HAVE_LWPSTATUS_T 1
4871 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpstatus_t" 1>&6
4873 echo $ac_n "checking for lwpstatus_t.pr_context in sys/procfs.h""... $ac_c" 1>&6
4874 echo "configure:4875: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
4875 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context'+set}'`\" = set"; then
4876 echo $ac_n "(cached) $ac_c" 1>&6
4878 cat > conftest.
$ac_ext <<EOF
4879 #line 4880 "configure"
4880 #include "confdefs.h"
4881 #include <sys/procfs.h>
4883 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
4886 if { (eval echo configure
:4887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4888 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context
=yes
4890 echo "configure: failed program was:" >&5
4891 cat conftest.
$ac_ext >&5
4893 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context
=no
4899 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
4900 cat >> confdefs.h
<<\EOF
4901 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
4905 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" 1>&6
4907 echo $ac_n "checking for lwpstatus_t.pr_reg in sys/procfs.h""... $ac_c" 1>&6
4908 echo "configure:4909: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
4909 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg'+set}'`\" = set"; then
4910 echo $ac_n "(cached) $ac_c" 1>&6
4912 cat > conftest.
$ac_ext <<EOF
4913 #line 4914 "configure"
4914 #include "confdefs.h"
4915 #include <sys/procfs.h>
4917 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
4920 if { (eval echo configure
:4921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4922 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg
=yes
4924 echo "configure: failed program was:" >&5
4925 cat conftest.
$ac_ext >&5
4927 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg
=no
4933 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
4934 cat >> confdefs.h
<<\EOF
4935 #define HAVE_LWPSTATUS_T_PR_REG 1
4939 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" 1>&6
4941 echo $ac_n "checking for win32_pstatus_t in sys/procfs.h""... $ac_c" 1>&6
4942 echo "configure:4943: checking for win32_pstatus_t in sys/procfs.h" >&5
4943 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_win32_pstatus_t'+set}'`\" = set"; then
4944 echo $ac_n "(cached) $ac_c" 1>&6
4946 cat > conftest.
$ac_ext <<EOF
4947 #line 4948 "configure"
4948 #include "confdefs.h"
4949 #include <sys/procfs.h>
4951 win32_pstatus_t avar
4954 if { (eval echo configure
:4955: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4956 bfd_cv_have_sys_procfs_type_win32_pstatus_t
=yes
4958 echo "configure: failed program was:" >&5
4959 cat conftest.
$ac_ext >&5
4961 bfd_cv_have_sys_procfs_type_win32_pstatus_t
=no
4967 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
4968 cat >> confdefs.h
<<\EOF
4969 #define HAVE_WIN32_PSTATUS_T 1
4973 echo "$ac_t""$bfd_cv_have_sys_procfs_type_win32_pstatus_t" 1>&6
4979 if test -n "$TRAD_HEADER"; then
4980 cat >> confdefs.h
<<EOF
4981 #define TRAD_HEADER $TRAD_HEADER
4986 # Horrible hacks to build DLLs on Windows.
4991 if test "$enable_shared" = "yes"; then
4992 WIN32LDFLAGS
="-no-undefined"
4993 WIN32LIBADD
="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
5002 # Canonicalize the secondary target names.
5003 if test -n "$enable_targets" ; then
5004 for targ
in `echo $enable_targets | sed 's/,/ /g'`
5006 result
=`$ac_config_sub $targ 2>/dev/null`
5007 if test -n "$result" ; then
5008 canon_targets
="$canon_targets $result"
5010 # Allow targets that config.sub doesn't recognize, like "all".
5011 canon_targets
="$canon_targets $targ"
5021 for targ
in $target $canon_targets
5023 if test "x$targ" = "xall"; then
5026 .
$srcdir/config.bfd
5027 if test "x$targ" = "x$target"; then
5030 selvecs
="$selvecs $targ_defvec $targ_selvecs"
5031 selarchs
="$selarchs $targ_archs"
5032 TDEFINES
="$TDEFINES $targ_cflags"
5037 # This processing still needs to be done if we're to decide properly whether
5038 # 64-bit support needs to be compiled in. Currently, it will be included if
5039 # the default or any other explicitly requested target requires it; it
5040 # will not be included on a 32-bit host if no 64-bit target is requested, and
5041 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
5044 # uniq the default and selected vectors in all the configured targets.
5046 for i
in $selvecs ; do
5055 # uniq the architectures in all the configured targets.
5057 for i
in $selarchs ; do
5065 # Target backend .o files.
5068 elf
="elf.lo elflink.lo dwarf2.lo dwarf1.lo"
5073 # This list is alphabetized to make it easy to compare
5074 # with the two vector lists in targets.c.
5075 a29kcoff_big_vec
) tb
="$tb coff-a29k.lo cofflink.lo" ;;
5076 a_out_adobe_vec
) tb
="$tb aout-adobe.lo aout32.lo" ;;
5077 armcoff_little_vec
) tb
="$tb coff-arm.lo cofflink.lo " ;;
5078 armcoff_big_vec
) tb
="$tb coff-arm.lo cofflink.lo " ;;
5079 armnetbsd_vec
) tb
="$tb armnetbsd.lo aout32.lo" ;;
5080 armpe_little_vec
) tb
="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
5081 armpe_big_vec
) tb
="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
5082 armpei_little_vec
) tb
="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
5083 armpei_big_vec
) tb
="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
5084 arm_epoc_pe_little_vec
) tb
="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
5085 arm_epoc_pe_big_vec
) tb
="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
5086 arm_epoc_pei_little_vec
) tb
="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
5087 arm_epoc_pei_big_vec
) tb
="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
5088 aout0_big_vec
) tb
="$tb aout0.lo aout32.lo" ;;
5089 aout_arm_big_vec
) tb
="$tb aout-arm.lo aout32.lo" ;;
5090 aout_arm_little_vec
) tb
="$tb aout-arm.lo aout32.lo" ;;
5091 aout_mips_big_vec
) tb
="$tb mipsbsd.lo aout32.lo" ;;
5092 aout_mips_little_vec
) tb
="$tb mipsbsd.lo aout32.lo" ;;
5093 apollocoff_vec
) tb
="$tb coff-apollo.lo" ;;
5094 b_out_vec_big_host
) tb
="$tb bout.lo aout32.lo" ;;
5095 b_out_vec_little_host
) tb
="$tb bout.lo aout32.lo" ;;
5096 bfd_efi_app_ia32_vec
) tb
="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
5097 bfd_efi_app_ia64_vec
) tb
="$tb efi-app-ia64.lo peigen.lo cofflink.lo"
5099 bfd_elf64_alpha_vec
) tb
="$tb elf64-alpha.lo elf64.lo $elf"
5101 bfd_elf64_hppa_vec
) tb
="$tb elf64-hppa.lo elf64.lo $elf"
5103 bfd_elf64_ia64_little_vec
) tb
="$tb elf64-ia64.lo elf64.lo $elf"
5105 bfd_elf64_ia64_big_vec
) tb
="$tb elf64-ia64.lo elf64.lo $elf"
5107 bfd_elf32_avr_vec
) tb
="$tb elf32-avr.lo elf32.lo $elf" ;;
5108 bfd_elf32_littlearc_vec
) tb
="$tb elf32-arc.lo elf32.lo $elf" ;;
5109 bfd_elf32_littlearm_vec
) tb
="$tb elfarm-nabi.lo elf32.lo $elf" ;;
5110 bfd_elf32_littlearm_oabi_vec
) tb
="$tb elfarm-oabi.lo elf32.lo $elf" ;;
5111 bfd_elf32_bigarc_vec
) tb
="$tb elf32-arc.lo elf32.lo $elf" ;;
5112 bfd_elf32_bigarm_vec
) tb
="$tb elfarm-nabi.lo elf32.lo $elf" ;;
5113 bfd_elf32_bigarm_oabi_vec
) tb
="$tb elfarm-oabi.lo elf32.lo $elf" ;;
5114 bfd_elf32_big_generic_vec
) tb
="$tb elf32-gen.lo elf32.lo $elf" ;;
5115 bfd_elf32_bigmips_vec
) tb
="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
5116 bfd_elf64_bigmips_vec
) tb
="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"
5118 bfd_elf32_cris_vec
) tb
="$tb elf32-cris.lo elf32.lo $elf" ;;
5119 bfd_elf32_d10v_vec
) tb
="$tb elf32-d10v.lo elf32.lo $elf" ;;
5120 bfd_elf32_d30v_vec
) tb
="$tb elf32-d30v.lo elf32.lo $elf" ;;
5121 bfd_elf32_fr30_vec
) tb
="$tb elf32-fr30.lo elf32.lo $elf" ;;
5122 bfd_elf32_hppa_vec
) tb
="$tb elf32-hppa.lo elf32.lo $elf" ;;
5123 bfd_elf32_i370_vec
) tb
="$tb elf32-i370.lo elf32.lo $elf" ;;
5124 bfd_elf32_i386_vec
) tb
="$tb elf32-i386.lo elf32.lo $elf" ;;
5125 bfd_elf32_i860_vec
) tb
="$tb elf32-i860.lo elf32.lo $elf" ;;
5126 bfd_elf32_i860_little_vec
) tb
="$tb elf32-i860.lo elf32.lo $elf" ;;
5127 bfd_elf32_i960_vec
) tb
="$tb elf32-i960.lo elf32.lo $elf" ;;
5128 bfd_elf32_little_generic_vec
) tb
="$tb elf32-gen.lo elf32.lo $elf" ;;
5129 bfd_elf32_littlemips_vec
) tb
="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
5130 bfd_elf64_littlemips_vec
) tb
="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"
5132 bfd_elf32_m32r_vec
) tb
="$tb elf32-m32r.lo elf32.lo $elf" ;;
5133 bfd_elf32_m68hc11_vec
) tb
="$tb elf32-m68hc11.lo elf32.lo $elf" ;;
5134 bfd_elf32_m68hc12_vec
) tb
="$tb elf32-m68hc12.lo elf32.lo $elf" ;;
5135 bfd_elf32_m68k_vec
) tb
="$tb elf32-m68k.lo elf32.lo $elf" ;;
5136 bfd_elf32_m88k_vec
) tb
="$tb elf32-m88k.lo elf32.lo $elf" ;;
5137 bfd_elf32_mcore_big_vec
) tb
="$tb elf32-mcore.lo elf32.lo $elf" ;;
5138 bfd_elf32_mcore_little_vec
) tb
="$tb elf32-mcore.lo elf32.lo $elf" ;;
5139 bfd_elf32_mn10200_vec
) tb
="$tb elf-m10200.lo elf32.lo $elf" ;;
5140 bfd_elf32_mn10300_vec
) tb
="$tb elf-m10300.lo elf32.lo $elf" ;;
5141 bfd_elf32_pj_vec
) tb
="$tb elf32-pj.lo elf32.lo $elf";;
5142 bfd_elf32_pjl_vec
) tb
="$tb elf32-pj.lo elf32.lo $elf";;
5143 bfd_elf32_powerpc_vec
) tb
="$tb elf32-ppc.lo elf32.lo $elf" ;;
5144 bfd_elf32_powerpcle_vec
) tb
="$tb elf32-ppc.lo elf32.lo $elf" ;;
5145 bfd_elf32_sh_vec
) tb
="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
5146 bfd_elf32_shl_vec
) tb
="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
5147 bfd_elf32_sparc_vec
) tb
="$tb elf32-sparc.lo elf32.lo $elf" ;;
5148 bfd_elf32_tradbigmips_vec
) tb
="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
5149 bfd_elf32_tradlittlemips_vec
) tb
="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
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 cris_aout_vec
) tb
="$tb aout-cris.lo" ;;
5160 demo_64_vec
) tb
="$tb demo64.lo aout64.lo"
5162 ecoff_big_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
5163 ecoff_little_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
5164 ecoff_biglittle_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
5165 ecoffalpha_little_vec
) tb
="$tb coff-alpha.lo ecoff.lo ecofflink.lo"
5167 go32coff_vec
) tb
="$tb coff-go32.lo cofflink.lo" ;;
5168 go32stubbedcoff_vec
) tb
="$tb coff-stgo32.lo cofflink.lo" ;;
5169 h8300coff_vec
) tb
="$tb coff-h8300.lo reloc16.lo" ;;
5170 h8500coff_vec
) tb
="$tb coff-h8500.lo reloc16.lo" ;;
5171 host_aout_vec
) tb
="$tb host-aout.lo aout32.lo" ;;
5172 hp300bsd_vec
) tb
="$tb hp300bsd.lo aout32.lo" ;;
5173 hp300hpux_vec
) tb
="$tb hp300hpux.lo aout32.lo" ;;
5174 i386aout_vec
) tb
="$tb i386aout.lo aout32.lo" ;;
5175 i386bsd_vec
) tb
="$tb i386bsd.lo aout32.lo" ;;
5176 i386coff_vec
) tb
="$tb coff-i386.lo cofflink.lo" ;;
5177 i386dynix_vec
) tb
="$tb i386dynix.lo aout32.lo" ;;
5178 i386freebsd_vec
) tb
="$tb i386freebsd.lo aout32.lo" ;;
5179 i386msdos_vec
) tb
="$tb i386msdos.lo" ;;
5180 i386pe_vec
) tb
="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
5181 i386pei_vec
) tb
="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
5182 i386linux_vec
) tb
="$tb i386linux.lo aout32.lo" ;;
5183 i386lynx_aout_vec
) tb
="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
5184 i386lynx_coff_vec
) tb
="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
5185 i386mach3_vec
) tb
="$tb i386mach3.lo aout32.lo" ;;
5186 i386netbsd_vec
) tb
="$tb i386netbsd.lo aout32.lo" ;;
5187 i386os9k_vec
) tb
="$tb i386os9k.lo aout32.lo" ;;
5188 i860coff_vec
) tb
="$tb coff-i860.lo cofflink.lo" ;;
5189 icoff_big_vec
) tb
="$tb coff-i960.lo cofflink.lo" ;;
5190 icoff_little_vec
) tb
="$tb coff-i960.lo cofflink.lo" ;;
5191 ieee_vec
) tb
="$tb ieee.lo" ;;
5192 m68kcoff_vec
) tb
="$tb coff-m68k.lo cofflink.lo" ;;
5193 m68kcoffun_vec
) tb
="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
5194 m68klinux_vec
) tb
="$tb m68klinux.lo aout32.lo" ;;
5195 m68klynx_aout_vec
) tb
="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
5196 m68klynx_coff_vec
) tb
="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
5197 m68knetbsd_vec
) tb
="$tb m68knetbsd.lo aout32.lo" ;;
5198 m68k4knetbsd_vec
) tb
="$tb m68k4knetbsd.lo aout32.lo" ;;
5199 m68kaux_coff_vec
) tb
="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
5200 m68ksysvcoff_vec
) tb
="$tb coff-svm68k.lo cofflink.lo" ;;
5201 m88kbcs_vec
) tb
="$tb coff-m88k.lo" ;;
5202 mipslpe_vec
) tb
="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
5203 mipslpei_vec
) tb
="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
5204 mcore_pe_big_vec
) tb
="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
5205 mcore_pe_little_vec
) tb
="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
5206 mcore_pei_big_vec
) tb
="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
5207 mcore_pei_little_vec
) tb
="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
5208 newsos3_vec
) tb
="$tb newsos3.lo aout32.lo" ;;
5209 nlm32_i386_vec
) tb
="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
5210 rs6000coff64_vec
) tb
="$tb coff64-rs6000.lo xcofflink.lo"
5212 nlm32_sparc_vec
) tb
="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
5213 nlm32_alpha_vec
) tb
="$tb nlm32-alpha.lo nlm32.lo nlm.lo"
5215 riscix_vec
) tb
="$tb aout32.lo riscix.lo" ;;
5216 nlm32_powerpc_vec
) tb
="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
5217 pc532netbsd_vec
) tb
="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
5218 pc532machaout_vec
) tb
="$tb pc532-mach.lo aout-ns32k.lo" ;;
5219 pmac_xcoff_vec
) tb
="$tb coff-pmac.lo xcofflink.lo" ;;
5220 rs6000coff_vec
) tb
="$tb coff-rs6000.lo xcofflink.lo" ;;
5221 bfd_powerpc_pe_vec
) tb
="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
5222 bfd_powerpcle_pe_vec
) tb
="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
5223 bfd_powerpc_pei_vec
) tb
="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
5224 bfd_powerpcle_pei_vec
) tb
="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
5225 ppcboot_vec
) tb
="$tb ppcboot.lo" ;;
5226 shcoff_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
5227 shlcoff_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
5228 shcoff_small_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
5229 shlcoff_small_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
5230 shlpe_vec
) tb
="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
5231 shlpei_vec
) tb
="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
5232 som_vec
) tb
="$tb som.lo" ;;
5233 sparcle_aout_vec
) tb
="$tb aout-sparcle.lo aout32.lo" ;;
5234 sparclinux_vec
) tb
="$tb sparclinux.lo aout32.lo" ;;
5235 sparclynx_aout_vec
) tb
="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
5236 sparclynx_coff_vec
) tb
="$tb cf-sparclynx.lo lynx-core.lo" ;;
5237 sparcnetbsd_vec
) tb
="$tb sparcnetbsd.lo aout32.lo" ;;
5238 sparccoff_vec
) tb
="$tb coff-sparc.lo" ;;
5239 srec_vec
) tb
="$tb srec.lo" ;;
5240 sunos_big_vec
) tb
="$tb sunos.lo aout32.lo" ;;
5241 symbolsrec_vec
) tb
="$tb srec.lo" ;;
5242 tekhex_vec
) tb
="$tb tekhex.lo" ;;
5243 tic30_aout_vec
) tb
="$tb aout-tic30.lo" ;;
5244 tic30_coff_vec
) tb
="$tb coff-tic30.lo" ;;
5245 tic54x_coff0_vec
) tb
="$tb coff-tic54x.lo" ;;
5246 tic54x_coff0_beh_vec
) tb
="$tb coff-tic54x.lo" ;;
5247 tic54x_coff1_vec
) tb
="$tb coff-tic54x.lo" ;;
5248 tic54x_coff1_beh_vec
) tb
="$tb coff-tic54x.lo" ;;
5249 tic54x_coff2_vec
) tb
="$tb coff-tic54x.lo" ;;
5250 tic54x_coff2_beh_vec
) tb
="$tb coff-tic54x.lo" ;;
5251 tic80coff_vec
) tb
="$tb coff-tic80.lo cofflink.lo" ;;
5252 versados_vec
) tb
="$tb versados.lo" ;;
5253 vms_alpha_vec
) tb
="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"
5255 vms_vax_vec
) tb
="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
5256 w65_vec
) tb
="$tb coff-w65.lo reloc16.lo" ;;
5257 we32kcoff_vec
) tb
="$tb coff-we32k.lo" ;;
5258 z8kcoff_vec
) tb
="$tb coff-z8k.lo reloc16.lo" ;;
5261 *) { echo "configure: error: *** unknown target vector $vec" 1>&2; exit 1; } ;;
5265 # Target architecture .o files.
5266 # A couple of CPUs use shorter file names to avoid problems on DOS
5268 ta
=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
5270 # Weed out duplicate .o files.
5292 if test x
${all_targets} = xtrue
; then
5293 bfd_backends
="${bfd_backends}"' $(ALL_BACKENDS)'
5294 bfd_machines
="${bfd_machines}"' $(ALL_MACHINES)'
5298 else # all_targets is true
5299 # Only set these if they will be nonempty, for the clever echo.
5301 test -n "$selvecs" &&
5302 havevecs
=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
5303 test -n "$selvecs" &&
5304 selvecs
=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
5305 test -n "$selarchs" &&
5306 selarchs
=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
5307 fi # all_targets is true
5309 case ${host64}-${target64}-${want64} in
5312 all_backends
='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
5313 if test -z "$GCC" && test "$BFD_HOST_64BIT_LONG" = "0" && test "$BFD_HOST_64_BIT_DEFINED" = "0"; then
5314 echo "configure: warning: You have requested a 64 bit BFD configuration, but" 1>&2
5315 echo "configure: warning: your compiler may not have a 64 bit integral type" 1>&2
5320 all_backends
='$(BFD32_BACKENDS)'
5330 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
5331 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
5332 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
5333 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
5336 for ac_hdr
in unistd.h
5338 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5339 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5340 echo "configure:5341: checking for $ac_hdr" >&5
5341 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5342 echo $ac_n "(cached) $ac_c" 1>&6
5344 cat > conftest.
$ac_ext <<EOF
5345 #line 5346 "configure"
5346 #include "confdefs.h"
5349 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5350 { (eval echo configure
:5351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5351 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5352 if test -z "$ac_err"; then
5354 eval "ac_cv_header_$ac_safe=yes"
5357 echo "configure: failed program was:" >&5
5358 cat conftest.
$ac_ext >&5
5360 eval "ac_cv_header_$ac_safe=no"
5364 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5365 echo "$ac_t""yes" 1>&6
5366 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5367 cat >> confdefs.h
<<EOF
5368 #define $ac_tr_hdr 1
5372 echo "$ac_t""no" 1>&6
5376 for ac_func
in getpagesize
5378 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5379 echo "configure:5380: checking for $ac_func" >&5
5380 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5381 echo $ac_n "(cached) $ac_c" 1>&6
5383 cat > conftest.
$ac_ext <<EOF
5384 #line 5385 "configure"
5385 #include "confdefs.h"
5386 /* System header to define __stub macros and hopefully few prototypes,
5387 which can conflict with char $ac_func(); below. */
5389 /* Override any gcc2 internal prototype to avoid an error. */
5390 /* We use char because int might match the return type of a gcc2
5391 builtin and then its argument prototype would still apply. */
5396 /* The GNU C library defines this for functions which it implements
5397 to always fail with ENOSYS. Some functions are actually named
5398 something starting with __ and the normal name is an alias. */
5399 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5407 if { (eval echo configure
:5408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5409 eval "ac_cv_func_$ac_func=yes"
5411 echo "configure: failed program was:" >&5
5412 cat conftest.
$ac_ext >&5
5414 eval "ac_cv_func_$ac_func=no"
5419 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5420 echo "$ac_t""yes" 1>&6
5421 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5422 cat >> confdefs.h
<<EOF
5423 #define $ac_tr_func 1
5427 echo "$ac_t""no" 1>&6
5431 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
5432 echo "configure:5433: checking for working mmap" >&5
5433 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
5434 echo $ac_n "(cached) $ac_c" 1>&6
5436 if test "$cross_compiling" = yes; then
5437 ac_cv_func_mmap_fixed_mapped
=no
5439 cat > conftest.
$ac_ext <<EOF
5440 #line 5441 "configure"
5441 #include "confdefs.h"
5443 /* Thanks to Mike Haertel and Jim Avera for this test.
5444 Here is a matrix of mmap possibilities:
5445 mmap private not fixed
5446 mmap private fixed at somewhere currently unmapped
5447 mmap private fixed at somewhere already mapped
5448 mmap shared not fixed
5449 mmap shared fixed at somewhere currently unmapped
5450 mmap shared fixed at somewhere already mapped
5451 For private mappings, we should verify that changes cannot be read()
5452 back from the file, nor mmap's back from the file at a different
5453 address. (There have been systems where private was not correctly
5454 implemented like the infamous i386 svr4.0, and systems where the
5455 VM page cache was not coherent with the filesystem buffer cache
5456 like early versions of FreeBSD and possibly contemporary NetBSD.)
5457 For shared mappings, we should conversely verify that changes get
5458 propogated back to all the places they're supposed to be.
5460 Grep wants private fixed already mapped.
5461 The main things grep needs to know about mmap are:
5462 * does it exist and is it safe to write into the mmap'd area
5463 * how to use it (BSD variants) */
5464 #include <sys/types.h>
5466 #include <sys/mman.h>
5468 /* This mess was copied from the GNU getpagesize.h. */
5469 #ifndef HAVE_GETPAGESIZE
5470 # ifdef HAVE_UNISTD_H
5471 # include <unistd.h>
5474 /* Assume that all systems that can run configure have sys/param.h. */
5475 # ifndef HAVE_SYS_PARAM_H
5476 # define HAVE_SYS_PARAM_H 1
5479 # ifdef _SC_PAGESIZE
5480 # define getpagesize() sysconf(_SC_PAGESIZE)
5481 # else /* no _SC_PAGESIZE */
5482 # ifdef HAVE_SYS_PARAM_H
5483 # include <sys/param.h>
5484 # ifdef EXEC_PAGESIZE
5485 # define getpagesize() EXEC_PAGESIZE
5486 # else /* no EXEC_PAGESIZE */
5488 # define getpagesize() NBPG * CLSIZE
5491 # endif /* no CLSIZE */
5492 # else /* no NBPG */
5494 # define getpagesize() NBPC
5495 # else /* no NBPC */
5497 # define getpagesize() PAGESIZE
5498 # endif /* PAGESIZE */
5499 # endif /* no NBPC */
5500 # endif /* no NBPG */
5501 # endif /* no EXEC_PAGESIZE */
5502 # else /* no HAVE_SYS_PARAM_H */
5503 # define getpagesize() 8192 /* punt totally */
5504 # endif /* no HAVE_SYS_PARAM_H */
5505 # endif /* no _SC_PAGESIZE */
5507 #endif /* no HAVE_GETPAGESIZE */
5510 extern "C" { void *malloc(unsigned); }
5518 char *data, *data2, *data3;
5522 pagesize = getpagesize();
5525 * First, make a file with some known garbage in it.
5527 data = malloc(pagesize);
5530 for (i = 0; i < pagesize; ++i)
5531 *(data + i) = rand();
5533 fd = creat("conftestmmap", 0600);
5536 if (write(fd, data, pagesize) != pagesize)
5541 * Next, try to mmap the file at a fixed address which
5542 * already has something else allocated at it. If we can,
5543 * also make sure that we see the same garbage.
5545 fd = open("conftestmmap", O_RDWR);
5548 data2 = malloc(2 * pagesize);
5551 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
5552 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
5553 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5555 for (i = 0; i < pagesize; ++i)
5556 if (*(data + i) != *(data2 + i))
5560 * Finally, make sure that changes to the mapped area
5561 * do not percolate back to the file as seen by read().
5562 * (This is a bug on some variants of i386 svr4.0.)
5564 for (i = 0; i < pagesize; ++i)
5565 *(data2 + i) = *(data2 + i) + 1;
5566 data3 = malloc(pagesize);
5569 if (read(fd, data3, pagesize) != pagesize)
5571 for (i = 0; i < pagesize; ++i)
5572 if (*(data + i) != *(data3 + i))
5575 unlink("conftestmmap");
5580 if { (eval echo configure
:5581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5582 ac_cv_func_mmap_fixed_mapped
=yes
5584 echo "configure: failed program was:" >&5
5585 cat conftest.
$ac_ext >&5
5587 ac_cv_func_mmap_fixed_mapped
=no
5594 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
5595 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5596 cat >> confdefs.h
<<\EOF
5602 for ac_func
in madvise mprotect
5604 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5605 echo "configure:5606: checking for $ac_func" >&5
5606 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5607 echo $ac_n "(cached) $ac_c" 1>&6
5609 cat > conftest.
$ac_ext <<EOF
5610 #line 5611 "configure"
5611 #include "confdefs.h"
5612 /* System header to define __stub macros and hopefully few prototypes,
5613 which can conflict with char $ac_func(); below. */
5615 /* Override any gcc2 internal prototype to avoid an error. */
5616 /* We use char because int might match the return type of a gcc2
5617 builtin and then its argument prototype would still apply. */
5622 /* The GNU C library defines this for functions which it implements
5623 to always fail with ENOSYS. Some functions are actually named
5624 something starting with __ and the normal name is an alias. */
5625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5633 if { (eval echo configure
:5634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5635 eval "ac_cv_func_$ac_func=yes"
5637 echo "configure: failed program was:" >&5
5638 cat conftest.
$ac_ext >&5
5640 eval "ac_cv_func_$ac_func=no"
5645 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5646 echo "$ac_t""yes" 1>&6
5647 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5648 cat >> confdefs.h
<<EOF
5649 #define $ac_tr_func 1
5653 echo "$ac_t""no" 1>&6
5657 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
5658 true
+yes ) cat >> confdefs.h
<<\EOF
5664 rm -f doc
/config.status
5666 cat > confcache
<<\EOF
5667 # This file is a shell script that caches the results of configure
5668 # tests run on this system so they can be shared between configure
5669 # scripts and configure runs. It is not useful on other systems.
5670 # If it contains results you don't want to keep, you may remove or edit it.
5672 # By default, configure uses ./config.cache as the cache file,
5673 # creating it if it does not exist already. You can give configure
5674 # the --cache-file=FILE option to use a different cache file; that is
5675 # what configure does when it calls configure scripts in
5676 # subdirectories, so they share the cache.
5677 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5678 # config.status only pays attention to the cache file if you give it the
5679 # --recheck option to rerun configure.
5682 # The following way of writing the cache mishandles newlines in values,
5683 # but we know of no workaround that is simple, portable, and efficient.
5684 # So, don't put newlines in cache variables' values.
5685 # Ultrix sh set writes to stderr and can't be redirected directly,
5686 # and sets the high bit in the cache file unless we assign to the vars.
5688 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5690 # `set' does not quote correctly, so add quotes (double-quote substitution
5691 # turns \\\\ into \\, and sed turns \\ into \).
5693 -e "s/'/'\\\\''/g" \
5694 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5697 # `set' quotes correctly as required by POSIX, so do not add quotes.
5698 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5701 if cmp -s $cache_file confcache
; then
5704 if test -w $cache_file; then
5705 echo "updating cache $cache_file"
5706 cat confcache
> $cache_file
5708 echo "not updating unwritable cache $cache_file"
5713 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5715 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5716 # Let make expand exec_prefix.
5717 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5719 # Any assignment to VPATH causes Sun make to only execute
5720 # the first set of double-colon rules, so remove it if not needed.
5721 # If there is a colon in the path, we need to keep it.
5722 if test "x$srcdir" = x.
; then
5723 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5726 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5728 DEFS
=-DHAVE_CONFIG_H
5730 # Without the "./", some shells look in PATH for config.status.
5731 : ${CONFIG_STATUS=./config.status}
5733 echo creating
$CONFIG_STATUS
5734 rm -f $CONFIG_STATUS
5735 cat > $CONFIG_STATUS <<EOF
5737 # Generated automatically by configure.
5738 # Run this file to recreate the current configuration.
5739 # This directory was configured as follows,
5740 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5742 # $0 $ac_configure_args
5744 # Compiler output produced by configure, useful for debugging
5745 # configure, is in ./config.log if it exists.
5747 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5750 case "\$ac_option" in
5751 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5752 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5753 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5754 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5755 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5757 -help | --help | --hel | --he | --h)
5758 echo "\$ac_cs_usage"; exit 0 ;;
5759 *) echo "\$ac_cs_usage"; exit 1 ;;
5763 ac_given_srcdir=$srcdir
5764 ac_given_INSTALL="$INSTALL"
5766 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
5768 cat >> $CONFIG_STATUS <<EOF
5770 # Protect against being on the right side of a sed subst in config.status.
5771 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5772 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5776 s%@CFLAGS@%$CFLAGS%g
5777 s%@CPPFLAGS@%$CPPFLAGS%g
5778 s%@CXXFLAGS@%$CXXFLAGS%g
5779 s%@FFLAGS@%$FFLAGS%g
5781 s%@LDFLAGS@%$LDFLAGS%g
5783 s%@exec_prefix@%$exec_prefix%g
5784 s%@prefix@%$prefix%g
5785 s%@program_transform_name@%$program_transform_name%g
5786 s%@bindir@%$bindir%g
5787 s%@sbindir@%$sbindir%g
5788 s%@libexecdir@%$libexecdir%g
5789 s%@datadir@%$datadir%g
5790 s%@sysconfdir@%$sysconfdir%g
5791 s%@sharedstatedir@%$sharedstatedir%g
5792 s%@localstatedir@%$localstatedir%g
5793 s%@libdir@%$libdir%g
5794 s%@includedir@%$includedir%g
5795 s%@oldincludedir@%$oldincludedir%g
5796 s%@infodir@%$infodir%g
5797 s%@mandir@%$mandir%g
5799 s%@host_alias@%$host_alias%g
5800 s%@host_cpu@%$host_cpu%g
5801 s%@host_vendor@%$host_vendor%g
5802 s%@host_os@%$host_os%g
5803 s%@target@%$target%g
5804 s%@target_alias@%$target_alias%g
5805 s%@target_cpu@%$target_cpu%g
5806 s%@target_vendor@%$target_vendor%g
5807 s%@target_os@%$target_os%g
5809 s%@build_alias@%$build_alias%g
5810 s%@build_cpu@%$build_cpu%g
5811 s%@build_vendor@%$build_vendor%g
5812 s%@build_os@%$build_os%g
5814 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5815 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5816 s%@INSTALL_DATA@%$INSTALL_DATA%g
5817 s%@PACKAGE@%$PACKAGE%g
5818 s%@VERSION@%$VERSION%g
5819 s%@ACLOCAL@%$ACLOCAL%g
5820 s%@AUTOCONF@%$AUTOCONF%g
5821 s%@AUTOMAKE@%$AUTOMAKE%g
5822 s%@AUTOHEADER@%$AUTOHEADER%g
5823 s%@MAKEINFO@%$MAKEINFO%g
5824 s%@SET_MAKE@%$SET_MAKE%g
5826 s%@RANLIB@%$RANLIB%g
5828 s%@LIBTOOL@%$LIBTOOL%g
5829 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
5830 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5831 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5833 s%@EXEEXT@%$EXEEXT%g
5835 s%@ALLOCA@%$ALLOCA%g
5836 s%@USE_NLS@%$USE_NLS%g
5837 s%@MSGFMT@%$MSGFMT%g
5838 s%@GMSGFMT@%$GMSGFMT%g
5839 s%@XGETTEXT@%$XGETTEXT%g
5840 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5841 s%@CATALOGS@%$CATALOGS%g
5842 s%@CATOBJEXT@%$CATOBJEXT%g
5843 s%@DATADIRNAME@%$DATADIRNAME%g
5844 s%@GMOFILES@%$GMOFILES%g
5845 s%@INSTOBJEXT@%$INSTOBJEXT%g
5846 s%@INTLDEPS@%$INTLDEPS%g
5847 s%@INTLLIBS@%$INTLLIBS%g
5848 s%@INTLOBJS@%$INTLOBJS%g
5849 s%@POFILES@%$POFILES%g
5851 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5853 s%@GT_YES@%$GT_YES%g
5854 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5856 s%@HDEFINES@%$HDEFINES%g
5857 s%@BFD_HOST_64BIT_LONG@%$BFD_HOST_64BIT_LONG%g
5858 s%@BFD_HOST_64_BIT_DEFINED@%$BFD_HOST_64_BIT_DEFINED%g
5859 s%@BFD_HOST_64_BIT@%$BFD_HOST_64_BIT%g
5860 s%@BFD_HOST_U_64_BIT@%$BFD_HOST_U_64_BIT%g
5861 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
5862 s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
5863 s%@COREFILE@%$COREFILE%g
5864 s%@COREFLAG@%$COREFLAG%g
5865 s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g
5866 s%@WIN32LIBADD@%$WIN32LIBADD%g
5867 s%@TDEFINES@%$TDEFINES%g
5868 s%@wordsize@%$wordsize%g
5869 s%@all_backends@%$all_backends%g
5870 s%@bfd_backends@%$bfd_backends%g
5871 s%@bfd_machines@%$bfd_machines%g
5872 s%@tdefaults@%$tdefaults%g
5877 cat >> $CONFIG_STATUS <<\EOF
5879 # Split the substitutions into bite-sized pieces for seds with
5880 # small command number limits, like on Digital OSF/1 and HP-UX.
5881 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5882 ac_file
=1 # Number of current file.
5883 ac_beg
=1 # First line for current file.
5884 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5887 while $ac_more_lines; do
5888 if test $ac_beg -gt 1; then
5889 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5891 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5893 if test ! -s conftest.s
$ac_file; then
5895 rm -f conftest.s
$ac_file
5897 if test -z "$ac_sed_cmds"; then
5898 ac_sed_cmds
="sed -f conftest.s$ac_file"
5900 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5902 ac_file
=`expr $ac_file + 1`
5904 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5907 if test -z "$ac_sed_cmds"; then
5912 cat >> $CONFIG_STATUS <<EOF
5914 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"}
5916 cat >> $CONFIG_STATUS <<\EOF
5917 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5918 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5920 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5921 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5922 *) ac_file_in
="${ac_file}.in" ;;
5925 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5927 # Remove last slash and all that follows it. Not all systems have dirname.
5928 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5929 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5930 # The file is in a subdirectory.
5931 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5932 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5933 # A "../" for each directory in $ac_dir_suffix.
5934 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5936 ac_dir_suffix
= ac_dots
=
5939 case "$ac_given_srcdir" in
5941 if test -z "$ac_dots"; then top_srcdir
=.
5942 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5943 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5945 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5946 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5949 case "$ac_given_INSTALL" in
5950 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5951 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5954 echo creating
"$ac_file"
5956 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5958 *Makefile
*) ac_comsub
="1i\\
5959 # $configure_input" ;;
5963 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5965 s%@configure_input@%$configure_input%g
5966 s%@srcdir@%$srcdir%g
5967 s%@top_srcdir@%$top_srcdir%g
5968 s%@INSTALL@%$INSTALL%g
5969 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5973 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5974 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5976 # ac_d sets the value in "#define NAME VALUE" lines.
5977 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5978 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5981 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5982 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5983 ac_uB
='\([ ]\)%\1#\2define\3'
5986 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5987 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5988 ac_eB
='$%\1#\2define\3'
5992 if test "${CONFIG_HEADERS+set}" != set; then
5994 cat >> $CONFIG_STATUS <<EOF
5995 CONFIG_HEADERS="config.h:config.in"
5997 cat >> $CONFIG_STATUS <<\EOF
5999 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
6000 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6002 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6003 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6004 *) ac_file_in
="${ac_file}.in" ;;
6007 echo creating
$ac_file
6009 rm -f conftest.frag conftest.
in conftest.out
6010 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6011 cat $ac_file_inputs > conftest.
in
6015 # Transform confdefs.h into a sed script conftest.vals that substitutes
6016 # the proper values into config.h.in to produce config.h. And first:
6017 # Protect against being on the right side of a sed subst in config.status.
6018 # Protect against being in an unquoted here document in config.status.
6020 cat > conftest.hdr
<<\EOF
6023 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6027 sed -n -f conftest.hdr confdefs.h > conftest.vals
6030 # This sed command replaces #undef with comments. This is necessary, for
6031 # example, in the case of _POSIX_SOURCE, which is predefined and required
6032 # on some systems where configure will not decide to define it.
6033 cat >> conftest.vals <<\EOF
6034 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6037 # Break up conftest.vals because some shells have a limit on
6038 # the size of here documents, and old seds have small limits too.
6043 ac_lines=`grep -c . conftest.vals
`
6044 # grep -c gives empty output for an empty file on some AIX systems.
6045 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6046 # Write a limited-size here document to conftest.frag.
6047 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6048 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6050 sed -f conftest.frag conftest.in > conftest.out
6052 mv conftest.out conftest.in
6054 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6056 mv conftest.tail conftest.vals
6060 cat >> $CONFIG_STATUS <<\EOF
6061 rm -f conftest.frag conftest.h
6062 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6063 cat conftest.in >> conftest.h
6065 if cmp -s $ac_file conftest.h 2>/dev/null; then
6066 echo "$ac_file is unchanged"
6069 # Remove last slash and all that follows it. Not all systems have dirname.
6070 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
6071 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6072 # The file is in a subdirectory.
6073 test ! -d "$ac_dir" && mkdir "$ac_dir"
6076 mv conftest.h $ac_file
6081 cat >> $CONFIG_STATUS <<EOF
6085 cat >> $CONFIG_STATUS <<\EOF
6086 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
6087 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
6090 chmod +x $CONFIG_STATUS
6091 rm -fr confdefs* $ac_clean_files
6092 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1