3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --enable-shared[=PKGS] build shared libraries [default=yes]"
17 --enable-static[=PKGS] build static libraries [default=yes]"
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
23 --disable-libtool-lock avoid locking (might break parallel builds)"
25 --enable-targets alternative target configurations"
27 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)"
29 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
31 --disable-nls do not use Native Language Support"
33 --with-included-gettext use the GNU gettext library included here"
35 --enable-maintainer-mode enable make rules and dependencies not useful
36 (and sometimes confusing) to the casual installer"
38 # Initialize some variables set by options.
39 # The variables have the same names as the options, with
40 # dashes changed to underlines.
42 cache_file
=.
/config.cache
51 program_transform_name
=s
,x
,x
,
60 bindir
='${exec_prefix}/bin'
61 sbindir
='${exec_prefix}/sbin'
62 libexecdir
='${exec_prefix}/libexec'
63 datadir
='${prefix}/share'
64 sysconfdir
='${prefix}/etc'
65 sharedstatedir
='${prefix}/com'
66 localstatedir
='${prefix}/var'
67 libdir
='${exec_prefix}/lib'
68 includedir
='${prefix}/include'
69 oldincludedir
='/usr/include'
70 infodir
='${prefix}/info'
71 mandir
='${prefix}/man'
73 # Initialize some other variables.
76 SHELL
=${CONFIG_SHELL-/bin/sh}
77 # Maximum number of lines to put in a shell here document.
84 # If the previous option needs an argument, assign it.
85 if test -n "$ac_prev"; then
86 eval "$ac_prev=\$ac_option"
92 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
96 # Accept the important Cygnus configure options, so we can diagnose typos.
100 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
102 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
103 bindir
="$ac_optarg" ;;
105 -build |
--build |
--buil |
--bui |
--bu)
107 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
108 build
="$ac_optarg" ;;
110 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
111 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
112 ac_prev
=cache_file
;;
113 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
114 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
115 cache_file
="$ac_optarg" ;;
117 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
119 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
121 datadir
="$ac_optarg" ;;
123 -disable-* |
--disable-*)
124 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
125 # Reject names that are not valid shell variable names.
126 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
127 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
129 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
130 eval "enable_${ac_feature}=no" ;;
132 -enable-* |
--enable-*)
133 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
134 # Reject names that are not valid shell variable names.
135 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
136 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
138 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
143 eval "enable_${ac_feature}='$ac_optarg'" ;;
145 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
146 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
147 |
--exec |
--exe |
--ex)
148 ac_prev
=exec_prefix
;;
149 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
150 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
151 |
--exec=* |
--exe=* |
--ex=*)
152 exec_prefix
="$ac_optarg" ;;
154 -gas |
--gas |
--ga |
--g)
155 # Obsolete; use --with-gas.
158 -help |
--help |
--hel |
--he)
159 # Omit some internal or obsolete options to make the list less imposing.
160 # This message is too long to be a string in the A/UX 3.1 sh.
162 Usage: configure [options] [host]
163 Options: [defaults in brackets after descriptions]
165 --cache-file=FILE cache test results in FILE
166 --help print this message
167 --no-create do not create output files
168 --quiet, --silent do not print \`checking...' messages
169 --site-file=FILE use FILE as the site file
170 --version print the version of autoconf that created configure
171 Directory and file names:
172 --prefix=PREFIX install architecture-independent files in PREFIX
174 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
176 --bindir=DIR user executables in DIR [EPREFIX/bin]
177 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
178 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
179 --datadir=DIR read-only architecture-independent data in DIR
181 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
182 --sharedstatedir=DIR modifiable architecture-independent data in DIR
184 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
185 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
186 --includedir=DIR C header files in DIR [PREFIX/include]
187 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
188 --infodir=DIR info documentation in DIR [PREFIX/info]
189 --mandir=DIR man documentation in DIR [PREFIX/man]
190 --srcdir=DIR find the sources in DIR [configure dir or ..]
191 --program-prefix=PREFIX prepend PREFIX to installed program names
192 --program-suffix=SUFFIX append SUFFIX to installed program names
193 --program-transform-name=PROGRAM
194 run sed PROGRAM on installed program names
198 --build=BUILD configure for building on BUILD [BUILD=HOST]
199 --host=HOST configure for HOST [guessed]
200 --target=TARGET configure for TARGET [TARGET=HOST]
201 Features and packages:
202 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
203 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
204 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
205 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
206 --x-includes=DIR X include files are in DIR
207 --x-libraries=DIR X library files are in DIR
209 if test -n "$ac_help"; then
210 echo "--enable and --with options recognized:$ac_help"
214 -host |
--host |
--hos |
--ho)
216 -host=* |
--host=* |
--hos=* |
--ho=*)
219 -includedir |
--includedir |
--includedi |
--included |
--include \
220 |
--includ |
--inclu |
--incl |
--inc)
221 ac_prev
=includedir
;;
222 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
223 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
224 includedir
="$ac_optarg" ;;
226 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
228 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
229 infodir
="$ac_optarg" ;;
231 -libdir |
--libdir |
--libdi |
--libd)
233 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
234 libdir
="$ac_optarg" ;;
236 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
237 |
--libexe |
--libex |
--libe)
238 ac_prev
=libexecdir
;;
239 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
240 |
--libexe=* |
--libex=* |
--libe=*)
241 libexecdir
="$ac_optarg" ;;
243 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
244 |
--localstate |
--localstat |
--localsta |
--localst \
245 |
--locals |
--local |
--loca |
--loc |
--lo)
246 ac_prev
=localstatedir
;;
247 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
248 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
249 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
250 localstatedir
="$ac_optarg" ;;
252 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
254 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
255 mandir
="$ac_optarg" ;;
258 # Obsolete; use --without-fp.
261 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
265 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
266 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
269 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
270 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
271 |
--oldin |
--oldi |
--old |
--ol |
--o)
272 ac_prev
=oldincludedir
;;
273 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
274 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
275 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
276 oldincludedir
="$ac_optarg" ;;
278 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
280 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
281 prefix
="$ac_optarg" ;;
283 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
284 |
--program-pre |
--program-pr |
--program-p)
285 ac_prev
=program_prefix
;;
286 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
287 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
288 program_prefix
="$ac_optarg" ;;
290 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
291 |
--program-suf |
--program-su |
--program-s)
292 ac_prev
=program_suffix
;;
293 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
294 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
295 program_suffix
="$ac_optarg" ;;
297 -program-transform-name |
--program-transform-name \
298 |
--program-transform-nam |
--program-transform-na \
299 |
--program-transform-n |
--program-transform- \
300 |
--program-transform |
--program-transfor \
301 |
--program-transfo |
--program-transf \
302 |
--program-trans |
--program-tran \
303 |
--progr-tra |
--program-tr |
--program-t)
304 ac_prev
=program_transform_name
;;
305 -program-transform-name=* |
--program-transform-name=* \
306 |
--program-transform-nam=* |
--program-transform-na=* \
307 |
--program-transform-n=* |
--program-transform-=* \
308 |
--program-transform=* |
--program-transfor=* \
309 |
--program-transfo=* |
--program-transf=* \
310 |
--program-trans=* |
--program-tran=* \
311 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
312 program_transform_name
="$ac_optarg" ;;
314 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
315 |
-silent |
--silent |
--silen |
--sile |
--sil)
318 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
320 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
322 sbindir
="$ac_optarg" ;;
324 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
325 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
326 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
328 ac_prev
=sharedstatedir
;;
329 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
330 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
331 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
333 sharedstatedir
="$ac_optarg" ;;
335 -site |
--site |
--sit)
337 -site=* |
--site=* |
--sit=*)
340 -site-file |
--site-file |
--site-fil |
--site-fi |
--site-f)
342 -site-file=* |
--site-file=* |
--site-fil=* |
--site-fi=* |
--site-f=*)
343 sitefile
="$ac_optarg" ;;
345 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
347 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
348 srcdir
="$ac_optarg" ;;
350 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
351 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
352 ac_prev
=sysconfdir
;;
353 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
354 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
355 sysconfdir
="$ac_optarg" ;;
357 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
359 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
360 target
="$ac_optarg" ;;
362 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
365 -version |
--version |
--versio |
--versi |
--vers)
366 echo "configure generated by autoconf version 2.13"
370 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
371 # Reject names that are not valid shell variable names.
372 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
373 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
375 ac_package
=`echo $ac_package| sed 's/-/_/g'`
380 eval "with_${ac_package}='$ac_optarg'" ;;
382 -without-* |
--without-*)
383 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
384 # Reject names that are not valid shell variable names.
385 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
386 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
388 ac_package
=`echo $ac_package| sed 's/-/_/g'`
389 eval "with_${ac_package}=no" ;;
392 # Obsolete; use --with-x.
395 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
396 |
--x-incl |
--x-inc |
--x-in |
--x-i)
397 ac_prev
=x_includes
;;
398 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
399 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
400 x_includes
="$ac_optarg" ;;
402 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
403 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
404 ac_prev
=x_libraries
;;
405 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
406 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
407 x_libraries
="$ac_optarg" ;;
409 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
413 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
414 echo "configure: warning: $ac_option: invalid host type" 1>&2
416 if test "x$nonopt" != xNONE
; then
417 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
425 if test -n "$ac_prev"; then
426 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
429 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
431 # File descriptor usage:
434 # 2 errors and warnings
435 # 3 some systems may open it to /dev/tty
436 # 4 used on the Kubota Titan
437 # 6 checking for... messages and results
438 # 5 compiler messages saved in config.log
439 if test "$silent" = yes; then
447 This file contains any messages produced by compilers while
448 running configure, to aid debugging if configure makes a mistake.
451 # Strip out --no-create and --no-recursion so they do not pile up.
452 # Also quote any args containing shell metacharacters.
457 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
458 |
--no-cr |
--no-c) ;;
459 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
460 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
461 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
462 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
463 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
468 # Only set these to C if already set. These must not be set unconditionally
469 # because not all systems understand e.g. LANG=C (notably SCO).
470 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
471 # Non-C LC_CTYPE values break the ctype check.
472 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
473 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
474 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
475 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
477 # confdefs.h avoids OS command line length limits that DEFS can exceed.
478 rm -rf conftest
* confdefs.h
479 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
482 # A filename unique to this package, relative to the directory that
483 # configure is in, which we can look for to find out if srcdir is correct.
484 ac_unique_file
=ldmain.c
486 # Find the source files, if location was not specified.
487 if test -z "$srcdir"; then
488 ac_srcdir_defaulted
=yes
489 # Try the directory containing this script, then its parent.
491 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
492 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
494 if test ! -r $srcdir/$ac_unique_file; then
498 ac_srcdir_defaulted
=no
500 if test ! -r $srcdir/$ac_unique_file; then
501 if test "$ac_srcdir_defaulted" = yes; then
502 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
504 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
507 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
509 # Prefer explicitly selected file to automatically selected ones.
510 if test -z "$sitefile"; then
511 if test -z "$CONFIG_SITE"; then
512 if test "x$prefix" != xNONE
; then
513 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
515 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
519 CONFIG_SITE
="$sitefile"
521 for ac_site_file
in $CONFIG_SITE; do
522 if test -r "$ac_site_file"; then
523 echo "loading site script $ac_site_file"
528 if test -r "$cache_file"; then
529 echo "loading cache $cache_file"
532 echo "creating cache $cache_file"
537 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
538 ac_cpp
='$CPP $CPPFLAGS'
539 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
540 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
541 cross_compiling
=$ac_cv_prog_cc_cross
545 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
546 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
547 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
554 ac_n
= ac_c
='\c' ac_t
=
560 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
561 if test -f $ac_dir/install-sh
; then
563 ac_install_sh
="$ac_aux_dir/install-sh -c"
565 elif test -f $ac_dir/install.sh
; then
567 ac_install_sh
="$ac_aux_dir/install.sh -c"
571 if test -z "$ac_aux_dir"; then
572 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
574 ac_config_guess
=$ac_aux_dir/config.guess
575 ac_config_sub
=$ac_aux_dir/config.sub
576 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
579 # Do some error checking and defaulting for the host and target type.
581 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
584 # 1. You are not allowed to specify --host, --target, and nonopt at the
586 # 2. Host defaults to nonopt.
587 # 3. If nonopt is not specified, then host defaults to the current host,
588 # as determined by config.guess.
589 # 4. Target and build default to nonopt.
590 # 5. If nonopt is not specified, then target and build default to host.
592 # The aliases save the names the user supplied, while $host etc.
593 # will get canonicalized.
594 case $host---$target---$nonopt in
595 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
596 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
600 # Make sure we can run config.sub.
601 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
602 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
605 echo $ac_n "checking host system type""... $ac_c" 1>&6
606 echo "configure:607: checking host system type" >&5
609 case "$host_alias" in
613 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
614 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
616 *) host_alias
=$nonopt ;;
620 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
621 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
622 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
623 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
624 echo "$ac_t""$host" 1>&6
626 echo $ac_n "checking target system type""... $ac_c" 1>&6
627 echo "configure:628: checking target system type" >&5
630 case "$target_alias" in
633 NONE
) target_alias
=$host_alias ;;
634 *) target_alias
=$nonopt ;;
638 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
639 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
640 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
641 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
642 echo "$ac_t""$target" 1>&6
644 echo $ac_n "checking build system type""... $ac_c" 1>&6
645 echo "configure:646: checking build system type" >&5
648 case "$build_alias" in
651 NONE
) build_alias
=$host_alias ;;
652 *) build_alias
=$nonopt ;;
656 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
657 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
658 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
659 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
660 echo "$ac_t""$build" 1>&6
662 test "$host_alias" != "$target_alias" &&
663 test "$program_prefix$program_suffix$program_transform_name" = \
665 program_prefix
=${target_alias}-
668 # Find a good install program. We prefer a C program (faster),
669 # so one script is as good as another. But avoid the broken or
670 # incompatible versions:
671 # SysV /etc/install, /usr/sbin/install
672 # SunOS /usr/etc/install
675 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
676 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
677 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
678 # ./install, which can be erroneously created by make from ./install.sh.
679 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
680 echo "configure:681: checking for a BSD compatible install" >&5
681 if test -z "$INSTALL"; then
682 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
683 echo $ac_n "(cached) $ac_c" 1>&6
685 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
686 for ac_dir
in $PATH; do
687 # Account for people who put trailing slashes in PATH elements.
689 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
691 # OSF1 and SCO ODT 3.0 have their own names for install.
692 # Don't use installbsd from OSF since it installs stuff as root
694 for ac_prog
in ginstall scoinst
install; do
695 if test -f $ac_dir/$ac_prog; then
696 if test $ac_prog = install &&
697 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
698 # AIX install. It has an incompatible calling convention.
701 ac_cv_path_install
="$ac_dir/$ac_prog -c"
712 if test "${ac_cv_path_install+set}" = set; then
713 INSTALL
="$ac_cv_path_install"
715 # As a last resort, use the slow shell script. We don't cache a
716 # path for INSTALL within a source directory, because that will
717 # break other packages using the cache if that directory is
718 # removed, or if the path is relative.
719 INSTALL
="$ac_install_sh"
722 echo "$ac_t""$INSTALL" 1>&6
724 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
725 # It thinks the first close brace ends the variable substitution.
726 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
728 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
730 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
732 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
733 echo "configure:734: checking whether build environment is sane" >&5
736 echo timestamp
> conftestfile
737 # Do `set' in a subshell so we don't clobber the current shell's
738 # arguments. Must try -L first in case configure is actually a
739 # symlink; some systems play weird games with the mod time of symlinks
740 # (eg FreeBSD returns the mod time of the symlink's containing
743 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
744 if test "$*" = "X"; then
746 set X
`ls -t $srcdir/configure conftestfile`
748 if test "$*" != "X $srcdir/configure conftestfile" \
749 && test "$*" != "X conftestfile $srcdir/configure"; then
751 # If neither matched, then we have a broken ls. This can happen
752 # if, for instance, CONFIG_SHELL is bash and it inherits a
753 # broken ls alias from the environment. This has actually
754 # happened. Such a system could not be considered "sane".
755 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
756 alias in your environment" 1>&2; exit 1; }
759 test "$2" = conftestfile
765 { echo "configure: error: newly created file is older than distributed files!
766 Check your system clock" 1>&2; exit 1; }
769 echo "$ac_t""yes" 1>&6
770 if test "$program_transform_name" = s
,x
,x
,; then
771 program_transform_name
=
773 # Double any \ or $. echo might interpret backslashes.
774 cat <<\EOF_SED
> conftestsed
775 s
,\\,\\\\,g
; s
,\$
,$$
,g
777 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
780 test "$program_prefix" != NONE
&&
781 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
782 # Use a double $ so make ignores it.
783 test "$program_suffix" != NONE
&&
784 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
786 # sed with no file args requires a program.
787 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
789 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
790 echo "configure:791: checking whether ${MAKE-make} sets \${MAKE}" >&5
791 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
792 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
793 echo $ac_n "(cached) $ac_c" 1>&6
795 cat > conftestmake
<<\EOF
797 @
echo 'ac_maketemp="${MAKE}"'
799 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
800 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
801 if test -n "$ac_maketemp"; then
802 eval ac_cv_prog_make_
${ac_make}_set
=yes
804 eval ac_cv_prog_make_
${ac_make}_set
=no
808 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
809 echo "$ac_t""yes" 1>&6
812 echo "$ac_t""no" 1>&6
813 SET_MAKE
="MAKE=${MAKE-make}"
821 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
822 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
824 cat >> confdefs.h
<<EOF
825 #define PACKAGE "$PACKAGE"
828 cat >> confdefs.h
<<EOF
829 #define VERSION "$VERSION"
834 missing_dir
=`cd $ac_aux_dir && pwd`
835 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
836 echo "configure:837: checking for working aclocal" >&5
837 # Run test in a subshell; some versions of sh will print an error if
838 # an executable is not found, even if stderr is redirected.
839 # Redirect stdin to placate older versions of autoconf. Sigh.
840 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
842 echo "$ac_t""found" 1>&6
844 ACLOCAL
="$missing_dir/missing aclocal"
845 echo "$ac_t""missing" 1>&6
848 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
849 echo "configure:850: checking for working autoconf" >&5
850 # Run test in a subshell; some versions of sh will print an error if
851 # an executable is not found, even if stderr is redirected.
852 # Redirect stdin to placate older versions of autoconf. Sigh.
853 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
855 echo "$ac_t""found" 1>&6
857 AUTOCONF
="$missing_dir/missing autoconf"
858 echo "$ac_t""missing" 1>&6
861 echo $ac_n "checking for working automake""... $ac_c" 1>&6
862 echo "configure:863: checking for working automake" >&5
863 # Run test in a subshell; some versions of sh will print an error if
864 # an executable is not found, even if stderr is redirected.
865 # Redirect stdin to placate older versions of autoconf. Sigh.
866 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
868 echo "$ac_t""found" 1>&6
870 AUTOMAKE
="$missing_dir/missing automake"
871 echo "$ac_t""missing" 1>&6
874 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
875 echo "configure:876: checking for working autoheader" >&5
876 # Run test in a subshell; some versions of sh will print an error if
877 # an executable is not found, even if stderr is redirected.
878 # Redirect stdin to placate older versions of autoconf. Sigh.
879 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
880 AUTOHEADER
=autoheader
881 echo "$ac_t""found" 1>&6
883 AUTOHEADER
="$missing_dir/missing autoheader"
884 echo "$ac_t""missing" 1>&6
887 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
888 echo "configure:889: checking for working makeinfo" >&5
889 # Run test in a subshell; some versions of sh will print an error if
890 # an executable is not found, even if stderr is redirected.
891 # Redirect stdin to placate older versions of autoconf. Sigh.
892 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
894 echo "$ac_t""found" 1>&6
896 MAKEINFO
="$missing_dir/missing makeinfo"
897 echo "$ac_t""missing" 1>&6
902 # Check whether --enable-shared or --disable-shared was given.
903 if test "${enable_shared+set}" = set; then
904 enableval
="$enable_shared"
907 yes) enable_shared
=yes ;;
908 no
) enable_shared
=no
;;
911 # Look at the argument we got. We use all the common list separators.
912 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
913 for pkg
in $enableval; do
914 if test "X$pkg" = "X$p"; then
925 # Check whether --enable-static or --disable-static was given.
926 if test "${enable_static+set}" = set; then
927 enableval
="$enable_static"
930 yes) enable_static
=yes ;;
931 no
) enable_static
=no
;;
934 # Look at the argument we got. We use all the common list separators.
935 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
936 for pkg
in $enableval; do
937 if test "X$pkg" = "X$p"; then
948 # Check whether --enable-fast-install or --disable-fast-install was given.
949 if test "${enable_fast_install+set}" = set; then
950 enableval
="$enable_fast_install"
953 yes) enable_fast_install
=yes ;;
954 no
) enable_fast_install
=no
;;
956 enable_fast_install
=no
957 # Look at the argument we got. We use all the common list separators.
958 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
959 for pkg
in $enableval; do
960 if test "X$pkg" = "X$p"; then
961 enable_fast_install
=yes
968 enable_fast_install
=yes
971 # Extract the first word of "ranlib", so it can be a program name with args.
972 set dummy ranlib
; ac_word
=$2
973 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
974 echo "configure:975: checking for $ac_word" >&5
975 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
976 echo $ac_n "(cached) $ac_c" 1>&6
978 if test -n "$RANLIB"; then
979 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
981 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
983 for ac_dir
in $ac_dummy; do
984 test -z "$ac_dir" && ac_dir
=.
985 if test -f $ac_dir/$ac_word; then
986 ac_cv_prog_RANLIB
="ranlib"
991 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
994 RANLIB
="$ac_cv_prog_RANLIB"
995 if test -n "$RANLIB"; then
996 echo "$ac_t""$RANLIB" 1>&6
998 echo "$ac_t""no" 1>&6
1001 # Extract the first word of "gcc", so it can be a program name with args.
1002 set dummy gcc
; ac_word
=$2
1003 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1004 echo "configure:1005: checking for $ac_word" >&5
1005 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1006 echo $ac_n "(cached) $ac_c" 1>&6
1008 if test -n "$CC"; then
1009 ac_cv_prog_CC
="$CC" # Let the user override the test.
1011 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1013 for ac_dir
in $ac_dummy; do
1014 test -z "$ac_dir" && ac_dir
=.
1015 if test -f $ac_dir/$ac_word; then
1024 if test -n "$CC"; then
1025 echo "$ac_t""$CC" 1>&6
1027 echo "$ac_t""no" 1>&6
1030 if test -z "$CC"; then
1031 # Extract the first word of "cc", so it can be a program name with args.
1032 set dummy cc
; ac_word
=$2
1033 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1034 echo "configure:1035: checking for $ac_word" >&5
1035 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1036 echo $ac_n "(cached) $ac_c" 1>&6
1038 if test -n "$CC"; then
1039 ac_cv_prog_CC
="$CC" # Let the user override the test.
1041 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1044 for ac_dir
in $ac_dummy; do
1045 test -z "$ac_dir" && ac_dir
=.
1046 if test -f $ac_dir/$ac_word; then
1047 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1048 ac_prog_rejected
=yes
1056 if test $ac_prog_rejected = yes; then
1057 # We found a bogon in the path, so make sure we never use it.
1058 set dummy
$ac_cv_prog_CC
1060 if test $# -gt 0; then
1061 # We chose a different compiler from the bogus one.
1062 # However, it has the same basename, so the bogon will be chosen
1063 # first if we set CC to just the basename; use the full file name.
1065 set dummy
"$ac_dir/$ac_word" "$@"
1073 if test -n "$CC"; then
1074 echo "$ac_t""$CC" 1>&6
1076 echo "$ac_t""no" 1>&6
1079 if test -z "$CC"; then
1080 case "`uname -s`" in
1082 # Extract the first word of "cl", so it can be a program name with args.
1083 set dummy cl
; ac_word
=$2
1084 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1085 echo "configure:1086: checking for $ac_word" >&5
1086 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1087 echo $ac_n "(cached) $ac_c" 1>&6
1089 if test -n "$CC"; then
1090 ac_cv_prog_CC
="$CC" # Let the user override the test.
1092 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1094 for ac_dir
in $ac_dummy; do
1095 test -z "$ac_dir" && ac_dir
=.
1096 if test -f $ac_dir/$ac_word; then
1105 if test -n "$CC"; then
1106 echo "$ac_t""$CC" 1>&6
1108 echo "$ac_t""no" 1>&6
1113 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1116 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1117 echo "configure:1118: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1120 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1121 ac_cpp
='$CPP $CPPFLAGS'
1122 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1123 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1124 cross_compiling
=$ac_cv_prog_cc_cross
1126 cat > conftest.
$ac_ext << EOF
1128 #line 1129 "configure"
1129 #include "confdefs.h"
1133 if { (eval echo configure
:1134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1134 ac_cv_prog_cc_works
=yes
1135 # If we can't run a trivial program, we are probably using a cross compiler.
1136 if (.
/conftest
; exit) 2>/dev
/null
; then
1137 ac_cv_prog_cc_cross
=no
1139 ac_cv_prog_cc_cross
=yes
1142 echo "configure: failed program was:" >&5
1143 cat conftest.
$ac_ext >&5
1144 ac_cv_prog_cc_works
=no
1148 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1149 ac_cpp
='$CPP $CPPFLAGS'
1150 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1151 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1152 cross_compiling
=$ac_cv_prog_cc_cross
1154 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1155 if test $ac_cv_prog_cc_works = no
; then
1156 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1158 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1159 echo "configure:1160: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1160 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1161 cross_compiling
=$ac_cv_prog_cc_cross
1163 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1164 echo "configure:1165: checking whether we are using GNU C" >&5
1165 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1166 echo $ac_n "(cached) $ac_c" 1>&6
1168 cat > conftest.c
<<EOF
1173 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1180 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1182 if test $ac_cv_prog_gcc = yes; then
1188 ac_test_CFLAGS
="${CFLAGS+set}"
1189 ac_save_CFLAGS
="$CFLAGS"
1191 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1192 echo "configure:1193: checking whether ${CC-cc} accepts -g" >&5
1193 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1194 echo $ac_n "(cached) $ac_c" 1>&6
1196 echo 'void f(){}' > conftest.c
1197 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1206 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1207 if test "$ac_test_CFLAGS" = set; then
1208 CFLAGS
="$ac_save_CFLAGS"
1209 elif test $ac_cv_prog_cc_g = yes; then
1210 if test "$GCC" = yes; then
1216 if test "$GCC" = yes; then
1223 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1224 if test "${with_gnu_ld+set}" = set; then
1225 withval
="$with_gnu_ld"
1226 test "$withval" = no || with_gnu_ld
=yes
1232 if test "$ac_cv_prog_gcc" = yes; then
1233 # Check if gcc -print-prog-name=ld gives a path.
1234 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1235 echo "configure:1236: checking for ld used by GCC" >&5
1236 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1238 # Accept absolute paths.
1239 [\\/]* |
[A-Za-z
]:[\\/]*)
1240 re_direlt
='/[^/][^/]*/\.\./'
1241 # Canonicalize the path of ld
1242 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1243 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1244 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1246 test -z "$LD" && LD
="$ac_prog"
1249 # If it fails, then pretend we aren't using GCC.
1253 # If it is relative, then search for the first ld in PATH.
1257 elif test "$with_gnu_ld" = yes; then
1258 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1259 echo "configure:1260: checking for GNU ld" >&5
1261 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1262 echo "configure:1263: checking for non-GNU ld" >&5
1264 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1265 echo $ac_n "(cached) $ac_c" 1>&6
1267 if test -z "$LD"; then
1268 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1269 for ac_dir
in $PATH; do
1270 test -z "$ac_dir" && ac_dir
=.
1271 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1272 ac_cv_path_LD
="$ac_dir/$ac_prog"
1273 # Check to see if the program is GNU ld. I'd rather use --version,
1274 # but apparently some GNU ld's only accept -v.
1275 # Break only if it was the GNU/non-GNU ld that we prefer.
1276 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1277 test "$with_gnu_ld" != no
&& break
1279 test "$with_gnu_ld" != yes && break
1285 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1290 if test -n "$LD"; then
1291 echo "$ac_t""$LD" 1>&6
1293 echo "$ac_t""no" 1>&6
1295 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1296 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1297 echo "configure:1298: checking if the linker ($LD) is GNU ld" >&5
1298 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1299 echo $ac_n "(cached) $ac_c" 1>&6
1301 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1302 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1303 ac_cv_prog_gnu_ld
=yes
1305 ac_cv_prog_gnu_ld
=no
1309 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1312 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1313 echo "configure:1314: checking for BSD-compatible nm" >&5
1314 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1315 echo $ac_n "(cached) $ac_c" 1>&6
1317 if test -n "$NM"; then
1318 # Let the user override the test.
1321 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1322 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1323 test -z "$ac_dir" && ac_dir
=.
1324 if test -f $ac_dir/nm ||
test -f $ac_dir/nm
$ac_exeext ; then
1325 # Check to see if the nm accepts a BSD-compat flag.
1326 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1327 # nm: unknown option "B" ignored
1328 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1329 ac_cv_path_NM
="$ac_dir/nm -B"
1331 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1332 ac_cv_path_NM
="$ac_dir/nm -p"
1335 ac_cv_path_NM
=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1336 continue # so that we can try to find one that supports BSD flags
1341 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1346 echo "$ac_t""$NM" 1>&6
1348 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1349 echo "configure:1350: checking whether ln -s works" >&5
1350 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1351 echo $ac_n "(cached) $ac_c" 1>&6
1354 if ln -s X conftestdata
2>/dev
/null
1357 ac_cv_prog_LN_S
="ln -s"
1362 LN_S
="$ac_cv_prog_LN_S"
1363 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1364 echo "$ac_t""yes" 1>&6
1366 echo "$ac_t""no" 1>&6
1371 NONE
) lt_target
="$host" ;;
1372 *) lt_target
="$target" ;;
1375 # Check for any special flags to pass to ltconfig.
1376 libtool_flags
="--cache-file=$cache_file"
1377 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1378 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1379 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1380 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1381 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1384 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1385 if test "${enable_libtool_lock+set}" = set; then
1386 enableval
="$enable_libtool_lock"
1390 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
1391 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
1393 # Some flags need to be propagated to the compiler or linker for good
1395 case "$lt_target" in
1397 # Find out which ABI we are using.
1398 echo '#line 1399 "configure"' > conftest.
$ac_ext
1399 if { (eval echo configure
:1400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1400 case "`/usr/bin/file conftest.o`" in
1416 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1417 SAVE_CFLAGS
="$CFLAGS"
1418 CFLAGS
="$CFLAGS -belf"
1419 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1420 echo "configure:1421: checking whether the C compiler needs -belf" >&5
1421 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1422 echo $ac_n "(cached) $ac_c" 1>&6
1424 cat > conftest.
$ac_ext <<EOF
1425 #line 1426 "configure"
1426 #include "confdefs.h"
1432 if { (eval echo configure
:1433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1434 lt_cv_cc_needs_belf
=yes
1436 echo "configure: failed program was:" >&5
1437 cat conftest.
$ac_ext >&5
1439 lt_cv_cc_needs_belf
=no
1444 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1445 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
1446 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1447 CFLAGS
="$SAVE_CFLAGS"
1455 # Save cache, so that ltconfig can load it
1456 cat > confcache
<<\EOF
1457 # This file is a shell script that caches the results of configure
1458 # tests run on this system so they can be shared between configure
1459 # scripts and configure runs. It is not useful on other systems.
1460 # If it contains results you don't want to keep, you may remove or edit it.
1462 # By default, configure uses ./config.cache as the cache file,
1463 # creating it if it does not exist already. You can give configure
1464 # the --cache-file=FILE option to use a different cache file; that is
1465 # what configure does when it calls configure scripts in
1466 # subdirectories, so they share the cache.
1467 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1468 # config.status only pays attention to the cache file if you give it the
1469 # --recheck option to rerun configure.
1472 # The following way of writing the cache mishandles newlines in values,
1473 # but we know of no workaround that is simple, portable, and efficient.
1474 # So, don't put newlines in cache variables' values.
1475 # Ultrix sh set writes to stderr and can't be redirected directly,
1476 # and sets the high bit in the cache file unless we assign to the vars.
1478 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1480 # `set' does not quote correctly, so add quotes (double-quote substitution
1481 # turns \\\\ into \\, and sed turns \\ into \).
1483 -e "s/'/'\\\\''/g" \
1484 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1487 # `set' quotes correctly as required by POSIX, so do not add quotes.
1488 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1491 if cmp -s $cache_file confcache
; then
1494 if test -w $cache_file; then
1495 echo "updating cache $cache_file"
1496 cat confcache
> $cache_file
1498 echo "not updating unwritable cache $cache_file"
1504 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1505 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1506 LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
1507 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" \
1508 DLLTOOL
="$DLLTOOL" AS
="$AS" OBJDUMP
="$OBJDUMP" \
1509 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
1510 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$lt_target \
1511 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1513 # Reload cache, that may have been modified by ltconfig
1514 if test -r "$cache_file"; then
1515 echo "loading cache $cache_file"
1518 echo "creating cache $cache_file"
1523 # This can be used to rebuild libtool when needed
1524 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1526 # Always use our own libtool.
1527 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1529 # Redirect the config.log output again, so that the ltconfig log is not
1530 # clobbered by the next message.
1531 exec 5>>.
/config.log
1534 # Check whether --enable-targets or --disable-targets was given.
1535 if test "${enable_targets+set}" = set; then
1536 enableval
="$enable_targets"
1537 case "${enableval}" in
1538 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
1540 no
) enable_targets
= ;;
1541 *) enable_targets
=$enableval ;;
1544 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
1545 if test "${enable_64_bit_bfd+set}" = set; then
1546 enableval
="$enable_64_bit_bfd"
1547 case "${enableval}" in
1550 *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;;
1556 build_warnings
="-W -Wall"
1557 # Check whether --enable-build-warnings or --disable-build-warnings was given.
1558 if test "${enable_build_warnings+set}" = set; then
1559 enableval
="$enable_build_warnings"
1560 case "${enableval}" in
1562 no
) build_warnings
="-w";;
1563 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
1564 build_warnings
="${build_warnings} ${t}";;
1565 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
1566 build_warnings
="${t} ${build_warnings}";;
1567 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
1569 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
1570 echo "Setting warning flags = $build_warnings" 6>&1
1574 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
; then
1575 WARN_CFLAGS
="${build_warnings}"
1583 if test -z "$target" ; then
1584 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
1586 if test -z "$host" ; then
1587 { echo "configure: error: Unrecognized host system type; please check config.sub." 1>&2; exit 1; }
1590 # host-specific stuff:
1592 # Extract the first word of "gcc", so it can be a program name with args.
1593 set dummy gcc
; ac_word
=$2
1594 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1595 echo "configure:1596: checking for $ac_word" >&5
1596 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1597 echo $ac_n "(cached) $ac_c" 1>&6
1599 if test -n "$CC"; then
1600 ac_cv_prog_CC
="$CC" # Let the user override the test.
1602 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1604 for ac_dir
in $ac_dummy; do
1605 test -z "$ac_dir" && ac_dir
=.
1606 if test -f $ac_dir/$ac_word; then
1615 if test -n "$CC"; then
1616 echo "$ac_t""$CC" 1>&6
1618 echo "$ac_t""no" 1>&6
1621 if test -z "$CC"; then
1622 # Extract the first word of "cc", so it can be a program name with args.
1623 set dummy cc
; ac_word
=$2
1624 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1625 echo "configure:1626: checking for $ac_word" >&5
1626 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1627 echo $ac_n "(cached) $ac_c" 1>&6
1629 if test -n "$CC"; then
1630 ac_cv_prog_CC
="$CC" # Let the user override the test.
1632 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1635 for ac_dir
in $ac_dummy; do
1636 test -z "$ac_dir" && ac_dir
=.
1637 if test -f $ac_dir/$ac_word; then
1638 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1639 ac_prog_rejected
=yes
1647 if test $ac_prog_rejected = yes; then
1648 # We found a bogon in the path, so make sure we never use it.
1649 set dummy
$ac_cv_prog_CC
1651 if test $# -gt 0; then
1652 # We chose a different compiler from the bogus one.
1653 # However, it has the same basename, so the bogon will be chosen
1654 # first if we set CC to just the basename; use the full file name.
1656 set dummy
"$ac_dir/$ac_word" "$@"
1664 if test -n "$CC"; then
1665 echo "$ac_t""$CC" 1>&6
1667 echo "$ac_t""no" 1>&6
1670 if test -z "$CC"; then
1671 case "`uname -s`" in
1673 # Extract the first word of "cl", so it can be a program name with args.
1674 set dummy cl
; ac_word
=$2
1675 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1676 echo "configure:1677: checking for $ac_word" >&5
1677 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1678 echo $ac_n "(cached) $ac_c" 1>&6
1680 if test -n "$CC"; then
1681 ac_cv_prog_CC
="$CC" # Let the user override the test.
1683 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1685 for ac_dir
in $ac_dummy; do
1686 test -z "$ac_dir" && ac_dir
=.
1687 if test -f $ac_dir/$ac_word; then
1696 if test -n "$CC"; then
1697 echo "$ac_t""$CC" 1>&6
1699 echo "$ac_t""no" 1>&6
1704 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1707 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1708 echo "configure:1709: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1711 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1712 ac_cpp
='$CPP $CPPFLAGS'
1713 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1714 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1715 cross_compiling
=$ac_cv_prog_cc_cross
1717 cat > conftest.
$ac_ext << EOF
1719 #line 1720 "configure"
1720 #include "confdefs.h"
1724 if { (eval echo configure
:1725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1725 ac_cv_prog_cc_works
=yes
1726 # If we can't run a trivial program, we are probably using a cross compiler.
1727 if (.
/conftest
; exit) 2>/dev
/null
; then
1728 ac_cv_prog_cc_cross
=no
1730 ac_cv_prog_cc_cross
=yes
1733 echo "configure: failed program was:" >&5
1734 cat conftest.
$ac_ext >&5
1735 ac_cv_prog_cc_works
=no
1739 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1740 ac_cpp
='$CPP $CPPFLAGS'
1741 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1742 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1743 cross_compiling
=$ac_cv_prog_cc_cross
1745 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1746 if test $ac_cv_prog_cc_works = no
; then
1747 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1749 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1750 echo "configure:1751: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1751 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1752 cross_compiling
=$ac_cv_prog_cc_cross
1754 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1755 echo "configure:1756: checking whether we are using GNU C" >&5
1756 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1757 echo $ac_n "(cached) $ac_c" 1>&6
1759 cat > conftest.c
<<EOF
1764 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1771 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1773 if test $ac_cv_prog_gcc = yes; then
1779 ac_test_CFLAGS
="${CFLAGS+set}"
1780 ac_save_CFLAGS
="$CFLAGS"
1782 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1783 echo "configure:1784: checking whether ${CC-cc} accepts -g" >&5
1784 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1785 echo $ac_n "(cached) $ac_c" 1>&6
1787 echo 'void f(){}' > conftest.c
1788 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1797 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1798 if test "$ac_test_CFLAGS" = set; then
1799 CFLAGS
="$ac_save_CFLAGS"
1800 elif test $ac_cv_prog_cc_g = yes; then
1801 if test "$GCC" = yes; then
1807 if test "$GCC" = yes; then
1814 # Find a good install program. We prefer a C program (faster),
1815 # so one script is as good as another. But avoid the broken or
1816 # incompatible versions:
1817 # SysV /etc/install, /usr/sbin/install
1818 # SunOS /usr/etc/install
1819 # IRIX /sbin/install
1821 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1822 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1823 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1824 # ./install, which can be erroneously created by make from ./install.sh.
1825 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1826 echo "configure:1827: checking for a BSD compatible install" >&5
1827 if test -z "$INSTALL"; then
1828 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1829 echo $ac_n "(cached) $ac_c" 1>&6
1831 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1832 for ac_dir
in $PATH; do
1833 # Account for people who put trailing slashes in PATH elements.
1835 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1837 # OSF1 and SCO ODT 3.0 have their own names for install.
1838 # Don't use installbsd from OSF since it installs stuff as root
1840 for ac_prog
in ginstall scoinst
install; do
1841 if test -f $ac_dir/$ac_prog; then
1842 if test $ac_prog = install &&
1843 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1844 # AIX install. It has an incompatible calling convention.
1847 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1858 if test "${ac_cv_path_install+set}" = set; then
1859 INSTALL
="$ac_cv_path_install"
1861 # As a last resort, use the slow shell script. We don't cache a
1862 # path for INSTALL within a source directory, because that will
1863 # break other packages using the cache if that directory is
1864 # removed, or if the path is relative.
1865 INSTALL
="$ac_install_sh"
1868 echo "$ac_t""$INSTALL" 1>&6
1870 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1871 # It thinks the first close brace ends the variable substitution.
1872 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1874 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1876 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1880 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1881 echo "configure:1882: checking how to run the C preprocessor" >&5
1882 # On Suns, sometimes $CPP names a directory.
1883 if test -n "$CPP" && test -d "$CPP"; then
1886 if test -z "$CPP"; then
1887 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1888 echo $ac_n "(cached) $ac_c" 1>&6
1890 # This must be in double quotes, not single quotes, because CPP may get
1891 # substituted into the Makefile and "${CC-cc}" will confuse make.
1893 # On the NeXT, cc -E runs the code through the compiler's parser,
1894 # not just through cpp.
1895 cat > conftest.
$ac_ext <<EOF
1896 #line 1897 "configure"
1897 #include "confdefs.h"
1901 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1902 { (eval echo configure
:1903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1903 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1904 if test -z "$ac_err"; then
1908 echo "configure: failed program was:" >&5
1909 cat conftest.
$ac_ext >&5
1911 CPP
="${CC-cc} -E -traditional-cpp"
1912 cat > conftest.
$ac_ext <<EOF
1913 #line 1914 "configure"
1914 #include "confdefs.h"
1918 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1919 { (eval echo configure
:1920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1920 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1921 if test -z "$ac_err"; then
1925 echo "configure: failed program was:" >&5
1926 cat conftest.
$ac_ext >&5
1928 CPP
="${CC-cc} -nologo -E"
1929 cat > conftest.
$ac_ext <<EOF
1930 #line 1931 "configure"
1931 #include "confdefs.h"
1935 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1936 { (eval echo configure
:1937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1937 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1938 if test -z "$ac_err"; then
1942 echo "configure: failed program was:" >&5
1943 cat conftest.
$ac_ext >&5
1952 ac_cv_prog_CPP
="$CPP"
1954 CPP
="$ac_cv_prog_CPP"
1956 ac_cv_prog_CPP
="$CPP"
1958 echo "$ac_t""$CPP" 1>&6
1960 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1961 echo "configure:1962: checking for POSIXized ISC" >&5
1962 if test -d /etc
/conf
/kconfig.d
&&
1963 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
1965 echo "$ac_t""yes" 1>&6
1966 ISC
=yes # If later tests want to check for ISC.
1967 cat >> confdefs.h
<<\EOF
1968 #define _POSIX_SOURCE 1
1971 if test "$GCC" = yes; then
1977 echo "$ac_t""no" 1>&6
1981 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1982 echo "configure:1983: checking for ANSI C header files" >&5
1983 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1984 echo $ac_n "(cached) $ac_c" 1>&6
1986 cat > conftest.
$ac_ext <<EOF
1987 #line 1988 "configure"
1988 #include "confdefs.h"
1994 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1995 { (eval echo configure
:1996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1996 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1997 if test -z "$ac_err"; then
1999 ac_cv_header_stdc
=yes
2002 echo "configure: failed program was:" >&5
2003 cat conftest.
$ac_ext >&5
2005 ac_cv_header_stdc
=no
2009 if test $ac_cv_header_stdc = yes; then
2010 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2011 cat > conftest.
$ac_ext <<EOF
2012 #line 2013 "configure"
2013 #include "confdefs.h"
2016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2017 egrep "memchr" >/dev
/null
2>&1; then
2021 ac_cv_header_stdc
=no
2027 if test $ac_cv_header_stdc = yes; then
2028 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2029 cat > conftest.
$ac_ext <<EOF
2030 #line 2031 "configure"
2031 #include "confdefs.h"
2034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2035 egrep "free" >/dev
/null
2>&1; then
2039 ac_cv_header_stdc
=no
2045 if test $ac_cv_header_stdc = yes; then
2046 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2047 if test "$cross_compiling" = yes; then
2050 cat > conftest.
$ac_ext <<EOF
2051 #line 2052 "configure"
2052 #include "confdefs.h"
2054 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2055 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2056 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2057 int main () { int i; for (i = 0; i < 256; i++)
2058 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2062 if { (eval echo configure
:2063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2066 echo "configure: failed program was:" >&5
2067 cat conftest.
$ac_ext >&5
2069 ac_cv_header_stdc
=no
2077 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2078 if test $ac_cv_header_stdc = yes; then
2079 cat >> confdefs.h
<<\EOF
2080 #define STDC_HEADERS 1
2085 echo $ac_n "checking for working const""... $ac_c" 1>&6
2086 echo "configure:2087: checking for working const" >&5
2087 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2088 echo $ac_n "(cached) $ac_c" 1>&6
2090 cat > conftest.
$ac_ext <<EOF
2091 #line 2092 "configure"
2092 #include "confdefs.h"
2096 /* Ultrix mips cc rejects this. */
2097 typedef int charset[2]; const charset x;
2098 /* SunOS 4.1.1 cc rejects this. */
2099 char const *const *ccp;
2101 /* NEC SVR4.0.2 mips cc rejects this. */
2102 struct point {int x, y;};
2103 static struct point const zero = {0,0};
2104 /* AIX XL C 1.02.0.0 rejects this.
2105 It does not let you subtract one const X* pointer from another in an arm
2106 of an if-expression whose if-part is not a constant expression */
2107 const char *g = "string";
2108 ccp = &g + (g ? g-g : 0);
2109 /* HPUX 7.0 cc rejects these. */
2112 ccp = (char const *const *) p;
2113 { /* SCO 3.2v4 cc rejects this. */
2115 char const *s = 0 ? (char *) 0 : (char const *) 0;
2119 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2121 const int *foo = &x[0];
2124 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2125 typedef const int *iptr;
2129 { /* AIX XL C 1.02.0.0 rejects this saying
2130 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2131 struct s { int j; const int *ap[3]; };
2132 struct s *b; b->j = 5;
2134 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2140 if { (eval echo configure
:2141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2144 echo "configure: failed program was:" >&5
2145 cat conftest.
$ac_ext >&5
2152 echo "$ac_t""$ac_cv_c_const" 1>&6
2153 if test $ac_cv_c_const = no
; then
2154 cat >> confdefs.h
<<\EOF
2160 echo $ac_n "checking for inline""... $ac_c" 1>&6
2161 echo "configure:2162: checking for inline" >&5
2162 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2163 echo $ac_n "(cached) $ac_c" 1>&6
2166 for ac_kw
in inline __inline__ __inline
; do
2167 cat > conftest.
$ac_ext <<EOF
2168 #line 2169 "configure"
2169 #include "confdefs.h"
2175 if { (eval echo configure
:2176: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2177 ac_cv_c_inline
=$ac_kw; break
2179 echo "configure: failed program was:" >&5
2180 cat conftest.
$ac_ext >&5
2187 echo "$ac_t""$ac_cv_c_inline" 1>&6
2188 case "$ac_cv_c_inline" in
2190 no
) cat >> confdefs.h
<<\EOF
2194 *) cat >> confdefs.h
<<EOF
2195 #define inline $ac_cv_c_inline
2200 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2201 echo "configure:2202: checking for off_t" >&5
2202 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2203 echo $ac_n "(cached) $ac_c" 1>&6
2205 cat > conftest.
$ac_ext <<EOF
2206 #line 2207 "configure"
2207 #include "confdefs.h"
2208 #include <sys/types.h>
2214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2215 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2217 ac_cv_type_off_t
=yes
2225 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2226 if test $ac_cv_type_off_t = no
; then
2227 cat >> confdefs.h
<<\EOF
2233 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2234 echo "configure:2235: checking for size_t" >&5
2235 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2236 echo $ac_n "(cached) $ac_c" 1>&6
2238 cat > conftest.
$ac_ext <<EOF
2239 #line 2240 "configure"
2240 #include "confdefs.h"
2241 #include <sys/types.h>
2247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2248 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2250 ac_cv_type_size_t
=yes
2253 ac_cv_type_size_t
=no
2258 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2259 if test $ac_cv_type_size_t = no
; then
2260 cat >> confdefs.h
<<\EOF
2261 #define size_t unsigned
2266 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2267 # for constant arguments. Useless!
2268 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2269 echo "configure:2270: checking for working alloca.h" >&5
2270 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2271 echo $ac_n "(cached) $ac_c" 1>&6
2273 cat > conftest.
$ac_ext <<EOF
2274 #line 2275 "configure"
2275 #include "confdefs.h"
2278 char *p = alloca(2 * sizeof(int));
2281 if { (eval echo configure
:2282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2283 ac_cv_header_alloca_h
=yes
2285 echo "configure: failed program was:" >&5
2286 cat conftest.
$ac_ext >&5
2288 ac_cv_header_alloca_h
=no
2293 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2294 if test $ac_cv_header_alloca_h = yes; then
2295 cat >> confdefs.h
<<\EOF
2296 #define HAVE_ALLOCA_H 1
2301 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2302 echo "configure:2303: checking for alloca" >&5
2303 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2304 echo $ac_n "(cached) $ac_c" 1>&6
2306 cat > conftest.
$ac_ext <<EOF
2307 #line 2308 "configure"
2308 #include "confdefs.h"
2311 # define alloca __builtin_alloca
2314 # include <malloc.h>
2315 # define alloca _alloca
2318 # include <alloca.h>
2323 # ifndef alloca /* predefined by HP cc +Olibcalls */
2332 char *p = (char *) alloca(1);
2335 if { (eval echo configure
:2336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2337 ac_cv_func_alloca_works
=yes
2339 echo "configure: failed program was:" >&5
2340 cat conftest.
$ac_ext >&5
2342 ac_cv_func_alloca_works
=no
2347 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2348 if test $ac_cv_func_alloca_works = yes; then
2349 cat >> confdefs.h
<<\EOF
2350 #define HAVE_ALLOCA 1
2355 if test $ac_cv_func_alloca_works = no
; then
2356 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2357 # that cause trouble. Some versions do not even contain alloca or
2358 # contain a buggy version. If you still want to use their alloca,
2359 # use ar to extract alloca.o from them instead of compiling alloca.c.
2360 ALLOCA
=alloca.
${ac_objext}
2361 cat >> confdefs.h
<<\EOF
2366 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2367 echo "configure:2368: checking whether alloca needs Cray hooks" >&5
2368 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2369 echo $ac_n "(cached) $ac_c" 1>&6
2371 cat > conftest.
$ac_ext <<EOF
2372 #line 2373 "configure"
2373 #include "confdefs.h"
2374 #if defined(CRAY) && ! defined(CRAY2)
2381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2382 egrep "webecray" >/dev
/null
2>&1; then
2393 echo "$ac_t""$ac_cv_os_cray" 1>&6
2394 if test $ac_cv_os_cray = yes; then
2395 for ac_func
in _getb67 GETB67 getb67
; do
2396 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2397 echo "configure:2398: checking for $ac_func" >&5
2398 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2399 echo $ac_n "(cached) $ac_c" 1>&6
2401 cat > conftest.
$ac_ext <<EOF
2402 #line 2403 "configure"
2403 #include "confdefs.h"
2404 /* System header to define __stub macros and hopefully few prototypes,
2405 which can conflict with char $ac_func(); below. */
2407 /* Override any gcc2 internal prototype to avoid an error. */
2408 /* We use char because int might match the return type of a gcc2
2409 builtin and then its argument prototype would still apply. */
2414 /* The GNU C library defines this for functions which it implements
2415 to always fail with ENOSYS. Some functions are actually named
2416 something starting with __ and the normal name is an alias. */
2417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2425 if { (eval echo configure
:2426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2427 eval "ac_cv_func_$ac_func=yes"
2429 echo "configure: failed program was:" >&5
2430 cat conftest.
$ac_ext >&5
2432 eval "ac_cv_func_$ac_func=no"
2437 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2438 echo "$ac_t""yes" 1>&6
2439 cat >> confdefs.h
<<EOF
2440 #define CRAY_STACKSEG_END $ac_func
2445 echo "$ac_t""no" 1>&6
2451 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2452 echo "configure:2453: checking stack direction for C alloca" >&5
2453 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2454 echo $ac_n "(cached) $ac_c" 1>&6
2456 if test "$cross_compiling" = yes; then
2457 ac_cv_c_stack_direction
=0
2459 cat > conftest.
$ac_ext <<EOF
2460 #line 2461 "configure"
2461 #include "confdefs.h"
2462 find_stack_direction ()
2464 static char *addr = 0;
2469 return find_stack_direction ();
2472 return (&dummy > addr) ? 1 : -1;
2476 exit (find_stack_direction() < 0);
2479 if { (eval echo configure
:2480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2481 ac_cv_c_stack_direction
=1
2483 echo "configure: failed program was:" >&5
2484 cat conftest.
$ac_ext >&5
2486 ac_cv_c_stack_direction
=-1
2493 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2494 cat >> confdefs.h
<<EOF
2495 #define STACK_DIRECTION $ac_cv_c_stack_direction
2500 for ac_hdr
in unistd.h
2502 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2503 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2504 echo "configure:2505: checking for $ac_hdr" >&5
2505 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2506 echo $ac_n "(cached) $ac_c" 1>&6
2508 cat > conftest.
$ac_ext <<EOF
2509 #line 2510 "configure"
2510 #include "confdefs.h"
2513 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2514 { (eval echo configure
:2515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2515 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2516 if test -z "$ac_err"; then
2518 eval "ac_cv_header_$ac_safe=yes"
2521 echo "configure: failed program was:" >&5
2522 cat conftest.
$ac_ext >&5
2524 eval "ac_cv_header_$ac_safe=no"
2528 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2529 echo "$ac_t""yes" 1>&6
2530 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2531 cat >> confdefs.h
<<EOF
2532 #define $ac_tr_hdr 1
2536 echo "$ac_t""no" 1>&6
2540 for ac_func
in getpagesize
2542 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2543 echo "configure:2544: checking for $ac_func" >&5
2544 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2545 echo $ac_n "(cached) $ac_c" 1>&6
2547 cat > conftest.
$ac_ext <<EOF
2548 #line 2549 "configure"
2549 #include "confdefs.h"
2550 /* System header to define __stub macros and hopefully few prototypes,
2551 which can conflict with char $ac_func(); below. */
2553 /* Override any gcc2 internal prototype to avoid an error. */
2554 /* We use char because int might match the return type of a gcc2
2555 builtin and then its argument prototype would still apply. */
2560 /* The GNU C library defines this for functions which it implements
2561 to always fail with ENOSYS. Some functions are actually named
2562 something starting with __ and the normal name is an alias. */
2563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2571 if { (eval echo configure
:2572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2573 eval "ac_cv_func_$ac_func=yes"
2575 echo "configure: failed program was:" >&5
2576 cat conftest.
$ac_ext >&5
2578 eval "ac_cv_func_$ac_func=no"
2583 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2584 echo "$ac_t""yes" 1>&6
2585 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2586 cat >> confdefs.h
<<EOF
2587 #define $ac_tr_func 1
2591 echo "$ac_t""no" 1>&6
2595 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2596 echo "configure:2597: checking for working mmap" >&5
2597 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2598 echo $ac_n "(cached) $ac_c" 1>&6
2600 if test "$cross_compiling" = yes; then
2601 ac_cv_func_mmap_fixed_mapped
=no
2603 cat > conftest.
$ac_ext <<EOF
2604 #line 2605 "configure"
2605 #include "confdefs.h"
2607 /* Thanks to Mike Haertel and Jim Avera for this test.
2608 Here is a matrix of mmap possibilities:
2609 mmap private not fixed
2610 mmap private fixed at somewhere currently unmapped
2611 mmap private fixed at somewhere already mapped
2612 mmap shared not fixed
2613 mmap shared fixed at somewhere currently unmapped
2614 mmap shared fixed at somewhere already mapped
2615 For private mappings, we should verify that changes cannot be read()
2616 back from the file, nor mmap's back from the file at a different
2617 address. (There have been systems where private was not correctly
2618 implemented like the infamous i386 svr4.0, and systems where the
2619 VM page cache was not coherent with the filesystem buffer cache
2620 like early versions of FreeBSD and possibly contemporary NetBSD.)
2621 For shared mappings, we should conversely verify that changes get
2622 propogated back to all the places they're supposed to be.
2624 Grep wants private fixed already mapped.
2625 The main things grep needs to know about mmap are:
2626 * does it exist and is it safe to write into the mmap'd area
2627 * how to use it (BSD variants) */
2628 #include <sys/types.h>
2630 #include <sys/mman.h>
2632 /* This mess was copied from the GNU getpagesize.h. */
2633 #ifndef HAVE_GETPAGESIZE
2634 # ifdef HAVE_UNISTD_H
2635 # include <unistd.h>
2638 /* Assume that all systems that can run configure have sys/param.h. */
2639 # ifndef HAVE_SYS_PARAM_H
2640 # define HAVE_SYS_PARAM_H 1
2643 # ifdef _SC_PAGESIZE
2644 # define getpagesize() sysconf(_SC_PAGESIZE)
2645 # else /* no _SC_PAGESIZE */
2646 # ifdef HAVE_SYS_PARAM_H
2647 # include <sys/param.h>
2648 # ifdef EXEC_PAGESIZE
2649 # define getpagesize() EXEC_PAGESIZE
2650 # else /* no EXEC_PAGESIZE */
2652 # define getpagesize() NBPG * CLSIZE
2655 # endif /* no CLSIZE */
2656 # else /* no NBPG */
2658 # define getpagesize() NBPC
2659 # else /* no NBPC */
2661 # define getpagesize() PAGESIZE
2662 # endif /* PAGESIZE */
2663 # endif /* no NBPC */
2664 # endif /* no NBPG */
2665 # endif /* no EXEC_PAGESIZE */
2666 # else /* no HAVE_SYS_PARAM_H */
2667 # define getpagesize() 8192 /* punt totally */
2668 # endif /* no HAVE_SYS_PARAM_H */
2669 # endif /* no _SC_PAGESIZE */
2671 #endif /* no HAVE_GETPAGESIZE */
2674 extern "C" { void *malloc(unsigned); }
2682 char *data, *data2, *data3;
2686 pagesize = getpagesize();
2689 * First, make a file with some known garbage in it.
2691 data = malloc(pagesize);
2694 for (i = 0; i < pagesize; ++i)
2695 *(data + i) = rand();
2697 fd = creat("conftestmmap", 0600);
2700 if (write(fd, data, pagesize) != pagesize)
2705 * Next, try to mmap the file at a fixed address which
2706 * already has something else allocated at it. If we can,
2707 * also make sure that we see the same garbage.
2709 fd = open("conftestmmap", O_RDWR);
2712 data2 = malloc(2 * pagesize);
2715 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2716 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2717 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2719 for (i = 0; i < pagesize; ++i)
2720 if (*(data + i) != *(data2 + i))
2724 * Finally, make sure that changes to the mapped area
2725 * do not percolate back to the file as seen by read().
2726 * (This is a bug on some variants of i386 svr4.0.)
2728 for (i = 0; i < pagesize; ++i)
2729 *(data2 + i) = *(data2 + i) + 1;
2730 data3 = malloc(pagesize);
2733 if (read(fd, data3, pagesize) != pagesize)
2735 for (i = 0; i < pagesize; ++i)
2736 if (*(data + i) != *(data3 + i))
2739 unlink("conftestmmap");
2744 if { (eval echo configure
:2745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2746 ac_cv_func_mmap_fixed_mapped
=yes
2748 echo "configure: failed program was:" >&5
2749 cat conftest.
$ac_ext >&5
2751 ac_cv_func_mmap_fixed_mapped
=no
2758 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2759 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2760 cat >> confdefs.h
<<\EOF
2767 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2768 unistd.h values.h sys
/param.h
2770 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2771 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2772 echo "configure:2773: checking for $ac_hdr" >&5
2773 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2774 echo $ac_n "(cached) $ac_c" 1>&6
2776 cat > conftest.
$ac_ext <<EOF
2777 #line 2778 "configure"
2778 #include "confdefs.h"
2781 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2782 { (eval echo configure
:2783: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2783 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2784 if test -z "$ac_err"; then
2786 eval "ac_cv_header_$ac_safe=yes"
2789 echo "configure: failed program was:" >&5
2790 cat conftest.
$ac_ext >&5
2792 eval "ac_cv_header_$ac_safe=no"
2796 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2797 echo "$ac_t""yes" 1>&6
2798 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2799 cat >> confdefs.h
<<EOF
2800 #define $ac_tr_hdr 1
2804 echo "$ac_t""no" 1>&6
2808 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2809 __argz_count __argz_stringify __argz_next
2811 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2812 echo "configure:2813: checking for $ac_func" >&5
2813 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2814 echo $ac_n "(cached) $ac_c" 1>&6
2816 cat > conftest.
$ac_ext <<EOF
2817 #line 2818 "configure"
2818 #include "confdefs.h"
2819 /* System header to define __stub macros and hopefully few prototypes,
2820 which can conflict with char $ac_func(); below. */
2822 /* Override any gcc2 internal prototype to avoid an error. */
2823 /* We use char because int might match the return type of a gcc2
2824 builtin and then its argument prototype would still apply. */
2829 /* The GNU C library defines this for functions which it implements
2830 to always fail with ENOSYS. Some functions are actually named
2831 something starting with __ and the normal name is an alias. */
2832 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2840 if { (eval echo configure
:2841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2842 eval "ac_cv_func_$ac_func=yes"
2844 echo "configure: failed program was:" >&5
2845 cat conftest.
$ac_ext >&5
2847 eval "ac_cv_func_$ac_func=no"
2852 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2853 echo "$ac_t""yes" 1>&6
2854 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2855 cat >> confdefs.h
<<EOF
2856 #define $ac_tr_func 1
2860 echo "$ac_t""no" 1>&6
2865 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2866 for ac_func
in stpcpy
2868 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2869 echo "configure:2870: checking for $ac_func" >&5
2870 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2871 echo $ac_n "(cached) $ac_c" 1>&6
2873 cat > conftest.
$ac_ext <<EOF
2874 #line 2875 "configure"
2875 #include "confdefs.h"
2876 /* System header to define __stub macros and hopefully few prototypes,
2877 which can conflict with char $ac_func(); below. */
2879 /* Override any gcc2 internal prototype to avoid an error. */
2880 /* We use char because int might match the return type of a gcc2
2881 builtin and then its argument prototype would still apply. */
2886 /* The GNU C library defines this for functions which it implements
2887 to always fail with ENOSYS. Some functions are actually named
2888 something starting with __ and the normal name is an alias. */
2889 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2897 if { (eval echo configure
:2898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2899 eval "ac_cv_func_$ac_func=yes"
2901 echo "configure: failed program was:" >&5
2902 cat conftest.
$ac_ext >&5
2904 eval "ac_cv_func_$ac_func=no"
2909 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2910 echo "$ac_t""yes" 1>&6
2911 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2912 cat >> confdefs.h
<<EOF
2913 #define $ac_tr_func 1
2917 echo "$ac_t""no" 1>&6
2922 if test "${ac_cv_func_stpcpy}" = "yes"; then
2923 cat >> confdefs.h
<<\EOF
2924 #define HAVE_STPCPY 1
2929 if test $ac_cv_header_locale_h = yes; then
2930 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2931 echo "configure:2932: checking for LC_MESSAGES" >&5
2932 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2933 echo $ac_n "(cached) $ac_c" 1>&6
2935 cat > conftest.
$ac_ext <<EOF
2936 #line 2937 "configure"
2937 #include "confdefs.h"
2943 if { (eval echo configure
:2944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2945 am_cv_val_LC_MESSAGES
=yes
2947 echo "configure: failed program was:" >&5
2948 cat conftest.
$ac_ext >&5
2950 am_cv_val_LC_MESSAGES
=no
2955 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2956 if test $am_cv_val_LC_MESSAGES = yes; then
2957 cat >> confdefs.h
<<\EOF
2958 #define HAVE_LC_MESSAGES 1
2963 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2964 echo "configure:2965: checking whether NLS is requested" >&5
2965 # Check whether --enable-nls or --disable-nls was given.
2966 if test "${enable_nls+set}" = set; then
2967 enableval
="$enable_nls"
2973 echo "$ac_t""$USE_NLS" 1>&6
2976 USE_INCLUDED_LIBINTL
=no
2978 if test "$USE_NLS" = "yes"; then
2979 cat >> confdefs.h
<<\EOF
2980 #define ENABLE_NLS 1
2983 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2984 echo "configure:2985: checking whether included gettext is requested" >&5
2985 # Check whether --with-included-gettext or --without-included-gettext was given.
2986 if test "${with_included_gettext+set}" = set; then
2987 withval
="$with_included_gettext"
2988 nls_cv_force_use_gnu_gettext
=$withval
2990 nls_cv_force_use_gnu_gettext
=no
2993 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2995 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2996 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2998 nls_cv_header_libgt
=
3001 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3002 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3003 echo "configure:3004: checking for libintl.h" >&5
3004 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3005 echo $ac_n "(cached) $ac_c" 1>&6
3007 cat > conftest.
$ac_ext <<EOF
3008 #line 3009 "configure"
3009 #include "confdefs.h"
3010 #include <libintl.h>
3012 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3013 { (eval echo configure
:3014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3014 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3015 if test -z "$ac_err"; then
3017 eval "ac_cv_header_$ac_safe=yes"
3020 echo "configure: failed program was:" >&5
3021 cat conftest.
$ac_ext >&5
3023 eval "ac_cv_header_$ac_safe=no"
3027 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3028 echo "$ac_t""yes" 1>&6
3029 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3030 echo "configure:3031: checking for gettext in libc" >&5
3031 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3032 echo $ac_n "(cached) $ac_c" 1>&6
3034 cat > conftest.
$ac_ext <<EOF
3035 #line 3036 "configure"
3036 #include "confdefs.h"
3037 #include <libintl.h>
3039 return (int) gettext ("")
3042 if { (eval echo configure
:3043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3044 gt_cv_func_gettext_libc
=yes
3046 echo "configure: failed program was:" >&5
3047 cat conftest.
$ac_ext >&5
3049 gt_cv_func_gettext_libc
=no
3054 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3056 if test "$gt_cv_func_gettext_libc" != "yes"; then
3057 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3058 echo "configure:3059: checking for bindtextdomain in -lintl" >&5
3059 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3060 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3061 echo $ac_n "(cached) $ac_c" 1>&6
3063 ac_save_LIBS
="$LIBS"
3065 cat > conftest.
$ac_ext <<EOF
3066 #line 3067 "configure"
3067 #include "confdefs.h"
3068 /* Override any gcc2 internal prototype to avoid an error. */
3069 /* We use char because int might match the return type of a gcc2
3070 builtin and then its argument prototype would still apply. */
3071 char bindtextdomain();
3077 if { (eval echo configure
:3078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3079 eval "ac_cv_lib_$ac_lib_var=yes"
3081 echo "configure: failed program was:" >&5
3082 cat conftest.
$ac_ext >&5
3084 eval "ac_cv_lib_$ac_lib_var=no"
3087 LIBS
="$ac_save_LIBS"
3090 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3091 echo "$ac_t""yes" 1>&6
3092 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3093 echo "configure:3094: checking for gettext in libintl" >&5
3094 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3095 echo $ac_n "(cached) $ac_c" 1>&6
3097 cat > conftest.
$ac_ext <<EOF
3098 #line 3099 "configure"
3099 #include "confdefs.h"
3102 return (int) gettext ("")
3105 if { (eval echo configure
:3106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3107 gt_cv_func_gettext_libintl
=yes
3109 echo "configure: failed program was:" >&5
3110 cat conftest.
$ac_ext >&5
3112 gt_cv_func_gettext_libintl
=no
3117 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3119 echo "$ac_t""no" 1>&6
3124 if test "$gt_cv_func_gettext_libc" = "yes" \
3125 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
3126 cat >> confdefs.h
<<\EOF
3127 #define HAVE_GETTEXT 1
3130 # Extract the first word of "msgfmt", so it can be a program name with args.
3131 set dummy msgfmt
; ac_word
=$2
3132 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3133 echo "configure:3134: checking for $ac_word" >&5
3134 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3135 echo $ac_n "(cached) $ac_c" 1>&6
3139 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3142 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3143 for ac_dir
in $PATH; do
3144 test -z "$ac_dir" && ac_dir
=.
3145 if test -f $ac_dir/$ac_word; then
3146 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3147 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3153 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
3157 MSGFMT
="$ac_cv_path_MSGFMT"
3158 if test -n "$MSGFMT"; then
3159 echo "$ac_t""$MSGFMT" 1>&6
3161 echo "$ac_t""no" 1>&6
3163 if test "$MSGFMT" != "no"; then
3164 for ac_func
in dcgettext
3166 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3167 echo "configure:3168: checking for $ac_func" >&5
3168 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3169 echo $ac_n "(cached) $ac_c" 1>&6
3171 cat > conftest.
$ac_ext <<EOF
3172 #line 3173 "configure"
3173 #include "confdefs.h"
3174 /* System header to define __stub macros and hopefully few prototypes,
3175 which can conflict with char $ac_func(); below. */
3177 /* Override any gcc2 internal prototype to avoid an error. */
3178 /* We use char because int might match the return type of a gcc2
3179 builtin and then its argument prototype would still apply. */
3184 /* The GNU C library defines this for functions which it implements
3185 to always fail with ENOSYS. Some functions are actually named
3186 something starting with __ and the normal name is an alias. */
3187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3195 if { (eval echo configure
:3196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3197 eval "ac_cv_func_$ac_func=yes"
3199 echo "configure: failed program was:" >&5
3200 cat conftest.
$ac_ext >&5
3202 eval "ac_cv_func_$ac_func=no"
3207 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3208 echo "$ac_t""yes" 1>&6
3209 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3210 cat >> confdefs.h
<<EOF
3211 #define $ac_tr_func 1
3215 echo "$ac_t""no" 1>&6
3219 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3220 set dummy gmsgfmt
; ac_word
=$2
3221 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3222 echo "configure:3223: checking for $ac_word" >&5
3223 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3224 echo $ac_n "(cached) $ac_c" 1>&6
3228 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3231 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3234 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3236 for ac_dir
in $ac_dummy; do
3237 test -z "$ac_dir" && ac_dir
=.
3238 if test -f $ac_dir/$ac_word; then
3239 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3244 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3248 GMSGFMT
="$ac_cv_path_GMSGFMT"
3249 if test -n "$GMSGFMT"; then
3250 echo "$ac_t""$GMSGFMT" 1>&6
3252 echo "$ac_t""no" 1>&6
3255 # Extract the first word of "xgettext", so it can be a program name with args.
3256 set dummy xgettext
; ac_word
=$2
3257 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3258 echo "configure:3259: checking for $ac_word" >&5
3259 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3260 echo $ac_n "(cached) $ac_c" 1>&6
3264 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3267 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3268 for ac_dir
in $PATH; do
3269 test -z "$ac_dir" && ac_dir
=.
3270 if test -f $ac_dir/$ac_word; then
3271 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3272 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
3278 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
3282 XGETTEXT
="$ac_cv_path_XGETTEXT"
3283 if test -n "$XGETTEXT"; then
3284 echo "$ac_t""$XGETTEXT" 1>&6
3286 echo "$ac_t""no" 1>&6
3289 cat > conftest.
$ac_ext <<EOF
3290 #line 3291 "configure"
3291 #include "confdefs.h"
3294 extern int _nl_msg_cat_cntr;
3295 return _nl_msg_cat_cntr
3298 if { (eval echo configure
:3299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3303 echo "configure: failed program was:" >&5
3304 cat conftest.
$ac_ext >&5
3315 echo "$ac_t""no" 1>&6
3320 if test "$CATOBJEXT" = "NONE"; then
3321 nls_cv_use_gnu_gettext
=yes
3325 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3326 INTLOBJS
="\$(GETTOBJS)"
3327 # Extract the first word of "msgfmt", so it can be a program name with args.
3328 set dummy msgfmt
; ac_word
=$2
3329 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3330 echo "configure:3331: checking for $ac_word" >&5
3331 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3332 echo $ac_n "(cached) $ac_c" 1>&6
3336 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3339 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3340 for ac_dir
in $PATH; do
3341 test -z "$ac_dir" && ac_dir
=.
3342 if test -f $ac_dir/$ac_word; then
3343 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3344 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3350 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
3354 MSGFMT
="$ac_cv_path_MSGFMT"
3355 if test -n "$MSGFMT"; then
3356 echo "$ac_t""$MSGFMT" 1>&6
3358 echo "$ac_t""no" 1>&6
3361 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3362 set dummy gmsgfmt
; ac_word
=$2
3363 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3364 echo "configure:3365: checking for $ac_word" >&5
3365 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3366 echo $ac_n "(cached) $ac_c" 1>&6
3370 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3373 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3376 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3378 for ac_dir
in $ac_dummy; do
3379 test -z "$ac_dir" && ac_dir
=.
3380 if test -f $ac_dir/$ac_word; then
3381 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3386 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3390 GMSGFMT
="$ac_cv_path_GMSGFMT"
3391 if test -n "$GMSGFMT"; then
3392 echo "$ac_t""$GMSGFMT" 1>&6
3394 echo "$ac_t""no" 1>&6
3397 # Extract the first word of "xgettext", so it can be a program name with args.
3398 set dummy xgettext
; ac_word
=$2
3399 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3400 echo "configure:3401: checking for $ac_word" >&5
3401 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3402 echo $ac_n "(cached) $ac_c" 1>&6
3406 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3409 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3410 for ac_dir
in $PATH; do
3411 test -z "$ac_dir" && ac_dir
=.
3412 if test -f $ac_dir/$ac_word; then
3413 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3414 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
3420 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
3424 XGETTEXT
="$ac_cv_path_XGETTEXT"
3425 if test -n "$XGETTEXT"; then
3426 echo "$ac_t""$XGETTEXT" 1>&6
3428 echo "$ac_t""no" 1>&6
3432 USE_INCLUDED_LIBINTL
=yes
3436 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
3438 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
3439 nls_cv_header_intl
=libintl.h
3440 nls_cv_header_libgt
=libgettext.h
3443 if test "$XGETTEXT" != ":"; then
3444 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
3447 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
3452 # We need to process the po/ directory.
3456 nls_cv_header_intl
=libintl.h
3457 nls_cv_header_libgt
=libgettext.h
3460 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3461 # because some of the sources are only built for this goal.
3462 if test "$PACKAGE" = gettext; then
3464 USE_INCLUDED_LIBINTL
=yes
3467 for lang
in $ALL_LINGUAS; do
3468 GMOFILES
="$GMOFILES $lang.gmo"
3469 POFILES
="$POFILES $lang.po"
3485 if test "x$CATOBJEXT" != "x"; then
3486 if test "x$ALL_LINGUAS" = "x"; then
3489 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3490 echo "configure:3491: checking for catalogs to be installed" >&5
3492 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
3493 case "$ALL_LINGUAS" in
3494 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
3497 LINGUAS
=$NEW_LINGUAS
3498 echo "$ac_t""$LINGUAS" 1>&6
3501 if test -n "$LINGUAS"; then
3502 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
3506 if test $ac_cv_header_locale_h = yes; then
3507 INCLUDE_LOCALE_H
="#include <locale.h>"
3510 /* The system does not provide the header <locale.h>. Take care yourself. */"
3514 if test -f $srcdir/po2tbl.
sed.
in; then
3515 if test "$CATOBJEXT" = ".cat"; then
3516 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3517 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
3518 echo "configure:3519: checking for linux/version.h" >&5
3519 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3520 echo $ac_n "(cached) $ac_c" 1>&6
3522 cat > conftest.
$ac_ext <<EOF
3523 #line 3524 "configure"
3524 #include "confdefs.h"
3525 #include <linux/version.h>
3527 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3528 { (eval echo configure
:3529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3529 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3530 if test -z "$ac_err"; then
3532 eval "ac_cv_header_$ac_safe=yes"
3535 echo "configure: failed program was:" >&5
3536 cat conftest.
$ac_ext >&5
3538 eval "ac_cv_header_$ac_safe=no"
3542 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3543 echo "$ac_t""yes" 1>&6
3546 echo "$ac_t""no" 1>&6
3551 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
3553 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3554 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
3557 if test "$PACKAGE" = "gettext"; then
3567 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
3573 if test -d $srcdir/po
; then
3574 test -d po || mkdir po
3575 if test "x$srcdir" != "x."; then
3576 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3577 posrcprefix
="$srcdir/"
3579 posrcprefix
="../$srcdir/"
3585 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3586 < $srcdir/po
/POTFILES.
in > po
/POTFILES
3590 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3591 echo "configure:3592: checking for Cygwin environment" >&5
3592 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
3593 echo $ac_n "(cached) $ac_c" 1>&6
3595 cat > conftest.
$ac_ext <<EOF
3596 #line 3597 "configure"
3597 #include "confdefs.h"
3602 #define __CYGWIN__ __CYGWIN32__
3607 if { (eval echo configure
:3608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3611 echo "configure: failed program was:" >&5
3612 cat conftest.
$ac_ext >&5
3620 echo "$ac_t""$ac_cv_cygwin" 1>&6
3622 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
3623 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3624 echo "configure:3625: checking for mingw32 environment" >&5
3625 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
3626 echo $ac_n "(cached) $ac_c" 1>&6
3628 cat > conftest.
$ac_ext <<EOF
3629 #line 3630 "configure"
3630 #include "confdefs.h"
3636 if { (eval echo configure
:3637: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3640 echo "configure: failed program was:" >&5
3641 cat conftest.
$ac_ext >&5
3649 echo "$ac_t""$ac_cv_mingw32" 1>&6
3651 test "$ac_cv_mingw32" = yes && MINGW32
=yes
3654 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3655 echo "configure:3656: checking for executable suffix" >&5
3656 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
3657 echo $ac_n "(cached) $ac_c" 1>&6
3659 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
3663 echo 'int main () { return 0; }' > conftest.
$ac_ext
3665 if { (eval echo configure
:3666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3666 for file in conftest.
*; do
3668 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
3669 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
3673 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3676 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
3681 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
3682 echo "$ac_t""${ac_cv_exeext}" 1>&6
3686 for ac_prog
in 'bison -y' byacc
3688 # Extract the first word of "$ac_prog", so it can be a program name with args.
3689 set dummy
$ac_prog; ac_word
=$2
3690 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3691 echo "configure:3692: checking for $ac_word" >&5
3692 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3693 echo $ac_n "(cached) $ac_c" 1>&6
3695 if test -n "$YACC"; then
3696 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3698 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3700 for ac_dir
in $ac_dummy; do
3701 test -z "$ac_dir" && ac_dir
=.
3702 if test -f $ac_dir/$ac_word; then
3703 ac_cv_prog_YACC
="$ac_prog"
3710 YACC
="$ac_cv_prog_YACC"
3711 if test -n "$YACC"; then
3712 echo "$ac_t""$YACC" 1>&6
3714 echo "$ac_t""no" 1>&6
3717 test -n "$YACC" && break
3719 test -n "$YACC" || YACC
="yacc"
3721 missing_dir
=`cd $ac_aux_dir && pwd`
3722 for ac_prog
in flex
lex
3724 # Extract the first word of "$ac_prog", so it can be a program name with args.
3725 set dummy
$ac_prog; ac_word
=$2
3726 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3727 echo "configure:3728: checking for $ac_word" >&5
3728 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3729 echo $ac_n "(cached) $ac_c" 1>&6
3731 if test -n "$LEX"; then
3732 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
3734 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3736 for ac_dir
in $ac_dummy; do
3737 test -z "$ac_dir" && ac_dir
=.
3738 if test -f $ac_dir/$ac_word; then
3739 ac_cv_prog_LEX
="$ac_prog"
3746 LEX
="$ac_cv_prog_LEX"
3747 if test -n "$LEX"; then
3748 echo "$ac_t""$LEX" 1>&6
3750 echo "$ac_t""no" 1>&6
3753 test -n "$LEX" && break
3755 test -n "$LEX" || LEX
=""$missing_dir/missing flex
""
3757 # Extract the first word of "flex", so it can be a program name with args.
3758 set dummy flex
; ac_word
=$2
3759 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3760 echo "configure:3761: checking for $ac_word" >&5
3761 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3762 echo $ac_n "(cached) $ac_c" 1>&6
3764 if test -n "$LEX"; then
3765 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
3767 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3769 for ac_dir
in $ac_dummy; do
3770 test -z "$ac_dir" && ac_dir
=.
3771 if test -f $ac_dir/$ac_word; then
3772 ac_cv_prog_LEX
="flex"
3777 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
3780 LEX
="$ac_cv_prog_LEX"
3781 if test -n "$LEX"; then
3782 echo "$ac_t""$LEX" 1>&6
3784 echo "$ac_t""no" 1>&6
3787 if test -z "$LEXLIB"
3793 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
3794 echo "configure:3795: checking for yywrap in -l$ac_lib" >&5
3795 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
3796 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3797 echo $ac_n "(cached) $ac_c" 1>&6
3799 ac_save_LIBS
="$LIBS"
3800 LIBS
="-l$ac_lib $LIBS"
3801 cat > conftest.
$ac_ext <<EOF
3802 #line 3803 "configure"
3803 #include "confdefs.h"
3804 /* Override any gcc2 internal prototype to avoid an error. */
3805 /* We use char because int might match the return type of a gcc2
3806 builtin and then its argument prototype would still apply. */
3813 if { (eval echo configure
:3814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3815 eval "ac_cv_lib_$ac_lib_var=yes"
3817 echo "configure: failed program was:" >&5
3818 cat conftest.
$ac_ext >&5
3820 eval "ac_cv_lib_$ac_lib_var=no"
3823 LIBS
="$ac_save_LIBS"
3826 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3827 echo "$ac_t""yes" 1>&6
3830 echo "$ac_t""no" 1>&6
3835 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
3836 echo "configure:3837: checking lex output file root" >&5
3837 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
3838 echo $ac_n "(cached) $ac_c" 1>&6
3840 # The minimal lex program is just a single line: %%. But some broken lexes
3841 # (Solaris, I think it was) want two %% lines, so accommodate them.
3844 if test -f lex.yy.c
; then
3845 ac_cv_prog_lex_root
=lex.yy
3846 elif test -f lexyy.c
; then
3847 ac_cv_prog_lex_root
=lexyy
3849 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
3853 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
3854 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
3856 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
3857 echo "configure:3858: checking whether yytext is a pointer" >&5
3858 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
3859 echo $ac_n "(cached) $ac_c" 1>&6
3861 # POSIX says lex can declare yytext either as a pointer or an array; the
3862 # default is implementation-dependent. Figure out which it is, since
3863 # not all implementations provide the %pointer and %array declarations.
3864 ac_cv_prog_lex_yytext_pointer
=no
3865 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3866 ac_save_LIBS
="$LIBS"
3867 LIBS
="$LIBS $LEXLIB"
3868 cat > conftest.
$ac_ext <<EOF
3869 #line 3870 "configure"
3870 #include "confdefs.h"
3871 `cat $LEX_OUTPUT_ROOT.c`
3876 if { (eval echo configure
:3877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3878 ac_cv_prog_lex_yytext_pointer
=yes
3880 echo "configure: failed program was:" >&5
3881 cat conftest.
$ac_ext >&5
3884 LIBS
="$ac_save_LIBS"
3885 rm -f "${LEX_OUTPUT_ROOT}.c"
3889 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
3890 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3891 cat >> confdefs.h
<<\EOF
3892 #define YYTEXT_POINTER 1
3898 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
3899 echo "configure:3900: checking whether to enable maintainer-specific portions of Makefiles" >&5
3900 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3901 if test "${enable_maintainer_mode+set}" = set; then
3902 enableval
="$enable_maintainer_mode"
3903 USE_MAINTAINER_MODE
=$enableval
3905 USE_MAINTAINER_MODE
=no
3908 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
3911 if test $USE_MAINTAINER_MODE = yes; then
3912 MAINTAINER_MODE_TRUE
=
3913 MAINTAINER_MODE_FALSE
='#'
3915 MAINTAINER_MODE_TRUE
='#'
3916 MAINTAINER_MODE_FALSE
=
3918 MAINT
=$MAINTAINER_MODE_TRUE
3922 .
${srcdir}/configure.
host
3929 for ac_hdr
in string.h
strings.h stdlib.h unistd.h
3931 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3932 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3933 echo "configure:3934: checking for $ac_hdr" >&5
3934 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3935 echo $ac_n "(cached) $ac_c" 1>&6
3937 cat > conftest.
$ac_ext <<EOF
3938 #line 3939 "configure"
3939 #include "confdefs.h"
3942 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3943 { (eval echo configure
:3944: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3944 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3945 if test -z "$ac_err"; then
3947 eval "ac_cv_header_$ac_safe=yes"
3950 echo "configure: failed program was:" >&5
3951 cat conftest.
$ac_ext >&5
3953 eval "ac_cv_header_$ac_safe=no"
3957 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3958 echo "$ac_t""yes" 1>&6
3959 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3960 cat >> confdefs.h
<<EOF
3961 #define $ac_tr_hdr 1
3965 echo "$ac_t""no" 1>&6
3971 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3972 echo "configure:3973: checking for $ac_func" >&5
3973 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3974 echo $ac_n "(cached) $ac_c" 1>&6
3976 cat > conftest.
$ac_ext <<EOF
3977 #line 3978 "configure"
3978 #include "confdefs.h"
3979 /* System header to define __stub macros and hopefully few prototypes,
3980 which can conflict with char $ac_func(); below. */
3982 /* Override any gcc2 internal prototype to avoid an error. */
3983 /* We use char because int might match the return type of a gcc2
3984 builtin and then its argument prototype would still apply. */
3989 /* The GNU C library defines this for functions which it implements
3990 to always fail with ENOSYS. Some functions are actually named
3991 something starting with __ and the normal name is an alias. */
3992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4000 if { (eval echo configure
:4001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4002 eval "ac_cv_func_$ac_func=yes"
4004 echo "configure: failed program was:" >&5
4005 cat conftest.
$ac_ext >&5
4007 eval "ac_cv_func_$ac_func=no"
4012 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4013 echo "$ac_t""yes" 1>&6
4014 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4015 cat >> confdefs.h
<<EOF
4016 #define $ac_tr_func 1
4020 echo "$ac_t""no" 1>&6
4025 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
4027 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4028 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4029 echo "configure:4030: checking for $ac_hdr that defines DIR" >&5
4030 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
4031 echo $ac_n "(cached) $ac_c" 1>&6
4033 cat > conftest.
$ac_ext <<EOF
4034 #line 4035 "configure"
4035 #include "confdefs.h"
4036 #include <sys/types.h>
4042 if { (eval echo configure
:4043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4044 eval "ac_cv_header_dirent_$ac_safe=yes"
4046 echo "configure: failed program was:" >&5
4047 cat conftest.
$ac_ext >&5
4049 eval "ac_cv_header_dirent_$ac_safe=no"
4053 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4054 echo "$ac_t""yes" 1>&6
4055 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4056 cat >> confdefs.h
<<EOF
4057 #define $ac_tr_hdr 1
4059 ac_header_dirent
=$ac_hdr; break
4061 echo "$ac_t""no" 1>&6
4064 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4065 if test $ac_header_dirent = dirent.h
; then
4066 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4067 echo "configure:4068: checking for opendir in -ldir" >&5
4068 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
4069 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4070 echo $ac_n "(cached) $ac_c" 1>&6
4072 ac_save_LIBS
="$LIBS"
4074 cat > conftest.
$ac_ext <<EOF
4075 #line 4076 "configure"
4076 #include "confdefs.h"
4077 /* Override any gcc2 internal prototype to avoid an error. */
4078 /* We use char because int might match the return type of a gcc2
4079 builtin and then its argument prototype would still apply. */
4086 if { (eval echo configure
:4087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4088 eval "ac_cv_lib_$ac_lib_var=yes"
4090 echo "configure: failed program was:" >&5
4091 cat conftest.
$ac_ext >&5
4093 eval "ac_cv_lib_$ac_lib_var=no"
4096 LIBS
="$ac_save_LIBS"
4099 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4100 echo "$ac_t""yes" 1>&6
4103 echo "$ac_t""no" 1>&6
4107 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4108 echo "configure:4109: checking for opendir in -lx" >&5
4109 ac_lib_var
=`echo x'_'opendir | 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"
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
4152 *-*-msdos* |
*-*-go32* |
*-*-mingw32* |
*-*-cygwin* |
*-*-windows*)
4153 cat >> confdefs.h
<<\EOF
4154 #define USE_BINARY_FOPEN 1
4159 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4160 echo "configure:4161: checking whether strstr must be declared" >&5
4161 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
4162 echo $ac_n "(cached) $ac_c" 1>&6
4164 cat > conftest.
$ac_ext <<EOF
4165 #line 4166 "configure"
4166 #include "confdefs.h"
4169 #ifdef HAVE_STRING_H
4172 #ifdef HAVE_STRINGS_H
4173 #include <strings.h>
4176 #ifdef HAVE_STDLIB_H
4179 #ifdef HAVE_UNISTD_H
4183 char *(*pfn) = (char *(*)) strstr
4186 if { (eval echo configure
:4187: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4188 bfd_cv_decl_needed_strstr
=no
4190 echo "configure: failed program was:" >&5
4191 cat conftest.
$ac_ext >&5
4193 bfd_cv_decl_needed_strstr
=yes
4198 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4199 if test $bfd_cv_decl_needed_strstr = yes; then
4200 cat >> confdefs.h
<<\EOF
4201 #define NEED_DECLARATION_STRSTR 1
4206 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
4207 echo "configure:4208: checking whether free must be declared" >&5
4208 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
4209 echo $ac_n "(cached) $ac_c" 1>&6
4211 cat > conftest.
$ac_ext <<EOF
4212 #line 4213 "configure"
4213 #include "confdefs.h"
4216 #ifdef HAVE_STRING_H
4219 #ifdef HAVE_STRINGS_H
4220 #include <strings.h>
4223 #ifdef HAVE_STDLIB_H
4226 #ifdef HAVE_UNISTD_H
4230 char *(*pfn) = (char *(*)) free
4233 if { (eval echo configure
:4234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4235 bfd_cv_decl_needed_free
=no
4237 echo "configure: failed program was:" >&5
4238 cat conftest.
$ac_ext >&5
4240 bfd_cv_decl_needed_free
=yes
4245 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
4246 if test $bfd_cv_decl_needed_free = yes; then
4247 cat >> confdefs.h
<<\EOF
4248 #define NEED_DECLARATION_FREE 1
4253 echo $ac_n "checking whether sbrk must be declared""... $ac_c" 1>&6
4254 echo "configure:4255: checking whether sbrk must be declared" >&5
4255 if eval "test \"`echo '$''{'bfd_cv_decl_needed_sbrk'+set}'`\" = set"; then
4256 echo $ac_n "(cached) $ac_c" 1>&6
4258 cat > conftest.
$ac_ext <<EOF
4259 #line 4260 "configure"
4260 #include "confdefs.h"
4263 #ifdef HAVE_STRING_H
4266 #ifdef HAVE_STRINGS_H
4267 #include <strings.h>
4270 #ifdef HAVE_STDLIB_H
4273 #ifdef HAVE_UNISTD_H
4277 char *(*pfn) = (char *(*)) sbrk
4280 if { (eval echo configure
:4281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4282 bfd_cv_decl_needed_sbrk
=no
4284 echo "configure: failed program was:" >&5
4285 cat conftest.
$ac_ext >&5
4287 bfd_cv_decl_needed_sbrk
=yes
4292 echo "$ac_t""$bfd_cv_decl_needed_sbrk" 1>&6
4293 if test $bfd_cv_decl_needed_sbrk = yes; then
4294 cat >> confdefs.h
<<\EOF
4295 #define NEED_DECLARATION_SBRK 1
4300 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
4301 echo "configure:4302: checking whether getenv must be declared" >&5
4302 if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
4303 echo $ac_n "(cached) $ac_c" 1>&6
4305 cat > conftest.
$ac_ext <<EOF
4306 #line 4307 "configure"
4307 #include "confdefs.h"
4310 #ifdef HAVE_STRING_H
4313 #ifdef HAVE_STRINGS_H
4314 #include <strings.h>
4317 #ifdef HAVE_STDLIB_H
4320 #ifdef HAVE_UNISTD_H
4324 char *(*pfn) = (char *(*)) getenv
4327 if { (eval echo configure
:4328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4329 bfd_cv_decl_needed_getenv
=no
4331 echo "configure: failed program was:" >&5
4332 cat conftest.
$ac_ext >&5
4334 bfd_cv_decl_needed_getenv
=yes
4339 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
4340 if test $bfd_cv_decl_needed_getenv = yes; then
4341 cat >> confdefs.h
<<\EOF
4342 #define NEED_DECLARATION_GETENV 1
4347 echo $ac_n "checking whether environ must be declared""... $ac_c" 1>&6
4348 echo "configure:4349: checking whether environ must be declared" >&5
4349 if eval "test \"`echo '$''{'bfd_cv_decl_needed_environ'+set}'`\" = set"; then
4350 echo $ac_n "(cached) $ac_c" 1>&6
4352 cat > conftest.
$ac_ext <<EOF
4353 #line 4354 "configure"
4354 #include "confdefs.h"
4357 #ifdef HAVE_STRING_H
4360 #ifdef HAVE_STRINGS_H
4361 #include <strings.h>
4364 #ifdef HAVE_STDLIB_H
4367 #ifdef HAVE_UNISTD_H
4371 char *(*pfn) = (char *(*)) environ
4374 if { (eval echo configure
:4375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4376 bfd_cv_decl_needed_environ
=no
4378 echo "configure: failed program was:" >&5
4379 cat conftest.
$ac_ext >&5
4381 bfd_cv_decl_needed_environ
=yes
4386 echo "$ac_t""$bfd_cv_decl_needed_environ" 1>&6
4387 if test $bfd_cv_decl_needed_environ = yes; then
4388 cat >> confdefs.h
<<\EOF
4389 #define NEED_DECLARATION_ENVIRON 1
4395 # When converting linker scripts into strings for use in emulation
4396 # files, use astring.sed if the compiler supports ANSI string
4397 # concatenation, or ostring.sed otherwise. This is to support the
4398 # broken Microsoft MSVC compiler, which limits the length of string
4399 # constants, while still supporting pre-ANSI compilers which do not
4400 # support string concatenation.
4401 echo $ac_n "checking whether ANSI C string concatenation works""... $ac_c" 1>&6
4402 echo "configure:4403: checking whether ANSI C string concatenation works" >&5
4403 if eval "test \"`echo '$''{'ld_cv_string_concatenation'+set}'`\" = set"; then
4404 echo $ac_n "(cached) $ac_c" 1>&6
4406 cat > conftest.
$ac_ext <<EOF
4407 #line 4408 "configure"
4408 #include "confdefs.h"
4414 if { (eval echo configure
:4415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4416 ld_cv_string_concatenation
=yes
4418 echo "configure: failed program was:" >&5
4419 cat conftest.
$ac_ext >&5
4421 ld_cv_string_concatenation
=no
4426 echo "$ac_t""$ld_cv_string_concatenation" 1>&6
4427 if test "$ld_cv_string_concatenation" = "yes"; then
4428 STRINGIFY
=astring.
sed
4430 STRINGIFY
=ostring.
sed
4434 # target-specific stuff:
4444 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
4446 if test "$targ_alias" = "all"; then
4449 # Canonicalize the secondary target names.
4450 result
=`$ac_config_sub $targ_alias 2>/dev/null`
4451 if test -n "$result"; then
4457 .
${srcdir}/configure.tgt
4459 if test "$targ" = "$target"; then
4463 for i
in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
4464 case " $all_emuls " in
4467 all_emuls
="$all_emuls e${i}.o"
4468 eval result
=\
$tdir_$i
4469 test -z "$result" && result
=$targ_alias
4470 echo tdir_
$i=$result >> tdirs
4475 for i
in $targ_emul $targ_extra_libpath; do
4476 case " $all_libpath " in
4479 if test -z "$all_libpath"; then
4482 all_libpath
="$all_libpath ${i}"
4488 for i
in $targ_extra_ofiles; do
4489 case " $all_emul_extras " in
4492 all_emul_extras
="$all_emul_extras ${i}"
4504 if test x
${all_targets} = xtrue
; then
4505 if test x
${want64} = xtrue
; then
4506 EMULATION_OFILES
='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
4508 EMULATION_OFILES
='$(ALL_EMULATIONS)'
4510 EMUL_EXTRA_OFILES
='$(ALL_EMUL_EXTRA_OFILES)'
4512 EMULATION_OFILES
=$all_emuls
4513 EMUL_EXTRA_OFILES
=$all_emul_extras
4518 EMULATION_LIBPATH
=$all_libpath
4521 if test x
${enable_static} = xno
; then
4522 TESTBFDLIB
="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
4524 TESTBFDLIB
="../bfd/.libs/libbfd.a"
4528 target_vendor
=${target_vendor=$host_vendor}
4529 case "$target_vendor" in
4530 hp
) EXTRA_SHLIB_EXTENSION
=".sl" ;;
4531 *) EXTRA_SHLIB_EXTENSION
= ;;
4533 if test x
${EXTRA_SHLIB_EXTENSION} != x
; then
4534 cat >> confdefs.h
<<EOF
4535 #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
4541 cat > confcache
<<\EOF
4542 # This file is a shell script that caches the results of configure
4543 # tests run on this system so they can be shared between configure
4544 # scripts and configure runs. It is not useful on other systems.
4545 # If it contains results you don't want to keep, you may remove or edit it.
4547 # By default, configure uses ./config.cache as the cache file,
4548 # creating it if it does not exist already. You can give configure
4549 # the --cache-file=FILE option to use a different cache file; that is
4550 # what configure does when it calls configure scripts in
4551 # subdirectories, so they share the cache.
4552 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4553 # config.status only pays attention to the cache file if you give it the
4554 # --recheck option to rerun configure.
4557 # The following way of writing the cache mishandles newlines in values,
4558 # but we know of no workaround that is simple, portable, and efficient.
4559 # So, don't put newlines in cache variables' values.
4560 # Ultrix sh set writes to stderr and can't be redirected directly,
4561 # and sets the high bit in the cache file unless we assign to the vars.
4563 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4565 # `set' does not quote correctly, so add quotes (double-quote substitution
4566 # turns \\\\ into \\, and sed turns \\ into \).
4568 -e "s/'/'\\\\''/g" \
4569 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4572 # `set' quotes correctly as required by POSIX, so do not add quotes.
4573 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4576 if cmp -s $cache_file confcache
; then
4579 if test -w $cache_file; then
4580 echo "updating cache $cache_file"
4581 cat confcache
> $cache_file
4583 echo "not updating unwritable cache $cache_file"
4588 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4590 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4591 # Let make expand exec_prefix.
4592 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4594 # Any assignment to VPATH causes Sun make to only execute
4595 # the first set of double-colon rules, so remove it if not needed.
4596 # If there is a colon in the path, we need to keep it.
4597 if test "x$srcdir" = x.
; then
4598 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
4601 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4603 DEFS
=-DHAVE_CONFIG_H
4605 # Without the "./", some shells look in PATH for config.status.
4606 : ${CONFIG_STATUS=./config.status}
4608 echo creating
$CONFIG_STATUS
4609 rm -f $CONFIG_STATUS
4610 cat > $CONFIG_STATUS <<EOF
4612 # Generated automatically by configure.
4613 # Run this file to recreate the current configuration.
4614 # This directory was configured as follows,
4615 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4617 # $0 $ac_configure_args
4619 # Compiler output produced by configure, useful for debugging
4620 # configure, is in ./config.log if it exists.
4622 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4625 case "\$ac_option" in
4626 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4627 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4628 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4629 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4630 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4632 -help | --help | --hel | --he | --h)
4633 echo "\$ac_cs_usage"; exit 0 ;;
4634 *) echo "\$ac_cs_usage"; exit 1 ;;
4638 ac_given_srcdir=$srcdir
4639 ac_given_INSTALL="$INSTALL"
4641 trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4643 cat >> $CONFIG_STATUS <<EOF
4645 # Protect against being on the right side of a sed subst in config.status.
4646 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4647 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4651 s%@CFLAGS@%$CFLAGS%g
4652 s%@CPPFLAGS@%$CPPFLAGS%g
4653 s%@CXXFLAGS@%$CXXFLAGS%g
4654 s%@FFLAGS@%$FFLAGS%g
4656 s%@LDFLAGS@%$LDFLAGS%g
4658 s%@exec_prefix@%$exec_prefix%g
4659 s%@prefix@%$prefix%g
4660 s%@program_transform_name@%$program_transform_name%g
4661 s%@bindir@%$bindir%g
4662 s%@sbindir@%$sbindir%g
4663 s%@libexecdir@%$libexecdir%g
4664 s%@datadir@%$datadir%g
4665 s%@sysconfdir@%$sysconfdir%g
4666 s%@sharedstatedir@%$sharedstatedir%g
4667 s%@localstatedir@%$localstatedir%g
4668 s%@libdir@%$libdir%g
4669 s%@includedir@%$includedir%g
4670 s%@oldincludedir@%$oldincludedir%g
4671 s%@infodir@%$infodir%g
4672 s%@mandir@%$mandir%g
4674 s%@host_alias@%$host_alias%g
4675 s%@host_cpu@%$host_cpu%g
4676 s%@host_vendor@%$host_vendor%g
4677 s%@host_os@%$host_os%g
4678 s%@target@%$target%g
4679 s%@target_alias@%$target_alias%g
4680 s%@target_cpu@%$target_cpu%g
4681 s%@target_vendor@%$target_vendor%g
4682 s%@target_os@%$target_os%g
4684 s%@build_alias@%$build_alias%g
4685 s%@build_cpu@%$build_cpu%g
4686 s%@build_vendor@%$build_vendor%g
4687 s%@build_os@%$build_os%g
4688 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4689 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4690 s%@INSTALL_DATA@%$INSTALL_DATA%g
4691 s%@PACKAGE@%$PACKAGE%g
4692 s%@VERSION@%$VERSION%g
4693 s%@ACLOCAL@%$ACLOCAL%g
4694 s%@AUTOCONF@%$AUTOCONF%g
4695 s%@AUTOMAKE@%$AUTOMAKE%g
4696 s%@AUTOHEADER@%$AUTOHEADER%g
4697 s%@MAKEINFO@%$MAKEINFO%g
4698 s%@SET_MAKE@%$SET_MAKE%g
4699 s%@RANLIB@%$RANLIB%g
4702 s%@LIBTOOL@%$LIBTOOL%g
4703 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
4705 s%@ALLOCA@%$ALLOCA%g
4706 s%@USE_NLS@%$USE_NLS%g
4707 s%@MSGFMT@%$MSGFMT%g
4708 s%@GMSGFMT@%$GMSGFMT%g
4709 s%@XGETTEXT@%$XGETTEXT%g
4710 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4711 s%@CATALOGS@%$CATALOGS%g
4712 s%@CATOBJEXT@%$CATOBJEXT%g
4713 s%@DATADIRNAME@%$DATADIRNAME%g
4714 s%@GMOFILES@%$GMOFILES%g
4715 s%@INSTOBJEXT@%$INSTOBJEXT%g
4716 s%@INTLDEPS@%$INTLDEPS%g
4717 s%@INTLLIBS@%$INTLLIBS%g
4718 s%@INTLOBJS@%$INTLOBJS%g
4719 s%@POFILES@%$POFILES%g
4721 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4723 s%@GT_YES@%$GT_YES%g
4724 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4726 s%@EXEEXT@%$EXEEXT%g
4729 s%@LEXLIB@%$LEXLIB%g
4730 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
4731 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
4732 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
4734 s%@HDEFINES@%$HDEFINES%g
4735 s%@HOSTING_CRT0@%$HOSTING_CRT0%g
4736 s%@HOSTING_LIBS@%$HOSTING_LIBS%g
4737 s%@NATIVE_LIB_DIRS@%$NATIVE_LIB_DIRS%g
4738 s%@STRINGIFY@%$STRINGIFY%g
4742 s%@EMULATION_OFILES@%$EMULATION_OFILES%g
4743 s%@EMUL_EXTRA_OFILES@%$EMUL_EXTRA_OFILES%g
4744 s%@EMULATION_LIBPATH@%$EMULATION_LIBPATH%g
4745 s%@TESTBFDLIB@%$TESTBFDLIB%g
4750 cat >> $CONFIG_STATUS <<\EOF
4752 # Split the substitutions into bite-sized pieces for seds with
4753 # small command number limits, like on Digital OSF/1 and HP-UX.
4754 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
4755 ac_file
=1 # Number of current file.
4756 ac_beg
=1 # First line for current file.
4757 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
4760 while $ac_more_lines; do
4761 if test $ac_beg -gt 1; then
4762 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
4764 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
4766 if test ! -s conftest.s
$ac_file; then
4768 rm -f conftest.s
$ac_file
4770 if test -z "$ac_sed_cmds"; then
4771 ac_sed_cmds
="sed -f conftest.s$ac_file"
4773 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
4775 ac_file
=`expr $ac_file + 1`
4777 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
4780 if test -z "$ac_sed_cmds"; then
4785 cat >> $CONFIG_STATUS <<EOF
4787 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
4789 cat >> $CONFIG_STATUS <<\EOF
4790 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
4791 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4793 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4794 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4795 *) ac_file_in
="${ac_file}.in" ;;
4798 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4800 # Remove last slash and all that follows it. Not all systems have dirname.
4801 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4802 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
4803 # The file is in a subdirectory.
4804 test ! -d "$ac_dir" && mkdir
"$ac_dir"
4805 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
4806 # A "../" for each directory in $ac_dir_suffix.
4807 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4809 ac_dir_suffix
= ac_dots
=
4812 case "$ac_given_srcdir" in
4814 if test -z "$ac_dots"; then top_srcdir
=.
4815 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4816 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
4818 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4819 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
4822 case "$ac_given_INSTALL" in
4823 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
4824 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
4827 echo creating
"$ac_file"
4829 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4831 *Makefile
*) ac_comsub
="1i\\
4832 # $configure_input" ;;
4836 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4838 s%@configure_input@%$configure_input%g
4839 s%@srcdir@%$srcdir%g
4840 s%@top_srcdir@%$top_srcdir%g
4841 s%@INSTALL@%$INSTALL%g
4842 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
4846 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4847 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4849 # ac_d sets the value in "#define NAME VALUE" lines.
4850 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4851 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
4854 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4855 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4856 ac_uB
='\([ ]\)%\1#\2define\3'
4859 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4860 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4861 ac_eB
='$%\1#\2define\3'
4865 if test "${CONFIG_HEADERS+set}" != set; then
4867 cat >> $CONFIG_STATUS <<EOF
4868 CONFIG_HEADERS="config.h:config.in"
4870 cat >> $CONFIG_STATUS <<\EOF
4872 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
4873 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4875 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4876 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4877 *) ac_file_in
="${ac_file}.in" ;;
4880 echo creating
$ac_file
4882 rm -f conftest.frag conftest.
in conftest.out
4883 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4884 cat $ac_file_inputs > conftest.
in
4888 # Transform confdefs.h into a sed script conftest.vals that substitutes
4889 # the proper values into config.h.in to produce config.h. And first:
4890 # Protect against being on the right side of a sed subst in config.status.
4891 # Protect against being in an unquoted here document in config.status.
4893 cat > conftest.hdr
<<\EOF
4896 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4900 sed -n -f conftest.hdr confdefs.h > conftest.vals
4903 # This sed command replaces #undef with comments. This is necessary, for
4904 # example, in the case of _POSIX_SOURCE, which is predefined and required
4905 # on some systems where configure will not decide to define it.
4906 cat >> conftest.vals <<\EOF
4907 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4910 # Break up conftest.vals because some shells have a limit on
4911 # the size of here documents, and old seds have small limits too.
4916 ac_lines=`grep -c . conftest.vals
`
4917 # grep -c gives empty output for an empty file on some AIX systems.
4918 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4919 # Write a limited-size here document to conftest.frag.
4920 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4921 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4923 sed -f conftest.frag conftest.in > conftest.out
4925 mv conftest.out conftest.in
4927 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4929 mv conftest.tail conftest.vals
4933 cat >> $CONFIG_STATUS <<\EOF
4934 rm -f conftest.frag conftest.h
4935 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4936 cat conftest.in >> conftest.h
4938 if cmp -s $ac_file conftest.h 2>/dev/null; then
4939 echo "$ac_file is unchanged"
4942 # Remove last slash and all that follows it. Not all systems have dirname.
4943 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
4944 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4945 # The file is in a subdirectory.
4946 test ! -d "$ac_dir" && mkdir "$ac_dir"
4949 mv conftest.h $ac_file
4954 cat >> $CONFIG_STATUS <<EOF
4958 cat >> $CONFIG_STATUS <<\EOF
4959 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
4960 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
4963 chmod +x $CONFIG_STATUS
4964 rm -fr confdefs* $ac_clean_files
4965 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1