3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13.1
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --enable-shared[=PKGS] build shared libraries [default=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 --disable-nls do not use Native Language Support"
31 --with-included-gettext use the GNU gettext library included here"
33 --enable-maintainer-mode enable make rules and dependencies not useful
34 (and sometimes confusing) to the casual installer"
36 # Initialize some variables set by options.
37 # The variables have the same names as the options, with
38 # dashes changed to underlines.
40 cache_file
=.
/config.cache
49 program_transform_name
=s
,x
,x
,
57 bindir
='${exec_prefix}/bin'
58 sbindir
='${exec_prefix}/sbin'
59 libexecdir
='${exec_prefix}/libexec'
60 datadir
='${prefix}/share'
61 sysconfdir
='${prefix}/etc'
62 sharedstatedir
='${prefix}/com'
63 localstatedir
='${prefix}/var'
64 libdir
='${exec_prefix}/lib'
65 includedir
='${prefix}/include'
66 oldincludedir
='/usr/include'
67 infodir
='${prefix}/info'
68 mandir
='${prefix}/man'
70 # Initialize some other variables.
73 SHELL
=${CONFIG_SHELL-/bin/sh}
74 # Maximum number of lines to put in a shell here document.
81 # If the previous option needs an argument, assign it.
82 if test -n "$ac_prev"; then
83 eval "$ac_prev=\$ac_option"
89 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
93 # Accept the important Cygnus configure options, so we can diagnose typos.
97 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
99 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
100 bindir
="$ac_optarg" ;;
102 -build |
--build |
--buil |
--bui |
--bu)
104 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
105 build
="$ac_optarg" ;;
107 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
108 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
109 ac_prev
=cache_file
;;
110 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
111 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
112 cache_file
="$ac_optarg" ;;
114 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
116 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
118 datadir
="$ac_optarg" ;;
120 -disable-* |
--disable-*)
121 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
122 # Reject names that are not valid shell variable names.
123 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
124 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
126 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
127 eval "enable_${ac_feature}=no" ;;
129 -enable-* |
--enable-*)
130 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
131 # Reject names that are not valid shell variable names.
132 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
133 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
135 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
140 eval "enable_${ac_feature}='$ac_optarg'" ;;
142 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
143 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
144 |
--exec |
--exe |
--ex)
145 ac_prev
=exec_prefix
;;
146 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
147 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
148 |
--exec=* |
--exe=* |
--ex=*)
149 exec_prefix
="$ac_optarg" ;;
151 -gas |
--gas |
--ga |
--g)
152 # Obsolete; use --with-gas.
155 -help |
--help |
--hel |
--he)
156 # Omit some internal or obsolete options to make the list less imposing.
157 # This message is too long to be a string in the A/UX 3.1 sh.
159 Usage: configure [options] [host]
160 Options: [defaults in brackets after descriptions]
162 --cache-file=FILE cache test results in FILE
163 --help print this message
164 --no-create do not create output files
165 --quiet, --silent do not print \`checking...' messages
166 --version print the version of autoconf that created configure
167 Directory and file names:
168 --prefix=PREFIX install architecture-independent files in PREFIX
170 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
172 --bindir=DIR user executables in DIR [EPREFIX/bin]
173 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
174 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
175 --datadir=DIR read-only architecture-independent data in DIR
177 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
178 --sharedstatedir=DIR modifiable architecture-independent data in DIR
180 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
181 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
182 --includedir=DIR C header files in DIR [PREFIX/include]
183 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
184 --infodir=DIR info documentation in DIR [PREFIX/info]
185 --mandir=DIR man documentation in DIR [PREFIX/man]
186 --srcdir=DIR find the sources in DIR [configure dir or ..]
187 --program-prefix=PREFIX prepend PREFIX to installed program names
188 --program-suffix=SUFFIX append SUFFIX to installed program names
189 --program-transform-name=PROGRAM
190 run sed PROGRAM on installed program names
194 --build=BUILD configure for building on BUILD [BUILD=HOST]
195 --host=HOST configure for HOST [guessed]
196 --target=TARGET configure for TARGET [TARGET=HOST]
197 Features and packages:
198 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
199 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
200 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
201 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
202 --x-includes=DIR X include files are in DIR
203 --x-libraries=DIR X library files are in DIR
205 if test -n "$ac_help"; then
206 echo "--enable and --with options recognized:$ac_help"
210 -host |
--host |
--hos |
--ho)
212 -host=* |
--host=* |
--hos=* |
--ho=*)
215 -includedir |
--includedir |
--includedi |
--included |
--include \
216 |
--includ |
--inclu |
--incl |
--inc)
217 ac_prev
=includedir
;;
218 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
219 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
220 includedir
="$ac_optarg" ;;
222 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
224 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
225 infodir
="$ac_optarg" ;;
227 -libdir |
--libdir |
--libdi |
--libd)
229 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
230 libdir
="$ac_optarg" ;;
232 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
233 |
--libexe |
--libex |
--libe)
234 ac_prev
=libexecdir
;;
235 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
236 |
--libexe=* |
--libex=* |
--libe=*)
237 libexecdir
="$ac_optarg" ;;
239 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
240 |
--localstate |
--localstat |
--localsta |
--localst \
241 |
--locals |
--local |
--loca |
--loc |
--lo)
242 ac_prev
=localstatedir
;;
243 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
244 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
245 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
246 localstatedir
="$ac_optarg" ;;
248 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
250 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
251 mandir
="$ac_optarg" ;;
254 # Obsolete; use --without-fp.
257 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
261 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
262 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
265 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
266 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
267 |
--oldin |
--oldi |
--old |
--ol |
--o)
268 ac_prev
=oldincludedir
;;
269 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
270 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
271 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
272 oldincludedir
="$ac_optarg" ;;
274 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
276 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
277 prefix
="$ac_optarg" ;;
279 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
280 |
--program-pre |
--program-pr |
--program-p)
281 ac_prev
=program_prefix
;;
282 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
283 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
284 program_prefix
="$ac_optarg" ;;
286 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
287 |
--program-suf |
--program-su |
--program-s)
288 ac_prev
=program_suffix
;;
289 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
290 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
291 program_suffix
="$ac_optarg" ;;
293 -program-transform-name |
--program-transform-name \
294 |
--program-transform-nam |
--program-transform-na \
295 |
--program-transform-n |
--program-transform- \
296 |
--program-transform |
--program-transfor \
297 |
--program-transfo |
--program-transf \
298 |
--program-trans |
--program-tran \
299 |
--progr-tra |
--program-tr |
--program-t)
300 ac_prev
=program_transform_name
;;
301 -program-transform-name=* |
--program-transform-name=* \
302 |
--program-transform-nam=* |
--program-transform-na=* \
303 |
--program-transform-n=* |
--program-transform-=* \
304 |
--program-transform=* |
--program-transfor=* \
305 |
--program-transfo=* |
--program-transf=* \
306 |
--program-trans=* |
--program-tran=* \
307 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
308 program_transform_name
="$ac_optarg" ;;
310 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
311 |
-silent |
--silent |
--silen |
--sile |
--sil)
314 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
316 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
318 sbindir
="$ac_optarg" ;;
320 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
321 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
322 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
324 ac_prev
=sharedstatedir
;;
325 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
326 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
327 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
329 sharedstatedir
="$ac_optarg" ;;
331 -site |
--site |
--sit)
333 -site=* |
--site=* |
--sit=*)
336 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
338 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
339 srcdir
="$ac_optarg" ;;
341 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
342 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
343 ac_prev
=sysconfdir
;;
344 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
345 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
346 sysconfdir
="$ac_optarg" ;;
348 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
350 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
351 target
="$ac_optarg" ;;
353 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
356 -version |
--version |
--versio |
--versi |
--vers)
357 echo "configure generated by autoconf version 2.13.1"
361 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
362 # Reject names that are not valid shell variable names.
363 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
364 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
366 ac_package
=`echo $ac_package| sed 's/-/_/g'`
371 eval "with_${ac_package}='$ac_optarg'" ;;
373 -without-* |
--without-*)
374 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
375 # Reject names that are not valid shell variable names.
376 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
377 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
379 ac_package
=`echo $ac_package| sed 's/-/_/g'`
380 eval "with_${ac_package}=no" ;;
383 # Obsolete; use --with-x.
386 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
387 |
--x-incl |
--x-inc |
--x-in |
--x-i)
388 ac_prev
=x_includes
;;
389 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
390 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
391 x_includes
="$ac_optarg" ;;
393 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
394 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
395 ac_prev
=x_libraries
;;
396 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
397 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
398 x_libraries
="$ac_optarg" ;;
400 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
404 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
405 echo "configure: warning: $ac_option: invalid host type" 1>&2
407 if test "x$nonopt" != xNONE
; then
408 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
416 if test -n "$ac_prev"; then
417 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
420 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
422 # File descriptor usage:
425 # 2 errors and warnings
426 # 3 some systems may open it to /dev/tty
427 # 4 used on the Kubota Titan
428 # 6 checking for... messages and results
429 # 5 compiler messages saved in config.log
430 if test "$silent" = yes; then
438 This file contains any messages produced by compilers while
439 running configure, to aid debugging if configure makes a mistake.
442 # Strip out --no-create and --no-recursion so they do not pile up.
443 # Also quote any args containing shell metacharacters.
448 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
449 |
--no-cr |
--no-c) ;;
450 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
451 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
452 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
453 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
454 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
459 # Only set these to C if already set. These must not be set unconditionally
460 # because not all systems understand e.g. LANG=C (notably SCO).
461 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
462 # Non-C LC_CTYPE values break the ctype check.
463 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
464 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
465 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
466 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
468 # confdefs.h avoids OS command line length limits that DEFS can exceed.
469 rm -rf conftest
* confdefs.h
470 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
473 # A filename unique to this package, relative to the directory that
474 # configure is in, which we can look for to find out if srcdir is correct.
475 ac_unique_file
=ldmain.c
477 # Find the source files, if location was not specified.
478 if test -z "$srcdir"; then
479 ac_srcdir_defaulted
=yes
480 # Try the directory containing this script, then its parent.
482 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
483 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
485 if test ! -r $srcdir/$ac_unique_file; then
489 ac_srcdir_defaulted
=no
491 if test ! -r $srcdir/$ac_unique_file; then
492 if test "$ac_srcdir_defaulted" = yes; then
493 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
495 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
498 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
500 # Prefer explicitly selected file to automatically selected ones.
501 if test -z "$CONFIG_SITE"; then
502 if test "x$prefix" != xNONE
; then
503 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
505 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
508 for ac_site_file
in $CONFIG_SITE; do
509 if test -r "$ac_site_file"; then
510 echo "loading site script $ac_site_file"
515 if test -r "$cache_file"; then
516 echo "loading cache $cache_file"
517 test -f "$cache_file" && .
$cache_file
519 echo "creating cache $cache_file"
524 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
525 ac_cpp
='$CPP $CPPFLAGS'
526 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
527 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
528 cross_compiling
=$ac_cv_prog_cc_cross
532 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
533 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
534 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
541 ac_n
= ac_c
='\c' ac_t
=
547 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
548 if test -f $ac_dir/install-sh
; then
550 ac_install_sh
="$ac_aux_dir/install-sh -c"
552 elif test -f $ac_dir/install.sh
; then
554 ac_install_sh
="$ac_aux_dir/install.sh -c"
558 if test -z "$ac_aux_dir"; then
559 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
561 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
562 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
563 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
566 echo $ac_n "checking host system type""... $ac_c" 1>&6
567 echo "configure:568: checking host system type" >&5
568 if test "x$ac_cv_host" = "x" ||
(test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
570 # Make sure we can run config.sub.
571 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
572 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
575 ac_cv_host_alias
=$host
576 case "$ac_cv_host_alias" in
580 if ac_cv_host_alias
=`$ac_config_guess`; then :
581 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
583 *) ac_cv_host_alias
=$nonopt ;;
587 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias`
588 ac_cv_host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
589 ac_cv_host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
590 ac_cv_host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
592 echo $ac_n "(cached) $ac_c" 1>&6
595 echo "$ac_t""$ac_cv_host" 1>&6
598 host_alias
=$ac_cv_host_alias
599 host_cpu
=$ac_cv_host_cpu
600 host_vendor
=$ac_cv_host_vendor
601 host_os
=$ac_cv_host_os
607 echo $ac_n "checking target system type""... $ac_c" 1>&6
608 echo "configure:609: checking target system type" >&5
609 if test "x$ac_cv_target" = "x" ||
(test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
611 # Make sure we can run config.sub.
612 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
613 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
616 ac_cv_target_alias
=$target
617 case "$ac_cv_target_alias" in
621 ac_cv_target_alias
=$host_alias ;;
623 *) ac_cv_target_alias
=$nonopt ;;
627 ac_cv_target
=`$ac_config_sub $ac_cv_target_alias`
628 ac_cv_target_cpu
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
629 ac_cv_target_vendor
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
630 ac_cv_target_os
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
632 echo $ac_n "(cached) $ac_c" 1>&6
635 echo "$ac_t""$ac_cv_target" 1>&6
638 target_alias
=$ac_cv_target_alias
639 target_cpu
=$ac_cv_target_cpu
640 target_vendor
=$ac_cv_target_vendor
641 target_os
=$ac_cv_target_os
647 echo $ac_n "checking build system type""... $ac_c" 1>&6
648 echo "configure:649: checking build system type" >&5
649 if test "x$ac_cv_build" = "x" ||
(test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
651 # Make sure we can run config.sub.
652 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
653 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
656 ac_cv_build_alias
=$build
657 case "$ac_cv_build_alias" in
661 ac_cv_build_alias
=$host_alias ;;
663 *) ac_cv_build_alias
=$nonopt ;;
667 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias`
668 ac_cv_build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
669 ac_cv_build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
670 ac_cv_build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
672 echo $ac_n "(cached) $ac_c" 1>&6
675 echo "$ac_t""$ac_cv_build" 1>&6
678 build_alias
=$ac_cv_build_alias
679 build_cpu
=$ac_cv_build_cpu
680 build_vendor
=$ac_cv_build_vendor
681 build_os
=$ac_cv_build_os
687 # Do some error checking and defaulting for the host and target type.
689 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
692 # 1. You are not allowed to specify --host, --target, and nonopt at the
694 # 2. Host defaults to nonopt.
695 # 3. If nonopt is not specified, then host defaults to the current host,
696 # as determined by config.guess.
697 # 4. Target and build default to nonopt.
698 # 5. If nonopt is not specified, then target and build default to host.
700 # The aliases save the names the user supplied, while $host etc.
701 # will get canonicalized.
702 case $host---$target---$nonopt in
703 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
704 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
707 test "$host_alias" != "$target_alias" &&
708 test "$program_prefix$program_suffix$program_transform_name" = \
710 program_prefix
=${target_alias}-
713 # Find a good install program. We prefer a C program (faster),
714 # so one script is as good as another. But avoid the broken or
715 # incompatible versions:
716 # SysV /etc/install, /usr/sbin/install
717 # SunOS /usr/etc/install
720 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
721 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
722 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
723 # ./install, which can be erroneously created by make from ./install.sh.
724 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
725 echo "configure:726: checking for a BSD compatible install" >&5
726 if test -z "$INSTALL"; then
727 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
728 echo $ac_n "(cached) $ac_c" 1>&6
730 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
731 for ac_dir
in $PATH; do
732 # Account for people who put trailing slashes in PATH elements.
734 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
736 # OSF1 and SCO ODT 3.0 have their own names for install.
737 # Don't use installbsd from OSF since it installs stuff as root
739 for ac_prog
in ginstall scoinst
install; do
740 if test -f $ac_dir/$ac_prog; then
741 if test $ac_prog = install &&
742 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
743 # AIX install. It has an incompatible calling convention.
745 elif test $ac_prog = install &&
746 grep pwplus
$ac_dir/$ac_prog >/dev
/null
2>&1; then
747 # program-specific install script used by HP pwplus--don't use.
750 ac_cv_path_install
="$ac_dir/$ac_prog -c"
761 if test "${ac_cv_path_install+set}" = set; then
762 INSTALL
="$ac_cv_path_install"
764 # As a last resort, use the slow shell script. We don't cache a
765 # path for INSTALL within a source directory, because that will
766 # break other packages using the cache if that directory is
767 # removed, or if the path is relative.
768 INSTALL
="$ac_install_sh"
771 echo "$ac_t""$INSTALL" 1>&6
773 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
774 # It thinks the first close brace ends the variable substitution.
775 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
777 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
779 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
781 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
782 echo "configure:783: checking whether build environment is sane" >&5
785 echo timestamp
> conftestfile
786 # Do `set' in a subshell so we don't clobber the current shell's
787 # arguments. Must try -L first in case configure is actually a
788 # symlink; some systems play weird games with the mod time of symlinks
789 # (eg FreeBSD returns the mod time of the symlink's containing
792 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
793 if test "$*" = "X"; then
795 set X
`ls -t $srcdir/configure conftestfile`
797 if test "$*" != "X $srcdir/configure conftestfile" \
798 && test "$*" != "X conftestfile $srcdir/configure"; then
800 # If neither matched, then we have a broken ls. This can happen
801 # if, for instance, CONFIG_SHELL is bash and it inherits a
802 # broken ls alias from the environment. This has actually
803 # happened. Such a system could not be considered "sane".
804 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
805 alias in your environment" 1>&2; exit 1; }
808 test "$2" = conftestfile
814 { echo "configure: error: newly created file is older than distributed files!
815 Check your system clock" 1>&2; exit 1; }
818 echo "$ac_t""yes" 1>&6
819 if test "$program_transform_name" = s
,x
,x
,; then
820 program_transform_name
=
822 # Double any \ or $. echo might interpret backslashes.
823 cat <<\EOF_SED
> conftestsed
824 s
,\\,\\\\,g
; s
,\$
,$$
,g
826 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
829 test "$program_prefix" != NONE
&&
830 program_transform_name
="s,^,${program_prefix},;$program_transform_name"
831 # Use a double $ so make ignores it.
832 test "$program_suffix" != NONE
&&
833 program_transform_name
="s,\$\$,${program_suffix},;$program_transform_name"
835 # sed with no file args requires a program.
836 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
838 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
839 echo "configure:840: checking whether ${MAKE-make} sets \${MAKE}" >&5
840 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
841 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
842 echo $ac_n "(cached) $ac_c" 1>&6
844 cat > conftestmake
<<\EOF
846 @
echo 'ac_maketemp="${MAKE}"'
848 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
849 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
850 if test -n "$ac_maketemp"; then
851 eval ac_cv_prog_make_
${ac_make}_set
=yes
853 eval ac_cv_prog_make_
${ac_make}_set
=no
857 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
858 echo "$ac_t""yes" 1>&6
861 echo "$ac_t""no" 1>&6
862 SET_MAKE
="MAKE=${MAKE-make}"
870 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
871 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
873 cat >> confdefs.h
<<EOF
874 #define PACKAGE "$PACKAGE"
877 cat >> confdefs.h
<<EOF
878 #define VERSION "$VERSION"
883 missing_dir
=`cd $ac_aux_dir && pwd`
884 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
885 echo "configure:886: checking for working aclocal" >&5
886 # Run test in a subshell; some versions of sh will print an error if
887 # an executable is not found, even if stderr is redirected.
888 # Redirect stdin to placate older versions of autoconf. Sigh.
889 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
891 echo "$ac_t""found" 1>&6
893 ACLOCAL
="$missing_dir/missing aclocal"
894 echo "$ac_t""missing" 1>&6
897 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
898 echo "configure:899: checking for working autoconf" >&5
899 # Run test in a subshell; some versions of sh will print an error if
900 # an executable is not found, even if stderr is redirected.
901 # Redirect stdin to placate older versions of autoconf. Sigh.
902 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
904 echo "$ac_t""found" 1>&6
906 AUTOCONF
="$missing_dir/missing autoconf"
907 echo "$ac_t""missing" 1>&6
910 echo $ac_n "checking for working automake""... $ac_c" 1>&6
911 echo "configure:912: checking for working automake" >&5
912 # Run test in a subshell; some versions of sh will print an error if
913 # an executable is not found, even if stderr is redirected.
914 # Redirect stdin to placate older versions of autoconf. Sigh.
915 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
917 echo "$ac_t""found" 1>&6
919 AUTOMAKE
="$missing_dir/missing automake"
920 echo "$ac_t""missing" 1>&6
923 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
924 echo "configure:925: checking for working autoheader" >&5
925 # Run test in a subshell; some versions of sh will print an error if
926 # an executable is not found, even if stderr is redirected.
927 # Redirect stdin to placate older versions of autoconf. Sigh.
928 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
929 AUTOHEADER
=autoheader
930 echo "$ac_t""found" 1>&6
932 AUTOHEADER
="$missing_dir/missing autoheader"
933 echo "$ac_t""missing" 1>&6
936 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
937 echo "configure:938: checking for working makeinfo" >&5
938 # Run test in a subshell; some versions of sh will print an error if
939 # an executable is not found, even if stderr is redirected.
940 # Redirect stdin to placate older versions of autoconf. Sigh.
941 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
943 echo "$ac_t""found" 1>&6
945 MAKEINFO
="$missing_dir/missing makeinfo"
946 echo "$ac_t""missing" 1>&6
951 # Check whether --enable-shared or --disable-shared was given.
952 if test "${enable_shared+set}" = set; then
953 enableval
="$enable_shared"
956 yes) enable_shared
=yes ;;
957 no
) enable_shared
=no
;;
960 # Look at the argument we got. We use all the common list separators.
961 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
962 for pkg
in $enableval; do
963 if test "X$pkg" = "X$p"; then
974 # Check whether --enable-static or --disable-static was given.
975 if test "${enable_static+set}" = set; then
976 enableval
="$enable_static"
979 yes) enable_static
=yes ;;
980 no
) enable_static
=no
;;
983 # Look at the argument we got. We use all the common list separators.
984 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
985 for pkg
in $enableval; do
986 if test "X$pkg" = "X$p"; then
997 # Check whether --enable-fast-install or --disable-fast-install was given.
998 if test "${enable_fast_install+set}" = set; then
999 enableval
="$enable_fast_install"
1000 p
=${PACKAGE-default}
1001 case "$enableval" in
1002 yes) enable_fast_install
=yes ;;
1003 no
) enable_fast_install
=no
;;
1005 enable_fast_install
=no
1006 # Look at the argument we got. We use all the common list separators.
1007 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1008 for pkg
in $enableval; do
1009 if test "X$pkg" = "X$p"; then
1010 enable_fast_install
=yes
1017 enable_fast_install
=yes
1020 # Extract the first word of "ranlib", so it can be a program name with args.
1021 set dummy ranlib
; ac_word
=$2
1022 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1023 echo "configure:1024: checking for $ac_word" >&5
1024 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
1025 echo $ac_n "(cached) $ac_c" 1>&6
1027 if test -n "$RANLIB"; then
1028 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1030 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1032 for ac_dir
in $ac_dummy; do
1033 test -z "$ac_dir" && ac_dir
=.
1034 if test -f $ac_dir/$ac_word; then
1035 ac_cv_prog_RANLIB
="ranlib"
1040 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1043 RANLIB
="$ac_cv_prog_RANLIB"
1044 if test -n "$RANLIB"; then
1045 echo "$ac_t""$RANLIB" 1>&6
1047 echo "$ac_t""no" 1>&6
1050 # Extract the first word of "gcc", so it can be a program name with args.
1051 set dummy gcc
; ac_word
=$2
1052 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1053 echo "configure:1054: checking for $ac_word" >&5
1054 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
1055 echo $ac_n "(cached) $ac_c" 1>&6
1057 if test -n "$CC"; then
1058 ac_cv_prog_CC
="$CC" # Let the user override the test.
1060 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1062 for ac_dir
in $ac_dummy; do
1063 test -z "$ac_dir" && ac_dir
=.
1064 if test -f $ac_dir/$ac_word; then
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 # Extract the first word of "cc", so it can be a program name with args.
1081 set dummy cc
; ac_word
=$2
1082 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1083 echo "configure:1084: checking for $ac_word" >&5
1084 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
1085 echo $ac_n "(cached) $ac_c" 1>&6
1087 if test -n "$CC"; then
1088 ac_cv_prog_CC
="$CC" # Let the user override the test.
1090 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1093 for ac_dir
in $ac_dummy; do
1094 test -z "$ac_dir" && ac_dir
=.
1095 if test -f $ac_dir/$ac_word; then
1096 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1097 ac_prog_rejected
=yes
1105 if test $ac_prog_rejected = yes; then
1106 # We found a bogon in the path, so make sure we never use it.
1107 set dummy
$ac_cv_prog_CC
1109 if test $# -gt 0; then
1110 # We chose a different compiler from the bogus one.
1111 # However, it has the same basename, so the bogon will be chosen
1112 # first if we set CC to just the basename; use the full file name.
1114 set dummy
"$ac_dir/$ac_word" "$@"
1122 if test -n "$CC"; then
1123 echo "$ac_t""$CC" 1>&6
1125 echo "$ac_t""no" 1>&6
1128 if test -z "$CC"; then
1129 case "`uname -s`" in
1130 *win32
* |
*WIN32
* |
*CYGWIN
*)
1131 # Extract the first word of "cl", so it can be a program name with args.
1132 set dummy cl
; ac_word
=$2
1133 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1134 echo "configure:1135: checking for $ac_word" >&5
1135 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
1136 echo $ac_n "(cached) $ac_c" 1>&6
1138 if test -n "$CC"; then
1139 ac_cv_prog_CC
="$CC" # Let the user override the test.
1141 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1143 for ac_dir
in $ac_dummy; do
1144 test -z "$ac_dir" && ac_dir
=.
1145 if test -f $ac_dir/$ac_word; then
1154 if test -n "$CC"; then
1155 echo "$ac_t""$CC" 1>&6
1157 echo "$ac_t""no" 1>&6
1162 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1165 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1166 echo "configure:1167: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
1169 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1170 ac_cpp
='$CPP $CPPFLAGS'
1171 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1172 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1173 cross_compiling
=$ac_cv_prog_cc_cross
1175 cat > conftest.
$ac_ext << EOF
1177 #line 1178 "configure"
1178 #include "confdefs.h"
1182 if { (eval echo configure
:1183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1183 ac_cv_prog_cc_works
=yes
1184 # If we can't run a trivial program, we are probably using a cross compiler.
1185 if (.
/conftest
; exit) 2>/dev
/null
; then
1186 ac_cv_prog_cc_cross
=no
1188 ac_cv_prog_cc_cross
=yes
1191 echo "configure: failed program was:" >&5
1192 cat conftest.
$ac_ext >&5
1193 ac_cv_prog_cc_works
=no
1197 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1198 ac_cpp
='$CPP $CPPFLAGS'
1199 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1200 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1201 cross_compiling
=$ac_cv_prog_cc_cross
1203 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1204 if test $ac_cv_prog_cc_works = no
; then
1205 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1207 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1208 echo "configure:1209: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
1209 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1210 cross_compiling
=$ac_cv_prog_cc_cross
1212 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1213 echo "configure:1214: checking whether we are using GNU C" >&5
1214 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
1215 echo $ac_n "(cached) $ac_c" 1>&6
1217 cat > conftest.c
<<EOF
1222 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1229 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1231 if test $ac_cv_prog_gcc = yes; then
1237 ac_test_CFLAGS
="${CFLAGS+set}"
1238 ac_save_CFLAGS
="$CFLAGS"
1240 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1241 echo "configure:1242: checking whether ${CC-cc} accepts -g" >&5
1242 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
1243 echo $ac_n "(cached) $ac_c" 1>&6
1245 echo 'void f(){}' > conftest.c
1246 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1255 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1256 if test "$ac_test_CFLAGS" = set; then
1257 CFLAGS
="$ac_save_CFLAGS"
1258 elif test $ac_cv_prog_cc_g = yes; then
1259 if test "$GCC" = yes; then
1265 if test "$GCC" = yes; then
1272 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1273 if test "${with_gnu_ld+set}" = set; then
1274 withval
="$with_gnu_ld"
1275 test "$withval" = no || with_gnu_ld
=yes
1281 if test "$ac_cv_prog_gcc" = yes; then
1282 # Check if gcc -print-prog-name=ld gives a path.
1283 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1284 echo "configure:1285: checking for ld used by GCC" >&5
1285 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1287 # Accept absolute paths.
1288 [\\/]* |
[A-Za-z
]:[\\/]*)
1289 re_direlt
='/[^/][^/]*/\.\./'
1290 # Canonicalize the path of ld
1291 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1292 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1293 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1295 test -z "$LD" && LD
="$ac_prog"
1298 # If it fails, then pretend we aren't using GCC.
1302 # If it is relative, then search for the first ld in PATH.
1306 elif test "$with_gnu_ld" = yes; then
1307 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1308 echo "configure:1309: checking for GNU ld" >&5
1310 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1311 echo "configure:1312: checking for non-GNU ld" >&5
1313 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
1314 echo $ac_n "(cached) $ac_c" 1>&6
1316 if test -z "$LD"; then
1317 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1318 for ac_dir
in $PATH; do
1319 test -z "$ac_dir" && ac_dir
=.
1320 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1321 ac_cv_path_LD
="$ac_dir/$ac_prog"
1322 # Check to see if the program is GNU ld. I'd rather use --version,
1323 # but apparently some GNU ld's only accept -v.
1324 # Break only if it was the GNU/non-GNU ld that we prefer.
1325 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1326 test "$with_gnu_ld" != no
&& break
1328 test "$with_gnu_ld" != yes && break
1334 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1339 if test -n "$LD"; then
1340 echo "$ac_t""$LD" 1>&6
1342 echo "$ac_t""no" 1>&6
1344 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1345 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1346 echo "configure:1347: checking if the linker ($LD) is GNU ld" >&5
1347 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
1348 echo $ac_n "(cached) $ac_c" 1>&6
1350 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1351 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1352 ac_cv_prog_gnu_ld
=yes
1354 ac_cv_prog_gnu_ld
=no
1358 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1361 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1362 echo "configure:1363: checking for BSD-compatible nm" >&5
1363 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
1364 echo $ac_n "(cached) $ac_c" 1>&6
1366 if test -n "$NM"; then
1367 # Let the user override the test.
1370 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1371 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1372 test -z "$ac_dir" && ac_dir
=.
1373 if test -f $ac_dir/nm ||
test -f $ac_dir/nm
$ac_exeext ; then
1374 # Check to see if the nm accepts a BSD-compat flag.
1375 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1376 # nm: unknown option "B" ignored
1377 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1378 ac_cv_path_NM
="$ac_dir/nm -B"
1380 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1381 ac_cv_path_NM
="$ac_dir/nm -p"
1384 ac_cv_path_NM
=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1385 continue # so that we can try to find one that supports BSD flags
1390 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1395 echo "$ac_t""$NM" 1>&6
1397 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1398 echo "configure:1399: checking whether ln -s works" >&5
1399 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
1400 echo $ac_n "(cached) $ac_c" 1>&6
1403 if ln -s X conftestdata
2>/dev
/null
1406 ac_cv_prog_LN_S
="ln -s"
1411 LN_S
="$ac_cv_prog_LN_S"
1412 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1413 echo "$ac_t""yes" 1>&6
1415 echo "$ac_t""no" 1>&6
1420 NONE
) lt_target
="$host" ;;
1421 *) lt_target
="$target" ;;
1424 # Check for any special flags to pass to ltconfig.
1425 libtool_flags
="--cache-file=$cache_file"
1426 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1427 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1428 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1429 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1430 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1433 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1434 if test "${enable_libtool_lock+set}" = set; then
1435 enableval
="$enable_libtool_lock"
1439 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
1440 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
1442 # Some flags need to be propagated to the compiler or linker for good
1444 case "$lt_target" in
1446 # Find out which ABI we are using.
1447 echo '#line 1448 "configure"' > conftest.
$ac_ext
1448 if { (eval echo configure
:1449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1449 case "`/usr/bin/file conftest.o`" in
1465 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1466 SAVE_CFLAGS
="$CFLAGS"
1467 CFLAGS
="$CFLAGS -belf"
1468 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1469 echo "configure:1470: checking whether the C compiler needs -belf" >&5
1470 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
1471 echo $ac_n "(cached) $ac_c" 1>&6
1473 cat > conftest.
$ac_ext <<EOF
1474 #line 1475 "configure"
1475 #include "confdefs.h"
1481 if { (eval echo configure
:1482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1483 lt_cv_cc_needs_belf
=yes
1485 echo "configure: failed program was:" >&5
1486 cat conftest.
$ac_ext >&5
1488 lt_cv_cc_needs_belf
=no
1493 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1494 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
1495 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1496 CFLAGS
="$SAVE_CFLAGS"
1504 # Save cache, so that ltconfig can load it
1505 cat > confcache
<<\EOF
1506 # This file is a shell script that caches the results of configure
1507 # tests run on this system so they can be shared between configure
1508 # scripts and configure runs. It is not useful on other systems.
1509 # If it contains results you don't want to keep, you may remove or edit it.
1511 # By default, configure uses ./config.cache as the cache file,
1512 # creating it if it does not exist already. You can give configure
1513 # the --cache-file=FILE option to use a different cache file; that is
1514 # what configure does when it calls configure scripts in
1515 # subdirectories, so they share the cache.
1516 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1517 # config.status only pays attention to the cache file if you give it the
1518 # --recheck option to rerun configure.
1521 # The following way of writing the cache mishandles newlines in values,
1522 # but we know of no workaround that is simple, portable, and efficient.
1523 # So, don't put newlines in cache variables' values.
1524 # Ultrix sh set writes to stderr and can't be redirected directly,
1525 # and sets the high bit in the cache file unless we assign to the vars.
1527 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1529 # `set' does not quote correctly, so add quotes (double-quote substitution
1530 # turns \\\\ into \\, and sed turns \\ into \).
1532 -e "s/'/'\\\\''/g" \
1533 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1536 # `set' quotes correctly as required by POSIX, so do not add quotes.
1537 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1540 if cmp -s $cache_file confcache
; then
1543 if test -w $cache_file; then
1544 echo "updating cache $cache_file"
1545 cat confcache
> $cache_file
1547 echo "not updating unwritable cache $cache_file"
1553 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1554 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1555 LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
1556 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" \
1557 DLLTOOL
="$DLLTOOL" AS
="$AS" OBJDUMP
="$OBJDUMP" \
1558 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
1559 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$lt_target \
1560 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1562 # Reload cache, that may have been modified by ltconfig
1563 if test -r "$cache_file"; then
1564 echo "loading cache $cache_file"
1565 test -f "$cache_file" && .
$cache_file
1567 echo "creating cache $cache_file"
1572 # This can be used to rebuild libtool when needed
1573 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1575 # Always use our own libtool.
1576 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1578 # Redirect the config.log output again, so that the ltconfig log is not
1579 # clobbered by the next message.
1580 exec 5>>.
/config.log
1583 # Check whether --enable-targets or --disable-targets was given.
1584 if test "${enable_targets+set}" = set; then
1585 enableval
="$enable_targets"
1586 case "${enableval}" in
1587 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
1589 no
) enable_targets
= ;;
1590 *) enable_targets
=$enableval ;;
1593 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
1594 if test "${enable_64_bit_bfd+set}" = set; then
1595 enableval
="$enable_64_bit_bfd"
1596 case "${enableval}" in
1599 *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;;
1609 if test -z "$target" ; then
1610 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
1612 if test -z "$host" ; then
1613 { echo "configure: error: Unrecognized host system type; please check config.sub." 1>&2; exit 1; }
1616 # host-specific stuff:
1618 # Extract the first word of "gcc", so it can be a program name with args.
1619 set dummy gcc
; ac_word
=$2
1620 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1621 echo "configure:1622: checking for $ac_word" >&5
1622 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
1623 echo $ac_n "(cached) $ac_c" 1>&6
1625 if test -n "$CC"; then
1626 ac_cv_prog_CC
="$CC" # Let the user override the test.
1628 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1630 for ac_dir
in $ac_dummy; do
1631 test -z "$ac_dir" && ac_dir
=.
1632 if test -f $ac_dir/$ac_word; then
1641 if test -n "$CC"; then
1642 echo "$ac_t""$CC" 1>&6
1644 echo "$ac_t""no" 1>&6
1647 if test -z "$CC"; then
1648 # Extract the first word of "cc", so it can be a program name with args.
1649 set dummy cc
; ac_word
=$2
1650 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1651 echo "configure:1652: checking for $ac_word" >&5
1652 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
1653 echo $ac_n "(cached) $ac_c" 1>&6
1655 if test -n "$CC"; then
1656 ac_cv_prog_CC
="$CC" # Let the user override the test.
1658 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1661 for ac_dir
in $ac_dummy; do
1662 test -z "$ac_dir" && ac_dir
=.
1663 if test -f $ac_dir/$ac_word; then
1664 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1665 ac_prog_rejected
=yes
1673 if test $ac_prog_rejected = yes; then
1674 # We found a bogon in the path, so make sure we never use it.
1675 set dummy
$ac_cv_prog_CC
1677 if test $# -gt 0; then
1678 # We chose a different compiler from the bogus one.
1679 # However, it has the same basename, so the bogon will be chosen
1680 # first if we set CC to just the basename; use the full file name.
1682 set dummy
"$ac_dir/$ac_word" "$@"
1690 if test -n "$CC"; then
1691 echo "$ac_t""$CC" 1>&6
1693 echo "$ac_t""no" 1>&6
1696 if test -z "$CC"; then
1697 case "`uname -s`" in
1698 *win32
* |
*WIN32
* |
*CYGWIN
*)
1699 # Extract the first word of "cl", so it can be a program name with args.
1700 set dummy cl
; ac_word
=$2
1701 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1702 echo "configure:1703: checking for $ac_word" >&5
1703 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
1704 echo $ac_n "(cached) $ac_c" 1>&6
1706 if test -n "$CC"; then
1707 ac_cv_prog_CC
="$CC" # Let the user override the test.
1709 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1711 for ac_dir
in $ac_dummy; do
1712 test -z "$ac_dir" && ac_dir
=.
1713 if test -f $ac_dir/$ac_word; then
1722 if test -n "$CC"; then
1723 echo "$ac_t""$CC" 1>&6
1725 echo "$ac_t""no" 1>&6
1730 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1733 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1734 echo "configure:1735: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
1737 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1738 ac_cpp
='$CPP $CPPFLAGS'
1739 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1740 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1741 cross_compiling
=$ac_cv_prog_cc_cross
1743 cat > conftest.
$ac_ext << EOF
1745 #line 1746 "configure"
1746 #include "confdefs.h"
1750 if { (eval echo configure
:1751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1751 ac_cv_prog_cc_works
=yes
1752 # If we can't run a trivial program, we are probably using a cross compiler.
1753 if (.
/conftest
; exit) 2>/dev
/null
; then
1754 ac_cv_prog_cc_cross
=no
1756 ac_cv_prog_cc_cross
=yes
1759 echo "configure: failed program was:" >&5
1760 cat conftest.
$ac_ext >&5
1761 ac_cv_prog_cc_works
=no
1765 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1766 ac_cpp
='$CPP $CPPFLAGS'
1767 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1768 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1769 cross_compiling
=$ac_cv_prog_cc_cross
1771 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1772 if test $ac_cv_prog_cc_works = no
; then
1773 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1775 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1776 echo "configure:1777: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
1777 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1778 cross_compiling
=$ac_cv_prog_cc_cross
1780 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1781 echo "configure:1782: checking whether we are using GNU C" >&5
1782 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
1783 echo $ac_n "(cached) $ac_c" 1>&6
1785 cat > conftest.c
<<EOF
1790 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1797 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1799 if test $ac_cv_prog_gcc = yes; then
1805 ac_test_CFLAGS
="${CFLAGS+set}"
1806 ac_save_CFLAGS
="$CFLAGS"
1808 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1809 echo "configure:1810: checking whether ${CC-cc} accepts -g" >&5
1810 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
1811 echo $ac_n "(cached) $ac_c" 1>&6
1813 echo 'void f(){}' > conftest.c
1814 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1823 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1824 if test "$ac_test_CFLAGS" = set; then
1825 CFLAGS
="$ac_save_CFLAGS"
1826 elif test $ac_cv_prog_cc_g = yes; then
1827 if test "$GCC" = yes; then
1833 if test "$GCC" = yes; then
1840 # Find a good install program. We prefer a C program (faster),
1841 # so one script is as good as another. But avoid the broken or
1842 # incompatible versions:
1843 # SysV /etc/install, /usr/sbin/install
1844 # SunOS /usr/etc/install
1845 # IRIX /sbin/install
1847 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1848 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1849 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1850 # ./install, which can be erroneously created by make from ./install.sh.
1851 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1852 echo "configure:1853: checking for a BSD compatible install" >&5
1853 if test -z "$INSTALL"; then
1854 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
1855 echo $ac_n "(cached) $ac_c" 1>&6
1857 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1858 for ac_dir
in $PATH; do
1859 # Account for people who put trailing slashes in PATH elements.
1861 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1863 # OSF1 and SCO ODT 3.0 have their own names for install.
1864 # Don't use installbsd from OSF since it installs stuff as root
1866 for ac_prog
in ginstall scoinst
install; do
1867 if test -f $ac_dir/$ac_prog; then
1868 if test $ac_prog = install &&
1869 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1870 # AIX install. It has an incompatible calling convention.
1872 elif test $ac_prog = install &&
1873 grep pwplus
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1874 # program-specific install script used by HP pwplus--don't use.
1877 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1888 if test "${ac_cv_path_install+set}" = set; then
1889 INSTALL
="$ac_cv_path_install"
1891 # As a last resort, use the slow shell script. We don't cache a
1892 # path for INSTALL within a source directory, because that will
1893 # break other packages using the cache if that directory is
1894 # removed, or if the path is relative.
1895 INSTALL
="$ac_install_sh"
1898 echo "$ac_t""$INSTALL" 1>&6
1900 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1901 # It thinks the first close brace ends the variable substitution.
1902 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1904 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1906 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1910 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1911 echo "configure:1912: checking how to run the C preprocessor" >&5
1912 # On Suns, sometimes $CPP names a directory.
1913 if test -n "$CPP" && test -d "$CPP"; then
1916 if test -z "$CPP"; then
1917 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
1918 echo $ac_n "(cached) $ac_c" 1>&6
1920 # This must be in double quotes, not single quotes, because CPP may get
1921 # substituted into the Makefile and "${CC-cc}" will confuse make.
1923 # On the NeXT, cc -E runs the code through the compiler's parser,
1924 # not just through cpp.
1925 cat > conftest.
$ac_ext <<EOF
1926 #line 1927 "configure"
1927 #include "confdefs.h"
1931 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1932 { (eval echo configure
:1933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1933 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1934 if test -z "$ac_err"; then
1938 echo "configure: failed program was:" >&5
1939 cat conftest.
$ac_ext >&5
1941 CPP
="${CC-cc} -E -traditional-cpp"
1942 cat > conftest.
$ac_ext <<EOF
1943 #line 1944 "configure"
1944 #include "confdefs.h"
1948 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1949 { (eval echo configure
:1950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1950 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1951 if test -z "$ac_err"; then
1955 echo "configure: failed program was:" >&5
1956 cat conftest.
$ac_ext >&5
1958 CPP
="${CC-cc} -nologo -E"
1959 cat > conftest.
$ac_ext <<EOF
1960 #line 1961 "configure"
1961 #include "confdefs.h"
1965 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1966 { (eval echo configure
:1967: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1967 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1968 if test -z "$ac_err"; then
1972 echo "configure: failed program was:" >&5
1973 cat conftest.
$ac_ext >&5
1982 ac_cv_prog_CPP
="$CPP"
1984 CPP
="$ac_cv_prog_CPP"
1986 ac_cv_prog_CPP
="$CPP"
1988 echo "$ac_t""$CPP" 1>&6
1990 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1991 echo "configure:1992: checking for POSIXized ISC" >&5
1992 if test -d /etc
/conf
/kconfig.d
&&
1993 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
1995 echo "$ac_t""yes" 1>&6
1996 ISC
=yes # If later tests want to check for ISC.
1997 cat >> confdefs.h
<<\EOF
1998 #define _POSIX_SOURCE 1
2001 if test "$GCC" = yes; then
2007 echo "$ac_t""no" 1>&6
2011 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2012 echo "configure:2013: checking for ANSI C header files" >&5
2013 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
2014 echo $ac_n "(cached) $ac_c" 1>&6
2016 cat > conftest.
$ac_ext <<EOF
2017 #line 2018 "configure"
2018 #include "confdefs.h"
2024 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2025 { (eval echo configure
:2026: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2026 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2027 if test -z "$ac_err"; then
2029 ac_cv_header_stdc
=yes
2032 echo "configure: failed program was:" >&5
2033 cat conftest.
$ac_ext >&5
2035 ac_cv_header_stdc
=no
2039 if test $ac_cv_header_stdc = yes; then
2040 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2041 cat > conftest.
$ac_ext <<EOF
2042 #line 2043 "configure"
2043 #include "confdefs.h"
2046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2047 egrep "memchr" >/dev
/null
2>&1; then
2051 ac_cv_header_stdc
=no
2057 if test $ac_cv_header_stdc = yes; then
2058 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2059 cat > conftest.
$ac_ext <<EOF
2060 #line 2061 "configure"
2061 #include "confdefs.h"
2064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2065 egrep "free" >/dev
/null
2>&1; then
2069 ac_cv_header_stdc
=no
2075 if test $ac_cv_header_stdc = yes; then
2076 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2077 if test "$cross_compiling" = yes; then
2080 cat > conftest.
$ac_ext <<EOF
2081 #line 2082 "configure"
2082 #include "confdefs.h"
2084 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2085 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2086 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2087 int main () { int i; for (i = 0; i < 256; i++)
2088 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2092 if { (eval echo configure
:2093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2096 echo "configure: failed program was:" >&5
2097 cat conftest.
$ac_ext >&5
2099 ac_cv_header_stdc
=no
2107 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2108 if test $ac_cv_header_stdc = yes; then
2109 cat >> confdefs.h
<<\EOF
2110 #define STDC_HEADERS 1
2115 echo $ac_n "checking for working const""... $ac_c" 1>&6
2116 echo "configure:2117: checking for working const" >&5
2117 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
2118 echo $ac_n "(cached) $ac_c" 1>&6
2120 cat > conftest.
$ac_ext <<EOF
2121 #line 2122 "configure"
2122 #include "confdefs.h"
2126 /* Ultrix mips cc rejects this. */
2127 typedef int charset[2]; const charset x;
2128 /* SunOS 4.1.1 cc rejects this. */
2129 char const *const *ccp;
2131 /* NEC SVR4.0.2 mips cc rejects this. */
2132 struct point {int x, y;};
2133 static struct point const zero = {0,0};
2134 /* AIX XL C 1.02.0.0 rejects this.
2135 It does not let you subtract one const X* pointer from another in an arm
2136 of an if-expression whose if-part is not a constant expression */
2137 const char *g = "string";
2138 ccp = &g + (g ? g-g : 0);
2139 /* HPUX 7.0 cc rejects these. */
2142 ccp = (char const *const *) p;
2143 { /* SCO 3.2v4 cc rejects this. */
2145 char const *s = 0 ? (char *) 0 : (char const *) 0;
2149 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2151 const int *foo = &x[0];
2154 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2155 typedef const int *iptr;
2159 { /* AIX XL C 1.02.0.0 rejects this saying
2160 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2161 struct s { int j; const int *ap[3]; };
2162 struct s *b; b->j = 5;
2164 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2170 if { (eval echo configure
:2171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2174 echo "configure: failed program was:" >&5
2175 cat conftest.
$ac_ext >&5
2182 echo "$ac_t""$ac_cv_c_const" 1>&6
2183 if test $ac_cv_c_const = no
; then
2184 cat >> confdefs.h
<<\EOF
2190 echo $ac_n "checking for inline""... $ac_c" 1>&6
2191 echo "configure:2192: checking for inline" >&5
2192 if eval "test \"\${ac_cv_c_inline+set}\" = set"; then
2193 echo $ac_n "(cached) $ac_c" 1>&6
2196 for ac_kw
in inline __inline__ __inline
; do
2197 cat > conftest.
$ac_ext <<EOF
2198 #line 2199 "configure"
2199 #include "confdefs.h"
2202 } $ac_kw int foo() {
2205 if { (eval echo configure
:2206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2207 ac_cv_c_inline
=$ac_kw; break
2209 echo "configure: failed program was:" >&5
2210 cat conftest.
$ac_ext >&5
2217 echo "$ac_t""$ac_cv_c_inline" 1>&6
2218 case "$ac_cv_c_inline" in
2220 no
) cat >> confdefs.h
<<\EOF
2224 *) cat >> confdefs.h
<<EOF
2225 #define inline $ac_cv_c_inline
2230 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2231 echo "configure:2232: checking for off_t" >&5
2232 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
2233 echo $ac_n "(cached) $ac_c" 1>&6
2235 cat > conftest.
$ac_ext <<EOF
2236 #line 2237 "configure"
2237 #include "confdefs.h"
2238 #include <sys/types.h>
2244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2245 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2247 eval "ac_cv_type_off_t=yes"
2250 eval "ac_cv_type_off_t=no"
2255 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
2256 echo "$ac_t""yes" 1>&6
2258 echo "$ac_t""no" 1>&6
2259 cat >> confdefs.h
<<EOF
2265 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2266 echo "configure:2267: checking for size_t" >&5
2267 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
2268 echo $ac_n "(cached) $ac_c" 1>&6
2270 cat > conftest.
$ac_ext <<EOF
2271 #line 2272 "configure"
2272 #include "confdefs.h"
2273 #include <sys/types.h>
2279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2280 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2282 eval "ac_cv_type_size_t=yes"
2285 eval "ac_cv_type_size_t=no"
2290 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
2291 echo "$ac_t""yes" 1>&6
2293 echo "$ac_t""no" 1>&6
2294 cat >> confdefs.h
<<EOF
2295 #define size_t unsigned
2300 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2301 # for constant arguments. Useless!
2302 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2303 echo "configure:2304: checking for working alloca.h" >&5
2304 if eval "test \"\${ac_cv_header_alloca_h+set}\" = set"; then
2305 echo $ac_n "(cached) $ac_c" 1>&6
2307 cat > conftest.
$ac_ext <<EOF
2308 #line 2309 "configure"
2309 #include "confdefs.h"
2312 char *p = alloca(2 * sizeof(int));
2315 if { (eval echo configure
:2316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2317 ac_cv_header_alloca_h
=yes
2319 echo "configure: failed program was:" >&5
2320 cat conftest.
$ac_ext >&5
2322 ac_cv_header_alloca_h
=no
2327 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2328 if test $ac_cv_header_alloca_h = yes; then
2329 cat >> confdefs.h
<<\EOF
2330 #define HAVE_ALLOCA_H 1
2335 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2336 echo "configure:2337: checking for alloca" >&5
2337 if eval "test \"\${ac_cv_func_alloca_works+set}\" = set"; then
2338 echo $ac_n "(cached) $ac_c" 1>&6
2340 cat > conftest.
$ac_ext <<EOF
2341 #line 2342 "configure"
2342 #include "confdefs.h"
2345 # define alloca __builtin_alloca
2348 # include <malloc.h>
2349 # define alloca _alloca
2352 # include <alloca.h>
2357 # ifndef alloca /* predefined by HP cc +Olibcalls */
2366 char *p = (char *) alloca(1);
2369 if { (eval echo configure
:2370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2371 ac_cv_func_alloca_works
=yes
2373 echo "configure: failed program was:" >&5
2374 cat conftest.
$ac_ext >&5
2376 ac_cv_func_alloca_works
=no
2381 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2382 if test $ac_cv_func_alloca_works = yes; then
2383 cat >> confdefs.h
<<\EOF
2384 #define HAVE_ALLOCA 1
2389 if test $ac_cv_func_alloca_works = no
; then
2390 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2391 # that cause trouble. Some versions do not even contain alloca or
2392 # contain a buggy version. If you still want to use their alloca,
2393 # use ar to extract alloca.o from them instead of compiling alloca.c.
2394 ALLOCA
=alloca.
${ac_objext}
2395 cat >> confdefs.h
<<\EOF
2400 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2401 echo "configure:2402: checking whether alloca needs Cray hooks" >&5
2402 if eval "test \"\${ac_cv_os_cray+set}\" = set"; then
2403 echo $ac_n "(cached) $ac_c" 1>&6
2405 cat > conftest.
$ac_ext <<EOF
2406 #line 2407 "configure"
2407 #include "confdefs.h"
2408 #if defined(CRAY) && ! defined(CRAY2)
2415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2416 egrep "webecray" >/dev
/null
2>&1; then
2427 echo "$ac_t""$ac_cv_os_cray" 1>&6
2428 if test $ac_cv_os_cray = yes; then
2429 for ac_func
in _getb67 GETB67 getb67
; do
2430 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2431 echo "configure:2432: checking for $ac_func" >&5
2432 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
2433 echo $ac_n "(cached) $ac_c" 1>&6
2435 cat > conftest.
$ac_ext <<EOF
2436 #line 2437 "configure"
2437 #include "confdefs.h"
2438 /* System header to define __stub macros and hopefully few prototypes,
2439 which can conflict with char $ac_func(); below. */
2441 /* Override any gcc2 internal prototype to avoid an error. */
2442 /* We use char because int might match the return type of a gcc2
2443 builtin and then its argument prototype would still apply. */
2449 /* The GNU C library defines this for functions which it implements
2450 to always fail with ENOSYS. Some functions are actually named
2451 something starting with __ and the normal name is an alias. */
2452 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2460 if { (eval echo configure
:2461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2462 eval "ac_cv_func_$ac_func=yes"
2464 echo "configure: failed program was:" >&5
2465 cat conftest.
$ac_ext >&5
2467 eval "ac_cv_func_$ac_func=no"
2472 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2473 echo "$ac_t""yes" 1>&6
2474 cat >> confdefs.h
<<EOF
2475 #define CRAY_STACKSEG_END $ac_func
2480 echo "$ac_t""no" 1>&6
2486 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2487 echo "configure:2488: checking stack direction for C alloca" >&5
2488 if eval "test \"\${ac_cv_c_stack_direction+set}\" = set"; then
2489 echo $ac_n "(cached) $ac_c" 1>&6
2491 if test "$cross_compiling" = yes; then
2492 ac_cv_c_stack_direction
=0
2494 cat > conftest.
$ac_ext <<EOF
2495 #line 2496 "configure"
2496 #include "confdefs.h"
2497 find_stack_direction ()
2499 static char *addr = 0;
2504 return find_stack_direction ();
2507 return (&dummy > addr) ? 1 : -1;
2511 exit (find_stack_direction() < 0);
2514 if { (eval echo configure
:2515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2516 ac_cv_c_stack_direction
=1
2518 echo "configure: failed program was:" >&5
2519 cat conftest.
$ac_ext >&5
2521 ac_cv_c_stack_direction
=-1
2528 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2529 cat >> confdefs.h
<<EOF
2530 #define STACK_DIRECTION $ac_cv_c_stack_direction
2535 for ac_hdr
in unistd.h
2537 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2538 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2539 echo "configure:2540: checking for $ac_hdr" >&5
2540 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
2541 echo $ac_n "(cached) $ac_c" 1>&6
2543 cat > conftest.
$ac_ext <<EOF
2544 #line 2545 "configure"
2545 #include "confdefs.h"
2548 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2549 { (eval echo configure
:2550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2550 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2551 if test -z "$ac_err"; then
2553 eval "ac_cv_header_$ac_safe=yes"
2556 echo "configure: failed program was:" >&5
2557 cat conftest.
$ac_ext >&5
2559 eval "ac_cv_header_$ac_safe=no"
2563 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2564 echo "$ac_t""yes" 1>&6
2565 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2566 cat >> confdefs.h
<<EOF
2567 #define $ac_tr_hdr 1
2571 echo "$ac_t""no" 1>&6
2575 for ac_func
in getpagesize
2577 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2578 echo "configure:2579: checking for $ac_func" >&5
2579 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
2580 echo $ac_n "(cached) $ac_c" 1>&6
2582 cat > conftest.
$ac_ext <<EOF
2583 #line 2584 "configure"
2584 #include "confdefs.h"
2585 /* System header to define __stub macros and hopefully few prototypes,
2586 which can conflict with char $ac_func(); below. */
2588 /* Override any gcc2 internal prototype to avoid an error. */
2589 /* We use char because int might match the return type of a gcc2
2590 builtin and then its argument prototype would still apply. */
2596 /* The GNU C library defines this for functions which it implements
2597 to always fail with ENOSYS. Some functions are actually named
2598 something starting with __ and the normal name is an alias. */
2599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2607 if { (eval echo configure
:2608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2609 eval "ac_cv_func_$ac_func=yes"
2611 echo "configure: failed program was:" >&5
2612 cat conftest.
$ac_ext >&5
2614 eval "ac_cv_func_$ac_func=no"
2619 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2620 echo "$ac_t""yes" 1>&6
2621 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2622 cat >> confdefs.h
<<EOF
2623 #define $ac_tr_func 1
2627 echo "$ac_t""no" 1>&6
2631 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2632 echo "configure:2633: checking for working mmap" >&5
2633 if eval "test \"\${ac_cv_func_mmap_fixed_mapped+set}\" = set"; then
2634 echo $ac_n "(cached) $ac_c" 1>&6
2636 if test "$cross_compiling" = yes; then
2637 ac_cv_func_mmap_fixed_mapped
=no
2639 cat > conftest.
$ac_ext <<EOF
2640 #line 2641 "configure"
2641 #include "confdefs.h"
2643 /* Thanks to Mike Haertel and Jim Avera for this test.
2644 Here is a matrix of mmap possibilities:
2645 mmap private not fixed
2646 mmap private fixed at somewhere currently unmapped
2647 mmap private fixed at somewhere already mapped
2648 mmap shared not fixed
2649 mmap shared fixed at somewhere currently unmapped
2650 mmap shared fixed at somewhere already mapped
2651 For private mappings, we should verify that changes cannot be read()
2652 back from the file, nor mmap's back from the file at a different
2653 address. (There have been systems where private was not correctly
2654 implemented like the infamous i386 svr4.0, and systems where the
2655 VM page cache was not coherent with the filesystem buffer cache
2656 like early versions of FreeBSD and possibly contemporary NetBSD.)
2657 For shared mappings, we should conversely verify that changes get
2658 propogated back to all the places they're supposed to be.
2660 Grep wants private fixed already mapped.
2661 The main things grep needs to know about mmap are:
2662 * does it exist and is it safe to write into the mmap'd area
2663 * how to use it (BSD variants) */
2664 #include <sys/types.h>
2666 #include <sys/mman.h>
2668 /* This mess was copied from the GNU getpagesize.h. */
2669 #ifndef HAVE_GETPAGESIZE
2670 # ifdef HAVE_UNISTD_H
2671 # include <unistd.h>
2674 /* Assume that all systems that can run configure have sys/param.h. */
2675 # ifndef HAVE_SYS_PARAM_H
2676 # define HAVE_SYS_PARAM_H 1
2679 # ifdef _SC_PAGESIZE
2680 # define getpagesize() sysconf(_SC_PAGESIZE)
2681 # else /* no _SC_PAGESIZE */
2682 # ifdef HAVE_SYS_PARAM_H
2683 # include <sys/param.h>
2684 # ifdef EXEC_PAGESIZE
2685 # define getpagesize() EXEC_PAGESIZE
2686 # else /* no EXEC_PAGESIZE */
2688 # define getpagesize() NBPG * CLSIZE
2691 # endif /* no CLSIZE */
2692 # else /* no NBPG */
2694 # define getpagesize() NBPC
2695 # else /* no NBPC */
2697 # define getpagesize() PAGESIZE
2698 # endif /* PAGESIZE */
2699 # endif /* no NBPC */
2700 # endif /* no NBPG */
2701 # endif /* no EXEC_PAGESIZE */
2702 # else /* no HAVE_SYS_PARAM_H */
2703 # define getpagesize() 8192 /* punt totally */
2704 # endif /* no HAVE_SYS_PARAM_H */
2705 # endif /* no _SC_PAGESIZE */
2707 #endif /* no HAVE_GETPAGESIZE */
2710 extern "C" { void *malloc(unsigned); }
2718 char *data, *data2, *data3;
2722 pagesize = getpagesize();
2725 * First, make a file with some known garbage in it.
2727 data = malloc(pagesize);
2730 for (i = 0; i < pagesize; ++i)
2731 *(data + i) = rand();
2733 fd = creat("conftestmmap", 0600);
2736 if (write(fd, data, pagesize) != pagesize)
2741 * Next, try to mmap the file at a fixed address which
2742 * already has something else allocated at it. If we can,
2743 * also make sure that we see the same garbage.
2745 fd = open("conftestmmap", O_RDWR);
2748 data2 = malloc(2 * pagesize);
2751 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2752 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2753 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2755 for (i = 0; i < pagesize; ++i)
2756 if (*(data + i) != *(data2 + i))
2760 * Finally, make sure that changes to the mapped area
2761 * do not percolate back to the file as seen by read().
2762 * (This is a bug on some variants of i386 svr4.0.)
2764 for (i = 0; i < pagesize; ++i)
2765 *(data2 + i) = *(data2 + i) + 1;
2766 data3 = malloc(pagesize);
2769 if (read(fd, data3, pagesize) != pagesize)
2771 for (i = 0; i < pagesize; ++i)
2772 if (*(data + i) != *(data3 + i))
2775 unlink("conftestmmap");
2780 if { (eval echo configure
:2781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2782 ac_cv_func_mmap_fixed_mapped
=yes
2784 echo "configure: failed program was:" >&5
2785 cat conftest.
$ac_ext >&5
2787 ac_cv_func_mmap_fixed_mapped
=no
2794 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2795 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2796 cat >> confdefs.h
<<\EOF
2803 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2804 unistd.h values.h sys
/param.h
2806 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2807 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2808 echo "configure:2809: checking for $ac_hdr" >&5
2809 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
2810 echo $ac_n "(cached) $ac_c" 1>&6
2812 cat > conftest.
$ac_ext <<EOF
2813 #line 2814 "configure"
2814 #include "confdefs.h"
2817 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2818 { (eval echo configure
:2819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2819 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2820 if test -z "$ac_err"; then
2822 eval "ac_cv_header_$ac_safe=yes"
2825 echo "configure: failed program was:" >&5
2826 cat conftest.
$ac_ext >&5
2828 eval "ac_cv_header_$ac_safe=no"
2832 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2833 echo "$ac_t""yes" 1>&6
2834 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2835 cat >> confdefs.h
<<EOF
2836 #define $ac_tr_hdr 1
2840 echo "$ac_t""no" 1>&6
2844 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2845 __argz_count __argz_stringify __argz_next
2847 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2848 echo "configure:2849: checking for $ac_func" >&5
2849 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
2850 echo $ac_n "(cached) $ac_c" 1>&6
2852 cat > conftest.
$ac_ext <<EOF
2853 #line 2854 "configure"
2854 #include "confdefs.h"
2855 /* System header to define __stub macros and hopefully few prototypes,
2856 which can conflict with char $ac_func(); below. */
2858 /* Override any gcc2 internal prototype to avoid an error. */
2859 /* We use char because int might match the return type of a gcc2
2860 builtin and then its argument prototype would still apply. */
2866 /* The GNU C library defines this for functions which it implements
2867 to always fail with ENOSYS. Some functions are actually named
2868 something starting with __ and the normal name is an alias. */
2869 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2877 if { (eval echo configure
:2878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2879 eval "ac_cv_func_$ac_func=yes"
2881 echo "configure: failed program was:" >&5
2882 cat conftest.
$ac_ext >&5
2884 eval "ac_cv_func_$ac_func=no"
2889 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2890 echo "$ac_t""yes" 1>&6
2891 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2892 cat >> confdefs.h
<<EOF
2893 #define $ac_tr_func 1
2897 echo "$ac_t""no" 1>&6
2902 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2903 for ac_func
in stpcpy
2905 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2906 echo "configure:2907: checking for $ac_func" >&5
2907 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
2908 echo $ac_n "(cached) $ac_c" 1>&6
2910 cat > conftest.
$ac_ext <<EOF
2911 #line 2912 "configure"
2912 #include "confdefs.h"
2913 /* System header to define __stub macros and hopefully few prototypes,
2914 which can conflict with char $ac_func(); below. */
2916 /* Override any gcc2 internal prototype to avoid an error. */
2917 /* We use char because int might match the return type of a gcc2
2918 builtin and then its argument prototype would still apply. */
2924 /* The GNU C library defines this for functions which it implements
2925 to always fail with ENOSYS. Some functions are actually named
2926 something starting with __ and the normal name is an alias. */
2927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2935 if { (eval echo configure
:2936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2937 eval "ac_cv_func_$ac_func=yes"
2939 echo "configure: failed program was:" >&5
2940 cat conftest.
$ac_ext >&5
2942 eval "ac_cv_func_$ac_func=no"
2947 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2948 echo "$ac_t""yes" 1>&6
2949 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2950 cat >> confdefs.h
<<EOF
2951 #define $ac_tr_func 1
2955 echo "$ac_t""no" 1>&6
2960 if test "${ac_cv_func_stpcpy}" = "yes"; then
2961 cat >> confdefs.h
<<\EOF
2962 #define HAVE_STPCPY 1
2967 if test $ac_cv_header_locale_h = yes; then
2968 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2969 echo "configure:2970: checking for LC_MESSAGES" >&5
2970 if eval "test \"\${am_cv_val_LC_MESSAGES+set}\" = set"; then
2971 echo $ac_n "(cached) $ac_c" 1>&6
2973 cat > conftest.
$ac_ext <<EOF
2974 #line 2975 "configure"
2975 #include "confdefs.h"
2981 if { (eval echo configure
:2982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2983 am_cv_val_LC_MESSAGES
=yes
2985 echo "configure: failed program was:" >&5
2986 cat conftest.
$ac_ext >&5
2988 am_cv_val_LC_MESSAGES
=no
2993 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2994 if test $am_cv_val_LC_MESSAGES = yes; then
2995 cat >> confdefs.h
<<\EOF
2996 #define HAVE_LC_MESSAGES 1
3001 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3002 echo "configure:3003: checking whether NLS is requested" >&5
3003 # Check whether --enable-nls or --disable-nls was given.
3004 if test "${enable_nls+set}" = set; then
3005 enableval
="$enable_nls"
3011 echo "$ac_t""$USE_NLS" 1>&6
3014 USE_INCLUDED_LIBINTL
=no
3016 if test "$USE_NLS" = "yes"; then
3017 cat >> confdefs.h
<<\EOF
3018 #define ENABLE_NLS 1
3021 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3022 echo "configure:3023: checking whether included gettext is requested" >&5
3023 # Check whether --with-included-gettext or --without-included-gettext was given.
3024 if test "${with_included_gettext+set}" = set; then
3025 withval
="$with_included_gettext"
3026 nls_cv_force_use_gnu_gettext
=$withval
3028 nls_cv_force_use_gnu_gettext
=no
3031 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3033 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
3034 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3036 nls_cv_header_libgt
=
3039 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3040 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3041 echo "configure:3042: checking for libintl.h" >&5
3042 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3043 echo $ac_n "(cached) $ac_c" 1>&6
3045 cat > conftest.
$ac_ext <<EOF
3046 #line 3047 "configure"
3047 #include "confdefs.h"
3048 #include <libintl.h>
3050 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3051 { (eval echo configure
:3052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3052 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3053 if test -z "$ac_err"; then
3055 eval "ac_cv_header_$ac_safe=yes"
3058 echo "configure: failed program was:" >&5
3059 cat conftest.
$ac_ext >&5
3061 eval "ac_cv_header_$ac_safe=no"
3065 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3066 echo "$ac_t""yes" 1>&6
3067 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3068 echo "configure:3069: checking for gettext in libc" >&5
3069 if eval "test \"\${gt_cv_func_gettext_libc+set}\" = set"; then
3070 echo $ac_n "(cached) $ac_c" 1>&6
3072 cat > conftest.
$ac_ext <<EOF
3073 #line 3074 "configure"
3074 #include "confdefs.h"
3075 #include <libintl.h>
3077 return (int) gettext ("")
3080 if { (eval echo configure
:3081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3082 gt_cv_func_gettext_libc
=yes
3084 echo "configure: failed program was:" >&5
3085 cat conftest.
$ac_ext >&5
3087 gt_cv_func_gettext_libc
=no
3092 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3094 if test "$gt_cv_func_gettext_libc" != "yes"; then
3095 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3096 echo "configure:3097: checking for bindtextdomain in -lintl" >&5
3097 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-:%__p__%'`
3098 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3099 echo $ac_n "(cached) $ac_c" 1>&6
3101 ac_save_LIBS
="$LIBS"
3103 cat > conftest.
$ac_ext <<EOF
3104 #line 3105 "configure"
3105 #include "confdefs.h"
3106 /* Override any gcc2 internal prototype to avoid an error. */
3107 /* We use char because int might match the return type of a gcc2
3108 builtin and then its argument prototype would still apply. */
3109 char bindtextdomain();
3115 if { (eval echo configure
:3116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3117 eval "ac_cv_lib_$ac_lib_var=yes"
3119 echo "configure: failed program was:" >&5
3120 cat conftest.
$ac_ext >&5
3122 eval "ac_cv_lib_$ac_lib_var=no"
3125 LIBS
="$ac_save_LIBS"
3128 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3129 echo "$ac_t""yes" 1>&6
3130 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3131 echo "configure:3132: checking for gettext in libintl" >&5
3132 if eval "test \"\${gt_cv_func_gettext_libintl+set}\" = set"; then
3133 echo $ac_n "(cached) $ac_c" 1>&6
3135 cat > conftest.
$ac_ext <<EOF
3136 #line 3137 "configure"
3137 #include "confdefs.h"
3140 return (int) gettext ("")
3143 if { (eval echo configure
:3144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3145 gt_cv_func_gettext_libintl
=yes
3147 echo "configure: failed program was:" >&5
3148 cat conftest.
$ac_ext >&5
3150 gt_cv_func_gettext_libintl
=no
3155 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3157 echo "$ac_t""no" 1>&6
3162 if test "$gt_cv_func_gettext_libc" = "yes" \
3163 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
3164 cat >> confdefs.h
<<\EOF
3165 #define HAVE_GETTEXT 1
3168 # Extract the first word of "msgfmt", so it can be a program name with args.
3169 set dummy msgfmt
; ac_word
=$2
3170 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3171 echo "configure:3172: checking for $ac_word" >&5
3172 if eval "test \"\${ac_cv_path_MSGFMT+set}\" = set"; then
3173 echo $ac_n "(cached) $ac_c" 1>&6
3177 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3180 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3181 for ac_dir
in $PATH; do
3182 test -z "$ac_dir" && ac_dir
=.
3183 if test -f $ac_dir/$ac_word; then
3184 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3185 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3191 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
3195 MSGFMT
="$ac_cv_path_MSGFMT"
3196 if test -n "$MSGFMT"; then
3197 echo "$ac_t""$MSGFMT" 1>&6
3199 echo "$ac_t""no" 1>&6
3201 if test "$MSGFMT" != "no"; then
3202 for ac_func
in dcgettext
3204 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3205 echo "configure:3206: checking for $ac_func" >&5
3206 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
3207 echo $ac_n "(cached) $ac_c" 1>&6
3209 cat > conftest.
$ac_ext <<EOF
3210 #line 3211 "configure"
3211 #include "confdefs.h"
3212 /* System header to define __stub macros and hopefully few prototypes,
3213 which can conflict with char $ac_func(); below. */
3215 /* Override any gcc2 internal prototype to avoid an error. */
3216 /* We use char because int might match the return type of a gcc2
3217 builtin and then its argument prototype would still apply. */
3223 /* The GNU C library defines this for functions which it implements
3224 to always fail with ENOSYS. Some functions are actually named
3225 something starting with __ and the normal name is an alias. */
3226 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3234 if { (eval echo configure
:3235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3236 eval "ac_cv_func_$ac_func=yes"
3238 echo "configure: failed program was:" >&5
3239 cat conftest.
$ac_ext >&5
3241 eval "ac_cv_func_$ac_func=no"
3246 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3247 echo "$ac_t""yes" 1>&6
3248 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3249 cat >> confdefs.h
<<EOF
3250 #define $ac_tr_func 1
3254 echo "$ac_t""no" 1>&6
3258 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3259 set dummy gmsgfmt
; ac_word
=$2
3260 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3261 echo "configure:3262: checking for $ac_word" >&5
3262 if eval "test \"\${ac_cv_path_GMSGFMT+set}\" = set"; then
3263 echo $ac_n "(cached) $ac_c" 1>&6
3267 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3270 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3273 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3275 for ac_dir
in $ac_dummy; do
3276 test -z "$ac_dir" && ac_dir
=.
3277 if test -f $ac_dir/$ac_word; then
3278 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3283 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3287 GMSGFMT
="$ac_cv_path_GMSGFMT"
3288 if test -n "$GMSGFMT"; then
3289 echo "$ac_t""$GMSGFMT" 1>&6
3291 echo "$ac_t""no" 1>&6
3294 # Extract the first word of "xgettext", so it can be a program name with args.
3295 set dummy xgettext
; ac_word
=$2
3296 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3297 echo "configure:3298: checking for $ac_word" >&5
3298 if eval "test \"\${ac_cv_path_XGETTEXT+set}\" = set"; then
3299 echo $ac_n "(cached) $ac_c" 1>&6
3303 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3306 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3307 for ac_dir
in $PATH; do
3308 test -z "$ac_dir" && ac_dir
=.
3309 if test -f $ac_dir/$ac_word; then
3310 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3311 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
3317 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
3321 XGETTEXT
="$ac_cv_path_XGETTEXT"
3322 if test -n "$XGETTEXT"; then
3323 echo "$ac_t""$XGETTEXT" 1>&6
3325 echo "$ac_t""no" 1>&6
3328 cat > conftest.
$ac_ext <<EOF
3329 #line 3330 "configure"
3330 #include "confdefs.h"
3333 extern int _nl_msg_cat_cntr;
3334 return _nl_msg_cat_cntr
3337 if { (eval echo configure
:3338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3342 echo "configure: failed program was:" >&5
3343 cat conftest.
$ac_ext >&5
3354 echo "$ac_t""no" 1>&6
3359 if test "$CATOBJEXT" = "NONE"; then
3360 nls_cv_use_gnu_gettext
=yes
3364 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3365 INTLOBJS
="\$(GETTOBJS)"
3366 # Extract the first word of "msgfmt", so it can be a program name with args.
3367 set dummy msgfmt
; ac_word
=$2
3368 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3369 echo "configure:3370: checking for $ac_word" >&5
3370 if eval "test \"\${ac_cv_path_MSGFMT+set}\" = set"; then
3371 echo $ac_n "(cached) $ac_c" 1>&6
3375 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3378 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3379 for ac_dir
in $PATH; do
3380 test -z "$ac_dir" && ac_dir
=.
3381 if test -f $ac_dir/$ac_word; then
3382 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3383 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3389 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
3393 MSGFMT
="$ac_cv_path_MSGFMT"
3394 if test -n "$MSGFMT"; then
3395 echo "$ac_t""$MSGFMT" 1>&6
3397 echo "$ac_t""no" 1>&6
3400 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3401 set dummy gmsgfmt
; ac_word
=$2
3402 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3403 echo "configure:3404: checking for $ac_word" >&5
3404 if eval "test \"\${ac_cv_path_GMSGFMT+set}\" = set"; then
3405 echo $ac_n "(cached) $ac_c" 1>&6
3409 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3412 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3415 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3417 for ac_dir
in $ac_dummy; do
3418 test -z "$ac_dir" && ac_dir
=.
3419 if test -f $ac_dir/$ac_word; then
3420 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3425 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3429 GMSGFMT
="$ac_cv_path_GMSGFMT"
3430 if test -n "$GMSGFMT"; then
3431 echo "$ac_t""$GMSGFMT" 1>&6
3433 echo "$ac_t""no" 1>&6
3436 # Extract the first word of "xgettext", so it can be a program name with args.
3437 set dummy xgettext
; ac_word
=$2
3438 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3439 echo "configure:3440: checking for $ac_word" >&5
3440 if eval "test \"\${ac_cv_path_XGETTEXT+set}\" = set"; then
3441 echo $ac_n "(cached) $ac_c" 1>&6
3445 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3448 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3449 for ac_dir
in $PATH; do
3450 test -z "$ac_dir" && ac_dir
=.
3451 if test -f $ac_dir/$ac_word; then
3452 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3453 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
3459 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
3463 XGETTEXT
="$ac_cv_path_XGETTEXT"
3464 if test -n "$XGETTEXT"; then
3465 echo "$ac_t""$XGETTEXT" 1>&6
3467 echo "$ac_t""no" 1>&6
3471 USE_INCLUDED_LIBINTL
=yes
3475 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
3477 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
3478 nls_cv_header_intl
=libintl.h
3479 nls_cv_header_libgt
=libgettext.h
3482 if test "$XGETTEXT" != ":"; then
3483 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
3486 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
3491 # We need to process the po/ directory.
3495 nls_cv_header_intl
=libintl.h
3496 nls_cv_header_libgt
=libgettext.h
3499 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3500 # because some of the sources are only built for this goal.
3501 if test "$PACKAGE" = gettext; then
3503 USE_INCLUDED_LIBINTL
=yes
3506 for lang
in $ALL_LINGUAS; do
3507 GMOFILES
="$GMOFILES $lang.gmo"
3508 POFILES
="$POFILES $lang.po"
3524 if test "x$CATOBJEXT" != "x"; then
3525 if test "x$ALL_LINGUAS" = "x"; then
3528 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3529 echo "configure:3530: checking for catalogs to be installed" >&5
3531 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
3532 case "$ALL_LINGUAS" in
3533 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
3536 LINGUAS
=$NEW_LINGUAS
3537 echo "$ac_t""$LINGUAS" 1>&6
3540 if test -n "$LINGUAS"; then
3541 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
3545 if test $ac_cv_header_locale_h = yes; then
3546 INCLUDE_LOCALE_H
="#include <locale.h>"
3549 /* The system does not provide the header <locale.h>. Take care yourself. */"
3553 if test -f $srcdir/po2tbl.
sed.
in; then
3554 if test "$CATOBJEXT" = ".cat"; then
3555 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3556 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
3557 echo "configure:3558: checking for linux/version.h" >&5
3558 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3559 echo $ac_n "(cached) $ac_c" 1>&6
3561 cat > conftest.
$ac_ext <<EOF
3562 #line 3563 "configure"
3563 #include "confdefs.h"
3564 #include <linux/version.h>
3566 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3567 { (eval echo configure
:3568: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3568 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3569 if test -z "$ac_err"; then
3571 eval "ac_cv_header_$ac_safe=yes"
3574 echo "configure: failed program was:" >&5
3575 cat conftest.
$ac_ext >&5
3577 eval "ac_cv_header_$ac_safe=no"
3581 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3582 echo "$ac_t""yes" 1>&6
3585 echo "$ac_t""no" 1>&6
3590 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
3592 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3593 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
3596 if test "$PACKAGE" = "gettext"; then
3606 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
3612 if test -d $srcdir/po
; then
3613 test -d po || mkdir po
3614 if test "x$srcdir" != "x."; then
3615 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3616 posrcprefix
="$srcdir/"
3618 posrcprefix
="../$srcdir/"
3624 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3625 < $srcdir/po
/POTFILES.
in > po
/POTFILES
3629 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3630 echo "configure:3631: checking for Cygwin environment" >&5
3631 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3632 echo $ac_n "(cached) $ac_c" 1>&6
3634 cat > conftest.
$ac_ext <<EOF
3635 #line 3636 "configure"
3636 #include "confdefs.h"
3641 #define __CYGWIN__ __CYGWIN32__
3646 if { (eval echo configure
:3647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3650 echo "configure: failed program was:" >&5
3651 cat conftest.
$ac_ext >&5
3658 echo "$ac_t""$ac_cv_cygwin" 1>&6
3660 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
3661 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3662 echo "configure:3663: checking for mingw32 environment" >&5
3663 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3664 echo $ac_n "(cached) $ac_c" 1>&6
3666 cat > conftest.
$ac_ext <<EOF
3667 #line 3668 "configure"
3668 #include "confdefs.h"
3674 if { (eval echo configure
:3675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3678 echo "configure: failed program was:" >&5
3679 cat conftest.
$ac_ext >&5
3686 echo "$ac_t""$ac_cv_mingw32" 1>&6
3688 test "$ac_cv_mingw32" = yes && MINGW32
=yes
3689 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3690 echo "configure:3691: checking for EMX OS/2 environment" >&5
3691 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3692 echo $ac_n "(cached) $ac_c" 1>&6
3694 cat > conftest.
$ac_ext <<EOF
3695 #line 3696 "configure"
3696 #include "confdefs.h"
3702 if { (eval echo configure
:3703: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3706 echo "configure: failed program was:" >&5
3707 cat conftest.
$ac_ext >&5
3714 echo "$ac_t""$ac_cv_emxos2" 1>&6
3716 test "$ac_cv_emxos2" = yes && EMXOS2
=yes
3720 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3721 echo "configure:3722: checking for executable suffix" >&5
3722 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3723 echo $ac_n "(cached) $ac_c" 1>&6
3725 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes ||
test "$EMXOS2" = yes; then
3729 echo 'int main () { return 0; }' > conftest.
$ac_ext
3731 if { (eval echo configure
:3732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3732 for file in conftest.
*; do
3734 *.c |
*.C |
*.o |
*.obj |
*.xcoff
) ;;
3735 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
3739 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3742 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
3747 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
3748 echo "$ac_t""${ac_cv_exeext}" 1>&6
3752 for ac_prog
in 'bison -y' byacc
3754 # Extract the first word of "$ac_prog", so it can be a program name with args.
3755 set dummy
$ac_prog; ac_word
=$2
3756 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3757 echo "configure:3758: checking for $ac_word" >&5
3758 if eval "test \"\${ac_cv_prog_YACC+set}\" = set"; then
3759 echo $ac_n "(cached) $ac_c" 1>&6
3761 if test -n "$YACC"; then
3762 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3764 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3766 for ac_dir
in $ac_dummy; do
3767 test -z "$ac_dir" && ac_dir
=.
3768 if test -f $ac_dir/$ac_word; then
3769 ac_cv_prog_YACC
="$ac_prog"
3776 YACC
="$ac_cv_prog_YACC"
3777 if test -n "$YACC"; then
3778 echo "$ac_t""$YACC" 1>&6
3780 echo "$ac_t""no" 1>&6
3783 test -n "$YACC" && break
3785 test -n "$YACC" || YACC
="yacc"
3787 missing_dir
=`cd $ac_aux_dir && pwd`
3788 for ac_prog
in flex
lex
3790 # Extract the first word of "$ac_prog", so it can be a program name with args.
3791 set dummy
$ac_prog; ac_word
=$2
3792 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3793 echo "configure:3794: checking for $ac_word" >&5
3794 if eval "test \"\${ac_cv_prog_LEX+set}\" = set"; then
3795 echo $ac_n "(cached) $ac_c" 1>&6
3797 if test -n "$LEX"; then
3798 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
3800 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3802 for ac_dir
in $ac_dummy; do
3803 test -z "$ac_dir" && ac_dir
=.
3804 if test -f $ac_dir/$ac_word; then
3805 ac_cv_prog_LEX
="$ac_prog"
3812 LEX
="$ac_cv_prog_LEX"
3813 if test -n "$LEX"; then
3814 echo "$ac_t""$LEX" 1>&6
3816 echo "$ac_t""no" 1>&6
3819 test -n "$LEX" && break
3821 test -n "$LEX" || LEX
=""$missing_dir/missing flex
""
3823 # Extract the first word of "flex", so it can be a program name with args.
3824 set dummy flex
; ac_word
=$2
3825 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3826 echo "configure:3827: checking for $ac_word" >&5
3827 if eval "test \"\${ac_cv_prog_LEX+set}\" = set"; then
3828 echo $ac_n "(cached) $ac_c" 1>&6
3830 if test -n "$LEX"; then
3831 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
3833 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3835 for ac_dir
in $ac_dummy; do
3836 test -z "$ac_dir" && ac_dir
=.
3837 if test -f $ac_dir/$ac_word; then
3838 ac_cv_prog_LEX
="flex"
3843 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
3846 LEX
="$ac_cv_prog_LEX"
3847 if test -n "$LEX"; then
3848 echo "$ac_t""$LEX" 1>&6
3850 echo "$ac_t""no" 1>&6
3853 if test -z "$LEXLIB"
3859 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
3860 echo "configure:3861: checking for yywrap in -l$ac_lib" >&5
3861 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-:%__p__%'`
3862 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3863 echo $ac_n "(cached) $ac_c" 1>&6
3865 ac_save_LIBS
="$LIBS"
3866 LIBS
="-l$ac_lib $LIBS"
3867 cat > conftest.
$ac_ext <<EOF
3868 #line 3869 "configure"
3869 #include "confdefs.h"
3870 /* Override any gcc2 internal prototype to avoid an error. */
3871 /* We use char because int might match the return type of a gcc2
3872 builtin and then its argument prototype would still apply. */
3879 if { (eval echo configure
:3880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3881 eval "ac_cv_lib_$ac_lib_var=yes"
3883 echo "configure: failed program was:" >&5
3884 cat conftest.
$ac_ext >&5
3886 eval "ac_cv_lib_$ac_lib_var=no"
3889 LIBS
="$ac_save_LIBS"
3892 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3893 echo "$ac_t""yes" 1>&6
3896 echo "$ac_t""no" 1>&6
3901 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
3902 echo "configure:3903: checking lex output file root" >&5
3903 if eval "test \"\${ac_cv_prog_lex_root+set}\" = set"; then
3904 echo $ac_n "(cached) $ac_c" 1>&6
3906 # The minimal lex program is just a single line: %%. But some broken lexes
3907 # (Solaris, I think it was) want two %% lines, so accommodate them.
3910 if test -f lex.yy.c
; then
3911 ac_cv_prog_lex_root
=lex.yy
3912 elif test -f lexyy.c
; then
3913 ac_cv_prog_lex_root
=lexyy
3915 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
3919 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
3920 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
3922 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
3923 echo "configure:3924: checking whether yytext is a pointer" >&5
3924 if eval "test \"\${ac_cv_prog_lex_yytext_pointer+set}\" = set"; then
3925 echo $ac_n "(cached) $ac_c" 1>&6
3927 # POSIX says lex can declare yytext either as a pointer or an array; the
3928 # default is implementation-dependent. Figure out which it is, since
3929 # not all implementations provide the %pointer and %array declarations.
3930 ac_cv_prog_lex_yytext_pointer
=no
3931 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3932 ac_save_LIBS
="$LIBS"
3933 LIBS
="$LIBS $LEXLIB"
3934 cat > conftest.
$ac_ext <<EOF
3935 #line 3936 "configure"
3936 #include "confdefs.h"
3937 `cat $LEX_OUTPUT_ROOT.c`
3942 if { (eval echo configure
:3943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3944 ac_cv_prog_lex_yytext_pointer
=yes
3946 echo "configure: failed program was:" >&5
3947 cat conftest.
$ac_ext >&5
3950 LIBS
="$ac_save_LIBS"
3951 rm -f "${LEX_OUTPUT_ROOT}.c"
3955 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
3956 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3957 cat >> confdefs.h
<<\EOF
3958 #define YYTEXT_POINTER 1
3964 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
3965 echo "configure:3966: checking whether to enable maintainer-specific portions of Makefiles" >&5
3966 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3967 if test "${enable_maintainer_mode+set}" = set; then
3968 enableval
="$enable_maintainer_mode"
3969 USE_MAINTAINER_MODE
=$enableval
3971 USE_MAINTAINER_MODE
=no
3974 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
3977 if test $USE_MAINTAINER_MODE = yes; then
3978 MAINTAINER_MODE_TRUE
=
3979 MAINTAINER_MODE_FALSE
='#'
3981 MAINTAINER_MODE_TRUE
='#'
3982 MAINTAINER_MODE_FALSE
=
3984 MAINT
=$MAINTAINER_MODE_TRUE
3988 .
${srcdir}/configure.
host
3995 for ac_hdr
in string.h
strings.h stdlib.h unistd.h
3997 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3998 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3999 echo "configure:4000: checking for $ac_hdr" >&5
4000 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4001 echo $ac_n "(cached) $ac_c" 1>&6
4003 cat > conftest.
$ac_ext <<EOF
4004 #line 4005 "configure"
4005 #include "confdefs.h"
4008 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4009 { (eval echo configure
:4010: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4010 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4011 if test -z "$ac_err"; then
4013 eval "ac_cv_header_$ac_safe=yes"
4016 echo "configure: failed program was:" >&5
4017 cat conftest.
$ac_ext >&5
4019 eval "ac_cv_header_$ac_safe=no"
4023 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4024 echo "$ac_t""yes" 1>&6
4025 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4026 cat >> confdefs.h
<<EOF
4027 #define $ac_tr_hdr 1
4031 echo "$ac_t""no" 1>&6
4037 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4038 echo "configure:4039: checking for $ac_func" >&5
4039 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
4040 echo $ac_n "(cached) $ac_c" 1>&6
4042 cat > conftest.
$ac_ext <<EOF
4043 #line 4044 "configure"
4044 #include "confdefs.h"
4045 /* System header to define __stub macros and hopefully few prototypes,
4046 which can conflict with char $ac_func(); below. */
4048 /* Override any gcc2 internal prototype to avoid an error. */
4049 /* We use char because int might match the return type of a gcc2
4050 builtin and then its argument prototype would still apply. */
4056 /* The GNU C library defines this for functions which it implements
4057 to always fail with ENOSYS. Some functions are actually named
4058 something starting with __ and the normal name is an alias. */
4059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4067 if { (eval echo configure
:4068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4069 eval "ac_cv_func_$ac_func=yes"
4071 echo "configure: failed program was:" >&5
4072 cat conftest.
$ac_ext >&5
4074 eval "ac_cv_func_$ac_func=no"
4079 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4080 echo "$ac_t""yes" 1>&6
4081 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4082 cat >> confdefs.h
<<EOF
4083 #define $ac_tr_func 1
4087 echo "$ac_t""no" 1>&6
4092 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
4094 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4095 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4096 echo "configure:4097: checking for $ac_hdr that defines DIR" >&5
4097 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4098 echo $ac_n "(cached) $ac_c" 1>&6
4100 cat > conftest.
$ac_ext <<EOF
4101 #line 4102 "configure"
4102 #include "confdefs.h"
4103 #include <sys/types.h>
4109 if { (eval echo configure
:4110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4111 eval "ac_cv_header_dirent_$ac_safe=yes"
4113 echo "configure: failed program was:" >&5
4114 cat conftest.
$ac_ext >&5
4116 eval "ac_cv_header_dirent_$ac_safe=no"
4120 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4121 echo "$ac_t""yes" 1>&6
4122 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4123 cat >> confdefs.h
<<EOF
4124 #define $ac_tr_hdr 1
4126 ac_header_dirent
=$ac_hdr; break
4128 echo "$ac_t""no" 1>&6
4131 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4132 if test $ac_header_dirent = dirent.h
; then
4133 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4134 echo "configure:4135: checking for opendir in -ldir" >&5
4135 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
4136 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4137 echo $ac_n "(cached) $ac_c" 1>&6
4139 ac_save_LIBS
="$LIBS"
4141 cat > conftest.
$ac_ext <<EOF
4142 #line 4143 "configure"
4143 #include "confdefs.h"
4144 /* Override any gcc2 internal prototype to avoid an error. */
4145 /* We use char because int might match the return type of a gcc2
4146 builtin and then its argument prototype would still apply. */
4153 if { (eval echo configure
:4154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4155 eval "ac_cv_lib_$ac_lib_var=yes"
4157 echo "configure: failed program was:" >&5
4158 cat conftest.
$ac_ext >&5
4160 eval "ac_cv_lib_$ac_lib_var=no"
4163 LIBS
="$ac_save_LIBS"
4166 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4167 echo "$ac_t""yes" 1>&6
4170 echo "$ac_t""no" 1>&6
4174 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4175 echo "configure:4176: checking for opendir in -lx" >&5
4176 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
4177 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4178 echo $ac_n "(cached) $ac_c" 1>&6
4180 ac_save_LIBS
="$LIBS"
4182 cat > conftest.
$ac_ext <<EOF
4183 #line 4184 "configure"
4184 #include "confdefs.h"
4185 /* Override any gcc2 internal prototype to avoid an error. */
4186 /* We use char because int might match the return type of a gcc2
4187 builtin and then its argument prototype would still apply. */
4194 if { (eval echo configure
:4195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4196 eval "ac_cv_lib_$ac_lib_var=yes"
4198 echo "configure: failed program was:" >&5
4199 cat conftest.
$ac_ext >&5
4201 eval "ac_cv_lib_$ac_lib_var=no"
4204 LIBS
="$ac_save_LIBS"
4207 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4208 echo "$ac_t""yes" 1>&6
4211 echo "$ac_t""no" 1>&6
4219 *-*-msdos* |
*-*-go32* |
*-*-mingw32* |
*-*-cygwin* |
*-*-windows*)
4220 cat >> confdefs.h
<<\EOF
4221 #define USE_BINARY_FOPEN 1
4226 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4227 echo "configure:4228: checking whether strstr must be declared" >&5
4228 if eval "test \"\${bfd_cv_decl_needed_strstr+set}\" = set"; then
4229 echo $ac_n "(cached) $ac_c" 1>&6
4231 cat > conftest.
$ac_ext <<EOF
4232 #line 4233 "configure"
4233 #include "confdefs.h"
4236 #ifdef HAVE_STRING_H
4239 #ifdef HAVE_STRINGS_H
4240 #include <strings.h>
4243 #ifdef HAVE_STDLIB_H
4246 #ifdef HAVE_UNISTD_H
4250 char *(*pfn) = (char *(*)) strstr
4253 if { (eval echo configure
:4254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4255 bfd_cv_decl_needed_strstr
=no
4257 echo "configure: failed program was:" >&5
4258 cat conftest.
$ac_ext >&5
4260 bfd_cv_decl_needed_strstr
=yes
4265 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4266 if test $bfd_cv_decl_needed_strstr = yes; then
4267 cat >> confdefs.h
<<\EOF
4268 #define NEED_DECLARATION_STRSTR 1
4273 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
4274 echo "configure:4275: checking whether free must be declared" >&5
4275 if eval "test \"\${bfd_cv_decl_needed_free+set}\" = set"; then
4276 echo $ac_n "(cached) $ac_c" 1>&6
4278 cat > conftest.
$ac_ext <<EOF
4279 #line 4280 "configure"
4280 #include "confdefs.h"
4283 #ifdef HAVE_STRING_H
4286 #ifdef HAVE_STRINGS_H
4287 #include <strings.h>
4290 #ifdef HAVE_STDLIB_H
4293 #ifdef HAVE_UNISTD_H
4297 char *(*pfn) = (char *(*)) free
4300 if { (eval echo configure
:4301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4302 bfd_cv_decl_needed_free
=no
4304 echo "configure: failed program was:" >&5
4305 cat conftest.
$ac_ext >&5
4307 bfd_cv_decl_needed_free
=yes
4312 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
4313 if test $bfd_cv_decl_needed_free = yes; then
4314 cat >> confdefs.h
<<\EOF
4315 #define NEED_DECLARATION_FREE 1
4320 echo $ac_n "checking whether sbrk must be declared""... $ac_c" 1>&6
4321 echo "configure:4322: checking whether sbrk must be declared" >&5
4322 if eval "test \"\${bfd_cv_decl_needed_sbrk+set}\" = set"; then
4323 echo $ac_n "(cached) $ac_c" 1>&6
4325 cat > conftest.
$ac_ext <<EOF
4326 #line 4327 "configure"
4327 #include "confdefs.h"
4330 #ifdef HAVE_STRING_H
4333 #ifdef HAVE_STRINGS_H
4334 #include <strings.h>
4337 #ifdef HAVE_STDLIB_H
4340 #ifdef HAVE_UNISTD_H
4344 char *(*pfn) = (char *(*)) sbrk
4347 if { (eval echo configure
:4348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4349 bfd_cv_decl_needed_sbrk
=no
4351 echo "configure: failed program was:" >&5
4352 cat conftest.
$ac_ext >&5
4354 bfd_cv_decl_needed_sbrk
=yes
4359 echo "$ac_t""$bfd_cv_decl_needed_sbrk" 1>&6
4360 if test $bfd_cv_decl_needed_sbrk = yes; then
4361 cat >> confdefs.h
<<\EOF
4362 #define NEED_DECLARATION_SBRK 1
4367 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
4368 echo "configure:4369: checking whether getenv must be declared" >&5
4369 if eval "test \"\${bfd_cv_decl_needed_getenv+set}\" = set"; then
4370 echo $ac_n "(cached) $ac_c" 1>&6
4372 cat > conftest.
$ac_ext <<EOF
4373 #line 4374 "configure"
4374 #include "confdefs.h"
4377 #ifdef HAVE_STRING_H
4380 #ifdef HAVE_STRINGS_H
4381 #include <strings.h>
4384 #ifdef HAVE_STDLIB_H
4387 #ifdef HAVE_UNISTD_H
4391 char *(*pfn) = (char *(*)) getenv
4394 if { (eval echo configure
:4395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4396 bfd_cv_decl_needed_getenv
=no
4398 echo "configure: failed program was:" >&5
4399 cat conftest.
$ac_ext >&5
4401 bfd_cv_decl_needed_getenv
=yes
4406 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
4407 if test $bfd_cv_decl_needed_getenv = yes; then
4408 cat >> confdefs.h
<<\EOF
4409 #define NEED_DECLARATION_GETENV 1
4414 echo $ac_n "checking whether environ must be declared""... $ac_c" 1>&6
4415 echo "configure:4416: checking whether environ must be declared" >&5
4416 if eval "test \"\${bfd_cv_decl_needed_environ+set}\" = set"; then
4417 echo $ac_n "(cached) $ac_c" 1>&6
4419 cat > conftest.
$ac_ext <<EOF
4420 #line 4421 "configure"
4421 #include "confdefs.h"
4424 #ifdef HAVE_STRING_H
4427 #ifdef HAVE_STRINGS_H
4428 #include <strings.h>
4431 #ifdef HAVE_STDLIB_H
4434 #ifdef HAVE_UNISTD_H
4438 char *(*pfn) = (char *(*)) environ
4441 if { (eval echo configure
:4442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4443 bfd_cv_decl_needed_environ
=no
4445 echo "configure: failed program was:" >&5
4446 cat conftest.
$ac_ext >&5
4448 bfd_cv_decl_needed_environ
=yes
4453 echo "$ac_t""$bfd_cv_decl_needed_environ" 1>&6
4454 if test $bfd_cv_decl_needed_environ = yes; then
4455 cat >> confdefs.h
<<\EOF
4456 #define NEED_DECLARATION_ENVIRON 1
4462 # When converting linker scripts into strings for use in emulation
4463 # files, use astring.sed if the compiler supports ANSI string
4464 # concatenation, or ostring.sed otherwise. This is to support the
4465 # broken Microsoft MSVC compiler, which limits the length of string
4466 # constants, while still supporting pre-ANSI compilers which do not
4467 # support string concatenation.
4468 echo $ac_n "checking whether ANSI C string concatenation works""... $ac_c" 1>&6
4469 echo "configure:4470: checking whether ANSI C string concatenation works" >&5
4470 if eval "test \"\${ld_cv_string_concatenation+set}\" = set"; then
4471 echo $ac_n "(cached) $ac_c" 1>&6
4473 cat > conftest.
$ac_ext <<EOF
4474 #line 4475 "configure"
4475 #include "confdefs.h"
4481 if { (eval echo configure
:4482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4483 ld_cv_string_concatenation
=yes
4485 echo "configure: failed program was:" >&5
4486 cat conftest.
$ac_ext >&5
4488 ld_cv_string_concatenation
=no
4493 echo "$ac_t""$ld_cv_string_concatenation" 1>&6
4494 if test "$ld_cv_string_concatenation" = "yes"; then
4495 STRINGIFY
=astring.
sed
4497 STRINGIFY
=ostring.
sed
4501 # target-specific stuff:
4511 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
4513 if test "$targ_alias" = "all"; then
4516 # Canonicalize the secondary target names.
4517 result
=`$ac_config_sub $targ_alias 2>/dev/null`
4518 if test -n "$result"; then
4524 .
${srcdir}/configure.tgt
4526 if test "$targ" = "$target"; then
4530 for i
in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
4531 case " $all_emuls " in
4534 all_emuls
="$all_emuls e${i}.o"
4535 eval result
=\
$tdir_$i
4536 test -z "$result" && result
=$targ_alias
4537 echo tdir_
$i=$result >> tdirs
4542 for i
in $targ_emul $targ_extra_libpath; do
4543 case " $all_libpath " in
4546 if test -z "$all_libpath"; then
4549 all_libpath
="$all_libpath ${i}"
4555 for i
in $targ_extra_ofiles; do
4556 case " $all_emul_extras " in
4559 all_emul_extras
="$all_emul_extras ${i}"
4571 if test x
${all_targets} = xtrue
; then
4572 if test x
${want64} = xtrue
; then
4573 EMULATION_OFILES
='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
4575 EMULATION_OFILES
='$(ALL_EMULATIONS)'
4577 EMUL_EXTRA_OFILES
='$(ALL_EMUL_EXTRA_OFILES)'
4579 EMULATION_OFILES
=$all_emuls
4580 EMUL_EXTRA_OFILES
=$all_emul_extras
4585 EMULATION_LIBPATH
=$all_libpath
4588 if test x
${enable_static} = xno
; then
4589 TESTBFDLIB
="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
4591 TESTBFDLIB
="../bfd/.libs/libbfd.a"
4595 target_vendor
=${target_vendor=$host_vendor}
4596 case "$target_vendor" in
4597 hp
) EXTRA_SHLIB_EXTENSION
=".sl" ;;
4598 *) EXTRA_SHLIB_EXTENSION
= ;;
4600 if test x
${EXTRA_SHLIB_EXTENSION} != x
; then
4601 cat >> confdefs.h
<<EOF
4602 #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
4608 cat > confcache
<<\EOF
4609 # This file is a shell script that caches the results of configure
4610 # tests run on this system so they can be shared between configure
4611 # scripts and configure runs. It is not useful on other systems.
4612 # If it contains results you don't want to keep, you may remove or edit it.
4614 # By default, configure uses ./config.cache as the cache file,
4615 # creating it if it does not exist already. You can give configure
4616 # the --cache-file=FILE option to use a different cache file; that is
4617 # what configure does when it calls configure scripts in
4618 # subdirectories, so they share the cache.
4619 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4620 # config.status only pays attention to the cache file if you give it the
4621 # --recheck option to rerun configure.
4624 # The following way of writing the cache mishandles newlines in values,
4625 # but we know of no workaround that is simple, portable, and efficient.
4626 # So, don't put newlines in cache variables' values.
4627 # Ultrix sh set writes to stderr and can't be redirected directly,
4628 # and sets the high bit in the cache file unless we assign to the vars.
4630 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4632 # `set' does not quote correctly, so add quotes (double-quote substitution
4633 # turns \\\\ into \\, and sed turns \\ into \).
4635 -e "s/'/'\\\\''/g" \
4636 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4639 # `set' quotes correctly as required by POSIX, so do not add quotes.
4640 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4643 if cmp -s $cache_file confcache
; then
4646 if test -w $cache_file; then
4647 echo "updating cache $cache_file"
4648 cat confcache
> $cache_file
4650 echo "not updating unwritable cache $cache_file"
4655 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4657 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4658 # Let make expand exec_prefix.
4659 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4661 # Any assignment to VPATH causes Sun make to only execute
4662 # the first set of double-colon rules, so remove it if not needed.
4663 # If there is a colon in the path, we need to keep it.
4664 if test "x$srcdir" = x.
; then
4665 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
4668 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4670 DEFS
=-DHAVE_CONFIG_H
4672 # Without the "./", some shells look in PATH for config.status.
4673 : ${CONFIG_STATUS=./config.status}
4675 echo creating
$CONFIG_STATUS
4676 rm -f $CONFIG_STATUS
4677 cat > $CONFIG_STATUS <<EOF
4679 # Generated automatically by configure.
4680 # Run this file to recreate the current configuration.
4681 # This directory was configured as follows,
4682 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4684 # $0 $ac_configure_args
4686 # Compiler output produced by configure, useful for debugging
4687 # configure, is in ./config.log if it exists.
4689 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4692 case "\$ac_option" in
4693 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4694 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4695 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4696 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4697 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
4699 -help | --help | --hel | --he | --h)
4700 echo "\$ac_cs_usage"; exit 0 ;;
4701 *) echo "\$ac_cs_usage"; exit 1 ;;
4705 ac_given_srcdir=$srcdir
4706 ac_given_INSTALL="$INSTALL"
4708 trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4710 cat >> $CONFIG_STATUS <<EOF
4712 # Protect against being on the right side of a sed subst in config.status.
4713 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4714 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4718 s%@CFLAGS@%$CFLAGS%g
4719 s%@CPPFLAGS@%$CPPFLAGS%g
4720 s%@CXXFLAGS@%$CXXFLAGS%g
4721 s%@FFLAGS@%$FFLAGS%g
4723 s%@LDFLAGS@%$LDFLAGS%g
4725 s%@exec_prefix@%$exec_prefix%g
4726 s%@prefix@%$prefix%g
4727 s%@program_transform_name@%$program_transform_name%g
4728 s%@bindir@%$bindir%g
4729 s%@sbindir@%$sbindir%g
4730 s%@libexecdir@%$libexecdir%g
4731 s%@datadir@%$datadir%g
4732 s%@sysconfdir@%$sysconfdir%g
4733 s%@sharedstatedir@%$sharedstatedir%g
4734 s%@localstatedir@%$localstatedir%g
4735 s%@libdir@%$libdir%g
4736 s%@includedir@%$includedir%g
4737 s%@oldincludedir@%$oldincludedir%g
4738 s%@infodir@%$infodir%g
4739 s%@mandir@%$mandir%g
4741 s%@host_alias@%$host_alias%g
4742 s%@host_cpu@%$host_cpu%g
4743 s%@host_vendor@%$host_vendor%g
4744 s%@host_os@%$host_os%g
4745 s%@target@%$target%g
4746 s%@target_alias@%$target_alias%g
4747 s%@target_cpu@%$target_cpu%g
4748 s%@target_vendor@%$target_vendor%g
4749 s%@target_os@%$target_os%g
4751 s%@build_alias@%$build_alias%g
4752 s%@build_cpu@%$build_cpu%g
4753 s%@build_vendor@%$build_vendor%g
4754 s%@build_os@%$build_os%g
4755 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4756 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4757 s%@INSTALL_DATA@%$INSTALL_DATA%g
4758 s%@PACKAGE@%$PACKAGE%g
4759 s%@VERSION@%$VERSION%g
4760 s%@ACLOCAL@%$ACLOCAL%g
4761 s%@AUTOCONF@%$AUTOCONF%g
4762 s%@AUTOMAKE@%$AUTOMAKE%g
4763 s%@AUTOHEADER@%$AUTOHEADER%g
4764 s%@MAKEINFO@%$MAKEINFO%g
4765 s%@SET_MAKE@%$SET_MAKE%g
4766 s%@RANLIB@%$RANLIB%g
4769 s%@LIBTOOL@%$LIBTOOL%g
4771 s%@ALLOCA@%$ALLOCA%g
4772 s%@USE_NLS@%$USE_NLS%g
4773 s%@MSGFMT@%$MSGFMT%g
4774 s%@GMSGFMT@%$GMSGFMT%g
4775 s%@XGETTEXT@%$XGETTEXT%g
4776 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4777 s%@CATALOGS@%$CATALOGS%g
4778 s%@CATOBJEXT@%$CATOBJEXT%g
4779 s%@DATADIRNAME@%$DATADIRNAME%g
4780 s%@GMOFILES@%$GMOFILES%g
4781 s%@INSTOBJEXT@%$INSTOBJEXT%g
4782 s%@INTLDEPS@%$INTLDEPS%g
4783 s%@INTLLIBS@%$INTLLIBS%g
4784 s%@INTLOBJS@%$INTLOBJS%g
4785 s%@POFILES@%$POFILES%g
4787 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4789 s%@GT_YES@%$GT_YES%g
4790 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4792 s%@EXEEXT@%$EXEEXT%g
4795 s%@LEXLIB@%$LEXLIB%g
4796 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
4797 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
4798 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
4800 s%@HDEFINES@%$HDEFINES%g
4801 s%@HOSTING_CRT0@%$HOSTING_CRT0%g
4802 s%@HOSTING_LIBS@%$HOSTING_LIBS%g
4803 s%@NATIVE_LIB_DIRS@%$NATIVE_LIB_DIRS%g
4804 s%@STRINGIFY@%$STRINGIFY%g
4808 s%@EMULATION_OFILES@%$EMULATION_OFILES%g
4809 s%@EMUL_EXTRA_OFILES@%$EMUL_EXTRA_OFILES%g
4810 s%@EMULATION_LIBPATH@%$EMULATION_LIBPATH%g
4811 s%@TESTBFDLIB@%$TESTBFDLIB%g
4816 cat >> $CONFIG_STATUS <<\EOF
4818 # Split the substitutions into bite-sized pieces for seds with
4819 # small command number limits, like on Digital OSF/1 and HP-UX.
4820 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
4821 ac_file
=1 # Number of current file.
4822 ac_beg
=1 # First line for current file.
4823 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
4826 while $ac_more_lines; do
4827 if test $ac_beg -gt 1; then
4828 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
4830 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
4832 if test ! -s conftest.s
$ac_file; then
4834 rm -f conftest.s
$ac_file
4836 if test -z "$ac_sed_cmds"; then
4837 ac_sed_cmds
="sed -f conftest.s$ac_file"
4839 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
4841 ac_file
=`expr $ac_file + 1`
4843 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
4846 if test -z "$ac_sed_cmds"; then
4851 cat >> $CONFIG_STATUS <<EOF
4853 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
4855 cat >> $CONFIG_STATUS <<\EOF
4856 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
4857 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4859 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4860 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4861 *) ac_file_in
="${ac_file}.in" ;;
4864 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4866 # Remove last slash and all that follows it. Not all systems have dirname.
4867 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4868 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
4869 # The file is in a subdirectory.
4870 test ! -d "$ac_dir" && mkdir
"$ac_dir"
4871 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
4872 # A "../" for each directory in $ac_dir_suffix.
4873 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4875 ac_dir_suffix
= ac_dots
=
4878 case "$ac_given_srcdir" in
4880 if test -z "$ac_dots"; then top_srcdir
=.
4881 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4882 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
4884 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4885 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
4888 case "$ac_given_INSTALL" in
4889 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
4890 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
4893 echo creating
"$ac_file"
4895 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4897 *Makefile
*) ac_comsub
="1i\\
4898 # $configure_input" ;;
4902 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4904 s%@configure_input@%$configure_input%g
4905 s%@srcdir@%$srcdir%g
4906 s%@top_srcdir@%$top_srcdir%g
4907 s%@INSTALL@%$INSTALL%g
4908 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
4912 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4913 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4915 # ac_d sets the value in "#define NAME VALUE" lines.
4916 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4917 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
4920 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4921 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4922 ac_uB
='\([ ]\)%\1#\2define\3'
4925 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4926 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4927 ac_eB
='$%\1#\2define\3'
4931 if test "${CONFIG_HEADERS+set}" != set; then
4933 cat >> $CONFIG_STATUS <<EOF
4934 CONFIG_HEADERS="config.h:config.in"
4936 cat >> $CONFIG_STATUS <<\EOF
4938 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
4939 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4941 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4942 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4943 *) ac_file_in
="${ac_file}.in" ;;
4946 echo creating
$ac_file
4948 rm -f conftest.frag conftest.
in conftest.out
4949 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4950 cat $ac_file_inputs > conftest.
in
4954 # Transform confdefs.h into a sed script conftest.vals that substitutes
4955 # the proper values into config.h.in to produce config.h. And first:
4956 # Protect against being on the right side of a sed subst in config.status.
4957 # Protect against being in an unquoted here document in config.status.
4959 cat > conftest.hdr
<<\EOF
4962 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4966 sed -n -f conftest.hdr confdefs.h > conftest.vals
4969 # This sed command replaces #undef with comments. This is necessary, for
4970 # example, in the case of _POSIX_SOURCE, which is predefined and required
4971 # on some systems where configure will not decide to define it.
4972 cat >> conftest.vals <<\EOF
4973 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4976 # Break up conftest.vals because some shells have a limit on
4977 # the size of here documents, and old seds have small limits too.
4982 ac_lines=`grep -c . conftest.vals
`
4983 # grep -c gives empty output for an empty file on some AIX systems.
4984 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4985 # Write a limited-size here document to conftest.frag.
4986 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4987 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4989 sed -f conftest.frag conftest.in > conftest.out
4991 mv conftest.out conftest.in
4993 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4995 mv conftest.tail conftest.vals
4999 cat >> $CONFIG_STATUS <<\EOF
5000 rm -f conftest.frag conftest.h
5001 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5002 cat conftest.in >> conftest.h
5004 if cmp -s $ac_file conftest.h 2>/dev/null; then
5005 echo "$ac_file is unchanged"
5008 # Remove last slash and all that follows it. Not all systems have dirname.
5009 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5010 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5011 # The file is in a subdirectory.
5012 test ! -d "$ac_dir" && mkdir "$ac_dir"
5015 mv conftest.h $ac_file
5020 cat >> $CONFIG_STATUS <<EOF
5024 cat >> $CONFIG_STATUS <<\EOF
5025 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
5026 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
5029 chmod +x $CONFIG_STATUS
5030 rm -fr confdefs* $ac_clean_files
5031 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1