3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --enable-shared[=PKGS] build shared libraries [default=no]"
17 --enable-static[=PKGS] build static libraries [default=yes]"
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
23 --disable-libtool-lock force libtool not to do file locking"
25 --enable-targets alternative target configurations"
27 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
29 --enable-maintainer-mode enable make rules and dependencies not useful
30 (and sometimes confusing) to the casual installer"
32 --disable-nls do not use Native Language Support"
34 --with-included-gettext use the GNU gettext library included here"
36 --enable-cgen-maint[=dir] build cgen generated files"
38 # Initialize some variables set by options.
39 # The variables have the same names as the options, with
40 # dashes changed to underlines.
42 cache_file
=.
/config.cache
51 program_transform_name
=s
,x
,x
,
59 bindir
='${exec_prefix}/bin'
60 sbindir
='${exec_prefix}/sbin'
61 libexecdir
='${exec_prefix}/libexec'
62 datadir
='${prefix}/share'
63 sysconfdir
='${prefix}/etc'
64 sharedstatedir
='${prefix}/com'
65 localstatedir
='${prefix}/var'
66 libdir
='${exec_prefix}/lib'
67 includedir
='${prefix}/include'
68 oldincludedir
='/usr/include'
69 infodir
='${prefix}/info'
70 mandir
='${prefix}/man'
72 # Initialize some other variables.
75 SHELL
=${CONFIG_SHELL-/bin/sh}
76 # Maximum number of lines to put in a shell here document.
83 # If the previous option needs an argument, assign it.
84 if test -n "$ac_prev"; then
85 eval "$ac_prev=\$ac_option"
91 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
95 # Accept the important Cygnus configure options, so we can diagnose typos.
99 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
101 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
102 bindir
="$ac_optarg" ;;
104 -build |
--build |
--buil |
--bui |
--bu)
106 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
107 build
="$ac_optarg" ;;
109 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
110 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
111 ac_prev
=cache_file
;;
112 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
113 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
114 cache_file
="$ac_optarg" ;;
116 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
118 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
120 datadir
="$ac_optarg" ;;
122 -disable-* |
--disable-*)
123 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
124 # Reject names that are not valid shell variable names.
125 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
126 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
128 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
129 eval "enable_${ac_feature}=no" ;;
131 -enable-* |
--enable-*)
132 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
133 # Reject names that are not valid shell variable names.
134 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
135 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
137 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
142 eval "enable_${ac_feature}='$ac_optarg'" ;;
144 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
145 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
146 |
--exec |
--exe |
--ex)
147 ac_prev
=exec_prefix
;;
148 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
149 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
150 |
--exec=* |
--exe=* |
--ex=*)
151 exec_prefix
="$ac_optarg" ;;
153 -gas |
--gas |
--ga |
--g)
154 # Obsolete; use --with-gas.
157 -help |
--help |
--hel |
--he)
158 # Omit some internal or obsolete options to make the list less imposing.
159 # This message is too long to be a string in the A/UX 3.1 sh.
161 Usage: configure [options] [host]
162 Options: [defaults in brackets after descriptions]
164 --cache-file=FILE cache test results in FILE
165 --help print this message
166 --no-create do not create output files
167 --quiet, --silent do not print \`checking...' messages
168 --version print the version of autoconf that created configure
169 Directory and file names:
170 --prefix=PREFIX install architecture-independent files in PREFIX
172 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
174 --bindir=DIR user executables in DIR [EPREFIX/bin]
175 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
176 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
177 --datadir=DIR read-only architecture-independent data in DIR
179 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
180 --sharedstatedir=DIR modifiable architecture-independent data in DIR
182 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
183 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
184 --includedir=DIR C header files in DIR [PREFIX/include]
185 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
186 --infodir=DIR info documentation in DIR [PREFIX/info]
187 --mandir=DIR man documentation in DIR [PREFIX/man]
188 --srcdir=DIR find the sources in DIR [configure dir or ..]
189 --program-prefix=PREFIX prepend PREFIX to installed program names
190 --program-suffix=SUFFIX append SUFFIX to installed program names
191 --program-transform-name=PROGRAM
192 run sed PROGRAM on installed program names
196 --build=BUILD configure for building on BUILD [BUILD=HOST]
197 --host=HOST configure for HOST [guessed]
198 --target=TARGET configure for TARGET [TARGET=HOST]
199 Features and packages:
200 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
201 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
202 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
203 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
204 --x-includes=DIR X include files are in DIR
205 --x-libraries=DIR X library files are in DIR
207 if test -n "$ac_help"; then
208 echo "--enable and --with options recognized:$ac_help"
212 -host |
--host |
--hos |
--ho)
214 -host=* |
--host=* |
--hos=* |
--ho=*)
217 -includedir |
--includedir |
--includedi |
--included |
--include \
218 |
--includ |
--inclu |
--incl |
--inc)
219 ac_prev
=includedir
;;
220 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
221 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
222 includedir
="$ac_optarg" ;;
224 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
226 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
227 infodir
="$ac_optarg" ;;
229 -libdir |
--libdir |
--libdi |
--libd)
231 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
232 libdir
="$ac_optarg" ;;
234 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
235 |
--libexe |
--libex |
--libe)
236 ac_prev
=libexecdir
;;
237 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
238 |
--libexe=* |
--libex=* |
--libe=*)
239 libexecdir
="$ac_optarg" ;;
241 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
242 |
--localstate |
--localstat |
--localsta |
--localst \
243 |
--locals |
--local |
--loca |
--loc |
--lo)
244 ac_prev
=localstatedir
;;
245 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
246 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
247 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
248 localstatedir
="$ac_optarg" ;;
250 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
252 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
253 mandir
="$ac_optarg" ;;
256 # Obsolete; use --without-fp.
259 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
263 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
264 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
267 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
268 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
269 |
--oldin |
--oldi |
--old |
--ol |
--o)
270 ac_prev
=oldincludedir
;;
271 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
272 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
273 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
274 oldincludedir
="$ac_optarg" ;;
276 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
278 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
279 prefix
="$ac_optarg" ;;
281 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
282 |
--program-pre |
--program-pr |
--program-p)
283 ac_prev
=program_prefix
;;
284 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
285 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
286 program_prefix
="$ac_optarg" ;;
288 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
289 |
--program-suf |
--program-su |
--program-s)
290 ac_prev
=program_suffix
;;
291 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
292 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
293 program_suffix
="$ac_optarg" ;;
295 -program-transform-name |
--program-transform-name \
296 |
--program-transform-nam |
--program-transform-na \
297 |
--program-transform-n |
--program-transform- \
298 |
--program-transform |
--program-transfor \
299 |
--program-transfo |
--program-transf \
300 |
--program-trans |
--program-tran \
301 |
--progr-tra |
--program-tr |
--program-t)
302 ac_prev
=program_transform_name
;;
303 -program-transform-name=* |
--program-transform-name=* \
304 |
--program-transform-nam=* |
--program-transform-na=* \
305 |
--program-transform-n=* |
--program-transform-=* \
306 |
--program-transform=* |
--program-transfor=* \
307 |
--program-transfo=* |
--program-transf=* \
308 |
--program-trans=* |
--program-tran=* \
309 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
310 program_transform_name
="$ac_optarg" ;;
312 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
313 |
-silent |
--silent |
--silen |
--sile |
--sil)
316 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
318 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
320 sbindir
="$ac_optarg" ;;
322 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
323 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
324 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
326 ac_prev
=sharedstatedir
;;
327 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
328 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
329 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
331 sharedstatedir
="$ac_optarg" ;;
333 -site |
--site |
--sit)
335 -site=* |
--site=* |
--sit=*)
338 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
340 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
341 srcdir
="$ac_optarg" ;;
343 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
344 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
345 ac_prev
=sysconfdir
;;
346 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
347 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
348 sysconfdir
="$ac_optarg" ;;
350 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
352 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
353 target
="$ac_optarg" ;;
355 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
358 -version |
--version |
--versio |
--versi |
--vers)
359 echo "configure generated by autoconf version 2.13"
363 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
364 # Reject names that are not valid shell variable names.
365 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
366 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
368 ac_package
=`echo $ac_package| sed 's/-/_/g'`
373 eval "with_${ac_package}='$ac_optarg'" ;;
375 -without-* |
--without-*)
376 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
377 # Reject names that are not valid shell variable names.
378 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
379 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
381 ac_package
=`echo $ac_package| sed 's/-/_/g'`
382 eval "with_${ac_package}=no" ;;
385 # Obsolete; use --with-x.
388 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
389 |
--x-incl |
--x-inc |
--x-in |
--x-i)
390 ac_prev
=x_includes
;;
391 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
392 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
393 x_includes
="$ac_optarg" ;;
395 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
396 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
397 ac_prev
=x_libraries
;;
398 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
399 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
400 x_libraries
="$ac_optarg" ;;
402 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
406 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
407 echo "configure: warning: $ac_option: invalid host type" 1>&2
409 if test "x$nonopt" != xNONE
; then
410 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
418 if test -n "$ac_prev"; then
419 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
422 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
424 # File descriptor usage:
427 # 2 errors and warnings
428 # 3 some systems may open it to /dev/tty
429 # 4 used on the Kubota Titan
430 # 6 checking for... messages and results
431 # 5 compiler messages saved in config.log
432 if test "$silent" = yes; then
440 This file contains any messages produced by compilers while
441 running configure, to aid debugging if configure makes a mistake.
444 # Strip out --no-create and --no-recursion so they do not pile up.
445 # Also quote any args containing shell metacharacters.
450 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
451 |
--no-cr |
--no-c) ;;
452 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
453 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
454 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
455 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
456 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
461 # Only set these to C if already set. These must not be set unconditionally
462 # because not all systems understand e.g. LANG=C (notably SCO).
463 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
464 # Non-C LC_CTYPE values break the ctype check.
465 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
466 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
467 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
468 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
470 # confdefs.h avoids OS command line length limits that DEFS can exceed.
471 rm -rf conftest
* confdefs.h
472 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
475 # A filename unique to this package, relative to the directory that
476 # configure is in, which we can look for to find out if srcdir is correct.
477 ac_unique_file
=z8k-dis.c
479 # Find the source files, if location was not specified.
480 if test -z "$srcdir"; then
481 ac_srcdir_defaulted
=yes
482 # Try the directory containing this script, then its parent.
484 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
485 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
487 if test ! -r $srcdir/$ac_unique_file; then
491 ac_srcdir_defaulted
=no
493 if test ! -r $srcdir/$ac_unique_file; then
494 if test "$ac_srcdir_defaulted" = yes; then
495 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
497 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
500 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
502 # Prefer explicitly selected file to automatically selected ones.
503 if test -z "$CONFIG_SITE"; then
504 if test "x$prefix" != xNONE
; then
505 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
507 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
510 for ac_site_file
in $CONFIG_SITE; do
511 if test -r "$ac_site_file"; then
512 echo "loading site script $ac_site_file"
517 if test -r "$cache_file"; then
518 echo "loading cache $cache_file"
521 echo "creating cache $cache_file"
526 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
527 ac_cpp
='$CPP $CPPFLAGS'
528 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
529 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
530 cross_compiling
=$ac_cv_prog_cc_cross
534 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
535 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
536 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
543 ac_n
= ac_c
='\c' ac_t
=
549 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
550 if test -f $ac_dir/install-sh
; then
552 ac_install_sh
="$ac_aux_dir/install-sh -c"
554 elif test -f $ac_dir/install.sh
; then
556 ac_install_sh
="$ac_aux_dir/install.sh -c"
560 if test -z "$ac_aux_dir"; then
561 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
563 ac_config_guess
=$ac_aux_dir/config.guess
564 ac_config_sub
=$ac_aux_dir/config.sub
565 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
568 # Do some error checking and defaulting for the host and target type.
570 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
573 # 1. You are not allowed to specify --host, --target, and nonopt at the
575 # 2. Host defaults to nonopt.
576 # 3. If nonopt is not specified, then host defaults to the current host,
577 # as determined by config.guess.
578 # 4. Target and build default to nonopt.
579 # 5. If nonopt is not specified, then target and build default to host.
581 # The aliases save the names the user supplied, while $host etc.
582 # will get canonicalized.
583 case $host---$target---$nonopt in
584 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
585 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
589 # Make sure we can run config.sub.
590 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
591 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
594 echo $ac_n "checking host system type""... $ac_c" 1>&6
595 echo "configure:596: checking host system type" >&5
598 case "$host_alias" in
602 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
603 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
605 *) host_alias
=$nonopt ;;
609 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
610 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
611 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
612 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
613 echo "$ac_t""$host" 1>&6
615 echo $ac_n "checking target system type""... $ac_c" 1>&6
616 echo "configure:617: checking target system type" >&5
619 case "$target_alias" in
622 NONE
) target_alias
=$host_alias ;;
623 *) target_alias
=$nonopt ;;
627 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
628 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
629 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
630 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
631 echo "$ac_t""$target" 1>&6
633 echo $ac_n "checking build system type""... $ac_c" 1>&6
634 echo "configure:635: checking build system type" >&5
637 case "$build_alias" in
640 NONE
) build_alias
=$host_alias ;;
641 *) build_alias
=$nonopt ;;
645 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
646 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
647 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
648 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
649 echo "$ac_t""$build" 1>&6
651 test "$host_alias" != "$target_alias" &&
652 test "$program_prefix$program_suffix$program_transform_name" = \
654 program_prefix
=${target_alias}-
656 # Extract the first word of "gcc", so it can be a program name with args.
657 set dummy gcc
; ac_word
=$2
658 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
659 echo "configure:660: checking for $ac_word" >&5
660 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
661 echo $ac_n "(cached) $ac_c" 1>&6
663 if test -n "$CC"; then
664 ac_cv_prog_CC
="$CC" # Let the user override the test.
666 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
668 for ac_dir
in $ac_dummy; do
669 test -z "$ac_dir" && ac_dir
=.
670 if test -f $ac_dir/$ac_word; then
679 if test -n "$CC"; then
680 echo "$ac_t""$CC" 1>&6
682 echo "$ac_t""no" 1>&6
685 if test -z "$CC"; then
686 # Extract the first word of "cc", so it can be a program name with args.
687 set dummy cc
; ac_word
=$2
688 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
689 echo "configure:690: checking for $ac_word" >&5
690 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
691 echo $ac_n "(cached) $ac_c" 1>&6
693 if test -n "$CC"; then
694 ac_cv_prog_CC
="$CC" # Let the user override the test.
696 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
699 for ac_dir
in $ac_dummy; do
700 test -z "$ac_dir" && ac_dir
=.
701 if test -f $ac_dir/$ac_word; then
702 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
711 if test $ac_prog_rejected = yes; then
712 # We found a bogon in the path, so make sure we never use it.
713 set dummy
$ac_cv_prog_CC
715 if test $# -gt 0; then
716 # We chose a different compiler from the bogus one.
717 # However, it has the same basename, so the bogon will be chosen
718 # first if we set CC to just the basename; use the full file name.
720 set dummy
"$ac_dir/$ac_word" "$@"
728 if test -n "$CC"; then
729 echo "$ac_t""$CC" 1>&6
731 echo "$ac_t""no" 1>&6
734 if test -z "$CC"; then
737 # Extract the first word of "cl", so it can be a program name with args.
738 set dummy cl
; ac_word
=$2
739 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
740 echo "configure:741: checking for $ac_word" >&5
741 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
742 echo $ac_n "(cached) $ac_c" 1>&6
744 if test -n "$CC"; then
745 ac_cv_prog_CC
="$CC" # Let the user override the test.
747 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
749 for ac_dir
in $ac_dummy; do
750 test -z "$ac_dir" && ac_dir
=.
751 if test -f $ac_dir/$ac_word; then
760 if test -n "$CC"; then
761 echo "$ac_t""$CC" 1>&6
763 echo "$ac_t""no" 1>&6
768 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
771 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
772 echo "configure:773: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
775 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
776 ac_cpp
='$CPP $CPPFLAGS'
777 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
778 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
779 cross_compiling
=$ac_cv_prog_cc_cross
781 cat > conftest.
$ac_ext << EOF
783 #line 784 "configure"
784 #include "confdefs.h"
788 if { (eval echo configure
:789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
789 ac_cv_prog_cc_works
=yes
790 # If we can't run a trivial program, we are probably using a cross compiler.
791 if (.
/conftest
; exit) 2>/dev
/null
; then
792 ac_cv_prog_cc_cross
=no
794 ac_cv_prog_cc_cross
=yes
797 echo "configure: failed program was:" >&5
798 cat conftest.
$ac_ext >&5
799 ac_cv_prog_cc_works
=no
803 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
804 ac_cpp
='$CPP $CPPFLAGS'
805 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
806 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
807 cross_compiling
=$ac_cv_prog_cc_cross
809 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
810 if test $ac_cv_prog_cc_works = no
; then
811 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
813 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
814 echo "configure:815: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
815 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
816 cross_compiling
=$ac_cv_prog_cc_cross
818 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
819 echo "configure:820: checking whether we are using GNU C" >&5
820 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
821 echo $ac_n "(cached) $ac_c" 1>&6
823 cat > conftest.c
<<EOF
828 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
835 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
837 if test $ac_cv_prog_gcc = yes; then
843 ac_test_CFLAGS
="${CFLAGS+set}"
844 ac_save_CFLAGS
="$CFLAGS"
846 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
847 echo "configure:848: checking whether ${CC-cc} accepts -g" >&5
848 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
849 echo $ac_n "(cached) $ac_c" 1>&6
851 echo 'void f(){}' > conftest.c
852 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
861 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
862 if test "$ac_test_CFLAGS" = set; then
863 CFLAGS
="$ac_save_CFLAGS"
864 elif test $ac_cv_prog_cc_g = yes; then
865 if test "$GCC" = yes; then
871 if test "$GCC" = yes; then
878 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
879 echo "configure:880: checking for POSIXized ISC" >&5
880 if test -d /etc
/conf
/kconfig.d
&&
881 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
883 echo "$ac_t""yes" 1>&6
884 ISC
=yes # If later tests want to check for ISC.
885 cat >> confdefs.h
<<\EOF
886 #define _POSIX_SOURCE 1
889 if test "$GCC" = yes; then
895 echo "$ac_t""no" 1>&6
900 # We currently only use the version number for the name of any shared
901 # library. For user convenience, we always use the same version
902 # number that BFD is using.
903 BFD_VERSION
=`grep INIT_AUTOMAKE ${srcdir}/../bfd/configure.in | sed -n -e 's/[ ]//g' -e 's/^.*,\(.*\)).*$/\1/p'`
905 # Find a good install program. We prefer a C program (faster),
906 # so one script is as good as another. But avoid the broken or
907 # incompatible versions:
908 # SysV /etc/install, /usr/sbin/install
909 # SunOS /usr/etc/install
912 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
913 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
914 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
915 # ./install, which can be erroneously created by make from ./install.sh.
916 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
917 echo "configure:918: checking for a BSD compatible install" >&5
918 if test -z "$INSTALL"; then
919 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
920 echo $ac_n "(cached) $ac_c" 1>&6
922 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
923 for ac_dir
in $PATH; do
924 # Account for people who put trailing slashes in PATH elements.
926 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
928 # OSF1 and SCO ODT 3.0 have their own names for install.
929 # Don't use installbsd from OSF since it installs stuff as root
931 for ac_prog
in ginstall scoinst
install; do
932 if test -f $ac_dir/$ac_prog; then
933 if test $ac_prog = install &&
934 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
935 # AIX install. It has an incompatible calling convention.
938 ac_cv_path_install
="$ac_dir/$ac_prog -c"
949 if test "${ac_cv_path_install+set}" = set; then
950 INSTALL
="$ac_cv_path_install"
952 # As a last resort, use the slow shell script. We don't cache a
953 # path for INSTALL within a source directory, because that will
954 # break other packages using the cache if that directory is
955 # removed, or if the path is relative.
956 INSTALL
="$ac_install_sh"
959 echo "$ac_t""$INSTALL" 1>&6
961 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
962 # It thinks the first close brace ends the variable substitution.
963 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
965 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
967 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
969 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
970 echo "configure:971: checking whether build environment is sane" >&5
973 echo timestamp
> conftestfile
974 # Do `set' in a subshell so we don't clobber the current shell's
975 # arguments. Must try -L first in case configure is actually a
976 # symlink; some systems play weird games with the mod time of symlinks
977 # (eg FreeBSD returns the mod time of the symlink's containing
980 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
981 if test "$*" = "X"; then
983 set X
`ls -t $srcdir/configure conftestfile`
985 if test "$*" != "X $srcdir/configure conftestfile" \
986 && test "$*" != "X conftestfile $srcdir/configure"; then
988 # If neither matched, then we have a broken ls. This can happen
989 # if, for instance, CONFIG_SHELL is bash and it inherits a
990 # broken ls alias from the environment. This has actually
991 # happened. Such a system could not be considered "sane".
992 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
993 alias in your environment" 1>&2; exit 1; }
996 test "$2" = conftestfile
1002 { echo "configure: error: newly created file is older than distributed files!
1003 Check your system clock" 1>&2; exit 1; }
1006 echo "$ac_t""yes" 1>&6
1007 if test "$program_transform_name" = s
,x
,x
,; then
1008 program_transform_name
=
1010 # Double any \ or $. echo might interpret backslashes.
1011 cat <<\EOF_SED
> conftestsed
1012 s
,\\,\\\\,g
; s
,\$
,$$
,g
1014 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1017 test "$program_prefix" != NONE
&&
1018 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1019 # Use a double $ so make ignores it.
1020 test "$program_suffix" != NONE
&&
1021 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1023 # sed with no file args requires a program.
1024 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1026 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1027 echo "configure:1028: checking whether ${MAKE-make} sets \${MAKE}" >&5
1028 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1029 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1030 echo $ac_n "(cached) $ac_c" 1>&6
1032 cat > conftestmake
<<\EOF
1034 @
echo 'ac_maketemp="${MAKE}"'
1036 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1037 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1038 if test -n "$ac_maketemp"; then
1039 eval ac_cv_prog_make_
${ac_make}_set
=yes
1041 eval ac_cv_prog_make_
${ac_make}_set
=no
1045 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1046 echo "$ac_t""yes" 1>&6
1049 echo "$ac_t""no" 1>&6
1050 SET_MAKE
="MAKE=${MAKE-make}"
1056 VERSION
=${BFD_VERSION}
1058 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
1059 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
1061 cat >> confdefs.h
<<EOF
1062 #define PACKAGE "$PACKAGE"
1065 cat >> confdefs.h
<<EOF
1066 #define VERSION "$VERSION"
1071 missing_dir
=`cd $ac_aux_dir && pwd`
1072 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1073 echo "configure:1074: checking for working aclocal" >&5
1074 # Run test in a subshell; some versions of sh will print an error if
1075 # an executable is not found, even if stderr is redirected.
1076 # Redirect stdin to placate older versions of autoconf. Sigh.
1077 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
1079 echo "$ac_t""found" 1>&6
1081 ACLOCAL
="$missing_dir/missing aclocal"
1082 echo "$ac_t""missing" 1>&6
1085 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1086 echo "configure:1087: checking for working autoconf" >&5
1087 # Run test in a subshell; some versions of sh will print an error if
1088 # an executable is not found, even if stderr is redirected.
1089 # Redirect stdin to placate older versions of autoconf. Sigh.
1090 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
1092 echo "$ac_t""found" 1>&6
1094 AUTOCONF
="$missing_dir/missing autoconf"
1095 echo "$ac_t""missing" 1>&6
1098 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1099 echo "configure:1100: checking for working automake" >&5
1100 # Run test in a subshell; some versions of sh will print an error if
1101 # an executable is not found, even if stderr is redirected.
1102 # Redirect stdin to placate older versions of autoconf. Sigh.
1103 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
1105 echo "$ac_t""found" 1>&6
1107 AUTOMAKE
="$missing_dir/missing automake"
1108 echo "$ac_t""missing" 1>&6
1111 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1112 echo "configure:1113: checking for working autoheader" >&5
1113 # Run test in a subshell; some versions of sh will print an error if
1114 # an executable is not found, even if stderr is redirected.
1115 # Redirect stdin to placate older versions of autoconf. Sigh.
1116 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
1117 AUTOHEADER
=autoheader
1118 echo "$ac_t""found" 1>&6
1120 AUTOHEADER
="$missing_dir/missing autoheader"
1121 echo "$ac_t""missing" 1>&6
1124 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1125 echo "configure:1126: checking for working makeinfo" >&5
1126 # Run test in a subshell; some versions of sh will print an error if
1127 # an executable is not found, even if stderr is redirected.
1128 # Redirect stdin to placate older versions of autoconf. Sigh.
1129 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
1131 echo "$ac_t""found" 1>&6
1133 MAKEINFO
="$missing_dir/missing makeinfo"
1134 echo "$ac_t""missing" 1>&6
1139 if test $host != $build; then
1140 ac_tool_prefix
=${host_alias}-
1145 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1146 set dummy
${ac_tool_prefix}ar; ac_word
=$2
1147 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1148 echo "configure:1149: checking for $ac_word" >&5
1149 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1150 echo $ac_n "(cached) $ac_c" 1>&6
1152 if test -n "$AR"; then
1153 ac_cv_prog_AR
="$AR" # Let the user override the test.
1155 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1157 for ac_dir
in $ac_dummy; do
1158 test -z "$ac_dir" && ac_dir
=.
1159 if test -f $ac_dir/$ac_word; then
1160 ac_cv_prog_AR
="${ac_tool_prefix}ar"
1165 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1169 if test -n "$AR"; then
1170 echo "$ac_t""$AR" 1>&6
1172 echo "$ac_t""no" 1>&6
1177 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1178 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1179 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1180 echo "configure:1181: checking for $ac_word" >&5
1181 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1182 echo $ac_n "(cached) $ac_c" 1>&6
1184 if test -n "$RANLIB"; then
1185 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1187 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1189 for ac_dir
in $ac_dummy; do
1190 test -z "$ac_dir" && ac_dir
=.
1191 if test -f $ac_dir/$ac_word; then
1192 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1199 RANLIB
="$ac_cv_prog_RANLIB"
1200 if test -n "$RANLIB"; then
1201 echo "$ac_t""$RANLIB" 1>&6
1203 echo "$ac_t""no" 1>&6
1207 if test -z "$ac_cv_prog_RANLIB"; then
1208 if test -n "$ac_tool_prefix"; then
1209 # Extract the first word of "ranlib", so it can be a program name with args.
1210 set dummy ranlib
; ac_word
=$2
1211 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1212 echo "configure:1213: checking for $ac_word" >&5
1213 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1214 echo $ac_n "(cached) $ac_c" 1>&6
1216 if test -n "$RANLIB"; then
1217 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1219 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1221 for ac_dir
in $ac_dummy; do
1222 test -z "$ac_dir" && ac_dir
=.
1223 if test -f $ac_dir/$ac_word; then
1224 ac_cv_prog_RANLIB
="ranlib"
1229 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1232 RANLIB
="$ac_cv_prog_RANLIB"
1233 if test -n "$RANLIB"; then
1234 echo "$ac_t""$RANLIB" 1>&6
1236 echo "$ac_t""no" 1>&6
1245 # Check whether --enable-shared or --disable-shared was given.
1246 if test "${enable_shared+set}" = set; then
1247 enableval
="$enable_shared"
1248 p
=${PACKAGE-default}
1249 case "$enableval" in
1250 yes) enable_shared
=yes ;;
1251 no
) enable_shared
=no
;;
1254 # Look at the argument we got. We use all the common list separators.
1255 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1256 for pkg
in $enableval; do
1257 if test "X$pkg" = "X$p"; then
1269 # Check whether --enable-static or --disable-static was given.
1270 if test "${enable_static+set}" = set; then
1271 enableval
="$enable_static"
1272 p
=${PACKAGE-default}
1273 case "$enableval" in
1274 yes) enable_static
=yes ;;
1275 no
) enable_static
=no
;;
1278 # Look at the argument we got. We use all the common list separators.
1279 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1280 for pkg
in $enableval; do
1281 if test "X$pkg" = "X$p"; then
1292 # Check whether --enable-fast-install or --disable-fast-install was given.
1293 if test "${enable_fast_install+set}" = set; then
1294 enableval
="$enable_fast_install"
1295 p
=${PACKAGE-default}
1296 case "$enableval" in
1297 yes) enable_fast_install
=yes ;;
1298 no
) enable_fast_install
=no
;;
1300 enable_fast_install
=no
1301 # Look at the argument we got. We use all the common list separators.
1302 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1303 for pkg
in $enableval; do
1304 if test "X$pkg" = "X$p"; then
1305 enable_fast_install
=yes
1312 enable_fast_install
=yes
1315 # Extract the first word of "ranlib", so it can be a program name with args.
1316 set dummy ranlib
; ac_word
=$2
1317 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1318 echo "configure:1319: checking for $ac_word" >&5
1319 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1320 echo $ac_n "(cached) $ac_c" 1>&6
1322 if test -n "$RANLIB"; then
1323 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1325 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1327 for ac_dir
in $ac_dummy; do
1328 test -z "$ac_dir" && ac_dir
=.
1329 if test -f $ac_dir/$ac_word; then
1330 ac_cv_prog_RANLIB
="ranlib"
1335 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1338 RANLIB
="$ac_cv_prog_RANLIB"
1339 if test -n "$RANLIB"; then
1340 echo "$ac_t""$RANLIB" 1>&6
1342 echo "$ac_t""no" 1>&6
1345 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1346 if test "${with_gnu_ld+set}" = set; then
1347 withval
="$with_gnu_ld"
1348 test "$withval" = no || with_gnu_ld
=yes
1354 if test "$ac_cv_prog_gcc" = yes; then
1355 # Check if gcc -print-prog-name=ld gives a path.
1356 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1357 echo "configure:1358: checking for ld used by GCC" >&5
1358 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1360 # Accept absolute paths.
1361 /* |
[A-Za-z
]:[\\/]*)
1362 re_direlt
='/[^/][^/]*/\.\./'
1363 # Canonicalize the path of ld
1364 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1365 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1366 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1368 test -z "$LD" && LD
="$ac_prog"
1371 # If it fails, then pretend we aren't using GCC.
1375 # If it is relative, then search for the first ld in PATH.
1379 elif test "$with_gnu_ld" = yes; then
1380 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1381 echo "configure:1382: checking for GNU ld" >&5
1383 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1384 echo "configure:1385: checking for non-GNU ld" >&5
1386 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1387 echo $ac_n "(cached) $ac_c" 1>&6
1389 if test -z "$LD"; then
1390 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1391 for ac_dir
in $PATH; do
1392 test -z "$ac_dir" && ac_dir
=.
1393 if test -f "$ac_dir/$ac_prog"; then
1394 ac_cv_path_LD
="$ac_dir/$ac_prog"
1395 # Check to see if the program is GNU ld. I'd rather use --version,
1396 # but apparently some GNU ld's only accept -v.
1397 # Break only if it was the GNU/non-GNU ld that we prefer.
1398 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1399 test "$with_gnu_ld" != no
&& break
1401 test "$with_gnu_ld" != yes && break
1407 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1412 if test -n "$LD"; then
1413 echo "$ac_t""$LD" 1>&6
1415 echo "$ac_t""no" 1>&6
1417 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1419 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1420 echo "configure:1421: checking if the linker ($LD) is GNU ld" >&5
1421 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1422 echo $ac_n "(cached) $ac_c" 1>&6
1424 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1425 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1426 ac_cv_prog_gnu_ld
=yes
1428 ac_cv_prog_gnu_ld
=no
1432 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1435 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1436 echo "configure:1437: checking for BSD-compatible nm" >&5
1437 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1438 echo $ac_n "(cached) $ac_c" 1>&6
1440 if test -n "$NM"; then
1441 # Let the user override the test.
1444 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1445 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1446 test -z "$ac_dir" && ac_dir
=.
1447 if test -f $ac_dir/nm
; then
1448 # Check to see if the nm accepts a BSD-compat flag.
1449 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1450 # nm: unknown option "B" ignored
1451 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1452 ac_cv_path_NM
="$ac_dir/nm -B"
1454 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1455 ac_cv_path_NM
="$ac_dir/nm -p"
1458 ac_cv_path_NM
=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1459 continue # so that we can try to find one that supports BSD flags
1464 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1469 echo "$ac_t""$NM" 1>&6
1472 # Check for command to grab the raw symbol name followed by C symbol from nm.
1473 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
1474 echo "configure:1475: checking command to parse $NM output" >&5
1475 if eval "test \"`echo '$''{'ac_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
1476 echo $ac_n "(cached) $ac_c" 1>&6
1478 # These are sane defaults that work on at least a few old systems.
1479 # {They come from Ultrix. What could be older than Ultrix?!! ;)}
1481 # Character class describing NM global symbol codes.
1482 ac_symcode
='[BCDEGRST]'
1484 # Regexp to match symbols that can be accessed directly from C.
1485 ac_sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
1487 # Transform the above into a raw symbol and a C symbol.
1488 ac_symxfrm
='\1 \2\3 \3'
1490 # Transform an extracted symbol line into a proper C declaration
1491 ac_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
1493 # Define system-specific variables.
1499 ac_symcode
='[ABCDGISTW]'
1502 ac_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
1505 ac_symcode
='[BCDEGRST]'
1512 # If we're using GNU nm, then use its standard symbol codes.
1513 if $NM -V 2>&1 |
egrep '(GNU|with BFD)' > /dev
/null
; then
1514 ac_symcode
='[ABCDGISTW]'
1517 # Try without a prefix undercore, then with it.
1518 for ac_symprfx
in "" "_"; do
1520 ac_cv_sys_global_symbol_pipe
="sed -n -e 's/^.* \($ac_symcode\) *\($ac_symprfx\)$ac_sympat$/$ac_symxfrm/p'"
1522 # Check to see that the pipe works correctly.
1524 rm -f conftest.
$ac_ext
1525 cat > conftest.
$ac_ext <<EOF
1530 void nm_test_func(){}
1534 int main(){nm_test_var='a';nm_test_func;return 0;}
1537 if { (eval echo configure
:1538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1538 # Now try to grab the symbols.
1539 ac_nlist
=conftest.nm
1541 if { (eval echo configure
:1542: \"$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
1543 # Try sorting and uniquifying the output.
1544 if sort "$ac_nlist" |
uniq > "$ac_nlist"T
; then
1545 mv -f "$ac_nlist"T
"$ac_nlist"
1550 # Make sure that we snagged all the symbols we need.
1551 if egrep ' nm_test_var$' "$ac_nlist" >/dev
/null
; then
1552 if egrep ' nm_test_func$' "$ac_nlist" >/dev
/null
; then
1553 cat <<EOF > conftest.c
1559 # Now generate the symbol file.
1560 eval "$ac_global_symbol_to_cdecl"' < "$ac_nlist" >> conftest.c'
1562 cat <<EOF >> conftest.c
1563 #if defined (__STDC__) && __STDC__
1564 # define lt_ptr_t void *
1566 # define lt_ptr_t char *
1570 /* The mapping between symbol names and symbols. */
1575 lt_preloaded_symbols[] =
1578 sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$ac_nlist" >> conftest.c
1579 cat <<\EOF
>> conftest.c
1587 # Now try linking the two files.
1588 mv conftest.
$ac_objext conftestm.
$ac_objext
1589 ac_save_LIBS
="$LIBS"
1590 ac_save_CFLAGS
="$CFLAGS"
1591 LIBS
="conftestm.$ac_objext"
1592 CFLAGS
="$CFLAGS$no_builtin_flag"
1593 if { (eval echo configure
:1594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1596 echo "configure: failed program was:" >&5
1599 LIBS
="$ac_save_LIBS"
1600 CFLAGS
="$ac_save_CFLAGS"
1602 echo "cannot find nm_test_func in $ac_nlist" >&5
1605 echo "cannot find nm_test_var in $ac_nlist" >&5
1608 echo "cannot run $ac_cv_sys_global_symbol_pipe" >&5
1611 echo "$progname: failed program was:" >&5
1616 # Do not use the global_symbol_pipe unless it works.
1617 if test "$ac_pipe_works" = yes; then
1618 if test x
"$ac_symprfx" = x
"_"; then
1619 ac_cv_sys_symbol_underscore
=yes
1621 ac_cv_sys_symbol_underscore
=no
1625 ac_cv_sys_global_symbol_pipe
=
1633 if test -z "$ac_cv_sys_global_symbol_pipe"; then
1636 echo "$ac_t""$ac_result" 1>&6
1638 echo $ac_n "checking for _ prefix in compiled symbols""... $ac_c" 1>&6
1639 echo "configure:1640: checking for _ prefix in compiled symbols" >&5
1640 if eval "test \"`echo '$''{'ac_cv_sys_symbol_underscore'+set}'`\" = set"; then
1641 echo $ac_n "(cached) $ac_c" 1>&6
1643 ac_cv_sys_symbol_underscore
=no
1644 cat > conftest.
$ac_ext <<EOF
1645 void nm_test_func(){}
1646 int main(){nm_test_func;return 0;}
1648 if { (eval echo configure
:1649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1649 # Now try to grab the symbols.
1650 ac_nlist
=conftest.nm
1651 if { (eval echo configure
:1652: \"$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
1652 # See whether the symbols have a leading underscore.
1653 if egrep '^. _nm_test_func' "$ac_nlist" >/dev
/null
; then
1654 ac_cv_sys_symbol_underscore
=yes
1656 if egrep '^. nm_test_func ' "$ac_nlist" >/dev
/null
; then
1659 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
1663 echo "configure: cannot run $ac_cv_sys_global_symbol_pipe" >&5
1666 echo "configure: failed program was:" >&5
1673 echo "$ac_t""$ac_cv_sys_symbol_underscore" 1>&6
1674 USE_SYMBOL_UNDERSCORE
=${ac_cv_sys_symbol_underscore=no}
1676 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1677 echo "configure:1678: checking whether ln -s works" >&5
1678 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1679 echo $ac_n "(cached) $ac_c" 1>&6
1682 if ln -s X conftestdata
2>/dev
/null
1685 ac_cv_prog_LN_S
="ln -s"
1690 LN_S
="$ac_cv_prog_LN_S"
1691 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1692 echo "$ac_t""yes" 1>&6
1694 echo "$ac_t""no" 1>&6
1698 # Check for any special flags to pass to ltconfig.
1699 libtool_flags
="--cache-file=$cache_file"
1700 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1701 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1702 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1703 test "$lt_dlopen" = yes && libtool_flags
="$libtool_flags --enable-dlopen"
1704 test "$silent" = yes && libtool_flags
="$libtool_flags --silent"
1705 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1706 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1708 # Some flags need to be propagated to the compiler or linker for good
1712 # Find out which ABI we are using.
1713 echo '#line 1714 "configure"' > conftest.
$ac_ext
1714 if { (eval echo configure
:1715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1715 case "`/usr/bin/file conftest.o`" in
1731 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1732 SAVE_CFLAGS
="$CFLAGS"
1733 CFLAGS
="$CFLAGS -belf"
1734 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1735 echo "configure:1736: checking whether the C compiler needs -belf" >&5
1736 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1737 echo $ac_n "(cached) $ac_c" 1>&6
1739 cat > conftest.
$ac_ext <<EOF
1740 #line 1741 "configure"
1741 #include "confdefs.h"
1747 if { (eval echo configure
:1748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1749 lt_cv_cc_needs_belf
=yes
1751 echo "configure: failed program was:" >&5
1752 cat conftest.
$ac_ext >&5
1754 lt_cv_cc_needs_belf
=no
1759 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1760 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
1761 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1762 CFLAGS
="$SAVE_CFLAGS"
1767 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
1768 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
1769 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1770 echo "configure:1771: checking for $ac_word" >&5
1771 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1772 echo $ac_n "(cached) $ac_c" 1>&6
1774 if test -n "$DLLTOOL"; then
1775 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
1777 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1779 for ac_dir
in $ac_dummy; do
1780 test -z "$ac_dir" && ac_dir
=.
1781 if test -f $ac_dir/$ac_word; then
1782 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
1789 DLLTOOL
="$ac_cv_prog_DLLTOOL"
1790 if test -n "$DLLTOOL"; then
1791 echo "$ac_t""$DLLTOOL" 1>&6
1793 echo "$ac_t""no" 1>&6
1797 if test -z "$ac_cv_prog_DLLTOOL"; then
1798 if test -n "$ac_tool_prefix"; then
1799 # Extract the first word of "dlltool", so it can be a program name with args.
1800 set dummy dlltool
; ac_word
=$2
1801 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1802 echo "configure:1803: checking for $ac_word" >&5
1803 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1804 echo $ac_n "(cached) $ac_c" 1>&6
1806 if test -n "$DLLTOOL"; then
1807 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
1809 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1811 for ac_dir
in $ac_dummy; do
1812 test -z "$ac_dir" && ac_dir
=.
1813 if test -f $ac_dir/$ac_word; then
1814 ac_cv_prog_DLLTOOL
="dlltool"
1819 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL
="false"
1822 DLLTOOL
="$ac_cv_prog_DLLTOOL"
1823 if test -n "$DLLTOOL"; then
1824 echo "$ac_t""$DLLTOOL" 1>&6
1826 echo "$ac_t""no" 1>&6
1834 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1835 set dummy
${ac_tool_prefix}as
; ac_word
=$2
1836 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1837 echo "configure:1838: checking for $ac_word" >&5
1838 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1839 echo $ac_n "(cached) $ac_c" 1>&6
1841 if test -n "$AS"; then
1842 ac_cv_prog_AS
="$AS" # Let the user override the test.
1844 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1846 for ac_dir
in $ac_dummy; do
1847 test -z "$ac_dir" && ac_dir
=.
1848 if test -f $ac_dir/$ac_word; then
1849 ac_cv_prog_AS
="${ac_tool_prefix}as"
1857 if test -n "$AS"; then
1858 echo "$ac_t""$AS" 1>&6
1860 echo "$ac_t""no" 1>&6
1864 if test -z "$ac_cv_prog_AS"; then
1865 if test -n "$ac_tool_prefix"; then
1866 # Extract the first word of "as", so it can be a program name with args.
1867 set dummy as
; ac_word
=$2
1868 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1869 echo "configure:1870: checking for $ac_word" >&5
1870 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1871 echo $ac_n "(cached) $ac_c" 1>&6
1873 if test -n "$AS"; then
1874 ac_cv_prog_AS
="$AS" # Let the user override the test.
1876 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1878 for ac_dir
in $ac_dummy; do
1879 test -z "$ac_dir" && ac_dir
=.
1880 if test -f $ac_dir/$ac_word; then
1886 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS
="false"
1890 if test -n "$AS"; then
1891 echo "$ac_t""$AS" 1>&6
1893 echo "$ac_t""no" 1>&6
1906 # enable the --disable-libtool-lock switch
1908 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1909 if test "${enable_libtool_lock+set}" = set; then
1910 enableval
="$enable_libtool_lock"
1911 need_locks
=$enableval
1917 if test x
"$need_locks" = xno
; then
1918 libtool_flags
="$libtool_flags --disable-lock"
1922 # Save cache, so that ltconfig can load it
1923 cat > confcache
<<\EOF
1924 # This file is a shell script that caches the results of configure
1925 # tests run on this system so they can be shared between configure
1926 # scripts and configure runs. It is not useful on other systems.
1927 # If it contains results you don't want to keep, you may remove or edit it.
1929 # By default, configure uses ./config.cache as the cache file,
1930 # creating it if it does not exist already. You can give configure
1931 # the --cache-file=FILE option to use a different cache file; that is
1932 # what configure does when it calls configure scripts in
1933 # subdirectories, so they share the cache.
1934 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1935 # config.status only pays attention to the cache file if you give it the
1936 # --recheck option to rerun configure.
1939 # The following way of writing the cache mishandles newlines in values,
1940 # but we know of no workaround that is simple, portable, and efficient.
1941 # So, don't put newlines in cache variables' values.
1942 # Ultrix sh set writes to stderr and can't be redirected directly,
1943 # and sets the high bit in the cache file unless we assign to the vars.
1945 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1947 # `set' does not quote correctly, so add quotes (double-quote substitution
1948 # turns \\\\ into \\, and sed turns \\ into \).
1950 -e "s/'/'\\\\''/g" \
1951 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1954 # `set' quotes correctly as required by POSIX, so do not add quotes.
1955 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1958 if cmp -s $cache_file confcache
; then
1961 if test -w $cache_file; then
1962 echo "updating cache $cache_file"
1963 cat confcache
> $cache_file
1965 echo "not updating unwritable cache $cache_file"
1971 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1972 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1973 LD
="$LD" NM
="$NM" RANLIB
="$RANLIB" LN_S
="$LN_S" \
1974 DLLTOOL
="$DLLTOOL" AS
="$AS" \
1975 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
1976 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$host \
1977 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1979 # Reload cache, that may have been modified by ltconfig
1980 if test -r "$cache_file"; then
1981 echo "loading cache $cache_file"
1984 echo "creating cache $cache_file"
1989 # This can be used to rebuild libtool when needed
1990 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1992 # Always use our own libtool.
1993 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1995 # Redirect the config.log output again, so that the ltconfig log is not
1996 # clobbered by the next message.
1997 exec 5>>.
/config.log
2000 # Check whether --enable-targets or --disable-targets was given.
2001 if test "${enable_targets+set}" = set; then
2002 enableval
="$enable_targets"
2003 case "${enableval}" in
2004 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
2006 no
) enable_targets
= ;;
2007 *) enable_targets
=$enableval ;;
2010 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
2011 if test "${enable_commonbfdlib+set}" = set; then
2012 enableval
="$enable_commonbfdlib"
2013 case "${enableval}" in
2014 yes) commonbfdlib
=true
;;
2015 no
) commonbfdlib
=false
;;
2016 *) { echo "configure: error: bad value ${enableval} for opcodes commonbfdlib option" 1>&2; exit 1; } ;;
2024 if test -z "$target" ; then
2025 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
2027 if test "$program_transform_name" = s
,x
,x
,; then
2028 program_transform_name
=
2030 # Double any \ or $. echo might interpret backslashes.
2031 cat <<\EOF_SED
> conftestsed
2032 s
,\\,\\\\,g
; s
,\$
,$$
,g
2034 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
2037 test "$program_prefix" != NONE
&&
2038 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
2039 # Use a double $ so make ignores it.
2040 test "$program_suffix" != NONE
&&
2041 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
2043 # sed with no file args requires a program.
2044 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
2047 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2048 echo "configure:2049: checking whether to enable maintainer-specific portions of Makefiles" >&5
2049 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2050 if test "${enable_maintainer_mode+set}" = set; then
2051 enableval
="$enable_maintainer_mode"
2052 USE_MAINTAINER_MODE
=$enableval
2054 USE_MAINTAINER_MODE
=no
2057 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2060 if test $USE_MAINTAINER_MODE = yes; then
2061 MAINTAINER_MODE_TRUE
=
2062 MAINTAINER_MODE_FALSE
='#'
2064 MAINTAINER_MODE_TRUE
='#'
2065 MAINTAINER_MODE_FALSE
=
2067 MAINT
=$MAINTAINER_MODE_TRUE
2070 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2071 echo "configure:2072: checking for Cygwin environment" >&5
2072 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
2073 echo $ac_n "(cached) $ac_c" 1>&6
2075 cat > conftest.
$ac_ext <<EOF
2076 #line 2077 "configure"
2077 #include "confdefs.h"
2082 #define __CYGWIN__ __CYGWIN32__
2087 if { (eval echo configure
:2088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2091 echo "configure: failed program was:" >&5
2092 cat conftest.
$ac_ext >&5
2100 echo "$ac_t""$ac_cv_cygwin" 1>&6
2102 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
2103 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
2104 echo "configure:2105: checking for mingw32 environment" >&5
2105 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
2106 echo $ac_n "(cached) $ac_c" 1>&6
2108 cat > conftest.
$ac_ext <<EOF
2109 #line 2110 "configure"
2110 #include "confdefs.h"
2116 if { (eval echo configure
:2117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2120 echo "configure: failed program was:" >&5
2121 cat conftest.
$ac_ext >&5
2129 echo "$ac_t""$ac_cv_mingw32" 1>&6
2131 test "$ac_cv_mingw32" = yes && MINGW32
=yes
2134 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2135 echo "configure:2136: checking for executable suffix" >&5
2136 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2137 echo $ac_n "(cached) $ac_c" 1>&6
2139 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
2143 echo 'int main () { return 0; }' > conftest.
$ac_ext
2145 if { (eval echo configure
:2146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2146 for file in conftest.
*; do
2148 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
2149 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
2153 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2156 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
2161 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
2162 echo "$ac_t""${ac_cv_exeext}" 1>&6
2166 # host-specific stuff:
2168 # Extract the first word of "gcc", so it can be a program name with args.
2169 set dummy gcc
; ac_word
=$2
2170 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2171 echo "configure:2172: checking for $ac_word" >&5
2172 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2173 echo $ac_n "(cached) $ac_c" 1>&6
2175 if test -n "$CC"; then
2176 ac_cv_prog_CC
="$CC" # Let the user override the test.
2178 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2180 for ac_dir
in $ac_dummy; do
2181 test -z "$ac_dir" && ac_dir
=.
2182 if test -f $ac_dir/$ac_word; then
2191 if test -n "$CC"; then
2192 echo "$ac_t""$CC" 1>&6
2194 echo "$ac_t""no" 1>&6
2197 if test -z "$CC"; then
2198 # Extract the first word of "cc", so it can be a program name with args.
2199 set dummy cc
; ac_word
=$2
2200 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2201 echo "configure:2202: checking for $ac_word" >&5
2202 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2203 echo $ac_n "(cached) $ac_c" 1>&6
2205 if test -n "$CC"; then
2206 ac_cv_prog_CC
="$CC" # Let the user override the test.
2208 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2211 for ac_dir
in $ac_dummy; do
2212 test -z "$ac_dir" && ac_dir
=.
2213 if test -f $ac_dir/$ac_word; then
2214 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2215 ac_prog_rejected
=yes
2223 if test $ac_prog_rejected = yes; then
2224 # We found a bogon in the path, so make sure we never use it.
2225 set dummy
$ac_cv_prog_CC
2227 if test $# -gt 0; then
2228 # We chose a different compiler from the bogus one.
2229 # However, it has the same basename, so the bogon will be chosen
2230 # first if we set CC to just the basename; use the full file name.
2232 set dummy
"$ac_dir/$ac_word" "$@"
2240 if test -n "$CC"; then
2241 echo "$ac_t""$CC" 1>&6
2243 echo "$ac_t""no" 1>&6
2246 if test -z "$CC"; then
2247 case "`uname -s`" in
2249 # Extract the first word of "cl", so it can be a program name with args.
2250 set dummy cl
; ac_word
=$2
2251 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2252 echo "configure:2253: checking for $ac_word" >&5
2253 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2254 echo $ac_n "(cached) $ac_c" 1>&6
2256 if test -n "$CC"; then
2257 ac_cv_prog_CC
="$CC" # Let the user override the test.
2259 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2261 for ac_dir
in $ac_dummy; do
2262 test -z "$ac_dir" && ac_dir
=.
2263 if test -f $ac_dir/$ac_word; then
2272 if test -n "$CC"; then
2273 echo "$ac_t""$CC" 1>&6
2275 echo "$ac_t""no" 1>&6
2280 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2283 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2284 echo "configure:2285: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2287 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2288 ac_cpp
='$CPP $CPPFLAGS'
2289 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2290 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2291 cross_compiling
=$ac_cv_prog_cc_cross
2293 cat > conftest.
$ac_ext << EOF
2295 #line 2296 "configure"
2296 #include "confdefs.h"
2300 if { (eval echo configure
:2301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2301 ac_cv_prog_cc_works
=yes
2302 # If we can't run a trivial program, we are probably using a cross compiler.
2303 if (.
/conftest
; exit) 2>/dev
/null
; then
2304 ac_cv_prog_cc_cross
=no
2306 ac_cv_prog_cc_cross
=yes
2309 echo "configure: failed program was:" >&5
2310 cat conftest.
$ac_ext >&5
2311 ac_cv_prog_cc_works
=no
2315 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2316 ac_cpp
='$CPP $CPPFLAGS'
2317 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2318 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2319 cross_compiling
=$ac_cv_prog_cc_cross
2321 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2322 if test $ac_cv_prog_cc_works = no
; then
2323 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2325 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2326 echo "configure:2327: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2327 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2328 cross_compiling
=$ac_cv_prog_cc_cross
2330 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2331 echo "configure:2332: checking whether we are using GNU C" >&5
2332 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2333 echo $ac_n "(cached) $ac_c" 1>&6
2335 cat > conftest.c
<<EOF
2340 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2347 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2349 if test $ac_cv_prog_gcc = yes; then
2355 ac_test_CFLAGS
="${CFLAGS+set}"
2356 ac_save_CFLAGS
="$CFLAGS"
2358 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2359 echo "configure:2360: checking whether ${CC-cc} accepts -g" >&5
2360 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2361 echo $ac_n "(cached) $ac_c" 1>&6
2363 echo 'void f(){}' > conftest.c
2364 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2373 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2374 if test "$ac_test_CFLAGS" = set; then
2375 CFLAGS
="$ac_save_CFLAGS"
2376 elif test $ac_cv_prog_cc_g = yes; then
2377 if test "$GCC" = yes; then
2383 if test "$GCC" = yes; then
2392 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2393 echo "configure:2394: checking how to run the C preprocessor" >&5
2394 # On Suns, sometimes $CPP names a directory.
2395 if test -n "$CPP" && test -d "$CPP"; then
2398 if test -z "$CPP"; then
2399 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2400 echo $ac_n "(cached) $ac_c" 1>&6
2402 # This must be in double quotes, not single quotes, because CPP may get
2403 # substituted into the Makefile and "${CC-cc}" will confuse make.
2405 # On the NeXT, cc -E runs the code through the compiler's parser,
2406 # not just through cpp.
2407 cat > conftest.
$ac_ext <<EOF
2408 #line 2409 "configure"
2409 #include "confdefs.h"
2413 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2414 { (eval echo configure
:2415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2415 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2416 if test -z "$ac_err"; then
2420 echo "configure: failed program was:" >&5
2421 cat conftest.
$ac_ext >&5
2423 CPP
="${CC-cc} -E -traditional-cpp"
2424 cat > conftest.
$ac_ext <<EOF
2425 #line 2426 "configure"
2426 #include "confdefs.h"
2430 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2431 { (eval echo configure
:2432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2432 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2433 if test -z "$ac_err"; then
2437 echo "configure: failed program was:" >&5
2438 cat conftest.
$ac_ext >&5
2440 CPP
="${CC-cc} -nologo -E"
2441 cat > conftest.
$ac_ext <<EOF
2442 #line 2443 "configure"
2443 #include "confdefs.h"
2447 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2448 { (eval echo configure
:2449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2449 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2450 if test -z "$ac_err"; then
2454 echo "configure: failed program was:" >&5
2455 cat conftest.
$ac_ext >&5
2464 ac_cv_prog_CPP
="$CPP"
2466 CPP
="$ac_cv_prog_CPP"
2468 ac_cv_prog_CPP
="$CPP"
2470 echo "$ac_t""$CPP" 1>&6
2472 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2473 echo "configure:2474: checking for ANSI C header files" >&5
2474 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2475 echo $ac_n "(cached) $ac_c" 1>&6
2477 cat > conftest.
$ac_ext <<EOF
2478 #line 2479 "configure"
2479 #include "confdefs.h"
2485 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2486 { (eval echo configure
:2487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2487 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2488 if test -z "$ac_err"; then
2490 ac_cv_header_stdc
=yes
2493 echo "configure: failed program was:" >&5
2494 cat conftest.
$ac_ext >&5
2496 ac_cv_header_stdc
=no
2500 if test $ac_cv_header_stdc = yes; then
2501 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2502 cat > conftest.
$ac_ext <<EOF
2503 #line 2504 "configure"
2504 #include "confdefs.h"
2507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2508 egrep "memchr" >/dev
/null
2>&1; then
2512 ac_cv_header_stdc
=no
2518 if test $ac_cv_header_stdc = yes; then
2519 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2520 cat > conftest.
$ac_ext <<EOF
2521 #line 2522 "configure"
2522 #include "confdefs.h"
2525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2526 egrep "free" >/dev
/null
2>&1; then
2530 ac_cv_header_stdc
=no
2536 if test $ac_cv_header_stdc = yes; then
2537 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2538 if test "$cross_compiling" = yes; then
2541 cat > conftest.
$ac_ext <<EOF
2542 #line 2543 "configure"
2543 #include "confdefs.h"
2545 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2546 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2547 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2548 int main () { int i; for (i = 0; i < 256; i++)
2549 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2553 if { (eval echo configure
:2554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2557 echo "configure: failed program was:" >&5
2558 cat conftest.
$ac_ext >&5
2560 ac_cv_header_stdc
=no
2568 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2569 if test $ac_cv_header_stdc = yes; then
2570 cat >> confdefs.h
<<\EOF
2571 #define STDC_HEADERS 1
2576 echo $ac_n "checking for working const""... $ac_c" 1>&6
2577 echo "configure:2578: checking for working const" >&5
2578 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2579 echo $ac_n "(cached) $ac_c" 1>&6
2581 cat > conftest.
$ac_ext <<EOF
2582 #line 2583 "configure"
2583 #include "confdefs.h"
2587 /* Ultrix mips cc rejects this. */
2588 typedef int charset[2]; const charset x;
2589 /* SunOS 4.1.1 cc rejects this. */
2590 char const *const *ccp;
2592 /* NEC SVR4.0.2 mips cc rejects this. */
2593 struct point {int x, y;};
2594 static struct point const zero = {0,0};
2595 /* AIX XL C 1.02.0.0 rejects this.
2596 It does not let you subtract one const X* pointer from another in an arm
2597 of an if-expression whose if-part is not a constant expression */
2598 const char *g = "string";
2599 ccp = &g + (g ? g-g : 0);
2600 /* HPUX 7.0 cc rejects these. */
2603 ccp = (char const *const *) p;
2604 { /* SCO 3.2v4 cc rejects this. */
2606 char const *s = 0 ? (char *) 0 : (char const *) 0;
2610 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2612 const int *foo = &x[0];
2615 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2616 typedef const int *iptr;
2620 { /* AIX XL C 1.02.0.0 rejects this saying
2621 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2622 struct s { int j; const int *ap[3]; };
2623 struct s *b; b->j = 5;
2625 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2631 if { (eval echo configure
:2632: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2635 echo "configure: failed program was:" >&5
2636 cat conftest.
$ac_ext >&5
2643 echo "$ac_t""$ac_cv_c_const" 1>&6
2644 if test $ac_cv_c_const = no
; then
2645 cat >> confdefs.h
<<\EOF
2651 echo $ac_n "checking for inline""... $ac_c" 1>&6
2652 echo "configure:2653: checking for inline" >&5
2653 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2654 echo $ac_n "(cached) $ac_c" 1>&6
2657 for ac_kw
in inline __inline__ __inline
; do
2658 cat > conftest.
$ac_ext <<EOF
2659 #line 2660 "configure"
2660 #include "confdefs.h"
2666 if { (eval echo configure
:2667: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2668 ac_cv_c_inline
=$ac_kw; break
2670 echo "configure: failed program was:" >&5
2671 cat conftest.
$ac_ext >&5
2678 echo "$ac_t""$ac_cv_c_inline" 1>&6
2679 case "$ac_cv_c_inline" in
2681 no
) cat >> confdefs.h
<<\EOF
2685 *) cat >> confdefs.h
<<EOF
2686 #define inline $ac_cv_c_inline
2691 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2692 echo "configure:2693: checking for off_t" >&5
2693 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2694 echo $ac_n "(cached) $ac_c" 1>&6
2696 cat > conftest.
$ac_ext <<EOF
2697 #line 2698 "configure"
2698 #include "confdefs.h"
2699 #include <sys/types.h>
2705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2706 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2708 ac_cv_type_off_t
=yes
2716 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2717 if test $ac_cv_type_off_t = no
; then
2718 cat >> confdefs.h
<<\EOF
2724 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2725 echo "configure:2726: checking for size_t" >&5
2726 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2727 echo $ac_n "(cached) $ac_c" 1>&6
2729 cat > conftest.
$ac_ext <<EOF
2730 #line 2731 "configure"
2731 #include "confdefs.h"
2732 #include <sys/types.h>
2738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2739 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2741 ac_cv_type_size_t
=yes
2744 ac_cv_type_size_t
=no
2749 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2750 if test $ac_cv_type_size_t = no
; then
2751 cat >> confdefs.h
<<\EOF
2752 #define size_t unsigned
2757 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2758 # for constant arguments. Useless!
2759 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2760 echo "configure:2761: checking for working alloca.h" >&5
2761 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2762 echo $ac_n "(cached) $ac_c" 1>&6
2764 cat > conftest.
$ac_ext <<EOF
2765 #line 2766 "configure"
2766 #include "confdefs.h"
2769 char *p = alloca(2 * sizeof(int));
2772 if { (eval echo configure
:2773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2774 ac_cv_header_alloca_h
=yes
2776 echo "configure: failed program was:" >&5
2777 cat conftest.
$ac_ext >&5
2779 ac_cv_header_alloca_h
=no
2784 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2785 if test $ac_cv_header_alloca_h = yes; then
2786 cat >> confdefs.h
<<\EOF
2787 #define HAVE_ALLOCA_H 1
2792 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2793 echo "configure:2794: checking for alloca" >&5
2794 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2795 echo $ac_n "(cached) $ac_c" 1>&6
2797 cat > conftest.
$ac_ext <<EOF
2798 #line 2799 "configure"
2799 #include "confdefs.h"
2802 # define alloca __builtin_alloca
2805 # include <malloc.h>
2806 # define alloca _alloca
2809 # include <alloca.h>
2814 # ifndef alloca /* predefined by HP cc +Olibcalls */
2823 char *p = (char *) alloca(1);
2826 if { (eval echo configure
:2827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2828 ac_cv_func_alloca_works
=yes
2830 echo "configure: failed program was:" >&5
2831 cat conftest.
$ac_ext >&5
2833 ac_cv_func_alloca_works
=no
2838 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2839 if test $ac_cv_func_alloca_works = yes; then
2840 cat >> confdefs.h
<<\EOF
2841 #define HAVE_ALLOCA 1
2846 if test $ac_cv_func_alloca_works = no
; then
2847 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2848 # that cause trouble. Some versions do not even contain alloca or
2849 # contain a buggy version. If you still want to use their alloca,
2850 # use ar to extract alloca.o from them instead of compiling alloca.c.
2851 ALLOCA
=alloca.
${ac_objext}
2852 cat >> confdefs.h
<<\EOF
2857 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2858 echo "configure:2859: checking whether alloca needs Cray hooks" >&5
2859 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2860 echo $ac_n "(cached) $ac_c" 1>&6
2862 cat > conftest.
$ac_ext <<EOF
2863 #line 2864 "configure"
2864 #include "confdefs.h"
2865 #if defined(CRAY) && ! defined(CRAY2)
2872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2873 egrep "webecray" >/dev
/null
2>&1; then
2884 echo "$ac_t""$ac_cv_os_cray" 1>&6
2885 if test $ac_cv_os_cray = yes; then
2886 for ac_func
in _getb67 GETB67 getb67
; do
2887 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2888 echo "configure:2889: checking for $ac_func" >&5
2889 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2890 echo $ac_n "(cached) $ac_c" 1>&6
2892 cat > conftest.
$ac_ext <<EOF
2893 #line 2894 "configure"
2894 #include "confdefs.h"
2895 /* System header to define __stub macros and hopefully few prototypes,
2896 which can conflict with char $ac_func(); below. */
2898 /* Override any gcc2 internal prototype to avoid an error. */
2899 /* We use char because int might match the return type of a gcc2
2900 builtin and then its argument prototype would still apply. */
2905 /* The GNU C library defines this for functions which it implements
2906 to always fail with ENOSYS. Some functions are actually named
2907 something starting with __ and the normal name is an alias. */
2908 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2916 if { (eval echo configure
:2917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2918 eval "ac_cv_func_$ac_func=yes"
2920 echo "configure: failed program was:" >&5
2921 cat conftest.
$ac_ext >&5
2923 eval "ac_cv_func_$ac_func=no"
2928 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2929 echo "$ac_t""yes" 1>&6
2930 cat >> confdefs.h
<<EOF
2931 #define CRAY_STACKSEG_END $ac_func
2936 echo "$ac_t""no" 1>&6
2942 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2943 echo "configure:2944: checking stack direction for C alloca" >&5
2944 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2945 echo $ac_n "(cached) $ac_c" 1>&6
2947 if test "$cross_compiling" = yes; then
2948 ac_cv_c_stack_direction
=0
2950 cat > conftest.
$ac_ext <<EOF
2951 #line 2952 "configure"
2952 #include "confdefs.h"
2953 find_stack_direction ()
2955 static char *addr = 0;
2960 return find_stack_direction ();
2963 return (&dummy > addr) ? 1 : -1;
2967 exit (find_stack_direction() < 0);
2970 if { (eval echo configure
:2971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2972 ac_cv_c_stack_direction
=1
2974 echo "configure: failed program was:" >&5
2975 cat conftest.
$ac_ext >&5
2977 ac_cv_c_stack_direction
=-1
2984 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2985 cat >> confdefs.h
<<EOF
2986 #define STACK_DIRECTION $ac_cv_c_stack_direction
2991 for ac_hdr
in unistd.h
2993 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2994 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2995 echo "configure:2996: checking for $ac_hdr" >&5
2996 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2997 echo $ac_n "(cached) $ac_c" 1>&6
2999 cat > conftest.
$ac_ext <<EOF
3000 #line 3001 "configure"
3001 #include "confdefs.h"
3004 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3005 { (eval echo configure
:3006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3006 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3007 if test -z "$ac_err"; then
3009 eval "ac_cv_header_$ac_safe=yes"
3012 echo "configure: failed program was:" >&5
3013 cat conftest.
$ac_ext >&5
3015 eval "ac_cv_header_$ac_safe=no"
3019 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3020 echo "$ac_t""yes" 1>&6
3021 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3022 cat >> confdefs.h
<<EOF
3023 #define $ac_tr_hdr 1
3027 echo "$ac_t""no" 1>&6
3031 for ac_func
in getpagesize
3033 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3034 echo "configure:3035: checking for $ac_func" >&5
3035 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3036 echo $ac_n "(cached) $ac_c" 1>&6
3038 cat > conftest.
$ac_ext <<EOF
3039 #line 3040 "configure"
3040 #include "confdefs.h"
3041 /* System header to define __stub macros and hopefully few prototypes,
3042 which can conflict with char $ac_func(); below. */
3044 /* Override any gcc2 internal prototype to avoid an error. */
3045 /* We use char because int might match the return type of a gcc2
3046 builtin and then its argument prototype would still apply. */
3051 /* The GNU C library defines this for functions which it implements
3052 to always fail with ENOSYS. Some functions are actually named
3053 something starting with __ and the normal name is an alias. */
3054 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3062 if { (eval echo configure
:3063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3064 eval "ac_cv_func_$ac_func=yes"
3066 echo "configure: failed program was:" >&5
3067 cat conftest.
$ac_ext >&5
3069 eval "ac_cv_func_$ac_func=no"
3074 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3075 echo "$ac_t""yes" 1>&6
3076 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3077 cat >> confdefs.h
<<EOF
3078 #define $ac_tr_func 1
3082 echo "$ac_t""no" 1>&6
3086 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3087 echo "configure:3088: checking for working mmap" >&5
3088 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3089 echo $ac_n "(cached) $ac_c" 1>&6
3091 if test "$cross_compiling" = yes; then
3092 ac_cv_func_mmap_fixed_mapped
=no
3094 cat > conftest.
$ac_ext <<EOF
3095 #line 3096 "configure"
3096 #include "confdefs.h"
3098 /* Thanks to Mike Haertel and Jim Avera for this test.
3099 Here is a matrix of mmap possibilities:
3100 mmap private not fixed
3101 mmap private fixed at somewhere currently unmapped
3102 mmap private fixed at somewhere already mapped
3103 mmap shared not fixed
3104 mmap shared fixed at somewhere currently unmapped
3105 mmap shared fixed at somewhere already mapped
3106 For private mappings, we should verify that changes cannot be read()
3107 back from the file, nor mmap's back from the file at a different
3108 address. (There have been systems where private was not correctly
3109 implemented like the infamous i386 svr4.0, and systems where the
3110 VM page cache was not coherent with the filesystem buffer cache
3111 like early versions of FreeBSD and possibly contemporary NetBSD.)
3112 For shared mappings, we should conversely verify that changes get
3113 propogated back to all the places they're supposed to be.
3115 Grep wants private fixed already mapped.
3116 The main things grep needs to know about mmap are:
3117 * does it exist and is it safe to write into the mmap'd area
3118 * how to use it (BSD variants) */
3119 #include <sys/types.h>
3121 #include <sys/mman.h>
3123 /* This mess was copied from the GNU getpagesize.h. */
3124 #ifndef HAVE_GETPAGESIZE
3125 # ifdef HAVE_UNISTD_H
3126 # include <unistd.h>
3129 /* Assume that all systems that can run configure have sys/param.h. */
3130 # ifndef HAVE_SYS_PARAM_H
3131 # define HAVE_SYS_PARAM_H 1
3134 # ifdef _SC_PAGESIZE
3135 # define getpagesize() sysconf(_SC_PAGESIZE)
3136 # else /* no _SC_PAGESIZE */
3137 # ifdef HAVE_SYS_PARAM_H
3138 # include <sys/param.h>
3139 # ifdef EXEC_PAGESIZE
3140 # define getpagesize() EXEC_PAGESIZE
3141 # else /* no EXEC_PAGESIZE */
3143 # define getpagesize() NBPG * CLSIZE
3146 # endif /* no CLSIZE */
3147 # else /* no NBPG */
3149 # define getpagesize() NBPC
3150 # else /* no NBPC */
3152 # define getpagesize() PAGESIZE
3153 # endif /* PAGESIZE */
3154 # endif /* no NBPC */
3155 # endif /* no NBPG */
3156 # endif /* no EXEC_PAGESIZE */
3157 # else /* no HAVE_SYS_PARAM_H */
3158 # define getpagesize() 8192 /* punt totally */
3159 # endif /* no HAVE_SYS_PARAM_H */
3160 # endif /* no _SC_PAGESIZE */
3162 #endif /* no HAVE_GETPAGESIZE */
3165 extern "C" { void *malloc(unsigned); }
3173 char *data, *data2, *data3;
3177 pagesize = getpagesize();
3180 * First, make a file with some known garbage in it.
3182 data = malloc(pagesize);
3185 for (i = 0; i < pagesize; ++i)
3186 *(data + i) = rand();
3188 fd = creat("conftestmmap", 0600);
3191 if (write(fd, data, pagesize) != pagesize)
3196 * Next, try to mmap the file at a fixed address which
3197 * already has something else allocated at it. If we can,
3198 * also make sure that we see the same garbage.
3200 fd = open("conftestmmap", O_RDWR);
3203 data2 = malloc(2 * pagesize);
3206 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3207 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3208 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3210 for (i = 0; i < pagesize; ++i)
3211 if (*(data + i) != *(data2 + i))
3215 * Finally, make sure that changes to the mapped area
3216 * do not percolate back to the file as seen by read().
3217 * (This is a bug on some variants of i386 svr4.0.)
3219 for (i = 0; i < pagesize; ++i)
3220 *(data2 + i) = *(data2 + i) + 1;
3221 data3 = malloc(pagesize);
3224 if (read(fd, data3, pagesize) != pagesize)
3226 for (i = 0; i < pagesize; ++i)
3227 if (*(data + i) != *(data3 + i))
3230 unlink("conftestmmap");
3235 if { (eval echo configure
:3236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3237 ac_cv_func_mmap_fixed_mapped
=yes
3239 echo "configure: failed program was:" >&5
3240 cat conftest.
$ac_ext >&5
3242 ac_cv_func_mmap_fixed_mapped
=no
3249 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3250 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3251 cat >> confdefs.h
<<\EOF
3258 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3259 unistd.h values.h sys
/param.h
3261 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3262 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3263 echo "configure:3264: checking for $ac_hdr" >&5
3264 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3265 echo $ac_n "(cached) $ac_c" 1>&6
3267 cat > conftest.
$ac_ext <<EOF
3268 #line 3269 "configure"
3269 #include "confdefs.h"
3272 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3273 { (eval echo configure
:3274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3274 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3275 if test -z "$ac_err"; then
3277 eval "ac_cv_header_$ac_safe=yes"
3280 echo "configure: failed program was:" >&5
3281 cat conftest.
$ac_ext >&5
3283 eval "ac_cv_header_$ac_safe=no"
3287 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3288 echo "$ac_t""yes" 1>&6
3289 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3290 cat >> confdefs.h
<<EOF
3291 #define $ac_tr_hdr 1
3295 echo "$ac_t""no" 1>&6
3299 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3300 __argz_count __argz_stringify __argz_next
3302 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3303 echo "configure:3304: checking for $ac_func" >&5
3304 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3305 echo $ac_n "(cached) $ac_c" 1>&6
3307 cat > conftest.
$ac_ext <<EOF
3308 #line 3309 "configure"
3309 #include "confdefs.h"
3310 /* System header to define __stub macros and hopefully few prototypes,
3311 which can conflict with char $ac_func(); below. */
3313 /* Override any gcc2 internal prototype to avoid an error. */
3314 /* We use char because int might match the return type of a gcc2
3315 builtin and then its argument prototype would still apply. */
3320 /* The GNU C library defines this for functions which it implements
3321 to always fail with ENOSYS. Some functions are actually named
3322 something starting with __ and the normal name is an alias. */
3323 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3331 if { (eval echo configure
:3332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3333 eval "ac_cv_func_$ac_func=yes"
3335 echo "configure: failed program was:" >&5
3336 cat conftest.
$ac_ext >&5
3338 eval "ac_cv_func_$ac_func=no"
3343 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3344 echo "$ac_t""yes" 1>&6
3345 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3346 cat >> confdefs.h
<<EOF
3347 #define $ac_tr_func 1
3351 echo "$ac_t""no" 1>&6
3356 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3357 for ac_func
in stpcpy
3359 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3360 echo "configure:3361: checking for $ac_func" >&5
3361 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3362 echo $ac_n "(cached) $ac_c" 1>&6
3364 cat > conftest.
$ac_ext <<EOF
3365 #line 3366 "configure"
3366 #include "confdefs.h"
3367 /* System header to define __stub macros and hopefully few prototypes,
3368 which can conflict with char $ac_func(); below. */
3370 /* Override any gcc2 internal prototype to avoid an error. */
3371 /* We use char because int might match the return type of a gcc2
3372 builtin and then its argument prototype would still apply. */
3377 /* The GNU C library defines this for functions which it implements
3378 to always fail with ENOSYS. Some functions are actually named
3379 something starting with __ and the normal name is an alias. */
3380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3388 if { (eval echo configure
:3389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3390 eval "ac_cv_func_$ac_func=yes"
3392 echo "configure: failed program was:" >&5
3393 cat conftest.
$ac_ext >&5
3395 eval "ac_cv_func_$ac_func=no"
3400 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3401 echo "$ac_t""yes" 1>&6
3402 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3403 cat >> confdefs.h
<<EOF
3404 #define $ac_tr_func 1
3408 echo "$ac_t""no" 1>&6
3413 if test "${ac_cv_func_stpcpy}" = "yes"; then
3414 cat >> confdefs.h
<<\EOF
3415 #define HAVE_STPCPY 1
3420 if test $ac_cv_header_locale_h = yes; then
3421 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3422 echo "configure:3423: checking for LC_MESSAGES" >&5
3423 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3424 echo $ac_n "(cached) $ac_c" 1>&6
3426 cat > conftest.
$ac_ext <<EOF
3427 #line 3428 "configure"
3428 #include "confdefs.h"
3434 if { (eval echo configure
:3435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3436 am_cv_val_LC_MESSAGES
=yes
3438 echo "configure: failed program was:" >&5
3439 cat conftest.
$ac_ext >&5
3441 am_cv_val_LC_MESSAGES
=no
3446 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3447 if test $am_cv_val_LC_MESSAGES = yes; then
3448 cat >> confdefs.h
<<\EOF
3449 #define HAVE_LC_MESSAGES 1
3454 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3455 echo "configure:3456: checking whether NLS is requested" >&5
3456 # Check whether --enable-nls or --disable-nls was given.
3457 if test "${enable_nls+set}" = set; then
3458 enableval
="$enable_nls"
3464 echo "$ac_t""$USE_NLS" 1>&6
3467 USE_INCLUDED_LIBINTL
=no
3469 if test "$USE_NLS" = "yes"; then
3470 cat >> confdefs.h
<<\EOF
3471 #define ENABLE_NLS 1
3474 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3475 echo "configure:3476: checking whether included gettext is requested" >&5
3476 # Check whether --with-included-gettext or --without-included-gettext was given.
3477 if test "${with_included_gettext+set}" = set; then
3478 withval
="$with_included_gettext"
3479 nls_cv_force_use_gnu_gettext
=$withval
3481 nls_cv_force_use_gnu_gettext
=no
3484 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3486 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
3487 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3489 nls_cv_header_libgt
=
3492 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3493 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3494 echo "configure:3495: checking for libintl.h" >&5
3495 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3496 echo $ac_n "(cached) $ac_c" 1>&6
3498 cat > conftest.
$ac_ext <<EOF
3499 #line 3500 "configure"
3500 #include "confdefs.h"
3501 #include <libintl.h>
3503 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3504 { (eval echo configure
:3505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3505 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3506 if test -z "$ac_err"; then
3508 eval "ac_cv_header_$ac_safe=yes"
3511 echo "configure: failed program was:" >&5
3512 cat conftest.
$ac_ext >&5
3514 eval "ac_cv_header_$ac_safe=no"
3518 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3519 echo "$ac_t""yes" 1>&6
3520 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3521 echo "configure:3522: checking for gettext in libc" >&5
3522 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3523 echo $ac_n "(cached) $ac_c" 1>&6
3525 cat > conftest.
$ac_ext <<EOF
3526 #line 3527 "configure"
3527 #include "confdefs.h"
3528 #include <libintl.h>
3530 return (int) gettext ("")
3533 if { (eval echo configure
:3534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3535 gt_cv_func_gettext_libc
=yes
3537 echo "configure: failed program was:" >&5
3538 cat conftest.
$ac_ext >&5
3540 gt_cv_func_gettext_libc
=no
3545 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3547 if test "$gt_cv_func_gettext_libc" != "yes"; then
3548 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3549 echo "configure:3550: checking for bindtextdomain in -lintl" >&5
3550 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3551 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3552 echo $ac_n "(cached) $ac_c" 1>&6
3554 ac_save_LIBS
="$LIBS"
3556 cat > conftest.
$ac_ext <<EOF
3557 #line 3558 "configure"
3558 #include "confdefs.h"
3559 /* Override any gcc2 internal prototype to avoid an error. */
3560 /* We use char because int might match the return type of a gcc2
3561 builtin and then its argument prototype would still apply. */
3562 char bindtextdomain();
3568 if { (eval echo configure
:3569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3570 eval "ac_cv_lib_$ac_lib_var=yes"
3572 echo "configure: failed program was:" >&5
3573 cat conftest.
$ac_ext >&5
3575 eval "ac_cv_lib_$ac_lib_var=no"
3578 LIBS
="$ac_save_LIBS"
3581 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3582 echo "$ac_t""yes" 1>&6
3583 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3584 echo "configure:3585: checking for gettext in libintl" >&5
3585 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3586 echo $ac_n "(cached) $ac_c" 1>&6
3588 cat > conftest.
$ac_ext <<EOF
3589 #line 3590 "configure"
3590 #include "confdefs.h"
3593 return (int) gettext ("")
3596 if { (eval echo configure
:3597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3598 gt_cv_func_gettext_libintl
=yes
3600 echo "configure: failed program was:" >&5
3601 cat conftest.
$ac_ext >&5
3603 gt_cv_func_gettext_libintl
=no
3608 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3610 echo "$ac_t""no" 1>&6
3615 if test "$gt_cv_func_gettext_libc" = "yes" \
3616 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
3617 cat >> confdefs.h
<<\EOF
3618 #define HAVE_GETTEXT 1
3621 # Extract the first word of "msgfmt", so it can be a program name with args.
3622 set dummy msgfmt
; ac_word
=$2
3623 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3624 echo "configure:3625: checking for $ac_word" >&5
3625 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3626 echo $ac_n "(cached) $ac_c" 1>&6
3630 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3633 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3634 for ac_dir
in $PATH; do
3635 test -z "$ac_dir" && ac_dir
=.
3636 if test -f $ac_dir/$ac_word; then
3637 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3638 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3644 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
3648 MSGFMT
="$ac_cv_path_MSGFMT"
3649 if test -n "$MSGFMT"; then
3650 echo "$ac_t""$MSGFMT" 1>&6
3652 echo "$ac_t""no" 1>&6
3654 if test "$MSGFMT" != "no"; then
3655 for ac_func
in dcgettext
3657 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3658 echo "configure:3659: checking for $ac_func" >&5
3659 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3660 echo $ac_n "(cached) $ac_c" 1>&6
3662 cat > conftest.
$ac_ext <<EOF
3663 #line 3664 "configure"
3664 #include "confdefs.h"
3665 /* System header to define __stub macros and hopefully few prototypes,
3666 which can conflict with char $ac_func(); below. */
3668 /* Override any gcc2 internal prototype to avoid an error. */
3669 /* We use char because int might match the return type of a gcc2
3670 builtin and then its argument prototype would still apply. */
3675 /* The GNU C library defines this for functions which it implements
3676 to always fail with ENOSYS. Some functions are actually named
3677 something starting with __ and the normal name is an alias. */
3678 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3686 if { (eval echo configure
:3687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3688 eval "ac_cv_func_$ac_func=yes"
3690 echo "configure: failed program was:" >&5
3691 cat conftest.
$ac_ext >&5
3693 eval "ac_cv_func_$ac_func=no"
3698 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3699 echo "$ac_t""yes" 1>&6
3700 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3701 cat >> confdefs.h
<<EOF
3702 #define $ac_tr_func 1
3706 echo "$ac_t""no" 1>&6
3710 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3711 set dummy gmsgfmt
; ac_word
=$2
3712 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3713 echo "configure:3714: checking for $ac_word" >&5
3714 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3715 echo $ac_n "(cached) $ac_c" 1>&6
3719 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3722 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3725 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3727 for ac_dir
in $ac_dummy; do
3728 test -z "$ac_dir" && ac_dir
=.
3729 if test -f $ac_dir/$ac_word; then
3730 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3735 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3739 GMSGFMT
="$ac_cv_path_GMSGFMT"
3740 if test -n "$GMSGFMT"; then
3741 echo "$ac_t""$GMSGFMT" 1>&6
3743 echo "$ac_t""no" 1>&6
3746 # Extract the first word of "xgettext", so it can be a program name with args.
3747 set dummy xgettext
; ac_word
=$2
3748 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3749 echo "configure:3750: checking for $ac_word" >&5
3750 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3751 echo $ac_n "(cached) $ac_c" 1>&6
3755 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3758 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3759 for ac_dir
in $PATH; do
3760 test -z "$ac_dir" && ac_dir
=.
3761 if test -f $ac_dir/$ac_word; then
3762 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3763 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
3769 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
3773 XGETTEXT
="$ac_cv_path_XGETTEXT"
3774 if test -n "$XGETTEXT"; then
3775 echo "$ac_t""$XGETTEXT" 1>&6
3777 echo "$ac_t""no" 1>&6
3780 cat > conftest.
$ac_ext <<EOF
3781 #line 3782 "configure"
3782 #include "confdefs.h"
3785 extern int _nl_msg_cat_cntr;
3786 return _nl_msg_cat_cntr
3789 if { (eval echo configure
:3790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3794 echo "configure: failed program was:" >&5
3795 cat conftest.
$ac_ext >&5
3806 echo "$ac_t""no" 1>&6
3811 if test "$CATOBJEXT" = "NONE"; then
3812 nls_cv_use_gnu_gettext
=yes
3816 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3817 INTLOBJS
="\$(GETTOBJS)"
3818 # Extract the first word of "msgfmt", so it can be a program name with args.
3819 set dummy msgfmt
; ac_word
=$2
3820 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3821 echo "configure:3822: checking for $ac_word" >&5
3822 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3823 echo $ac_n "(cached) $ac_c" 1>&6
3827 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3830 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3831 for ac_dir
in $PATH; do
3832 test -z "$ac_dir" && ac_dir
=.
3833 if test -f $ac_dir/$ac_word; then
3834 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3835 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3841 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
3845 MSGFMT
="$ac_cv_path_MSGFMT"
3846 if test -n "$MSGFMT"; then
3847 echo "$ac_t""$MSGFMT" 1>&6
3849 echo "$ac_t""no" 1>&6
3852 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3853 set dummy gmsgfmt
; ac_word
=$2
3854 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3855 echo "configure:3856: checking for $ac_word" >&5
3856 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3857 echo $ac_n "(cached) $ac_c" 1>&6
3861 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3864 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3867 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3869 for ac_dir
in $ac_dummy; do
3870 test -z "$ac_dir" && ac_dir
=.
3871 if test -f $ac_dir/$ac_word; then
3872 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3877 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3881 GMSGFMT
="$ac_cv_path_GMSGFMT"
3882 if test -n "$GMSGFMT"; then
3883 echo "$ac_t""$GMSGFMT" 1>&6
3885 echo "$ac_t""no" 1>&6
3888 # Extract the first word of "xgettext", so it can be a program name with args.
3889 set dummy xgettext
; ac_word
=$2
3890 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3891 echo "configure:3892: checking for $ac_word" >&5
3892 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3893 echo $ac_n "(cached) $ac_c" 1>&6
3897 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3900 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3901 for ac_dir
in $PATH; do
3902 test -z "$ac_dir" && ac_dir
=.
3903 if test -f $ac_dir/$ac_word; then
3904 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3905 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
3911 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
3915 XGETTEXT
="$ac_cv_path_XGETTEXT"
3916 if test -n "$XGETTEXT"; then
3917 echo "$ac_t""$XGETTEXT" 1>&6
3919 echo "$ac_t""no" 1>&6
3923 USE_INCLUDED_LIBINTL
=yes
3927 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
3929 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
3930 nls_cv_header_intl
=libintl.h
3931 nls_cv_header_libgt
=libgettext.h
3934 if test "$XGETTEXT" != ":"; then
3935 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
3938 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
3943 # We need to process the po/ directory.
3947 nls_cv_header_intl
=libintl.h
3948 nls_cv_header_libgt
=libgettext.h
3951 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3952 # because some of the sources are only built for this goal.
3953 if test "$PACKAGE" = gettext; then
3955 USE_INCLUDED_LIBINTL
=yes
3958 for lang
in $ALL_LINGUAS; do
3959 GMOFILES
="$GMOFILES $lang.gmo"
3960 POFILES
="$POFILES $lang.po"
3976 if test "x$CATOBJEXT" != "x"; then
3977 if test "x$ALL_LINGUAS" = "x"; then
3980 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3981 echo "configure:3982: checking for catalogs to be installed" >&5
3983 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
3984 case "$ALL_LINGUAS" in
3985 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
3988 LINGUAS
=$NEW_LINGUAS
3989 echo "$ac_t""$LINGUAS" 1>&6
3992 if test -n "$LINGUAS"; then
3993 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
3997 if test $ac_cv_header_locale_h = yes; then
3998 INCLUDE_LOCALE_H
="#include <locale.h>"
4001 /* The system does not provide the header <locale.h>. Take care yourself. */"
4005 if test -f $srcdir/po2tbl.
sed.
in; then
4006 if test "$CATOBJEXT" = ".cat"; then
4007 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4008 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4009 echo "configure:4010: checking for linux/version.h" >&5
4010 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4011 echo $ac_n "(cached) $ac_c" 1>&6
4013 cat > conftest.
$ac_ext <<EOF
4014 #line 4015 "configure"
4015 #include "confdefs.h"
4016 #include <linux/version.h>
4018 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4019 { (eval echo configure
:4020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4020 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4021 if test -z "$ac_err"; then
4023 eval "ac_cv_header_$ac_safe=yes"
4026 echo "configure: failed program was:" >&5
4027 cat conftest.
$ac_ext >&5
4029 eval "ac_cv_header_$ac_safe=no"
4033 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4034 echo "$ac_t""yes" 1>&6
4037 echo "$ac_t""no" 1>&6
4042 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
4044 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4045 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
4048 if test "$PACKAGE" = "gettext"; then
4058 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
4064 if test -d $srcdir/po
; then
4065 test -d po || mkdir po
4066 if test "x$srcdir" != "x."; then
4067 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4068 posrcprefix
="$srcdir/"
4070 posrcprefix
="../$srcdir/"
4076 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4077 < $srcdir/po
/POTFILES.
in > po
/POTFILES
4081 .
${srcdir}/..
/bfd
/configure.
host
4084 # Find a good install program. We prefer a C program (faster),
4085 # so one script is as good as another. But avoid the broken or
4086 # incompatible versions:
4087 # SysV /etc/install, /usr/sbin/install
4088 # SunOS /usr/etc/install
4089 # IRIX /sbin/install
4091 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4092 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4093 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4094 # ./install, which can be erroneously created by make from ./install.sh.
4095 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4096 echo "configure:4097: checking for a BSD compatible install" >&5
4097 if test -z "$INSTALL"; then
4098 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4099 echo $ac_n "(cached) $ac_c" 1>&6
4101 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
4102 for ac_dir
in $PATH; do
4103 # Account for people who put trailing slashes in PATH elements.
4105 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
4107 # OSF1 and SCO ODT 3.0 have their own names for install.
4108 # Don't use installbsd from OSF since it installs stuff as root
4110 for ac_prog
in ginstall scoinst
install; do
4111 if test -f $ac_dir/$ac_prog; then
4112 if test $ac_prog = install &&
4113 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
4114 # AIX install. It has an incompatible calling convention.
4117 ac_cv_path_install
="$ac_dir/$ac_prog -c"
4128 if test "${ac_cv_path_install+set}" = set; then
4129 INSTALL
="$ac_cv_path_install"
4131 # As a last resort, use the slow shell script. We don't cache a
4132 # path for INSTALL within a source directory, because that will
4133 # break other packages using the cache if that directory is
4134 # removed, or if the path is relative.
4135 INSTALL
="$ac_install_sh"
4138 echo "$ac_t""$INSTALL" 1>&6
4140 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4141 # It thinks the first close brace ends the variable substitution.
4142 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4144 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
4146 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4149 for ac_hdr
in string.h
strings.h stdlib.h
4151 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4152 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4153 echo "configure:4154: checking for $ac_hdr" >&5
4154 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4155 echo $ac_n "(cached) $ac_c" 1>&6
4157 cat > conftest.
$ac_ext <<EOF
4158 #line 4159 "configure"
4159 #include "confdefs.h"
4162 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4163 { (eval echo configure
:4164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4164 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4165 if test -z "$ac_err"; then
4167 eval "ac_cv_header_$ac_safe=yes"
4170 echo "configure: failed program was:" >&5
4171 cat conftest.
$ac_ext >&5
4173 eval "ac_cv_header_$ac_safe=no"
4177 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4178 echo "$ac_t""yes" 1>&6
4179 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4180 cat >> confdefs.h
<<EOF
4181 #define $ac_tr_hdr 1
4185 echo "$ac_t""no" 1>&6
4193 # Horrible hacks to build DLLs on Windows.
4198 if test "$enable_shared" = "yes"; then
4199 WIN32LDFLAGS
="-no-undefined"
4200 WIN32LIBADD
="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin"
4207 # target-specific stuff:
4209 # Canonicalize the secondary target names.
4210 if test -n "$enable_targets" ; then
4211 for targ
in `echo $enable_targets | sed 's/,/ /g'`
4213 result
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $targ 2>/dev/null`
4214 if test -n "$result" ; then
4215 canon_targets
="$canon_targets $result"
4217 # Allow targets that config.sub doesn't recognize, like "all".
4218 canon_targets
="$canon_targets $targ"
4225 for targ
in $target $canon_targets
4227 if test "x$targ" = "xall" ; then
4230 .
$srcdir/..
/bfd
/config.bfd
4231 selarchs
="$selarchs $targ_archs"
4235 # Utility var, documents generic cgen support files.
4237 cgen_files
="cgen-opc.lo cgen-asm.lo cgen-dis.lo"
4239 # We don't do any links based on the target system, just makefile config.
4241 if test x
${all_targets} = xfalse
; then
4243 # Target architecture .o files.
4246 for arch
in $selarchs
4248 ad
=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
4249 archdefs
="$archdefs -DARCH_$ad"
4251 bfd_a29k_arch
) ta
="$ta a29k-dis.lo" ;;
4252 bfd_alliant_arch
) ;;
4253 bfd_alpha_arch
) ta
="$ta alpha-dis.lo alpha-opc.lo" ;;
4254 bfd_arc_arch
) ta
="$ta arc-dis.lo arc-opc.lo" ;;
4255 bfd_arm_arch
) ta
="$ta arm-dis.lo" ;;
4257 bfd_d10v_arch
) ta
="$ta d10v-dis.lo d10v-opc.lo" ;;
4258 bfd_d30v_arch
) ta
="$ta d30v-dis.lo d30v-opc.lo" ;;
4259 bfd_fr30_arch
) ta
="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen
=yes ;;
4260 bfd_h8300_arch
) ta
="$ta h8300-dis.lo" ;;
4261 bfd_h8500_arch
) ta
="$ta h8500-dis.lo" ;;
4262 bfd_hppa_arch
) ta
="$ta hppa-dis.lo" ;;
4263 bfd_i386_arch
) ta
="$ta i386-dis.lo" ;;
4265 bfd_i960_arch
) ta
="$ta i960-dis.lo" ;;
4266 bfd_m32r_arch
) ta
="$ta m32r-asm.lo m32r-desc.lo m32r-dis.lo m32r-ibld.lo m32r-opc.lo m32r-opinst.lo" using_cgen
=yes ;;
4267 bfd_m68k_arch
) ta
="$ta m68k-dis.lo m68k-opc.lo" ;;
4268 bfd_m88k_arch
) ta
="$ta m88k-dis.lo" ;;
4269 bfd_mcore_arch
) ta
="$ta mcore-dis.lo" ;;
4270 bfd_mips_arch
) ta
="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;;
4271 bfd_mn10200_arch
) ta
="$ta m10200-dis.lo m10200-opc.lo" ;;
4272 bfd_mn10300_arch
) ta
="$ta m10300-dis.lo m10300-opc.lo" ;;
4273 bfd_ns32k_arch
) ta
="$ta ns32k-dis.lo" ;;
4274 bfd_powerpc_arch
) ta
="$ta ppc-dis.lo ppc-opc.lo" ;;
4275 bfd_pyramid_arch
) ;;
4277 bfd_rs6000_arch
) ta
="$ta ppc-dis.lo ppc-opc.lo" ;;
4278 bfd_sh_arch
) ta
="$ta sh-dis.lo" ;;
4279 bfd_sparc_arch
) ta
="$ta sparc-dis.lo sparc-opc.lo" ;;
4281 bfd_tic30_arch
) ta
="$ta tic30-dis.lo" ;;
4282 bfd_tic80_arch
) ta
="$ta tic80-dis.lo tic80-opc.lo" ;;
4283 bfd_v850_arch
) ta
="$ta v850-opc.lo v850-dis.lo" ;;
4284 bfd_v850e_arch
) ta
="$ta v850-opc.lo v850-dis.lo" ;;
4285 bfd_v850ea_arch
) ta
="$ta v850-opc.lo v850-dis.lo" ;;
4286 bfd_vax_arch
) ta
="$ta vax-dis.lo" ;;
4287 bfd_w65_arch
) ta
="$ta w65-dis.lo" ;;
4289 bfd_z8k_arch
) ta
="$ta z8k-dis.lo" ;;
4292 *) { echo "configure: error: *** unknown target architecture $arch" 1>&2; exit 1; } ;;
4296 if test $using_cgen = yes ; then
4297 ta
="$ta $cgen_files"
4300 # Weed out duplicate .o files.
4310 # And duplicate -D flags.
4312 for i
in $archdefs ; do
4322 else # all_targets is true
4324 BFD_MACHINES
='$(ALL_MACHINES)'
4331 cat > confcache
<<\EOF
4332 # This file is a shell script that caches the results of configure
4333 # tests run on this system so they can be shared between configure
4334 # scripts and configure runs. It is not useful on other systems.
4335 # If it contains results you don't want to keep, you may remove or edit it.
4337 # By default, configure uses ./config.cache as the cache file,
4338 # creating it if it does not exist already. You can give configure
4339 # the --cache-file=FILE option to use a different cache file; that is
4340 # what configure does when it calls configure scripts in
4341 # subdirectories, so they share the cache.
4342 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4343 # config.status only pays attention to the cache file if you give it the
4344 # --recheck option to rerun configure.
4347 # The following way of writing the cache mishandles newlines in values,
4348 # but we know of no workaround that is simple, portable, and efficient.
4349 # So, don't put newlines in cache variables' values.
4350 # Ultrix sh set writes to stderr and can't be redirected directly,
4351 # and sets the high bit in the cache file unless we assign to the vars.
4353 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4355 # `set' does not quote correctly, so add quotes (double-quote substitution
4356 # turns \\\\ into \\, and sed turns \\ into \).
4358 -e "s/'/'\\\\''/g" \
4359 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4362 # `set' quotes correctly as required by POSIX, so do not add quotes.
4363 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4366 if cmp -s $cache_file confcache
; then
4369 if test -w $cache_file; then
4370 echo "updating cache $cache_file"
4371 cat confcache
> $cache_file
4373 echo "not updating unwritable cache $cache_file"
4378 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4380 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4381 # Let make expand exec_prefix.
4382 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4384 # Any assignment to VPATH causes Sun make to only execute
4385 # the first set of double-colon rules, so remove it if not needed.
4386 # If there is a colon in the path, we need to keep it.
4387 if test "x$srcdir" = x.
; then
4388 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
4391 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4393 DEFS
=-DHAVE_CONFIG_H
4395 # Without the "./", some shells look in PATH for config.status.
4396 : ${CONFIG_STATUS=./config.status}
4398 echo creating
$CONFIG_STATUS
4399 rm -f $CONFIG_STATUS
4400 cat > $CONFIG_STATUS <<EOF
4402 # Generated automatically by configure.
4403 # Run this file to recreate the current configuration.
4404 # This directory was configured as follows,
4405 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4407 # $0 $ac_configure_args
4409 # Compiler output produced by configure, useful for debugging
4410 # configure, is in ./config.log if it exists.
4412 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4415 case "\$ac_option" in
4416 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4417 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4418 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4419 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4420 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4422 -help | --help | --hel | --he | --h)
4423 echo "\$ac_cs_usage"; exit 0 ;;
4424 *) echo "\$ac_cs_usage"; exit 1 ;;
4428 ac_given_srcdir=$srcdir
4429 ac_given_INSTALL="$INSTALL"
4431 trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4433 cat >> $CONFIG_STATUS <<EOF
4435 # Protect against being on the right side of a sed subst in config.status.
4436 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4437 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4441 s%@CFLAGS@%$CFLAGS%g
4442 s%@CPPFLAGS@%$CPPFLAGS%g
4443 s%@CXXFLAGS@%$CXXFLAGS%g
4444 s%@FFLAGS@%$FFLAGS%g
4446 s%@LDFLAGS@%$LDFLAGS%g
4448 s%@exec_prefix@%$exec_prefix%g
4449 s%@prefix@%$prefix%g
4450 s%@program_transform_name@%$program_transform_name%g
4451 s%@bindir@%$bindir%g
4452 s%@sbindir@%$sbindir%g
4453 s%@libexecdir@%$libexecdir%g
4454 s%@datadir@%$datadir%g
4455 s%@sysconfdir@%$sysconfdir%g
4456 s%@sharedstatedir@%$sharedstatedir%g
4457 s%@localstatedir@%$localstatedir%g
4458 s%@libdir@%$libdir%g
4459 s%@includedir@%$includedir%g
4460 s%@oldincludedir@%$oldincludedir%g
4461 s%@infodir@%$infodir%g
4462 s%@mandir@%$mandir%g
4464 s%@host_alias@%$host_alias%g
4465 s%@host_cpu@%$host_cpu%g
4466 s%@host_vendor@%$host_vendor%g
4467 s%@host_os@%$host_os%g
4468 s%@target@%$target%g
4469 s%@target_alias@%$target_alias%g
4470 s%@target_cpu@%$target_cpu%g
4471 s%@target_vendor@%$target_vendor%g
4472 s%@target_os@%$target_os%g
4474 s%@build_alias@%$build_alias%g
4475 s%@build_cpu@%$build_cpu%g
4476 s%@build_vendor@%$build_vendor%g
4477 s%@build_os@%$build_os%g
4479 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4480 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4481 s%@INSTALL_DATA@%$INSTALL_DATA%g
4482 s%@PACKAGE@%$PACKAGE%g
4483 s%@VERSION@%$VERSION%g
4484 s%@ACLOCAL@%$ACLOCAL%g
4485 s%@AUTOCONF@%$AUTOCONF%g
4486 s%@AUTOMAKE@%$AUTOMAKE%g
4487 s%@AUTOHEADER@%$AUTOHEADER%g
4488 s%@MAKEINFO@%$MAKEINFO%g
4489 s%@SET_MAKE@%$SET_MAKE%g
4491 s%@RANLIB@%$RANLIB%g
4494 s%@USE_SYMBOL_UNDERSCORE@%$USE_SYMBOL_UNDERSCORE%g
4496 s%@DLLTOOL@%$DLLTOOL%g
4498 s%@LIBTOOL@%$LIBTOOL%g
4499 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
4500 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
4502 s%@EXEEXT@%$EXEEXT%g
4504 s%@ALLOCA@%$ALLOCA%g
4505 s%@USE_NLS@%$USE_NLS%g
4506 s%@MSGFMT@%$MSGFMT%g
4507 s%@GMSGFMT@%$GMSGFMT%g
4508 s%@XGETTEXT@%$XGETTEXT%g
4509 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4510 s%@CATALOGS@%$CATALOGS%g
4511 s%@CATOBJEXT@%$CATOBJEXT%g
4512 s%@DATADIRNAME@%$DATADIRNAME%g
4513 s%@GMOFILES@%$GMOFILES%g
4514 s%@INSTOBJEXT@%$INSTOBJEXT%g
4515 s%@INTLDEPS@%$INTLDEPS%g
4516 s%@INTLLIBS@%$INTLLIBS%g
4517 s%@INTLOBJS@%$INTLOBJS%g
4518 s%@POFILES@%$POFILES%g
4520 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4522 s%@GT_YES@%$GT_YES%g
4523 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4525 s%@HDEFINES@%$HDEFINES%g
4526 s%@CGEN_MAINT_TRUE@%$CGEN_MAINT_TRUE%g
4527 s%@CGEN_MAINT_FALSE@%$CGEN_MAINT_FALSE%g
4528 s%@cgendir@%$cgendir%g
4530 s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g
4531 s%@WIN32LIBADD@%$WIN32LIBADD%g
4532 s%@archdefs@%$archdefs%g
4533 s%@BFD_MACHINES@%$BFD_MACHINES%g
4538 cat >> $CONFIG_STATUS <<\EOF
4540 # Split the substitutions into bite-sized pieces for seds with
4541 # small command number limits, like on Digital OSF/1 and HP-UX.
4542 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
4543 ac_file
=1 # Number of current file.
4544 ac_beg
=1 # First line for current file.
4545 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
4548 while $ac_more_lines; do
4549 if test $ac_beg -gt 1; then
4550 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
4552 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
4554 if test ! -s conftest.s
$ac_file; then
4556 rm -f conftest.s
$ac_file
4558 if test -z "$ac_sed_cmds"; then
4559 ac_sed_cmds
="sed -f conftest.s$ac_file"
4561 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
4563 ac_file
=`expr $ac_file + 1`
4565 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
4568 if test -z "$ac_sed_cmds"; then
4573 cat >> $CONFIG_STATUS <<EOF
4575 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
4577 cat >> $CONFIG_STATUS <<\EOF
4578 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
4579 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4581 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4582 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4583 *) ac_file_in
="${ac_file}.in" ;;
4586 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4588 # Remove last slash and all that follows it. Not all systems have dirname.
4589 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4590 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
4591 # The file is in a subdirectory.
4592 test ! -d "$ac_dir" && mkdir
"$ac_dir"
4593 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
4594 # A "../" for each directory in $ac_dir_suffix.
4595 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4597 ac_dir_suffix
= ac_dots
=
4600 case "$ac_given_srcdir" in
4602 if test -z "$ac_dots"; then top_srcdir
=.
4603 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4604 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
4606 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4607 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
4610 case "$ac_given_INSTALL" in
4611 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
4612 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
4615 echo creating
"$ac_file"
4617 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4619 *Makefile
*) ac_comsub
="1i\\
4620 # $configure_input" ;;
4624 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4626 s%@configure_input@%$configure_input%g
4627 s%@srcdir@%$srcdir%g
4628 s%@top_srcdir@%$top_srcdir%g
4629 s%@INSTALL@%$INSTALL%g
4630 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
4634 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4635 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4637 # ac_d sets the value in "#define NAME VALUE" lines.
4638 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4639 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
4642 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4643 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4644 ac_uB
='\([ ]\)%\1#\2define\3'
4647 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4648 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4649 ac_eB
='$%\1#\2define\3'
4653 if test "${CONFIG_HEADERS+set}" != set; then
4655 cat >> $CONFIG_STATUS <<EOF
4656 CONFIG_HEADERS="config.h:config.in"
4658 cat >> $CONFIG_STATUS <<\EOF
4660 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
4661 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4663 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4664 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4665 *) ac_file_in
="${ac_file}.in" ;;
4668 echo creating
$ac_file
4670 rm -f conftest.frag conftest.
in conftest.out
4671 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4672 cat $ac_file_inputs > conftest.
in
4676 # Transform confdefs.h into a sed script conftest.vals that substitutes
4677 # the proper values into config.h.in to produce config.h. And first:
4678 # Protect against being on the right side of a sed subst in config.status.
4679 # Protect against being in an unquoted here document in config.status.
4681 cat > conftest.hdr
<<\EOF
4684 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4688 sed -n -f conftest.hdr confdefs.h > conftest.vals
4691 # This sed command replaces #undef with comments. This is necessary, for
4692 # example, in the case of _POSIX_SOURCE, which is predefined and required
4693 # on some systems where configure will not decide to define it.
4694 cat >> conftest.vals <<\EOF
4695 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4698 # Break up conftest.vals because some shells have a limit on
4699 # the size of here documents, and old seds have small limits too.
4704 ac_lines=`grep -c . conftest.vals
`
4705 # grep -c gives empty output for an empty file on some AIX systems.
4706 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4707 # Write a limited-size here document to conftest.frag.
4708 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4709 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4711 sed -f conftest.frag conftest.in > conftest.out
4713 mv conftest.out conftest.in
4715 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4717 mv conftest.tail conftest.vals
4721 cat >> $CONFIG_STATUS <<\EOF
4722 rm -f conftest.frag conftest.h
4723 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4724 cat conftest.in >> conftest.h
4726 if cmp -s $ac_file conftest.h 2>/dev/null; then
4727 echo "$ac_file is unchanged"
4730 # Remove last slash and all that follows it. Not all systems have dirname.
4731 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
4732 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4733 # The file is in a subdirectory.
4734 test ! -d "$ac_dir" && mkdir "$ac_dir"
4737 mv conftest.h $ac_file
4742 cat >> $CONFIG_STATUS <<EOF
4746 cat >> $CONFIG_STATUS <<\EOF
4747 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
4748 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
4751 chmod +x $CONFIG_STATUS
4752 rm -fr confdefs* $ac_clean_files
4753 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1