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=yes]"
17 --enable-static[=PKGS] build static libraries [default=yes]"
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
23 --disable-libtool-lock avoid locking (might break parallel builds)"
25 --enable-targets alternative target configurations"
27 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
29 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
31 --disable-nls do not use Native Language Support"
33 --with-included-gettext use the GNU gettext library included here"
35 --enable-maintainer-mode enable make rules and dependencies not useful
36 (and sometimes confusing) to the casual installer"
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
,
60 bindir
='${exec_prefix}/bin'
61 sbindir
='${exec_prefix}/sbin'
62 libexecdir
='${exec_prefix}/libexec'
63 datadir
='${prefix}/share'
64 sysconfdir
='${prefix}/etc'
65 sharedstatedir
='${prefix}/com'
66 localstatedir
='${prefix}/var'
67 libdir
='${exec_prefix}/lib'
68 includedir
='${prefix}/include'
69 oldincludedir
='/usr/include'
70 infodir
='${prefix}/info'
71 mandir
='${prefix}/man'
73 # Initialize some other variables.
76 SHELL
=${CONFIG_SHELL-/bin/sh}
77 # Maximum number of lines to put in a shell here document.
84 # If the previous option needs an argument, assign it.
85 if test -n "$ac_prev"; then
86 eval "$ac_prev=\$ac_option"
92 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
96 # Accept the important Cygnus configure options, so we can diagnose typos.
100 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
102 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
103 bindir
="$ac_optarg" ;;
105 -build |
--build |
--buil |
--bui |
--bu)
107 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
108 build
="$ac_optarg" ;;
110 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
111 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
112 ac_prev
=cache_file
;;
113 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
114 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
115 cache_file
="$ac_optarg" ;;
117 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
119 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
121 datadir
="$ac_optarg" ;;
123 -disable-* |
--disable-*)
124 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
125 # Reject names that are not valid shell variable names.
126 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
127 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
129 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
130 eval "enable_${ac_feature}=no" ;;
132 -enable-* |
--enable-*)
133 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
134 # Reject names that are not valid shell variable names.
135 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
136 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
138 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
143 eval "enable_${ac_feature}='$ac_optarg'" ;;
145 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
146 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
147 |
--exec |
--exe |
--ex)
148 ac_prev
=exec_prefix
;;
149 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
150 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
151 |
--exec=* |
--exe=* |
--ex=*)
152 exec_prefix
="$ac_optarg" ;;
154 -gas |
--gas |
--ga |
--g)
155 # Obsolete; use --with-gas.
158 -help |
--help |
--hel |
--he)
159 # Omit some internal or obsolete options to make the list less imposing.
160 # This message is too long to be a string in the A/UX 3.1 sh.
162 Usage: configure [options] [host]
163 Options: [defaults in brackets after descriptions]
165 --cache-file=FILE cache test results in FILE
166 --help print this message
167 --no-create do not create output files
168 --quiet, --silent do not print \`checking...' messages
169 --site-file=FILE use FILE as the site file
170 --version print the version of autoconf that created configure
171 Directory and file names:
172 --prefix=PREFIX install architecture-independent files in PREFIX
174 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
176 --bindir=DIR user executables in DIR [EPREFIX/bin]
177 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
178 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
179 --datadir=DIR read-only architecture-independent data in DIR
181 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
182 --sharedstatedir=DIR modifiable architecture-independent data in DIR
184 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
185 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
186 --includedir=DIR C header files in DIR [PREFIX/include]
187 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
188 --infodir=DIR info documentation in DIR [PREFIX/info]
189 --mandir=DIR man documentation in DIR [PREFIX/man]
190 --srcdir=DIR find the sources in DIR [configure dir or ..]
191 --program-prefix=PREFIX prepend PREFIX to installed program names
192 --program-suffix=SUFFIX append SUFFIX to installed program names
193 --program-transform-name=PROGRAM
194 run sed PROGRAM on installed program names
198 --build=BUILD configure for building on BUILD [BUILD=HOST]
199 --host=HOST configure for HOST [guessed]
200 --target=TARGET configure for TARGET [TARGET=HOST]
201 Features and packages:
202 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
203 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
204 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
205 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
206 --x-includes=DIR X include files are in DIR
207 --x-libraries=DIR X library files are in DIR
209 if test -n "$ac_help"; then
210 echo "--enable and --with options recognized:$ac_help"
214 -host |
--host |
--hos |
--ho)
216 -host=* |
--host=* |
--hos=* |
--ho=*)
219 -includedir |
--includedir |
--includedi |
--included |
--include \
220 |
--includ |
--inclu |
--incl |
--inc)
221 ac_prev
=includedir
;;
222 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
223 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
224 includedir
="$ac_optarg" ;;
226 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
228 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
229 infodir
="$ac_optarg" ;;
231 -libdir |
--libdir |
--libdi |
--libd)
233 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
234 libdir
="$ac_optarg" ;;
236 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
237 |
--libexe |
--libex |
--libe)
238 ac_prev
=libexecdir
;;
239 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
240 |
--libexe=* |
--libex=* |
--libe=*)
241 libexecdir
="$ac_optarg" ;;
243 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
244 |
--localstate |
--localstat |
--localsta |
--localst \
245 |
--locals |
--local |
--loca |
--loc |
--lo)
246 ac_prev
=localstatedir
;;
247 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
248 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
249 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
250 localstatedir
="$ac_optarg" ;;
252 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
254 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
255 mandir
="$ac_optarg" ;;
258 # Obsolete; use --without-fp.
261 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
265 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
266 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
269 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
270 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
271 |
--oldin |
--oldi |
--old |
--ol |
--o)
272 ac_prev
=oldincludedir
;;
273 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
274 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
275 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
276 oldincludedir
="$ac_optarg" ;;
278 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
280 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
281 prefix
="$ac_optarg" ;;
283 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
284 |
--program-pre |
--program-pr |
--program-p)
285 ac_prev
=program_prefix
;;
286 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
287 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
288 program_prefix
="$ac_optarg" ;;
290 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
291 |
--program-suf |
--program-su |
--program-s)
292 ac_prev
=program_suffix
;;
293 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
294 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
295 program_suffix
="$ac_optarg" ;;
297 -program-transform-name |
--program-transform-name \
298 |
--program-transform-nam |
--program-transform-na \
299 |
--program-transform-n |
--program-transform- \
300 |
--program-transform |
--program-transfor \
301 |
--program-transfo |
--program-transf \
302 |
--program-trans |
--program-tran \
303 |
--progr-tra |
--program-tr |
--program-t)
304 ac_prev
=program_transform_name
;;
305 -program-transform-name=* |
--program-transform-name=* \
306 |
--program-transform-nam=* |
--program-transform-na=* \
307 |
--program-transform-n=* |
--program-transform-=* \
308 |
--program-transform=* |
--program-transfor=* \
309 |
--program-transfo=* |
--program-transf=* \
310 |
--program-trans=* |
--program-tran=* \
311 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
312 program_transform_name
="$ac_optarg" ;;
314 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
315 |
-silent |
--silent |
--silen |
--sile |
--sil)
318 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
320 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
322 sbindir
="$ac_optarg" ;;
324 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
325 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
326 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
328 ac_prev
=sharedstatedir
;;
329 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
330 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
331 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
333 sharedstatedir
="$ac_optarg" ;;
335 -site |
--site |
--sit)
337 -site=* |
--site=* |
--sit=*)
340 -site-file |
--site-file |
--site-fil |
--site-fi |
--site-f)
342 -site-file=* |
--site-file=* |
--site-fil=* |
--site-fi=* |
--site-f=*)
343 sitefile
="$ac_optarg" ;;
345 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
347 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
348 srcdir
="$ac_optarg" ;;
350 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
351 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
352 ac_prev
=sysconfdir
;;
353 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
354 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
355 sysconfdir
="$ac_optarg" ;;
357 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
359 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
360 target
="$ac_optarg" ;;
362 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
365 -version |
--version |
--versio |
--versi |
--vers)
366 echo "configure generated by autoconf version 2.13"
370 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
371 # Reject names that are not valid shell variable names.
372 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
373 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
375 ac_package
=`echo $ac_package| sed 's/-/_/g'`
380 eval "with_${ac_package}='$ac_optarg'" ;;
382 -without-* |
--without-*)
383 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
384 # Reject names that are not valid shell variable names.
385 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
386 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
388 ac_package
=`echo $ac_package| sed 's/-/_/g'`
389 eval "with_${ac_package}=no" ;;
392 # Obsolete; use --with-x.
395 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
396 |
--x-incl |
--x-inc |
--x-in |
--x-i)
397 ac_prev
=x_includes
;;
398 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
399 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
400 x_includes
="$ac_optarg" ;;
402 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
403 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
404 ac_prev
=x_libraries
;;
405 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
406 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
407 x_libraries
="$ac_optarg" ;;
409 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
413 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
414 echo "configure: warning: $ac_option: invalid host type" 1>&2
416 if test "x$nonopt" != xNONE
; then
417 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
425 if test -n "$ac_prev"; then
426 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
429 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
431 # File descriptor usage:
434 # 2 errors and warnings
435 # 3 some systems may open it to /dev/tty
436 # 4 used on the Kubota Titan
437 # 6 checking for... messages and results
438 # 5 compiler messages saved in config.log
439 if test "$silent" = yes; then
447 This file contains any messages produced by compilers while
448 running configure, to aid debugging if configure makes a mistake.
451 # Strip out --no-create and --no-recursion so they do not pile up.
452 # Also quote any args containing shell metacharacters.
457 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
458 |
--no-cr |
--no-c) ;;
459 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
460 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
461 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
462 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
463 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
468 # Only set these to C if already set. These must not be set unconditionally
469 # because not all systems understand e.g. LANG=C (notably SCO).
470 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
471 # Non-C LC_CTYPE values break the ctype check.
472 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
473 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
474 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
475 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
477 # confdefs.h avoids OS command line length limits that DEFS can exceed.
478 rm -rf conftest
* confdefs.h
479 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
482 # A filename unique to this package, relative to the directory that
483 # configure is in, which we can look for to find out if srcdir is correct.
486 # Find the source files, if location was not specified.
487 if test -z "$srcdir"; then
488 ac_srcdir_defaulted
=yes
489 # Try the directory containing this script, then its parent.
491 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
492 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
494 if test ! -r $srcdir/$ac_unique_file; then
498 ac_srcdir_defaulted
=no
500 if test ! -r $srcdir/$ac_unique_file; then
501 if test "$ac_srcdir_defaulted" = yes; then
502 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
504 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
507 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
509 # Prefer explicitly selected file to automatically selected ones.
510 if test -z "$sitefile"; then
511 if test -z "$CONFIG_SITE"; then
512 if test "x$prefix" != xNONE
; then
513 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
515 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
519 CONFIG_SITE
="$sitefile"
521 for ac_site_file
in $CONFIG_SITE; do
522 if test -r "$ac_site_file"; then
523 echo "loading site script $ac_site_file"
528 if test -r "$cache_file"; then
529 echo "loading cache $cache_file"
532 echo "creating cache $cache_file"
537 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
538 ac_cpp
='$CPP $CPPFLAGS'
539 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
540 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
541 cross_compiling
=$ac_cv_prog_cc_cross
545 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
546 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
547 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
554 ac_n
= ac_c
='\c' ac_t
=
560 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
561 if test -f $ac_dir/install-sh
; then
563 ac_install_sh
="$ac_aux_dir/install-sh -c"
565 elif test -f $ac_dir/install.sh
; then
567 ac_install_sh
="$ac_aux_dir/install.sh -c"
571 if test -z "$ac_aux_dir"; then
572 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
574 ac_config_guess
=$ac_aux_dir/config.guess
575 ac_config_sub
=$ac_aux_dir/config.sub
576 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
579 # Do some error checking and defaulting for the host and target type.
581 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
584 # 1. You are not allowed to specify --host, --target, and nonopt at the
586 # 2. Host defaults to nonopt.
587 # 3. If nonopt is not specified, then host defaults to the current host,
588 # as determined by config.guess.
589 # 4. Target and build default to nonopt.
590 # 5. If nonopt is not specified, then target and build default to host.
592 # The aliases save the names the user supplied, while $host etc.
593 # will get canonicalized.
594 case $host---$target---$nonopt in
595 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
596 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
600 # Make sure we can run config.sub.
601 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
602 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
605 echo $ac_n "checking host system type""... $ac_c" 1>&6
606 echo "configure:607: checking host system type" >&5
609 case "$host_alias" in
613 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
614 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
616 *) host_alias
=$nonopt ;;
620 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
621 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
622 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
623 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
624 echo "$ac_t""$host" 1>&6
626 echo $ac_n "checking target system type""... $ac_c" 1>&6
627 echo "configure:628: checking target system type" >&5
630 case "$target_alias" in
633 NONE
) target_alias
=$host_alias ;;
634 *) target_alias
=$nonopt ;;
638 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
639 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
640 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
641 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
642 echo "$ac_t""$target" 1>&6
644 echo $ac_n "checking build system type""... $ac_c" 1>&6
645 echo "configure:646: checking build system type" >&5
648 case "$build_alias" in
651 NONE
) build_alias
=$host_alias ;;
652 *) build_alias
=$nonopt ;;
656 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
657 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
658 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
659 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
660 echo "$ac_t""$build" 1>&6
662 test "$host_alias" != "$target_alias" &&
663 test "$program_prefix$program_suffix$program_transform_name" = \
665 program_prefix
=${target_alias}-
668 # Find a good install program. We prefer a C program (faster),
669 # so one script is as good as another. But avoid the broken or
670 # incompatible versions:
671 # SysV /etc/install, /usr/sbin/install
672 # SunOS /usr/etc/install
675 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
676 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
677 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
678 # ./install, which can be erroneously created by make from ./install.sh.
679 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
680 echo "configure:681: checking for a BSD compatible install" >&5
681 if test -z "$INSTALL"; then
682 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
683 echo $ac_n "(cached) $ac_c" 1>&6
685 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
686 for ac_dir
in $PATH; do
687 # Account for people who put trailing slashes in PATH elements.
689 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
691 # OSF1 and SCO ODT 3.0 have their own names for install.
692 # Don't use installbsd from OSF since it installs stuff as root
694 for ac_prog
in ginstall scoinst
install; do
695 if test -f $ac_dir/$ac_prog; then
696 if test $ac_prog = install &&
697 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
698 # AIX install. It has an incompatible calling convention.
701 ac_cv_path_install
="$ac_dir/$ac_prog -c"
712 if test "${ac_cv_path_install+set}" = set; then
713 INSTALL
="$ac_cv_path_install"
715 # As a last resort, use the slow shell script. We don't cache a
716 # path for INSTALL within a source directory, because that will
717 # break other packages using the cache if that directory is
718 # removed, or if the path is relative.
719 INSTALL
="$ac_install_sh"
722 echo "$ac_t""$INSTALL" 1>&6
724 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
725 # It thinks the first close brace ends the variable substitution.
726 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
728 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
730 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
732 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
733 echo "configure:734: checking whether build environment is sane" >&5
736 echo timestamp
> conftestfile
737 # Do `set' in a subshell so we don't clobber the current shell's
738 # arguments. Must try -L first in case configure is actually a
739 # symlink; some systems play weird games with the mod time of symlinks
740 # (eg FreeBSD returns the mod time of the symlink's containing
743 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
744 if test "$*" = "X"; then
746 set X
`ls -t $srcdir/configure conftestfile`
748 if test "$*" != "X $srcdir/configure conftestfile" \
749 && test "$*" != "X conftestfile $srcdir/configure"; then
751 # If neither matched, then we have a broken ls. This can happen
752 # if, for instance, CONFIG_SHELL is bash and it inherits a
753 # broken ls alias from the environment. This has actually
754 # happened. Such a system could not be considered "sane".
755 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
756 alias in your environment" 1>&2; exit 1; }
759 test "$2" = conftestfile
765 { echo "configure: error: newly created file is older than distributed files!
766 Check your system clock" 1>&2; exit 1; }
769 echo "$ac_t""yes" 1>&6
770 if test "$program_transform_name" = s
,x
,x
,; then
771 program_transform_name
=
773 # Double any \ or $. echo might interpret backslashes.
774 cat <<\EOF_SED
> conftestsed
775 s
,\\,\\\\,g
; s
,\$
,$$
,g
777 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
780 test "$program_prefix" != NONE
&&
781 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
782 # Use a double $ so make ignores it.
783 test "$program_suffix" != NONE
&&
784 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
786 # sed with no file args requires a program.
787 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
789 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
790 echo "configure:791: checking whether ${MAKE-make} sets \${MAKE}" >&5
791 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
792 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
793 echo $ac_n "(cached) $ac_c" 1>&6
795 cat > conftestmake
<<\EOF
797 @
echo 'ac_maketemp="${MAKE}"'
799 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
800 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
801 if test -n "$ac_maketemp"; then
802 eval ac_cv_prog_make_
${ac_make}_set
=yes
804 eval ac_cv_prog_make_
${ac_make}_set
=no
808 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
809 echo "$ac_t""yes" 1>&6
812 echo "$ac_t""no" 1>&6
813 SET_MAKE
="MAKE=${MAKE-make}"
821 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
822 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
824 cat >> confdefs.h
<<EOF
825 #define PACKAGE "$PACKAGE"
828 cat >> confdefs.h
<<EOF
829 #define VERSION "$VERSION"
834 missing_dir
=`cd $ac_aux_dir && pwd`
835 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
836 echo "configure:837: checking for working aclocal" >&5
837 # Run test in a subshell; some versions of sh will print an error if
838 # an executable is not found, even if stderr is redirected.
839 # Redirect stdin to placate older versions of autoconf. Sigh.
840 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
842 echo "$ac_t""found" 1>&6
844 ACLOCAL
="$missing_dir/missing aclocal"
845 echo "$ac_t""missing" 1>&6
848 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
849 echo "configure:850: checking for working autoconf" >&5
850 # Run test in a subshell; some versions of sh will print an error if
851 # an executable is not found, even if stderr is redirected.
852 # Redirect stdin to placate older versions of autoconf. Sigh.
853 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
855 echo "$ac_t""found" 1>&6
857 AUTOCONF
="$missing_dir/missing autoconf"
858 echo "$ac_t""missing" 1>&6
861 echo $ac_n "checking for working automake""... $ac_c" 1>&6
862 echo "configure:863: checking for working automake" >&5
863 # Run test in a subshell; some versions of sh will print an error if
864 # an executable is not found, even if stderr is redirected.
865 # Redirect stdin to placate older versions of autoconf. Sigh.
866 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
868 echo "$ac_t""found" 1>&6
870 AUTOMAKE
="$missing_dir/missing automake"
871 echo "$ac_t""missing" 1>&6
874 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
875 echo "configure:876: checking for working autoheader" >&5
876 # Run test in a subshell; some versions of sh will print an error if
877 # an executable is not found, even if stderr is redirected.
878 # Redirect stdin to placate older versions of autoconf. Sigh.
879 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
880 AUTOHEADER
=autoheader
881 echo "$ac_t""found" 1>&6
883 AUTOHEADER
="$missing_dir/missing autoheader"
884 echo "$ac_t""missing" 1>&6
887 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
888 echo "configure:889: checking for working makeinfo" >&5
889 # Run test in a subshell; some versions of sh will print an error if
890 # an executable is not found, even if stderr is redirected.
891 # Redirect stdin to placate older versions of autoconf. Sigh.
892 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
894 echo "$ac_t""found" 1>&6
896 MAKEINFO
="$missing_dir/missing makeinfo"
897 echo "$ac_t""missing" 1>&6
902 # Check whether --enable-shared or --disable-shared was given.
903 if test "${enable_shared+set}" = set; then
904 enableval
="$enable_shared"
907 yes) enable_shared
=yes ;;
908 no
) enable_shared
=no
;;
911 # Look at the argument we got. We use all the common list separators.
912 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
913 for pkg
in $enableval; do
914 if test "X$pkg" = "X$p"; then
925 # Check whether --enable-static or --disable-static was given.
926 if test "${enable_static+set}" = set; then
927 enableval
="$enable_static"
930 yes) enable_static
=yes ;;
931 no
) enable_static
=no
;;
934 # Look at the argument we got. We use all the common list separators.
935 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
936 for pkg
in $enableval; do
937 if test "X$pkg" = "X$p"; then
948 # Check whether --enable-fast-install or --disable-fast-install was given.
949 if test "${enable_fast_install+set}" = set; then
950 enableval
="$enable_fast_install"
953 yes) enable_fast_install
=yes ;;
954 no
) enable_fast_install
=no
;;
956 enable_fast_install
=no
957 # Look at the argument we got. We use all the common list separators.
958 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
959 for pkg
in $enableval; do
960 if test "X$pkg" = "X$p"; then
961 enable_fast_install
=yes
968 enable_fast_install
=yes
971 # Extract the first word of "ranlib", so it can be a program name with args.
972 set dummy ranlib
; ac_word
=$2
973 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
974 echo "configure:975: checking for $ac_word" >&5
975 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
976 echo $ac_n "(cached) $ac_c" 1>&6
978 if test -n "$RANLIB"; then
979 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
981 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
983 for ac_dir
in $ac_dummy; do
984 test -z "$ac_dir" && ac_dir
=.
985 if test -f $ac_dir/$ac_word; then
986 ac_cv_prog_RANLIB
="ranlib"
991 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
994 RANLIB
="$ac_cv_prog_RANLIB"
995 if test -n "$RANLIB"; then
996 echo "$ac_t""$RANLIB" 1>&6
998 echo "$ac_t""no" 1>&6
1001 # Extract the first word of "gcc", so it can be a program name with args.
1002 set dummy gcc
; ac_word
=$2
1003 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1004 echo "configure:1005: checking for $ac_word" >&5
1005 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1006 echo $ac_n "(cached) $ac_c" 1>&6
1008 if test -n "$CC"; then
1009 ac_cv_prog_CC
="$CC" # Let the user override the test.
1011 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1013 for ac_dir
in $ac_dummy; do
1014 test -z "$ac_dir" && ac_dir
=.
1015 if test -f $ac_dir/$ac_word; then
1024 if test -n "$CC"; then
1025 echo "$ac_t""$CC" 1>&6
1027 echo "$ac_t""no" 1>&6
1030 if test -z "$CC"; then
1031 # Extract the first word of "cc", so it can be a program name with args.
1032 set dummy cc
; ac_word
=$2
1033 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1034 echo "configure:1035: checking for $ac_word" >&5
1035 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1036 echo $ac_n "(cached) $ac_c" 1>&6
1038 if test -n "$CC"; then
1039 ac_cv_prog_CC
="$CC" # Let the user override the test.
1041 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1044 for ac_dir
in $ac_dummy; do
1045 test -z "$ac_dir" && ac_dir
=.
1046 if test -f $ac_dir/$ac_word; then
1047 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1048 ac_prog_rejected
=yes
1056 if test $ac_prog_rejected = yes; then
1057 # We found a bogon in the path, so make sure we never use it.
1058 set dummy
$ac_cv_prog_CC
1060 if test $# -gt 0; then
1061 # We chose a different compiler from the bogus one.
1062 # However, it has the same basename, so the bogon will be chosen
1063 # first if we set CC to just the basename; use the full file name.
1065 set dummy
"$ac_dir/$ac_word" "$@"
1073 if test -n "$CC"; then
1074 echo "$ac_t""$CC" 1>&6
1076 echo "$ac_t""no" 1>&6
1079 if test -z "$CC"; then
1080 case "`uname -s`" in
1082 # Extract the first word of "cl", so it can be a program name with args.
1083 set dummy cl
; ac_word
=$2
1084 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1085 echo "configure:1086: checking for $ac_word" >&5
1086 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1087 echo $ac_n "(cached) $ac_c" 1>&6
1089 if test -n "$CC"; then
1090 ac_cv_prog_CC
="$CC" # Let the user override the test.
1092 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1094 for ac_dir
in $ac_dummy; do
1095 test -z "$ac_dir" && ac_dir
=.
1096 if test -f $ac_dir/$ac_word; then
1105 if test -n "$CC"; then
1106 echo "$ac_t""$CC" 1>&6
1108 echo "$ac_t""no" 1>&6
1113 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1116 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1117 echo "configure:1118: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1120 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1121 ac_cpp
='$CPP $CPPFLAGS'
1122 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1123 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1124 cross_compiling
=$ac_cv_prog_cc_cross
1126 cat > conftest.
$ac_ext << EOF
1128 #line 1129 "configure"
1129 #include "confdefs.h"
1133 if { (eval echo configure
:1134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1134 ac_cv_prog_cc_works
=yes
1135 # If we can't run a trivial program, we are probably using a cross compiler.
1136 if (.
/conftest
; exit) 2>/dev
/null
; then
1137 ac_cv_prog_cc_cross
=no
1139 ac_cv_prog_cc_cross
=yes
1142 echo "configure: failed program was:" >&5
1143 cat conftest.
$ac_ext >&5
1144 ac_cv_prog_cc_works
=no
1148 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1149 ac_cpp
='$CPP $CPPFLAGS'
1150 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1151 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1152 cross_compiling
=$ac_cv_prog_cc_cross
1154 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1155 if test $ac_cv_prog_cc_works = no
; then
1156 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1158 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1159 echo "configure:1160: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1160 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1161 cross_compiling
=$ac_cv_prog_cc_cross
1163 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1164 echo "configure:1165: checking whether we are using GNU C" >&5
1165 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1166 echo $ac_n "(cached) $ac_c" 1>&6
1168 cat > conftest.c
<<EOF
1173 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1180 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1182 if test $ac_cv_prog_gcc = yes; then
1188 ac_test_CFLAGS
="${CFLAGS+set}"
1189 ac_save_CFLAGS
="$CFLAGS"
1191 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1192 echo "configure:1193: checking whether ${CC-cc} accepts -g" >&5
1193 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1194 echo $ac_n "(cached) $ac_c" 1>&6
1196 echo 'void f(){}' > conftest.c
1197 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1206 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1207 if test "$ac_test_CFLAGS" = set; then
1208 CFLAGS
="$ac_save_CFLAGS"
1209 elif test $ac_cv_prog_cc_g = yes; then
1210 if test "$GCC" = yes; then
1216 if test "$GCC" = yes; then
1223 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1224 if test "${with_gnu_ld+set}" = set; then
1225 withval
="$with_gnu_ld"
1226 test "$withval" = no || with_gnu_ld
=yes
1232 if test "$ac_cv_prog_gcc" = yes; then
1233 # Check if gcc -print-prog-name=ld gives a path.
1234 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1235 echo "configure:1236: checking for ld used by GCC" >&5
1236 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1238 # Accept absolute paths.
1239 [\\/]* |
[A-Za-z
]:[\\/]*)
1240 re_direlt
='/[^/][^/]*/\.\./'
1241 # Canonicalize the path of ld
1242 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1243 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1244 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1246 test -z "$LD" && LD
="$ac_prog"
1249 # If it fails, then pretend we aren't using GCC.
1253 # If it is relative, then search for the first ld in PATH.
1257 elif test "$with_gnu_ld" = yes; then
1258 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1259 echo "configure:1260: checking for GNU ld" >&5
1261 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1262 echo "configure:1263: checking for non-GNU ld" >&5
1264 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1265 echo $ac_n "(cached) $ac_c" 1>&6
1267 if test -z "$LD"; then
1268 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1269 for ac_dir
in $PATH; do
1270 test -z "$ac_dir" && ac_dir
=.
1271 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1272 ac_cv_path_LD
="$ac_dir/$ac_prog"
1273 # Check to see if the program is GNU ld. I'd rather use --version,
1274 # but apparently some GNU ld's only accept -v.
1275 # Break only if it was the GNU/non-GNU ld that we prefer.
1276 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1277 test "$with_gnu_ld" != no
&& break
1279 test "$with_gnu_ld" != yes && break
1285 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1290 if test -n "$LD"; then
1291 echo "$ac_t""$LD" 1>&6
1293 echo "$ac_t""no" 1>&6
1295 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1296 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1297 echo "configure:1298: checking if the linker ($LD) is GNU ld" >&5
1298 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1299 echo $ac_n "(cached) $ac_c" 1>&6
1301 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1302 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1303 ac_cv_prog_gnu_ld
=yes
1305 ac_cv_prog_gnu_ld
=no
1309 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1312 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1313 echo "configure:1314: checking for BSD-compatible nm" >&5
1314 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1315 echo $ac_n "(cached) $ac_c" 1>&6
1317 if test -n "$NM"; then
1318 # Let the user override the test.
1321 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1322 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1323 test -z "$ac_dir" && ac_dir
=.
1324 if test -f $ac_dir/nm ||
test -f $ac_dir/nm
$ac_exeext ; then
1325 # Check to see if the nm accepts a BSD-compat flag.
1326 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1327 # nm: unknown option "B" ignored
1328 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1329 ac_cv_path_NM
="$ac_dir/nm -B"
1331 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1332 ac_cv_path_NM
="$ac_dir/nm -p"
1335 ac_cv_path_NM
=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1336 continue # so that we can try to find one that supports BSD flags
1341 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1346 echo "$ac_t""$NM" 1>&6
1348 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1349 echo "configure:1350: checking whether ln -s works" >&5
1350 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1351 echo $ac_n "(cached) $ac_c" 1>&6
1354 if ln -s X conftestdata
2>/dev
/null
1357 ac_cv_prog_LN_S
="ln -s"
1362 LN_S
="$ac_cv_prog_LN_S"
1363 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1364 echo "$ac_t""yes" 1>&6
1366 echo "$ac_t""no" 1>&6
1371 NONE
) lt_target
="$host" ;;
1372 *) lt_target
="$target" ;;
1375 # Check for any special flags to pass to ltconfig.
1376 libtool_flags
="--cache-file=$cache_file"
1377 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1378 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1379 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1380 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1381 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1384 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1385 if test "${enable_libtool_lock+set}" = set; then
1386 enableval
="$enable_libtool_lock"
1390 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
1391 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
1393 # Some flags need to be propagated to the compiler or linker for good
1395 case "$lt_target" in
1397 # Find out which ABI we are using.
1398 echo '#line 1399 "configure"' > conftest.
$ac_ext
1399 if { (eval echo configure
:1400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1400 case "`/usr/bin/file conftest.o`" in
1416 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1417 SAVE_CFLAGS
="$CFLAGS"
1418 CFLAGS
="$CFLAGS -belf"
1419 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1420 echo "configure:1421: checking whether the C compiler needs -belf" >&5
1421 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1422 echo $ac_n "(cached) $ac_c" 1>&6
1424 cat > conftest.
$ac_ext <<EOF
1425 #line 1426 "configure"
1426 #include "confdefs.h"
1432 if { (eval echo configure
:1433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1434 lt_cv_cc_needs_belf
=yes
1436 echo "configure: failed program was:" >&5
1437 cat conftest.
$ac_ext >&5
1439 lt_cv_cc_needs_belf
=no
1444 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1445 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
1446 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1447 CFLAGS
="$SAVE_CFLAGS"
1455 # Save cache, so that ltconfig can load it
1456 cat > confcache
<<\EOF
1457 # This file is a shell script that caches the results of configure
1458 # tests run on this system so they can be shared between configure
1459 # scripts and configure runs. It is not useful on other systems.
1460 # If it contains results you don't want to keep, you may remove or edit it.
1462 # By default, configure uses ./config.cache as the cache file,
1463 # creating it if it does not exist already. You can give configure
1464 # the --cache-file=FILE option to use a different cache file; that is
1465 # what configure does when it calls configure scripts in
1466 # subdirectories, so they share the cache.
1467 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1468 # config.status only pays attention to the cache file if you give it the
1469 # --recheck option to rerun configure.
1472 # The following way of writing the cache mishandles newlines in values,
1473 # but we know of no workaround that is simple, portable, and efficient.
1474 # So, don't put newlines in cache variables' values.
1475 # Ultrix sh set writes to stderr and can't be redirected directly,
1476 # and sets the high bit in the cache file unless we assign to the vars.
1478 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1480 # `set' does not quote correctly, so add quotes (double-quote substitution
1481 # turns \\\\ into \\, and sed turns \\ into \).
1483 -e "s/'/'\\\\''/g" \
1484 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1487 # `set' quotes correctly as required by POSIX, so do not add quotes.
1488 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1491 if cmp -s $cache_file confcache
; then
1494 if test -w $cache_file; then
1495 echo "updating cache $cache_file"
1496 cat confcache
> $cache_file
1498 echo "not updating unwritable cache $cache_file"
1504 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1505 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1506 LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
1507 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" \
1508 DLLTOOL
="$DLLTOOL" AS
="$AS" OBJDUMP
="$OBJDUMP" \
1509 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
1510 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$lt_target \
1511 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1513 # Reload cache, that may have been modified by ltconfig
1514 if test -r "$cache_file"; then
1515 echo "loading cache $cache_file"
1518 echo "creating cache $cache_file"
1523 # This can be used to rebuild libtool when needed
1524 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1526 # Always use our own libtool.
1527 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1529 # Redirect the config.log output again, so that the ltconfig log is not
1530 # clobbered by the next message.
1531 exec 5>>.
/config.log
1534 # Check whether --enable-targets or --disable-targets was given.
1535 if test "${enable_targets+set}" = set; then
1536 enableval
="$enable_targets"
1537 case "${enableval}" in
1538 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
1540 no
) enable_targets
= ;;
1541 *) enable_targets
=$enableval ;;
1544 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
1545 if test "${enable_commonbfdlib+set}" = set; then
1546 enableval
="$enable_commonbfdlib"
1547 case "${enableval}" in
1548 yes) commonbfdlib
=true
;;
1549 no
) commonbfdlib
=false
;;
1550 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
1554 build_warnings
="-W -Wall"
1555 # Check whether --enable-build-warnings or --disable-build-warnings was given.
1556 if test "${enable_build_warnings+set}" = set; then
1557 enableval
="$enable_build_warnings"
1558 case "${enableval}" in
1560 no
) build_warnings
="-w";;
1561 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
1562 build_warnings
="${build_warnings} ${t}";;
1563 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
1564 build_warnings
="${t} ${build_warnings}";;
1565 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
1567 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
1568 echo "Setting warning flags = $build_warnings" 6>&1
1572 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
; then
1573 WARN_CFLAGS
="${build_warnings}"
1581 if test -z "$target" ; then
1582 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
1584 if test -z "$host" ; then
1585 { echo "configure: error: Unrecognized host system type; please check config.sub." 1>&2; exit 1; }
1588 # Extract the first word of "gcc", so it can be a program name with args.
1589 set dummy gcc
; ac_word
=$2
1590 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1591 echo "configure:1592: checking for $ac_word" >&5
1592 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1593 echo $ac_n "(cached) $ac_c" 1>&6
1595 if test -n "$CC"; then
1596 ac_cv_prog_CC
="$CC" # Let the user override the test.
1598 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1600 for ac_dir
in $ac_dummy; do
1601 test -z "$ac_dir" && ac_dir
=.
1602 if test -f $ac_dir/$ac_word; then
1611 if test -n "$CC"; then
1612 echo "$ac_t""$CC" 1>&6
1614 echo "$ac_t""no" 1>&6
1617 if test -z "$CC"; then
1618 # Extract the first word of "cc", so it can be a program name with args.
1619 set dummy cc
; ac_word
=$2
1620 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1621 echo "configure:1622: checking for $ac_word" >&5
1622 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1623 echo $ac_n "(cached) $ac_c" 1>&6
1625 if test -n "$CC"; then
1626 ac_cv_prog_CC
="$CC" # Let the user override the test.
1628 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1631 for ac_dir
in $ac_dummy; do
1632 test -z "$ac_dir" && ac_dir
=.
1633 if test -f $ac_dir/$ac_word; then
1634 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1635 ac_prog_rejected
=yes
1643 if test $ac_prog_rejected = yes; then
1644 # We found a bogon in the path, so make sure we never use it.
1645 set dummy
$ac_cv_prog_CC
1647 if test $# -gt 0; then
1648 # We chose a different compiler from the bogus one.
1649 # However, it has the same basename, so the bogon will be chosen
1650 # first if we set CC to just the basename; use the full file name.
1652 set dummy
"$ac_dir/$ac_word" "$@"
1660 if test -n "$CC"; then
1661 echo "$ac_t""$CC" 1>&6
1663 echo "$ac_t""no" 1>&6
1666 if test -z "$CC"; then
1667 case "`uname -s`" in
1669 # Extract the first word of "cl", so it can be a program name with args.
1670 set dummy cl
; ac_word
=$2
1671 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1672 echo "configure:1673: checking for $ac_word" >&5
1673 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1674 echo $ac_n "(cached) $ac_c" 1>&6
1676 if test -n "$CC"; then
1677 ac_cv_prog_CC
="$CC" # Let the user override the test.
1679 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1681 for ac_dir
in $ac_dummy; do
1682 test -z "$ac_dir" && ac_dir
=.
1683 if test -f $ac_dir/$ac_word; then
1692 if test -n "$CC"; then
1693 echo "$ac_t""$CC" 1>&6
1695 echo "$ac_t""no" 1>&6
1700 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1703 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1704 echo "configure:1705: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1707 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1708 ac_cpp
='$CPP $CPPFLAGS'
1709 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1710 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1711 cross_compiling
=$ac_cv_prog_cc_cross
1713 cat > conftest.
$ac_ext << EOF
1715 #line 1716 "configure"
1716 #include "confdefs.h"
1720 if { (eval echo configure
:1721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1721 ac_cv_prog_cc_works
=yes
1722 # If we can't run a trivial program, we are probably using a cross compiler.
1723 if (.
/conftest
; exit) 2>/dev
/null
; then
1724 ac_cv_prog_cc_cross
=no
1726 ac_cv_prog_cc_cross
=yes
1729 echo "configure: failed program was:" >&5
1730 cat conftest.
$ac_ext >&5
1731 ac_cv_prog_cc_works
=no
1735 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1736 ac_cpp
='$CPP $CPPFLAGS'
1737 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1738 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1739 cross_compiling
=$ac_cv_prog_cc_cross
1741 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1742 if test $ac_cv_prog_cc_works = no
; then
1743 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1745 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1746 echo "configure:1747: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1747 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1748 cross_compiling
=$ac_cv_prog_cc_cross
1750 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1751 echo "configure:1752: checking whether we are using GNU C" >&5
1752 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1753 echo $ac_n "(cached) $ac_c" 1>&6
1755 cat > conftest.c
<<EOF
1760 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1767 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1769 if test $ac_cv_prog_gcc = yes; then
1775 ac_test_CFLAGS
="${CFLAGS+set}"
1776 ac_save_CFLAGS
="$CFLAGS"
1778 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1779 echo "configure:1780: checking whether ${CC-cc} accepts -g" >&5
1780 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1781 echo $ac_n "(cached) $ac_c" 1>&6
1783 echo 'void f(){}' > conftest.c
1784 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1793 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1794 if test "$ac_test_CFLAGS" = set; then
1795 CFLAGS
="$ac_save_CFLAGS"
1796 elif test $ac_cv_prog_cc_g = yes; then
1797 if test "$GCC" = yes; then
1803 if test "$GCC" = yes; then
1811 for ac_prog
in 'bison -y' byacc
1813 # Extract the first word of "$ac_prog", so it can be a program name with args.
1814 set dummy
$ac_prog; ac_word
=$2
1815 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1816 echo "configure:1817: checking for $ac_word" >&5
1817 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1818 echo $ac_n "(cached) $ac_c" 1>&6
1820 if test -n "$YACC"; then
1821 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1823 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1825 for ac_dir
in $ac_dummy; do
1826 test -z "$ac_dir" && ac_dir
=.
1827 if test -f $ac_dir/$ac_word; then
1828 ac_cv_prog_YACC
="$ac_prog"
1835 YACC
="$ac_cv_prog_YACC"
1836 if test -n "$YACC"; then
1837 echo "$ac_t""$YACC" 1>&6
1839 echo "$ac_t""no" 1>&6
1842 test -n "$YACC" && break
1844 test -n "$YACC" || YACC
="yacc"
1846 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1847 echo "configure:1848: checking how to run the C preprocessor" >&5
1848 # On Suns, sometimes $CPP names a directory.
1849 if test -n "$CPP" && test -d "$CPP"; then
1852 if test -z "$CPP"; then
1853 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1854 echo $ac_n "(cached) $ac_c" 1>&6
1856 # This must be in double quotes, not single quotes, because CPP may get
1857 # substituted into the Makefile and "${CC-cc}" will confuse make.
1859 # On the NeXT, cc -E runs the code through the compiler's parser,
1860 # not just through cpp.
1861 cat > conftest.
$ac_ext <<EOF
1862 #line 1863 "configure"
1863 #include "confdefs.h"
1867 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1868 { (eval echo configure
:1869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1869 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1870 if test -z "$ac_err"; then
1874 echo "configure: failed program was:" >&5
1875 cat conftest.
$ac_ext >&5
1877 CPP
="${CC-cc} -E -traditional-cpp"
1878 cat > conftest.
$ac_ext <<EOF
1879 #line 1880 "configure"
1880 #include "confdefs.h"
1884 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1885 { (eval echo configure
:1886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1886 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1887 if test -z "$ac_err"; then
1891 echo "configure: failed program was:" >&5
1892 cat conftest.
$ac_ext >&5
1894 CPP
="${CC-cc} -nologo -E"
1895 cat > conftest.
$ac_ext <<EOF
1896 #line 1897 "configure"
1897 #include "confdefs.h"
1901 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1902 { (eval echo configure
:1903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1903 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1904 if test -z "$ac_err"; then
1908 echo "configure: failed program was:" >&5
1909 cat conftest.
$ac_ext >&5
1918 ac_cv_prog_CPP
="$CPP"
1920 CPP
="$ac_cv_prog_CPP"
1922 ac_cv_prog_CPP
="$CPP"
1924 echo "$ac_t""$CPP" 1>&6
1926 missing_dir
=`cd $ac_aux_dir && pwd`
1927 for ac_prog
in flex
lex
1929 # Extract the first word of "$ac_prog", so it can be a program name with args.
1930 set dummy
$ac_prog; ac_word
=$2
1931 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1932 echo "configure:1933: checking for $ac_word" >&5
1933 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1934 echo $ac_n "(cached) $ac_c" 1>&6
1936 if test -n "$LEX"; then
1937 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1939 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1941 for ac_dir
in $ac_dummy; do
1942 test -z "$ac_dir" && ac_dir
=.
1943 if test -f $ac_dir/$ac_word; then
1944 ac_cv_prog_LEX
="$ac_prog"
1951 LEX
="$ac_cv_prog_LEX"
1952 if test -n "$LEX"; then
1953 echo "$ac_t""$LEX" 1>&6
1955 echo "$ac_t""no" 1>&6
1958 test -n "$LEX" && break
1960 test -n "$LEX" || LEX
=""$missing_dir/missing flex
""
1962 # Extract the first word of "flex", so it can be a program name with args.
1963 set dummy flex
; ac_word
=$2
1964 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1965 echo "configure:1966: checking for $ac_word" >&5
1966 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1967 echo $ac_n "(cached) $ac_c" 1>&6
1969 if test -n "$LEX"; then
1970 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1972 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1974 for ac_dir
in $ac_dummy; do
1975 test -z "$ac_dir" && ac_dir
=.
1976 if test -f $ac_dir/$ac_word; then
1977 ac_cv_prog_LEX
="flex"
1982 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
1985 LEX
="$ac_cv_prog_LEX"
1986 if test -n "$LEX"; then
1987 echo "$ac_t""$LEX" 1>&6
1989 echo "$ac_t""no" 1>&6
1992 if test -z "$LEXLIB"
1998 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1999 echo "configure:2000: checking for yywrap in -l$ac_lib" >&5
2000 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
2001 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2002 echo $ac_n "(cached) $ac_c" 1>&6
2004 ac_save_LIBS
="$LIBS"
2005 LIBS
="-l$ac_lib $LIBS"
2006 cat > conftest.
$ac_ext <<EOF
2007 #line 2008 "configure"
2008 #include "confdefs.h"
2009 /* Override any gcc2 internal prototype to avoid an error. */
2010 /* We use char because int might match the return type of a gcc2
2011 builtin and then its argument prototype would still apply. */
2018 if { (eval echo configure
:2019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2020 eval "ac_cv_lib_$ac_lib_var=yes"
2022 echo "configure: failed program was:" >&5
2023 cat conftest.
$ac_ext >&5
2025 eval "ac_cv_lib_$ac_lib_var=no"
2028 LIBS
="$ac_save_LIBS"
2031 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2032 echo "$ac_t""yes" 1>&6
2035 echo "$ac_t""no" 1>&6
2040 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
2041 echo "configure:2042: checking lex output file root" >&5
2042 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
2043 echo $ac_n "(cached) $ac_c" 1>&6
2045 # The minimal lex program is just a single line: %%. But some broken lexes
2046 # (Solaris, I think it was) want two %% lines, so accommodate them.
2049 if test -f lex.yy.c
; then
2050 ac_cv_prog_lex_root
=lex.yy
2051 elif test -f lexyy.c
; then
2052 ac_cv_prog_lex_root
=lexyy
2054 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
2058 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
2059 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
2061 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
2062 echo "configure:2063: checking whether yytext is a pointer" >&5
2063 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
2064 echo $ac_n "(cached) $ac_c" 1>&6
2066 # POSIX says lex can declare yytext either as a pointer or an array; the
2067 # default is implementation-dependent. Figure out which it is, since
2068 # not all implementations provide the %pointer and %array declarations.
2069 ac_cv_prog_lex_yytext_pointer
=no
2070 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2071 ac_save_LIBS
="$LIBS"
2072 LIBS
="$LIBS $LEXLIB"
2073 cat > conftest.
$ac_ext <<EOF
2074 #line 2075 "configure"
2075 #include "confdefs.h"
2076 `cat $LEX_OUTPUT_ROOT.c`
2081 if { (eval echo configure
:2082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2083 ac_cv_prog_lex_yytext_pointer
=yes
2085 echo "configure: failed program was:" >&5
2086 cat conftest.
$ac_ext >&5
2089 LIBS
="$ac_save_LIBS"
2090 rm -f "${LEX_OUTPUT_ROOT}.c"
2094 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
2095 if test $ac_cv_prog_lex_yytext_pointer = yes; then
2096 cat >> confdefs.h
<<\EOF
2097 #define YYTEXT_POINTER 1
2104 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2105 echo "configure:2106: checking for POSIXized ISC" >&5
2106 if test -d /etc
/conf
/kconfig.d
&&
2107 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
2109 echo "$ac_t""yes" 1>&6
2110 ISC
=yes # If later tests want to check for ISC.
2111 cat >> confdefs.h
<<\EOF
2112 #define _POSIX_SOURCE 1
2115 if test "$GCC" = yes; then
2121 echo "$ac_t""no" 1>&6
2125 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2126 echo "configure:2127: checking for ANSI C header files" >&5
2127 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2128 echo $ac_n "(cached) $ac_c" 1>&6
2130 cat > conftest.
$ac_ext <<EOF
2131 #line 2132 "configure"
2132 #include "confdefs.h"
2138 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2139 { (eval echo configure
:2140: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2140 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2141 if test -z "$ac_err"; then
2143 ac_cv_header_stdc
=yes
2146 echo "configure: failed program was:" >&5
2147 cat conftest.
$ac_ext >&5
2149 ac_cv_header_stdc
=no
2153 if test $ac_cv_header_stdc = yes; then
2154 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2155 cat > conftest.
$ac_ext <<EOF
2156 #line 2157 "configure"
2157 #include "confdefs.h"
2160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2161 egrep "memchr" >/dev
/null
2>&1; then
2165 ac_cv_header_stdc
=no
2171 if test $ac_cv_header_stdc = yes; then
2172 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2173 cat > conftest.
$ac_ext <<EOF
2174 #line 2175 "configure"
2175 #include "confdefs.h"
2178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2179 egrep "free" >/dev
/null
2>&1; then
2183 ac_cv_header_stdc
=no
2189 if test $ac_cv_header_stdc = yes; then
2190 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2191 if test "$cross_compiling" = yes; then
2194 cat > conftest.
$ac_ext <<EOF
2195 #line 2196 "configure"
2196 #include "confdefs.h"
2198 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2199 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2200 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2201 int main () { int i; for (i = 0; i < 256; i++)
2202 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2206 if { (eval echo configure
:2207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2210 echo "configure: failed program was:" >&5
2211 cat conftest.
$ac_ext >&5
2213 ac_cv_header_stdc
=no
2221 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2222 if test $ac_cv_header_stdc = yes; then
2223 cat >> confdefs.h
<<\EOF
2224 #define STDC_HEADERS 1
2229 echo $ac_n "checking for working const""... $ac_c" 1>&6
2230 echo "configure:2231: checking for working const" >&5
2231 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2232 echo $ac_n "(cached) $ac_c" 1>&6
2234 cat > conftest.
$ac_ext <<EOF
2235 #line 2236 "configure"
2236 #include "confdefs.h"
2240 /* Ultrix mips cc rejects this. */
2241 typedef int charset[2]; const charset x;
2242 /* SunOS 4.1.1 cc rejects this. */
2243 char const *const *ccp;
2245 /* NEC SVR4.0.2 mips cc rejects this. */
2246 struct point {int x, y;};
2247 static struct point const zero = {0,0};
2248 /* AIX XL C 1.02.0.0 rejects this.
2249 It does not let you subtract one const X* pointer from another in an arm
2250 of an if-expression whose if-part is not a constant expression */
2251 const char *g = "string";
2252 ccp = &g + (g ? g-g : 0);
2253 /* HPUX 7.0 cc rejects these. */
2256 ccp = (char const *const *) p;
2257 { /* SCO 3.2v4 cc rejects this. */
2259 char const *s = 0 ? (char *) 0 : (char const *) 0;
2263 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2265 const int *foo = &x[0];
2268 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2269 typedef const int *iptr;
2273 { /* AIX XL C 1.02.0.0 rejects this saying
2274 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2275 struct s { int j; const int *ap[3]; };
2276 struct s *b; b->j = 5;
2278 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2284 if { (eval echo configure
:2285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2288 echo "configure: failed program was:" >&5
2289 cat conftest.
$ac_ext >&5
2296 echo "$ac_t""$ac_cv_c_const" 1>&6
2297 if test $ac_cv_c_const = no
; then
2298 cat >> confdefs.h
<<\EOF
2304 echo $ac_n "checking for inline""... $ac_c" 1>&6
2305 echo "configure:2306: checking for inline" >&5
2306 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2307 echo $ac_n "(cached) $ac_c" 1>&6
2310 for ac_kw
in inline __inline__ __inline
; do
2311 cat > conftest.
$ac_ext <<EOF
2312 #line 2313 "configure"
2313 #include "confdefs.h"
2319 if { (eval echo configure
:2320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2321 ac_cv_c_inline
=$ac_kw; break
2323 echo "configure: failed program was:" >&5
2324 cat conftest.
$ac_ext >&5
2331 echo "$ac_t""$ac_cv_c_inline" 1>&6
2332 case "$ac_cv_c_inline" in
2334 no
) cat >> confdefs.h
<<\EOF
2338 *) cat >> confdefs.h
<<EOF
2339 #define inline $ac_cv_c_inline
2344 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2345 echo "configure:2346: checking for off_t" >&5
2346 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2347 echo $ac_n "(cached) $ac_c" 1>&6
2349 cat > conftest.
$ac_ext <<EOF
2350 #line 2351 "configure"
2351 #include "confdefs.h"
2352 #include <sys/types.h>
2358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2359 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2361 ac_cv_type_off_t
=yes
2369 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2370 if test $ac_cv_type_off_t = no
; then
2371 cat >> confdefs.h
<<\EOF
2377 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2378 echo "configure:2379: checking for size_t" >&5
2379 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2380 echo $ac_n "(cached) $ac_c" 1>&6
2382 cat > conftest.
$ac_ext <<EOF
2383 #line 2384 "configure"
2384 #include "confdefs.h"
2385 #include <sys/types.h>
2391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2392 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2394 ac_cv_type_size_t
=yes
2397 ac_cv_type_size_t
=no
2402 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2403 if test $ac_cv_type_size_t = no
; then
2404 cat >> confdefs.h
<<\EOF
2405 #define size_t unsigned
2410 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2411 # for constant arguments. Useless!
2412 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2413 echo "configure:2414: checking for working alloca.h" >&5
2414 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2415 echo $ac_n "(cached) $ac_c" 1>&6
2417 cat > conftest.
$ac_ext <<EOF
2418 #line 2419 "configure"
2419 #include "confdefs.h"
2422 char *p = alloca(2 * sizeof(int));
2425 if { (eval echo configure
:2426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2427 ac_cv_header_alloca_h
=yes
2429 echo "configure: failed program was:" >&5
2430 cat conftest.
$ac_ext >&5
2432 ac_cv_header_alloca_h
=no
2437 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2438 if test $ac_cv_header_alloca_h = yes; then
2439 cat >> confdefs.h
<<\EOF
2440 #define HAVE_ALLOCA_H 1
2445 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2446 echo "configure:2447: checking for alloca" >&5
2447 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2448 echo $ac_n "(cached) $ac_c" 1>&6
2450 cat > conftest.
$ac_ext <<EOF
2451 #line 2452 "configure"
2452 #include "confdefs.h"
2455 # define alloca __builtin_alloca
2458 # include <malloc.h>
2459 # define alloca _alloca
2462 # include <alloca.h>
2467 # ifndef alloca /* predefined by HP cc +Olibcalls */
2476 char *p = (char *) alloca(1);
2479 if { (eval echo configure
:2480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2481 ac_cv_func_alloca_works
=yes
2483 echo "configure: failed program was:" >&5
2484 cat conftest.
$ac_ext >&5
2486 ac_cv_func_alloca_works
=no
2491 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2492 if test $ac_cv_func_alloca_works = yes; then
2493 cat >> confdefs.h
<<\EOF
2494 #define HAVE_ALLOCA 1
2499 if test $ac_cv_func_alloca_works = no
; then
2500 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2501 # that cause trouble. Some versions do not even contain alloca or
2502 # contain a buggy version. If you still want to use their alloca,
2503 # use ar to extract alloca.o from them instead of compiling alloca.c.
2504 ALLOCA
=alloca.
${ac_objext}
2505 cat >> confdefs.h
<<\EOF
2510 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2511 echo "configure:2512: checking whether alloca needs Cray hooks" >&5
2512 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2513 echo $ac_n "(cached) $ac_c" 1>&6
2515 cat > conftest.
$ac_ext <<EOF
2516 #line 2517 "configure"
2517 #include "confdefs.h"
2518 #if defined(CRAY) && ! defined(CRAY2)
2525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2526 egrep "webecray" >/dev
/null
2>&1; then
2537 echo "$ac_t""$ac_cv_os_cray" 1>&6
2538 if test $ac_cv_os_cray = yes; then
2539 for ac_func
in _getb67 GETB67 getb67
; do
2540 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2541 echo "configure:2542: checking for $ac_func" >&5
2542 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2543 echo $ac_n "(cached) $ac_c" 1>&6
2545 cat > conftest.
$ac_ext <<EOF
2546 #line 2547 "configure"
2547 #include "confdefs.h"
2548 /* System header to define __stub macros and hopefully few prototypes,
2549 which can conflict with char $ac_func(); below. */
2551 /* Override any gcc2 internal prototype to avoid an error. */
2552 /* We use char because int might match the return type of a gcc2
2553 builtin and then its argument prototype would still apply. */
2558 /* The GNU C library defines this for functions which it implements
2559 to always fail with ENOSYS. Some functions are actually named
2560 something starting with __ and the normal name is an alias. */
2561 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2569 if { (eval echo configure
:2570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2571 eval "ac_cv_func_$ac_func=yes"
2573 echo "configure: failed program was:" >&5
2574 cat conftest.
$ac_ext >&5
2576 eval "ac_cv_func_$ac_func=no"
2581 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2582 echo "$ac_t""yes" 1>&6
2583 cat >> confdefs.h
<<EOF
2584 #define CRAY_STACKSEG_END $ac_func
2589 echo "$ac_t""no" 1>&6
2595 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2596 echo "configure:2597: checking stack direction for C alloca" >&5
2597 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2598 echo $ac_n "(cached) $ac_c" 1>&6
2600 if test "$cross_compiling" = yes; then
2601 ac_cv_c_stack_direction
=0
2603 cat > conftest.
$ac_ext <<EOF
2604 #line 2605 "configure"
2605 #include "confdefs.h"
2606 find_stack_direction ()
2608 static char *addr = 0;
2613 return find_stack_direction ();
2616 return (&dummy > addr) ? 1 : -1;
2620 exit (find_stack_direction() < 0);
2623 if { (eval echo configure
:2624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2625 ac_cv_c_stack_direction
=1
2627 echo "configure: failed program was:" >&5
2628 cat conftest.
$ac_ext >&5
2630 ac_cv_c_stack_direction
=-1
2637 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2638 cat >> confdefs.h
<<EOF
2639 #define STACK_DIRECTION $ac_cv_c_stack_direction
2644 for ac_hdr
in unistd.h
2646 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2647 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2648 echo "configure:2649: checking for $ac_hdr" >&5
2649 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2650 echo $ac_n "(cached) $ac_c" 1>&6
2652 cat > conftest.
$ac_ext <<EOF
2653 #line 2654 "configure"
2654 #include "confdefs.h"
2657 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2658 { (eval echo configure
:2659: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2659 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2660 if test -z "$ac_err"; then
2662 eval "ac_cv_header_$ac_safe=yes"
2665 echo "configure: failed program was:" >&5
2666 cat conftest.
$ac_ext >&5
2668 eval "ac_cv_header_$ac_safe=no"
2672 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2673 echo "$ac_t""yes" 1>&6
2674 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2675 cat >> confdefs.h
<<EOF
2676 #define $ac_tr_hdr 1
2680 echo "$ac_t""no" 1>&6
2684 for ac_func
in getpagesize
2686 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2687 echo "configure:2688: checking for $ac_func" >&5
2688 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2689 echo $ac_n "(cached) $ac_c" 1>&6
2691 cat > conftest.
$ac_ext <<EOF
2692 #line 2693 "configure"
2693 #include "confdefs.h"
2694 /* System header to define __stub macros and hopefully few prototypes,
2695 which can conflict with char $ac_func(); below. */
2697 /* Override any gcc2 internal prototype to avoid an error. */
2698 /* We use char because int might match the return type of a gcc2
2699 builtin and then its argument prototype would still apply. */
2704 /* The GNU C library defines this for functions which it implements
2705 to always fail with ENOSYS. Some functions are actually named
2706 something starting with __ and the normal name is an alias. */
2707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2715 if { (eval echo configure
:2716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2717 eval "ac_cv_func_$ac_func=yes"
2719 echo "configure: failed program was:" >&5
2720 cat conftest.
$ac_ext >&5
2722 eval "ac_cv_func_$ac_func=no"
2727 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2728 echo "$ac_t""yes" 1>&6
2729 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2730 cat >> confdefs.h
<<EOF
2731 #define $ac_tr_func 1
2735 echo "$ac_t""no" 1>&6
2739 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2740 echo "configure:2741: checking for working mmap" >&5
2741 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2742 echo $ac_n "(cached) $ac_c" 1>&6
2744 if test "$cross_compiling" = yes; then
2745 ac_cv_func_mmap_fixed_mapped
=no
2747 cat > conftest.
$ac_ext <<EOF
2748 #line 2749 "configure"
2749 #include "confdefs.h"
2751 /* Thanks to Mike Haertel and Jim Avera for this test.
2752 Here is a matrix of mmap possibilities:
2753 mmap private not fixed
2754 mmap private fixed at somewhere currently unmapped
2755 mmap private fixed at somewhere already mapped
2756 mmap shared not fixed
2757 mmap shared fixed at somewhere currently unmapped
2758 mmap shared fixed at somewhere already mapped
2759 For private mappings, we should verify that changes cannot be read()
2760 back from the file, nor mmap's back from the file at a different
2761 address. (There have been systems where private was not correctly
2762 implemented like the infamous i386 svr4.0, and systems where the
2763 VM page cache was not coherent with the filesystem buffer cache
2764 like early versions of FreeBSD and possibly contemporary NetBSD.)
2765 For shared mappings, we should conversely verify that changes get
2766 propogated back to all the places they're supposed to be.
2768 Grep wants private fixed already mapped.
2769 The main things grep needs to know about mmap are:
2770 * does it exist and is it safe to write into the mmap'd area
2771 * how to use it (BSD variants) */
2772 #include <sys/types.h>
2774 #include <sys/mman.h>
2776 /* This mess was copied from the GNU getpagesize.h. */
2777 #ifndef HAVE_GETPAGESIZE
2778 # ifdef HAVE_UNISTD_H
2779 # include <unistd.h>
2782 /* Assume that all systems that can run configure have sys/param.h. */
2783 # ifndef HAVE_SYS_PARAM_H
2784 # define HAVE_SYS_PARAM_H 1
2787 # ifdef _SC_PAGESIZE
2788 # define getpagesize() sysconf(_SC_PAGESIZE)
2789 # else /* no _SC_PAGESIZE */
2790 # ifdef HAVE_SYS_PARAM_H
2791 # include <sys/param.h>
2792 # ifdef EXEC_PAGESIZE
2793 # define getpagesize() EXEC_PAGESIZE
2794 # else /* no EXEC_PAGESIZE */
2796 # define getpagesize() NBPG * CLSIZE
2799 # endif /* no CLSIZE */
2800 # else /* no NBPG */
2802 # define getpagesize() NBPC
2803 # else /* no NBPC */
2805 # define getpagesize() PAGESIZE
2806 # endif /* PAGESIZE */
2807 # endif /* no NBPC */
2808 # endif /* no NBPG */
2809 # endif /* no EXEC_PAGESIZE */
2810 # else /* no HAVE_SYS_PARAM_H */
2811 # define getpagesize() 8192 /* punt totally */
2812 # endif /* no HAVE_SYS_PARAM_H */
2813 # endif /* no _SC_PAGESIZE */
2815 #endif /* no HAVE_GETPAGESIZE */
2818 extern "C" { void *malloc(unsigned); }
2826 char *data, *data2, *data3;
2830 pagesize = getpagesize();
2833 * First, make a file with some known garbage in it.
2835 data = malloc(pagesize);
2838 for (i = 0; i < pagesize; ++i)
2839 *(data + i) = rand();
2841 fd = creat("conftestmmap", 0600);
2844 if (write(fd, data, pagesize) != pagesize)
2849 * Next, try to mmap the file at a fixed address which
2850 * already has something else allocated at it. If we can,
2851 * also make sure that we see the same garbage.
2853 fd = open("conftestmmap", O_RDWR);
2856 data2 = malloc(2 * pagesize);
2859 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2860 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2861 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2863 for (i = 0; i < pagesize; ++i)
2864 if (*(data + i) != *(data2 + i))
2868 * Finally, make sure that changes to the mapped area
2869 * do not percolate back to the file as seen by read().
2870 * (This is a bug on some variants of i386 svr4.0.)
2872 for (i = 0; i < pagesize; ++i)
2873 *(data2 + i) = *(data2 + i) + 1;
2874 data3 = malloc(pagesize);
2877 if (read(fd, data3, pagesize) != pagesize)
2879 for (i = 0; i < pagesize; ++i)
2880 if (*(data + i) != *(data3 + i))
2883 unlink("conftestmmap");
2888 if { (eval echo configure
:2889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2890 ac_cv_func_mmap_fixed_mapped
=yes
2892 echo "configure: failed program was:" >&5
2893 cat conftest.
$ac_ext >&5
2895 ac_cv_func_mmap_fixed_mapped
=no
2902 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2903 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2904 cat >> confdefs.h
<<\EOF
2911 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2912 unistd.h values.h sys
/param.h
2914 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2915 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2916 echo "configure:2917: checking for $ac_hdr" >&5
2917 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2918 echo $ac_n "(cached) $ac_c" 1>&6
2920 cat > conftest.
$ac_ext <<EOF
2921 #line 2922 "configure"
2922 #include "confdefs.h"
2925 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2926 { (eval echo configure
:2927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2927 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2928 if test -z "$ac_err"; then
2930 eval "ac_cv_header_$ac_safe=yes"
2933 echo "configure: failed program was:" >&5
2934 cat conftest.
$ac_ext >&5
2936 eval "ac_cv_header_$ac_safe=no"
2940 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2941 echo "$ac_t""yes" 1>&6
2942 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2943 cat >> confdefs.h
<<EOF
2944 #define $ac_tr_hdr 1
2948 echo "$ac_t""no" 1>&6
2952 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2953 __argz_count __argz_stringify __argz_next
2955 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2956 echo "configure:2957: checking for $ac_func" >&5
2957 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2958 echo $ac_n "(cached) $ac_c" 1>&6
2960 cat > conftest.
$ac_ext <<EOF
2961 #line 2962 "configure"
2962 #include "confdefs.h"
2963 /* System header to define __stub macros and hopefully few prototypes,
2964 which can conflict with char $ac_func(); below. */
2966 /* Override any gcc2 internal prototype to avoid an error. */
2967 /* We use char because int might match the return type of a gcc2
2968 builtin and then its argument prototype would still apply. */
2973 /* The GNU C library defines this for functions which it implements
2974 to always fail with ENOSYS. Some functions are actually named
2975 something starting with __ and the normal name is an alias. */
2976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2984 if { (eval echo configure
:2985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2986 eval "ac_cv_func_$ac_func=yes"
2988 echo "configure: failed program was:" >&5
2989 cat conftest.
$ac_ext >&5
2991 eval "ac_cv_func_$ac_func=no"
2996 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2997 echo "$ac_t""yes" 1>&6
2998 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2999 cat >> confdefs.h
<<EOF
3000 #define $ac_tr_func 1
3004 echo "$ac_t""no" 1>&6
3009 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3010 for ac_func
in stpcpy
3012 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3013 echo "configure:3014: checking for $ac_func" >&5
3014 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3015 echo $ac_n "(cached) $ac_c" 1>&6
3017 cat > conftest.
$ac_ext <<EOF
3018 #line 3019 "configure"
3019 #include "confdefs.h"
3020 /* System header to define __stub macros and hopefully few prototypes,
3021 which can conflict with char $ac_func(); below. */
3023 /* Override any gcc2 internal prototype to avoid an error. */
3024 /* We use char because int might match the return type of a gcc2
3025 builtin and then its argument prototype would still apply. */
3030 /* The GNU C library defines this for functions which it implements
3031 to always fail with ENOSYS. Some functions are actually named
3032 something starting with __ and the normal name is an alias. */
3033 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3041 if { (eval echo configure
:3042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3043 eval "ac_cv_func_$ac_func=yes"
3045 echo "configure: failed program was:" >&5
3046 cat conftest.
$ac_ext >&5
3048 eval "ac_cv_func_$ac_func=no"
3053 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3054 echo "$ac_t""yes" 1>&6
3055 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3056 cat >> confdefs.h
<<EOF
3057 #define $ac_tr_func 1
3061 echo "$ac_t""no" 1>&6
3066 if test "${ac_cv_func_stpcpy}" = "yes"; then
3067 cat >> confdefs.h
<<\EOF
3068 #define HAVE_STPCPY 1
3073 if test $ac_cv_header_locale_h = yes; then
3074 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3075 echo "configure:3076: checking for LC_MESSAGES" >&5
3076 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3077 echo $ac_n "(cached) $ac_c" 1>&6
3079 cat > conftest.
$ac_ext <<EOF
3080 #line 3081 "configure"
3081 #include "confdefs.h"
3087 if { (eval echo configure
:3088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3089 am_cv_val_LC_MESSAGES
=yes
3091 echo "configure: failed program was:" >&5
3092 cat conftest.
$ac_ext >&5
3094 am_cv_val_LC_MESSAGES
=no
3099 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3100 if test $am_cv_val_LC_MESSAGES = yes; then
3101 cat >> confdefs.h
<<\EOF
3102 #define HAVE_LC_MESSAGES 1
3107 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3108 echo "configure:3109: checking whether NLS is requested" >&5
3109 # Check whether --enable-nls or --disable-nls was given.
3110 if test "${enable_nls+set}" = set; then
3111 enableval
="$enable_nls"
3117 echo "$ac_t""$USE_NLS" 1>&6
3120 USE_INCLUDED_LIBINTL
=no
3122 if test "$USE_NLS" = "yes"; then
3123 cat >> confdefs.h
<<\EOF
3124 #define ENABLE_NLS 1
3127 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3128 echo "configure:3129: checking whether included gettext is requested" >&5
3129 # Check whether --with-included-gettext or --without-included-gettext was given.
3130 if test "${with_included_gettext+set}" = set; then
3131 withval
="$with_included_gettext"
3132 nls_cv_force_use_gnu_gettext
=$withval
3134 nls_cv_force_use_gnu_gettext
=no
3137 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3139 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
3140 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3142 nls_cv_header_libgt
=
3145 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3146 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3147 echo "configure:3148: checking for libintl.h" >&5
3148 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3149 echo $ac_n "(cached) $ac_c" 1>&6
3151 cat > conftest.
$ac_ext <<EOF
3152 #line 3153 "configure"
3153 #include "confdefs.h"
3154 #include <libintl.h>
3156 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3157 { (eval echo configure
:3158: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3158 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3159 if test -z "$ac_err"; then
3161 eval "ac_cv_header_$ac_safe=yes"
3164 echo "configure: failed program was:" >&5
3165 cat conftest.
$ac_ext >&5
3167 eval "ac_cv_header_$ac_safe=no"
3171 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3172 echo "$ac_t""yes" 1>&6
3173 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3174 echo "configure:3175: checking for gettext in libc" >&5
3175 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3176 echo $ac_n "(cached) $ac_c" 1>&6
3178 cat > conftest.
$ac_ext <<EOF
3179 #line 3180 "configure"
3180 #include "confdefs.h"
3181 #include <libintl.h>
3183 return (int) gettext ("")
3186 if { (eval echo configure
:3187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3188 gt_cv_func_gettext_libc
=yes
3190 echo "configure: failed program was:" >&5
3191 cat conftest.
$ac_ext >&5
3193 gt_cv_func_gettext_libc
=no
3198 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3200 if test "$gt_cv_func_gettext_libc" != "yes"; then
3201 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3202 echo "configure:3203: checking for bindtextdomain in -lintl" >&5
3203 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3204 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3205 echo $ac_n "(cached) $ac_c" 1>&6
3207 ac_save_LIBS
="$LIBS"
3209 cat > conftest.
$ac_ext <<EOF
3210 #line 3211 "configure"
3211 #include "confdefs.h"
3212 /* Override any gcc2 internal prototype to avoid an error. */
3213 /* We use char because int might match the return type of a gcc2
3214 builtin and then its argument prototype would still apply. */
3215 char bindtextdomain();
3221 if { (eval echo configure
:3222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3223 eval "ac_cv_lib_$ac_lib_var=yes"
3225 echo "configure: failed program was:" >&5
3226 cat conftest.
$ac_ext >&5
3228 eval "ac_cv_lib_$ac_lib_var=no"
3231 LIBS
="$ac_save_LIBS"
3234 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3235 echo "$ac_t""yes" 1>&6
3236 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3237 echo "configure:3238: checking for gettext in libintl" >&5
3238 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3239 echo $ac_n "(cached) $ac_c" 1>&6
3241 cat > conftest.
$ac_ext <<EOF
3242 #line 3243 "configure"
3243 #include "confdefs.h"
3246 return (int) gettext ("")
3249 if { (eval echo configure
:3250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3251 gt_cv_func_gettext_libintl
=yes
3253 echo "configure: failed program was:" >&5
3254 cat conftest.
$ac_ext >&5
3256 gt_cv_func_gettext_libintl
=no
3261 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3263 echo "$ac_t""no" 1>&6
3268 if test "$gt_cv_func_gettext_libc" = "yes" \
3269 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
3270 cat >> confdefs.h
<<\EOF
3271 #define HAVE_GETTEXT 1
3274 # Extract the first word of "msgfmt", so it can be a program name with args.
3275 set dummy msgfmt
; ac_word
=$2
3276 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3277 echo "configure:3278: checking for $ac_word" >&5
3278 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3279 echo $ac_n "(cached) $ac_c" 1>&6
3283 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3286 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3287 for ac_dir
in $PATH; do
3288 test -z "$ac_dir" && ac_dir
=.
3289 if test -f $ac_dir/$ac_word; then
3290 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3291 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3297 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
3301 MSGFMT
="$ac_cv_path_MSGFMT"
3302 if test -n "$MSGFMT"; then
3303 echo "$ac_t""$MSGFMT" 1>&6
3305 echo "$ac_t""no" 1>&6
3307 if test "$MSGFMT" != "no"; then
3308 for ac_func
in dcgettext
3310 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3311 echo "configure:3312: checking for $ac_func" >&5
3312 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3313 echo $ac_n "(cached) $ac_c" 1>&6
3315 cat > conftest.
$ac_ext <<EOF
3316 #line 3317 "configure"
3317 #include "confdefs.h"
3318 /* System header to define __stub macros and hopefully few prototypes,
3319 which can conflict with char $ac_func(); below. */
3321 /* Override any gcc2 internal prototype to avoid an error. */
3322 /* We use char because int might match the return type of a gcc2
3323 builtin and then its argument prototype would still apply. */
3328 /* The GNU C library defines this for functions which it implements
3329 to always fail with ENOSYS. Some functions are actually named
3330 something starting with __ and the normal name is an alias. */
3331 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3339 if { (eval echo configure
:3340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3341 eval "ac_cv_func_$ac_func=yes"
3343 echo "configure: failed program was:" >&5
3344 cat conftest.
$ac_ext >&5
3346 eval "ac_cv_func_$ac_func=no"
3351 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3352 echo "$ac_t""yes" 1>&6
3353 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3354 cat >> confdefs.h
<<EOF
3355 #define $ac_tr_func 1
3359 echo "$ac_t""no" 1>&6
3363 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3364 set dummy gmsgfmt
; ac_word
=$2
3365 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3366 echo "configure:3367: checking for $ac_word" >&5
3367 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3368 echo $ac_n "(cached) $ac_c" 1>&6
3372 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3375 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3378 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3380 for ac_dir
in $ac_dummy; do
3381 test -z "$ac_dir" && ac_dir
=.
3382 if test -f $ac_dir/$ac_word; then
3383 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3388 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3392 GMSGFMT
="$ac_cv_path_GMSGFMT"
3393 if test -n "$GMSGFMT"; then
3394 echo "$ac_t""$GMSGFMT" 1>&6
3396 echo "$ac_t""no" 1>&6
3399 # Extract the first word of "xgettext", so it can be a program name with args.
3400 set dummy xgettext
; ac_word
=$2
3401 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3402 echo "configure:3403: checking for $ac_word" >&5
3403 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3404 echo $ac_n "(cached) $ac_c" 1>&6
3408 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3411 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3412 for ac_dir
in $PATH; do
3413 test -z "$ac_dir" && ac_dir
=.
3414 if test -f $ac_dir/$ac_word; then
3415 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3416 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
3422 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
3426 XGETTEXT
="$ac_cv_path_XGETTEXT"
3427 if test -n "$XGETTEXT"; then
3428 echo "$ac_t""$XGETTEXT" 1>&6
3430 echo "$ac_t""no" 1>&6
3433 cat > conftest.
$ac_ext <<EOF
3434 #line 3435 "configure"
3435 #include "confdefs.h"
3438 extern int _nl_msg_cat_cntr;
3439 return _nl_msg_cat_cntr
3442 if { (eval echo configure
:3443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3447 echo "configure: failed program was:" >&5
3448 cat conftest.
$ac_ext >&5
3459 echo "$ac_t""no" 1>&6
3464 if test "$CATOBJEXT" = "NONE"; then
3465 nls_cv_use_gnu_gettext
=yes
3469 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3470 INTLOBJS
="\$(GETTOBJS)"
3471 # Extract the first word of "msgfmt", so it can be a program name with args.
3472 set dummy msgfmt
; ac_word
=$2
3473 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3474 echo "configure:3475: checking for $ac_word" >&5
3475 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3476 echo $ac_n "(cached) $ac_c" 1>&6
3480 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3483 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3484 for ac_dir
in $PATH; do
3485 test -z "$ac_dir" && ac_dir
=.
3486 if test -f $ac_dir/$ac_word; then
3487 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3488 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3494 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
3498 MSGFMT
="$ac_cv_path_MSGFMT"
3499 if test -n "$MSGFMT"; then
3500 echo "$ac_t""$MSGFMT" 1>&6
3502 echo "$ac_t""no" 1>&6
3505 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3506 set dummy gmsgfmt
; ac_word
=$2
3507 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3508 echo "configure:3509: checking for $ac_word" >&5
3509 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3510 echo $ac_n "(cached) $ac_c" 1>&6
3514 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3517 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3520 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3522 for ac_dir
in $ac_dummy; do
3523 test -z "$ac_dir" && ac_dir
=.
3524 if test -f $ac_dir/$ac_word; then
3525 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3530 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3534 GMSGFMT
="$ac_cv_path_GMSGFMT"
3535 if test -n "$GMSGFMT"; then
3536 echo "$ac_t""$GMSGFMT" 1>&6
3538 echo "$ac_t""no" 1>&6
3541 # Extract the first word of "xgettext", so it can be a program name with args.
3542 set dummy xgettext
; ac_word
=$2
3543 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3544 echo "configure:3545: checking for $ac_word" >&5
3545 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3546 echo $ac_n "(cached) $ac_c" 1>&6
3550 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3553 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3554 for ac_dir
in $PATH; do
3555 test -z "$ac_dir" && ac_dir
=.
3556 if test -f $ac_dir/$ac_word; then
3557 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3558 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
3564 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
3568 XGETTEXT
="$ac_cv_path_XGETTEXT"
3569 if test -n "$XGETTEXT"; then
3570 echo "$ac_t""$XGETTEXT" 1>&6
3572 echo "$ac_t""no" 1>&6
3576 USE_INCLUDED_LIBINTL
=yes
3580 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
3582 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
3583 nls_cv_header_intl
=libintl.h
3584 nls_cv_header_libgt
=libgettext.h
3587 if test "$XGETTEXT" != ":"; then
3588 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
3591 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
3596 # We need to process the po/ directory.
3600 nls_cv_header_intl
=libintl.h
3601 nls_cv_header_libgt
=libgettext.h
3604 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3605 # because some of the sources are only built for this goal.
3606 if test "$PACKAGE" = gettext; then
3608 USE_INCLUDED_LIBINTL
=yes
3611 for lang
in $ALL_LINGUAS; do
3612 GMOFILES
="$GMOFILES $lang.gmo"
3613 POFILES
="$POFILES $lang.po"
3629 if test "x$CATOBJEXT" != "x"; then
3630 if test "x$ALL_LINGUAS" = "x"; then
3633 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3634 echo "configure:3635: checking for catalogs to be installed" >&5
3636 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
3637 case "$ALL_LINGUAS" in
3638 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
3641 LINGUAS
=$NEW_LINGUAS
3642 echo "$ac_t""$LINGUAS" 1>&6
3645 if test -n "$LINGUAS"; then
3646 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
3650 if test $ac_cv_header_locale_h = yes; then
3651 INCLUDE_LOCALE_H
="#include <locale.h>"
3654 /* The system does not provide the header <locale.h>. Take care yourself. */"
3658 if test -f $srcdir/po2tbl.
sed.
in; then
3659 if test "$CATOBJEXT" = ".cat"; then
3660 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3661 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
3662 echo "configure:3663: checking for linux/version.h" >&5
3663 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3664 echo $ac_n "(cached) $ac_c" 1>&6
3666 cat > conftest.
$ac_ext <<EOF
3667 #line 3668 "configure"
3668 #include "confdefs.h"
3669 #include <linux/version.h>
3671 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3672 { (eval echo configure
:3673: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3673 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3674 if test -z "$ac_err"; then
3676 eval "ac_cv_header_$ac_safe=yes"
3679 echo "configure: failed program was:" >&5
3680 cat conftest.
$ac_ext >&5
3682 eval "ac_cv_header_$ac_safe=no"
3686 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3687 echo "$ac_t""yes" 1>&6
3690 echo "$ac_t""no" 1>&6
3695 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
3697 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3698 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
3701 if test "$PACKAGE" = "gettext"; then
3711 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
3717 if test -d $srcdir/po
; then
3718 test -d po || mkdir po
3719 if test "x$srcdir" != "x."; then
3720 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3721 posrcprefix
="$srcdir/"
3723 posrcprefix
="../$srcdir/"
3729 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3730 < $srcdir/po
/POTFILES.
in > po
/POTFILES
3734 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
3735 echo "configure:3736: checking whether to enable maintainer-specific portions of Makefiles" >&5
3736 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3737 if test "${enable_maintainer_mode+set}" = set; then
3738 enableval
="$enable_maintainer_mode"
3739 USE_MAINTAINER_MODE
=$enableval
3741 USE_MAINTAINER_MODE
=no
3744 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
3747 if test $USE_MAINTAINER_MODE = yes; then
3748 MAINTAINER_MODE_TRUE
=
3749 MAINTAINER_MODE_FALSE
='#'
3751 MAINTAINER_MODE_TRUE
='#'
3752 MAINTAINER_MODE_FALSE
=
3754 MAINT
=$MAINTAINER_MODE_TRUE
3757 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3758 echo "configure:3759: checking for Cygwin environment" >&5
3759 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
3760 echo $ac_n "(cached) $ac_c" 1>&6
3762 cat > conftest.
$ac_ext <<EOF
3763 #line 3764 "configure"
3764 #include "confdefs.h"
3769 #define __CYGWIN__ __CYGWIN32__
3774 if { (eval echo configure
:3775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3778 echo "configure: failed program was:" >&5
3779 cat conftest.
$ac_ext >&5
3787 echo "$ac_t""$ac_cv_cygwin" 1>&6
3789 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
3790 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3791 echo "configure:3792: checking for mingw32 environment" >&5
3792 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
3793 echo $ac_n "(cached) $ac_c" 1>&6
3795 cat > conftest.
$ac_ext <<EOF
3796 #line 3797 "configure"
3797 #include "confdefs.h"
3803 if { (eval echo configure
:3804: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3807 echo "configure: failed program was:" >&5
3808 cat conftest.
$ac_ext >&5
3816 echo "$ac_t""$ac_cv_mingw32" 1>&6
3818 test "$ac_cv_mingw32" = yes && MINGW32
=yes
3821 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3822 echo "configure:3823: checking for executable suffix" >&5
3823 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
3824 echo $ac_n "(cached) $ac_c" 1>&6
3826 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
3830 echo 'int main () { return 0; }' > conftest.
$ac_ext
3832 if { (eval echo configure
:3833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3833 for file in conftest.
*; do
3835 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
3836 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
3840 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3843 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
3848 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
3849 echo "$ac_t""${ac_cv_exeext}" 1>&6
3852 if test -n "$EXEEXT"; then
3853 cat >> confdefs.h
<<\EOF
3854 #define HAVE_EXECUTABLE_SUFFIX 1
3858 cat >> confdefs.h
<<EOF
3859 #define EXECUTABLE_SUFFIX "${EXEEXT}"
3863 # host-specific stuff:
3867 .
${srcdir}/..
/bfd
/configure.
host
3872 # Extract the first word of "ranlib", so it can be a program name with args.
3873 set dummy ranlib
; ac_word
=$2
3874 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3875 echo "configure:3876: checking for $ac_word" >&5
3876 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3877 echo $ac_n "(cached) $ac_c" 1>&6
3879 if test -n "$RANLIB"; then
3880 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3882 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3884 for ac_dir
in $ac_dummy; do
3885 test -z "$ac_dir" && ac_dir
=.
3886 if test -f $ac_dir/$ac_word; then
3887 ac_cv_prog_RANLIB
="ranlib"
3892 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
3895 RANLIB
="$ac_cv_prog_RANLIB"
3896 if test -n "$RANLIB"; then
3897 echo "$ac_t""$RANLIB" 1>&6
3899 echo "$ac_t""no" 1>&6
3902 # Find a good install program. We prefer a C program (faster),
3903 # so one script is as good as another. But avoid the broken or
3904 # incompatible versions:
3905 # SysV /etc/install, /usr/sbin/install
3906 # SunOS /usr/etc/install
3907 # IRIX /sbin/install
3909 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3910 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3911 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3912 # ./install, which can be erroneously created by make from ./install.sh.
3913 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3914 echo "configure:3915: checking for a BSD compatible install" >&5
3915 if test -z "$INSTALL"; then
3916 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3917 echo $ac_n "(cached) $ac_c" 1>&6
3919 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
3920 for ac_dir
in $PATH; do
3921 # Account for people who put trailing slashes in PATH elements.
3923 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
3925 # OSF1 and SCO ODT 3.0 have their own names for install.
3926 # Don't use installbsd from OSF since it installs stuff as root
3928 for ac_prog
in ginstall scoinst
install; do
3929 if test -f $ac_dir/$ac_prog; then
3930 if test $ac_prog = install &&
3931 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
3932 # AIX install. It has an incompatible calling convention.
3935 ac_cv_path_install
="$ac_dir/$ac_prog -c"
3946 if test "${ac_cv_path_install+set}" = set; then
3947 INSTALL
="$ac_cv_path_install"
3949 # As a last resort, use the slow shell script. We don't cache a
3950 # path for INSTALL within a source directory, because that will
3951 # break other packages using the cache if that directory is
3952 # removed, or if the path is relative.
3953 INSTALL
="$ac_install_sh"
3956 echo "$ac_t""$INSTALL" 1>&6
3958 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3959 # It thinks the first close brace ends the variable substitution.
3960 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3962 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
3964 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3967 # Put a plausible default for CC_FOR_BUILD in Makefile.
3968 if test -z "$CC_FOR_BUILD"; then
3969 if test "x$cross_compiling" = "xno"; then
3970 CC_FOR_BUILD
='$(CC)'
3976 # Also set EXEEXT_FOR_BUILD.
3977 if test "x$cross_compiling" = "xno"; then
3978 EXEEXT_FOR_BUILD
='$(EXEEXT)'
3980 echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
3981 echo "configure:3982: checking for build system executable suffix" >&5
3982 if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
3983 echo $ac_n "(cached) $ac_c" 1>&6
3986 echo 'int main () { return 0; }' > conftest.c
3987 bfd_cv_build_exeext
=
3988 ${CC_FOR_BUILD} -o conftest conftest.c
1>&5 2>&5
3989 for file in conftest.
*; do
3991 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
3992 *) bfd_cv_build_exeext
=`echo $file | sed -e s/conftest//` ;;
3996 test x
"${bfd_cv_build_exeext}" = x
&& bfd_cv_build_exeext
=no
3999 echo "$ac_t""$bfd_cv_build_exeext" 1>&6
4001 test x
"${bfd_cv_build_exeext}" != xno
&& EXEEXT_FOR_BUILD
=${bfd_cv_build_exeext}
4005 DEMANGLER_NAME
=c
++filt
4007 *-*-go32* |
*-*-msdos*)
4008 DEMANGLER_NAME
=cxxfilt
4012 for ac_hdr
in string.h
strings.h stdlib.h unistd.h fcntl.h sys
/file.h
4014 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4015 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4016 echo "configure:4017: checking for $ac_hdr" >&5
4017 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4018 echo $ac_n "(cached) $ac_c" 1>&6
4020 cat > conftest.
$ac_ext <<EOF
4021 #line 4022 "configure"
4022 #include "confdefs.h"
4025 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4026 { (eval echo configure
:4027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4027 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4028 if test -z "$ac_err"; then
4030 eval "ac_cv_header_$ac_safe=yes"
4033 echo "configure: failed program was:" >&5
4034 cat conftest.
$ac_ext >&5
4036 eval "ac_cv_header_$ac_safe=no"
4040 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4041 echo "$ac_t""yes" 1>&6
4042 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4043 cat >> confdefs.h
<<EOF
4044 #define $ac_tr_hdr 1
4048 echo "$ac_t""no" 1>&6
4052 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4053 echo "configure:4054: checking for sys/wait.h that is POSIX.1 compatible" >&5
4054 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
4055 echo $ac_n "(cached) $ac_c" 1>&6
4057 cat > conftest.
$ac_ext <<EOF
4058 #line 4059 "configure"
4059 #include "confdefs.h"
4060 #include <sys/types.h>
4061 #include <sys/wait.h>
4063 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4066 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4071 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4074 if { (eval echo configure
:4075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4076 ac_cv_header_sys_wait_h
=yes
4078 echo "configure: failed program was:" >&5
4079 cat conftest.
$ac_ext >&5
4081 ac_cv_header_sys_wait_h
=no
4086 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4087 if test $ac_cv_header_sys_wait_h = yes; then
4088 cat >> confdefs.h
<<\EOF
4089 #define HAVE_SYS_WAIT_H 1
4094 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4095 # for constant arguments. Useless!
4096 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4097 echo "configure:4098: checking for working alloca.h" >&5
4098 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4099 echo $ac_n "(cached) $ac_c" 1>&6
4101 cat > conftest.
$ac_ext <<EOF
4102 #line 4103 "configure"
4103 #include "confdefs.h"
4106 char *p = alloca(2 * sizeof(int));
4109 if { (eval echo configure
:4110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4111 ac_cv_header_alloca_h
=yes
4113 echo "configure: failed program was:" >&5
4114 cat conftest.
$ac_ext >&5
4116 ac_cv_header_alloca_h
=no
4121 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4122 if test $ac_cv_header_alloca_h = yes; then
4123 cat >> confdefs.h
<<\EOF
4124 #define HAVE_ALLOCA_H 1
4129 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4130 echo "configure:4131: checking for alloca" >&5
4131 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4132 echo $ac_n "(cached) $ac_c" 1>&6
4134 cat > conftest.
$ac_ext <<EOF
4135 #line 4136 "configure"
4136 #include "confdefs.h"
4139 # define alloca __builtin_alloca
4142 # include <malloc.h>
4143 # define alloca _alloca
4146 # include <alloca.h>
4151 # ifndef alloca /* predefined by HP cc +Olibcalls */
4160 char *p = (char *) alloca(1);
4163 if { (eval echo configure
:4164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4165 ac_cv_func_alloca_works
=yes
4167 echo "configure: failed program was:" >&5
4168 cat conftest.
$ac_ext >&5
4170 ac_cv_func_alloca_works
=no
4175 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4176 if test $ac_cv_func_alloca_works = yes; then
4177 cat >> confdefs.h
<<\EOF
4178 #define HAVE_ALLOCA 1
4183 if test $ac_cv_func_alloca_works = no
; then
4184 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4185 # that cause trouble. Some versions do not even contain alloca or
4186 # contain a buggy version. If you still want to use their alloca,
4187 # use ar to extract alloca.o from them instead of compiling alloca.c.
4188 ALLOCA
=alloca.
${ac_objext}
4189 cat >> confdefs.h
<<\EOF
4194 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4195 echo "configure:4196: checking whether alloca needs Cray hooks" >&5
4196 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4197 echo $ac_n "(cached) $ac_c" 1>&6
4199 cat > conftest.
$ac_ext <<EOF
4200 #line 4201 "configure"
4201 #include "confdefs.h"
4202 #if defined(CRAY) && ! defined(CRAY2)
4209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4210 egrep "webecray" >/dev
/null
2>&1; then
4221 echo "$ac_t""$ac_cv_os_cray" 1>&6
4222 if test $ac_cv_os_cray = yes; then
4223 for ac_func
in _getb67 GETB67 getb67
; do
4224 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4225 echo "configure:4226: checking for $ac_func" >&5
4226 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4227 echo $ac_n "(cached) $ac_c" 1>&6
4229 cat > conftest.
$ac_ext <<EOF
4230 #line 4231 "configure"
4231 #include "confdefs.h"
4232 /* System header to define __stub macros and hopefully few prototypes,
4233 which can conflict with char $ac_func(); below. */
4235 /* Override any gcc2 internal prototype to avoid an error. */
4236 /* We use char because int might match the return type of a gcc2
4237 builtin and then its argument prototype would still apply. */
4242 /* The GNU C library defines this for functions which it implements
4243 to always fail with ENOSYS. Some functions are actually named
4244 something starting with __ and the normal name is an alias. */
4245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4253 if { (eval echo configure
:4254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4255 eval "ac_cv_func_$ac_func=yes"
4257 echo "configure: failed program was:" >&5
4258 cat conftest.
$ac_ext >&5
4260 eval "ac_cv_func_$ac_func=no"
4265 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4266 echo "$ac_t""yes" 1>&6
4267 cat >> confdefs.h
<<EOF
4268 #define CRAY_STACKSEG_END $ac_func
4273 echo "$ac_t""no" 1>&6
4279 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4280 echo "configure:4281: checking stack direction for C alloca" >&5
4281 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4282 echo $ac_n "(cached) $ac_c" 1>&6
4284 if test "$cross_compiling" = yes; then
4285 ac_cv_c_stack_direction
=0
4287 cat > conftest.
$ac_ext <<EOF
4288 #line 4289 "configure"
4289 #include "confdefs.h"
4290 find_stack_direction ()
4292 static char *addr = 0;
4297 return find_stack_direction ();
4300 return (&dummy > addr) ? 1 : -1;
4304 exit (find_stack_direction() < 0);
4307 if { (eval echo configure
:4308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4309 ac_cv_c_stack_direction
=1
4311 echo "configure: failed program was:" >&5
4312 cat conftest.
$ac_ext >&5
4314 ac_cv_c_stack_direction
=-1
4321 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4322 cat >> confdefs.h
<<EOF
4323 #define STACK_DIRECTION $ac_cv_c_stack_direction
4328 for ac_func
in sbrk utimes setmode
4330 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4331 echo "configure:4332: checking for $ac_func" >&5
4332 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4333 echo $ac_n "(cached) $ac_c" 1>&6
4335 cat > conftest.
$ac_ext <<EOF
4336 #line 4337 "configure"
4337 #include "confdefs.h"
4338 /* System header to define __stub macros and hopefully few prototypes,
4339 which can conflict with char $ac_func(); below. */
4341 /* Override any gcc2 internal prototype to avoid an error. */
4342 /* We use char because int might match the return type of a gcc2
4343 builtin and then its argument prototype would still apply. */
4348 /* The GNU C library defines this for functions which it implements
4349 to always fail with ENOSYS. Some functions are actually named
4350 something starting with __ and the normal name is an alias. */
4351 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4359 if { (eval echo configure
:4360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4361 eval "ac_cv_func_$ac_func=yes"
4363 echo "configure: failed program was:" >&5
4364 cat conftest.
$ac_ext >&5
4366 eval "ac_cv_func_$ac_func=no"
4371 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4372 echo "$ac_t""yes" 1>&6
4373 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4374 cat >> confdefs.h
<<EOF
4375 #define $ac_tr_func 1
4379 echo "$ac_t""no" 1>&6
4384 # Some systems have frexp only in -lm, not in -lc.
4386 echo $ac_n "checking for library containing frexp""... $ac_c" 1>&6
4387 echo "configure:4388: checking for library containing frexp" >&5
4388 if eval "test \"`echo '$''{'ac_cv_search_frexp'+set}'`\" = set"; then
4389 echo $ac_n "(cached) $ac_c" 1>&6
4391 ac_func_search_save_LIBS
="$LIBS"
4392 ac_cv_search_frexp
="no"
4393 cat > conftest.
$ac_ext <<EOF
4394 #line 4395 "configure"
4395 #include "confdefs.h"
4396 /* Override any gcc2 internal prototype to avoid an error. */
4397 /* We use char because int might match the return type of a gcc2
4398 builtin and then its argument prototype would still apply. */
4405 if { (eval echo configure
:4406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4407 ac_cv_search_frexp
="none required"
4409 echo "configure: failed program was:" >&5
4410 cat conftest.
$ac_ext >&5
4413 test "$ac_cv_search_frexp" = "no" && for i
in m
; do
4414 LIBS
="-l$i $ac_func_search_save_LIBS"
4415 cat > conftest.
$ac_ext <<EOF
4416 #line 4417 "configure"
4417 #include "confdefs.h"
4418 /* Override any gcc2 internal prototype to avoid an error. */
4419 /* We use char because int might match the return type of a gcc2
4420 builtin and then its argument prototype would still apply. */
4427 if { (eval echo configure
:4428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4429 ac_cv_search_frexp
="-l$i"
4432 echo "configure: failed program was:" >&5
4433 cat conftest.
$ac_ext >&5
4437 LIBS
="$ac_func_search_save_LIBS"
4440 echo "$ac_t""$ac_cv_search_frexp" 1>&6
4441 if test "$ac_cv_search_frexp" != "no"; then
4442 test "$ac_cv_search_frexp" = "none required" || LIBS
="$ac_cv_search_frexp $LIBS"
4448 echo $ac_n "checking for time_t in time.h""... $ac_c" 1>&6
4449 echo "configure:4450: checking for time_t in time.h" >&5
4450 if eval "test \"`echo '$''{'bu_cv_decl_time_t_time_h'+set}'`\" = set"; then
4451 echo $ac_n "(cached) $ac_c" 1>&6
4453 cat > conftest.
$ac_ext <<EOF
4454 #line 4455 "configure"
4455 #include "confdefs.h"
4461 if { (eval echo configure
:4462: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4463 bu_cv_decl_time_t_time_h
=yes
4465 echo "configure: failed program was:" >&5
4466 cat conftest.
$ac_ext >&5
4468 bu_cv_decl_time_t_time_h
=no
4473 echo "$ac_t""$bu_cv_decl_time_t_time_h" 1>&6
4474 if test $bu_cv_decl_time_t_time_h = yes; then
4475 cat >> confdefs.h
<<\EOF
4476 #define HAVE_TIME_T_IN_TIME_H 1
4481 echo $ac_n "checking for time_t in sys/types.h""... $ac_c" 1>&6
4482 echo "configure:4483: checking for time_t in sys/types.h" >&5
4483 if eval "test \"`echo '$''{'bu_cv_decl_time_t_types_h'+set}'`\" = set"; then
4484 echo $ac_n "(cached) $ac_c" 1>&6
4486 cat > conftest.
$ac_ext <<EOF
4487 #line 4488 "configure"
4488 #include "confdefs.h"
4489 #include <sys/types.h>
4494 if { (eval echo configure
:4495: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4496 bu_cv_decl_time_t_types_h
=yes
4498 echo "configure: failed program was:" >&5
4499 cat conftest.
$ac_ext >&5
4501 bu_cv_decl_time_t_types_h
=no
4506 echo "$ac_t""$bu_cv_decl_time_t_types_h" 1>&6
4507 if test $bu_cv_decl_time_t_types_h = yes; then
4508 cat >> confdefs.h
<<\EOF
4509 #define HAVE_TIME_T_IN_TYPES_H 1
4514 # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
4516 echo $ac_n "checking for utime.h""... $ac_c" 1>&6
4517 echo "configure:4518: checking for utime.h" >&5
4518 if eval "test \"`echo '$''{'bu_cv_header_utime_h'+set}'`\" = set"; then
4519 echo $ac_n "(cached) $ac_c" 1>&6
4521 cat > conftest.
$ac_ext <<EOF
4522 #line 4523 "configure"
4523 #include "confdefs.h"
4524 #include <sys/types.h>
4533 if { (eval echo configure
:4534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4535 bu_cv_header_utime_h
=yes
4537 echo "configure: failed program was:" >&5
4538 cat conftest.
$ac_ext >&5
4540 bu_cv_header_utime_h
=no
4545 echo "$ac_t""$bu_cv_header_utime_h" 1>&6
4546 if test $bu_cv_header_utime_h = yes; then
4547 cat >> confdefs.h
<<\EOF
4548 #define HAVE_GOOD_UTIME_H 1
4553 echo $ac_n "checking whether fprintf must be declared""... $ac_c" 1>&6
4554 echo "configure:4555: checking whether fprintf must be declared" >&5
4555 if eval "test \"`echo '$''{'bfd_cv_decl_needed_fprintf'+set}'`\" = set"; then
4556 echo $ac_n "(cached) $ac_c" 1>&6
4558 cat > conftest.
$ac_ext <<EOF
4559 #line 4560 "configure"
4560 #include "confdefs.h"
4563 #ifdef HAVE_STRING_H
4566 #ifdef HAVE_STRINGS_H
4567 #include <strings.h>
4570 #ifdef HAVE_STDLIB_H
4573 #ifdef HAVE_UNISTD_H
4577 char *(*pfn) = (char *(*)) fprintf
4580 if { (eval echo configure
:4581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4582 bfd_cv_decl_needed_fprintf
=no
4584 echo "configure: failed program was:" >&5
4585 cat conftest.
$ac_ext >&5
4587 bfd_cv_decl_needed_fprintf
=yes
4592 echo "$ac_t""$bfd_cv_decl_needed_fprintf" 1>&6
4593 if test $bfd_cv_decl_needed_fprintf = yes; then
4594 cat >> confdefs.h
<<\EOF
4595 #define NEED_DECLARATION_FPRINTF 1
4600 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4601 echo "configure:4602: checking whether strstr must be declared" >&5
4602 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
4603 echo $ac_n "(cached) $ac_c" 1>&6
4605 cat > conftest.
$ac_ext <<EOF
4606 #line 4607 "configure"
4607 #include "confdefs.h"
4610 #ifdef HAVE_STRING_H
4613 #ifdef HAVE_STRINGS_H
4614 #include <strings.h>
4617 #ifdef HAVE_STDLIB_H
4620 #ifdef HAVE_UNISTD_H
4624 char *(*pfn) = (char *(*)) strstr
4627 if { (eval echo configure
:4628: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4629 bfd_cv_decl_needed_strstr
=no
4631 echo "configure: failed program was:" >&5
4632 cat conftest.
$ac_ext >&5
4634 bfd_cv_decl_needed_strstr
=yes
4639 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4640 if test $bfd_cv_decl_needed_strstr = yes; then
4641 cat >> confdefs.h
<<\EOF
4642 #define NEED_DECLARATION_STRSTR 1
4647 echo $ac_n "checking whether sbrk must be declared""... $ac_c" 1>&6
4648 echo "configure:4649: checking whether sbrk must be declared" >&5
4649 if eval "test \"`echo '$''{'bfd_cv_decl_needed_sbrk'+set}'`\" = set"; then
4650 echo $ac_n "(cached) $ac_c" 1>&6
4652 cat > conftest.
$ac_ext <<EOF
4653 #line 4654 "configure"
4654 #include "confdefs.h"
4657 #ifdef HAVE_STRING_H
4660 #ifdef HAVE_STRINGS_H
4661 #include <strings.h>
4664 #ifdef HAVE_STDLIB_H
4667 #ifdef HAVE_UNISTD_H
4671 char *(*pfn) = (char *(*)) sbrk
4674 if { (eval echo configure
:4675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4676 bfd_cv_decl_needed_sbrk
=no
4678 echo "configure: failed program was:" >&5
4679 cat conftest.
$ac_ext >&5
4681 bfd_cv_decl_needed_sbrk
=yes
4686 echo "$ac_t""$bfd_cv_decl_needed_sbrk" 1>&6
4687 if test $bfd_cv_decl_needed_sbrk = yes; then
4688 cat >> confdefs.h
<<\EOF
4689 #define NEED_DECLARATION_SBRK 1
4694 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
4695 echo "configure:4696: checking whether getenv must be declared" >&5
4696 if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
4697 echo $ac_n "(cached) $ac_c" 1>&6
4699 cat > conftest.
$ac_ext <<EOF
4700 #line 4701 "configure"
4701 #include "confdefs.h"
4704 #ifdef HAVE_STRING_H
4707 #ifdef HAVE_STRINGS_H
4708 #include <strings.h>
4711 #ifdef HAVE_STDLIB_H
4714 #ifdef HAVE_UNISTD_H
4718 char *(*pfn) = (char *(*)) getenv
4721 if { (eval echo configure
:4722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4723 bfd_cv_decl_needed_getenv
=no
4725 echo "configure: failed program was:" >&5
4726 cat conftest.
$ac_ext >&5
4728 bfd_cv_decl_needed_getenv
=yes
4733 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
4734 if test $bfd_cv_decl_needed_getenv = yes; then
4735 cat >> confdefs.h
<<\EOF
4736 #define NEED_DECLARATION_GETENV 1
4741 echo $ac_n "checking whether environ must be declared""... $ac_c" 1>&6
4742 echo "configure:4743: checking whether environ must be declared" >&5
4743 if eval "test \"`echo '$''{'bfd_cv_decl_needed_environ'+set}'`\" = set"; then
4744 echo $ac_n "(cached) $ac_c" 1>&6
4746 cat > conftest.
$ac_ext <<EOF
4747 #line 4748 "configure"
4748 #include "confdefs.h"
4751 #ifdef HAVE_STRING_H
4754 #ifdef HAVE_STRINGS_H
4755 #include <strings.h>
4758 #ifdef HAVE_STDLIB_H
4761 #ifdef HAVE_UNISTD_H
4765 char *(*pfn) = (char *(*)) environ
4768 if { (eval echo configure
:4769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4770 bfd_cv_decl_needed_environ
=no
4772 echo "configure: failed program was:" >&5
4773 cat conftest.
$ac_ext >&5
4775 bfd_cv_decl_needed_environ
=yes
4780 echo "$ac_t""$bfd_cv_decl_needed_environ" 1>&6
4781 if test $bfd_cv_decl_needed_environ = yes; then
4782 cat >> confdefs.h
<<\EOF
4783 #define NEED_DECLARATION_ENVIRON 1
4791 *-*-msdos* |
*-*-go32* |
*-*-mingw32* |
*-*-cygwin* |
*-*-windows*)
4792 cat >> confdefs.h
<<\EOF
4793 #define USE_BINARY_FOPEN 1
4798 # target-specific stuff:
4800 # Canonicalize the secondary target names.
4801 if test -n "$enable_targets"; then
4802 for targ
in `echo $enable_targets | sed 's/,/ /g'`
4804 result
=`$ac_config_sub $targ 2>/dev/null`
4805 if test -n "$result"; then
4806 canon_targets
="$canon_targets $result"
4808 # Allow targets that config.sub doesn't recognize, like "all".
4809 canon_targets
="$canon_targets $targ"
4824 for targ
in $target $canon_targets
4826 if test "x$targ" = "xall"; then
4828 BUILD_NLMCONV
='$(NLMCONV_PROG)$(EXEEXT)'
4829 BUILD_SRCONV
='$(SRCONV_PROG)'
4830 NLMCONV_DEFS
="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
4833 i
[3456]86*-*-netware*)
4834 BUILD_NLMCONV
='$(NLMCONV_PROG)$(EXEEXT)'
4835 NLMCONV_DEFS
="$NLMCONV_DEFS -DNLMCONV_I386"
4838 BUILD_NLMCONV
='$(NLMCONV_PROG)$(EXEEXT)'
4839 NLMCONV_DEFS
="$NLMCONV_DEFS -DNLMCONV_ALPHA"
4841 powerpc
*-*-netware*)
4842 BUILD_NLMCONV
='$(NLMCONV_PROG)$(EXEEXT)'
4843 NLMCONV_DEFS
="$NLMCONV_DEFS -DNLMCONV_POWERPC"
4846 BUILD_NLMCONV
='$(NLMCONV_PROG)$(EXEEXT)'
4847 NLMCONV_DEFS
="$NLMCONV_DEFS -DNLMCONV_SPARC"
4851 *-*-hms*) BUILD_SRCONV
='$(SRCONV_PROG)' ;;
4854 arm-
*pe
* | arm-
*-wince)
4855 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
4856 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_ARM"
4857 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
4860 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
4861 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_ARM"
4862 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
4864 i
[3-6]86-*pe
* | i
[3-6]86-*-cygwin* | i
[3-6]86-*-mingw32*)
4865 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
4866 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_I386"
4867 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
4868 BUILD_DLLWRAP
='$(DLLWRAP_PROG)$(EXEEXT)'
4871 BUILD_DLLTOOL
='$(DLLTOOL_PROG)'
4872 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_I386"
4874 powerpc
*-*-*pe
* | powerpc
*-*-cygwin*)
4875 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
4876 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_PPC"
4877 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
4880 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
4881 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_SH"
4882 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
4885 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
4886 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
4887 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
4890 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
4891 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
4892 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
4895 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
4896 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
4911 cat >> confdefs.h
<<EOF
4912 #define TARGET "${target}"
4917 .
$srcdir/..
/bfd
/config.bfd
4918 if test "x$targ_underscore" = "xyes"; then
4926 cat > confcache
<<\EOF
4927 # This file is a shell script that caches the results of configure
4928 # tests run on this system so they can be shared between configure
4929 # scripts and configure runs. It is not useful on other systems.
4930 # If it contains results you don't want to keep, you may remove or edit it.
4932 # By default, configure uses ./config.cache as the cache file,
4933 # creating it if it does not exist already. You can give configure
4934 # the --cache-file=FILE option to use a different cache file; that is
4935 # what configure does when it calls configure scripts in
4936 # subdirectories, so they share the cache.
4937 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4938 # config.status only pays attention to the cache file if you give it the
4939 # --recheck option to rerun configure.
4942 # The following way of writing the cache mishandles newlines in values,
4943 # but we know of no workaround that is simple, portable, and efficient.
4944 # So, don't put newlines in cache variables' values.
4945 # Ultrix sh set writes to stderr and can't be redirected directly,
4946 # and sets the high bit in the cache file unless we assign to the vars.
4948 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4950 # `set' does not quote correctly, so add quotes (double-quote substitution
4951 # turns \\\\ into \\, and sed turns \\ into \).
4953 -e "s/'/'\\\\''/g" \
4954 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4957 # `set' quotes correctly as required by POSIX, so do not add quotes.
4958 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4961 if cmp -s $cache_file confcache
; then
4964 if test -w $cache_file; then
4965 echo "updating cache $cache_file"
4966 cat confcache
> $cache_file
4968 echo "not updating unwritable cache $cache_file"
4973 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4975 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4976 # Let make expand exec_prefix.
4977 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4979 # Any assignment to VPATH causes Sun make to only execute
4980 # the first set of double-colon rules, so remove it if not needed.
4981 # If there is a colon in the path, we need to keep it.
4982 if test "x$srcdir" = x.
; then
4983 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
4986 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4988 DEFS
=-DHAVE_CONFIG_H
4990 # Without the "./", some shells look in PATH for config.status.
4991 : ${CONFIG_STATUS=./config.status}
4993 echo creating
$CONFIG_STATUS
4994 rm -f $CONFIG_STATUS
4995 cat > $CONFIG_STATUS <<EOF
4997 # Generated automatically by configure.
4998 # Run this file to recreate the current configuration.
4999 # This directory was configured as follows,
5000 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5002 # $0 $ac_configure_args
5004 # Compiler output produced by configure, useful for debugging
5005 # configure, is in ./config.log if it exists.
5007 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5010 case "\$ac_option" in
5011 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5012 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5013 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5014 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5015 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5017 -help | --help | --hel | --he | --h)
5018 echo "\$ac_cs_usage"; exit 0 ;;
5019 *) echo "\$ac_cs_usage"; exit 1 ;;
5023 ac_given_srcdir=$srcdir
5024 ac_given_INSTALL="$INSTALL"
5026 trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5028 cat >> $CONFIG_STATUS <<EOF
5030 # Protect against being on the right side of a sed subst in config.status.
5031 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5032 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5036 s%@CFLAGS@%$CFLAGS%g
5037 s%@CPPFLAGS@%$CPPFLAGS%g
5038 s%@CXXFLAGS@%$CXXFLAGS%g
5039 s%@FFLAGS@%$FFLAGS%g
5041 s%@LDFLAGS@%$LDFLAGS%g
5043 s%@exec_prefix@%$exec_prefix%g
5044 s%@prefix@%$prefix%g
5045 s%@program_transform_name@%$program_transform_name%g
5046 s%@bindir@%$bindir%g
5047 s%@sbindir@%$sbindir%g
5048 s%@libexecdir@%$libexecdir%g
5049 s%@datadir@%$datadir%g
5050 s%@sysconfdir@%$sysconfdir%g
5051 s%@sharedstatedir@%$sharedstatedir%g
5052 s%@localstatedir@%$localstatedir%g
5053 s%@libdir@%$libdir%g
5054 s%@includedir@%$includedir%g
5055 s%@oldincludedir@%$oldincludedir%g
5056 s%@infodir@%$infodir%g
5057 s%@mandir@%$mandir%g
5059 s%@host_alias@%$host_alias%g
5060 s%@host_cpu@%$host_cpu%g
5061 s%@host_vendor@%$host_vendor%g
5062 s%@host_os@%$host_os%g
5063 s%@target@%$target%g
5064 s%@target_alias@%$target_alias%g
5065 s%@target_cpu@%$target_cpu%g
5066 s%@target_vendor@%$target_vendor%g
5067 s%@target_os@%$target_os%g
5069 s%@build_alias@%$build_alias%g
5070 s%@build_cpu@%$build_cpu%g
5071 s%@build_vendor@%$build_vendor%g
5072 s%@build_os@%$build_os%g
5073 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5074 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5075 s%@INSTALL_DATA@%$INSTALL_DATA%g
5076 s%@PACKAGE@%$PACKAGE%g
5077 s%@VERSION@%$VERSION%g
5078 s%@ACLOCAL@%$ACLOCAL%g
5079 s%@AUTOCONF@%$AUTOCONF%g
5080 s%@AUTOMAKE@%$AUTOMAKE%g
5081 s%@AUTOHEADER@%$AUTOHEADER%g
5082 s%@MAKEINFO@%$MAKEINFO%g
5083 s%@SET_MAKE@%$SET_MAKE%g
5084 s%@RANLIB@%$RANLIB%g
5087 s%@LIBTOOL@%$LIBTOOL%g
5088 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
5091 s%@LEXLIB@%$LEXLIB%g
5093 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
5094 s%@ALLOCA@%$ALLOCA%g
5095 s%@USE_NLS@%$USE_NLS%g
5096 s%@MSGFMT@%$MSGFMT%g
5097 s%@GMSGFMT@%$GMSGFMT%g
5098 s%@XGETTEXT@%$XGETTEXT%g
5099 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5100 s%@CATALOGS@%$CATALOGS%g
5101 s%@CATOBJEXT@%$CATOBJEXT%g
5102 s%@DATADIRNAME@%$DATADIRNAME%g
5103 s%@GMOFILES@%$GMOFILES%g
5104 s%@INSTOBJEXT@%$INSTOBJEXT%g
5105 s%@INTLDEPS@%$INTLDEPS%g
5106 s%@INTLLIBS@%$INTLLIBS%g
5107 s%@INTLOBJS@%$INTLOBJS%g
5108 s%@POFILES@%$POFILES%g
5110 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5112 s%@GT_YES@%$GT_YES%g
5113 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5115 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5116 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5118 s%@EXEEXT@%$EXEEXT%g
5119 s%@HDEFINES@%$HDEFINES%g
5121 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
5122 s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
5123 s%@DEMANGLER_NAME@%$DEMANGLER_NAME%g
5124 s%@NLMCONV_DEFS@%$NLMCONV_DEFS%g
5125 s%@BUILD_NLMCONV@%$BUILD_NLMCONV%g
5126 s%@BUILD_SRCONV@%$BUILD_SRCONV%g
5127 s%@BUILD_DLLTOOL@%$BUILD_DLLTOOL%g
5128 s%@DLLTOOL_DEFS@%$DLLTOOL_DEFS%g
5129 s%@BUILD_WINDRES@%$BUILD_WINDRES%g
5130 s%@BUILD_DLLWRAP@%$BUILD_DLLWRAP%g
5131 s%@BUILD_MISC@%$BUILD_MISC%g
5132 s%@UNDERSCORE@%$UNDERSCORE%g
5137 cat >> $CONFIG_STATUS <<\EOF
5139 # Split the substitutions into bite-sized pieces for seds with
5140 # small command number limits, like on Digital OSF/1 and HP-UX.
5141 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5142 ac_file
=1 # Number of current file.
5143 ac_beg
=1 # First line for current file.
5144 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5147 while $ac_more_lines; do
5148 if test $ac_beg -gt 1; then
5149 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5151 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5153 if test ! -s conftest.s
$ac_file; then
5155 rm -f conftest.s
$ac_file
5157 if test -z "$ac_sed_cmds"; then
5158 ac_sed_cmds
="sed -f conftest.s$ac_file"
5160 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5162 ac_file
=`expr $ac_file + 1`
5164 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5167 if test -z "$ac_sed_cmds"; then
5172 cat >> $CONFIG_STATUS <<EOF
5174 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
5176 cat >> $CONFIG_STATUS <<\EOF
5177 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5178 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5180 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5181 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5182 *) ac_file_in
="${ac_file}.in" ;;
5185 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5187 # Remove last slash and all that follows it. Not all systems have dirname.
5188 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5189 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5190 # The file is in a subdirectory.
5191 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5192 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5193 # A "../" for each directory in $ac_dir_suffix.
5194 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5196 ac_dir_suffix
= ac_dots
=
5199 case "$ac_given_srcdir" in
5201 if test -z "$ac_dots"; then top_srcdir
=.
5202 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5203 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5205 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5206 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5209 case "$ac_given_INSTALL" in
5210 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5211 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5214 echo creating
"$ac_file"
5216 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5218 *Makefile
*) ac_comsub
="1i\\
5219 # $configure_input" ;;
5223 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5225 s%@configure_input@%$configure_input%g
5226 s%@srcdir@%$srcdir%g
5227 s%@top_srcdir@%$top_srcdir%g
5228 s%@INSTALL@%$INSTALL%g
5229 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5233 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5234 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5236 # ac_d sets the value in "#define NAME VALUE" lines.
5237 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5238 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5241 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5242 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5243 ac_uB
='\([ ]\)%\1#\2define\3'
5246 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5247 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5248 ac_eB
='$%\1#\2define\3'
5252 if test "${CONFIG_HEADERS+set}" != set; then
5254 cat >> $CONFIG_STATUS <<EOF
5255 CONFIG_HEADERS="config.h:config.in"
5257 cat >> $CONFIG_STATUS <<\EOF
5259 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5260 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5262 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5263 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5264 *) ac_file_in
="${ac_file}.in" ;;
5267 echo creating
$ac_file
5269 rm -f conftest.frag conftest.
in conftest.out
5270 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5271 cat $ac_file_inputs > conftest.
in
5275 # Transform confdefs.h into a sed script conftest.vals that substitutes
5276 # the proper values into config.h.in to produce config.h. And first:
5277 # Protect against being on the right side of a sed subst in config.status.
5278 # Protect against being in an unquoted here document in config.status.
5280 cat > conftest.hdr
<<\EOF
5283 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5287 sed -n -f conftest.hdr confdefs.h > conftest.vals
5290 # This sed command replaces #undef with comments. This is necessary, for
5291 # example, in the case of _POSIX_SOURCE, which is predefined and required
5292 # on some systems where configure will not decide to define it.
5293 cat >> conftest.vals <<\EOF
5294 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5297 # Break up conftest.vals because some shells have a limit on
5298 # the size of here documents, and old seds have small limits too.
5303 ac_lines=`grep -c . conftest.vals
`
5304 # grep -c gives empty output for an empty file on some AIX systems.
5305 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5306 # Write a limited-size here document to conftest.frag.
5307 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5308 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5310 sed -f conftest.frag conftest.in > conftest.out
5312 mv conftest.out conftest.in
5314 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5316 mv conftest.tail conftest.vals
5320 cat >> $CONFIG_STATUS <<\EOF
5321 rm -f conftest.frag conftest.h
5322 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5323 cat conftest.in >> conftest.h
5325 if cmp -s $ac_file conftest.h 2>/dev/null; then
5326 echo "$ac_file is unchanged"
5329 # Remove last slash and all that follows it. Not all systems have dirname.
5330 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5331 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5332 # The file is in a subdirectory.
5333 test ! -d "$ac_dir" && mkdir "$ac_dir"
5336 mv conftest.h $ac_file
5341 cat >> $CONFIG_STATUS <<EOF
5345 cat >> $CONFIG_STATUS <<\EOF
5346 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
5348 case "x$CONFIG_FILES" in
5349 *) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
5354 chmod +x $CONFIG_STATUS
5355 rm -fr confdefs* $ac_clean_files
5356 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1