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 force libtool not to do file locking"
25 --enable-targets alternative target configurations"
27 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)"
29 --disable-nls do not use Native Language Support"
31 --with-included-gettext use the GNU gettext library included here"
33 --enable-maintainer-mode enable make rules and dependencies not useful
34 (and sometimes confusing) to the casual installer"
36 # Initialize some variables set by options.
37 # The variables have the same names as the options, with
38 # dashes changed to underlines.
40 cache_file
=.
/config.cache
49 program_transform_name
=s
,x
,x
,
57 bindir
='${exec_prefix}/bin'
58 sbindir
='${exec_prefix}/sbin'
59 libexecdir
='${exec_prefix}/libexec'
60 datadir
='${prefix}/share'
61 sysconfdir
='${prefix}/etc'
62 sharedstatedir
='${prefix}/com'
63 localstatedir
='${prefix}/var'
64 libdir
='${exec_prefix}/lib'
65 includedir
='${prefix}/include'
66 oldincludedir
='/usr/include'
67 infodir
='${prefix}/info'
68 mandir
='${prefix}/man'
70 # Initialize some other variables.
73 SHELL
=${CONFIG_SHELL-/bin/sh}
74 # Maximum number of lines to put in a shell here document.
81 # If the previous option needs an argument, assign it.
82 if test -n "$ac_prev"; then
83 eval "$ac_prev=\$ac_option"
89 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
93 # Accept the important Cygnus configure options, so we can diagnose typos.
97 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
99 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
100 bindir
="$ac_optarg" ;;
102 -build |
--build |
--buil |
--bui |
--bu)
104 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
105 build
="$ac_optarg" ;;
107 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
108 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
109 ac_prev
=cache_file
;;
110 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
111 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
112 cache_file
="$ac_optarg" ;;
114 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
116 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
118 datadir
="$ac_optarg" ;;
120 -disable-* |
--disable-*)
121 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
122 # Reject names that are not valid shell variable names.
123 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
124 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
126 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
127 eval "enable_${ac_feature}=no" ;;
129 -enable-* |
--enable-*)
130 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
131 # Reject names that are not valid shell variable names.
132 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
133 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
135 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
140 eval "enable_${ac_feature}='$ac_optarg'" ;;
142 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
143 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
144 |
--exec |
--exe |
--ex)
145 ac_prev
=exec_prefix
;;
146 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
147 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
148 |
--exec=* |
--exe=* |
--ex=*)
149 exec_prefix
="$ac_optarg" ;;
151 -gas |
--gas |
--ga |
--g)
152 # Obsolete; use --with-gas.
155 -help |
--help |
--hel |
--he)
156 # Omit some internal or obsolete options to make the list less imposing.
157 # This message is too long to be a string in the A/UX 3.1 sh.
159 Usage: configure [options] [host]
160 Options: [defaults in brackets after descriptions]
162 --cache-file=FILE cache test results in FILE
163 --help print this message
164 --no-create do not create output files
165 --quiet, --silent do not print \`checking...' messages
166 --version print the version of autoconf that created configure
167 Directory and file names:
168 --prefix=PREFIX install architecture-independent files in PREFIX
170 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
172 --bindir=DIR user executables in DIR [EPREFIX/bin]
173 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
174 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
175 --datadir=DIR read-only architecture-independent data in DIR
177 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
178 --sharedstatedir=DIR modifiable architecture-independent data in DIR
180 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
181 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
182 --includedir=DIR C header files in DIR [PREFIX/include]
183 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
184 --infodir=DIR info documentation in DIR [PREFIX/info]
185 --mandir=DIR man documentation in DIR [PREFIX/man]
186 --srcdir=DIR find the sources in DIR [configure dir or ..]
187 --program-prefix=PREFIX prepend PREFIX to installed program names
188 --program-suffix=SUFFIX append SUFFIX to installed program names
189 --program-transform-name=PROGRAM
190 run sed PROGRAM on installed program names
194 --build=BUILD configure for building on BUILD [BUILD=HOST]
195 --host=HOST configure for HOST [guessed]
196 --target=TARGET configure for TARGET [TARGET=HOST]
197 Features and packages:
198 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
199 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
200 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
201 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
202 --x-includes=DIR X include files are in DIR
203 --x-libraries=DIR X library files are in DIR
205 if test -n "$ac_help"; then
206 echo "--enable and --with options recognized:$ac_help"
210 -host |
--host |
--hos |
--ho)
212 -host=* |
--host=* |
--hos=* |
--ho=*)
215 -includedir |
--includedir |
--includedi |
--included |
--include \
216 |
--includ |
--inclu |
--incl |
--inc)
217 ac_prev
=includedir
;;
218 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
219 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
220 includedir
="$ac_optarg" ;;
222 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
224 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
225 infodir
="$ac_optarg" ;;
227 -libdir |
--libdir |
--libdi |
--libd)
229 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
230 libdir
="$ac_optarg" ;;
232 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
233 |
--libexe |
--libex |
--libe)
234 ac_prev
=libexecdir
;;
235 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
236 |
--libexe=* |
--libex=* |
--libe=*)
237 libexecdir
="$ac_optarg" ;;
239 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
240 |
--localstate |
--localstat |
--localsta |
--localst \
241 |
--locals |
--local |
--loca |
--loc |
--lo)
242 ac_prev
=localstatedir
;;
243 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
244 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
245 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
246 localstatedir
="$ac_optarg" ;;
248 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
250 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
251 mandir
="$ac_optarg" ;;
254 # Obsolete; use --without-fp.
257 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
261 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
262 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
265 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
266 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
267 |
--oldin |
--oldi |
--old |
--ol |
--o)
268 ac_prev
=oldincludedir
;;
269 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
270 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
271 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
272 oldincludedir
="$ac_optarg" ;;
274 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
276 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
277 prefix
="$ac_optarg" ;;
279 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
280 |
--program-pre |
--program-pr |
--program-p)
281 ac_prev
=program_prefix
;;
282 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
283 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
284 program_prefix
="$ac_optarg" ;;
286 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
287 |
--program-suf |
--program-su |
--program-s)
288 ac_prev
=program_suffix
;;
289 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
290 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
291 program_suffix
="$ac_optarg" ;;
293 -program-transform-name |
--program-transform-name \
294 |
--program-transform-nam |
--program-transform-na \
295 |
--program-transform-n |
--program-transform- \
296 |
--program-transform |
--program-transfor \
297 |
--program-transfo |
--program-transf \
298 |
--program-trans |
--program-tran \
299 |
--progr-tra |
--program-tr |
--program-t)
300 ac_prev
=program_transform_name
;;
301 -program-transform-name=* |
--program-transform-name=* \
302 |
--program-transform-nam=* |
--program-transform-na=* \
303 |
--program-transform-n=* |
--program-transform-=* \
304 |
--program-transform=* |
--program-transfor=* \
305 |
--program-transfo=* |
--program-transf=* \
306 |
--program-trans=* |
--program-tran=* \
307 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
308 program_transform_name
="$ac_optarg" ;;
310 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
311 |
-silent |
--silent |
--silen |
--sile |
--sil)
314 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
316 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
318 sbindir
="$ac_optarg" ;;
320 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
321 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
322 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
324 ac_prev
=sharedstatedir
;;
325 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
326 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
327 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
329 sharedstatedir
="$ac_optarg" ;;
331 -site |
--site |
--sit)
333 -site=* |
--site=* |
--sit=*)
336 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
338 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
339 srcdir
="$ac_optarg" ;;
341 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
342 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
343 ac_prev
=sysconfdir
;;
344 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
345 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
346 sysconfdir
="$ac_optarg" ;;
348 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
350 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
351 target
="$ac_optarg" ;;
353 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
356 -version |
--version |
--versio |
--versi |
--vers)
357 echo "configure generated by autoconf version 2.13"
361 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
362 # Reject names that are not valid shell variable names.
363 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
364 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
366 ac_package
=`echo $ac_package| sed 's/-/_/g'`
371 eval "with_${ac_package}='$ac_optarg'" ;;
373 -without-* |
--without-*)
374 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
375 # Reject names that are not valid shell variable names.
376 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
377 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
379 ac_package
=`echo $ac_package| sed 's/-/_/g'`
380 eval "with_${ac_package}=no" ;;
383 # Obsolete; use --with-x.
386 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
387 |
--x-incl |
--x-inc |
--x-in |
--x-i)
388 ac_prev
=x_includes
;;
389 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
390 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
391 x_includes
="$ac_optarg" ;;
393 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
394 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
395 ac_prev
=x_libraries
;;
396 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
397 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
398 x_libraries
="$ac_optarg" ;;
400 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
404 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
405 echo "configure: warning: $ac_option: invalid host type" 1>&2
407 if test "x$nonopt" != xNONE
; then
408 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
416 if test -n "$ac_prev"; then
417 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
420 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
422 # File descriptor usage:
425 # 2 errors and warnings
426 # 3 some systems may open it to /dev/tty
427 # 4 used on the Kubota Titan
428 # 6 checking for... messages and results
429 # 5 compiler messages saved in config.log
430 if test "$silent" = yes; then
438 This file contains any messages produced by compilers while
439 running configure, to aid debugging if configure makes a mistake.
442 # Strip out --no-create and --no-recursion so they do not pile up.
443 # Also quote any args containing shell metacharacters.
448 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
449 |
--no-cr |
--no-c) ;;
450 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
451 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
452 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
453 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
454 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
459 # Only set these to C if already set. These must not be set unconditionally
460 # because not all systems understand e.g. LANG=C (notably SCO).
461 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
462 # Non-C LC_CTYPE values break the ctype check.
463 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
464 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
465 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
466 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
468 # confdefs.h avoids OS command line length limits that DEFS can exceed.
469 rm -rf conftest
* confdefs.h
470 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
473 # A filename unique to this package, relative to the directory that
474 # configure is in, which we can look for to find out if srcdir is correct.
475 ac_unique_file
=ldmain.c
477 # Find the source files, if location was not specified.
478 if test -z "$srcdir"; then
479 ac_srcdir_defaulted
=yes
480 # Try the directory containing this script, then its parent.
482 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
483 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
485 if test ! -r $srcdir/$ac_unique_file; then
489 ac_srcdir_defaulted
=no
491 if test ! -r $srcdir/$ac_unique_file; then
492 if test "$ac_srcdir_defaulted" = yes; then
493 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
495 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
498 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
500 # Prefer explicitly selected file to automatically selected ones.
501 if test -z "$CONFIG_SITE"; then
502 if test "x$prefix" != xNONE
; then
503 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
505 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
508 for ac_site_file
in $CONFIG_SITE; do
509 if test -r "$ac_site_file"; then
510 echo "loading site script $ac_site_file"
515 if test -r "$cache_file"; then
516 echo "loading cache $cache_file"
519 echo "creating cache $cache_file"
524 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
525 ac_cpp
='$CPP $CPPFLAGS'
526 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
527 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
528 cross_compiling
=$ac_cv_prog_cc_cross
532 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
533 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
534 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
541 ac_n
= ac_c
='\c' ac_t
=
547 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
548 if test -f $ac_dir/install-sh
; then
550 ac_install_sh
="$ac_aux_dir/install-sh -c"
552 elif test -f $ac_dir/install.sh
; then
554 ac_install_sh
="$ac_aux_dir/install.sh -c"
558 if test -z "$ac_aux_dir"; then
559 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
561 ac_config_guess
=$ac_aux_dir/config.guess
562 ac_config_sub
=$ac_aux_dir/config.sub
563 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
566 # Do some error checking and defaulting for the host and target type.
568 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
571 # 1. You are not allowed to specify --host, --target, and nonopt at the
573 # 2. Host defaults to nonopt.
574 # 3. If nonopt is not specified, then host defaults to the current host,
575 # as determined by config.guess.
576 # 4. Target and build default to nonopt.
577 # 5. If nonopt is not specified, then target and build default to host.
579 # The aliases save the names the user supplied, while $host etc.
580 # will get canonicalized.
581 case $host---$target---$nonopt in
582 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
583 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
587 # Make sure we can run config.sub.
588 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
589 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
592 echo $ac_n "checking host system type""... $ac_c" 1>&6
593 echo "configure:594: checking host system type" >&5
596 case "$host_alias" in
600 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
601 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
603 *) host_alias
=$nonopt ;;
607 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
608 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
609 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
610 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
611 echo "$ac_t""$host" 1>&6
613 echo $ac_n "checking target system type""... $ac_c" 1>&6
614 echo "configure:615: checking target system type" >&5
617 case "$target_alias" in
620 NONE
) target_alias
=$host_alias ;;
621 *) target_alias
=$nonopt ;;
625 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
626 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
627 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
628 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
629 echo "$ac_t""$target" 1>&6
631 echo $ac_n "checking build system type""... $ac_c" 1>&6
632 echo "configure:633: checking build system type" >&5
635 case "$build_alias" in
638 NONE
) build_alias
=$host_alias ;;
639 *) build_alias
=$nonopt ;;
643 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
644 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
645 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
646 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
647 echo "$ac_t""$build" 1>&6
649 test "$host_alias" != "$target_alias" &&
650 test "$program_prefix$program_suffix$program_transform_name" = \
652 program_prefix
=${target_alias}-
655 # Find a good install program. We prefer a C program (faster),
656 # so one script is as good as another. But avoid the broken or
657 # incompatible versions:
658 # SysV /etc/install, /usr/sbin/install
659 # SunOS /usr/etc/install
662 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
663 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
664 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
665 # ./install, which can be erroneously created by make from ./install.sh.
666 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
667 echo "configure:668: checking for a BSD compatible install" >&5
668 if test -z "$INSTALL"; then
669 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
670 echo $ac_n "(cached) $ac_c" 1>&6
672 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
673 for ac_dir
in $PATH; do
674 # Account for people who put trailing slashes in PATH elements.
676 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
678 # OSF1 and SCO ODT 3.0 have their own names for install.
679 # Don't use installbsd from OSF since it installs stuff as root
681 for ac_prog
in ginstall scoinst
install; do
682 if test -f $ac_dir/$ac_prog; then
683 if test $ac_prog = install &&
684 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
685 # AIX install. It has an incompatible calling convention.
688 ac_cv_path_install
="$ac_dir/$ac_prog -c"
699 if test "${ac_cv_path_install+set}" = set; then
700 INSTALL
="$ac_cv_path_install"
702 # As a last resort, use the slow shell script. We don't cache a
703 # path for INSTALL within a source directory, because that will
704 # break other packages using the cache if that directory is
705 # removed, or if the path is relative.
706 INSTALL
="$ac_install_sh"
709 echo "$ac_t""$INSTALL" 1>&6
711 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
712 # It thinks the first close brace ends the variable substitution.
713 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
715 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
717 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
719 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
720 echo "configure:721: checking whether build environment is sane" >&5
723 echo timestamp
> conftestfile
724 # Do `set' in a subshell so we don't clobber the current shell's
725 # arguments. Must try -L first in case configure is actually a
726 # symlink; some systems play weird games with the mod time of symlinks
727 # (eg FreeBSD returns the mod time of the symlink's containing
730 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
731 if test "$*" = "X"; then
733 set X
`ls -t $srcdir/configure conftestfile`
735 if test "$*" != "X $srcdir/configure conftestfile" \
736 && test "$*" != "X conftestfile $srcdir/configure"; then
738 # If neither matched, then we have a broken ls. This can happen
739 # if, for instance, CONFIG_SHELL is bash and it inherits a
740 # broken ls alias from the environment. This has actually
741 # happened. Such a system could not be considered "sane".
742 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
743 alias in your environment" 1>&2; exit 1; }
746 test "$2" = conftestfile
752 { echo "configure: error: newly created file is older than distributed files!
753 Check your system clock" 1>&2; exit 1; }
756 echo "$ac_t""yes" 1>&6
757 if test "$program_transform_name" = s
,x
,x
,; then
758 program_transform_name
=
760 # Double any \ or $. echo might interpret backslashes.
761 cat <<\EOF_SED
> conftestsed
762 s
,\\,\\\\,g
; s
,\$
,$$
,g
764 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
767 test "$program_prefix" != NONE
&&
768 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
769 # Use a double $ so make ignores it.
770 test "$program_suffix" != NONE
&&
771 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
773 # sed with no file args requires a program.
774 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
776 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
777 echo "configure:778: checking whether ${MAKE-make} sets \${MAKE}" >&5
778 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
779 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
780 echo $ac_n "(cached) $ac_c" 1>&6
782 cat > conftestmake
<<\EOF
784 @
echo 'ac_maketemp="${MAKE}"'
786 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
787 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
788 if test -n "$ac_maketemp"; then
789 eval ac_cv_prog_make_
${ac_make}_set
=yes
791 eval ac_cv_prog_make_
${ac_make}_set
=no
795 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
796 echo "$ac_t""yes" 1>&6
799 echo "$ac_t""no" 1>&6
800 SET_MAKE
="MAKE=${MAKE-make}"
808 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
809 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
811 cat >> confdefs.h
<<EOF
812 #define PACKAGE "$PACKAGE"
815 cat >> confdefs.h
<<EOF
816 #define VERSION "$VERSION"
821 missing_dir
=`cd $ac_aux_dir && pwd`
822 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
823 echo "configure:824: checking for working aclocal" >&5
824 # Run test in a subshell; some versions of sh will print an error if
825 # an executable is not found, even if stderr is redirected.
826 # Redirect stdin to placate older versions of autoconf. Sigh.
827 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
829 echo "$ac_t""found" 1>&6
831 ACLOCAL
="$missing_dir/missing aclocal"
832 echo "$ac_t""missing" 1>&6
835 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
836 echo "configure:837: checking for working autoconf" >&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 (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
842 echo "$ac_t""found" 1>&6
844 AUTOCONF
="$missing_dir/missing autoconf"
845 echo "$ac_t""missing" 1>&6
848 echo $ac_n "checking for working automake""... $ac_c" 1>&6
849 echo "configure:850: checking for working automake" >&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 (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
855 echo "$ac_t""found" 1>&6
857 AUTOMAKE
="$missing_dir/missing automake"
858 echo "$ac_t""missing" 1>&6
861 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
862 echo "configure:863: checking for working autoheader" >&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 (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
867 AUTOHEADER
=autoheader
868 echo "$ac_t""found" 1>&6
870 AUTOHEADER
="$missing_dir/missing autoheader"
871 echo "$ac_t""missing" 1>&6
874 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
875 echo "configure:876: checking for working makeinfo" >&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 (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
881 echo "$ac_t""found" 1>&6
883 MAKEINFO
="$missing_dir/missing makeinfo"
884 echo "$ac_t""missing" 1>&6
889 # Check whether --enable-shared or --disable-shared was given.
890 if test "${enable_shared+set}" = set; then
891 enableval
="$enable_shared"
894 yes) enable_shared
=yes ;;
895 no
) enable_shared
=no
;;
898 # Look at the argument we got. We use all the common list separators.
899 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
900 for pkg
in $enableval; do
901 if test "X$pkg" = "X$p"; then
912 # Check whether --enable-static or --disable-static was given.
913 if test "${enable_static+set}" = set; then
914 enableval
="$enable_static"
917 yes) enable_static
=yes ;;
918 no
) enable_static
=no
;;
921 # Look at the argument we got. We use all the common list separators.
922 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
923 for pkg
in $enableval; do
924 if test "X$pkg" = "X$p"; then
935 # Check whether --enable-fast-install or --disable-fast-install was given.
936 if test "${enable_fast_install+set}" = set; then
937 enableval
="$enable_fast_install"
940 yes) enable_fast_install
=yes ;;
941 no
) enable_fast_install
=no
;;
943 enable_fast_install
=no
944 # Look at the argument we got. We use all the common list separators.
945 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
946 for pkg
in $enableval; do
947 if test "X$pkg" = "X$p"; then
948 enable_fast_install
=yes
955 enable_fast_install
=yes
958 # Extract the first word of "ranlib", so it can be a program name with args.
959 set dummy ranlib
; ac_word
=$2
960 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
961 echo "configure:962: checking for $ac_word" >&5
962 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
963 echo $ac_n "(cached) $ac_c" 1>&6
965 if test -n "$RANLIB"; then
966 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
968 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
970 for ac_dir
in $ac_dummy; do
971 test -z "$ac_dir" && ac_dir
=.
972 if test -f $ac_dir/$ac_word; then
973 ac_cv_prog_RANLIB
="ranlib"
978 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
981 RANLIB
="$ac_cv_prog_RANLIB"
982 if test -n "$RANLIB"; then
983 echo "$ac_t""$RANLIB" 1>&6
985 echo "$ac_t""no" 1>&6
988 # Extract the first word of "gcc", so it can be a program name with args.
989 set dummy gcc
; ac_word
=$2
990 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
991 echo "configure:992: checking for $ac_word" >&5
992 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
993 echo $ac_n "(cached) $ac_c" 1>&6
995 if test -n "$CC"; then
996 ac_cv_prog_CC
="$CC" # Let the user override the test.
998 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1000 for ac_dir
in $ac_dummy; do
1001 test -z "$ac_dir" && ac_dir
=.
1002 if test -f $ac_dir/$ac_word; then
1011 if test -n "$CC"; then
1012 echo "$ac_t""$CC" 1>&6
1014 echo "$ac_t""no" 1>&6
1017 if test -z "$CC"; then
1018 # Extract the first word of "cc", so it can be a program name with args.
1019 set dummy cc
; ac_word
=$2
1020 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1021 echo "configure:1022: checking for $ac_word" >&5
1022 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1023 echo $ac_n "(cached) $ac_c" 1>&6
1025 if test -n "$CC"; then
1026 ac_cv_prog_CC
="$CC" # Let the user override the test.
1028 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1031 for ac_dir
in $ac_dummy; do
1032 test -z "$ac_dir" && ac_dir
=.
1033 if test -f $ac_dir/$ac_word; then
1034 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1035 ac_prog_rejected
=yes
1043 if test $ac_prog_rejected = yes; then
1044 # We found a bogon in the path, so make sure we never use it.
1045 set dummy
$ac_cv_prog_CC
1047 if test $# -gt 0; then
1048 # We chose a different compiler from the bogus one.
1049 # However, it has the same basename, so the bogon will be chosen
1050 # first if we set CC to just the basename; use the full file name.
1052 set dummy
"$ac_dir/$ac_word" "$@"
1060 if test -n "$CC"; then
1061 echo "$ac_t""$CC" 1>&6
1063 echo "$ac_t""no" 1>&6
1066 if test -z "$CC"; then
1067 case "`uname -s`" in
1069 # Extract the first word of "cl", so it can be a program name with args.
1070 set dummy cl
; ac_word
=$2
1071 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1072 echo "configure:1073: checking for $ac_word" >&5
1073 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1074 echo $ac_n "(cached) $ac_c" 1>&6
1076 if test -n "$CC"; then
1077 ac_cv_prog_CC
="$CC" # Let the user override the test.
1079 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1081 for ac_dir
in $ac_dummy; do
1082 test -z "$ac_dir" && ac_dir
=.
1083 if test -f $ac_dir/$ac_word; then
1092 if test -n "$CC"; then
1093 echo "$ac_t""$CC" 1>&6
1095 echo "$ac_t""no" 1>&6
1100 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1103 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1104 echo "configure:1105: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1107 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1108 ac_cpp
='$CPP $CPPFLAGS'
1109 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1110 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1111 cross_compiling
=$ac_cv_prog_cc_cross
1113 cat > conftest.
$ac_ext << EOF
1115 #line 1116 "configure"
1116 #include "confdefs.h"
1120 if { (eval echo configure
:1121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1121 ac_cv_prog_cc_works
=yes
1122 # If we can't run a trivial program, we are probably using a cross compiler.
1123 if (.
/conftest
; exit) 2>/dev
/null
; then
1124 ac_cv_prog_cc_cross
=no
1126 ac_cv_prog_cc_cross
=yes
1129 echo "configure: failed program was:" >&5
1130 cat conftest.
$ac_ext >&5
1131 ac_cv_prog_cc_works
=no
1135 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1136 ac_cpp
='$CPP $CPPFLAGS'
1137 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1138 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1139 cross_compiling
=$ac_cv_prog_cc_cross
1141 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1142 if test $ac_cv_prog_cc_works = no
; then
1143 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1145 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1146 echo "configure:1147: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1147 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1148 cross_compiling
=$ac_cv_prog_cc_cross
1150 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1151 echo "configure:1152: checking whether we are using GNU C" >&5
1152 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1153 echo $ac_n "(cached) $ac_c" 1>&6
1155 cat > conftest.c
<<EOF
1160 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1161: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1167 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1169 if test $ac_cv_prog_gcc = yes; then
1175 ac_test_CFLAGS
="${CFLAGS+set}"
1176 ac_save_CFLAGS
="$CFLAGS"
1178 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1179 echo "configure:1180: checking whether ${CC-cc} accepts -g" >&5
1180 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1181 echo $ac_n "(cached) $ac_c" 1>&6
1183 echo 'void f(){}' > conftest.c
1184 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1193 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1194 if test "$ac_test_CFLAGS" = set; then
1195 CFLAGS
="$ac_save_CFLAGS"
1196 elif test $ac_cv_prog_cc_g = yes; then
1197 if test "$GCC" = yes; then
1203 if test "$GCC" = yes; then
1210 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1211 if test "${with_gnu_ld+set}" = set; then
1212 withval
="$with_gnu_ld"
1213 test "$withval" = no || with_gnu_ld
=yes
1219 if test "$ac_cv_prog_gcc" = yes; then
1220 # Check if gcc -print-prog-name=ld gives a path.
1221 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1222 echo "configure:1223: checking for ld used by GCC" >&5
1223 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1225 # Accept absolute paths.
1226 /* |
[A-Za-z
]:[\\/]*)
1227 re_direlt
='/[^/][^/]*/\.\./'
1228 # Canonicalize the path of ld
1229 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1230 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1231 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1233 test -z "$LD" && LD
="$ac_prog"
1236 # If it fails, then pretend we aren't using GCC.
1240 # If it is relative, then search for the first ld in PATH.
1244 elif test "$with_gnu_ld" = yes; then
1245 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1246 echo "configure:1247: checking for GNU ld" >&5
1248 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1249 echo "configure:1250: checking for non-GNU ld" >&5
1251 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1252 echo $ac_n "(cached) $ac_c" 1>&6
1254 if test -z "$LD"; then
1255 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1256 for ac_dir
in $PATH; do
1257 test -z "$ac_dir" && ac_dir
=.
1258 if test -f "$ac_dir/$ac_prog"; then
1259 ac_cv_path_LD
="$ac_dir/$ac_prog"
1260 # Check to see if the program is GNU ld. I'd rather use --version,
1261 # but apparently some GNU ld's only accept -v.
1262 # Break only if it was the GNU/non-GNU ld that we prefer.
1263 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1264 test "$with_gnu_ld" != no
&& break
1266 test "$with_gnu_ld" != yes && break
1272 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1277 if test -n "$LD"; then
1278 echo "$ac_t""$LD" 1>&6
1280 echo "$ac_t""no" 1>&6
1282 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1284 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1285 echo "configure:1286: checking if the linker ($LD) is GNU ld" >&5
1286 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1287 echo $ac_n "(cached) $ac_c" 1>&6
1289 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1290 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1291 ac_cv_prog_gnu_ld
=yes
1293 ac_cv_prog_gnu_ld
=no
1297 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1300 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1301 echo "configure:1302: checking for BSD-compatible nm" >&5
1302 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1303 echo $ac_n "(cached) $ac_c" 1>&6
1305 if test -n "$NM"; then
1306 # Let the user override the test.
1309 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1310 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1311 test -z "$ac_dir" && ac_dir
=.
1312 if test -f $ac_dir/nm
; then
1313 # Check to see if the nm accepts a BSD-compat flag.
1314 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1315 # nm: unknown option "B" ignored
1316 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1317 ac_cv_path_NM
="$ac_dir/nm -B"
1319 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1320 ac_cv_path_NM
="$ac_dir/nm -p"
1323 ac_cv_path_NM
=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1324 continue # so that we can try to find one that supports BSD flags
1329 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1334 echo "$ac_t""$NM" 1>&6
1337 # Check for command to grab the raw symbol name followed by C symbol from nm.
1338 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
1339 echo "configure:1340: checking command to parse $NM output" >&5
1340 if eval "test \"`echo '$''{'ac_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
1341 echo $ac_n "(cached) $ac_c" 1>&6
1343 # These are sane defaults that work on at least a few old systems.
1344 # {They come from Ultrix. What could be older than Ultrix?!! ;)}
1346 # Character class describing NM global symbol codes.
1347 ac_symcode
='[BCDEGRST]'
1349 # Regexp to match symbols that can be accessed directly from C.
1350 ac_sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
1352 # Transform the above into a raw symbol and a C symbol.
1353 ac_symxfrm
='\1 \2\3 \3'
1355 # Transform an extracted symbol line into a proper C declaration
1356 ac_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
1358 # Define system-specific variables.
1364 ac_symcode
='[ABCDGISTW]'
1367 ac_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
1370 ac_symcode
='[BCDEGRST]'
1377 # If we're using GNU nm, then use its standard symbol codes.
1378 if $NM -V 2>&1 |
egrep '(GNU|with BFD)' > /dev
/null
; then
1379 ac_symcode
='[ABCDGISTW]'
1382 # Try without a prefix undercore, then with it.
1383 for ac_symprfx
in "" "_"; do
1385 ac_cv_sys_global_symbol_pipe
="sed -n -e 's/^.* \($ac_symcode\) *\($ac_symprfx\)$ac_sympat$/$ac_symxfrm/p'"
1387 # Check to see that the pipe works correctly.
1389 rm -f conftest.
$ac_ext
1390 cat > conftest.
$ac_ext <<EOF
1395 void nm_test_func(){}
1399 int main(){nm_test_var='a';nm_test_func;return 0;}
1402 if { (eval echo configure
:1403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1403 # Now try to grab the symbols.
1404 ac_nlist
=conftest.nm
1406 if { (eval echo configure
:1407: \"$NM conftest.
$ac_objext \|
$ac_cv_sys_global_symbol_pipe \
> $ac_nlist\") 1>&5; (eval $NM conftest.
$ac_objext \|
$ac_cv_sys_global_symbol_pipe \
> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
1408 # Try sorting and uniquifying the output.
1409 if sort "$ac_nlist" |
uniq > "$ac_nlist"T
; then
1410 mv -f "$ac_nlist"T
"$ac_nlist"
1415 # Make sure that we snagged all the symbols we need.
1416 if egrep ' nm_test_var$' "$ac_nlist" >/dev
/null
; then
1417 if egrep ' nm_test_func$' "$ac_nlist" >/dev
/null
; then
1418 cat <<EOF > conftest.c
1424 # Now generate the symbol file.
1425 eval "$ac_global_symbol_to_cdecl"' < "$ac_nlist" >> conftest.c'
1427 cat <<EOF >> conftest.c
1428 #if defined (__STDC__) && __STDC__
1429 # define lt_ptr_t void *
1431 # define lt_ptr_t char *
1435 /* The mapping between symbol names and symbols. */
1440 lt_preloaded_symbols[] =
1443 sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$ac_nlist" >> conftest.c
1444 cat <<\EOF
>> conftest.c
1452 # Now try linking the two files.
1453 mv conftest.
$ac_objext conftestm.
$ac_objext
1454 ac_save_LIBS
="$LIBS"
1455 ac_save_CFLAGS
="$CFLAGS"
1456 LIBS
="conftestm.$ac_objext"
1457 CFLAGS
="$CFLAGS$no_builtin_flag"
1458 if { (eval echo configure
:1459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1461 echo "configure: failed program was:" >&5
1464 LIBS
="$ac_save_LIBS"
1465 CFLAGS
="$ac_save_CFLAGS"
1467 echo "cannot find nm_test_func in $ac_nlist" >&5
1470 echo "cannot find nm_test_var in $ac_nlist" >&5
1473 echo "cannot run $ac_cv_sys_global_symbol_pipe" >&5
1476 echo "$progname: failed program was:" >&5
1481 # Do not use the global_symbol_pipe unless it works.
1482 if test "$ac_pipe_works" = yes; then
1483 if test x
"$ac_symprfx" = x
"_"; then
1484 ac_cv_sys_symbol_underscore
=yes
1486 ac_cv_sys_symbol_underscore
=no
1490 ac_cv_sys_global_symbol_pipe
=
1498 if test -z "$ac_cv_sys_global_symbol_pipe"; then
1501 echo "$ac_t""$ac_result" 1>&6
1503 echo $ac_n "checking for _ prefix in compiled symbols""... $ac_c" 1>&6
1504 echo "configure:1505: checking for _ prefix in compiled symbols" >&5
1505 if eval "test \"`echo '$''{'ac_cv_sys_symbol_underscore'+set}'`\" = set"; then
1506 echo $ac_n "(cached) $ac_c" 1>&6
1508 ac_cv_sys_symbol_underscore
=no
1509 cat > conftest.
$ac_ext <<EOF
1510 void nm_test_func(){}
1511 int main(){nm_test_func;return 0;}
1513 if { (eval echo configure
:1514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1514 # Now try to grab the symbols.
1515 ac_nlist
=conftest.nm
1516 if { (eval echo configure
:1517: \"$NM conftest.
$ac_objext \|
$ac_cv_sys_global_symbol_pipe \
> $ac_nlist\") 1>&5; (eval $NM conftest.
$ac_objext \|
$ac_cv_sys_global_symbol_pipe \
> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
1517 # See whether the symbols have a leading underscore.
1518 if egrep '^. _nm_test_func' "$ac_nlist" >/dev
/null
; then
1519 ac_cv_sys_symbol_underscore
=yes
1521 if egrep '^. nm_test_func ' "$ac_nlist" >/dev
/null
; then
1524 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
1528 echo "configure: cannot run $ac_cv_sys_global_symbol_pipe" >&5
1531 echo "configure: failed program was:" >&5
1538 echo "$ac_t""$ac_cv_sys_symbol_underscore" 1>&6
1539 USE_SYMBOL_UNDERSCORE
=${ac_cv_sys_symbol_underscore=no}
1541 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1542 echo "configure:1543: checking whether ln -s works" >&5
1543 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1544 echo $ac_n "(cached) $ac_c" 1>&6
1547 if ln -s X conftestdata
2>/dev
/null
1550 ac_cv_prog_LN_S
="ln -s"
1555 LN_S
="$ac_cv_prog_LN_S"
1556 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1557 echo "$ac_t""yes" 1>&6
1559 echo "$ac_t""no" 1>&6
1562 if test $host != $build; then
1563 ac_tool_prefix
=${host_alias}-
1569 # Check for any special flags to pass to ltconfig.
1570 libtool_flags
="--cache-file=$cache_file"
1571 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1572 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1573 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1574 test "$lt_dlopen" = yes && libtool_flags
="$libtool_flags --enable-dlopen"
1575 test "$silent" = yes && libtool_flags
="$libtool_flags --silent"
1576 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1577 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1579 # Some flags need to be propagated to the compiler or linker for good
1583 # Find out which ABI we are using.
1584 echo '#line 1585 "configure"' > conftest.
$ac_ext
1585 if { (eval echo configure
:1586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1586 case "`/usr/bin/file conftest.o`" in
1602 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1603 SAVE_CFLAGS
="$CFLAGS"
1604 CFLAGS
="$CFLAGS -belf"
1605 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1606 echo "configure:1607: checking whether the C compiler needs -belf" >&5
1607 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1608 echo $ac_n "(cached) $ac_c" 1>&6
1610 cat > conftest.
$ac_ext <<EOF
1611 #line 1612 "configure"
1612 #include "confdefs.h"
1618 if { (eval echo configure
:1619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1620 lt_cv_cc_needs_belf
=yes
1622 echo "configure: failed program was:" >&5
1623 cat conftest.
$ac_ext >&5
1625 lt_cv_cc_needs_belf
=no
1630 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1631 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
1632 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1633 CFLAGS
="$SAVE_CFLAGS"
1638 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
1639 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
1640 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1641 echo "configure:1642: checking for $ac_word" >&5
1642 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1643 echo $ac_n "(cached) $ac_c" 1>&6
1645 if test -n "$DLLTOOL"; then
1646 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
1648 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1650 for ac_dir
in $ac_dummy; do
1651 test -z "$ac_dir" && ac_dir
=.
1652 if test -f $ac_dir/$ac_word; then
1653 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
1660 DLLTOOL
="$ac_cv_prog_DLLTOOL"
1661 if test -n "$DLLTOOL"; then
1662 echo "$ac_t""$DLLTOOL" 1>&6
1664 echo "$ac_t""no" 1>&6
1668 if test -z "$ac_cv_prog_DLLTOOL"; then
1669 if test -n "$ac_tool_prefix"; then
1670 # Extract the first word of "dlltool", so it can be a program name with args.
1671 set dummy dlltool
; ac_word
=$2
1672 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1673 echo "configure:1674: checking for $ac_word" >&5
1674 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1675 echo $ac_n "(cached) $ac_c" 1>&6
1677 if test -n "$DLLTOOL"; then
1678 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
1680 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1682 for ac_dir
in $ac_dummy; do
1683 test -z "$ac_dir" && ac_dir
=.
1684 if test -f $ac_dir/$ac_word; then
1685 ac_cv_prog_DLLTOOL
="dlltool"
1690 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL
="false"
1693 DLLTOOL
="$ac_cv_prog_DLLTOOL"
1694 if test -n "$DLLTOOL"; then
1695 echo "$ac_t""$DLLTOOL" 1>&6
1697 echo "$ac_t""no" 1>&6
1705 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1706 set dummy
${ac_tool_prefix}as
; ac_word
=$2
1707 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1708 echo "configure:1709: checking for $ac_word" >&5
1709 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1710 echo $ac_n "(cached) $ac_c" 1>&6
1712 if test -n "$AS"; then
1713 ac_cv_prog_AS
="$AS" # Let the user override the test.
1715 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1717 for ac_dir
in $ac_dummy; do
1718 test -z "$ac_dir" && ac_dir
=.
1719 if test -f $ac_dir/$ac_word; then
1720 ac_cv_prog_AS
="${ac_tool_prefix}as"
1728 if test -n "$AS"; then
1729 echo "$ac_t""$AS" 1>&6
1731 echo "$ac_t""no" 1>&6
1735 if test -z "$ac_cv_prog_AS"; then
1736 if test -n "$ac_tool_prefix"; then
1737 # Extract the first word of "as", so it can be a program name with args.
1738 set dummy as
; ac_word
=$2
1739 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1740 echo "configure:1741: checking for $ac_word" >&5
1741 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1742 echo $ac_n "(cached) $ac_c" 1>&6
1744 if test -n "$AS"; then
1745 ac_cv_prog_AS
="$AS" # Let the user override the test.
1747 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1749 for ac_dir
in $ac_dummy; do
1750 test -z "$ac_dir" && ac_dir
=.
1751 if test -f $ac_dir/$ac_word; then
1757 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS
="false"
1761 if test -n "$AS"; then
1762 echo "$ac_t""$AS" 1>&6
1764 echo "$ac_t""no" 1>&6
1777 # enable the --disable-libtool-lock switch
1779 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1780 if test "${enable_libtool_lock+set}" = set; then
1781 enableval
="$enable_libtool_lock"
1782 need_locks
=$enableval
1788 if test x
"$need_locks" = xno
; then
1789 libtool_flags
="$libtool_flags --disable-lock"
1793 # Save cache, so that ltconfig can load it
1794 cat > confcache
<<\EOF
1795 # This file is a shell script that caches the results of configure
1796 # tests run on this system so they can be shared between configure
1797 # scripts and configure runs. It is not useful on other systems.
1798 # If it contains results you don't want to keep, you may remove or edit it.
1800 # By default, configure uses ./config.cache as the cache file,
1801 # creating it if it does not exist already. You can give configure
1802 # the --cache-file=FILE option to use a different cache file; that is
1803 # what configure does when it calls configure scripts in
1804 # subdirectories, so they share the cache.
1805 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1806 # config.status only pays attention to the cache file if you give it the
1807 # --recheck option to rerun configure.
1810 # The following way of writing the cache mishandles newlines in values,
1811 # but we know of no workaround that is simple, portable, and efficient.
1812 # So, don't put newlines in cache variables' values.
1813 # Ultrix sh set writes to stderr and can't be redirected directly,
1814 # and sets the high bit in the cache file unless we assign to the vars.
1816 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1818 # `set' does not quote correctly, so add quotes (double-quote substitution
1819 # turns \\\\ into \\, and sed turns \\ into \).
1821 -e "s/'/'\\\\''/g" \
1822 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1825 # `set' quotes correctly as required by POSIX, so do not add quotes.
1826 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1829 if cmp -s $cache_file confcache
; then
1832 if test -w $cache_file; then
1833 echo "updating cache $cache_file"
1834 cat confcache
> $cache_file
1836 echo "not updating unwritable cache $cache_file"
1842 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1843 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1844 LD
="$LD" NM
="$NM" RANLIB
="$RANLIB" LN_S
="$LN_S" \
1845 DLLTOOL
="$DLLTOOL" AS
="$AS" \
1846 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
1847 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$host \
1848 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1850 # Reload cache, that may have been modified by ltconfig
1851 if test -r "$cache_file"; then
1852 echo "loading cache $cache_file"
1855 echo "creating cache $cache_file"
1860 # This can be used to rebuild libtool when needed
1861 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1863 # Always use our own libtool.
1864 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1866 # Redirect the config.log output again, so that the ltconfig log is not
1867 # clobbered by the next message.
1868 exec 5>>.
/config.log
1871 # Check whether --enable-targets or --disable-targets was given.
1872 if test "${enable_targets+set}" = set; then
1873 enableval
="$enable_targets"
1874 case "${enableval}" in
1875 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
1877 no
) enable_targets
= ;;
1878 *) enable_targets
=$enableval ;;
1881 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
1882 if test "${enable_64_bit_bfd+set}" = set; then
1883 enableval
="$enable_64_bit_bfd"
1884 case "${enableval}" in
1887 *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;;
1897 if test -z "$target" ; then
1898 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
1900 if test -z "$host" ; then
1901 { echo "configure: error: Unrecognized host system type; please check config.sub." 1>&2; exit 1; }
1904 # host-specific stuff:
1906 # Extract the first word of "gcc", so it can be a program name with args.
1907 set dummy gcc
; ac_word
=$2
1908 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1909 echo "configure:1910: checking for $ac_word" >&5
1910 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1911 echo $ac_n "(cached) $ac_c" 1>&6
1913 if test -n "$CC"; then
1914 ac_cv_prog_CC
="$CC" # Let the user override the test.
1916 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1918 for ac_dir
in $ac_dummy; do
1919 test -z "$ac_dir" && ac_dir
=.
1920 if test -f $ac_dir/$ac_word; then
1929 if test -n "$CC"; then
1930 echo "$ac_t""$CC" 1>&6
1932 echo "$ac_t""no" 1>&6
1935 if test -z "$CC"; then
1936 # Extract the first word of "cc", so it can be a program name with args.
1937 set dummy cc
; ac_word
=$2
1938 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1939 echo "configure:1940: checking for $ac_word" >&5
1940 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1941 echo $ac_n "(cached) $ac_c" 1>&6
1943 if test -n "$CC"; then
1944 ac_cv_prog_CC
="$CC" # Let the user override the test.
1946 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1949 for ac_dir
in $ac_dummy; do
1950 test -z "$ac_dir" && ac_dir
=.
1951 if test -f $ac_dir/$ac_word; then
1952 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1953 ac_prog_rejected
=yes
1961 if test $ac_prog_rejected = yes; then
1962 # We found a bogon in the path, so make sure we never use it.
1963 set dummy
$ac_cv_prog_CC
1965 if test $# -gt 0; then
1966 # We chose a different compiler from the bogus one.
1967 # However, it has the same basename, so the bogon will be chosen
1968 # first if we set CC to just the basename; use the full file name.
1970 set dummy
"$ac_dir/$ac_word" "$@"
1978 if test -n "$CC"; then
1979 echo "$ac_t""$CC" 1>&6
1981 echo "$ac_t""no" 1>&6
1984 if test -z "$CC"; then
1985 case "`uname -s`" in
1987 # Extract the first word of "cl", so it can be a program name with args.
1988 set dummy cl
; ac_word
=$2
1989 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1990 echo "configure:1991: checking for $ac_word" >&5
1991 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1992 echo $ac_n "(cached) $ac_c" 1>&6
1994 if test -n "$CC"; then
1995 ac_cv_prog_CC
="$CC" # Let the user override the test.
1997 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1999 for ac_dir
in $ac_dummy; do
2000 test -z "$ac_dir" && ac_dir
=.
2001 if test -f $ac_dir/$ac_word; then
2010 if test -n "$CC"; then
2011 echo "$ac_t""$CC" 1>&6
2013 echo "$ac_t""no" 1>&6
2018 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2021 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2022 echo "configure:2023: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2025 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2026 ac_cpp
='$CPP $CPPFLAGS'
2027 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2028 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2029 cross_compiling
=$ac_cv_prog_cc_cross
2031 cat > conftest.
$ac_ext << EOF
2033 #line 2034 "configure"
2034 #include "confdefs.h"
2038 if { (eval echo configure
:2039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2039 ac_cv_prog_cc_works
=yes
2040 # If we can't run a trivial program, we are probably using a cross compiler.
2041 if (.
/conftest
; exit) 2>/dev
/null
; then
2042 ac_cv_prog_cc_cross
=no
2044 ac_cv_prog_cc_cross
=yes
2047 echo "configure: failed program was:" >&5
2048 cat conftest.
$ac_ext >&5
2049 ac_cv_prog_cc_works
=no
2053 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2054 ac_cpp
='$CPP $CPPFLAGS'
2055 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2056 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2057 cross_compiling
=$ac_cv_prog_cc_cross
2059 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2060 if test $ac_cv_prog_cc_works = no
; then
2061 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2063 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2064 echo "configure:2065: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2065 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2066 cross_compiling
=$ac_cv_prog_cc_cross
2068 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2069 echo "configure:2070: checking whether we are using GNU C" >&5
2070 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2071 echo $ac_n "(cached) $ac_c" 1>&6
2073 cat > conftest.c
<<EOF
2078 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2085 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2087 if test $ac_cv_prog_gcc = yes; then
2093 ac_test_CFLAGS
="${CFLAGS+set}"
2094 ac_save_CFLAGS
="$CFLAGS"
2096 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2097 echo "configure:2098: checking whether ${CC-cc} accepts -g" >&5
2098 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2099 echo $ac_n "(cached) $ac_c" 1>&6
2101 echo 'void f(){}' > conftest.c
2102 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2111 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2112 if test "$ac_test_CFLAGS" = set; then
2113 CFLAGS
="$ac_save_CFLAGS"
2114 elif test $ac_cv_prog_cc_g = yes; then
2115 if test "$GCC" = yes; then
2121 if test "$GCC" = yes; then
2128 # Find a good install program. We prefer a C program (faster),
2129 # so one script is as good as another. But avoid the broken or
2130 # incompatible versions:
2131 # SysV /etc/install, /usr/sbin/install
2132 # SunOS /usr/etc/install
2133 # IRIX /sbin/install
2135 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2136 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2137 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2138 # ./install, which can be erroneously created by make from ./install.sh.
2139 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2140 echo "configure:2141: checking for a BSD compatible install" >&5
2141 if test -z "$INSTALL"; then
2142 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2143 echo $ac_n "(cached) $ac_c" 1>&6
2145 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
2146 for ac_dir
in $PATH; do
2147 # Account for people who put trailing slashes in PATH elements.
2149 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2151 # OSF1 and SCO ODT 3.0 have their own names for install.
2152 # Don't use installbsd from OSF since it installs stuff as root
2154 for ac_prog
in ginstall scoinst
install; do
2155 if test -f $ac_dir/$ac_prog; then
2156 if test $ac_prog = install &&
2157 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2158 # AIX install. It has an incompatible calling convention.
2161 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2172 if test "${ac_cv_path_install+set}" = set; then
2173 INSTALL
="$ac_cv_path_install"
2175 # As a last resort, use the slow shell script. We don't cache a
2176 # path for INSTALL within a source directory, because that will
2177 # break other packages using the cache if that directory is
2178 # removed, or if the path is relative.
2179 INSTALL
="$ac_install_sh"
2182 echo "$ac_t""$INSTALL" 1>&6
2184 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2185 # It thinks the first close brace ends the variable substitution.
2186 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2188 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
2190 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2194 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2195 echo "configure:2196: checking how to run the C preprocessor" >&5
2196 # On Suns, sometimes $CPP names a directory.
2197 if test -n "$CPP" && test -d "$CPP"; then
2200 if test -z "$CPP"; then
2201 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2202 echo $ac_n "(cached) $ac_c" 1>&6
2204 # This must be in double quotes, not single quotes, because CPP may get
2205 # substituted into the Makefile and "${CC-cc}" will confuse make.
2207 # On the NeXT, cc -E runs the code through the compiler's parser,
2208 # not just through cpp.
2209 cat > conftest.
$ac_ext <<EOF
2210 #line 2211 "configure"
2211 #include "confdefs.h"
2215 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2216 { (eval echo configure
:2217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2217 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2218 if test -z "$ac_err"; then
2222 echo "configure: failed program was:" >&5
2223 cat conftest.
$ac_ext >&5
2225 CPP
="${CC-cc} -E -traditional-cpp"
2226 cat > conftest.
$ac_ext <<EOF
2227 #line 2228 "configure"
2228 #include "confdefs.h"
2232 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2233 { (eval echo configure
:2234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2234 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2235 if test -z "$ac_err"; then
2239 echo "configure: failed program was:" >&5
2240 cat conftest.
$ac_ext >&5
2242 CPP
="${CC-cc} -nologo -E"
2243 cat > conftest.
$ac_ext <<EOF
2244 #line 2245 "configure"
2245 #include "confdefs.h"
2249 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2250 { (eval echo configure
:2251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2251 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2252 if test -z "$ac_err"; then
2256 echo "configure: failed program was:" >&5
2257 cat conftest.
$ac_ext >&5
2266 ac_cv_prog_CPP
="$CPP"
2268 CPP
="$ac_cv_prog_CPP"
2270 ac_cv_prog_CPP
="$CPP"
2272 echo "$ac_t""$CPP" 1>&6
2274 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2275 echo "configure:2276: checking for POSIXized ISC" >&5
2276 if test -d /etc
/conf
/kconfig.d
&&
2277 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
2279 echo "$ac_t""yes" 1>&6
2280 ISC
=yes # If later tests want to check for ISC.
2281 cat >> confdefs.h
<<\EOF
2282 #define _POSIX_SOURCE 1
2285 if test "$GCC" = yes; then
2291 echo "$ac_t""no" 1>&6
2295 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2296 echo "configure:2297: checking for ANSI C header files" >&5
2297 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2298 echo $ac_n "(cached) $ac_c" 1>&6
2300 cat > conftest.
$ac_ext <<EOF
2301 #line 2302 "configure"
2302 #include "confdefs.h"
2308 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2309 { (eval echo configure
:2310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2310 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2311 if test -z "$ac_err"; then
2313 ac_cv_header_stdc
=yes
2316 echo "configure: failed program was:" >&5
2317 cat conftest.
$ac_ext >&5
2319 ac_cv_header_stdc
=no
2323 if test $ac_cv_header_stdc = yes; then
2324 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2325 cat > conftest.
$ac_ext <<EOF
2326 #line 2327 "configure"
2327 #include "confdefs.h"
2330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2331 egrep "memchr" >/dev
/null
2>&1; then
2335 ac_cv_header_stdc
=no
2341 if test $ac_cv_header_stdc = yes; then
2342 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2343 cat > conftest.
$ac_ext <<EOF
2344 #line 2345 "configure"
2345 #include "confdefs.h"
2348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2349 egrep "free" >/dev
/null
2>&1; then
2353 ac_cv_header_stdc
=no
2359 if test $ac_cv_header_stdc = yes; then
2360 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2361 if test "$cross_compiling" = yes; then
2364 cat > conftest.
$ac_ext <<EOF
2365 #line 2366 "configure"
2366 #include "confdefs.h"
2368 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2369 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2370 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2371 int main () { int i; for (i = 0; i < 256; i++)
2372 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2376 if { (eval echo configure
:2377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2380 echo "configure: failed program was:" >&5
2381 cat conftest.
$ac_ext >&5
2383 ac_cv_header_stdc
=no
2391 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2392 if test $ac_cv_header_stdc = yes; then
2393 cat >> confdefs.h
<<\EOF
2394 #define STDC_HEADERS 1
2399 echo $ac_n "checking for working const""... $ac_c" 1>&6
2400 echo "configure:2401: checking for working const" >&5
2401 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2402 echo $ac_n "(cached) $ac_c" 1>&6
2404 cat > conftest.
$ac_ext <<EOF
2405 #line 2406 "configure"
2406 #include "confdefs.h"
2410 /* Ultrix mips cc rejects this. */
2411 typedef int charset[2]; const charset x;
2412 /* SunOS 4.1.1 cc rejects this. */
2413 char const *const *ccp;
2415 /* NEC SVR4.0.2 mips cc rejects this. */
2416 struct point {int x, y;};
2417 static struct point const zero = {0,0};
2418 /* AIX XL C 1.02.0.0 rejects this.
2419 It does not let you subtract one const X* pointer from another in an arm
2420 of an if-expression whose if-part is not a constant expression */
2421 const char *g = "string";
2422 ccp = &g + (g ? g-g : 0);
2423 /* HPUX 7.0 cc rejects these. */
2426 ccp = (char const *const *) p;
2427 { /* SCO 3.2v4 cc rejects this. */
2429 char const *s = 0 ? (char *) 0 : (char const *) 0;
2433 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2435 const int *foo = &x[0];
2438 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2439 typedef const int *iptr;
2443 { /* AIX XL C 1.02.0.0 rejects this saying
2444 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2445 struct s { int j; const int *ap[3]; };
2446 struct s *b; b->j = 5;
2448 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2454 if { (eval echo configure
:2455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2458 echo "configure: failed program was:" >&5
2459 cat conftest.
$ac_ext >&5
2466 echo "$ac_t""$ac_cv_c_const" 1>&6
2467 if test $ac_cv_c_const = no
; then
2468 cat >> confdefs.h
<<\EOF
2474 echo $ac_n "checking for inline""... $ac_c" 1>&6
2475 echo "configure:2476: checking for inline" >&5
2476 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2477 echo $ac_n "(cached) $ac_c" 1>&6
2480 for ac_kw
in inline __inline__ __inline
; do
2481 cat > conftest.
$ac_ext <<EOF
2482 #line 2483 "configure"
2483 #include "confdefs.h"
2489 if { (eval echo configure
:2490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2491 ac_cv_c_inline
=$ac_kw; break
2493 echo "configure: failed program was:" >&5
2494 cat conftest.
$ac_ext >&5
2501 echo "$ac_t""$ac_cv_c_inline" 1>&6
2502 case "$ac_cv_c_inline" in
2504 no
) cat >> confdefs.h
<<\EOF
2508 *) cat >> confdefs.h
<<EOF
2509 #define inline $ac_cv_c_inline
2514 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2515 echo "configure:2516: checking for off_t" >&5
2516 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2517 echo $ac_n "(cached) $ac_c" 1>&6
2519 cat > conftest.
$ac_ext <<EOF
2520 #line 2521 "configure"
2521 #include "confdefs.h"
2522 #include <sys/types.h>
2528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2529 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2531 ac_cv_type_off_t
=yes
2539 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2540 if test $ac_cv_type_off_t = no
; then
2541 cat >> confdefs.h
<<\EOF
2547 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2548 echo "configure:2549: checking for size_t" >&5
2549 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2550 echo $ac_n "(cached) $ac_c" 1>&6
2552 cat > conftest.
$ac_ext <<EOF
2553 #line 2554 "configure"
2554 #include "confdefs.h"
2555 #include <sys/types.h>
2561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2562 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2564 ac_cv_type_size_t
=yes
2567 ac_cv_type_size_t
=no
2572 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2573 if test $ac_cv_type_size_t = no
; then
2574 cat >> confdefs.h
<<\EOF
2575 #define size_t unsigned
2580 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2581 # for constant arguments. Useless!
2582 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2583 echo "configure:2584: checking for working alloca.h" >&5
2584 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2585 echo $ac_n "(cached) $ac_c" 1>&6
2587 cat > conftest.
$ac_ext <<EOF
2588 #line 2589 "configure"
2589 #include "confdefs.h"
2592 char *p = alloca(2 * sizeof(int));
2595 if { (eval echo configure
:2596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2597 ac_cv_header_alloca_h
=yes
2599 echo "configure: failed program was:" >&5
2600 cat conftest.
$ac_ext >&5
2602 ac_cv_header_alloca_h
=no
2607 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2608 if test $ac_cv_header_alloca_h = yes; then
2609 cat >> confdefs.h
<<\EOF
2610 #define HAVE_ALLOCA_H 1
2615 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2616 echo "configure:2617: checking for alloca" >&5
2617 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2618 echo $ac_n "(cached) $ac_c" 1>&6
2620 cat > conftest.
$ac_ext <<EOF
2621 #line 2622 "configure"
2622 #include "confdefs.h"
2625 # define alloca __builtin_alloca
2628 # include <malloc.h>
2629 # define alloca _alloca
2632 # include <alloca.h>
2637 # ifndef alloca /* predefined by HP cc +Olibcalls */
2646 char *p = (char *) alloca(1);
2649 if { (eval echo configure
:2650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2651 ac_cv_func_alloca_works
=yes
2653 echo "configure: failed program was:" >&5
2654 cat conftest.
$ac_ext >&5
2656 ac_cv_func_alloca_works
=no
2661 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2662 if test $ac_cv_func_alloca_works = yes; then
2663 cat >> confdefs.h
<<\EOF
2664 #define HAVE_ALLOCA 1
2669 if test $ac_cv_func_alloca_works = no
; then
2670 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2671 # that cause trouble. Some versions do not even contain alloca or
2672 # contain a buggy version. If you still want to use their alloca,
2673 # use ar to extract alloca.o from them instead of compiling alloca.c.
2674 ALLOCA
=alloca.
${ac_objext}
2675 cat >> confdefs.h
<<\EOF
2680 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2681 echo "configure:2682: checking whether alloca needs Cray hooks" >&5
2682 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2683 echo $ac_n "(cached) $ac_c" 1>&6
2685 cat > conftest.
$ac_ext <<EOF
2686 #line 2687 "configure"
2687 #include "confdefs.h"
2688 #if defined(CRAY) && ! defined(CRAY2)
2695 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2696 egrep "webecray" >/dev
/null
2>&1; then
2707 echo "$ac_t""$ac_cv_os_cray" 1>&6
2708 if test $ac_cv_os_cray = yes; then
2709 for ac_func
in _getb67 GETB67 getb67
; do
2710 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2711 echo "configure:2712: checking for $ac_func" >&5
2712 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2713 echo $ac_n "(cached) $ac_c" 1>&6
2715 cat > conftest.
$ac_ext <<EOF
2716 #line 2717 "configure"
2717 #include "confdefs.h"
2718 /* System header to define __stub macros and hopefully few prototypes,
2719 which can conflict with char $ac_func(); below. */
2721 /* Override any gcc2 internal prototype to avoid an error. */
2722 /* We use char because int might match the return type of a gcc2
2723 builtin and then its argument prototype would still apply. */
2728 /* The GNU C library defines this for functions which it implements
2729 to always fail with ENOSYS. Some functions are actually named
2730 something starting with __ and the normal name is an alias. */
2731 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2739 if { (eval echo configure
:2740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2741 eval "ac_cv_func_$ac_func=yes"
2743 echo "configure: failed program was:" >&5
2744 cat conftest.
$ac_ext >&5
2746 eval "ac_cv_func_$ac_func=no"
2751 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2752 echo "$ac_t""yes" 1>&6
2753 cat >> confdefs.h
<<EOF
2754 #define CRAY_STACKSEG_END $ac_func
2759 echo "$ac_t""no" 1>&6
2765 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2766 echo "configure:2767: checking stack direction for C alloca" >&5
2767 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2768 echo $ac_n "(cached) $ac_c" 1>&6
2770 if test "$cross_compiling" = yes; then
2771 ac_cv_c_stack_direction
=0
2773 cat > conftest.
$ac_ext <<EOF
2774 #line 2775 "configure"
2775 #include "confdefs.h"
2776 find_stack_direction ()
2778 static char *addr = 0;
2783 return find_stack_direction ();
2786 return (&dummy > addr) ? 1 : -1;
2790 exit (find_stack_direction() < 0);
2793 if { (eval echo configure
:2794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2795 ac_cv_c_stack_direction
=1
2797 echo "configure: failed program was:" >&5
2798 cat conftest.
$ac_ext >&5
2800 ac_cv_c_stack_direction
=-1
2807 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2808 cat >> confdefs.h
<<EOF
2809 #define STACK_DIRECTION $ac_cv_c_stack_direction
2814 for ac_hdr
in unistd.h
2816 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2817 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2818 echo "configure:2819: checking for $ac_hdr" >&5
2819 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2820 echo $ac_n "(cached) $ac_c" 1>&6
2822 cat > conftest.
$ac_ext <<EOF
2823 #line 2824 "configure"
2824 #include "confdefs.h"
2827 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2828 { (eval echo configure
:2829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2829 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2830 if test -z "$ac_err"; then
2832 eval "ac_cv_header_$ac_safe=yes"
2835 echo "configure: failed program was:" >&5
2836 cat conftest.
$ac_ext >&5
2838 eval "ac_cv_header_$ac_safe=no"
2842 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2843 echo "$ac_t""yes" 1>&6
2844 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2845 cat >> confdefs.h
<<EOF
2846 #define $ac_tr_hdr 1
2850 echo "$ac_t""no" 1>&6
2854 for ac_func
in getpagesize
2856 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2857 echo "configure:2858: checking for $ac_func" >&5
2858 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2859 echo $ac_n "(cached) $ac_c" 1>&6
2861 cat > conftest.
$ac_ext <<EOF
2862 #line 2863 "configure"
2863 #include "confdefs.h"
2864 /* System header to define __stub macros and hopefully few prototypes,
2865 which can conflict with char $ac_func(); below. */
2867 /* Override any gcc2 internal prototype to avoid an error. */
2868 /* We use char because int might match the return type of a gcc2
2869 builtin and then its argument prototype would still apply. */
2874 /* The GNU C library defines this for functions which it implements
2875 to always fail with ENOSYS. Some functions are actually named
2876 something starting with __ and the normal name is an alias. */
2877 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2885 if { (eval echo configure
:2886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2887 eval "ac_cv_func_$ac_func=yes"
2889 echo "configure: failed program was:" >&5
2890 cat conftest.
$ac_ext >&5
2892 eval "ac_cv_func_$ac_func=no"
2897 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2898 echo "$ac_t""yes" 1>&6
2899 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2900 cat >> confdefs.h
<<EOF
2901 #define $ac_tr_func 1
2905 echo "$ac_t""no" 1>&6
2909 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2910 echo "configure:2911: checking for working mmap" >&5
2911 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2912 echo $ac_n "(cached) $ac_c" 1>&6
2914 if test "$cross_compiling" = yes; then
2915 ac_cv_func_mmap_fixed_mapped
=no
2917 cat > conftest.
$ac_ext <<EOF
2918 #line 2919 "configure"
2919 #include "confdefs.h"
2921 /* Thanks to Mike Haertel and Jim Avera for this test.
2922 Here is a matrix of mmap possibilities:
2923 mmap private not fixed
2924 mmap private fixed at somewhere currently unmapped
2925 mmap private fixed at somewhere already mapped
2926 mmap shared not fixed
2927 mmap shared fixed at somewhere currently unmapped
2928 mmap shared fixed at somewhere already mapped
2929 For private mappings, we should verify that changes cannot be read()
2930 back from the file, nor mmap's back from the file at a different
2931 address. (There have been systems where private was not correctly
2932 implemented like the infamous i386 svr4.0, and systems where the
2933 VM page cache was not coherent with the filesystem buffer cache
2934 like early versions of FreeBSD and possibly contemporary NetBSD.)
2935 For shared mappings, we should conversely verify that changes get
2936 propogated back to all the places they're supposed to be.
2938 Grep wants private fixed already mapped.
2939 The main things grep needs to know about mmap are:
2940 * does it exist and is it safe to write into the mmap'd area
2941 * how to use it (BSD variants) */
2942 #include <sys/types.h>
2944 #include <sys/mman.h>
2946 /* This mess was copied from the GNU getpagesize.h. */
2947 #ifndef HAVE_GETPAGESIZE
2948 # ifdef HAVE_UNISTD_H
2949 # include <unistd.h>
2952 /* Assume that all systems that can run configure have sys/param.h. */
2953 # ifndef HAVE_SYS_PARAM_H
2954 # define HAVE_SYS_PARAM_H 1
2957 # ifdef _SC_PAGESIZE
2958 # define getpagesize() sysconf(_SC_PAGESIZE)
2959 # else /* no _SC_PAGESIZE */
2960 # ifdef HAVE_SYS_PARAM_H
2961 # include <sys/param.h>
2962 # ifdef EXEC_PAGESIZE
2963 # define getpagesize() EXEC_PAGESIZE
2964 # else /* no EXEC_PAGESIZE */
2966 # define getpagesize() NBPG * CLSIZE
2969 # endif /* no CLSIZE */
2970 # else /* no NBPG */
2972 # define getpagesize() NBPC
2973 # else /* no NBPC */
2975 # define getpagesize() PAGESIZE
2976 # endif /* PAGESIZE */
2977 # endif /* no NBPC */
2978 # endif /* no NBPG */
2979 # endif /* no EXEC_PAGESIZE */
2980 # else /* no HAVE_SYS_PARAM_H */
2981 # define getpagesize() 8192 /* punt totally */
2982 # endif /* no HAVE_SYS_PARAM_H */
2983 # endif /* no _SC_PAGESIZE */
2985 #endif /* no HAVE_GETPAGESIZE */
2988 extern "C" { void *malloc(unsigned); }
2996 char *data, *data2, *data3;
3000 pagesize = getpagesize();
3003 * First, make a file with some known garbage in it.
3005 data = malloc(pagesize);
3008 for (i = 0; i < pagesize; ++i)
3009 *(data + i) = rand();
3011 fd = creat("conftestmmap", 0600);
3014 if (write(fd, data, pagesize) != pagesize)
3019 * Next, try to mmap the file at a fixed address which
3020 * already has something else allocated at it. If we can,
3021 * also make sure that we see the same garbage.
3023 fd = open("conftestmmap", O_RDWR);
3026 data2 = malloc(2 * pagesize);
3029 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3030 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3031 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3033 for (i = 0; i < pagesize; ++i)
3034 if (*(data + i) != *(data2 + i))
3038 * Finally, make sure that changes to the mapped area
3039 * do not percolate back to the file as seen by read().
3040 * (This is a bug on some variants of i386 svr4.0.)
3042 for (i = 0; i < pagesize; ++i)
3043 *(data2 + i) = *(data2 + i) + 1;
3044 data3 = malloc(pagesize);
3047 if (read(fd, data3, pagesize) != pagesize)
3049 for (i = 0; i < pagesize; ++i)
3050 if (*(data + i) != *(data3 + i))
3053 unlink("conftestmmap");
3058 if { (eval echo configure
:3059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3060 ac_cv_func_mmap_fixed_mapped
=yes
3062 echo "configure: failed program was:" >&5
3063 cat conftest.
$ac_ext >&5
3065 ac_cv_func_mmap_fixed_mapped
=no
3072 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3073 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3074 cat >> confdefs.h
<<\EOF
3081 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3082 unistd.h values.h sys
/param.h
3084 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3085 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3086 echo "configure:3087: checking for $ac_hdr" >&5
3087 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3088 echo $ac_n "(cached) $ac_c" 1>&6
3090 cat > conftest.
$ac_ext <<EOF
3091 #line 3092 "configure"
3092 #include "confdefs.h"
3095 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3096 { (eval echo configure
:3097: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3097 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3098 if test -z "$ac_err"; then
3100 eval "ac_cv_header_$ac_safe=yes"
3103 echo "configure: failed program was:" >&5
3104 cat conftest.
$ac_ext >&5
3106 eval "ac_cv_header_$ac_safe=no"
3110 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3111 echo "$ac_t""yes" 1>&6
3112 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3113 cat >> confdefs.h
<<EOF
3114 #define $ac_tr_hdr 1
3118 echo "$ac_t""no" 1>&6
3122 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3123 __argz_count __argz_stringify __argz_next
3125 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3126 echo "configure:3127: checking for $ac_func" >&5
3127 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3128 echo $ac_n "(cached) $ac_c" 1>&6
3130 cat > conftest.
$ac_ext <<EOF
3131 #line 3132 "configure"
3132 #include "confdefs.h"
3133 /* System header to define __stub macros and hopefully few prototypes,
3134 which can conflict with char $ac_func(); below. */
3136 /* Override any gcc2 internal prototype to avoid an error. */
3137 /* We use char because int might match the return type of a gcc2
3138 builtin and then its argument prototype would still apply. */
3143 /* The GNU C library defines this for functions which it implements
3144 to always fail with ENOSYS. Some functions are actually named
3145 something starting with __ and the normal name is an alias. */
3146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3154 if { (eval echo configure
:3155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3156 eval "ac_cv_func_$ac_func=yes"
3158 echo "configure: failed program was:" >&5
3159 cat conftest.
$ac_ext >&5
3161 eval "ac_cv_func_$ac_func=no"
3166 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3167 echo "$ac_t""yes" 1>&6
3168 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3169 cat >> confdefs.h
<<EOF
3170 #define $ac_tr_func 1
3174 echo "$ac_t""no" 1>&6
3179 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3180 for ac_func
in stpcpy
3182 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3183 echo "configure:3184: checking for $ac_func" >&5
3184 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3185 echo $ac_n "(cached) $ac_c" 1>&6
3187 cat > conftest.
$ac_ext <<EOF
3188 #line 3189 "configure"
3189 #include "confdefs.h"
3190 /* System header to define __stub macros and hopefully few prototypes,
3191 which can conflict with char $ac_func(); below. */
3193 /* Override any gcc2 internal prototype to avoid an error. */
3194 /* We use char because int might match the return type of a gcc2
3195 builtin and then its argument prototype would still apply. */
3200 /* The GNU C library defines this for functions which it implements
3201 to always fail with ENOSYS. Some functions are actually named
3202 something starting with __ and the normal name is an alias. */
3203 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3211 if { (eval echo configure
:3212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3213 eval "ac_cv_func_$ac_func=yes"
3215 echo "configure: failed program was:" >&5
3216 cat conftest.
$ac_ext >&5
3218 eval "ac_cv_func_$ac_func=no"
3223 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3224 echo "$ac_t""yes" 1>&6
3225 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3226 cat >> confdefs.h
<<EOF
3227 #define $ac_tr_func 1
3231 echo "$ac_t""no" 1>&6
3236 if test "${ac_cv_func_stpcpy}" = "yes"; then
3237 cat >> confdefs.h
<<\EOF
3238 #define HAVE_STPCPY 1
3243 if test $ac_cv_header_locale_h = yes; then
3244 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3245 echo "configure:3246: checking for LC_MESSAGES" >&5
3246 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3247 echo $ac_n "(cached) $ac_c" 1>&6
3249 cat > conftest.
$ac_ext <<EOF
3250 #line 3251 "configure"
3251 #include "confdefs.h"
3257 if { (eval echo configure
:3258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3259 am_cv_val_LC_MESSAGES
=yes
3261 echo "configure: failed program was:" >&5
3262 cat conftest.
$ac_ext >&5
3264 am_cv_val_LC_MESSAGES
=no
3269 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3270 if test $am_cv_val_LC_MESSAGES = yes; then
3271 cat >> confdefs.h
<<\EOF
3272 #define HAVE_LC_MESSAGES 1
3277 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3278 echo "configure:3279: checking whether NLS is requested" >&5
3279 # Check whether --enable-nls or --disable-nls was given.
3280 if test "${enable_nls+set}" = set; then
3281 enableval
="$enable_nls"
3287 echo "$ac_t""$USE_NLS" 1>&6
3290 USE_INCLUDED_LIBINTL
=no
3292 if test "$USE_NLS" = "yes"; then
3293 cat >> confdefs.h
<<\EOF
3294 #define ENABLE_NLS 1
3297 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3298 echo "configure:3299: checking whether included gettext is requested" >&5
3299 # Check whether --with-included-gettext or --without-included-gettext was given.
3300 if test "${with_included_gettext+set}" = set; then
3301 withval
="$with_included_gettext"
3302 nls_cv_force_use_gnu_gettext
=$withval
3304 nls_cv_force_use_gnu_gettext
=no
3307 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3309 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
3310 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3312 nls_cv_header_libgt
=
3315 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3316 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3317 echo "configure:3318: checking for libintl.h" >&5
3318 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3319 echo $ac_n "(cached) $ac_c" 1>&6
3321 cat > conftest.
$ac_ext <<EOF
3322 #line 3323 "configure"
3323 #include "confdefs.h"
3324 #include <libintl.h>
3326 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3327 { (eval echo configure
:3328: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3328 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3329 if test -z "$ac_err"; then
3331 eval "ac_cv_header_$ac_safe=yes"
3334 echo "configure: failed program was:" >&5
3335 cat conftest.
$ac_ext >&5
3337 eval "ac_cv_header_$ac_safe=no"
3341 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3342 echo "$ac_t""yes" 1>&6
3343 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3344 echo "configure:3345: checking for gettext in libc" >&5
3345 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3346 echo $ac_n "(cached) $ac_c" 1>&6
3348 cat > conftest.
$ac_ext <<EOF
3349 #line 3350 "configure"
3350 #include "confdefs.h"
3351 #include <libintl.h>
3353 return (int) gettext ("")
3356 if { (eval echo configure
:3357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3358 gt_cv_func_gettext_libc
=yes
3360 echo "configure: failed program was:" >&5
3361 cat conftest.
$ac_ext >&5
3363 gt_cv_func_gettext_libc
=no
3368 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3370 if test "$gt_cv_func_gettext_libc" != "yes"; then
3371 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3372 echo "configure:3373: checking for bindtextdomain in -lintl" >&5
3373 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3374 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3375 echo $ac_n "(cached) $ac_c" 1>&6
3377 ac_save_LIBS
="$LIBS"
3379 cat > conftest.
$ac_ext <<EOF
3380 #line 3381 "configure"
3381 #include "confdefs.h"
3382 /* Override any gcc2 internal prototype to avoid an error. */
3383 /* We use char because int might match the return type of a gcc2
3384 builtin and then its argument prototype would still apply. */
3385 char bindtextdomain();
3391 if { (eval echo configure
:3392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3393 eval "ac_cv_lib_$ac_lib_var=yes"
3395 echo "configure: failed program was:" >&5
3396 cat conftest.
$ac_ext >&5
3398 eval "ac_cv_lib_$ac_lib_var=no"
3401 LIBS
="$ac_save_LIBS"
3404 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3405 echo "$ac_t""yes" 1>&6
3406 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3407 echo "configure:3408: checking for gettext in libintl" >&5
3408 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3409 echo $ac_n "(cached) $ac_c" 1>&6
3411 cat > conftest.
$ac_ext <<EOF
3412 #line 3413 "configure"
3413 #include "confdefs.h"
3416 return (int) gettext ("")
3419 if { (eval echo configure
:3420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3421 gt_cv_func_gettext_libintl
=yes
3423 echo "configure: failed program was:" >&5
3424 cat conftest.
$ac_ext >&5
3426 gt_cv_func_gettext_libintl
=no
3431 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3433 echo "$ac_t""no" 1>&6
3438 if test "$gt_cv_func_gettext_libc" = "yes" \
3439 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
3440 cat >> confdefs.h
<<\EOF
3441 #define HAVE_GETTEXT 1
3444 # Extract the first word of "msgfmt", so it can be a program name with args.
3445 set dummy msgfmt
; ac_word
=$2
3446 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3447 echo "configure:3448: checking for $ac_word" >&5
3448 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3449 echo $ac_n "(cached) $ac_c" 1>&6
3453 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3456 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3457 for ac_dir
in $PATH; do
3458 test -z "$ac_dir" && ac_dir
=.
3459 if test -f $ac_dir/$ac_word; then
3460 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3461 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3467 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
3471 MSGFMT
="$ac_cv_path_MSGFMT"
3472 if test -n "$MSGFMT"; then
3473 echo "$ac_t""$MSGFMT" 1>&6
3475 echo "$ac_t""no" 1>&6
3477 if test "$MSGFMT" != "no"; then
3478 for ac_func
in dcgettext
3480 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3481 echo "configure:3482: checking for $ac_func" >&5
3482 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3483 echo $ac_n "(cached) $ac_c" 1>&6
3485 cat > conftest.
$ac_ext <<EOF
3486 #line 3487 "configure"
3487 #include "confdefs.h"
3488 /* System header to define __stub macros and hopefully few prototypes,
3489 which can conflict with char $ac_func(); below. */
3491 /* Override any gcc2 internal prototype to avoid an error. */
3492 /* We use char because int might match the return type of a gcc2
3493 builtin and then its argument prototype would still apply. */
3498 /* The GNU C library defines this for functions which it implements
3499 to always fail with ENOSYS. Some functions are actually named
3500 something starting with __ and the normal name is an alias. */
3501 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3509 if { (eval echo configure
:3510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3511 eval "ac_cv_func_$ac_func=yes"
3513 echo "configure: failed program was:" >&5
3514 cat conftest.
$ac_ext >&5
3516 eval "ac_cv_func_$ac_func=no"
3521 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3522 echo "$ac_t""yes" 1>&6
3523 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3524 cat >> confdefs.h
<<EOF
3525 #define $ac_tr_func 1
3529 echo "$ac_t""no" 1>&6
3533 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3534 set dummy gmsgfmt
; ac_word
=$2
3535 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3536 echo "configure:3537: checking for $ac_word" >&5
3537 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3538 echo $ac_n "(cached) $ac_c" 1>&6
3542 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3545 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3548 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3550 for ac_dir
in $ac_dummy; do
3551 test -z "$ac_dir" && ac_dir
=.
3552 if test -f $ac_dir/$ac_word; then
3553 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3558 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3562 GMSGFMT
="$ac_cv_path_GMSGFMT"
3563 if test -n "$GMSGFMT"; then
3564 echo "$ac_t""$GMSGFMT" 1>&6
3566 echo "$ac_t""no" 1>&6
3569 # Extract the first word of "xgettext", so it can be a program name with args.
3570 set dummy xgettext
; ac_word
=$2
3571 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3572 echo "configure:3573: checking for $ac_word" >&5
3573 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3574 echo $ac_n "(cached) $ac_c" 1>&6
3578 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3581 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3582 for ac_dir
in $PATH; do
3583 test -z "$ac_dir" && ac_dir
=.
3584 if test -f $ac_dir/$ac_word; then
3585 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3586 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
3592 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
3596 XGETTEXT
="$ac_cv_path_XGETTEXT"
3597 if test -n "$XGETTEXT"; then
3598 echo "$ac_t""$XGETTEXT" 1>&6
3600 echo "$ac_t""no" 1>&6
3603 cat > conftest.
$ac_ext <<EOF
3604 #line 3605 "configure"
3605 #include "confdefs.h"
3608 extern int _nl_msg_cat_cntr;
3609 return _nl_msg_cat_cntr
3612 if { (eval echo configure
:3613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3617 echo "configure: failed program was:" >&5
3618 cat conftest.
$ac_ext >&5
3629 echo "$ac_t""no" 1>&6
3634 if test "$CATOBJEXT" = "NONE"; then
3635 nls_cv_use_gnu_gettext
=yes
3639 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3640 INTLOBJS
="\$(GETTOBJS)"
3641 # Extract the first word of "msgfmt", so it can be a program name with args.
3642 set dummy msgfmt
; ac_word
=$2
3643 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3644 echo "configure:3645: checking for $ac_word" >&5
3645 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3646 echo $ac_n "(cached) $ac_c" 1>&6
3650 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3653 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3654 for ac_dir
in $PATH; do
3655 test -z "$ac_dir" && ac_dir
=.
3656 if test -f $ac_dir/$ac_word; then
3657 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3658 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3664 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
3668 MSGFMT
="$ac_cv_path_MSGFMT"
3669 if test -n "$MSGFMT"; then
3670 echo "$ac_t""$MSGFMT" 1>&6
3672 echo "$ac_t""no" 1>&6
3675 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3676 set dummy gmsgfmt
; ac_word
=$2
3677 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3678 echo "configure:3679: checking for $ac_word" >&5
3679 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3680 echo $ac_n "(cached) $ac_c" 1>&6
3684 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3687 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3690 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3692 for ac_dir
in $ac_dummy; do
3693 test -z "$ac_dir" && ac_dir
=.
3694 if test -f $ac_dir/$ac_word; then
3695 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3700 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3704 GMSGFMT
="$ac_cv_path_GMSGFMT"
3705 if test -n "$GMSGFMT"; then
3706 echo "$ac_t""$GMSGFMT" 1>&6
3708 echo "$ac_t""no" 1>&6
3711 # Extract the first word of "xgettext", so it can be a program name with args.
3712 set dummy xgettext
; ac_word
=$2
3713 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3714 echo "configure:3715: checking for $ac_word" >&5
3715 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3716 echo $ac_n "(cached) $ac_c" 1>&6
3720 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3723 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3724 for ac_dir
in $PATH; do
3725 test -z "$ac_dir" && ac_dir
=.
3726 if test -f $ac_dir/$ac_word; then
3727 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3728 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
3734 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
3738 XGETTEXT
="$ac_cv_path_XGETTEXT"
3739 if test -n "$XGETTEXT"; then
3740 echo "$ac_t""$XGETTEXT" 1>&6
3742 echo "$ac_t""no" 1>&6
3746 USE_INCLUDED_LIBINTL
=yes
3750 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
3752 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
3753 nls_cv_header_intl
=libintl.h
3754 nls_cv_header_libgt
=libgettext.h
3757 if test "$XGETTEXT" != ":"; then
3758 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
3761 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
3766 # We need to process the po/ directory.
3770 nls_cv_header_intl
=libintl.h
3771 nls_cv_header_libgt
=libgettext.h
3774 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3775 # because some of the sources are only built for this goal.
3776 if test "$PACKAGE" = gettext; then
3778 USE_INCLUDED_LIBINTL
=yes
3781 for lang
in $ALL_LINGUAS; do
3782 GMOFILES
="$GMOFILES $lang.gmo"
3783 POFILES
="$POFILES $lang.po"
3799 if test "x$CATOBJEXT" != "x"; then
3800 if test "x$ALL_LINGUAS" = "x"; then
3803 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3804 echo "configure:3805: checking for catalogs to be installed" >&5
3806 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
3807 case "$ALL_LINGUAS" in
3808 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
3811 LINGUAS
=$NEW_LINGUAS
3812 echo "$ac_t""$LINGUAS" 1>&6
3815 if test -n "$LINGUAS"; then
3816 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
3820 if test $ac_cv_header_locale_h = yes; then
3821 INCLUDE_LOCALE_H
="#include <locale.h>"
3824 /* The system does not provide the header <locale.h>. Take care yourself. */"
3828 if test -f $srcdir/po2tbl.
sed.
in; then
3829 if test "$CATOBJEXT" = ".cat"; then
3830 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3831 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
3832 echo "configure:3833: checking for linux/version.h" >&5
3833 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3834 echo $ac_n "(cached) $ac_c" 1>&6
3836 cat > conftest.
$ac_ext <<EOF
3837 #line 3838 "configure"
3838 #include "confdefs.h"
3839 #include <linux/version.h>
3841 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3842 { (eval echo configure
:3843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3843 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3844 if test -z "$ac_err"; then
3846 eval "ac_cv_header_$ac_safe=yes"
3849 echo "configure: failed program was:" >&5
3850 cat conftest.
$ac_ext >&5
3852 eval "ac_cv_header_$ac_safe=no"
3856 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3857 echo "$ac_t""yes" 1>&6
3860 echo "$ac_t""no" 1>&6
3865 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
3867 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3868 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
3871 if test "$PACKAGE" = "gettext"; then
3881 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
3887 if test -d $srcdir/po
; then
3888 test -d po || mkdir po
3889 if test "x$srcdir" != "x."; then
3890 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3891 posrcprefix
="$srcdir/"
3893 posrcprefix
="../$srcdir/"
3899 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3900 < $srcdir/po
/POTFILES.
in > po
/POTFILES
3904 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3905 echo "configure:3906: checking for Cygwin environment" >&5
3906 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
3907 echo $ac_n "(cached) $ac_c" 1>&6
3909 cat > conftest.
$ac_ext <<EOF
3910 #line 3911 "configure"
3911 #include "confdefs.h"
3916 #define __CYGWIN__ __CYGWIN32__
3921 if { (eval echo configure
:3922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3925 echo "configure: failed program was:" >&5
3926 cat conftest.
$ac_ext >&5
3934 echo "$ac_t""$ac_cv_cygwin" 1>&6
3936 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
3937 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3938 echo "configure:3939: checking for mingw32 environment" >&5
3939 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
3940 echo $ac_n "(cached) $ac_c" 1>&6
3942 cat > conftest.
$ac_ext <<EOF
3943 #line 3944 "configure"
3944 #include "confdefs.h"
3950 if { (eval echo configure
:3951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3954 echo "configure: failed program was:" >&5
3955 cat conftest.
$ac_ext >&5
3963 echo "$ac_t""$ac_cv_mingw32" 1>&6
3965 test "$ac_cv_mingw32" = yes && MINGW32
=yes
3968 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3969 echo "configure:3970: checking for executable suffix" >&5
3970 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
3971 echo $ac_n "(cached) $ac_c" 1>&6
3973 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
3977 echo 'int main () { return 0; }' > conftest.
$ac_ext
3979 if { (eval echo configure
:3980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3980 for file in conftest.
*; do
3982 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
3983 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
3987 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3990 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
3995 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
3996 echo "$ac_t""${ac_cv_exeext}" 1>&6
4000 for ac_prog
in 'bison -y' byacc
4002 # Extract the first word of "$ac_prog", so it can be a program name with args.
4003 set dummy
$ac_prog; ac_word
=$2
4004 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4005 echo "configure:4006: checking for $ac_word" >&5
4006 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
4007 echo $ac_n "(cached) $ac_c" 1>&6
4009 if test -n "$YACC"; then
4010 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
4012 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4014 for ac_dir
in $ac_dummy; do
4015 test -z "$ac_dir" && ac_dir
=.
4016 if test -f $ac_dir/$ac_word; then
4017 ac_cv_prog_YACC
="$ac_prog"
4024 YACC
="$ac_cv_prog_YACC"
4025 if test -n "$YACC"; then
4026 echo "$ac_t""$YACC" 1>&6
4028 echo "$ac_t""no" 1>&6
4031 test -n "$YACC" && break
4033 test -n "$YACC" || YACC
="yacc"
4035 missing_dir
=`cd $ac_aux_dir && pwd`
4036 for ac_prog
in flex
lex
4038 # Extract the first word of "$ac_prog", so it can be a program name with args.
4039 set dummy
$ac_prog; ac_word
=$2
4040 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4041 echo "configure:4042: checking for $ac_word" >&5
4042 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
4043 echo $ac_n "(cached) $ac_c" 1>&6
4045 if test -n "$LEX"; then
4046 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
4048 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4050 for ac_dir
in $ac_dummy; do
4051 test -z "$ac_dir" && ac_dir
=.
4052 if test -f $ac_dir/$ac_word; then
4053 ac_cv_prog_LEX
="$ac_prog"
4060 LEX
="$ac_cv_prog_LEX"
4061 if test -n "$LEX"; then
4062 echo "$ac_t""$LEX" 1>&6
4064 echo "$ac_t""no" 1>&6
4067 test -n "$LEX" && break
4069 test -n "$LEX" || LEX
=""$missing_dir/missing flex
""
4071 # Extract the first word of "flex", so it can be a program name with args.
4072 set dummy flex
; ac_word
=$2
4073 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4074 echo "configure:4075: checking for $ac_word" >&5
4075 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
4076 echo $ac_n "(cached) $ac_c" 1>&6
4078 if test -n "$LEX"; then
4079 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
4081 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4083 for ac_dir
in $ac_dummy; do
4084 test -z "$ac_dir" && ac_dir
=.
4085 if test -f $ac_dir/$ac_word; then
4086 ac_cv_prog_LEX
="flex"
4091 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
4094 LEX
="$ac_cv_prog_LEX"
4095 if test -n "$LEX"; then
4096 echo "$ac_t""$LEX" 1>&6
4098 echo "$ac_t""no" 1>&6
4101 if test -z "$LEXLIB"
4107 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
4108 echo "configure:4109: checking for yywrap in -l$ac_lib" >&5
4109 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
4110 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4111 echo $ac_n "(cached) $ac_c" 1>&6
4113 ac_save_LIBS
="$LIBS"
4114 LIBS
="-l$ac_lib $LIBS"
4115 cat > conftest.
$ac_ext <<EOF
4116 #line 4117 "configure"
4117 #include "confdefs.h"
4118 /* Override any gcc2 internal prototype to avoid an error. */
4119 /* We use char because int might match the return type of a gcc2
4120 builtin and then its argument prototype would still apply. */
4127 if { (eval echo configure
:4128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4129 eval "ac_cv_lib_$ac_lib_var=yes"
4131 echo "configure: failed program was:" >&5
4132 cat conftest.
$ac_ext >&5
4134 eval "ac_cv_lib_$ac_lib_var=no"
4137 LIBS
="$ac_save_LIBS"
4140 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4141 echo "$ac_t""yes" 1>&6
4144 echo "$ac_t""no" 1>&6
4149 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
4150 echo "configure:4151: checking lex output file root" >&5
4151 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
4152 echo $ac_n "(cached) $ac_c" 1>&6
4154 # The minimal lex program is just a single line: %%. But some broken lexes
4155 # (Solaris, I think it was) want two %% lines, so accommodate them.
4158 if test -f lex.yy.c
; then
4159 ac_cv_prog_lex_root
=lex.yy
4160 elif test -f lexyy.c
; then
4161 ac_cv_prog_lex_root
=lexyy
4163 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
4167 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
4168 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
4170 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
4171 echo "configure:4172: checking whether yytext is a pointer" >&5
4172 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
4173 echo $ac_n "(cached) $ac_c" 1>&6
4175 # POSIX says lex can declare yytext either as a pointer or an array; the
4176 # default is implementation-dependent. Figure out which it is, since
4177 # not all implementations provide the %pointer and %array declarations.
4178 ac_cv_prog_lex_yytext_pointer
=no
4179 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4180 ac_save_LIBS
="$LIBS"
4181 LIBS
="$LIBS $LEXLIB"
4182 cat > conftest.
$ac_ext <<EOF
4183 #line 4184 "configure"
4184 #include "confdefs.h"
4185 `cat $LEX_OUTPUT_ROOT.c`
4190 if { (eval echo configure
:4191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4192 ac_cv_prog_lex_yytext_pointer
=yes
4194 echo "configure: failed program was:" >&5
4195 cat conftest.
$ac_ext >&5
4198 LIBS
="$ac_save_LIBS"
4199 rm -f "${LEX_OUTPUT_ROOT}.c"
4203 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
4204 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4205 cat >> confdefs.h
<<\EOF
4206 #define YYTEXT_POINTER 1
4212 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
4213 echo "configure:4214: checking whether to enable maintainer-specific portions of Makefiles" >&5
4214 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4215 if test "${enable_maintainer_mode+set}" = set; then
4216 enableval
="$enable_maintainer_mode"
4217 USE_MAINTAINER_MODE
=$enableval
4219 USE_MAINTAINER_MODE
=no
4222 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4225 if test $USE_MAINTAINER_MODE = yes; then
4226 MAINTAINER_MODE_TRUE
=
4227 MAINTAINER_MODE_FALSE
='#'
4229 MAINTAINER_MODE_TRUE
='#'
4230 MAINTAINER_MODE_FALSE
=
4232 MAINT
=$MAINTAINER_MODE_TRUE
4236 .
${srcdir}/configure.
host
4243 for ac_hdr
in string.h
strings.h stdlib.h unistd.h
4245 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4246 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4247 echo "configure:4248: checking for $ac_hdr" >&5
4248 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4249 echo $ac_n "(cached) $ac_c" 1>&6
4251 cat > conftest.
$ac_ext <<EOF
4252 #line 4253 "configure"
4253 #include "confdefs.h"
4256 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4257 { (eval echo configure
:4258: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4258 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4259 if test -z "$ac_err"; then
4261 eval "ac_cv_header_$ac_safe=yes"
4264 echo "configure: failed program was:" >&5
4265 cat conftest.
$ac_ext >&5
4267 eval "ac_cv_header_$ac_safe=no"
4271 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4272 echo "$ac_t""yes" 1>&6
4273 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4274 cat >> confdefs.h
<<EOF
4275 #define $ac_tr_hdr 1
4279 echo "$ac_t""no" 1>&6
4285 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4286 echo "configure:4287: checking for $ac_func" >&5
4287 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4288 echo $ac_n "(cached) $ac_c" 1>&6
4290 cat > conftest.
$ac_ext <<EOF
4291 #line 4292 "configure"
4292 #include "confdefs.h"
4293 /* System header to define __stub macros and hopefully few prototypes,
4294 which can conflict with char $ac_func(); below. */
4296 /* Override any gcc2 internal prototype to avoid an error. */
4297 /* We use char because int might match the return type of a gcc2
4298 builtin and then its argument prototype would still apply. */
4303 /* The GNU C library defines this for functions which it implements
4304 to always fail with ENOSYS. Some functions are actually named
4305 something starting with __ and the normal name is an alias. */
4306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4314 if { (eval echo configure
:4315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4316 eval "ac_cv_func_$ac_func=yes"
4318 echo "configure: failed program was:" >&5
4319 cat conftest.
$ac_ext >&5
4321 eval "ac_cv_func_$ac_func=no"
4326 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4327 echo "$ac_t""yes" 1>&6
4328 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4329 cat >> confdefs.h
<<EOF
4330 #define $ac_tr_func 1
4334 echo "$ac_t""no" 1>&6
4339 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
4341 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4342 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4343 echo "configure:4344: checking for $ac_hdr that defines DIR" >&5
4344 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
4345 echo $ac_n "(cached) $ac_c" 1>&6
4347 cat > conftest.
$ac_ext <<EOF
4348 #line 4349 "configure"
4349 #include "confdefs.h"
4350 #include <sys/types.h>
4356 if { (eval echo configure
:4357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4358 eval "ac_cv_header_dirent_$ac_safe=yes"
4360 echo "configure: failed program was:" >&5
4361 cat conftest.
$ac_ext >&5
4363 eval "ac_cv_header_dirent_$ac_safe=no"
4367 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4368 echo "$ac_t""yes" 1>&6
4369 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4370 cat >> confdefs.h
<<EOF
4371 #define $ac_tr_hdr 1
4373 ac_header_dirent
=$ac_hdr; break
4375 echo "$ac_t""no" 1>&6
4378 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4379 if test $ac_header_dirent = dirent.h
; then
4380 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4381 echo "configure:4382: checking for opendir in -ldir" >&5
4382 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
4383 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4384 echo $ac_n "(cached) $ac_c" 1>&6
4386 ac_save_LIBS
="$LIBS"
4388 cat > conftest.
$ac_ext <<EOF
4389 #line 4390 "configure"
4390 #include "confdefs.h"
4391 /* Override any gcc2 internal prototype to avoid an error. */
4392 /* We use char because int might match the return type of a gcc2
4393 builtin and then its argument prototype would still apply. */
4400 if { (eval echo configure
:4401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4402 eval "ac_cv_lib_$ac_lib_var=yes"
4404 echo "configure: failed program was:" >&5
4405 cat conftest.
$ac_ext >&5
4407 eval "ac_cv_lib_$ac_lib_var=no"
4410 LIBS
="$ac_save_LIBS"
4413 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4414 echo "$ac_t""yes" 1>&6
4417 echo "$ac_t""no" 1>&6
4421 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4422 echo "configure:4423: checking for opendir in -lx" >&5
4423 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
4424 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4425 echo $ac_n "(cached) $ac_c" 1>&6
4427 ac_save_LIBS
="$LIBS"
4429 cat > conftest.
$ac_ext <<EOF
4430 #line 4431 "configure"
4431 #include "confdefs.h"
4432 /* Override any gcc2 internal prototype to avoid an error. */
4433 /* We use char because int might match the return type of a gcc2
4434 builtin and then its argument prototype would still apply. */
4441 if { (eval echo configure
:4442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4443 eval "ac_cv_lib_$ac_lib_var=yes"
4445 echo "configure: failed program was:" >&5
4446 cat conftest.
$ac_ext >&5
4448 eval "ac_cv_lib_$ac_lib_var=no"
4451 LIBS
="$ac_save_LIBS"
4454 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4455 echo "$ac_t""yes" 1>&6
4458 echo "$ac_t""no" 1>&6
4466 *-*-msdos* |
*-*-go32* |
*-*-mingw32* |
*-*-cygwin* |
*-*-windows)
4467 cat >> confdefs.h
<<\EOF
4468 #define USE_BINARY_FOPEN 1
4473 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4474 echo "configure:4475: checking whether strstr must be declared" >&5
4475 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
4476 echo $ac_n "(cached) $ac_c" 1>&6
4478 cat > conftest.
$ac_ext <<EOF
4479 #line 4480 "configure"
4480 #include "confdefs.h"
4483 #ifdef HAVE_STRING_H
4486 #ifdef HAVE_STRINGS_H
4487 #include <strings.h>
4490 #ifdef HAVE_STDLIB_H
4493 #ifdef HAVE_UNISTD_H
4497 char *(*pfn) = (char *(*)) strstr
4500 if { (eval echo configure
:4501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4502 bfd_cv_decl_needed_strstr
=no
4504 echo "configure: failed program was:" >&5
4505 cat conftest.
$ac_ext >&5
4507 bfd_cv_decl_needed_strstr
=yes
4512 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4513 if test $bfd_cv_decl_needed_strstr = yes; then
4514 cat >> confdefs.h
<<\EOF
4515 #define NEED_DECLARATION_STRSTR 1
4520 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
4521 echo "configure:4522: checking whether free must be declared" >&5
4522 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
4523 echo $ac_n "(cached) $ac_c" 1>&6
4525 cat > conftest.
$ac_ext <<EOF
4526 #line 4527 "configure"
4527 #include "confdefs.h"
4530 #ifdef HAVE_STRING_H
4533 #ifdef HAVE_STRINGS_H
4534 #include <strings.h>
4537 #ifdef HAVE_STDLIB_H
4540 #ifdef HAVE_UNISTD_H
4544 char *(*pfn) = (char *(*)) free
4547 if { (eval echo configure
:4548: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4549 bfd_cv_decl_needed_free
=no
4551 echo "configure: failed program was:" >&5
4552 cat conftest.
$ac_ext >&5
4554 bfd_cv_decl_needed_free
=yes
4559 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
4560 if test $bfd_cv_decl_needed_free = yes; then
4561 cat >> confdefs.h
<<\EOF
4562 #define NEED_DECLARATION_FREE 1
4567 echo $ac_n "checking whether sbrk must be declared""... $ac_c" 1>&6
4568 echo "configure:4569: checking whether sbrk must be declared" >&5
4569 if eval "test \"`echo '$''{'bfd_cv_decl_needed_sbrk'+set}'`\" = set"; then
4570 echo $ac_n "(cached) $ac_c" 1>&6
4572 cat > conftest.
$ac_ext <<EOF
4573 #line 4574 "configure"
4574 #include "confdefs.h"
4577 #ifdef HAVE_STRING_H
4580 #ifdef HAVE_STRINGS_H
4581 #include <strings.h>
4584 #ifdef HAVE_STDLIB_H
4587 #ifdef HAVE_UNISTD_H
4591 char *(*pfn) = (char *(*)) sbrk
4594 if { (eval echo configure
:4595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4596 bfd_cv_decl_needed_sbrk
=no
4598 echo "configure: failed program was:" >&5
4599 cat conftest.
$ac_ext >&5
4601 bfd_cv_decl_needed_sbrk
=yes
4606 echo "$ac_t""$bfd_cv_decl_needed_sbrk" 1>&6
4607 if test $bfd_cv_decl_needed_sbrk = yes; then
4608 cat >> confdefs.h
<<\EOF
4609 #define NEED_DECLARATION_SBRK 1
4614 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
4615 echo "configure:4616: checking whether getenv must be declared" >&5
4616 if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
4617 echo $ac_n "(cached) $ac_c" 1>&6
4619 cat > conftest.
$ac_ext <<EOF
4620 #line 4621 "configure"
4621 #include "confdefs.h"
4624 #ifdef HAVE_STRING_H
4627 #ifdef HAVE_STRINGS_H
4628 #include <strings.h>
4631 #ifdef HAVE_STDLIB_H
4634 #ifdef HAVE_UNISTD_H
4638 char *(*pfn) = (char *(*)) getenv
4641 if { (eval echo configure
:4642: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4643 bfd_cv_decl_needed_getenv
=no
4645 echo "configure: failed program was:" >&5
4646 cat conftest.
$ac_ext >&5
4648 bfd_cv_decl_needed_getenv
=yes
4653 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
4654 if test $bfd_cv_decl_needed_getenv = yes; then
4655 cat >> confdefs.h
<<\EOF
4656 #define NEED_DECLARATION_GETENV 1
4661 echo $ac_n "checking whether environ must be declared""... $ac_c" 1>&6
4662 echo "configure:4663: checking whether environ must be declared" >&5
4663 if eval "test \"`echo '$''{'bfd_cv_decl_needed_environ'+set}'`\" = set"; then
4664 echo $ac_n "(cached) $ac_c" 1>&6
4666 cat > conftest.
$ac_ext <<EOF
4667 #line 4668 "configure"
4668 #include "confdefs.h"
4671 #ifdef HAVE_STRING_H
4674 #ifdef HAVE_STRINGS_H
4675 #include <strings.h>
4678 #ifdef HAVE_STDLIB_H
4681 #ifdef HAVE_UNISTD_H
4685 char *(*pfn) = (char *(*)) environ
4688 if { (eval echo configure
:4689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4690 bfd_cv_decl_needed_environ
=no
4692 echo "configure: failed program was:" >&5
4693 cat conftest.
$ac_ext >&5
4695 bfd_cv_decl_needed_environ
=yes
4700 echo "$ac_t""$bfd_cv_decl_needed_environ" 1>&6
4701 if test $bfd_cv_decl_needed_environ = yes; then
4702 cat >> confdefs.h
<<\EOF
4703 #define NEED_DECLARATION_ENVIRON 1
4709 # target-specific stuff:
4718 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
4720 if test "$targ_alias" = "all"; then
4723 # Canonicalize the secondary target names.
4724 result
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $targ_alias 2>/dev/null`
4725 if test -n "$result"; then
4731 .
${srcdir}/configure.tgt
4733 if test "$targ" = "$target"; then
4737 for i
in $targ_emul $targ_extra_emuls; do
4738 case " $all_emuls " in
4741 all_emuls
="$all_emuls e${i}.o"
4742 eval result
=\
$tdir_$i
4743 test -z "$result" && result
=$targ_alias
4744 echo tdir_
$i=$result >> tdirs
4749 for i
in $targ_extra_ofiles; do
4750 case " $all_emul_extras " in
4753 all_emul_extras
="$all_emul_extras ${i}"
4765 if test x
${all_targets} = xtrue
; then
4766 if test x
${want64} = xtrue
; then
4767 EMULATION_OFILES
='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
4769 EMULATION_OFILES
='$(ALL_EMULATIONS)'
4771 EMUL_EXTRA_OFILES
='$(ALL_EMUL_EXTRA_OFILES)'
4773 EMULATION_OFILES
=$all_emuls
4774 EMUL_EXTRA_OFILES
=$all_emul_extras
4779 if test x
${enable_static} = xno
; then
4780 TESTBFDLIB
="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
4782 TESTBFDLIB
="../bfd/.libs/libbfd.a"
4787 cat > confcache
<<\EOF
4788 # This file is a shell script that caches the results of configure
4789 # tests run on this system so they can be shared between configure
4790 # scripts and configure runs. It is not useful on other systems.
4791 # If it contains results you don't want to keep, you may remove or edit it.
4793 # By default, configure uses ./config.cache as the cache file,
4794 # creating it if it does not exist already. You can give configure
4795 # the --cache-file=FILE option to use a different cache file; that is
4796 # what configure does when it calls configure scripts in
4797 # subdirectories, so they share the cache.
4798 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4799 # config.status only pays attention to the cache file if you give it the
4800 # --recheck option to rerun configure.
4803 # The following way of writing the cache mishandles newlines in values,
4804 # but we know of no workaround that is simple, portable, and efficient.
4805 # So, don't put newlines in cache variables' values.
4806 # Ultrix sh set writes to stderr and can't be redirected directly,
4807 # and sets the high bit in the cache file unless we assign to the vars.
4809 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4811 # `set' does not quote correctly, so add quotes (double-quote substitution
4812 # turns \\\\ into \\, and sed turns \\ into \).
4814 -e "s/'/'\\\\''/g" \
4815 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4818 # `set' quotes correctly as required by POSIX, so do not add quotes.
4819 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4822 if cmp -s $cache_file confcache
; then
4825 if test -w $cache_file; then
4826 echo "updating cache $cache_file"
4827 cat confcache
> $cache_file
4829 echo "not updating unwritable cache $cache_file"
4834 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4836 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4837 # Let make expand exec_prefix.
4838 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4840 # Any assignment to VPATH causes Sun make to only execute
4841 # the first set of double-colon rules, so remove it if not needed.
4842 # If there is a colon in the path, we need to keep it.
4843 if test "x$srcdir" = x.
; then
4844 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
4847 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4849 DEFS
=-DHAVE_CONFIG_H
4851 # Without the "./", some shells look in PATH for config.status.
4852 : ${CONFIG_STATUS=./config.status}
4854 echo creating
$CONFIG_STATUS
4855 rm -f $CONFIG_STATUS
4856 cat > $CONFIG_STATUS <<EOF
4858 # Generated automatically by configure.
4859 # Run this file to recreate the current configuration.
4860 # This directory was configured as follows,
4861 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4863 # $0 $ac_configure_args
4865 # Compiler output produced by configure, useful for debugging
4866 # configure, is in ./config.log if it exists.
4868 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4871 case "\$ac_option" in
4872 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4873 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4874 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4875 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4876 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4878 -help | --help | --hel | --he | --h)
4879 echo "\$ac_cs_usage"; exit 0 ;;
4880 *) echo "\$ac_cs_usage"; exit 1 ;;
4884 ac_given_srcdir=$srcdir
4885 ac_given_INSTALL="$INSTALL"
4887 trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4889 cat >> $CONFIG_STATUS <<EOF
4891 # Protect against being on the right side of a sed subst in config.status.
4892 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4893 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4897 s%@CFLAGS@%$CFLAGS%g
4898 s%@CPPFLAGS@%$CPPFLAGS%g
4899 s%@CXXFLAGS@%$CXXFLAGS%g
4900 s%@FFLAGS@%$FFLAGS%g
4902 s%@LDFLAGS@%$LDFLAGS%g
4904 s%@exec_prefix@%$exec_prefix%g
4905 s%@prefix@%$prefix%g
4906 s%@program_transform_name@%$program_transform_name%g
4907 s%@bindir@%$bindir%g
4908 s%@sbindir@%$sbindir%g
4909 s%@libexecdir@%$libexecdir%g
4910 s%@datadir@%$datadir%g
4911 s%@sysconfdir@%$sysconfdir%g
4912 s%@sharedstatedir@%$sharedstatedir%g
4913 s%@localstatedir@%$localstatedir%g
4914 s%@libdir@%$libdir%g
4915 s%@includedir@%$includedir%g
4916 s%@oldincludedir@%$oldincludedir%g
4917 s%@infodir@%$infodir%g
4918 s%@mandir@%$mandir%g
4920 s%@host_alias@%$host_alias%g
4921 s%@host_cpu@%$host_cpu%g
4922 s%@host_vendor@%$host_vendor%g
4923 s%@host_os@%$host_os%g
4924 s%@target@%$target%g
4925 s%@target_alias@%$target_alias%g
4926 s%@target_cpu@%$target_cpu%g
4927 s%@target_vendor@%$target_vendor%g
4928 s%@target_os@%$target_os%g
4930 s%@build_alias@%$build_alias%g
4931 s%@build_cpu@%$build_cpu%g
4932 s%@build_vendor@%$build_vendor%g
4933 s%@build_os@%$build_os%g
4934 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4935 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4936 s%@INSTALL_DATA@%$INSTALL_DATA%g
4937 s%@PACKAGE@%$PACKAGE%g
4938 s%@VERSION@%$VERSION%g
4939 s%@ACLOCAL@%$ACLOCAL%g
4940 s%@AUTOCONF@%$AUTOCONF%g
4941 s%@AUTOMAKE@%$AUTOMAKE%g
4942 s%@AUTOHEADER@%$AUTOHEADER%g
4943 s%@MAKEINFO@%$MAKEINFO%g
4944 s%@SET_MAKE@%$SET_MAKE%g
4945 s%@RANLIB@%$RANLIB%g
4949 s%@USE_SYMBOL_UNDERSCORE@%$USE_SYMBOL_UNDERSCORE%g
4951 s%@DLLTOOL@%$DLLTOOL%g
4953 s%@LIBTOOL@%$LIBTOOL%g
4955 s%@ALLOCA@%$ALLOCA%g
4956 s%@USE_NLS@%$USE_NLS%g
4957 s%@MSGFMT@%$MSGFMT%g
4958 s%@GMSGFMT@%$GMSGFMT%g
4959 s%@XGETTEXT@%$XGETTEXT%g
4960 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4961 s%@CATALOGS@%$CATALOGS%g
4962 s%@CATOBJEXT@%$CATOBJEXT%g
4963 s%@DATADIRNAME@%$DATADIRNAME%g
4964 s%@GMOFILES@%$GMOFILES%g
4965 s%@INSTOBJEXT@%$INSTOBJEXT%g
4966 s%@INTLDEPS@%$INTLDEPS%g
4967 s%@INTLLIBS@%$INTLLIBS%g
4968 s%@INTLOBJS@%$INTLOBJS%g
4969 s%@POFILES@%$POFILES%g
4971 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4973 s%@GT_YES@%$GT_YES%g
4974 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4976 s%@EXEEXT@%$EXEEXT%g
4979 s%@LEXLIB@%$LEXLIB%g
4980 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
4981 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
4982 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
4984 s%@HDEFINES@%$HDEFINES%g
4985 s%@HOSTING_CRT0@%$HOSTING_CRT0%g
4986 s%@HOSTING_LIBS@%$HOSTING_LIBS%g
4987 s%@NATIVE_LIB_DIRS@%$NATIVE_LIB_DIRS%g
4991 s%@EMULATION_OFILES@%$EMULATION_OFILES%g
4992 s%@EMUL_EXTRA_OFILES@%$EMUL_EXTRA_OFILES%g
4993 s%@TESTBFDLIB@%$TESTBFDLIB%g
4998 cat >> $CONFIG_STATUS <<\EOF
5000 # Split the substitutions into bite-sized pieces for seds with
5001 # small command number limits, like on Digital OSF/1 and HP-UX.
5002 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5003 ac_file
=1 # Number of current file.
5004 ac_beg
=1 # First line for current file.
5005 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5008 while $ac_more_lines; do
5009 if test $ac_beg -gt 1; then
5010 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5012 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5014 if test ! -s conftest.s
$ac_file; then
5016 rm -f conftest.s
$ac_file
5018 if test -z "$ac_sed_cmds"; then
5019 ac_sed_cmds
="sed -f conftest.s$ac_file"
5021 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5023 ac_file
=`expr $ac_file + 1`
5025 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5028 if test -z "$ac_sed_cmds"; then
5033 cat >> $CONFIG_STATUS <<EOF
5035 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
5037 cat >> $CONFIG_STATUS <<\EOF
5038 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5039 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5041 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5042 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5043 *) ac_file_in
="${ac_file}.in" ;;
5046 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5048 # Remove last slash and all that follows it. Not all systems have dirname.
5049 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5050 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5051 # The file is in a subdirectory.
5052 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5053 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5054 # A "../" for each directory in $ac_dir_suffix.
5055 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5057 ac_dir_suffix
= ac_dots
=
5060 case "$ac_given_srcdir" in
5062 if test -z "$ac_dots"; then top_srcdir
=.
5063 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5064 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5066 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5067 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5070 case "$ac_given_INSTALL" in
5071 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5072 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5075 echo creating
"$ac_file"
5077 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5079 *Makefile
*) ac_comsub
="1i\\
5080 # $configure_input" ;;
5084 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5086 s%@configure_input@%$configure_input%g
5087 s%@srcdir@%$srcdir%g
5088 s%@top_srcdir@%$top_srcdir%g
5089 s%@INSTALL@%$INSTALL%g
5090 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5094 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5095 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5097 # ac_d sets the value in "#define NAME VALUE" lines.
5098 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5099 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5102 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5103 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5104 ac_uB
='\([ ]\)%\1#\2define\3'
5107 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5108 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5109 ac_eB
='$%\1#\2define\3'
5113 if test "${CONFIG_HEADERS+set}" != set; then
5115 cat >> $CONFIG_STATUS <<EOF
5116 CONFIG_HEADERS="config.h:config.in"
5118 cat >> $CONFIG_STATUS <<\EOF
5120 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5121 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5123 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5124 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5125 *) ac_file_in
="${ac_file}.in" ;;
5128 echo creating
$ac_file
5130 rm -f conftest.frag conftest.
in conftest.out
5131 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5132 cat $ac_file_inputs > conftest.
in
5136 # Transform confdefs.h into a sed script conftest.vals that substitutes
5137 # the proper values into config.h.in to produce config.h. And first:
5138 # Protect against being on the right side of a sed subst in config.status.
5139 # Protect against being in an unquoted here document in config.status.
5141 cat > conftest.hdr
<<\EOF
5144 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5148 sed -n -f conftest.hdr confdefs.h > conftest.vals
5151 # This sed command replaces #undef with comments. This is necessary, for
5152 # example, in the case of _POSIX_SOURCE, which is predefined and required
5153 # on some systems where configure will not decide to define it.
5154 cat >> conftest.vals <<\EOF
5155 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5158 # Break up conftest.vals because some shells have a limit on
5159 # the size of here documents, and old seds have small limits too.
5164 ac_lines=`grep -c . conftest.vals
`
5165 # grep -c gives empty output for an empty file on some AIX systems.
5166 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5167 # Write a limited-size here document to conftest.frag.
5168 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5169 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5171 sed -f conftest.frag conftest.in > conftest.out
5173 mv conftest.out conftest.in
5175 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5177 mv conftest.tail conftest.vals
5181 cat >> $CONFIG_STATUS <<\EOF
5182 rm -f conftest.frag conftest.h
5183 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5184 cat conftest.in >> conftest.h
5186 if cmp -s $ac_file conftest.h 2>/dev/null; then
5187 echo "$ac_file is unchanged"
5190 # Remove last slash and all that follows it. Not all systems have dirname.
5191 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5192 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5193 # The file is in a subdirectory.
5194 test ! -d "$ac_dir" && mkdir "$ac_dir"
5197 mv conftest.h $ac_file
5202 cat >> $CONFIG_STATUS <<EOF
5206 cat >> $CONFIG_STATUS <<\EOF
5207 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
5208 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
5211 chmod +x $CONFIG_STATUS
5212 rm -fr confdefs* $ac_clean_files
5213 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1