3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13.1
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --enable-shared[=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 force libtool not to do file locking"
25 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)"
27 --enable-targets alternative target configurations"
29 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
31 --with-mmap try using mmap for BFD input files if available"
33 --enable-maintainer-mode enable make rules and dependencies not useful
34 (and sometimes confusing) to the casual installer"
36 --disable-nls do not use Native Language Support"
38 --with-included-gettext use the GNU gettext library included here"
40 # Initialize some variables set by options.
41 # The variables have the same names as the options, with
42 # dashes changed to underlines.
44 cache_file
=.
/config.cache
53 program_transform_name
=s
,x
,x
,
61 bindir
='${exec_prefix}/bin'
62 sbindir
='${exec_prefix}/sbin'
63 libexecdir
='${exec_prefix}/libexec'
64 datadir
='${prefix}/share'
65 sysconfdir
='${prefix}/etc'
66 sharedstatedir
='${prefix}/com'
67 localstatedir
='${prefix}/var'
68 libdir
='${exec_prefix}/lib'
69 includedir
='${prefix}/include'
70 oldincludedir
='/usr/include'
71 infodir
='${prefix}/info'
72 mandir
='${prefix}/man'
74 # Initialize some other variables.
77 SHELL
=${CONFIG_SHELL-/bin/sh}
78 # Maximum number of lines to put in a shell here document.
85 # If the previous option needs an argument, assign it.
86 if test -n "$ac_prev"; then
87 eval "$ac_prev=\$ac_option"
93 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
97 # Accept the important Cygnus configure options, so we can diagnose typos.
101 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
103 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
104 bindir
="$ac_optarg" ;;
106 -build |
--build |
--buil |
--bui |
--bu)
108 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
109 build
="$ac_optarg" ;;
111 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
112 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
113 ac_prev
=cache_file
;;
114 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
115 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
116 cache_file
="$ac_optarg" ;;
118 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
120 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
122 datadir
="$ac_optarg" ;;
124 -disable-* |
--disable-*)
125 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
126 # Reject names that are not valid shell variable names.
127 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
128 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
130 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
131 eval "enable_${ac_feature}=no" ;;
133 -enable-* |
--enable-*)
134 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
135 # Reject names that are not valid shell variable names.
136 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
137 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
139 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
144 eval "enable_${ac_feature}='$ac_optarg'" ;;
146 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
147 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
148 |
--exec |
--exe |
--ex)
149 ac_prev
=exec_prefix
;;
150 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
151 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
152 |
--exec=* |
--exe=* |
--ex=*)
153 exec_prefix
="$ac_optarg" ;;
155 -gas |
--gas |
--ga |
--g)
156 # Obsolete; use --with-gas.
159 -help |
--help |
--hel |
--he)
160 # Omit some internal or obsolete options to make the list less imposing.
161 # This message is too long to be a string in the A/UX 3.1 sh.
163 Usage: configure [options] [host]
164 Options: [defaults in brackets after descriptions]
166 --cache-file=FILE cache test results in FILE
167 --help print this message
168 --no-create do not create output files
169 --quiet, --silent do not print \`checking...' messages
170 --version print the version of autoconf that created configure
171 Directory and file names:
172 --prefix=PREFIX install architecture-independent files in PREFIX
174 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
176 --bindir=DIR user executables in DIR [EPREFIX/bin]
177 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
178 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
179 --datadir=DIR read-only architecture-independent data in DIR
181 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
182 --sharedstatedir=DIR modifiable architecture-independent data in DIR
184 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
185 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
186 --includedir=DIR C header files in DIR [PREFIX/include]
187 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
188 --infodir=DIR info documentation in DIR [PREFIX/info]
189 --mandir=DIR man documentation in DIR [PREFIX/man]
190 --srcdir=DIR find the sources in DIR [configure dir or ..]
191 --program-prefix=PREFIX prepend PREFIX to installed program names
192 --program-suffix=SUFFIX append SUFFIX to installed program names
193 --program-transform-name=PROGRAM
194 run sed PROGRAM on installed program names
198 --build=BUILD configure for building on BUILD [BUILD=HOST]
199 --host=HOST configure for HOST [guessed]
200 --target=TARGET configure for TARGET [TARGET=HOST]
201 Features and packages:
202 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
203 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
204 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
205 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
206 --x-includes=DIR X include files are in DIR
207 --x-libraries=DIR X library files are in DIR
209 if test -n "$ac_help"; then
210 echo "--enable and --with options recognized:$ac_help"
214 -host |
--host |
--hos |
--ho)
216 -host=* |
--host=* |
--hos=* |
--ho=*)
219 -includedir |
--includedir |
--includedi |
--included |
--include \
220 |
--includ |
--inclu |
--incl |
--inc)
221 ac_prev
=includedir
;;
222 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
223 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
224 includedir
="$ac_optarg" ;;
226 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
228 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
229 infodir
="$ac_optarg" ;;
231 -libdir |
--libdir |
--libdi |
--libd)
233 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
234 libdir
="$ac_optarg" ;;
236 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
237 |
--libexe |
--libex |
--libe)
238 ac_prev
=libexecdir
;;
239 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
240 |
--libexe=* |
--libex=* |
--libe=*)
241 libexecdir
="$ac_optarg" ;;
243 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
244 |
--localstate |
--localstat |
--localsta |
--localst \
245 |
--locals |
--local |
--loca |
--loc |
--lo)
246 ac_prev
=localstatedir
;;
247 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
248 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
249 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
250 localstatedir
="$ac_optarg" ;;
252 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
254 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
255 mandir
="$ac_optarg" ;;
258 # Obsolete; use --without-fp.
261 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
265 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
266 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
269 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
270 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
271 |
--oldin |
--oldi |
--old |
--ol |
--o)
272 ac_prev
=oldincludedir
;;
273 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
274 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
275 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
276 oldincludedir
="$ac_optarg" ;;
278 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
280 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
281 prefix
="$ac_optarg" ;;
283 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
284 |
--program-pre |
--program-pr |
--program-p)
285 ac_prev
=program_prefix
;;
286 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
287 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
288 program_prefix
="$ac_optarg" ;;
290 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
291 |
--program-suf |
--program-su |
--program-s)
292 ac_prev
=program_suffix
;;
293 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
294 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
295 program_suffix
="$ac_optarg" ;;
297 -program-transform-name |
--program-transform-name \
298 |
--program-transform-nam |
--program-transform-na \
299 |
--program-transform-n |
--program-transform- \
300 |
--program-transform |
--program-transfor \
301 |
--program-transfo |
--program-transf \
302 |
--program-trans |
--program-tran \
303 |
--progr-tra |
--program-tr |
--program-t)
304 ac_prev
=program_transform_name
;;
305 -program-transform-name=* |
--program-transform-name=* \
306 |
--program-transform-nam=* |
--program-transform-na=* \
307 |
--program-transform-n=* |
--program-transform-=* \
308 |
--program-transform=* |
--program-transfor=* \
309 |
--program-transfo=* |
--program-transf=* \
310 |
--program-trans=* |
--program-tran=* \
311 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
312 program_transform_name
="$ac_optarg" ;;
314 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
315 |
-silent |
--silent |
--silen |
--sile |
--sil)
318 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
320 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
322 sbindir
="$ac_optarg" ;;
324 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
325 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
326 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
328 ac_prev
=sharedstatedir
;;
329 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
330 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
331 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
333 sharedstatedir
="$ac_optarg" ;;
335 -site |
--site |
--sit)
337 -site=* |
--site=* |
--sit=*)
340 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
342 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
343 srcdir
="$ac_optarg" ;;
345 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
346 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
347 ac_prev
=sysconfdir
;;
348 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
349 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
350 sysconfdir
="$ac_optarg" ;;
352 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
354 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
355 target
="$ac_optarg" ;;
357 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
360 -version |
--version |
--versio |
--versi |
--vers)
361 echo "configure generated by autoconf version 2.13.1"
365 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
366 # Reject names that are not valid shell variable names.
367 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
368 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
370 ac_package
=`echo $ac_package| sed 's/-/_/g'`
375 eval "with_${ac_package}='$ac_optarg'" ;;
377 -without-* |
--without-*)
378 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
379 # Reject names that are not valid shell variable names.
380 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
381 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
383 ac_package
=`echo $ac_package| sed 's/-/_/g'`
384 eval "with_${ac_package}=no" ;;
387 # Obsolete; use --with-x.
390 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
391 |
--x-incl |
--x-inc |
--x-in |
--x-i)
392 ac_prev
=x_includes
;;
393 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
394 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
395 x_includes
="$ac_optarg" ;;
397 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
398 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
399 ac_prev
=x_libraries
;;
400 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
401 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
402 x_libraries
="$ac_optarg" ;;
404 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
408 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
409 echo "configure: warning: $ac_option: invalid host type" 1>&2
411 if test "x$nonopt" != xNONE
; then
412 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
420 if test -n "$ac_prev"; then
421 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
424 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
426 # File descriptor usage:
429 # 2 errors and warnings
430 # 3 some systems may open it to /dev/tty
431 # 4 used on the Kubota Titan
432 # 6 checking for... messages and results
433 # 5 compiler messages saved in config.log
434 if test "$silent" = yes; then
442 This file contains any messages produced by compilers while
443 running configure, to aid debugging if configure makes a mistake.
446 # Strip out --no-create and --no-recursion so they do not pile up.
447 # Also quote any args containing shell metacharacters.
452 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
453 |
--no-cr |
--no-c) ;;
454 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
455 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
456 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
457 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
458 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
463 # Only set these to C if already set. These must not be set unconditionally
464 # because not all systems understand e.g. LANG=C (notably SCO).
465 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
466 # Non-C LC_CTYPE values break the ctype check.
467 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
468 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
469 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
470 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
472 # confdefs.h avoids OS command line length limits that DEFS can exceed.
473 rm -rf conftest
* confdefs.h
474 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
477 # A filename unique to this package, relative to the directory that
478 # configure is in, which we can look for to find out if srcdir is correct.
479 ac_unique_file
=libbfd.c
481 # Find the source files, if location was not specified.
482 if test -z "$srcdir"; then
483 ac_srcdir_defaulted
=yes
484 # Try the directory containing this script, then its parent.
486 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
487 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
489 if test ! -r $srcdir/$ac_unique_file; then
493 ac_srcdir_defaulted
=no
495 if test ! -r $srcdir/$ac_unique_file; then
496 if test "$ac_srcdir_defaulted" = yes; then
497 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
499 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
502 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
504 # Prefer explicitly selected file to automatically selected ones.
505 if test -z "$CONFIG_SITE"; then
506 if test "x$prefix" != xNONE
; then
507 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
509 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
512 for ac_site_file
in $CONFIG_SITE; do
513 if test -r "$ac_site_file"; then
514 echo "loading site script $ac_site_file"
519 if test -r "$cache_file"; then
520 echo "loading cache $cache_file"
521 test -f "$cache_file" && .
$cache_file
523 echo "creating cache $cache_file"
528 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
529 ac_cpp
='$CPP $CPPFLAGS'
530 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
531 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
532 cross_compiling
=$ac_cv_prog_cc_cross
536 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
537 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
538 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
545 ac_n
= ac_c
='\c' ac_t
=
551 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
552 if test -f $ac_dir/install-sh
; then
554 ac_install_sh
="$ac_aux_dir/install-sh -c"
556 elif test -f $ac_dir/install.sh
; then
558 ac_install_sh
="$ac_aux_dir/install.sh -c"
562 if test -z "$ac_aux_dir"; then
563 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
565 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
566 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
567 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
570 echo $ac_n "checking host system type""... $ac_c" 1>&6
571 echo "configure:572: checking host system type" >&5
572 if test "x$ac_cv_host" = "x" ||
(test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
574 # Make sure we can run config.sub.
575 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
576 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
579 ac_cv_host_alias
=$host
580 case "$ac_cv_host_alias" in
584 if ac_cv_host_alias
=`$ac_config_guess`; then :
585 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
587 *) ac_cv_host_alias
=$nonopt ;;
591 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias`
592 ac_cv_host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
593 ac_cv_host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
594 ac_cv_host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
596 echo $ac_n "(cached) $ac_c" 1>&6
599 echo "$ac_t""$ac_cv_host" 1>&6
602 host_alias
=$ac_cv_host_alias
603 host_cpu
=$ac_cv_host_cpu
604 host_vendor
=$ac_cv_host_vendor
605 host_os
=$ac_cv_host_os
611 echo $ac_n "checking target system type""... $ac_c" 1>&6
612 echo "configure:613: checking target system type" >&5
613 if test "x$ac_cv_target" = "x" ||
(test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
615 # Make sure we can run config.sub.
616 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
617 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
620 ac_cv_target_alias
=$target
621 case "$ac_cv_target_alias" in
625 ac_cv_target_alias
=$host_alias ;;
627 *) ac_cv_target_alias
=$nonopt ;;
631 ac_cv_target
=`$ac_config_sub $ac_cv_target_alias`
632 ac_cv_target_cpu
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
633 ac_cv_target_vendor
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
634 ac_cv_target_os
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
636 echo $ac_n "(cached) $ac_c" 1>&6
639 echo "$ac_t""$ac_cv_target" 1>&6
642 target_alias
=$ac_cv_target_alias
643 target_cpu
=$ac_cv_target_cpu
644 target_vendor
=$ac_cv_target_vendor
645 target_os
=$ac_cv_target_os
651 echo $ac_n "checking build system type""... $ac_c" 1>&6
652 echo "configure:653: checking build system type" >&5
653 if test "x$ac_cv_build" = "x" ||
(test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
655 # Make sure we can run config.sub.
656 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
657 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
660 ac_cv_build_alias
=$build
661 case "$ac_cv_build_alias" in
665 ac_cv_build_alias
=$host_alias ;;
667 *) ac_cv_build_alias
=$nonopt ;;
671 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias`
672 ac_cv_build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
673 ac_cv_build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
674 ac_cv_build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
676 echo $ac_n "(cached) $ac_c" 1>&6
679 echo "$ac_t""$ac_cv_build" 1>&6
682 build_alias
=$ac_cv_build_alias
683 build_cpu
=$ac_cv_build_cpu
684 build_vendor
=$ac_cv_build_vendor
685 build_os
=$ac_cv_build_os
691 # Do some error checking and defaulting for the host and target type.
693 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
696 # 1. You are not allowed to specify --host, --target, and nonopt at the
698 # 2. Host defaults to nonopt.
699 # 3. If nonopt is not specified, then host defaults to the current host,
700 # as determined by config.guess.
701 # 4. Target and build default to nonopt.
702 # 5. If nonopt is not specified, then target and build default to host.
704 # The aliases save the names the user supplied, while $host etc.
705 # will get canonicalized.
706 case $host---$target---$nonopt in
707 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
708 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
711 test "$host_alias" != "$target_alias" &&
712 test "$program_prefix$program_suffix$program_transform_name" = \
714 program_prefix
=${target_alias}-
716 # Extract the first word of "gcc", so it can be a program name with args.
717 set dummy gcc
; ac_word
=$2
718 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
719 echo "configure:720: checking for $ac_word" >&5
720 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
721 echo $ac_n "(cached) $ac_c" 1>&6
723 if test -n "$CC"; then
724 ac_cv_prog_CC
="$CC" # Let the user override the test.
726 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
728 for ac_dir
in $ac_dummy; do
729 test -z "$ac_dir" && ac_dir
=.
730 if test -f $ac_dir/$ac_word; then
739 if test -n "$CC"; then
740 echo "$ac_t""$CC" 1>&6
742 echo "$ac_t""no" 1>&6
745 if test -z "$CC"; then
746 # Extract the first word of "cc", so it can be a program name with args.
747 set dummy cc
; ac_word
=$2
748 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
749 echo "configure:750: checking for $ac_word" >&5
750 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
751 echo $ac_n "(cached) $ac_c" 1>&6
753 if test -n "$CC"; then
754 ac_cv_prog_CC
="$CC" # Let the user override the test.
756 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
759 for ac_dir
in $ac_dummy; do
760 test -z "$ac_dir" && ac_dir
=.
761 if test -f $ac_dir/$ac_word; then
762 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
771 if test $ac_prog_rejected = yes; then
772 # We found a bogon in the path, so make sure we never use it.
773 set dummy
$ac_cv_prog_CC
775 if test $# -gt 0; then
776 # We chose a different compiler from the bogus one.
777 # However, it has the same basename, so the bogon will be chosen
778 # first if we set CC to just the basename; use the full file name.
780 set dummy
"$ac_dir/$ac_word" "$@"
788 if test -n "$CC"; then
789 echo "$ac_t""$CC" 1>&6
791 echo "$ac_t""no" 1>&6
794 if test -z "$CC"; then
796 *win32
* |
*WIN32
* |
*CYGWIN
*)
797 # Extract the first word of "cl", so it can be a program name with args.
798 set dummy cl
; ac_word
=$2
799 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
800 echo "configure:801: checking for $ac_word" >&5
801 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
802 echo $ac_n "(cached) $ac_c" 1>&6
804 if test -n "$CC"; then
805 ac_cv_prog_CC
="$CC" # Let the user override the test.
807 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
809 for ac_dir
in $ac_dummy; do
810 test -z "$ac_dir" && ac_dir
=.
811 if test -f $ac_dir/$ac_word; then
820 if test -n "$CC"; then
821 echo "$ac_t""$CC" 1>&6
823 echo "$ac_t""no" 1>&6
828 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
831 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
832 echo "configure:833: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
835 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
836 ac_cpp
='$CPP $CPPFLAGS'
837 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
838 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
839 cross_compiling
=$ac_cv_prog_cc_cross
841 cat > conftest.
$ac_ext << EOF
843 #line 844 "configure"
844 #include "confdefs.h"
848 if { (eval echo configure
:849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
849 ac_cv_prog_cc_works
=yes
850 # If we can't run a trivial program, we are probably using a cross compiler.
851 if (.
/conftest
; exit) 2>/dev
/null
; then
852 ac_cv_prog_cc_cross
=no
854 ac_cv_prog_cc_cross
=yes
857 echo "configure: failed program was:" >&5
858 cat conftest.
$ac_ext >&5
859 ac_cv_prog_cc_works
=no
863 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
864 ac_cpp
='$CPP $CPPFLAGS'
865 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
866 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
867 cross_compiling
=$ac_cv_prog_cc_cross
869 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
870 if test $ac_cv_prog_cc_works = no
; then
871 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
873 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
874 echo "configure:875: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
875 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
876 cross_compiling
=$ac_cv_prog_cc_cross
878 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
879 echo "configure:880: checking whether we are using GNU C" >&5
880 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
881 echo $ac_n "(cached) $ac_c" 1>&6
883 cat > conftest.c
<<EOF
888 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
895 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
897 if test $ac_cv_prog_gcc = yes; then
903 ac_test_CFLAGS
="${CFLAGS+set}"
904 ac_save_CFLAGS
="$CFLAGS"
906 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
907 echo "configure:908: checking whether ${CC-cc} accepts -g" >&5
908 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
909 echo $ac_n "(cached) $ac_c" 1>&6
911 echo 'void f(){}' > conftest.c
912 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
921 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
922 if test "$ac_test_CFLAGS" = set; then
923 CFLAGS
="$ac_save_CFLAGS"
924 elif test $ac_cv_prog_cc_g = yes; then
925 if test "$GCC" = yes; then
931 if test "$GCC" = yes; then
938 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
939 echo "configure:940: checking for POSIXized ISC" >&5
940 if test -d /etc
/conf
/kconfig.d
&&
941 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
943 echo "$ac_t""yes" 1>&6
944 ISC
=yes # If later tests want to check for ISC.
945 cat >> confdefs.h
<<\EOF
946 #define _POSIX_SOURCE 1
949 if test "$GCC" = yes; then
955 echo "$ac_t""no" 1>&6
960 # Find a good install program. We prefer a C program (faster),
961 # so one script is as good as another. But avoid the broken or
962 # incompatible versions:
963 # SysV /etc/install, /usr/sbin/install
964 # SunOS /usr/etc/install
967 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
968 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
969 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
970 # ./install, which can be erroneously created by make from ./install.sh.
971 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
972 echo "configure:973: checking for a BSD compatible install" >&5
973 if test -z "$INSTALL"; then
974 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
975 echo $ac_n "(cached) $ac_c" 1>&6
977 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
978 for ac_dir
in $PATH; do
979 # Account for people who put trailing slashes in PATH elements.
981 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
983 # OSF1 and SCO ODT 3.0 have their own names for install.
984 # Don't use installbsd from OSF since it installs stuff as root
986 for ac_prog
in ginstall scoinst
install; do
987 if test -f $ac_dir/$ac_prog; then
988 if test $ac_prog = install &&
989 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
990 # AIX install. It has an incompatible calling convention.
992 elif test $ac_prog = install &&
993 grep pwplus
$ac_dir/$ac_prog >/dev
/null
2>&1; then
994 # program-specific install script used by HP pwplus--don't use.
997 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1008 if test "${ac_cv_path_install+set}" = set; then
1009 INSTALL
="$ac_cv_path_install"
1011 # As a last resort, use the slow shell script. We don't cache a
1012 # path for INSTALL within a source directory, because that will
1013 # break other packages using the cache if that directory is
1014 # removed, or if the path is relative.
1015 INSTALL
="$ac_install_sh"
1018 echo "$ac_t""$INSTALL" 1>&6
1020 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1021 # It thinks the first close brace ends the variable substitution.
1022 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1024 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1026 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1028 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1029 echo "configure:1030: checking whether build environment is sane" >&5
1032 echo timestamp
> conftestfile
1033 # Do `set' in a subshell so we don't clobber the current shell's
1034 # arguments. Must try -L first in case configure is actually a
1035 # symlink; some systems play weird games with the mod time of symlinks
1036 # (eg FreeBSD returns the mod time of the symlink's containing
1039 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1040 if test "$*" = "X"; then
1042 set X
`ls -t $srcdir/configure conftestfile`
1044 if test "$*" != "X $srcdir/configure conftestfile" \
1045 && test "$*" != "X conftestfile $srcdir/configure"; then
1047 # If neither matched, then we have a broken ls. This can happen
1048 # if, for instance, CONFIG_SHELL is bash and it inherits a
1049 # broken ls alias from the environment. This has actually
1050 # happened. Such a system could not be considered "sane".
1051 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1052 alias in your environment" 1>&2; exit 1; }
1055 test "$2" = conftestfile
1061 { echo "configure: error: newly created file is older than distributed files!
1062 Check your system clock" 1>&2; exit 1; }
1065 echo "$ac_t""yes" 1>&6
1066 if test "$program_transform_name" = s
,x
,x
,; then
1067 program_transform_name
=
1069 # Double any \ or $. echo might interpret backslashes.
1070 cat <<\EOF_SED
> conftestsed
1071 s
,\\,\\\\,g
; s
,\$
,$$
,g
1073 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1076 test "$program_prefix" != NONE
&&
1077 program_transform_name
="s,^,${program_prefix},;$program_transform_name"
1078 # Use a double $ so make ignores it.
1079 test "$program_suffix" != NONE
&&
1080 program_transform_name
="s,\$\$,${program_suffix},;$program_transform_name"
1082 # sed with no file args requires a program.
1083 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1085 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1086 echo "configure:1087: checking whether ${MAKE-make} sets \${MAKE}" >&5
1087 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1088 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1089 echo $ac_n "(cached) $ac_c" 1>&6
1091 cat > conftestmake
<<\EOF
1093 @
echo 'ac_maketemp="${MAKE}"'
1095 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1096 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1097 if test -n "$ac_maketemp"; then
1098 eval ac_cv_prog_make_
${ac_make}_set
=yes
1100 eval ac_cv_prog_make_
${ac_make}_set
=no
1104 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1105 echo "$ac_t""yes" 1>&6
1108 echo "$ac_t""no" 1>&6
1109 SET_MAKE
="MAKE=${MAKE-make}"
1117 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
1118 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
1120 cat >> confdefs.h
<<EOF
1121 #define PACKAGE "$PACKAGE"
1124 cat >> confdefs.h
<<EOF
1125 #define VERSION "$VERSION"
1130 missing_dir
=`cd $ac_aux_dir && pwd`
1131 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1132 echo "configure:1133: checking for working aclocal" >&5
1133 # Run test in a subshell; some versions of sh will print an error if
1134 # an executable is not found, even if stderr is redirected.
1135 # Redirect stdin to placate older versions of autoconf. Sigh.
1136 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
1138 echo "$ac_t""found" 1>&6
1140 ACLOCAL
="$missing_dir/missing aclocal"
1141 echo "$ac_t""missing" 1>&6
1144 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1145 echo "configure:1146: checking for working autoconf" >&5
1146 # Run test in a subshell; some versions of sh will print an error if
1147 # an executable is not found, even if stderr is redirected.
1148 # Redirect stdin to placate older versions of autoconf. Sigh.
1149 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
1151 echo "$ac_t""found" 1>&6
1153 AUTOCONF
="$missing_dir/missing autoconf"
1154 echo "$ac_t""missing" 1>&6
1157 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1158 echo "configure:1159: checking for working automake" >&5
1159 # Run test in a subshell; some versions of sh will print an error if
1160 # an executable is not found, even if stderr is redirected.
1161 # Redirect stdin to placate older versions of autoconf. Sigh.
1162 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
1164 echo "$ac_t""found" 1>&6
1166 AUTOMAKE
="$missing_dir/missing automake"
1167 echo "$ac_t""missing" 1>&6
1170 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1171 echo "configure:1172: checking for working autoheader" >&5
1172 # Run test in a subshell; some versions of sh will print an error if
1173 # an executable is not found, even if stderr is redirected.
1174 # Redirect stdin to placate older versions of autoconf. Sigh.
1175 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
1176 AUTOHEADER
=autoheader
1177 echo "$ac_t""found" 1>&6
1179 AUTOHEADER
="$missing_dir/missing autoheader"
1180 echo "$ac_t""missing" 1>&6
1183 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1184 echo "configure:1185: checking for working makeinfo" >&5
1185 # Run test in a subshell; some versions of sh will print an error if
1186 # an executable is not found, even if stderr is redirected.
1187 # Redirect stdin to placate older versions of autoconf. Sigh.
1188 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
1190 echo "$ac_t""found" 1>&6
1192 MAKEINFO
="$missing_dir/missing makeinfo"
1193 echo "$ac_t""missing" 1>&6
1198 if test $host != $build; then
1199 ac_tool_prefix
=${host_alias}-
1204 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1205 set dummy
${ac_tool_prefix}ar; ac_word
=$2
1206 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1207 echo "configure:1208: checking for $ac_word" >&5
1208 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
1209 echo $ac_n "(cached) $ac_c" 1>&6
1211 if test -n "$AR"; then
1212 ac_cv_prog_AR
="$AR" # Let the user override the test.
1214 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1216 for ac_dir
in $ac_dummy; do
1217 test -z "$ac_dir" && ac_dir
=.
1218 if test -f $ac_dir/$ac_word; then
1219 ac_cv_prog_AR
="${ac_tool_prefix}ar"
1224 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1228 if test -n "$AR"; then
1229 echo "$ac_t""$AR" 1>&6
1231 echo "$ac_t""no" 1>&6
1236 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1237 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1238 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1239 echo "configure:1240: checking for $ac_word" >&5
1240 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
1241 echo $ac_n "(cached) $ac_c" 1>&6
1243 if test -n "$RANLIB"; then
1244 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1246 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1248 for ac_dir
in $ac_dummy; do
1249 test -z "$ac_dir" && ac_dir
=.
1250 if test -f $ac_dir/$ac_word; then
1251 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1258 RANLIB
="$ac_cv_prog_RANLIB"
1259 if test -n "$RANLIB"; then
1260 echo "$ac_t""$RANLIB" 1>&6
1262 echo "$ac_t""no" 1>&6
1266 if test -z "$ac_cv_prog_RANLIB"; then
1267 if test -n "$ac_tool_prefix"; then
1268 # Extract the first word of "ranlib", so it can be a program name with args.
1269 set dummy ranlib
; ac_word
=$2
1270 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1271 echo "configure:1272: checking for $ac_word" >&5
1272 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
1273 echo $ac_n "(cached) $ac_c" 1>&6
1275 if test -n "$RANLIB"; then
1276 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1278 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1280 for ac_dir
in $ac_dummy; do
1281 test -z "$ac_dir" && ac_dir
=.
1282 if test -f $ac_dir/$ac_word; then
1283 ac_cv_prog_RANLIB
="ranlib"
1288 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1291 RANLIB
="$ac_cv_prog_RANLIB"
1292 if test -n "$RANLIB"; then
1293 echo "$ac_t""$RANLIB" 1>&6
1295 echo "$ac_t""no" 1>&6
1304 # Check whether --enable-shared or --disable-shared was given.
1305 if test "${enable_shared+set}" = set; then
1306 enableval
="$enable_shared"
1307 p
=${PACKAGE-default}
1308 case "$enableval" in
1309 yes) enable_shared
=yes ;;
1310 no
) enable_shared
=no
;;
1313 # Look at the argument we got. We use all the common list separators.
1314 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1315 for pkg
in $enableval; do
1316 if test "X$pkg" = "X$p"; then
1328 # Check whether --enable-static or --disable-static was given.
1329 if test "${enable_static+set}" = set; then
1330 enableval
="$enable_static"
1331 p
=${PACKAGE-default}
1332 case "$enableval" in
1333 yes) enable_static
=yes ;;
1334 no
) enable_static
=no
;;
1337 # Look at the argument we got. We use all the common list separators.
1338 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1339 for pkg
in $enableval; do
1340 if test "X$pkg" = "X$p"; then
1351 # Check whether --enable-fast-install or --disable-fast-install was given.
1352 if test "${enable_fast_install+set}" = set; then
1353 enableval
="$enable_fast_install"
1354 p
=${PACKAGE-default}
1355 case "$enableval" in
1356 yes) enable_fast_install
=yes ;;
1357 no
) enable_fast_install
=no
;;
1359 enable_fast_install
=no
1360 # Look at the argument we got. We use all the common list separators.
1361 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1362 for pkg
in $enableval; do
1363 if test "X$pkg" = "X$p"; then
1364 enable_fast_install
=yes
1371 enable_fast_install
=yes
1374 # Extract the first word of "ranlib", so it can be a program name with args.
1375 set dummy ranlib
; ac_word
=$2
1376 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1377 echo "configure:1378: checking for $ac_word" >&5
1378 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
1379 echo $ac_n "(cached) $ac_c" 1>&6
1381 if test -n "$RANLIB"; then
1382 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1384 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1386 for ac_dir
in $ac_dummy; do
1387 test -z "$ac_dir" && ac_dir
=.
1388 if test -f $ac_dir/$ac_word; then
1389 ac_cv_prog_RANLIB
="ranlib"
1394 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1397 RANLIB
="$ac_cv_prog_RANLIB"
1398 if test -n "$RANLIB"; then
1399 echo "$ac_t""$RANLIB" 1>&6
1401 echo "$ac_t""no" 1>&6
1404 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1405 if test "${with_gnu_ld+set}" = set; then
1406 withval
="$with_gnu_ld"
1407 test "$withval" = no || with_gnu_ld
=yes
1413 if test "$ac_cv_prog_gcc" = yes; then
1414 # Check if gcc -print-prog-name=ld gives a path.
1415 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1416 echo "configure:1417: checking for ld used by GCC" >&5
1417 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1419 # Accept absolute paths.
1420 /* |
[A-Za-z
]:[\\/]*)
1421 re_direlt
='/[^/][^/]*/\.\./'
1422 # Canonicalize the path of ld
1423 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1424 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1425 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1427 test -z "$LD" && LD
="$ac_prog"
1430 # If it fails, then pretend we aren't using GCC.
1434 # If it is relative, then search for the first ld in PATH.
1438 elif test "$with_gnu_ld" = yes; then
1439 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1440 echo "configure:1441: checking for GNU ld" >&5
1442 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1443 echo "configure:1444: checking for non-GNU ld" >&5
1445 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
1446 echo $ac_n "(cached) $ac_c" 1>&6
1448 if test -z "$LD"; then
1449 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1450 for ac_dir
in $PATH; do
1451 test -z "$ac_dir" && ac_dir
=.
1452 if test -f "$ac_dir/$ac_prog"; then
1453 ac_cv_path_LD
="$ac_dir/$ac_prog"
1454 # Check to see if the program is GNU ld. I'd rather use --version,
1455 # but apparently some GNU ld's only accept -v.
1456 # Break only if it was the GNU/non-GNU ld that we prefer.
1457 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1458 test "$with_gnu_ld" != no
&& break
1460 test "$with_gnu_ld" != yes && break
1466 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1471 if test -n "$LD"; then
1472 echo "$ac_t""$LD" 1>&6
1474 echo "$ac_t""no" 1>&6
1476 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1478 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1479 echo "configure:1480: checking if the linker ($LD) is GNU ld" >&5
1480 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
1481 echo $ac_n "(cached) $ac_c" 1>&6
1483 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1484 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1485 ac_cv_prog_gnu_ld
=yes
1487 ac_cv_prog_gnu_ld
=no
1491 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1494 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1495 echo "configure:1496: checking for BSD-compatible nm" >&5
1496 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
1497 echo $ac_n "(cached) $ac_c" 1>&6
1499 if test -n "$NM"; then
1500 # Let the user override the test.
1503 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1504 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1505 test -z "$ac_dir" && ac_dir
=.
1506 if test -f $ac_dir/nm
; then
1507 # Check to see if the nm accepts a BSD-compat flag.
1508 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1509 # nm: unknown option "B" ignored
1510 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1511 ac_cv_path_NM
="$ac_dir/nm -B"
1513 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1514 ac_cv_path_NM
="$ac_dir/nm -p"
1517 ac_cv_path_NM
=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1518 continue # so that we can try to find one that supports BSD flags
1523 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1528 echo "$ac_t""$NM" 1>&6
1531 # Check for command to grab the raw symbol name followed by C symbol from nm.
1532 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
1533 echo "configure:1534: checking command to parse $NM output" >&5
1534 if eval "test \"\${ac_cv_sys_global_symbol_pipe+set}\" = set"; then
1535 echo $ac_n "(cached) $ac_c" 1>&6
1537 # These are sane defaults that work on at least a few old systems.
1538 # {They come from Ultrix. What could be older than Ultrix?!! ;)}
1540 # Character class describing NM global symbol codes.
1541 ac_symcode
='[BCDEGRST]'
1543 # Regexp to match symbols that can be accessed directly from C.
1544 ac_sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
1546 # Transform the above into a raw symbol and a C symbol.
1547 ac_symxfrm
='\1 \2\3 \3'
1549 # Transform an extracted symbol line into a proper C declaration
1550 ac_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
1552 # Define system-specific variables.
1558 ac_symcode
='[ABCDGISTW]'
1561 ac_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
1564 ac_symcode
='[BCDEGRST]'
1571 # If we're using GNU nm, then use its standard symbol codes.
1572 if $NM -V 2>&1 |
egrep '(GNU|with BFD)' > /dev
/null
; then
1573 ac_symcode
='[ABCDGISTW]'
1576 # Try without a prefix undercore, then with it.
1577 for ac_symprfx
in "" "_"; do
1579 ac_cv_sys_global_symbol_pipe
="sed -n -e 's/^.* \($ac_symcode\) *\($ac_symprfx\)$ac_sympat$/$ac_symxfrm/p'"
1581 # Check to see that the pipe works correctly.
1583 rm -f conftest.
$ac_ext
1584 cat > conftest.
$ac_ext <<EOF
1589 void nm_test_func(){}
1593 int main(){nm_test_var='a';nm_test_func;return 0;}
1596 if { (eval echo configure
:1597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1597 # Now try to grab the symbols.
1598 ac_nlist
=conftest.nm
1600 if { (eval echo configure
:1601: \"$NM conftest.
$ac_objext \|
$ac_cv_sys_global_symbol_pipe \
> $ac_nlist\") 1>&5; (eval $NM conftest.
$ac_objext \|
$ac_cv_sys_global_symbol_pipe \
> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
1602 # Try sorting and uniquifying the output.
1603 if sort "$ac_nlist" |
uniq > "$ac_nlist"T
; then
1604 mv -f "$ac_nlist"T
"$ac_nlist"
1609 # Make sure that we snagged all the symbols we need.
1610 if egrep ' nm_test_var$' "$ac_nlist" >/dev
/null
; then
1611 if egrep ' nm_test_func$' "$ac_nlist" >/dev
/null
; then
1612 cat <<EOF > conftest.c
1618 # Now generate the symbol file.
1619 eval "$ac_global_symbol_to_cdecl"' < "$ac_nlist" >> conftest.c'
1621 cat <<EOF >> conftest.c
1622 #if defined (__STDC__) && __STDC__
1623 # define lt_ptr_t void *
1625 # define lt_ptr_t char *
1629 /* The mapping between symbol names and symbols. */
1634 lt_preloaded_symbols[] =
1637 sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$ac_nlist" >> conftest.c
1638 cat <<\EOF
>> conftest.c
1646 # Now try linking the two files.
1647 mv conftest.
$ac_objext conftestm.
$ac_objext
1648 ac_save_LIBS
="$LIBS"
1649 ac_save_CFLAGS
="$CFLAGS"
1650 LIBS
="conftestm.$ac_objext"
1651 CFLAGS
="$CFLAGS$no_builtin_flag"
1652 if { (eval echo configure
:1653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1655 echo "configure: failed program was:" >&5
1658 LIBS
="$ac_save_LIBS"
1659 CFLAGS
="$ac_save_CFLAGS"
1661 echo "cannot find nm_test_func in $ac_nlist" >&5
1664 echo "cannot find nm_test_var in $ac_nlist" >&5
1667 echo "cannot run $ac_cv_sys_global_symbol_pipe" >&5
1670 echo "$progname: failed program was:" >&5
1675 # Do not use the global_symbol_pipe unless it works.
1676 if test "$ac_pipe_works" = yes; then
1677 if test x
"$ac_symprfx" = x
"_"; then
1678 ac_cv_sys_symbol_underscore
=yes
1680 ac_cv_sys_symbol_underscore
=no
1684 ac_cv_sys_global_symbol_pipe
=
1692 if test -z "$ac_cv_sys_global_symbol_pipe"; then
1695 echo "$ac_t""$ac_result" 1>&6
1697 echo $ac_n "checking for _ prefix in compiled symbols""... $ac_c" 1>&6
1698 echo "configure:1699: checking for _ prefix in compiled symbols" >&5
1699 if eval "test \"\${ac_cv_sys_symbol_underscore+set}\" = set"; then
1700 echo $ac_n "(cached) $ac_c" 1>&6
1702 ac_cv_sys_symbol_underscore
=no
1703 cat > conftest.
$ac_ext <<EOF
1704 void nm_test_func(){}
1705 int main(){nm_test_func;return 0;}
1707 if { (eval echo configure
:1708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1708 # Now try to grab the symbols.
1709 ac_nlist
=conftest.nm
1710 if { (eval echo configure
:1711: \"$NM conftest.
$ac_objext \|
$ac_cv_sys_global_symbol_pipe \
> $ac_nlist\") 1>&5; (eval $NM conftest.
$ac_objext \|
$ac_cv_sys_global_symbol_pipe \
> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
1711 # See whether the symbols have a leading underscore.
1712 if egrep '^. _nm_test_func' "$ac_nlist" >/dev
/null
; then
1713 ac_cv_sys_symbol_underscore
=yes
1715 if egrep '^. nm_test_func ' "$ac_nlist" >/dev
/null
; then
1718 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
1722 echo "configure: cannot run $ac_cv_sys_global_symbol_pipe" >&5
1725 echo "configure: failed program was:" >&5
1732 echo "$ac_t""$ac_cv_sys_symbol_underscore" 1>&6
1733 USE_SYMBOL_UNDERSCORE
=${ac_cv_sys_symbol_underscore=no}
1735 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1736 echo "configure:1737: checking whether ln -s works" >&5
1737 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
1738 echo $ac_n "(cached) $ac_c" 1>&6
1741 if ln -s X conftestdata
2>/dev
/null
1744 ac_cv_prog_LN_S
="ln -s"
1749 LN_S
="$ac_cv_prog_LN_S"
1750 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1751 echo "$ac_t""yes" 1>&6
1753 echo "$ac_t""no" 1>&6
1757 # Check for any special flags to pass to ltconfig.
1758 libtool_flags
="--cache-file=$cache_file"
1759 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1760 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1761 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1762 test "$lt_dlopen" = yes && libtool_flags
="$libtool_flags --enable-dlopen"
1763 test "$silent" = yes && libtool_flags
="$libtool_flags --silent"
1764 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1765 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1767 # Some flags need to be propagated to the compiler or linker for good
1771 # Find out which ABI we are using.
1772 echo '#line 1773 "configure"' > conftest.
$ac_ext
1773 if { (eval echo configure
:1774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1774 case "`/usr/bin/file conftest.o`" in
1790 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1791 SAVE_CFLAGS
="$CFLAGS"
1792 CFLAGS
="$CFLAGS -belf"
1793 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1794 echo "configure:1795: checking whether the C compiler needs -belf" >&5
1795 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
1796 echo $ac_n "(cached) $ac_c" 1>&6
1798 cat > conftest.
$ac_ext <<EOF
1799 #line 1800 "configure"
1800 #include "confdefs.h"
1806 if { (eval echo configure
:1807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1808 lt_cv_cc_needs_belf
=yes
1810 echo "configure: failed program was:" >&5
1811 cat conftest.
$ac_ext >&5
1813 lt_cv_cc_needs_belf
=no
1818 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1819 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
1820 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1821 CFLAGS
="$SAVE_CFLAGS"
1826 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
1827 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
1828 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1829 echo "configure:1830: checking for $ac_word" >&5
1830 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
1831 echo $ac_n "(cached) $ac_c" 1>&6
1833 if test -n "$DLLTOOL"; then
1834 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
1836 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1838 for ac_dir
in $ac_dummy; do
1839 test -z "$ac_dir" && ac_dir
=.
1840 if test -f $ac_dir/$ac_word; then
1841 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
1848 DLLTOOL
="$ac_cv_prog_DLLTOOL"
1849 if test -n "$DLLTOOL"; then
1850 echo "$ac_t""$DLLTOOL" 1>&6
1852 echo "$ac_t""no" 1>&6
1856 if test -z "$ac_cv_prog_DLLTOOL"; then
1857 if test -n "$ac_tool_prefix"; then
1858 # Extract the first word of "dlltool", so it can be a program name with args.
1859 set dummy dlltool
; ac_word
=$2
1860 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1861 echo "configure:1862: checking for $ac_word" >&5
1862 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
1863 echo $ac_n "(cached) $ac_c" 1>&6
1865 if test -n "$DLLTOOL"; then
1866 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
1868 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1870 for ac_dir
in $ac_dummy; do
1871 test -z "$ac_dir" && ac_dir
=.
1872 if test -f $ac_dir/$ac_word; then
1873 ac_cv_prog_DLLTOOL
="dlltool"
1878 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL
="false"
1881 DLLTOOL
="$ac_cv_prog_DLLTOOL"
1882 if test -n "$DLLTOOL"; then
1883 echo "$ac_t""$DLLTOOL" 1>&6
1885 echo "$ac_t""no" 1>&6
1893 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1894 set dummy
${ac_tool_prefix}as
; ac_word
=$2
1895 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1896 echo "configure:1897: checking for $ac_word" >&5
1897 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
1898 echo $ac_n "(cached) $ac_c" 1>&6
1900 if test -n "$AS"; then
1901 ac_cv_prog_AS
="$AS" # Let the user override the test.
1903 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1905 for ac_dir
in $ac_dummy; do
1906 test -z "$ac_dir" && ac_dir
=.
1907 if test -f $ac_dir/$ac_word; then
1908 ac_cv_prog_AS
="${ac_tool_prefix}as"
1916 if test -n "$AS"; then
1917 echo "$ac_t""$AS" 1>&6
1919 echo "$ac_t""no" 1>&6
1923 if test -z "$ac_cv_prog_AS"; then
1924 if test -n "$ac_tool_prefix"; then
1925 # Extract the first word of "as", so it can be a program name with args.
1926 set dummy as
; ac_word
=$2
1927 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1928 echo "configure:1929: checking for $ac_word" >&5
1929 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
1930 echo $ac_n "(cached) $ac_c" 1>&6
1932 if test -n "$AS"; then
1933 ac_cv_prog_AS
="$AS" # Let the user override the test.
1935 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1937 for ac_dir
in $ac_dummy; do
1938 test -z "$ac_dir" && ac_dir
=.
1939 if test -f $ac_dir/$ac_word; then
1945 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS
="false"
1949 if test -n "$AS"; then
1950 echo "$ac_t""$AS" 1>&6
1952 echo "$ac_t""no" 1>&6
1965 # enable the --disable-libtool-lock switch
1967 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1968 if test "${enable_libtool_lock+set}" = set; then
1969 enableval
="$enable_libtool_lock"
1970 need_locks
=$enableval
1976 if test x
"$need_locks" = xno
; then
1977 libtool_flags
="$libtool_flags --disable-lock"
1981 # Save cache, so that ltconfig can load it
1982 cat > confcache
<<\EOF
1983 # This file is a shell script that caches the results of configure
1984 # tests run on this system so they can be shared between configure
1985 # scripts and configure runs. It is not useful on other systems.
1986 # If it contains results you don't want to keep, you may remove or edit it.
1988 # By default, configure uses ./config.cache as the cache file,
1989 # creating it if it does not exist already. You can give configure
1990 # the --cache-file=FILE option to use a different cache file; that is
1991 # what configure does when it calls configure scripts in
1992 # subdirectories, so they share the cache.
1993 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1994 # config.status only pays attention to the cache file if you give it the
1995 # --recheck option to rerun configure.
1998 # The following way of writing the cache mishandles newlines in values,
1999 # but we know of no workaround that is simple, portable, and efficient.
2000 # So, don't put newlines in cache variables' values.
2001 # Ultrix sh set writes to stderr and can't be redirected directly,
2002 # and sets the high bit in the cache file unless we assign to the vars.
2004 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2006 # `set' does not quote correctly, so add quotes (double-quote substitution
2007 # turns \\\\ into \\, and sed turns \\ into \).
2009 -e "s/'/'\\\\''/g" \
2010 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2013 # `set' quotes correctly as required by POSIX, so do not add quotes.
2014 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2017 if cmp -s $cache_file confcache
; then
2020 if test -w $cache_file; then
2021 echo "updating cache $cache_file"
2022 cat confcache
> $cache_file
2024 echo "not updating unwritable cache $cache_file"
2030 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2031 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
2032 LD
="$LD" NM
="$NM" RANLIB
="$RANLIB" LN_S
="$LN_S" \
2033 DLLTOOL
="$DLLTOOL" AS
="$AS" \
2034 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
2035 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$host \
2036 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2038 # Reload cache, that may have been modified by ltconfig
2039 if test -r "$cache_file"; then
2040 echo "loading cache $cache_file"
2041 test -f "$cache_file" && .
$cache_file
2043 echo "creating cache $cache_file"
2048 # This can be used to rebuild libtool when needed
2049 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
2051 # Always use our own libtool.
2052 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
2054 # Redirect the config.log output again, so that the ltconfig log is not
2055 # clobbered by the next message.
2056 exec 5>>.
/config.log
2059 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
2060 if test "${enable_64_bit_bfd+set}" = set; then
2061 enableval
="$enable_64_bit_bfd"
2062 case "${enableval}" in
2065 *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;;
2070 # Check whether --enable-targets or --disable-targets was given.
2071 if test "${enable_targets+set}" = set; then
2072 enableval
="$enable_targets"
2073 case "${enableval}" in
2074 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
2076 no
) enable_targets
= ;;
2077 *) enable_targets
=$enableval ;;
2080 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
2081 if test "${enable_commonbfdlib+set}" = set; then
2082 enableval
="$enable_commonbfdlib"
2083 case "${enableval}" in
2084 yes) commonbfdlib
=true
;;
2085 no
) commonbfdlib
=false
;;
2086 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
2089 # Check whether --with-mmap or --without-mmap was given.
2090 if test "${with_mmap+set}" = set; then
2091 withval
="$with_mmap"
2092 case "${withval}" in
2093 yes) want_mmap
=true
;;
2094 no
) want_mmap
=false
;;
2095 *) { echo "configure: error: bad value ${withval} for BFD with-mmap option" 1>&2; exit 1; } ;;
2105 if test -z "$target" ; then
2106 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
2108 if test "$program_transform_name" = s
,x
,x
,; then
2109 program_transform_name
=
2111 # Double any \ or $. echo might interpret backslashes.
2112 cat <<\EOF_SED
> conftestsed
2113 s
,\\,\\\\,g
; s
,\$
,$$
,g
2115 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
2118 test "$program_prefix" != NONE
&&
2119 program_transform_name
="s,^,${program_prefix},;$program_transform_name"
2120 # Use a double $ so make ignores it.
2121 test "$program_suffix" != NONE
&&
2122 program_transform_name
="s,\$\$,${program_suffix},;$program_transform_name"
2124 # sed with no file args requires a program.
2125 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
2128 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2129 echo "configure:2130: checking whether to enable maintainer-specific portions of Makefiles" >&5
2130 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2131 if test "${enable_maintainer_mode+set}" = set; then
2132 enableval
="$enable_maintainer_mode"
2133 USE_MAINTAINER_MODE
=$enableval
2135 USE_MAINTAINER_MODE
=no
2138 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2141 if test $USE_MAINTAINER_MODE = yes; then
2142 MAINTAINER_MODE_TRUE
=
2143 MAINTAINER_MODE_FALSE
='#'
2145 MAINTAINER_MODE_TRUE
='#'
2146 MAINTAINER_MODE_FALSE
=
2148 MAINT
=$MAINTAINER_MODE_TRUE
2151 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2152 echo "configure:2153: checking for Cygwin environment" >&5
2153 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
2154 echo $ac_n "(cached) $ac_c" 1>&6
2156 cat > conftest.
$ac_ext <<EOF
2157 #line 2158 "configure"
2158 #include "confdefs.h"
2163 #define __CYGWIN__ __CYGWIN32__
2168 if { (eval echo configure
:2169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2172 echo "configure: failed program was:" >&5
2173 cat conftest.
$ac_ext >&5
2180 echo "$ac_t""$ac_cv_cygwin" 1>&6
2182 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
2183 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
2184 echo "configure:2185: checking for mingw32 environment" >&5
2185 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
2186 echo $ac_n "(cached) $ac_c" 1>&6
2188 cat > conftest.
$ac_ext <<EOF
2189 #line 2190 "configure"
2190 #include "confdefs.h"
2196 if { (eval echo configure
:2197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2200 echo "configure: failed program was:" >&5
2201 cat conftest.
$ac_ext >&5
2208 echo "$ac_t""$ac_cv_mingw32" 1>&6
2210 test "$ac_cv_mingw32" = yes && MINGW32
=yes
2211 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
2212 echo "configure:2213: checking for EMX OS/2 environment" >&5
2213 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
2214 echo $ac_n "(cached) $ac_c" 1>&6
2216 cat > conftest.
$ac_ext <<EOF
2217 #line 2218 "configure"
2218 #include "confdefs.h"
2224 if { (eval echo configure
:2225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2228 echo "configure: failed program was:" >&5
2229 cat conftest.
$ac_ext >&5
2236 echo "$ac_t""$ac_cv_emxos2" 1>&6
2238 test "$ac_cv_emxos2" = yes && EMXOS2
=yes
2242 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2243 echo "configure:2244: checking for executable suffix" >&5
2244 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
2245 echo $ac_n "(cached) $ac_c" 1>&6
2247 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes ||
test "$EMXOS2" = yes; then
2251 echo 'int main () { return 0; }' > conftest.
$ac_ext
2253 if { (eval echo configure
:2254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2254 for file in conftest.
*; do
2256 *.c |
*.C |
*.o |
*.obj |
*.xcoff
) ;;
2257 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
2261 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2264 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
2269 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
2270 echo "$ac_t""${ac_cv_exeext}" 1>&6
2279 # Extract the first word of "gcc", so it can be a program name with args.
2280 set dummy gcc
; ac_word
=$2
2281 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2282 echo "configure:2283: checking for $ac_word" >&5
2283 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2284 echo $ac_n "(cached) $ac_c" 1>&6
2286 if test -n "$CC"; then
2287 ac_cv_prog_CC
="$CC" # Let the user override the test.
2289 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2291 for ac_dir
in $ac_dummy; do
2292 test -z "$ac_dir" && ac_dir
=.
2293 if test -f $ac_dir/$ac_word; then
2302 if test -n "$CC"; then
2303 echo "$ac_t""$CC" 1>&6
2305 echo "$ac_t""no" 1>&6
2308 if test -z "$CC"; then
2309 # Extract the first word of "cc", so it can be a program name with args.
2310 set dummy cc
; ac_word
=$2
2311 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2312 echo "configure:2313: checking for $ac_word" >&5
2313 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2314 echo $ac_n "(cached) $ac_c" 1>&6
2316 if test -n "$CC"; then
2317 ac_cv_prog_CC
="$CC" # Let the user override the test.
2319 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2322 for ac_dir
in $ac_dummy; do
2323 test -z "$ac_dir" && ac_dir
=.
2324 if test -f $ac_dir/$ac_word; then
2325 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2326 ac_prog_rejected
=yes
2334 if test $ac_prog_rejected = yes; then
2335 # We found a bogon in the path, so make sure we never use it.
2336 set dummy
$ac_cv_prog_CC
2338 if test $# -gt 0; then
2339 # We chose a different compiler from the bogus one.
2340 # However, it has the same basename, so the bogon will be chosen
2341 # first if we set CC to just the basename; use the full file name.
2343 set dummy
"$ac_dir/$ac_word" "$@"
2351 if test -n "$CC"; then
2352 echo "$ac_t""$CC" 1>&6
2354 echo "$ac_t""no" 1>&6
2357 if test -z "$CC"; then
2358 case "`uname -s`" in
2359 *win32
* |
*WIN32
* |
*CYGWIN
*)
2360 # Extract the first word of "cl", so it can be a program name with args.
2361 set dummy cl
; ac_word
=$2
2362 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2363 echo "configure:2364: checking for $ac_word" >&5
2364 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2365 echo $ac_n "(cached) $ac_c" 1>&6
2367 if test -n "$CC"; then
2368 ac_cv_prog_CC
="$CC" # Let the user override the test.
2370 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2372 for ac_dir
in $ac_dummy; do
2373 test -z "$ac_dir" && ac_dir
=.
2374 if test -f $ac_dir/$ac_word; then
2383 if test -n "$CC"; then
2384 echo "$ac_t""$CC" 1>&6
2386 echo "$ac_t""no" 1>&6
2391 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2394 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2395 echo "configure:2396: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
2398 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2399 ac_cpp
='$CPP $CPPFLAGS'
2400 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2401 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2402 cross_compiling
=$ac_cv_prog_cc_cross
2404 cat > conftest.
$ac_ext << EOF
2406 #line 2407 "configure"
2407 #include "confdefs.h"
2411 if { (eval echo configure
:2412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2412 ac_cv_prog_cc_works
=yes
2413 # If we can't run a trivial program, we are probably using a cross compiler.
2414 if (.
/conftest
; exit) 2>/dev
/null
; then
2415 ac_cv_prog_cc_cross
=no
2417 ac_cv_prog_cc_cross
=yes
2420 echo "configure: failed program was:" >&5
2421 cat conftest.
$ac_ext >&5
2422 ac_cv_prog_cc_works
=no
2426 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2427 ac_cpp
='$CPP $CPPFLAGS'
2428 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2429 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2430 cross_compiling
=$ac_cv_prog_cc_cross
2432 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2433 if test $ac_cv_prog_cc_works = no
; then
2434 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2436 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2437 echo "configure:2438: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
2438 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2439 cross_compiling
=$ac_cv_prog_cc_cross
2441 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2442 echo "configure:2443: checking whether we are using GNU C" >&5
2443 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
2444 echo $ac_n "(cached) $ac_c" 1>&6
2446 cat > conftest.c
<<EOF
2451 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2452: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2458 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2460 if test $ac_cv_prog_gcc = yes; then
2466 ac_test_CFLAGS
="${CFLAGS+set}"
2467 ac_save_CFLAGS
="$CFLAGS"
2469 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2470 echo "configure:2471: checking whether ${CC-cc} accepts -g" >&5
2471 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
2472 echo $ac_n "(cached) $ac_c" 1>&6
2474 echo 'void f(){}' > conftest.c
2475 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2484 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2485 if test "$ac_test_CFLAGS" = set; then
2486 CFLAGS
="$ac_save_CFLAGS"
2487 elif test $ac_cv_prog_cc_g = yes; then
2488 if test "$GCC" = yes; then
2494 if test "$GCC" = yes; then
2503 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2504 echo "configure:2505: checking how to run the C preprocessor" >&5
2505 # On Suns, sometimes $CPP names a directory.
2506 if test -n "$CPP" && test -d "$CPP"; then
2509 if test -z "$CPP"; then
2510 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
2511 echo $ac_n "(cached) $ac_c" 1>&6
2513 # This must be in double quotes, not single quotes, because CPP may get
2514 # substituted into the Makefile and "${CC-cc}" will confuse make.
2516 # On the NeXT, cc -E runs the code through the compiler's parser,
2517 # not just through cpp.
2518 cat > conftest.
$ac_ext <<EOF
2519 #line 2520 "configure"
2520 #include "confdefs.h"
2524 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2525 { (eval echo configure
:2526: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2526 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2527 if test -z "$ac_err"; then
2531 echo "configure: failed program was:" >&5
2532 cat conftest.
$ac_ext >&5
2534 CPP
="${CC-cc} -E -traditional-cpp"
2535 cat > conftest.
$ac_ext <<EOF
2536 #line 2537 "configure"
2537 #include "confdefs.h"
2541 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2542 { (eval echo configure
:2543: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2543 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2544 if test -z "$ac_err"; then
2548 echo "configure: failed program was:" >&5
2549 cat conftest.
$ac_ext >&5
2551 CPP
="${CC-cc} -nologo -E"
2552 cat > conftest.
$ac_ext <<EOF
2553 #line 2554 "configure"
2554 #include "confdefs.h"
2558 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2559 { (eval echo configure
:2560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2560 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2561 if test -z "$ac_err"; then
2565 echo "configure: failed program was:" >&5
2566 cat conftest.
$ac_ext >&5
2575 ac_cv_prog_CPP
="$CPP"
2577 CPP
="$ac_cv_prog_CPP"
2579 ac_cv_prog_CPP
="$CPP"
2581 echo "$ac_t""$CPP" 1>&6
2583 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2584 echo "configure:2585: checking for ANSI C header files" >&5
2585 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
2586 echo $ac_n "(cached) $ac_c" 1>&6
2588 cat > conftest.
$ac_ext <<EOF
2589 #line 2590 "configure"
2590 #include "confdefs.h"
2596 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2597 { (eval echo configure
:2598: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2598 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2599 if test -z "$ac_err"; then
2601 ac_cv_header_stdc
=yes
2604 echo "configure: failed program was:" >&5
2605 cat conftest.
$ac_ext >&5
2607 ac_cv_header_stdc
=no
2611 if test $ac_cv_header_stdc = yes; then
2612 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2613 cat > conftest.
$ac_ext <<EOF
2614 #line 2615 "configure"
2615 #include "confdefs.h"
2618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2619 egrep "memchr" >/dev
/null
2>&1; then
2623 ac_cv_header_stdc
=no
2629 if test $ac_cv_header_stdc = yes; then
2630 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2631 cat > conftest.
$ac_ext <<EOF
2632 #line 2633 "configure"
2633 #include "confdefs.h"
2636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2637 egrep "free" >/dev
/null
2>&1; then
2641 ac_cv_header_stdc
=no
2647 if test $ac_cv_header_stdc = yes; then
2648 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2649 if test "$cross_compiling" = yes; then
2652 cat > conftest.
$ac_ext <<EOF
2653 #line 2654 "configure"
2654 #include "confdefs.h"
2656 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2657 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2658 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2659 int main () { int i; for (i = 0; i < 256; i++)
2660 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2664 if { (eval echo configure
:2665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2668 echo "configure: failed program was:" >&5
2669 cat conftest.
$ac_ext >&5
2671 ac_cv_header_stdc
=no
2679 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2680 if test $ac_cv_header_stdc = yes; then
2681 cat >> confdefs.h
<<\EOF
2682 #define STDC_HEADERS 1
2687 echo $ac_n "checking for working const""... $ac_c" 1>&6
2688 echo "configure:2689: checking for working const" >&5
2689 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
2690 echo $ac_n "(cached) $ac_c" 1>&6
2692 cat > conftest.
$ac_ext <<EOF
2693 #line 2694 "configure"
2694 #include "confdefs.h"
2698 /* Ultrix mips cc rejects this. */
2699 typedef int charset[2]; const charset x;
2700 /* SunOS 4.1.1 cc rejects this. */
2701 char const *const *ccp;
2703 /* NEC SVR4.0.2 mips cc rejects this. */
2704 struct point {int x, y;};
2705 static struct point const zero = {0,0};
2706 /* AIX XL C 1.02.0.0 rejects this.
2707 It does not let you subtract one const X* pointer from another in an arm
2708 of an if-expression whose if-part is not a constant expression */
2709 const char *g = "string";
2710 ccp = &g + (g ? g-g : 0);
2711 /* HPUX 7.0 cc rejects these. */
2714 ccp = (char const *const *) p;
2715 { /* SCO 3.2v4 cc rejects this. */
2717 char const *s = 0 ? (char *) 0 : (char const *) 0;
2721 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2723 const int *foo = &x[0];
2726 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2727 typedef const int *iptr;
2731 { /* AIX XL C 1.02.0.0 rejects this saying
2732 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2733 struct s { int j; const int *ap[3]; };
2734 struct s *b; b->j = 5;
2736 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2742 if { (eval echo configure
:2743: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2746 echo "configure: failed program was:" >&5
2747 cat conftest.
$ac_ext >&5
2754 echo "$ac_t""$ac_cv_c_const" 1>&6
2755 if test $ac_cv_c_const = no
; then
2756 cat >> confdefs.h
<<\EOF
2762 echo $ac_n "checking for inline""... $ac_c" 1>&6
2763 echo "configure:2764: checking for inline" >&5
2764 if eval "test \"\${ac_cv_c_inline+set}\" = set"; then
2765 echo $ac_n "(cached) $ac_c" 1>&6
2768 for ac_kw
in inline __inline__ __inline
; do
2769 cat > conftest.
$ac_ext <<EOF
2770 #line 2771 "configure"
2771 #include "confdefs.h"
2774 } $ac_kw int foo() {
2777 if { (eval echo configure
:2778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2779 ac_cv_c_inline
=$ac_kw; break
2781 echo "configure: failed program was:" >&5
2782 cat conftest.
$ac_ext >&5
2789 echo "$ac_t""$ac_cv_c_inline" 1>&6
2790 case "$ac_cv_c_inline" in
2792 no
) cat >> confdefs.h
<<\EOF
2796 *) cat >> confdefs.h
<<EOF
2797 #define inline $ac_cv_c_inline
2802 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2803 echo "configure:2804: checking for off_t" >&5
2804 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
2805 echo $ac_n "(cached) $ac_c" 1>&6
2807 cat > conftest.
$ac_ext <<EOF
2808 #line 2809 "configure"
2809 #include "confdefs.h"
2810 #include <sys/types.h>
2816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2817 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2819 eval "ac_cv_type_off_t=yes"
2822 eval "ac_cv_type_off_t=no"
2827 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
2828 echo "$ac_t""yes" 1>&6
2830 echo "$ac_t""no" 1>&6
2831 cat >> confdefs.h
<<EOF
2837 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2838 echo "configure:2839: checking for size_t" >&5
2839 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
2840 echo $ac_n "(cached) $ac_c" 1>&6
2842 cat > conftest.
$ac_ext <<EOF
2843 #line 2844 "configure"
2844 #include "confdefs.h"
2845 #include <sys/types.h>
2851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2852 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2854 eval "ac_cv_type_size_t=yes"
2857 eval "ac_cv_type_size_t=no"
2862 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
2863 echo "$ac_t""yes" 1>&6
2865 echo "$ac_t""no" 1>&6
2866 cat >> confdefs.h
<<EOF
2867 #define size_t unsigned
2872 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2873 # for constant arguments. Useless!
2874 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2875 echo "configure:2876: checking for working alloca.h" >&5
2876 if eval "test \"\${ac_cv_header_alloca_h+set}\" = set"; then
2877 echo $ac_n "(cached) $ac_c" 1>&6
2879 cat > conftest.
$ac_ext <<EOF
2880 #line 2881 "configure"
2881 #include "confdefs.h"
2884 char *p = alloca(2 * sizeof(int));
2887 if { (eval echo configure
:2888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2889 ac_cv_header_alloca_h
=yes
2891 echo "configure: failed program was:" >&5
2892 cat conftest.
$ac_ext >&5
2894 ac_cv_header_alloca_h
=no
2899 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2900 if test $ac_cv_header_alloca_h = yes; then
2901 cat >> confdefs.h
<<\EOF
2902 #define HAVE_ALLOCA_H 1
2907 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2908 echo "configure:2909: checking for alloca" >&5
2909 if eval "test \"\${ac_cv_func_alloca_works+set}\" = set"; then
2910 echo $ac_n "(cached) $ac_c" 1>&6
2912 cat > conftest.
$ac_ext <<EOF
2913 #line 2914 "configure"
2914 #include "confdefs.h"
2917 # define alloca __builtin_alloca
2920 # include <malloc.h>
2921 # define alloca _alloca
2924 # include <alloca.h>
2929 # ifndef alloca /* predefined by HP cc +Olibcalls */
2938 char *p = (char *) alloca(1);
2941 if { (eval echo configure
:2942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2943 ac_cv_func_alloca_works
=yes
2945 echo "configure: failed program was:" >&5
2946 cat conftest.
$ac_ext >&5
2948 ac_cv_func_alloca_works
=no
2953 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2954 if test $ac_cv_func_alloca_works = yes; then
2955 cat >> confdefs.h
<<\EOF
2956 #define HAVE_ALLOCA 1
2961 if test $ac_cv_func_alloca_works = no
; then
2962 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2963 # that cause trouble. Some versions do not even contain alloca or
2964 # contain a buggy version. If you still want to use their alloca,
2965 # use ar to extract alloca.o from them instead of compiling alloca.c.
2966 ALLOCA
=alloca.
${ac_objext}
2967 cat >> confdefs.h
<<\EOF
2972 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2973 echo "configure:2974: checking whether alloca needs Cray hooks" >&5
2974 if eval "test \"\${ac_cv_os_cray+set}\" = set"; then
2975 echo $ac_n "(cached) $ac_c" 1>&6
2977 cat > conftest.
$ac_ext <<EOF
2978 #line 2979 "configure"
2979 #include "confdefs.h"
2980 #if defined(CRAY) && ! defined(CRAY2)
2987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2988 egrep "webecray" >/dev
/null
2>&1; then
2999 echo "$ac_t""$ac_cv_os_cray" 1>&6
3000 if test $ac_cv_os_cray = yes; then
3001 for ac_func
in _getb67 GETB67 getb67
; do
3002 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3003 echo "configure:3004: checking for $ac_func" >&5
3004 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
3005 echo $ac_n "(cached) $ac_c" 1>&6
3007 cat > conftest.
$ac_ext <<EOF
3008 #line 3009 "configure"
3009 #include "confdefs.h"
3010 /* System header to define __stub macros and hopefully few prototypes,
3011 which can conflict with char $ac_func(); below. */
3013 /* Override any gcc2 internal prototype to avoid an error. */
3014 /* We use char because int might match the return type of a gcc2
3015 builtin and then its argument prototype would still apply. */
3021 /* The GNU C library defines this for functions which it implements
3022 to always fail with ENOSYS. Some functions are actually named
3023 something starting with __ and the normal name is an alias. */
3024 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3032 if { (eval echo configure
:3033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3034 eval "ac_cv_func_$ac_func=yes"
3036 echo "configure: failed program was:" >&5
3037 cat conftest.
$ac_ext >&5
3039 eval "ac_cv_func_$ac_func=no"
3044 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3045 echo "$ac_t""yes" 1>&6
3046 cat >> confdefs.h
<<EOF
3047 #define CRAY_STACKSEG_END $ac_func
3052 echo "$ac_t""no" 1>&6
3058 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3059 echo "configure:3060: checking stack direction for C alloca" >&5
3060 if eval "test \"\${ac_cv_c_stack_direction+set}\" = set"; then
3061 echo $ac_n "(cached) $ac_c" 1>&6
3063 if test "$cross_compiling" = yes; then
3064 ac_cv_c_stack_direction
=0
3066 cat > conftest.
$ac_ext <<EOF
3067 #line 3068 "configure"
3068 #include "confdefs.h"
3069 find_stack_direction ()
3071 static char *addr = 0;
3076 return find_stack_direction ();
3079 return (&dummy > addr) ? 1 : -1;
3083 exit (find_stack_direction() < 0);
3086 if { (eval echo configure
:3087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3088 ac_cv_c_stack_direction
=1
3090 echo "configure: failed program was:" >&5
3091 cat conftest.
$ac_ext >&5
3093 ac_cv_c_stack_direction
=-1
3100 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3101 cat >> confdefs.h
<<EOF
3102 #define STACK_DIRECTION $ac_cv_c_stack_direction
3107 for ac_hdr
in unistd.h
3109 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3110 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3111 echo "configure:3112: checking for $ac_hdr" >&5
3112 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3113 echo $ac_n "(cached) $ac_c" 1>&6
3115 cat > conftest.
$ac_ext <<EOF
3116 #line 3117 "configure"
3117 #include "confdefs.h"
3120 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3121 { (eval echo configure
:3122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3122 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3123 if test -z "$ac_err"; then
3125 eval "ac_cv_header_$ac_safe=yes"
3128 echo "configure: failed program was:" >&5
3129 cat conftest.
$ac_ext >&5
3131 eval "ac_cv_header_$ac_safe=no"
3135 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3136 echo "$ac_t""yes" 1>&6
3137 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3138 cat >> confdefs.h
<<EOF
3139 #define $ac_tr_hdr 1
3143 echo "$ac_t""no" 1>&6
3147 for ac_func
in getpagesize
3149 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3150 echo "configure:3151: checking for $ac_func" >&5
3151 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
3152 echo $ac_n "(cached) $ac_c" 1>&6
3154 cat > conftest.
$ac_ext <<EOF
3155 #line 3156 "configure"
3156 #include "confdefs.h"
3157 /* System header to define __stub macros and hopefully few prototypes,
3158 which can conflict with char $ac_func(); below. */
3160 /* Override any gcc2 internal prototype to avoid an error. */
3161 /* We use char because int might match the return type of a gcc2
3162 builtin and then its argument prototype would still apply. */
3168 /* The GNU C library defines this for functions which it implements
3169 to always fail with ENOSYS. Some functions are actually named
3170 something starting with __ and the normal name is an alias. */
3171 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3179 if { (eval echo configure
:3180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3181 eval "ac_cv_func_$ac_func=yes"
3183 echo "configure: failed program was:" >&5
3184 cat conftest.
$ac_ext >&5
3186 eval "ac_cv_func_$ac_func=no"
3191 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3192 echo "$ac_t""yes" 1>&6
3193 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3194 cat >> confdefs.h
<<EOF
3195 #define $ac_tr_func 1
3199 echo "$ac_t""no" 1>&6
3203 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3204 echo "configure:3205: checking for working mmap" >&5
3205 if eval "test \"\${ac_cv_func_mmap_fixed_mapped+set}\" = set"; then
3206 echo $ac_n "(cached) $ac_c" 1>&6
3208 if test "$cross_compiling" = yes; then
3209 ac_cv_func_mmap_fixed_mapped
=no
3211 cat > conftest.
$ac_ext <<EOF
3212 #line 3213 "configure"
3213 #include "confdefs.h"
3215 /* Thanks to Mike Haertel and Jim Avera for this test.
3216 Here is a matrix of mmap possibilities:
3217 mmap private not fixed
3218 mmap private fixed at somewhere currently unmapped
3219 mmap private fixed at somewhere already mapped
3220 mmap shared not fixed
3221 mmap shared fixed at somewhere currently unmapped
3222 mmap shared fixed at somewhere already mapped
3223 For private mappings, we should verify that changes cannot be read()
3224 back from the file, nor mmap's back from the file at a different
3225 address. (There have been systems where private was not correctly
3226 implemented like the infamous i386 svr4.0, and systems where the
3227 VM page cache was not coherent with the filesystem buffer cache
3228 like early versions of FreeBSD and possibly contemporary NetBSD.)
3229 For shared mappings, we should conversely verify that changes get
3230 propogated back to all the places they're supposed to be.
3232 Grep wants private fixed already mapped.
3233 The main things grep needs to know about mmap are:
3234 * does it exist and is it safe to write into the mmap'd area
3235 * how to use it (BSD variants) */
3236 #include <sys/types.h>
3238 #include <sys/mman.h>
3240 /* This mess was copied from the GNU getpagesize.h. */
3241 #ifndef HAVE_GETPAGESIZE
3242 # ifdef HAVE_UNISTD_H
3243 # include <unistd.h>
3246 /* Assume that all systems that can run configure have sys/param.h. */
3247 # ifndef HAVE_SYS_PARAM_H
3248 # define HAVE_SYS_PARAM_H 1
3251 # ifdef _SC_PAGESIZE
3252 # define getpagesize() sysconf(_SC_PAGESIZE)
3253 # else /* no _SC_PAGESIZE */
3254 # ifdef HAVE_SYS_PARAM_H
3255 # include <sys/param.h>
3256 # ifdef EXEC_PAGESIZE
3257 # define getpagesize() EXEC_PAGESIZE
3258 # else /* no EXEC_PAGESIZE */
3260 # define getpagesize() NBPG * CLSIZE
3263 # endif /* no CLSIZE */
3264 # else /* no NBPG */
3266 # define getpagesize() NBPC
3267 # else /* no NBPC */
3269 # define getpagesize() PAGESIZE
3270 # endif /* PAGESIZE */
3271 # endif /* no NBPC */
3272 # endif /* no NBPG */
3273 # endif /* no EXEC_PAGESIZE */
3274 # else /* no HAVE_SYS_PARAM_H */
3275 # define getpagesize() 8192 /* punt totally */
3276 # endif /* no HAVE_SYS_PARAM_H */
3277 # endif /* no _SC_PAGESIZE */
3279 #endif /* no HAVE_GETPAGESIZE */
3282 extern "C" { void *malloc(unsigned); }
3290 char *data, *data2, *data3;
3294 pagesize = getpagesize();
3297 * First, make a file with some known garbage in it.
3299 data = malloc(pagesize);
3302 for (i = 0; i < pagesize; ++i)
3303 *(data + i) = rand();
3305 fd = creat("conftestmmap", 0600);
3308 if (write(fd, data, pagesize) != pagesize)
3313 * Next, try to mmap the file at a fixed address which
3314 * already has something else allocated at it. If we can,
3315 * also make sure that we see the same garbage.
3317 fd = open("conftestmmap", O_RDWR);
3320 data2 = malloc(2 * pagesize);
3323 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3324 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3325 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3327 for (i = 0; i < pagesize; ++i)
3328 if (*(data + i) != *(data2 + i))
3332 * Finally, make sure that changes to the mapped area
3333 * do not percolate back to the file as seen by read().
3334 * (This is a bug on some variants of i386 svr4.0.)
3336 for (i = 0; i < pagesize; ++i)
3337 *(data2 + i) = *(data2 + i) + 1;
3338 data3 = malloc(pagesize);
3341 if (read(fd, data3, pagesize) != pagesize)
3343 for (i = 0; i < pagesize; ++i)
3344 if (*(data + i) != *(data3 + i))
3347 unlink("conftestmmap");
3352 if { (eval echo configure
:3353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3354 ac_cv_func_mmap_fixed_mapped
=yes
3356 echo "configure: failed program was:" >&5
3357 cat conftest.
$ac_ext >&5
3359 ac_cv_func_mmap_fixed_mapped
=no
3366 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3367 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3368 cat >> confdefs.h
<<\EOF
3375 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3376 unistd.h values.h sys
/param.h
3378 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3379 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3380 echo "configure:3381: checking for $ac_hdr" >&5
3381 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3382 echo $ac_n "(cached) $ac_c" 1>&6
3384 cat > conftest.
$ac_ext <<EOF
3385 #line 3386 "configure"
3386 #include "confdefs.h"
3389 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3390 { (eval echo configure
:3391: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3391 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3392 if test -z "$ac_err"; then
3394 eval "ac_cv_header_$ac_safe=yes"
3397 echo "configure: failed program was:" >&5
3398 cat conftest.
$ac_ext >&5
3400 eval "ac_cv_header_$ac_safe=no"
3404 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3405 echo "$ac_t""yes" 1>&6
3406 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3407 cat >> confdefs.h
<<EOF
3408 #define $ac_tr_hdr 1
3412 echo "$ac_t""no" 1>&6
3416 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3417 __argz_count __argz_stringify __argz_next
3419 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3420 echo "configure:3421: checking for $ac_func" >&5
3421 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
3422 echo $ac_n "(cached) $ac_c" 1>&6
3424 cat > conftest.
$ac_ext <<EOF
3425 #line 3426 "configure"
3426 #include "confdefs.h"
3427 /* System header to define __stub macros and hopefully few prototypes,
3428 which can conflict with char $ac_func(); below. */
3430 /* Override any gcc2 internal prototype to avoid an error. */
3431 /* We use char because int might match the return type of a gcc2
3432 builtin and then its argument prototype would still apply. */
3438 /* The GNU C library defines this for functions which it implements
3439 to always fail with ENOSYS. Some functions are actually named
3440 something starting with __ and the normal name is an alias. */
3441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3449 if { (eval echo configure
:3450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3451 eval "ac_cv_func_$ac_func=yes"
3453 echo "configure: failed program was:" >&5
3454 cat conftest.
$ac_ext >&5
3456 eval "ac_cv_func_$ac_func=no"
3461 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3462 echo "$ac_t""yes" 1>&6
3463 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3464 cat >> confdefs.h
<<EOF
3465 #define $ac_tr_func 1
3469 echo "$ac_t""no" 1>&6
3474 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3475 for ac_func
in stpcpy
3477 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3478 echo "configure:3479: checking for $ac_func" >&5
3479 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
3480 echo $ac_n "(cached) $ac_c" 1>&6
3482 cat > conftest.
$ac_ext <<EOF
3483 #line 3484 "configure"
3484 #include "confdefs.h"
3485 /* System header to define __stub macros and hopefully few prototypes,
3486 which can conflict with char $ac_func(); below. */
3488 /* Override any gcc2 internal prototype to avoid an error. */
3489 /* We use char because int might match the return type of a gcc2
3490 builtin and then its argument prototype would still apply. */
3496 /* The GNU C library defines this for functions which it implements
3497 to always fail with ENOSYS. Some functions are actually named
3498 something starting with __ and the normal name is an alias. */
3499 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3507 if { (eval echo configure
:3508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3509 eval "ac_cv_func_$ac_func=yes"
3511 echo "configure: failed program was:" >&5
3512 cat conftest.
$ac_ext >&5
3514 eval "ac_cv_func_$ac_func=no"
3519 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3520 echo "$ac_t""yes" 1>&6
3521 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3522 cat >> confdefs.h
<<EOF
3523 #define $ac_tr_func 1
3527 echo "$ac_t""no" 1>&6
3532 if test "${ac_cv_func_stpcpy}" = "yes"; then
3533 cat >> confdefs.h
<<\EOF
3534 #define HAVE_STPCPY 1
3539 if test $ac_cv_header_locale_h = yes; then
3540 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3541 echo "configure:3542: checking for LC_MESSAGES" >&5
3542 if eval "test \"\${am_cv_val_LC_MESSAGES+set}\" = set"; then
3543 echo $ac_n "(cached) $ac_c" 1>&6
3545 cat > conftest.
$ac_ext <<EOF
3546 #line 3547 "configure"
3547 #include "confdefs.h"
3553 if { (eval echo configure
:3554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3555 am_cv_val_LC_MESSAGES
=yes
3557 echo "configure: failed program was:" >&5
3558 cat conftest.
$ac_ext >&5
3560 am_cv_val_LC_MESSAGES
=no
3565 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3566 if test $am_cv_val_LC_MESSAGES = yes; then
3567 cat >> confdefs.h
<<\EOF
3568 #define HAVE_LC_MESSAGES 1
3573 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3574 echo "configure:3575: checking whether NLS is requested" >&5
3575 # Check whether --enable-nls or --disable-nls was given.
3576 if test "${enable_nls+set}" = set; then
3577 enableval
="$enable_nls"
3583 echo "$ac_t""$USE_NLS" 1>&6
3586 USE_INCLUDED_LIBINTL
=no
3588 if test "$USE_NLS" = "yes"; then
3589 cat >> confdefs.h
<<\EOF
3590 #define ENABLE_NLS 1
3593 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3594 echo "configure:3595: checking whether included gettext is requested" >&5
3595 # Check whether --with-included-gettext or --without-included-gettext was given.
3596 if test "${with_included_gettext+set}" = set; then
3597 withval
="$with_included_gettext"
3598 nls_cv_force_use_gnu_gettext
=$withval
3600 nls_cv_force_use_gnu_gettext
=no
3603 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3605 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
3606 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3608 nls_cv_header_libgt
=
3611 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3612 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3613 echo "configure:3614: checking for libintl.h" >&5
3614 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3615 echo $ac_n "(cached) $ac_c" 1>&6
3617 cat > conftest.
$ac_ext <<EOF
3618 #line 3619 "configure"
3619 #include "confdefs.h"
3620 #include <libintl.h>
3622 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3623 { (eval echo configure
:3624: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3624 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3625 if test -z "$ac_err"; then
3627 eval "ac_cv_header_$ac_safe=yes"
3630 echo "configure: failed program was:" >&5
3631 cat conftest.
$ac_ext >&5
3633 eval "ac_cv_header_$ac_safe=no"
3637 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3638 echo "$ac_t""yes" 1>&6
3639 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3640 echo "configure:3641: checking for gettext in libc" >&5
3641 if eval "test \"\${gt_cv_func_gettext_libc+set}\" = set"; then
3642 echo $ac_n "(cached) $ac_c" 1>&6
3644 cat > conftest.
$ac_ext <<EOF
3645 #line 3646 "configure"
3646 #include "confdefs.h"
3647 #include <libintl.h>
3649 return (int) gettext ("")
3652 if { (eval echo configure
:3653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3654 gt_cv_func_gettext_libc
=yes
3656 echo "configure: failed program was:" >&5
3657 cat conftest.
$ac_ext >&5
3659 gt_cv_func_gettext_libc
=no
3664 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3666 if test "$gt_cv_func_gettext_libc" != "yes"; then
3667 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3668 echo "configure:3669: checking for bindtextdomain in -lintl" >&5
3669 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-:%__p__%'`
3670 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3671 echo $ac_n "(cached) $ac_c" 1>&6
3673 ac_save_LIBS
="$LIBS"
3675 cat > conftest.
$ac_ext <<EOF
3676 #line 3677 "configure"
3677 #include "confdefs.h"
3678 /* Override any gcc2 internal prototype to avoid an error. */
3679 /* We use char because int might match the return type of a gcc2
3680 builtin and then its argument prototype would still apply. */
3681 char bindtextdomain();
3687 if { (eval echo configure
:3688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3689 eval "ac_cv_lib_$ac_lib_var=yes"
3691 echo "configure: failed program was:" >&5
3692 cat conftest.
$ac_ext >&5
3694 eval "ac_cv_lib_$ac_lib_var=no"
3697 LIBS
="$ac_save_LIBS"
3700 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3701 echo "$ac_t""yes" 1>&6
3702 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3703 echo "configure:3704: checking for gettext in libintl" >&5
3704 if eval "test \"\${gt_cv_func_gettext_libintl+set}\" = set"; then
3705 echo $ac_n "(cached) $ac_c" 1>&6
3707 cat > conftest.
$ac_ext <<EOF
3708 #line 3709 "configure"
3709 #include "confdefs.h"
3712 return (int) gettext ("")
3715 if { (eval echo configure
:3716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3717 gt_cv_func_gettext_libintl
=yes
3719 echo "configure: failed program was:" >&5
3720 cat conftest.
$ac_ext >&5
3722 gt_cv_func_gettext_libintl
=no
3727 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3729 echo "$ac_t""no" 1>&6
3734 if test "$gt_cv_func_gettext_libc" = "yes" \
3735 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
3736 cat >> confdefs.h
<<\EOF
3737 #define HAVE_GETTEXT 1
3740 # Extract the first word of "msgfmt", so it can be a program name with args.
3741 set dummy msgfmt
; ac_word
=$2
3742 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3743 echo "configure:3744: checking for $ac_word" >&5
3744 if eval "test \"\${ac_cv_path_MSGFMT+set}\" = set"; then
3745 echo $ac_n "(cached) $ac_c" 1>&6
3749 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3752 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3753 for ac_dir
in $PATH; do
3754 test -z "$ac_dir" && ac_dir
=.
3755 if test -f $ac_dir/$ac_word; then
3756 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3757 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3763 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
3767 MSGFMT
="$ac_cv_path_MSGFMT"
3768 if test -n "$MSGFMT"; then
3769 echo "$ac_t""$MSGFMT" 1>&6
3771 echo "$ac_t""no" 1>&6
3773 if test "$MSGFMT" != "no"; then
3774 for ac_func
in dcgettext
3776 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3777 echo "configure:3778: checking for $ac_func" >&5
3778 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
3779 echo $ac_n "(cached) $ac_c" 1>&6
3781 cat > conftest.
$ac_ext <<EOF
3782 #line 3783 "configure"
3783 #include "confdefs.h"
3784 /* System header to define __stub macros and hopefully few prototypes,
3785 which can conflict with char $ac_func(); below. */
3787 /* Override any gcc2 internal prototype to avoid an error. */
3788 /* We use char because int might match the return type of a gcc2
3789 builtin and then its argument prototype would still apply. */
3795 /* The GNU C library defines this for functions which it implements
3796 to always fail with ENOSYS. Some functions are actually named
3797 something starting with __ and the normal name is an alias. */
3798 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3806 if { (eval echo configure
:3807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3808 eval "ac_cv_func_$ac_func=yes"
3810 echo "configure: failed program was:" >&5
3811 cat conftest.
$ac_ext >&5
3813 eval "ac_cv_func_$ac_func=no"
3818 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3819 echo "$ac_t""yes" 1>&6
3820 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3821 cat >> confdefs.h
<<EOF
3822 #define $ac_tr_func 1
3826 echo "$ac_t""no" 1>&6
3830 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3831 set dummy gmsgfmt
; ac_word
=$2
3832 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3833 echo "configure:3834: checking for $ac_word" >&5
3834 if eval "test \"\${ac_cv_path_GMSGFMT+set}\" = set"; then
3835 echo $ac_n "(cached) $ac_c" 1>&6
3839 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3842 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3845 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3847 for ac_dir
in $ac_dummy; do
3848 test -z "$ac_dir" && ac_dir
=.
3849 if test -f $ac_dir/$ac_word; then
3850 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3855 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3859 GMSGFMT
="$ac_cv_path_GMSGFMT"
3860 if test -n "$GMSGFMT"; then
3861 echo "$ac_t""$GMSGFMT" 1>&6
3863 echo "$ac_t""no" 1>&6
3866 # Extract the first word of "xgettext", so it can be a program name with args.
3867 set dummy xgettext
; ac_word
=$2
3868 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3869 echo "configure:3870: checking for $ac_word" >&5
3870 if eval "test \"\${ac_cv_path_XGETTEXT+set}\" = set"; then
3871 echo $ac_n "(cached) $ac_c" 1>&6
3875 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3878 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3879 for ac_dir
in $PATH; do
3880 test -z "$ac_dir" && ac_dir
=.
3881 if test -f $ac_dir/$ac_word; then
3882 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3883 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
3889 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
3893 XGETTEXT
="$ac_cv_path_XGETTEXT"
3894 if test -n "$XGETTEXT"; then
3895 echo "$ac_t""$XGETTEXT" 1>&6
3897 echo "$ac_t""no" 1>&6
3900 cat > conftest.
$ac_ext <<EOF
3901 #line 3902 "configure"
3902 #include "confdefs.h"
3905 extern int _nl_msg_cat_cntr;
3906 return _nl_msg_cat_cntr
3909 if { (eval echo configure
:3910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3914 echo "configure: failed program was:" >&5
3915 cat conftest.
$ac_ext >&5
3926 echo "$ac_t""no" 1>&6
3931 if test "$CATOBJEXT" = "NONE"; then
3932 nls_cv_use_gnu_gettext
=yes
3936 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3937 INTLOBJS
="\$(GETTOBJS)"
3938 # Extract the first word of "msgfmt", so it can be a program name with args.
3939 set dummy msgfmt
; ac_word
=$2
3940 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3941 echo "configure:3942: checking for $ac_word" >&5
3942 if eval "test \"\${ac_cv_path_MSGFMT+set}\" = set"; then
3943 echo $ac_n "(cached) $ac_c" 1>&6
3947 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3950 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3951 for ac_dir
in $PATH; do
3952 test -z "$ac_dir" && ac_dir
=.
3953 if test -f $ac_dir/$ac_word; then
3954 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3955 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3961 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
3965 MSGFMT
="$ac_cv_path_MSGFMT"
3966 if test -n "$MSGFMT"; then
3967 echo "$ac_t""$MSGFMT" 1>&6
3969 echo "$ac_t""no" 1>&6
3972 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3973 set dummy gmsgfmt
; ac_word
=$2
3974 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3975 echo "configure:3976: checking for $ac_word" >&5
3976 if eval "test \"\${ac_cv_path_GMSGFMT+set}\" = set"; then
3977 echo $ac_n "(cached) $ac_c" 1>&6
3981 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3984 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3987 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3989 for ac_dir
in $ac_dummy; do
3990 test -z "$ac_dir" && ac_dir
=.
3991 if test -f $ac_dir/$ac_word; then
3992 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3997 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
4001 GMSGFMT
="$ac_cv_path_GMSGFMT"
4002 if test -n "$GMSGFMT"; then
4003 echo "$ac_t""$GMSGFMT" 1>&6
4005 echo "$ac_t""no" 1>&6
4008 # Extract the first word of "xgettext", so it can be a program name with args.
4009 set dummy xgettext
; ac_word
=$2
4010 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4011 echo "configure:4012: checking for $ac_word" >&5
4012 if eval "test \"\${ac_cv_path_XGETTEXT+set}\" = set"; then
4013 echo $ac_n "(cached) $ac_c" 1>&6
4017 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4020 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4021 for ac_dir
in $PATH; do
4022 test -z "$ac_dir" && ac_dir
=.
4023 if test -f $ac_dir/$ac_word; then
4024 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4025 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4031 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4035 XGETTEXT
="$ac_cv_path_XGETTEXT"
4036 if test -n "$XGETTEXT"; then
4037 echo "$ac_t""$XGETTEXT" 1>&6
4039 echo "$ac_t""no" 1>&6
4043 USE_INCLUDED_LIBINTL
=yes
4047 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
4049 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
4050 nls_cv_header_intl
=libintl.h
4051 nls_cv_header_libgt
=libgettext.h
4054 if test "$XGETTEXT" != ":"; then
4055 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
4058 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4063 # We need to process the po/ directory.
4067 nls_cv_header_intl
=libintl.h
4068 nls_cv_header_libgt
=libgettext.h
4071 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4072 # because some of the sources are only built for this goal.
4073 if test "$PACKAGE" = gettext; then
4075 USE_INCLUDED_LIBINTL
=yes
4078 for lang
in $ALL_LINGUAS; do
4079 GMOFILES
="$GMOFILES $lang.gmo"
4080 POFILES
="$POFILES $lang.po"
4096 if test "x$CATOBJEXT" != "x"; then
4097 if test "x$ALL_LINGUAS" = "x"; then
4100 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4101 echo "configure:4102: checking for catalogs to be installed" >&5
4103 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
4104 case "$ALL_LINGUAS" in
4105 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
4108 LINGUAS
=$NEW_LINGUAS
4109 echo "$ac_t""$LINGUAS" 1>&6
4112 if test -n "$LINGUAS"; then
4113 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
4117 if test $ac_cv_header_locale_h = yes; then
4118 INCLUDE_LOCALE_H
="#include <locale.h>"
4121 /* The system does not provide the header <locale.h>. Take care yourself. */"
4125 if test -f $srcdir/po2tbl.
sed.
in; then
4126 if test "$CATOBJEXT" = ".cat"; then
4127 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4128 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4129 echo "configure:4130: checking for linux/version.h" >&5
4130 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4131 echo $ac_n "(cached) $ac_c" 1>&6
4133 cat > conftest.
$ac_ext <<EOF
4134 #line 4135 "configure"
4135 #include "confdefs.h"
4136 #include <linux/version.h>
4138 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4139 { (eval echo configure
:4140: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4140 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4141 if test -z "$ac_err"; then
4143 eval "ac_cv_header_$ac_safe=yes"
4146 echo "configure: failed program was:" >&5
4147 cat conftest.
$ac_ext >&5
4149 eval "ac_cv_header_$ac_safe=no"
4153 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4154 echo "$ac_t""yes" 1>&6
4157 echo "$ac_t""no" 1>&6
4162 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
4164 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4165 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
4168 if test "$PACKAGE" = "gettext"; then
4178 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
4184 if test -d $srcdir/po
; then
4185 test -d po || mkdir po
4186 if test "x$srcdir" != "x."; then
4187 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4188 posrcprefix
="$srcdir/"
4190 posrcprefix
="../$srcdir/"
4196 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4197 < $srcdir/po
/POTFILES.
in > po
/POTFILES
4201 # Permit host specific settings.
4202 .
${srcdir}/configure.
host
4205 # Find a good install program. We prefer a C program (faster),
4206 # so one script is as good as another. But avoid the broken or
4207 # incompatible versions:
4208 # SysV /etc/install, /usr/sbin/install
4209 # SunOS /usr/etc/install
4210 # IRIX /sbin/install
4212 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4213 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4214 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4215 # ./install, which can be erroneously created by make from ./install.sh.
4216 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4217 echo "configure:4218: checking for a BSD compatible install" >&5
4218 if test -z "$INSTALL"; then
4219 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
4220 echo $ac_n "(cached) $ac_c" 1>&6
4222 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
4223 for ac_dir
in $PATH; do
4224 # Account for people who put trailing slashes in PATH elements.
4226 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
4228 # OSF1 and SCO ODT 3.0 have their own names for install.
4229 # Don't use installbsd from OSF since it installs stuff as root
4231 for ac_prog
in ginstall scoinst
install; do
4232 if test -f $ac_dir/$ac_prog; then
4233 if test $ac_prog = install &&
4234 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
4235 # AIX install. It has an incompatible calling convention.
4237 elif test $ac_prog = install &&
4238 grep pwplus
$ac_dir/$ac_prog >/dev
/null
2>&1; then
4239 # program-specific install script used by HP pwplus--don't use.
4242 ac_cv_path_install
="$ac_dir/$ac_prog -c"
4253 if test "${ac_cv_path_install+set}" = set; then
4254 INSTALL
="$ac_cv_path_install"
4256 # As a last resort, use the slow shell script. We don't cache a
4257 # path for INSTALL within a source directory, because that will
4258 # break other packages using the cache if that directory is
4259 # removed, or if the path is relative.
4260 INSTALL
="$ac_install_sh"
4263 echo "$ac_t""$INSTALL" 1>&6
4265 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4266 # It thinks the first close brace ends the variable substitution.
4267 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4269 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4271 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4274 BFD_HOST_64BIT_LONG
=0
4275 BFD_HOST_64_BIT_DEFINED
=0
4278 if test "x${HOST_64BIT_TYPE}" = "xlong"; then
4279 BFD_HOST_64BIT_LONG
=1
4280 elif test "x${HOST_64BIT_TYPE}" != "x"; then
4281 BFD_HOST_64_BIT_DEFINED
=1
4282 BFD_HOST_64_BIT
=${HOST_64BIT_TYPE}
4283 BFD_HOST_U_64_BIT
=${HOST_U_64BIT_TYPE}
4290 # Put a plausible default for CC_FOR_BUILD in Makefile.
4291 if test -z "$CC_FOR_BUILD"; then
4292 if test "x$cross_compiling" = "xno"; then
4293 CC_FOR_BUILD
='$(CC)'
4299 # Also set EXEEXT_FOR_BUILD.
4300 if test "x$cross_compiling" = "xno"; then
4301 EXEEXT_FOR_BUILD
='$(EXEEXT)'
4303 echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
4304 echo "configure:4305: checking for build system executable suffix" >&5
4305 if eval "test \"\${bfd_cv_build_exeext+set}\" = set"; then
4306 echo $ac_n "(cached) $ac_c" 1>&6
4309 echo 'int main () { return 0; }' > conftest.c
4310 bfd_cv_build_exeext
=
4311 ${CC_FOR_BUILD} -o conftest conftest.c
1>&5 2>&5
4312 for file in conftest.
*; do
4314 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
4315 *) bfd_cv_build_exeext
=`echo $file | sed -e s/conftest//` ;;
4319 test x
"${bfd_cv_build_exeext}" = x
&& bfd_cv_build_exeext
=no
4322 echo "$ac_t""$bfd_cv_build_exeext" 1>&6
4324 test x
"${bfd_cv_build_exeext}" != xno
&& EXEEXT_FOR_BUILD
=${bfd_cv_build_exeext}
4328 for ac_hdr
in stddef.h string.h
strings.h stdlib.h
time.h unistd.h
4330 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4331 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4332 echo "configure:4333: checking for $ac_hdr" >&5
4333 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4334 echo $ac_n "(cached) $ac_c" 1>&6
4336 cat > conftest.
$ac_ext <<EOF
4337 #line 4338 "configure"
4338 #include "confdefs.h"
4341 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4342 { (eval echo configure
:4343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4343 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4344 if test -z "$ac_err"; then
4346 eval "ac_cv_header_$ac_safe=yes"
4349 echo "configure: failed program was:" >&5
4350 cat conftest.
$ac_ext >&5
4352 eval "ac_cv_header_$ac_safe=no"
4356 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4357 echo "$ac_t""yes" 1>&6
4358 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4359 cat >> confdefs.h
<<EOF
4360 #define $ac_tr_hdr 1
4364 echo "$ac_t""no" 1>&6
4368 for ac_hdr
in fcntl.h sys
/file.h sys
/time.h
4370 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4371 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4372 echo "configure:4373: checking for $ac_hdr" >&5
4373 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4374 echo $ac_n "(cached) $ac_c" 1>&6
4376 cat > conftest.
$ac_ext <<EOF
4377 #line 4378 "configure"
4378 #include "confdefs.h"
4381 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4382 { (eval echo configure
:4383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4383 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4384 if test -z "$ac_err"; then
4386 eval "ac_cv_header_$ac_safe=yes"
4389 echo "configure: failed program was:" >&5
4390 cat conftest.
$ac_ext >&5
4392 eval "ac_cv_header_$ac_safe=no"
4396 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4397 echo "$ac_t""yes" 1>&6
4398 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4399 cat >> confdefs.h
<<EOF
4400 #define $ac_tr_hdr 1
4404 echo "$ac_t""no" 1>&6
4408 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4409 echo "configure:4410: checking whether time.h and sys/time.h may both be included" >&5
4410 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
4411 echo $ac_n "(cached) $ac_c" 1>&6
4413 cat > conftest.
$ac_ext <<EOF
4414 #line 4415 "configure"
4415 #include "confdefs.h"
4416 #include <sys/types.h>
4417 #include <sys/time.h>
4423 if { (eval echo configure
:4424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4425 ac_cv_header_time
=yes
4427 echo "configure: failed program was:" >&5
4428 cat conftest.
$ac_ext >&5
4430 ac_cv_header_time
=no
4435 echo "$ac_t""$ac_cv_header_time" 1>&6
4436 if test $ac_cv_header_time = yes; then
4437 cat >> confdefs.h
<<\EOF
4438 #define TIME_WITH_SYS_TIME 1
4444 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
4446 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4447 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4448 echo "configure:4449: checking for $ac_hdr that defines DIR" >&5
4449 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4450 echo $ac_n "(cached) $ac_c" 1>&6
4452 cat > conftest.
$ac_ext <<EOF
4453 #line 4454 "configure"
4454 #include "confdefs.h"
4455 #include <sys/types.h>
4461 if { (eval echo configure
:4462: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4463 eval "ac_cv_header_dirent_$ac_safe=yes"
4465 echo "configure: failed program was:" >&5
4466 cat conftest.
$ac_ext >&5
4468 eval "ac_cv_header_dirent_$ac_safe=no"
4472 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4473 echo "$ac_t""yes" 1>&6
4474 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4475 cat >> confdefs.h
<<EOF
4476 #define $ac_tr_hdr 1
4478 ac_header_dirent
=$ac_hdr; break
4480 echo "$ac_t""no" 1>&6
4483 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4484 if test $ac_header_dirent = dirent.h
; then
4485 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4486 echo "configure:4487: checking for opendir in -ldir" >&5
4487 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
4488 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4489 echo $ac_n "(cached) $ac_c" 1>&6
4491 ac_save_LIBS
="$LIBS"
4493 cat > conftest.
$ac_ext <<EOF
4494 #line 4495 "configure"
4495 #include "confdefs.h"
4496 /* Override any gcc2 internal prototype to avoid an error. */
4497 /* We use char because int might match the return type of a gcc2
4498 builtin and then its argument prototype would still apply. */
4505 if { (eval echo configure
:4506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4507 eval "ac_cv_lib_$ac_lib_var=yes"
4509 echo "configure: failed program was:" >&5
4510 cat conftest.
$ac_ext >&5
4512 eval "ac_cv_lib_$ac_lib_var=no"
4515 LIBS
="$ac_save_LIBS"
4518 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4519 echo "$ac_t""yes" 1>&6
4522 echo "$ac_t""no" 1>&6
4526 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4527 echo "configure:4528: checking for opendir in -lx" >&5
4528 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
4529 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4530 echo $ac_n "(cached) $ac_c" 1>&6
4532 ac_save_LIBS
="$LIBS"
4534 cat > conftest.
$ac_ext <<EOF
4535 #line 4536 "configure"
4536 #include "confdefs.h"
4537 /* Override any gcc2 internal prototype to avoid an error. */
4538 /* We use char because int might match the return type of a gcc2
4539 builtin and then its argument prototype would still apply. */
4546 if { (eval echo configure
:4547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4548 eval "ac_cv_lib_$ac_lib_var=yes"
4550 echo "configure: failed program was:" >&5
4551 cat conftest.
$ac_ext >&5
4553 eval "ac_cv_lib_$ac_lib_var=no"
4556 LIBS
="$ac_save_LIBS"
4559 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4560 echo "$ac_t""yes" 1>&6
4563 echo "$ac_t""no" 1>&6
4568 for ac_func
in fcntl getpagesize setitimer sysconf fdopen getuid getgid
4570 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4571 echo "configure:4572: checking for $ac_func" >&5
4572 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
4573 echo $ac_n "(cached) $ac_c" 1>&6
4575 cat > conftest.
$ac_ext <<EOF
4576 #line 4577 "configure"
4577 #include "confdefs.h"
4578 /* System header to define __stub macros and hopefully few prototypes,
4579 which can conflict with char $ac_func(); below. */
4581 /* Override any gcc2 internal prototype to avoid an error. */
4582 /* We use char because int might match the return type of a gcc2
4583 builtin and then its argument prototype would still apply. */
4589 /* The GNU C library defines this for functions which it implements
4590 to always fail with ENOSYS. Some functions are actually named
4591 something starting with __ and the normal name is an alias. */
4592 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4600 if { (eval echo configure
:4601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4602 eval "ac_cv_func_$ac_func=yes"
4604 echo "configure: failed program was:" >&5
4605 cat conftest.
$ac_ext >&5
4607 eval "ac_cv_func_$ac_func=no"
4612 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4613 echo "$ac_t""yes" 1>&6
4614 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4615 cat >> confdefs.h
<<EOF
4616 #define $ac_tr_func 1
4620 echo "$ac_t""no" 1>&6
4627 *-*-msdos* |
*-*-go32* |
*-*-mingw32* |
*-*-cygwin* |
*-*-windows*)
4628 cat >> confdefs.h
<<\EOF
4629 #define USE_BINARY_FOPEN 1
4634 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4635 echo "configure:4636: checking whether strstr must be declared" >&5
4636 if eval "test \"\${bfd_cv_decl_needed_strstr+set}\" = set"; then
4637 echo $ac_n "(cached) $ac_c" 1>&6
4639 cat > conftest.
$ac_ext <<EOF
4640 #line 4641 "configure"
4641 #include "confdefs.h"
4644 #ifdef HAVE_STRING_H
4647 #ifdef HAVE_STRINGS_H
4648 #include <strings.h>
4651 #ifdef HAVE_STDLIB_H
4654 #ifdef HAVE_UNISTD_H
4658 char *(*pfn) = (char *(*)) strstr
4661 if { (eval echo configure
:4662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4663 bfd_cv_decl_needed_strstr
=no
4665 echo "configure: failed program was:" >&5
4666 cat conftest.
$ac_ext >&5
4668 bfd_cv_decl_needed_strstr
=yes
4673 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4674 if test $bfd_cv_decl_needed_strstr = yes; then
4675 cat >> confdefs.h
<<\EOF
4676 #define NEED_DECLARATION_STRSTR 1
4681 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
4682 echo "configure:4683: checking whether malloc must be declared" >&5
4683 if eval "test \"\${bfd_cv_decl_needed_malloc+set}\" = set"; then
4684 echo $ac_n "(cached) $ac_c" 1>&6
4686 cat > conftest.
$ac_ext <<EOF
4687 #line 4688 "configure"
4688 #include "confdefs.h"
4691 #ifdef HAVE_STRING_H
4694 #ifdef HAVE_STRINGS_H
4695 #include <strings.h>
4698 #ifdef HAVE_STDLIB_H
4701 #ifdef HAVE_UNISTD_H
4705 char *(*pfn) = (char *(*)) malloc
4708 if { (eval echo configure
:4709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4710 bfd_cv_decl_needed_malloc
=no
4712 echo "configure: failed program was:" >&5
4713 cat conftest.
$ac_ext >&5
4715 bfd_cv_decl_needed_malloc
=yes
4720 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
4721 if test $bfd_cv_decl_needed_malloc = yes; then
4722 cat >> confdefs.h
<<\EOF
4723 #define NEED_DECLARATION_MALLOC 1
4728 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
4729 echo "configure:4730: checking whether realloc must be declared" >&5
4730 if eval "test \"\${bfd_cv_decl_needed_realloc+set}\" = set"; then
4731 echo $ac_n "(cached) $ac_c" 1>&6
4733 cat > conftest.
$ac_ext <<EOF
4734 #line 4735 "configure"
4735 #include "confdefs.h"
4738 #ifdef HAVE_STRING_H
4741 #ifdef HAVE_STRINGS_H
4742 #include <strings.h>
4745 #ifdef HAVE_STDLIB_H
4748 #ifdef HAVE_UNISTD_H
4752 char *(*pfn) = (char *(*)) realloc
4755 if { (eval echo configure
:4756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4757 bfd_cv_decl_needed_realloc
=no
4759 echo "configure: failed program was:" >&5
4760 cat conftest.
$ac_ext >&5
4762 bfd_cv_decl_needed_realloc
=yes
4767 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
4768 if test $bfd_cv_decl_needed_realloc = yes; then
4769 cat >> confdefs.h
<<\EOF
4770 #define NEED_DECLARATION_REALLOC 1
4775 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
4776 echo "configure:4777: checking whether free must be declared" >&5
4777 if eval "test \"\${bfd_cv_decl_needed_free+set}\" = set"; then
4778 echo $ac_n "(cached) $ac_c" 1>&6
4780 cat > conftest.
$ac_ext <<EOF
4781 #line 4782 "configure"
4782 #include "confdefs.h"
4785 #ifdef HAVE_STRING_H
4788 #ifdef HAVE_STRINGS_H
4789 #include <strings.h>
4792 #ifdef HAVE_STDLIB_H
4795 #ifdef HAVE_UNISTD_H
4799 char *(*pfn) = (char *(*)) free
4802 if { (eval echo configure
:4803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4804 bfd_cv_decl_needed_free
=no
4806 echo "configure: failed program was:" >&5
4807 cat conftest.
$ac_ext >&5
4809 bfd_cv_decl_needed_free
=yes
4814 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
4815 if test $bfd_cv_decl_needed_free = yes; then
4816 cat >> confdefs.h
<<\EOF
4817 #define NEED_DECLARATION_FREE 1
4822 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
4823 echo "configure:4824: checking whether getenv must be declared" >&5
4824 if eval "test \"\${bfd_cv_decl_needed_getenv+set}\" = set"; then
4825 echo $ac_n "(cached) $ac_c" 1>&6
4827 cat > conftest.
$ac_ext <<EOF
4828 #line 4829 "configure"
4829 #include "confdefs.h"
4832 #ifdef HAVE_STRING_H
4835 #ifdef HAVE_STRINGS_H
4836 #include <strings.h>
4839 #ifdef HAVE_STDLIB_H
4842 #ifdef HAVE_UNISTD_H
4846 char *(*pfn) = (char *(*)) getenv
4849 if { (eval echo configure
:4850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4851 bfd_cv_decl_needed_getenv
=no
4853 echo "configure: failed program was:" >&5
4854 cat conftest.
$ac_ext >&5
4856 bfd_cv_decl_needed_getenv
=yes
4861 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
4862 if test $bfd_cv_decl_needed_getenv = yes; then
4863 cat >> confdefs.h
<<\EOF
4864 #define NEED_DECLARATION_GETENV 1
4870 # If we are configured native, pick a core file support file.
4874 if test "${target}" = "${host}"; then
4876 alpha
*-*-linux-gnu*)
4877 COREFILE
=trad-core.lo
4878 TRAD_HEADER
='"hosts/alphalinux.h"'
4880 alpha
*-*-netbsd*) COREFILE
=netbsd-core.lo
;;
4881 alpha
*-*-*) COREFILE
=osf-core.lo
;;
4882 arm-
*-riscix) COREFILE
=trad-core.lo
;;
4883 hppa
*-*-hpux*) COREFILE
=hpux-core.lo
;;
4884 hppa
*-*-hiux*) COREFILE
=hpux-core.lo
;;
4885 hppa
*-*-mpeix*) COREFILE
=hpux-core.lo
;;
4886 hppa
*-*-bsd*) COREFILE
="hpux-core.lo hppabsd-core.lo"
4887 COREFLAG
="-DHPUX_CORE -DHPPABSD_CORE" ;;
4889 COREFILE
=trad-core.lo
4890 TRAD_HEADER
='"hosts/i370linux.h"'
4893 i
[3456]86-sequent-bsd*)
4894 COREFILE
=trad-core.lo
4895 TRAD_HEADER
='"hosts/symmetry.h"'
4897 i
[3456]86-sequent-sysv4*) ;;
4898 i
[3456]86-sequent-sysv*)
4899 COREFILE
=trad-core.lo
4900 TRAD_HEADER
='"hosts/symmetry.h"'
4902 i
[3456]86-*-bsd* | i
[3456]86-*-freebsd*)
4903 COREFILE
=trad-core.lo
4904 TRAD_HEADER
='"hosts/i386bsd.h"'
4906 i
[3456]86-*-netbsd* | i
[3456]86-*-openbsd*)
4907 COREFILE
=netbsd-core.lo
4909 i
[3456]86-esix-sysv3*)
4910 COREFILE
=trad-core.lo
4911 TRAD_HEADER
='"hosts/esix.h"'
4913 i
[3456]86-*-sco3.2v5
*)
4914 COREFILE
=sco5-core.lo
4916 i
[3456]86-*-sco* | i
[3456]86-*-isc*)
4917 COREFILE
=trad-core.lo
4918 TRAD_HEADER
='"hosts/i386sco.h"'
4921 COREFILE
=trad-core.lo
4922 TRAD_HEADER
='"hosts/i386mach3.h"'
4924 i
[3456]86-*-linux-gnu*)
4925 COREFILE
=trad-core.lo
4926 TRAD_HEADER
='"hosts/i386linux.h"'
4928 i
[3456]86-*-isc*) COREFILE
=trad-core.lo
;;
4929 i
[3456]86-*-aix*) COREFILE
=aix386-core.lo
;;
4930 i860-
*-mach3* | i860-
*-osf1*)
4931 COREFILE
=trad-core.lo
4932 TRAD_HEADER
='"hosts/i860mach3.h"'
4935 COREFILE
=trad-core.lo
4936 TRAD_HEADER
='"hosts/mipsbsd.h"'
4939 COREFILE
=trad-core.lo
4940 TRAD_HEADER
='"hosts/mipsmach3.h"'
4942 mips-
*-netbsd* | mips
*-*-openbsd*)
4943 COREFILE
=netbsd-core.lo
4946 COREFILE
=trad-core.lo
4947 TRAD_HEADER
='"hosts/decstation.h"'
4949 mips-sgi-irix4
*) COREFILE
=irix-core.lo
;;
4950 mips-sgi-irix5
*) COREFILE
=irix-core.lo
;;
4951 mips-sgi-irix6
*) COREFILE
=irix-core.lo
;;
4953 COREFILE
=trad-core.lo
4954 TRAD_HEADER
='"hosts/mipsmach3.h"'
4957 mips-
*-sysv* | mips-
*-riscos*)
4958 COREFILE
=trad-core.lo
4959 TRAD_HEADER
='"hosts/riscos.h"'
4962 COREFILE
=trad-core.lo
4963 TRAD_HEADER
='"hosts/news-mips.h"'
4966 COREFILE
=trad-core.lo
4967 TRAD_HEADER
='"hosts/dpx2.h"'
4969 m68
*-hp-hpux*) COREFILE
=hpux-core.lo
;;
4971 COREFILE
=trad-core.lo
4972 TRAD_HEADER
='"hosts/hp300bsd.h"'
4975 COREFILE
=trad-core.lo
4976 TRAD_HEADER
='"hosts/m68klinux.h"'
4978 m68
*-motorola-sysv*)
4979 COREFILE
=trad-core.lo
4980 TRAD_HEADER
='"hosts/delta68.h"'
4983 COREFILE
=trad-core.lo
4984 TRAD_HEADER
='"hosts/news.h"'
4986 m68
*-*-netbsd* | m68
*-*-openbsd*)
4987 COREFILE
=netbsd-core.lo
4990 COREFILE
=trad-core.lo
4991 TRAD_HEADER
='"hosts/m68kaux.h"'
4994 m88
*-motorola-sysv*) COREFILE
=ptrace-core.lo
;;
4996 COREFILE
=trad-core.lo
4997 TRAD_HEADER
='"hosts/m88kmach3.h"'
5000 COREFILE
=trad-core.lo
5001 TRAD_HEADER
='"hosts/pc532mach.h"'
5003 ns32k-
*-netbsd* | ns32k-
*-openbsd*)
5004 COREFILE
=netbsd-core.lo
5006 rs6000-
*-lynx*) COREFILE
=lynx-core.lo
;;
5007 rs6000-
*-aix4*) COREFILE
=rs6000-core.lo
;;
5008 rs6000-
*-*) COREFILE
=rs6000-core.lo
;;
5009 powerpc-
*-*bsd
*) COREFILE
=netbsd-core.lo
;;
5010 powerpc-
*-aix4*) COREFILE
=rs6000-core.lo
;;
5011 powerpc-
*-aix*) COREFILE
=rs6000-core.lo
;;
5013 powerpc-
*-netbsd*) COREFILE
=netbsd-core.lo
;;
5014 sparc-
*-netbsd* | sparc-
*-openbsd*)
5015 COREFILE
=netbsd-core.lo
5018 COREFILE
=trad-core.lo
5019 TRAD_HEADER
='"hosts/tahoe.h"'
5022 COREFILE
=trad-core.lo
5023 TRAD_HEADER
='"hosts/vaxult2.h"'
5026 COREFILE
=trad-core.lo
5027 TRAD_HEADER
='"hosts/vaxult2.h"'
5030 COREFILE
=trad-core.lo
5031 TRAD_HEADER
='"hosts/vaxbsd.h"'
5036 aix386-core.lo
) COREFLAG
=-DAIX386_CORE ;;
5037 hppabsd-core.lo
) COREFLAG
=-DHPPABSD_CORE ;;
5038 hpux-core.lo
) COREFLAG
=-DHPUX_CORE ;;
5039 irix-core.lo
) COREFLAG
=-DIRIX_CORE ;;
5040 lynx-core.lo
) COREFLAG
=-DLYNX_CORE ;;
5041 netbsd-core.lo
) COREFLAG
=-DNETBSD_CORE ;;
5042 osf-core.lo
) COREFLAG
=-DOSF_CORE ;;
5043 ptrace-core.lo
) COREFLAG
=-DPTRACE_CORE ;;
5044 rs6000-core.lo
) COREFLAG
="$COREFLAG -DAIX_CORE" ;;
5045 sco5-core.lo
) COREFLAG
="$COREFLAG -DSCO5_CORE" ;;
5046 trad-core.lo
) COREFLAG
="$COREFLAG -DTRAD_CORE" ;;
5049 # ELF corefile support has several flavors, but all of
5050 # them use something called <sys/procfs.h>
5051 for ac_hdr
in sys
/procfs.h
5053 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5054 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5055 echo "configure:5056: checking for $ac_hdr" >&5
5056 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5057 echo $ac_n "(cached) $ac_c" 1>&6
5059 cat > conftest.
$ac_ext <<EOF
5060 #line 5061 "configure"
5061 #include "confdefs.h"
5064 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5065 { (eval echo configure
:5066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5066 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5067 if test -z "$ac_err"; then
5069 eval "ac_cv_header_$ac_safe=yes"
5072 echo "configure: failed program was:" >&5
5073 cat conftest.
$ac_ext >&5
5075 eval "ac_cv_header_$ac_safe=no"
5079 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5080 echo "$ac_t""yes" 1>&6
5081 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5082 cat >> confdefs.h
<<EOF
5083 #define $ac_tr_hdr 1
5087 echo "$ac_t""no" 1>&6
5091 if test "$ac_cv_header_sys_procfs_h" = yes; then
5092 echo $ac_n "checking for prstatus_t in sys/procfs.h""... $ac_c" 1>&6
5093 echo "configure:5094: checking for prstatus_t in sys/procfs.h" >&5
5094 if eval "test \"\${bfd_cv_have_sys_procfs_type_prstatus_t+set}\" = set"; then
5095 echo $ac_n "(cached) $ac_c" 1>&6
5097 cat > conftest.
$ac_ext <<EOF
5098 #line 5099 "configure"
5099 #include "confdefs.h"
5100 #include <sys/procfs.h>
5105 if { (eval echo configure
:5106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5107 bfd_cv_have_sys_procfs_type_prstatus_t
=yes
5109 echo "configure: failed program was:" >&5
5110 cat conftest.
$ac_ext >&5
5112 bfd_cv_have_sys_procfs_type_prstatus_t
=no
5118 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
5119 cat >> confdefs.h
<<\EOF
5120 #define HAVE_PRSTATUS_T 1
5124 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus_t" 1>&6
5126 echo $ac_n "checking for prstatus_t.pr_who in sys/procfs.h""... $ac_c" 1>&6
5127 echo "configure:5128: checking for prstatus_t.pr_who in sys/procfs.h" >&5
5128 if eval "test \"\${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}\" = set"; then
5129 echo $ac_n "(cached) $ac_c" 1>&6
5131 cat > conftest.
$ac_ext <<EOF
5132 #line 5133 "configure"
5133 #include "confdefs.h"
5134 #include <sys/procfs.h>
5136 prstatus_t avar; void* aref = (void*) &avar.pr_who
5139 if { (eval echo configure
:5140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5141 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who
=yes
5143 echo "configure: failed program was:" >&5
5144 cat conftest.
$ac_ext >&5
5146 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who
=no
5152 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
5153 cat >> confdefs.h
<<\EOF
5154 #define HAVE_PRSTATUS_T_PR_WHO 1
5158 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" 1>&6
5160 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
5161 echo "configure:5162: checking for pstatus_t in sys/procfs.h" >&5
5162 if eval "test \"\${bfd_cv_have_sys_procfs_type_pstatus_t+set}\" = set"; then
5163 echo $ac_n "(cached) $ac_c" 1>&6
5165 cat > conftest.
$ac_ext <<EOF
5166 #line 5167 "configure"
5167 #include "confdefs.h"
5168 #include <sys/procfs.h>
5173 if { (eval echo configure
:5174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5175 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
5177 echo "configure: failed program was:" >&5
5178 cat conftest.
$ac_ext >&5
5180 bfd_cv_have_sys_procfs_type_pstatus_t
=no
5186 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
5187 cat >> confdefs.h
<<\EOF
5188 #define HAVE_PSTATUS_T 1
5192 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
5194 echo $ac_n "checking for prpsinfo_t in sys/procfs.h""... $ac_c" 1>&6
5195 echo "configure:5196: checking for prpsinfo_t in sys/procfs.h" >&5
5196 if eval "test \"\${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}\" = set"; then
5197 echo $ac_n "(cached) $ac_c" 1>&6
5199 cat > conftest.
$ac_ext <<EOF
5200 #line 5201 "configure"
5201 #include "confdefs.h"
5202 #include <sys/procfs.h>
5207 if { (eval echo configure
:5208: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5209 bfd_cv_have_sys_procfs_type_prpsinfo_t
=yes
5211 echo "configure: failed program was:" >&5
5212 cat conftest.
$ac_ext >&5
5214 bfd_cv_have_sys_procfs_type_prpsinfo_t
=no
5220 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
5221 cat >> confdefs.h
<<\EOF
5222 #define HAVE_PRPSINFO_T 1
5226 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo_t" 1>&6
5228 echo $ac_n "checking for psinfo_t in sys/procfs.h""... $ac_c" 1>&6
5229 echo "configure:5230: checking for psinfo_t in sys/procfs.h" >&5
5230 if eval "test \"\${bfd_cv_have_sys_procfs_type_psinfo_t+set}\" = set"; then
5231 echo $ac_n "(cached) $ac_c" 1>&6
5233 cat > conftest.
$ac_ext <<EOF
5234 #line 5235 "configure"
5235 #include "confdefs.h"
5236 #include <sys/procfs.h>
5241 if { (eval echo configure
:5242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5243 bfd_cv_have_sys_procfs_type_psinfo_t
=yes
5245 echo "configure: failed program was:" >&5
5246 cat conftest.
$ac_ext >&5
5248 bfd_cv_have_sys_procfs_type_psinfo_t
=no
5254 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
5255 cat >> confdefs.h
<<\EOF
5256 #define HAVE_PSINFO_T 1
5260 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo_t" 1>&6
5262 echo $ac_n "checking for lwpstatus_t in sys/procfs.h""... $ac_c" 1>&6
5263 echo "configure:5264: checking for lwpstatus_t in sys/procfs.h" >&5
5264 if eval "test \"\${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}\" = set"; then
5265 echo $ac_n "(cached) $ac_c" 1>&6
5267 cat > conftest.
$ac_ext <<EOF
5268 #line 5269 "configure"
5269 #include "confdefs.h"
5270 #include <sys/procfs.h>
5275 if { (eval echo configure
:5276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5277 bfd_cv_have_sys_procfs_type_lwpstatus_t
=yes
5279 echo "configure: failed program was:" >&5
5280 cat conftest.
$ac_ext >&5
5282 bfd_cv_have_sys_procfs_type_lwpstatus_t
=no
5288 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
5289 cat >> confdefs.h
<<\EOF
5290 #define HAVE_LWPSTATUS_T 1
5294 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpstatus_t" 1>&6
5296 echo $ac_n "checking for lwpstatus_t.pr_context in sys/procfs.h""... $ac_c" 1>&6
5297 echo "configure:5298: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
5298 if eval "test \"\${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}\" = set"; then
5299 echo $ac_n "(cached) $ac_c" 1>&6
5301 cat > conftest.
$ac_ext <<EOF
5302 #line 5303 "configure"
5303 #include "confdefs.h"
5304 #include <sys/procfs.h>
5306 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
5309 if { (eval echo configure
:5310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5311 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context
=yes
5313 echo "configure: failed program was:" >&5
5314 cat conftest.
$ac_ext >&5
5316 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context
=no
5322 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
5323 cat >> confdefs.h
<<\EOF
5324 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
5328 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" 1>&6
5330 echo $ac_n "checking for lwpstatus_t.pr_reg in sys/procfs.h""... $ac_c" 1>&6
5331 echo "configure:5332: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
5332 if eval "test \"\${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}\" = set"; then
5333 echo $ac_n "(cached) $ac_c" 1>&6
5335 cat > conftest.
$ac_ext <<EOF
5336 #line 5337 "configure"
5337 #include "confdefs.h"
5338 #include <sys/procfs.h>
5340 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
5343 if { (eval echo configure
:5344: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5345 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg
=yes
5347 echo "configure: failed program was:" >&5
5348 cat conftest.
$ac_ext >&5
5350 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg
=no
5356 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
5357 cat >> confdefs.h
<<\EOF
5358 #define HAVE_LWPSTATUS_T_PR_REG 1
5362 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" 1>&6
5364 echo $ac_n "checking for win32_pstatus_t in sys/procfs.h""... $ac_c" 1>&6
5365 echo "configure:5366: checking for win32_pstatus_t in sys/procfs.h" >&5
5366 if eval "test \"\${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}\" = set"; then
5367 echo $ac_n "(cached) $ac_c" 1>&6
5369 cat > conftest.
$ac_ext <<EOF
5370 #line 5371 "configure"
5371 #include "confdefs.h"
5372 #include <sys/procfs.h>
5374 win32_pstatus_t avar
5377 if { (eval echo configure
:5378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5379 bfd_cv_have_sys_procfs_type_win32_pstatus_t
=yes
5381 echo "configure: failed program was:" >&5
5382 cat conftest.
$ac_ext >&5
5384 bfd_cv_have_sys_procfs_type_win32_pstatus_t
=no
5390 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
5391 cat >> confdefs.h
<<\EOF
5392 #define HAVE_WIN32_PSTATUS_T 1
5396 echo "$ac_t""$bfd_cv_have_sys_procfs_type_win32_pstatus_t" 1>&6
5402 cat >> confdefs.h
<<EOF
5403 #define TRAD_HEADER $TRAD_HEADER
5407 # Horrible hacks to build DLLs on Windows.
5412 if test "$enable_shared" = "yes"; then
5413 WIN32LDFLAGS
="-no-undefined"
5414 WIN32LIBADD
="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
5423 # Canonicalize the secondary target names.
5424 if test -n "$enable_targets" ; then
5425 for targ
in `echo $enable_targets | sed 's/,/ /g'`
5427 result
=`$ac_config_sub $targ 2>/dev/null`
5428 if test -n "$result" ; then
5429 canon_targets
="$canon_targets $result"
5431 # Allow targets that config.sub doesn't recognize, like "all".
5432 canon_targets
="$canon_targets $targ"
5442 for targ
in $target $canon_targets
5444 if test "x$targ" = "xall"; then
5447 .
$srcdir/config.bfd
5448 if test "x$targ" = "x$target"; then
5451 selvecs
="$selvecs $targ_defvec $targ_selvecs"
5452 selarchs
="$selarchs $targ_archs"
5453 TDEFINES
="$TDEFINES $targ_cflags"
5458 # This processing still needs to be done if we're to decide properly whether
5459 # 64-bit support needs to be compiled in. Currently, it will be included if
5460 # the default or any other explicitly requested target requires it; it
5461 # will not be included on a 32-bit host if no 64-bit target is requested, and
5462 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
5465 # uniq the default and selected vectors in all the configured targets.
5467 for i
in $selvecs ; do
5476 # uniq the architectures in all the configured targets.
5478 for i
in $selarchs ; do
5486 # Target backend .o files.
5489 elf
="elf.lo elflink.lo dwarf2.lo dwarf1.lo"
5494 # This list is alphabetized to make it easy to compare
5495 # with the two vector lists in targets.c.
5496 a29kcoff_big_vec
) tb
="$tb coff-a29k.lo cofflink.lo" ;;
5497 a_out_adobe_vec
) tb
="$tb aout-adobe.lo aout32.lo" ;;
5498 armcoff_little_vec
) tb
="$tb coff-arm.lo cofflink.lo " ;;
5499 armcoff_big_vec
) tb
="$tb coff-arm.lo cofflink.lo " ;;
5500 armnetbsd_vec
) tb
="$tb armnetbsd.lo aout32.lo" ;;
5501 armpe_little_vec
) tb
="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
5502 armpe_big_vec
) tb
="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
5503 armpei_little_vec
) tb
="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
5504 armpei_big_vec
) tb
="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
5505 arm_epoc_pe_little_vec
) tb
="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
5506 arm_epoc_pe_big_vec
) tb
="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
5507 arm_epoc_pei_little_vec
) tb
="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
5508 arm_epoc_pei_big_vec
) tb
="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
5509 aout0_big_vec
) tb
="$tb aout0.lo aout32.lo" ;;
5510 aout_arm_big_vec
) tb
="$tb aout-arm.lo aout32.lo" ;;
5511 aout_arm_little_vec
) tb
="$tb aout-arm.lo aout32.lo" ;;
5512 aout_mips_big_vec
) tb
="$tb mipsbsd.lo aout32.lo" ;;
5513 aout_mips_little_vec
) tb
="$tb mipsbsd.lo aout32.lo" ;;
5514 apollocoff_vec
) tb
="$tb coff-apollo.lo" ;;
5515 b_out_vec_big_host
) tb
="$tb bout.lo aout32.lo" ;;
5516 b_out_vec_little_host
) tb
="$tb bout.lo aout32.lo" ;;
5517 bfd_elf64_alpha_vec
) tb
="$tb elf64-alpha.lo elf64.lo $elf"
5519 bfd_elf32_littlearc_vec
) tb
="$tb elf32-arc.lo elf32.lo $elf" ;;
5520 bfd_elf32_littlearm_vec
) tb
="$tb elfarm-nabi.lo elf32.lo $elf" ;;
5521 bfd_elf32_littlearm_oabi_vec
) tb
="$tb elfarm-oabi.lo elf32.lo $elf" ;;
5522 bfd_elf32_bigarc_vec
) tb
="$tb elf32-arc.lo elf32.lo $elf" ;;
5523 bfd_elf32_bigarm_vec
) tb
="$tb elfarm-nabi.lo elf32.lo $elf" ;;
5524 bfd_elf32_bigarm_oabi_vec
) tb
="$tb elfarm-oabi.lo elf32.lo $elf" ;;
5525 bfd_elf32_big_generic_vec
) tb
="$tb elf32-gen.lo elf32.lo $elf" ;;
5526 bfd_elf32_bigmips_vec
) tb
="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
5527 bfd_elf64_bigmips_vec
) tb
="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"
5529 bfd_elf32_d10v_vec
) tb
="$tb elf32-d10v.lo elf32.lo $elf" ;;
5530 bfd_elf32_d30v_vec
) tb
="$tb elf32-d30v.lo elf32.lo $elf" ;;
5531 bfd_elf32_fr30_vec
) tb
="$tb elf32-fr30.lo elf32.lo $elf" ;;
5532 bfd_elf32_hppa_vec
) tb
="$tb elf32-hppa.lo elf32.lo $elf" ;;
5533 bfd_elf32_i370_vec
) tb
="$tb elf32-i370.lo elf32.lo $elf" ;;
5534 bfd_elf32_i386_vec
) tb
="$tb elf32-i386.lo elf32.lo $elf" ;;
5535 bfd_elf32_i860_vec
) tb
="$tb elf32-i860.lo elf32.lo $elf" ;;
5536 bfd_elf32_i960_vec
) tb
="$tb elf32-i960.lo elf32.lo $elf" ;;
5537 bfd_elf32_little_generic_vec
) tb
="$tb elf32-gen.lo elf32.lo $elf" ;;
5538 bfd_elf32_littlemips_vec
) tb
="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
5539 bfd_elf64_littlemips_vec
) tb
="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"
5541 bfd_elf32_m32r_vec
) tb
="$tb elf32-m32r.lo elf32.lo $elf" ;;
5542 bfd_elf32_m68k_vec
) tb
="$tb elf32-m68k.lo elf32.lo $elf" ;;
5543 bfd_elf32_m88k_vec
) tb
="$tb elf32-m88k.lo elf32.lo $elf" ;;
5544 bfd_elf32_mcore_big_vec
) tb
="$tb elf32-mcore.lo elf32.lo $elf" ;;
5545 bfd_elf32_mcore_little_vec
) tb
="$tb elf32-mcore.lo elf32.lo $elf" ;;
5546 bfd_elf32_mn10200_vec
) tb
="$tb elf-m10200.lo elf32.lo $elf" ;;
5547 bfd_elf32_mn10300_vec
) tb
="$tb elf-m10300.lo elf32.lo $elf" ;;
5548 bfd_elf32_pj_vec
) tb
="$tb elf32-pj.lo elf32.lo $elf";;
5549 bfd_elf32_pjl_vec
) tb
="$tb elf32-pj.lo elf32.lo $elf";;
5550 bfd_elf32_powerpc_vec
) tb
="$tb elf32-ppc.lo elf32.lo $elf" ;;
5551 bfd_elf32_powerpcle_vec
) tb
="$tb elf32-ppc.lo elf32.lo $elf" ;;
5552 bfd_elf32_sh_vec
) tb
="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
5553 bfd_elf32_shl_vec
) tb
="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
5554 bfd_elf32_sparc_vec
) tb
="$tb elf32-sparc.lo elf32.lo $elf" ;;
5555 bfd_elf32_v850_vec
) tb
="$tb elf32-v850.lo elf32.lo $elf" ;;
5556 bfd_elf64_big_generic_vec
) tb
="$tb elf64-gen.lo elf64.lo $elf"
5558 bfd_elf64_little_generic_vec
) tb
="$tb elf64-gen.lo elf64.lo $elf"
5560 bfd_elf64_sparc_vec
) tb
="$tb elf64-sparc.lo elf64.lo $elf"
5562 cisco_core_big_vec
) tb
="$tb cisco-core.lo" ;;
5563 cisco_core_little_vec
) tb
="$tb cisco-core.lo" ;;
5564 demo_64_vec
) tb
="$tb demo64.lo aout64.lo"
5566 ecoff_big_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
5567 ecoff_little_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
5568 ecoff_biglittle_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
5569 ecoffalpha_little_vec
) tb
="$tb coff-alpha.lo ecoff.lo ecofflink.lo"
5571 go32coff_vec
) tb
="$tb coff-go32.lo cofflink.lo" ;;
5572 go32stubbedcoff_vec
) tb
="$tb coff-stgo32.lo cofflink.lo" ;;
5573 h8300coff_vec
) tb
="$tb coff-h8300.lo reloc16.lo" ;;
5574 h8500coff_vec
) tb
="$tb coff-h8500.lo reloc16.lo" ;;
5575 host_aout_vec
) tb
="$tb host-aout.lo aout32.lo" ;;
5576 hp300bsd_vec
) tb
="$tb hp300bsd.lo aout32.lo" ;;
5577 hp300hpux_vec
) tb
="$tb hp300hpux.lo aout32.lo" ;;
5578 i386aout_vec
) tb
="$tb i386aout.lo aout32.lo" ;;
5579 i386bsd_vec
) tb
="$tb i386bsd.lo aout32.lo" ;;
5580 i386coff_vec
) tb
="$tb coff-i386.lo cofflink.lo" ;;
5581 i386dynix_vec
) tb
="$tb i386dynix.lo aout32.lo" ;;
5582 i386freebsd_vec
) tb
="$tb i386freebsd.lo aout32.lo" ;;
5583 i386msdos_vec
) tb
="$tb i386msdos.lo" ;;
5584 i386pe_vec
) tb
="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
5585 i386pei_vec
) tb
="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
5586 i386linux_vec
) tb
="$tb i386linux.lo aout32.lo" ;;
5587 i386lynx_aout_vec
) tb
="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
5588 i386lynx_coff_vec
) tb
="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
5589 i386mach3_vec
) tb
="$tb i386mach3.lo aout32.lo" ;;
5590 i386netbsd_vec
) tb
="$tb i386netbsd.lo aout32.lo" ;;
5591 i386os9k_vec
) tb
="$tb i386os9k.lo aout32.lo" ;;
5592 i860coff_vec
) tb
="$tb coff-i860.lo cofflink.lo" ;;
5593 icoff_big_vec
) tb
="$tb coff-i960.lo cofflink.lo" ;;
5594 icoff_little_vec
) tb
="$tb coff-i960.lo cofflink.lo" ;;
5595 ieee_vec
) tb
="$tb ieee.lo" ;;
5596 m68kcoff_vec
) tb
="$tb coff-m68k.lo cofflink.lo" ;;
5597 m68kcoffun_vec
) tb
="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
5598 m68klinux_vec
) tb
="$tb m68klinux.lo aout32.lo" ;;
5599 m68klynx_aout_vec
) tb
="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
5600 m68klynx_coff_vec
) tb
="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
5601 m68knetbsd_vec
) tb
="$tb m68knetbsd.lo aout32.lo" ;;
5602 m68k4knetbsd_vec
) tb
="$tb m68k4knetbsd.lo aout32.lo" ;;
5603 m68kaux_coff_vec
) tb
="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
5604 m68ksysvcoff_vec
) tb
="$tb coff-svm68k.lo cofflink.lo" ;;
5605 m88kbcs_vec
) tb
="$tb coff-m88k.lo" ;;
5606 mcore_pe_big_vec
) tb
="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
5607 mcore_pe_little_vec
) tb
="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
5608 mcore_pei_big_vec
) tb
="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
5609 mcore_pei_little_vec
) tb
="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
5610 newsos3_vec
) tb
="$tb newsos3.lo aout32.lo" ;;
5611 nlm32_i386_vec
) tb
="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
5612 nlm32_sparc_vec
) tb
="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
5613 nlm32_alpha_vec
) tb
="$tb nlm32-alpha.lo nlm32.lo nlm.lo"
5615 riscix_vec
) tb
="$tb aout32.lo riscix.lo" ;;
5616 nlm32_powerpc_vec
) tb
="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
5617 pc532netbsd_vec
) tb
="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
5618 pc532machaout_vec
) tb
="$tb pc532-mach.lo aout-ns32k.lo" ;;
5619 pmac_xcoff_vec
) tb
="$tb coff-pmac.lo xcofflink.lo" ;;
5620 rs6000coff_vec
) tb
="$tb coff-rs6000.lo xcofflink.lo" ;;
5621 bfd_powerpc_pe_vec
) tb
="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
5622 bfd_powerpcle_pe_vec
) tb
="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
5623 bfd_powerpc_pei_vec
) tb
="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
5624 bfd_powerpcle_pei_vec
) tb
="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
5625 ppcboot_vec
) tb
="$tb ppcboot.lo" ;;
5626 shcoff_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
5627 shlcoff_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
5628 shcoff_small_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
5629 shlcoff_small_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
5630 som_vec
) tb
="$tb som.lo" ;;
5631 sparcle_aout_vec
) tb
="$tb aout-sparcle.lo aout32.lo" ;;
5632 sparclinux_vec
) tb
="$tb sparclinux.lo aout32.lo" ;;
5633 sparclynx_aout_vec
) tb
="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
5634 sparclynx_coff_vec
) tb
="$tb cf-sparclynx.lo lynx-core.lo" ;;
5635 sparcnetbsd_vec
) tb
="$tb sparcnetbsd.lo aout32.lo" ;;
5636 sparccoff_vec
) tb
="$tb coff-sparc.lo" ;;
5637 srec_vec
) tb
="$tb srec.lo" ;;
5638 sunos_big_vec
) tb
="$tb sunos.lo aout32.lo" ;;
5639 symbolsrec_vec
) tb
="$tb srec.lo" ;;
5640 tekhex_vec
) tb
="$tb tekhex.lo" ;;
5641 tic30_aout_vec
) tb
="$tb aout-tic30.lo" ;;
5642 tic30_coff_vec
) tb
="$tb coff-tic30.lo" ;;
5643 tic80coff_vec
) tb
="$tb coff-tic80.lo cofflink.lo" ;;
5644 versados_vec
) tb
="$tb versados.lo" ;;
5645 vms_alpha_vec
) tb
="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"
5647 vms_vax_vec
) tb
="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
5648 w65_vec
) tb
="$tb coff-w65.lo reloc16.lo" ;;
5649 we32kcoff_vec
) tb
="$tb coff-we32k.lo" ;;
5650 z8kcoff_vec
) tb
="$tb coff-z8k.lo reloc16.lo" ;;
5653 *) { echo "configure: error: *** unknown target vector $vec" 1>&2; exit 1; } ;;
5657 # Target architecture .o files.
5658 # A couple of CPUs use shorter file names to avoid problems on DOS
5660 ta
=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
5662 # Weed out duplicate .o files.
5684 if test x
${all_targets} = xtrue
; then
5685 bfd_backends
="${bfd_backends}"' $(ALL_BACKENDS)'
5686 bfd_machines
="${bfd_machines}"' $(ALL_MACHINES)'
5690 else # all_targets is true
5691 # Only set these if they will be nonempty, for the clever echo.
5693 test -n "$selvecs" &&
5694 havevecs
=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
5695 test -n "$selvecs" &&
5696 selvecs
=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
5697 test -n "$selarchs" &&
5698 selarchs
=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
5699 fi # all_targets is true
5701 case ${host64}-${target64}-${want64} in
5704 all_backends
='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
5705 if test -z "$GCC" && test "$BFD_HOST_64BIT_LONG" = "0" && test "$BFD_HOST_64_BIT_DEFINED" = "0"; then
5706 echo "configure: warning: You have requested a 64 bit BFD configuration, but" 1>&2
5707 echo "configure: warning: your compiler may not have a 64 bit integral type" 1>&2
5712 all_backends
='$(BFD32_BACKENDS)'
5722 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
5723 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
5724 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
5725 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
5728 for ac_hdr
in unistd.h
5730 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5731 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5732 echo "configure:5733: checking for $ac_hdr" >&5
5733 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5734 echo $ac_n "(cached) $ac_c" 1>&6
5736 cat > conftest.
$ac_ext <<EOF
5737 #line 5738 "configure"
5738 #include "confdefs.h"
5741 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5742 { (eval echo configure
:5743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5743 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5744 if test -z "$ac_err"; then
5746 eval "ac_cv_header_$ac_safe=yes"
5749 echo "configure: failed program was:" >&5
5750 cat conftest.
$ac_ext >&5
5752 eval "ac_cv_header_$ac_safe=no"
5756 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5757 echo "$ac_t""yes" 1>&6
5758 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5759 cat >> confdefs.h
<<EOF
5760 #define $ac_tr_hdr 1
5764 echo "$ac_t""no" 1>&6
5768 for ac_func
in getpagesize
5770 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5771 echo "configure:5772: checking for $ac_func" >&5
5772 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5773 echo $ac_n "(cached) $ac_c" 1>&6
5775 cat > conftest.
$ac_ext <<EOF
5776 #line 5777 "configure"
5777 #include "confdefs.h"
5778 /* System header to define __stub macros and hopefully few prototypes,
5779 which can conflict with char $ac_func(); below. */
5781 /* Override any gcc2 internal prototype to avoid an error. */
5782 /* We use char because int might match the return type of a gcc2
5783 builtin and then its argument prototype would still apply. */
5789 /* The GNU C library defines this for functions which it implements
5790 to always fail with ENOSYS. Some functions are actually named
5791 something starting with __ and the normal name is an alias. */
5792 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5800 if { (eval echo configure
:5801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5802 eval "ac_cv_func_$ac_func=yes"
5804 echo "configure: failed program was:" >&5
5805 cat conftest.
$ac_ext >&5
5807 eval "ac_cv_func_$ac_func=no"
5812 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5813 echo "$ac_t""yes" 1>&6
5814 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5815 cat >> confdefs.h
<<EOF
5816 #define $ac_tr_func 1
5820 echo "$ac_t""no" 1>&6
5824 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
5825 echo "configure:5826: checking for working mmap" >&5
5826 if eval "test \"\${ac_cv_func_mmap_fixed_mapped+set}\" = set"; then
5827 echo $ac_n "(cached) $ac_c" 1>&6
5829 if test "$cross_compiling" = yes; then
5830 ac_cv_func_mmap_fixed_mapped
=no
5832 cat > conftest.
$ac_ext <<EOF
5833 #line 5834 "configure"
5834 #include "confdefs.h"
5836 /* Thanks to Mike Haertel and Jim Avera for this test.
5837 Here is a matrix of mmap possibilities:
5838 mmap private not fixed
5839 mmap private fixed at somewhere currently unmapped
5840 mmap private fixed at somewhere already mapped
5841 mmap shared not fixed
5842 mmap shared fixed at somewhere currently unmapped
5843 mmap shared fixed at somewhere already mapped
5844 For private mappings, we should verify that changes cannot be read()
5845 back from the file, nor mmap's back from the file at a different
5846 address. (There have been systems where private was not correctly
5847 implemented like the infamous i386 svr4.0, and systems where the
5848 VM page cache was not coherent with the filesystem buffer cache
5849 like early versions of FreeBSD and possibly contemporary NetBSD.)
5850 For shared mappings, we should conversely verify that changes get
5851 propogated back to all the places they're supposed to be.
5853 Grep wants private fixed already mapped.
5854 The main things grep needs to know about mmap are:
5855 * does it exist and is it safe to write into the mmap'd area
5856 * how to use it (BSD variants) */
5857 #include <sys/types.h>
5859 #include <sys/mman.h>
5861 /* This mess was copied from the GNU getpagesize.h. */
5862 #ifndef HAVE_GETPAGESIZE
5863 # ifdef HAVE_UNISTD_H
5864 # include <unistd.h>
5867 /* Assume that all systems that can run configure have sys/param.h. */
5868 # ifndef HAVE_SYS_PARAM_H
5869 # define HAVE_SYS_PARAM_H 1
5872 # ifdef _SC_PAGESIZE
5873 # define getpagesize() sysconf(_SC_PAGESIZE)
5874 # else /* no _SC_PAGESIZE */
5875 # ifdef HAVE_SYS_PARAM_H
5876 # include <sys/param.h>
5877 # ifdef EXEC_PAGESIZE
5878 # define getpagesize() EXEC_PAGESIZE
5879 # else /* no EXEC_PAGESIZE */
5881 # define getpagesize() NBPG * CLSIZE
5884 # endif /* no CLSIZE */
5885 # else /* no NBPG */
5887 # define getpagesize() NBPC
5888 # else /* no NBPC */
5890 # define getpagesize() PAGESIZE
5891 # endif /* PAGESIZE */
5892 # endif /* no NBPC */
5893 # endif /* no NBPG */
5894 # endif /* no EXEC_PAGESIZE */
5895 # else /* no HAVE_SYS_PARAM_H */
5896 # define getpagesize() 8192 /* punt totally */
5897 # endif /* no HAVE_SYS_PARAM_H */
5898 # endif /* no _SC_PAGESIZE */
5900 #endif /* no HAVE_GETPAGESIZE */
5903 extern "C" { void *malloc(unsigned); }
5911 char *data, *data2, *data3;
5915 pagesize = getpagesize();
5918 * First, make a file with some known garbage in it.
5920 data = malloc(pagesize);
5923 for (i = 0; i < pagesize; ++i)
5924 *(data + i) = rand();
5926 fd = creat("conftestmmap", 0600);
5929 if (write(fd, data, pagesize) != pagesize)
5934 * Next, try to mmap the file at a fixed address which
5935 * already has something else allocated at it. If we can,
5936 * also make sure that we see the same garbage.
5938 fd = open("conftestmmap", O_RDWR);
5941 data2 = malloc(2 * pagesize);
5944 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
5945 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
5946 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5948 for (i = 0; i < pagesize; ++i)
5949 if (*(data + i) != *(data2 + i))
5953 * Finally, make sure that changes to the mapped area
5954 * do not percolate back to the file as seen by read().
5955 * (This is a bug on some variants of i386 svr4.0.)
5957 for (i = 0; i < pagesize; ++i)
5958 *(data2 + i) = *(data2 + i) + 1;
5959 data3 = malloc(pagesize);
5962 if (read(fd, data3, pagesize) != pagesize)
5964 for (i = 0; i < pagesize; ++i)
5965 if (*(data + i) != *(data3 + i))
5968 unlink("conftestmmap");
5973 if { (eval echo configure
:5974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5975 ac_cv_func_mmap_fixed_mapped
=yes
5977 echo "configure: failed program was:" >&5
5978 cat conftest.
$ac_ext >&5
5980 ac_cv_func_mmap_fixed_mapped
=no
5987 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
5988 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5989 cat >> confdefs.h
<<\EOF
5995 for ac_func
in madvise mprotect
5997 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5998 echo "configure:5999: checking for $ac_func" >&5
5999 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6000 echo $ac_n "(cached) $ac_c" 1>&6
6002 cat > conftest.
$ac_ext <<EOF
6003 #line 6004 "configure"
6004 #include "confdefs.h"
6005 /* System header to define __stub macros and hopefully few prototypes,
6006 which can conflict with char $ac_func(); below. */
6008 /* Override any gcc2 internal prototype to avoid an error. */
6009 /* We use char because int might match the return type of a gcc2
6010 builtin and then its argument prototype would still apply. */
6016 /* The GNU C library defines this for functions which it implements
6017 to always fail with ENOSYS. Some functions are actually named
6018 something starting with __ and the normal name is an alias. */
6019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6027 if { (eval echo configure
:6028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6029 eval "ac_cv_func_$ac_func=yes"
6031 echo "configure: failed program was:" >&5
6032 cat conftest.
$ac_ext >&5
6034 eval "ac_cv_func_$ac_func=no"
6039 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6040 echo "$ac_t""yes" 1>&6
6041 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6042 cat >> confdefs.h
<<EOF
6043 #define $ac_tr_func 1
6047 echo "$ac_t""no" 1>&6
6051 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
6052 true
+yes ) cat >> confdefs.h
<<\EOF
6058 rm -f doc
/config.status
6060 cat > confcache
<<\EOF
6061 # This file is a shell script that caches the results of configure
6062 # tests run on this system so they can be shared between configure
6063 # scripts and configure runs. It is not useful on other systems.
6064 # If it contains results you don't want to keep, you may remove or edit it.
6066 # By default, configure uses ./config.cache as the cache file,
6067 # creating it if it does not exist already. You can give configure
6068 # the --cache-file=FILE option to use a different cache file; that is
6069 # what configure does when it calls configure scripts in
6070 # subdirectories, so they share the cache.
6071 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6072 # config.status only pays attention to the cache file if you give it the
6073 # --recheck option to rerun configure.
6076 # The following way of writing the cache mishandles newlines in values,
6077 # but we know of no workaround that is simple, portable, and efficient.
6078 # So, don't put newlines in cache variables' values.
6079 # Ultrix sh set writes to stderr and can't be redirected directly,
6080 # and sets the high bit in the cache file unless we assign to the vars.
6082 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6084 # `set' does not quote correctly, so add quotes (double-quote substitution
6085 # turns \\\\ into \\, and sed turns \\ into \).
6087 -e "s/'/'\\\\''/g" \
6088 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6091 # `set' quotes correctly as required by POSIX, so do not add quotes.
6092 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6095 if cmp -s $cache_file confcache
; then
6098 if test -w $cache_file; then
6099 echo "updating cache $cache_file"
6100 cat confcache
> $cache_file
6102 echo "not updating unwritable cache $cache_file"
6107 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6109 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6110 # Let make expand exec_prefix.
6111 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6113 # Any assignment to VPATH causes Sun make to only execute
6114 # the first set of double-colon rules, so remove it if not needed.
6115 # If there is a colon in the path, we need to keep it.
6116 if test "x$srcdir" = x.
; then
6117 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
6120 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6122 DEFS
=-DHAVE_CONFIG_H
6124 # Without the "./", some shells look in PATH for config.status.
6125 : ${CONFIG_STATUS=./config.status}
6127 echo creating
$CONFIG_STATUS
6128 rm -f $CONFIG_STATUS
6129 cat > $CONFIG_STATUS <<EOF
6131 # Generated automatically by configure.
6132 # Run this file to recreate the current configuration.
6133 # This directory was configured as follows,
6134 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6136 # $0 $ac_configure_args
6138 # Compiler output produced by configure, useful for debugging
6139 # configure, is in ./config.log if it exists.
6141 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6144 case "\$ac_option" in
6145 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6146 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6147 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6148 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6149 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
6151 -help | --help | --hel | --he | --h)
6152 echo "\$ac_cs_usage"; exit 0 ;;
6153 *) echo "\$ac_cs_usage"; exit 1 ;;
6157 ac_given_srcdir=$srcdir
6158 ac_given_INSTALL="$INSTALL"
6160 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
6162 cat >> $CONFIG_STATUS <<EOF
6164 # Protect against being on the right side of a sed subst in config.status.
6165 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6166 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6170 s%@CFLAGS@%$CFLAGS%g
6171 s%@CPPFLAGS@%$CPPFLAGS%g
6172 s%@CXXFLAGS@%$CXXFLAGS%g
6173 s%@FFLAGS@%$FFLAGS%g
6175 s%@LDFLAGS@%$LDFLAGS%g
6177 s%@exec_prefix@%$exec_prefix%g
6178 s%@prefix@%$prefix%g
6179 s%@program_transform_name@%$program_transform_name%g
6180 s%@bindir@%$bindir%g
6181 s%@sbindir@%$sbindir%g
6182 s%@libexecdir@%$libexecdir%g
6183 s%@datadir@%$datadir%g
6184 s%@sysconfdir@%$sysconfdir%g
6185 s%@sharedstatedir@%$sharedstatedir%g
6186 s%@localstatedir@%$localstatedir%g
6187 s%@libdir@%$libdir%g
6188 s%@includedir@%$includedir%g
6189 s%@oldincludedir@%$oldincludedir%g
6190 s%@infodir@%$infodir%g
6191 s%@mandir@%$mandir%g
6193 s%@host_alias@%$host_alias%g
6194 s%@host_cpu@%$host_cpu%g
6195 s%@host_vendor@%$host_vendor%g
6196 s%@host_os@%$host_os%g
6197 s%@target@%$target%g
6198 s%@target_alias@%$target_alias%g
6199 s%@target_cpu@%$target_cpu%g
6200 s%@target_vendor@%$target_vendor%g
6201 s%@target_os@%$target_os%g
6203 s%@build_alias@%$build_alias%g
6204 s%@build_cpu@%$build_cpu%g
6205 s%@build_vendor@%$build_vendor%g
6206 s%@build_os@%$build_os%g
6208 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6209 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6210 s%@INSTALL_DATA@%$INSTALL_DATA%g
6211 s%@PACKAGE@%$PACKAGE%g
6212 s%@VERSION@%$VERSION%g
6213 s%@ACLOCAL@%$ACLOCAL%g
6214 s%@AUTOCONF@%$AUTOCONF%g
6215 s%@AUTOMAKE@%$AUTOMAKE%g
6216 s%@AUTOHEADER@%$AUTOHEADER%g
6217 s%@MAKEINFO@%$MAKEINFO%g
6218 s%@SET_MAKE@%$SET_MAKE%g
6220 s%@RANLIB@%$RANLIB%g
6223 s%@USE_SYMBOL_UNDERSCORE@%$USE_SYMBOL_UNDERSCORE%g
6225 s%@DLLTOOL@%$DLLTOOL%g
6227 s%@LIBTOOL@%$LIBTOOL%g
6228 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
6229 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
6231 s%@EXEEXT@%$EXEEXT%g
6233 s%@ALLOCA@%$ALLOCA%g
6234 s%@USE_NLS@%$USE_NLS%g
6235 s%@MSGFMT@%$MSGFMT%g
6236 s%@GMSGFMT@%$GMSGFMT%g
6237 s%@XGETTEXT@%$XGETTEXT%g
6238 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
6239 s%@CATALOGS@%$CATALOGS%g
6240 s%@CATOBJEXT@%$CATOBJEXT%g
6241 s%@DATADIRNAME@%$DATADIRNAME%g
6242 s%@GMOFILES@%$GMOFILES%g
6243 s%@INSTOBJEXT@%$INSTOBJEXT%g
6244 s%@INTLDEPS@%$INTLDEPS%g
6245 s%@INTLLIBS@%$INTLLIBS%g
6246 s%@INTLOBJS@%$INTLOBJS%g
6247 s%@POFILES@%$POFILES%g
6249 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
6251 s%@GT_YES@%$GT_YES%g
6252 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
6254 s%@HDEFINES@%$HDEFINES%g
6255 s%@BFD_HOST_64BIT_LONG@%$BFD_HOST_64BIT_LONG%g
6256 s%@BFD_HOST_64_BIT_DEFINED@%$BFD_HOST_64_BIT_DEFINED%g
6257 s%@BFD_HOST_64_BIT@%$BFD_HOST_64_BIT%g
6258 s%@BFD_HOST_U_64_BIT@%$BFD_HOST_U_64_BIT%g
6259 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
6260 s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
6261 s%@COREFILE@%$COREFILE%g
6262 s%@COREFLAG@%$COREFLAG%g
6263 s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g
6264 s%@WIN32LIBADD@%$WIN32LIBADD%g
6265 s%@TDEFINES@%$TDEFINES%g
6266 s%@wordsize@%$wordsize%g
6267 s%@all_backends@%$all_backends%g
6268 s%@bfd_backends@%$bfd_backends%g
6269 s%@bfd_machines@%$bfd_machines%g
6270 s%@tdefaults@%$tdefaults%g
6275 cat >> $CONFIG_STATUS <<\EOF
6277 # Split the substitutions into bite-sized pieces for seds with
6278 # small command number limits, like on Digital OSF/1 and HP-UX.
6279 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
6280 ac_file
=1 # Number of current file.
6281 ac_beg
=1 # First line for current file.
6282 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
6285 while $ac_more_lines; do
6286 if test $ac_beg -gt 1; then
6287 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
6289 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
6291 if test ! -s conftest.s
$ac_file; then
6293 rm -f conftest.s
$ac_file
6295 if test -z "$ac_sed_cmds"; then
6296 ac_sed_cmds
="sed -f conftest.s$ac_file"
6298 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
6300 ac_file
=`expr $ac_file + 1`
6302 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
6305 if test -z "$ac_sed_cmds"; then
6310 cat >> $CONFIG_STATUS <<EOF
6312 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"}
6314 cat >> $CONFIG_STATUS <<\EOF
6315 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
6316 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6318 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6319 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6320 *) ac_file_in
="${ac_file}.in" ;;
6323 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6325 # Remove last slash and all that follows it. Not all systems have dirname.
6326 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6327 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
6328 # The file is in a subdirectory.
6329 test ! -d "$ac_dir" && mkdir
"$ac_dir"
6330 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
6331 # A "../" for each directory in $ac_dir_suffix.
6332 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6334 ac_dir_suffix
= ac_dots
=
6337 case "$ac_given_srcdir" in
6339 if test -z "$ac_dots"; then top_srcdir
=.
6340 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6341 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
6343 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6344 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
6347 case "$ac_given_INSTALL" in
6348 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
6349 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
6352 echo creating
"$ac_file"
6354 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6356 *Makefile
*) ac_comsub
="1i\\
6357 # $configure_input" ;;
6361 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6363 s%@configure_input@%$configure_input%g
6364 s%@srcdir@%$srcdir%g
6365 s%@top_srcdir@%$top_srcdir%g
6366 s%@INSTALL@%$INSTALL%g
6367 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
6371 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6372 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6374 # ac_d sets the value in "#define NAME VALUE" lines.
6375 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6376 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
6379 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6380 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6381 ac_uB
='\([ ]\)%\1#\2define\3'
6384 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6385 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6386 ac_eB
='$%\1#\2define\3'
6390 if test "${CONFIG_HEADERS+set}" != set; then
6392 cat >> $CONFIG_STATUS <<EOF
6393 CONFIG_HEADERS="config.h:config.in"
6395 cat >> $CONFIG_STATUS <<\EOF
6397 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
6398 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6400 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6401 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6402 *) ac_file_in
="${ac_file}.in" ;;
6405 echo creating
$ac_file
6407 rm -f conftest.frag conftest.
in conftest.out
6408 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6409 cat $ac_file_inputs > conftest.
in
6413 # Transform confdefs.h into a sed script conftest.vals that substitutes
6414 # the proper values into config.h.in to produce config.h. And first:
6415 # Protect against being on the right side of a sed subst in config.status.
6416 # Protect against being in an unquoted here document in config.status.
6418 cat > conftest.hdr
<<\EOF
6421 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6425 sed -n -f conftest.hdr confdefs.h > conftest.vals
6428 # This sed command replaces #undef with comments. This is necessary, for
6429 # example, in the case of _POSIX_SOURCE, which is predefined and required
6430 # on some systems where configure will not decide to define it.
6431 cat >> conftest.vals <<\EOF
6432 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6435 # Break up conftest.vals because some shells have a limit on
6436 # the size of here documents, and old seds have small limits too.
6441 ac_lines=`grep -c . conftest.vals
`
6442 # grep -c gives empty output for an empty file on some AIX systems.
6443 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6444 # Write a limited-size here document to conftest.frag.
6445 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6446 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6448 sed -f conftest.frag conftest.in > conftest.out
6450 mv conftest.out conftest.in
6452 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6454 mv conftest.tail conftest.vals
6458 cat >> $CONFIG_STATUS <<\EOF
6459 rm -f conftest.frag conftest.h
6460 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6461 cat conftest.in >> conftest.h
6463 if cmp -s $ac_file conftest.h 2>/dev/null; then
6464 echo "$ac_file is unchanged"
6467 # Remove last slash and all that follows it. Not all systems have dirname.
6468 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
6469 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6470 # The file is in a subdirectory.
6471 test ! -d "$ac_dir" && mkdir "$ac_dir"
6474 mv conftest.h $ac_file
6479 cat >> $CONFIG_STATUS <<EOF
6483 cat >> $CONFIG_STATUS <<\EOF
6484 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
6485 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
6488 chmod +x $CONFIG_STATUS
6489 rm -fr confdefs* $ac_clean_files
6490 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1