2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # 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.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
24 # Support unset when possible.
25 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
224 as_executable_p
="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 # We need space, tab and new line, in precisely that order.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
253 ac_default_prefix
=/usr
/local
254 ac_config_libobj_dir
=.
259 SHELL
=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
273 ac_unique_file
="gettext.c"
274 # Factoring default headers for most tests.
275 ac_includes_default
="\
278 # include <sys/types.h>
281 # include <sys/stat.h>
292 # if !STDC_HEADERS && HAVE_MEMORY_H
298 # include <strings.h>
301 # include <inttypes.h>
311 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT build build_cpu build_vendor build_os host host_cpu host_vendor host_os RANLIB ac_ct_RANLIB CPP EGREP ALLOCA GLIBC21 LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB LIBOBJS LTLIBOBJS'
314 # Initialize some variables set by options.
316 ac_init_version
=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
326 program_transform_name
=s
,x
,x
,
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir
='${exec_prefix}/bin'
340 sbindir
='${exec_prefix}/sbin'
341 libexecdir
='${exec_prefix}/libexec'
342 datadir
='${prefix}/share'
343 sysconfdir
='${prefix}/etc'
344 sharedstatedir
='${prefix}/com'
345 localstatedir
='${prefix}/var'
346 libdir
='${exec_prefix}/lib'
347 includedir
='${prefix}/include'
348 oldincludedir
='/usr/include'
349 infodir
='${prefix}/info'
350 mandir
='${prefix}/man'
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
362 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
368 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
370 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
373 -build |
--build |
--buil |
--bui |
--bu)
374 ac_prev
=build_alias
;;
375 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
376 build_alias
=$ac_optarg ;;
378 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
379 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
380 ac_prev
=cache_file
;;
381 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
382 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
383 cache_file
=$ac_optarg ;;
386 cache_file
=config.cache
;;
388 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
390 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
392 datadir
=$ac_optarg ;;
394 -disable-* |
--disable-*)
395 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* |
--enable-*)
404 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
411 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
417 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
418 |
--exec |
--exe |
--ex)
419 ac_prev
=exec_prefix
;;
420 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
421 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
422 |
--exec=* |
--exe=* |
--ex=*)
423 exec_prefix
=$ac_optarg ;;
425 -gas |
--gas |
--ga |
--g)
426 # Obsolete; use --with-gas.
429 -help |
--help |
--hel |
--he |
-h)
431 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
432 ac_init_help
=recursive
;;
433 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
434 ac_init_help
=short
;;
436 -host |
--host |
--hos |
--ho)
437 ac_prev
=host_alias
;;
438 -host=* |
--host=* |
--hos=* |
--ho=*)
439 host_alias
=$ac_optarg ;;
441 -includedir |
--includedir |
--includedi |
--included |
--include \
442 |
--includ |
--inclu |
--incl |
--inc)
443 ac_prev
=includedir
;;
444 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
445 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
446 includedir
=$ac_optarg ;;
448 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
450 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
451 infodir
=$ac_optarg ;;
453 -libdir |
--libdir |
--libdi |
--libd)
455 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
458 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
459 |
--libexe |
--libex |
--libe)
460 ac_prev
=libexecdir
;;
461 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
462 |
--libexe=* |
--libex=* |
--libe=*)
463 libexecdir
=$ac_optarg ;;
465 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
466 |
--localstate |
--localstat |
--localsta |
--localst \
467 |
--locals |
--local |
--loca |
--loc |
--lo)
468 ac_prev
=localstatedir
;;
469 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
470 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
471 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
472 localstatedir
=$ac_optarg ;;
474 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
476 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
480 # Obsolete; use --without-fp.
483 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
484 |
--no-cr |
--no-c |
-n)
487 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
488 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
491 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
492 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
493 |
--oldin |
--oldi |
--old |
--ol |
--o)
494 ac_prev
=oldincludedir
;;
495 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
496 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
497 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
498 oldincludedir
=$ac_optarg ;;
500 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
502 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
505 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
506 |
--program-pre |
--program-pr |
--program-p)
507 ac_prev
=program_prefix
;;
508 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
509 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
510 program_prefix
=$ac_optarg ;;
512 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
513 |
--program-suf |
--program-su |
--program-s)
514 ac_prev
=program_suffix
;;
515 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
516 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
517 program_suffix
=$ac_optarg ;;
519 -program-transform-name |
--program-transform-name \
520 |
--program-transform-nam |
--program-transform-na \
521 |
--program-transform-n |
--program-transform- \
522 |
--program-transform |
--program-transfor \
523 |
--program-transfo |
--program-transf \
524 |
--program-trans |
--program-tran \
525 |
--progr-tra |
--program-tr |
--program-t)
526 ac_prev
=program_transform_name
;;
527 -program-transform-name=* |
--program-transform-name=* \
528 |
--program-transform-nam=* |
--program-transform-na=* \
529 |
--program-transform-n=* |
--program-transform-=* \
530 |
--program-transform=* |
--program-transfor=* \
531 |
--program-transfo=* |
--program-transf=* \
532 |
--program-trans=* |
--program-tran=* \
533 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
534 program_transform_name
=$ac_optarg ;;
536 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
537 |
-silent |
--silent |
--silen |
--sile |
--sil)
540 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
542 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
544 sbindir
=$ac_optarg ;;
546 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
547 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
548 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
550 ac_prev
=sharedstatedir
;;
551 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
552 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
553 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
555 sharedstatedir
=$ac_optarg ;;
557 -site |
--site |
--sit)
559 -site=* |
--site=* |
--sit=*)
562 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
564 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
567 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
568 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
569 ac_prev
=sysconfdir
;;
570 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
571 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
572 sysconfdir
=$ac_optarg ;;
574 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
575 ac_prev
=target_alias
;;
576 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
577 target_alias
=$ac_optarg ;;
579 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
582 -version |
--version |
--versio |
--versi |
--vers |
-V)
586 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package
=`echo $ac_package| sed 's/-/_/g'`
593 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* |
--without-*)
599 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package
=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
608 # Obsolete; use --with-x.
611 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
612 |
--x-incl |
--x-inc |
--x-in |
--x-i)
613 ac_prev
=x_includes
;;
614 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
615 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
616 x_includes
=$ac_optarg ;;
618 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
619 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
620 ac_prev
=x_libraries
;;
621 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
622 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
623 x_libraries
=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
631 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 if test -n "$ac_prev"; then
652 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var
in exec_prefix prefix
660 eval ac_val
=$
`echo $ac_var`
662 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
668 # Be sure to have absolute paths.
669 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val
=$
`echo $ac_var`
674 [\\/$
]* | ?
:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x
; then
689 if test "x$build_alias" = x
; then
690 cross_compiling
=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
699 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
701 test "$silent" = yes && exec 6>/dev
/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted
=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir
=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
721 if test ! -r $srcdir/$ac_unique_file; then
725 ac_srcdir_defaulted
=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set
=${build_alias+set}
741 ac_env_build_alias_value
=$build_alias
742 ac_cv_env_build_alias_set
=${build_alias+set}
743 ac_cv_env_build_alias_value
=$build_alias
744 ac_env_host_alias_set
=${host_alias+set}
745 ac_env_host_alias_value
=$host_alias
746 ac_cv_env_host_alias_set
=${host_alias+set}
747 ac_cv_env_host_alias_value
=$host_alias
748 ac_env_target_alias_set
=${target_alias+set}
749 ac_env_target_alias_value
=$target_alias
750 ac_cv_env_target_alias_set
=${target_alias+set}
751 ac_cv_env_target_alias_value
=$target_alias
752 ac_env_CC_set
=${CC+set}
754 ac_cv_env_CC_set
=${CC+set}
755 ac_cv_env_CC_value
=$CC
756 ac_env_CFLAGS_set
=${CFLAGS+set}
757 ac_env_CFLAGS_value
=$CFLAGS
758 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value
=$CFLAGS
760 ac_env_LDFLAGS_set
=${LDFLAGS+set}
761 ac_env_LDFLAGS_value
=$LDFLAGS
762 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value
=$LDFLAGS
764 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value
=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
768 ac_env_CPP_set
=${CPP+set}
769 ac_env_CPP_value
=$CPP
770 ac_cv_env_CPP_set
=${CPP+set}
771 ac_cv_env_CPP_value
=$CPP
774 # Report the --help message.
776 if test "$ac_init_help" = "long"; then
777 # Omit some internal or obsolete options to make the list less imposing.
778 # This message is too long to be a string in the A/UX 3.1 sh.
780 \`configure' configures this package to adapt to many kinds of systems.
782 Usage: $0 [OPTION]... [VAR=VALUE]...
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE. See below for descriptions of some of the useful variables.
787 Defaults for the options are specified in brackets.
790 -h, --help display this help and exit
791 --help=short display options specific to this package
792 --help=recursive display the short help of all the included packages
793 -V, --version display version information and exit
794 -q, --quiet, --silent do not print \`checking...' messages
795 --cache-file=FILE cache test results in FILE [disabled]
796 -C, --config-cache alias for \`--cache-file=config.cache'
797 -n, --no-create do not create output files
798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
803 Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
814 For better control, use the options below.
816 Fine tuning of the installation directories:
817 --bindir=DIR user executables [EPREFIX/bin]
818 --sbindir=DIR system admin executables [EPREFIX/sbin]
819 --libexecdir=DIR program executables [EPREFIX/libexec]
820 --datadir=DIR read-only architecture-independent data [PREFIX/share]
821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824 --libdir=DIR object code libraries [EPREFIX/lib]
825 --includedir=DIR C header files [PREFIX/include]
826 --oldincludedir=DIR C header files for non-gcc [/usr/include]
827 --infodir=DIR info documentation [PREFIX/info]
828 --mandir=DIR man documentation [PREFIX/man]
834 --build=BUILD configure
for building on BUILD
[guessed
]
835 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
839 if test -n "$ac_init_help"; then
844 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
845 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
846 --disable-nls do not use Native Language Support
847 --disable-rpath do not hardcode runtime library paths
850 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
851 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
852 --with-gnu-ld assume the C compiler uses GNU ld default
=no
853 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
854 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
855 --with-included-gettext use the GNU gettext library included here
856 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
857 --without-libintl-prefix don't search
for libintl
in includedir and libdir
859 Some influential environment variables
:
860 CC C compiler
command
861 CFLAGS C compiler flags
862 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
863 nonstandard directory
<lib dir
>
864 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
865 headers
in a nonstandard directory
<include dir
>
868 Use these variables to override the choices made by
`configure' or to help
869 it to find libraries and programs with nonstandard names/locations.
874 if test "$ac_init_help" = "recursive"; then
875 # If there are subdirs, report their specific --help.
877 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
878 test -d $ac_dir || continue
881 if test "$ac_dir" != .; then
882 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
883 # A "../" for each directory in $ac_dir_suffix.
884 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
886 ac_dir_suffix= ac_top_builddir=
890 .) # No --srcdir option. We are building in place.
892 if test -z "$ac_top_builddir"; then
895 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
897 [\\/]* | ?:[\\/]* ) # Absolute path.
898 ac_srcdir=$srcdir$ac_dir_suffix;
899 ac_top_srcdir=$srcdir ;;
901 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
902 ac_top_srcdir=$ac_top_builddir$srcdir ;;
904 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
906 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
907 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}.
&& pwd`
908 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
909 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
912 # Check for guested configure; otherwise get Cygnus style configure.
913 if test -f $ac_srcdir/configure.gnu; then
915 $SHELL $ac_srcdir/configure.gnu --help=recursive
916 elif test -f $ac_srcdir/configure; then
918 $SHELL $ac_srcdir/configure --help=recursive
919 elif test -f $ac_srcdir/configure.ac ||
920 test -f $ac_srcdir/configure.in; then
924 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
930 test -n "$ac_init_help" && exit 0
931 if $ac_init_version; then
934 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
935 Free Software Foundation, Inc.
936 This configure script is free software; the Free Software Foundation
937 gives unlimited permission to copy, distribute and modify it.
943 This file contains any messages produced by compilers while
944 running configure, to aid debugging if configure makes a mistake.
946 It was created by $as_me, which was
947 generated by GNU Autoconf 2.57. Invocation command line was
958 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
959 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
960 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
961 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
962 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
964 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
965 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
967 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
968 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
969 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
970 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
971 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
972 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
973 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
981 test -z "$as_dir" && as_dir=.
997 # Keep a trace of the command line.
998 # Strip out --no-create and --no-recursion so they do not pile up.
999 # Strip out --silent because we don't want to record it for future runs.
1000 # Also quote any args containing shell meta-characters.
1001 # Make two passes to allow for proper duplicate-argument suppression.
1006 ac_must_keep_next=false
1012 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1013 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1014 | -silent | --silent | --silen | --sile | --sil)
1016 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1017 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1020 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1022 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1023 if test $ac_must_keep_next = true; then
1024 ac_must_keep_next=false # Got value, back to normal.
1027 *=* | --config-cache | -C | -disable-* | --disable-* \
1028 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1029 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1030 | -with-* | --with-* | -without-* | --without-* | --x)
1031 case "$ac_configure_args0 " in
1032 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1035 -* ) ac_must_keep_next=true ;;
1038 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1039 # Get rid of the leading space.
1045 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1046 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1048 # When interrupted or exit'd, cleanup temporary files, and complete
1049 # config.log. We remove comments because anyway the quotes in there
1050 # would cause problems or look ugly.
1051 # WARNING: Be sure not to use single quotes in there, as some shells,
1052 # such as our DU 5.0 friend, will then `close
' the trap.
1053 trap 'exit_status
=$?
1054 # Save into config.log some information that might help in debugging.
1059 ## ---------------- ##
1060 ## Cache variables. ##
1061 ## ---------------- ##
1064 # The following way of writing the cache mishandles newlines in values,
1067 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1070 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1071 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1075 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1082 ## ----------------- ##
1083 ## Output variables. ##
1084 ## ----------------- ##
1087 for ac_var
in $ac_subst_vars
1089 eval ac_val
=$
`echo $ac_var`
1090 echo "$ac_var='"'"'$ac_val'"'"'"
1094 if test -n "$ac_subst_files"; then
1101 for ac_var
in $ac_subst_files
1103 eval ac_val
=$
`echo $ac_var`
1104 echo "$ac_var='"'"'$ac_val'"'"'"
1109 if test -s confdefs.h
; then
1116 sed "/^$/d" confdefs.h |
sort
1119 test "$ac_signal" != 0 &&
1120 echo "$as_me: caught signal $ac_signal"
1121 echo "$as_me: exit $exit_status"
1123 rm -f core core.
* *.core
&&
1124 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1127 for ac_signal in 1 2 13 15; do
1128 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1132 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1133 rm -rf conftest* confdefs.h
1134 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1137 # Predefined preprocessor variables.
1139 cat >>confdefs.h <<_ACEOF
1140 #define PACKAGE_NAME "$PACKAGE_NAME"
1144 cat >>confdefs.h <<_ACEOF
1145 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1149 cat >>confdefs.h <<_ACEOF
1150 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1154 cat >>confdefs.h <<_ACEOF
1155 #define PACKAGE_STRING "$PACKAGE_STRING"
1159 cat >>confdefs.h <<_ACEOF
1160 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1164 # Let the site file select an alternate cache file if it wants to.
1165 # Prefer explicitly selected file to automatically selected ones.
1166 if test -z "$CONFIG_SITE"; then
1167 if test "x$prefix" != xNONE; then
1168 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1170 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1173 for ac_site_file in $CONFIG_SITE; do
1174 if test -r "$ac_site_file"; then
1175 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1176 echo "$as_me: loading site script $ac_site_file" >&6;}
1177 sed 's
/^
/|
/' "$ac_site_file" >&5
1182 if test -r "$cache_file"; then
1183 # Some versions of bash will fail to source /dev/null (special
1184 # files actually), so we avoid doing that.
1185 if test -f "$cache_file"; then
1186 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1187 echo "$as_me: loading cache $cache_file" >&6;}
1189 [\\/]* | ?:[\\/]* ) . $cache_file;;
1190 *) . ./$cache_file;;
1194 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1195 echo "$as_me: creating cache $cache_file" >&6;}
1199 # Check that the precious variables saved in the cache have kept the same
1201 ac_cache_corrupted=false
1202 for ac_var in `(set) 2>&1 |
1203 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1204 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1205 eval ac_new_set=\$ac_env_${ac_var}_set
1206 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1207 eval ac_new_val="\$ac_env_${ac_var}_value"
1208 case $ac_old_set,$ac_new_set in
1210 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1211 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1212 ac_cache_corrupted=: ;;
1214 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1215 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1216 ac_cache_corrupted=: ;;
1219 if test "x$ac_old_val" != "x$ac_new_val"; then
1220 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1221 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1222 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1223 echo "$as_me: former value: $ac_old_val" >&2;}
1224 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1225 echo "$as_me: current value: $ac_new_val" >&2;}
1226 ac_cache_corrupted=:
1229 # Pass precious variables to config.status.
1230 if test "$ac_new_set" = set; then
1232 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1233 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1234 *) ac_arg=$ac_var=$ac_new_val ;;
1236 case " $ac_configure_args " in
1237 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1238 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1242 if $ac_cache_corrupted; then
1243 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1244 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1245 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1246 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1247 { (exit 1); exit 1; }; }
1251 ac_cpp='$CPP $CPPFLAGS'
1252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1253 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1275 for ac_dir in .. $srcdir/..; do
1276 if test -f $ac_dir/install-sh; then
1278 ac_install_sh="$ac_aux_dir/install-sh -c"
1280 elif test -f $ac_dir/install.sh; then
1282 ac_install_sh="$ac_aux_dir/install.sh -c"
1284 elif test -f $ac_dir/shtool; then
1286 ac_install_sh="$ac_aux_dir/shtool install -c"
1290 if test -z "$ac_aux_dir"; then
1291 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1292 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1293 { (exit 1); exit 1; }; }
1295 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1296 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1297 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1299 ac_config_headers="$ac_config_headers config.h"
1302 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1303 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1304 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y
,.
/+-,__p_
,'`
1305 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1306 echo $ECHO_N "(cached) $ECHO_C" >&6
1308 cat >conftest.make <<\_ACEOF
1310 @echo 'ac_maketemp
="$(MAKE)"'
1312 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1313 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1314 if test -n "$ac_maketemp"; then
1315 eval ac_cv_prog_make_${ac_make}_set=yes
1317 eval ac_cv_prog_make_${ac_make}_set=no
1321 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1322 echo "$as_me:$LINENO: result: yes" >&5
1323 echo "${ECHO_T}yes" >&6
1326 echo "$as_me:$LINENO: result: no" >&5
1327 echo "${ECHO_T}no" >&6
1328 SET_MAKE="MAKE=${MAKE-make}"
1331 # Find a good install program. We prefer a C program (faster),
1332 # so one script is as good as another. But avoid the broken or
1333 # incompatible versions:
1334 # SysV /etc/install, /usr/sbin/install
1335 # SunOS /usr/etc/install
1336 # IRIX /sbin/install
1338 # AmigaOS /C/install, which installs bootblocks on floppy discs
1339 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
1340 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1341 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1342 # ./install, which can be erroneously created by make from ./install.sh.
1343 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1344 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1345 if test -z "$INSTALL"; then
1346 if test "${ac_cv_path_install+set}" = set; then
1347 echo $ECHO_N "(cached) $ECHO_C" >&6
1349 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1353 test -z "$as_dir" && as_dir
=.
1354 # Account for people who put trailing slashes in PATH elements.
1356 .
/ | .
// |
/cC
/* | \
1357 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
1360 # OSF1 and SCO ODT 3.0 have their own names for install.
1361 # Don't use installbsd from OSF since it installs stuff as root
1363 for ac_prog
in ginstall scoinst
install; do
1364 for ac_exec_ext
in '' $ac_executable_extensions; do
1365 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1366 if test $ac_prog = install &&
1367 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1368 # AIX install. It has an incompatible calling convention.
1370 elif test $ac_prog = install &&
1371 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1372 # program-specific install script used by HP pwplus--don't use.
1375 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
1387 if test "${ac_cv_path_install+set}" = set; then
1388 INSTALL
=$ac_cv_path_install
1390 # As a last resort, use the slow shell script. We don't cache a
1391 # path for INSTALL within a source directory, because that will
1392 # break other packages using the cache if that directory is
1393 # removed, or if the path is relative.
1394 INSTALL
=$ac_install_sh
1397 echo "$as_me:$LINENO: result: $INSTALL" >&5
1398 echo "${ECHO_T}$INSTALL" >&6
1400 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1401 # It thinks the first close brace ends the variable substitution.
1402 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1404 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1406 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1410 if test -n "$ac_aux_dir"; then
1411 case "$ac_aux_dir" in
1412 /*) MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs" ;;
1413 *) MKINSTALLDIRS
="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
1416 if test -z "$MKINSTALLDIRS"; then
1417 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
1422 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
1423 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
1424 # Check whether --enable-nls or --disable-nls was given.
1425 if test "${enable_nls+set}" = set; then
1426 enableval
="$enable_nls"
1431 echo "$as_me:$LINENO: result: $USE_NLS" >&5
1432 echo "${ECHO_T}$USE_NLS" >&6
1439 # Prepare PATH_SEPARATOR.
1440 # The user is always right.
1441 if test "${PATH_SEPARATOR+set}" != set; then
1442 echo "#! /bin/sh" >conf$$.sh
1443 echo "exit 0" >>conf$$.sh
1445 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
1453 # Find out how to test for executable files. Don't use a zero-byte file,
1454 # as systems may use methods other than mode bits to determine executability.
1455 cat >conf$$.
file <<_ASEOF
1459 chmod +x conf$$.
file
1460 if test -x conf$$.
file >/dev
/null
2>&1; then
1461 ac_executable_p
="test -x"
1463 ac_executable_p
="test -f"
1467 # Extract the first word of "msgfmt", so it can be a program name with args.
1468 set dummy msgfmt
; ac_word
=$2
1469 echo "$as_me:$LINENO: checking for $ac_word" >&5
1470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1471 if test "${ac_cv_path_MSGFMT+set}" = set; then
1472 echo $ECHO_N "(cached) $ECHO_C" >&6
1476 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
1479 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
1480 for ac_dir
in $PATH; do
1482 test -z "$ac_dir" && ac_dir
=.
1483 for ac_exec_ext
in '' $ac_executable_extensions; do
1484 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
1485 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1 &&
1486 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
1487 ac_cv_path_MSGFMT
="$ac_dir/$ac_word$ac_exec_ext"
1494 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
1498 MSGFMT
="$ac_cv_path_MSGFMT"
1499 if test "$MSGFMT" != ":"; then
1500 echo "$as_me:$LINENO: result: $MSGFMT" >&5
1501 echo "${ECHO_T}$MSGFMT" >&6
1503 echo "$as_me:$LINENO: result: no" >&5
1504 echo "${ECHO_T}no" >&6
1507 # Extract the first word of "gmsgfmt", so it can be a program name with args.
1508 set dummy gmsgfmt
; ac_word
=$2
1509 echo "$as_me:$LINENO: checking for $ac_word" >&5
1510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1511 if test "${ac_cv_path_GMSGFMT+set}" = set; then
1512 echo $ECHO_N "(cached) $ECHO_C" >&6
1516 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
1519 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1523 test -z "$as_dir" && as_dir
=.
1524 for ac_exec_ext
in '' $ac_executable_extensions; do
1525 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1526 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
1527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1533 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
1537 GMSGFMT
=$ac_cv_path_GMSGFMT
1539 if test -n "$GMSGFMT"; then
1540 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
1541 echo "${ECHO_T}$GMSGFMT" >&6
1543 echo "$as_me:$LINENO: result: no" >&5
1544 echo "${ECHO_T}no" >&6
1549 # Prepare PATH_SEPARATOR.
1550 # The user is always right.
1551 if test "${PATH_SEPARATOR+set}" != set; then
1552 echo "#! /bin/sh" >conf$$.sh
1553 echo "exit 0" >>conf$$.sh
1555 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
1563 # Find out how to test for executable files. Don't use a zero-byte file,
1564 # as systems may use methods other than mode bits to determine executability.
1565 cat >conf$$.
file <<_ASEOF
1569 chmod +x conf$$.
file
1570 if test -x conf$$.
file >/dev
/null
2>&1; then
1571 ac_executable_p
="test -x"
1573 ac_executable_p
="test -f"
1577 # Extract the first word of "xgettext", so it can be a program name with args.
1578 set dummy xgettext
; ac_word
=$2
1579 echo "$as_me:$LINENO: checking for $ac_word" >&5
1580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1581 if test "${ac_cv_path_XGETTEXT+set}" = set; then
1582 echo $ECHO_N "(cached) $ECHO_C" >&6
1586 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
1589 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
1590 for ac_dir
in $PATH; do
1592 test -z "$ac_dir" && ac_dir
=.
1593 for ac_exec_ext
in '' $ac_executable_extensions; do
1594 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
1595 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>/dev
/null
2>&1 &&
1596 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
1597 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word$ac_exec_ext"
1604 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
1608 XGETTEXT
="$ac_cv_path_XGETTEXT"
1609 if test "$XGETTEXT" != ":"; then
1610 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
1611 echo "${ECHO_T}$XGETTEXT" >&6
1613 echo "$as_me:$LINENO: result: no" >&5
1614 echo "${ECHO_T}no" >&6
1620 # Prepare PATH_SEPARATOR.
1621 # The user is always right.
1622 if test "${PATH_SEPARATOR+set}" != set; then
1623 echo "#! /bin/sh" >conf$$.sh
1624 echo "exit 0" >>conf$$.sh
1626 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
1634 # Find out how to test for executable files. Don't use a zero-byte file,
1635 # as systems may use methods other than mode bits to determine executability.
1636 cat >conf$$.
file <<_ASEOF
1640 chmod +x conf$$.
file
1641 if test -x conf$$.
file >/dev
/null
2>&1; then
1642 ac_executable_p
="test -x"
1644 ac_executable_p
="test -f"
1648 # Extract the first word of "msgmerge", so it can be a program name with args.
1649 set dummy msgmerge
; ac_word
=$2
1650 echo "$as_me:$LINENO: checking for $ac_word" >&5
1651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1652 if test "${ac_cv_path_MSGMERGE+set}" = set; then
1653 echo $ECHO_N "(cached) $ECHO_C" >&6
1657 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
1660 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
1661 for ac_dir
in $PATH; do
1663 test -z "$ac_dir" && ac_dir
=.
1664 for ac_exec_ext
in '' $ac_executable_extensions; do
1665 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
1666 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>/dev
/null
2>&1; then
1667 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word$ac_exec_ext"
1674 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
1678 MSGMERGE
="$ac_cv_path_MSGMERGE"
1679 if test "$MSGMERGE" != ":"; then
1680 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
1681 echo "${ECHO_T}$MSGMERGE" >&6
1683 echo "$as_me:$LINENO: result: no" >&5
1684 echo "${ECHO_T}no" >&6
1688 if test "$GMSGFMT" != ":"; then
1689 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1 &&
1690 (if $GMSGFMT --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
1693 GMSGFMT
=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
1694 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
1695 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
1700 if test "$XGETTEXT" != ":"; then
1701 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>/dev
/null
2>&1 &&
1702 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
1705 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
1706 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
1712 ac_config_commands
="$ac_config_commands default-1"
1716 ac_cpp
='$CPP $CPPFLAGS'
1717 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1718 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1719 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1720 if test -n "$ac_tool_prefix"; then
1721 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1722 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1723 echo "$as_me:$LINENO: checking for $ac_word" >&5
1724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1725 if test "${ac_cv_prog_CC+set}" = set; then
1726 echo $ECHO_N "(cached) $ECHO_C" >&6
1728 if test -n "$CC"; then
1729 ac_cv_prog_CC
="$CC" # Let the user override the test.
1731 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1735 test -z "$as_dir" && as_dir
=.
1736 for ac_exec_ext
in '' $ac_executable_extensions; do
1737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1738 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1748 if test -n "$CC"; then
1749 echo "$as_me:$LINENO: result: $CC" >&5
1750 echo "${ECHO_T}$CC" >&6
1752 echo "$as_me:$LINENO: result: no" >&5
1753 echo "${ECHO_T}no" >&6
1757 if test -z "$ac_cv_prog_CC"; then
1759 # Extract the first word of "gcc", so it can be a program name with args.
1760 set dummy gcc
; ac_word
=$2
1761 echo "$as_me:$LINENO: checking for $ac_word" >&5
1762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1763 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1764 echo $ECHO_N "(cached) $ECHO_C" >&6
1766 if test -n "$ac_ct_CC"; then
1767 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1769 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1773 test -z "$as_dir" && as_dir
=.
1774 for ac_exec_ext
in '' $ac_executable_extensions; do
1775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1776 ac_cv_prog_ac_ct_CC
="gcc"
1777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1785 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1786 if test -n "$ac_ct_CC"; then
1787 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1788 echo "${ECHO_T}$ac_ct_CC" >&6
1790 echo "$as_me:$LINENO: result: no" >&5
1791 echo "${ECHO_T}no" >&6
1799 if test -z "$CC"; then
1800 if test -n "$ac_tool_prefix"; then
1801 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1802 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1803 echo "$as_me:$LINENO: checking for $ac_word" >&5
1804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1805 if test "${ac_cv_prog_CC+set}" = set; then
1806 echo $ECHO_N "(cached) $ECHO_C" >&6
1808 if test -n "$CC"; then
1809 ac_cv_prog_CC
="$CC" # Let the user override the test.
1811 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1815 test -z "$as_dir" && as_dir
=.
1816 for ac_exec_ext
in '' $ac_executable_extensions; do
1817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1818 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1828 if test -n "$CC"; then
1829 echo "$as_me:$LINENO: result: $CC" >&5
1830 echo "${ECHO_T}$CC" >&6
1832 echo "$as_me:$LINENO: result: no" >&5
1833 echo "${ECHO_T}no" >&6
1837 if test -z "$ac_cv_prog_CC"; then
1839 # Extract the first word of "cc", so it can be a program name with args.
1840 set dummy cc
; ac_word
=$2
1841 echo "$as_me:$LINENO: checking for $ac_word" >&5
1842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1843 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1844 echo $ECHO_N "(cached) $ECHO_C" >&6
1846 if test -n "$ac_ct_CC"; then
1847 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1849 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1853 test -z "$as_dir" && as_dir
=.
1854 for ac_exec_ext
in '' $ac_executable_extensions; do
1855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1856 ac_cv_prog_ac_ct_CC
="cc"
1857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1865 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1866 if test -n "$ac_ct_CC"; then
1867 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1868 echo "${ECHO_T}$ac_ct_CC" >&6
1870 echo "$as_me:$LINENO: result: no" >&5
1871 echo "${ECHO_T}no" >&6
1880 if test -z "$CC"; then
1881 # Extract the first word of "cc", so it can be a program name with args.
1882 set dummy cc
; ac_word
=$2
1883 echo "$as_me:$LINENO: checking for $ac_word" >&5
1884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1885 if test "${ac_cv_prog_CC+set}" = set; then
1886 echo $ECHO_N "(cached) $ECHO_C" >&6
1888 if test -n "$CC"; then
1889 ac_cv_prog_CC
="$CC" # Let the user override the test.
1892 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1896 test -z "$as_dir" && as_dir
=.
1897 for ac_exec_ext
in '' $ac_executable_extensions; do
1898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1899 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1900 ac_prog_rejected
=yes
1904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1910 if test $ac_prog_rejected = yes; then
1911 # We found a bogon in the path, so make sure we never use it.
1912 set dummy
$ac_cv_prog_CC
1914 if test $# != 0; then
1915 # We chose a different compiler from the bogus one.
1916 # However, it has the same basename, so the bogon will be chosen
1917 # first if we set CC to just the basename; use the full file name.
1919 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1925 if test -n "$CC"; then
1926 echo "$as_me:$LINENO: result: $CC" >&5
1927 echo "${ECHO_T}$CC" >&6
1929 echo "$as_me:$LINENO: result: no" >&5
1930 echo "${ECHO_T}no" >&6
1934 if test -z "$CC"; then
1935 if test -n "$ac_tool_prefix"; then
1938 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1939 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1940 echo "$as_me:$LINENO: checking for $ac_word" >&5
1941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1942 if test "${ac_cv_prog_CC+set}" = set; then
1943 echo $ECHO_N "(cached) $ECHO_C" >&6
1945 if test -n "$CC"; then
1946 ac_cv_prog_CC
="$CC" # Let the user override the test.
1948 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1952 test -z "$as_dir" && as_dir
=.
1953 for ac_exec_ext
in '' $ac_executable_extensions; do
1954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1955 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1965 if test -n "$CC"; then
1966 echo "$as_me:$LINENO: result: $CC" >&5
1967 echo "${ECHO_T}$CC" >&6
1969 echo "$as_me:$LINENO: result: no" >&5
1970 echo "${ECHO_T}no" >&6
1973 test -n "$CC" && break
1976 if test -z "$CC"; then
1980 # Extract the first word of "$ac_prog", so it can be a program name with args.
1981 set dummy
$ac_prog; ac_word
=$2
1982 echo "$as_me:$LINENO: checking for $ac_word" >&5
1983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1984 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1985 echo $ECHO_N "(cached) $ECHO_C" >&6
1987 if test -n "$ac_ct_CC"; then
1988 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1990 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1994 test -z "$as_dir" && as_dir
=.
1995 for ac_exec_ext
in '' $ac_executable_extensions; do
1996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1997 ac_cv_prog_ac_ct_CC
="$ac_prog"
1998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2006 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2007 if test -n "$ac_ct_CC"; then
2008 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2009 echo "${ECHO_T}$ac_ct_CC" >&6
2011 echo "$as_me:$LINENO: result: no" >&5
2012 echo "${ECHO_T}no" >&6
2015 test -n "$ac_ct_CC" && break
2024 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2025 See \`config.log' for more details." >&5
2026 echo "$as_me: error: no acceptable C compiler found in \$PATH
2027 See \`config.log' for more details." >&2;}
2028 { (exit 1); exit 1; }; }
2030 # Provide some information about the compiler.
2031 echo "$as_me:$LINENO:" \
2032 "checking for C compiler version" >&5
2033 ac_compiler
=`set X $ac_compile; echo $2`
2034 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2035 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038 (exit $ac_status); }
2039 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2040 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043 (exit $ac_status); }
2044 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2045 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048 (exit $ac_status); }
2050 cat >conftest.
$ac_ext <<_ACEOF
2051 #line $LINENO "configure"
2054 cat confdefs.h
>>conftest.
$ac_ext
2055 cat >>conftest.
$ac_ext <<_ACEOF
2056 /* end confdefs.h. */
2066 ac_clean_files_save
=$ac_clean_files
2067 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2068 # Try to create an executable without -o first, disregard a.out.
2069 # It will help us diagnose broken compilers, and finding out an intuition
2071 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2072 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2073 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2074 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2075 (eval $ac_link_default) 2>&5
2077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2078 (exit $ac_status); }; then
2079 # Find the output, starting from the most likely. This scheme is
2080 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2083 # Be careful to initialize this variable, since it used to be cached.
2084 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2086 # b.out is created by i960 compilers.
2087 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2089 test -f "$ac_file" ||
continue
2091 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2094 # This is the source file.
2097 # We found the default executable, but exeext='' is most
2101 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2102 # FIXME: I believe we export ac_cv_exeext for Libtool,
2103 # but it would be cool to find out if it's true. Does anybody
2104 # maintain Libtool? --akim.
2112 echo "$as_me: failed program was:" >&5
2113 sed 's/^/| /' conftest.
$ac_ext >&5
2115 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2116 See \`config.log' for more details." >&5
2117 echo "$as_me: error: C compiler cannot create executables
2118 See \`config.log' for more details." >&2;}
2119 { (exit 77); exit 77; }; }
2122 ac_exeext
=$ac_cv_exeext
2123 echo "$as_me:$LINENO: result: $ac_file" >&5
2124 echo "${ECHO_T}$ac_file" >&6
2126 # Check the compiler produces executables we can run. If not, either
2127 # the compiler is broken, or we cross compile.
2128 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2129 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2130 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2131 # If not cross compiling, check that we can run a simple program.
2132 if test "$cross_compiling" != yes; then
2133 if { ac_try
='./$ac_file'
2134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138 (exit $ac_status); }; }; then
2141 if test "$cross_compiling" = maybe
; then
2144 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2145 If you meant to cross compile, use \`--host'.
2146 See \`config.log' for more details." >&5
2147 echo "$as_me: error: cannot run C compiled programs.
2148 If you meant to cross compile, use \`--host'.
2149 See \`config.log' for more details." >&2;}
2150 { (exit 1); exit 1; }; }
2154 echo "$as_me:$LINENO: result: yes" >&5
2155 echo "${ECHO_T}yes" >&6
2157 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2158 ac_clean_files
=$ac_clean_files_save
2159 # Check the compiler produces executables we can run. If not, either
2160 # the compiler is broken, or we cross compile.
2161 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2162 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2163 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2164 echo "${ECHO_T}$cross_compiling" >&6
2166 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2167 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2169 (eval $ac_link) 2>&5
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); }; then
2173 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2174 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2175 # work properly (i.e., refer to `conftest.exe'), while it won't with
2177 for ac_file
in conftest.exe conftest conftest.
*; do
2178 test -f "$ac_file" ||
continue
2180 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2181 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2188 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2189 See \`config.log' for more details." >&5
2190 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2191 See \`config.log' for more details." >&2;}
2192 { (exit 1); exit 1; }; }
2195 rm -f conftest
$ac_cv_exeext
2196 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2197 echo "${ECHO_T}$ac_cv_exeext" >&6
2199 rm -f conftest.
$ac_ext
2200 EXEEXT
=$ac_cv_exeext
2202 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2203 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2204 if test "${ac_cv_objext+set}" = set; then
2205 echo $ECHO_N "(cached) $ECHO_C" >&6
2207 cat >conftest.
$ac_ext <<_ACEOF
2208 #line $LINENO "configure"
2211 cat confdefs.h
>>conftest.
$ac_ext
2212 cat >>conftest.
$ac_ext <<_ACEOF
2213 /* end confdefs.h. */
2223 rm -f conftest.o conftest.obj
2224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2225 (eval $ac_compile) 2>&5
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); }; then
2229 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2231 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2232 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2237 echo "$as_me: failed program was:" >&5
2238 sed 's/^/| /' conftest.
$ac_ext >&5
2240 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2241 See \`config.log' for more details." >&5
2242 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2243 See \`config.log' for more details." >&2;}
2244 { (exit 1); exit 1; }; }
2247 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2249 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2250 echo "${ECHO_T}$ac_cv_objext" >&6
2251 OBJEXT
=$ac_cv_objext
2253 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2254 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2255 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2256 echo $ECHO_N "(cached) $ECHO_C" >&6
2258 cat >conftest.
$ac_ext <<_ACEOF
2259 #line $LINENO "configure"
2262 cat confdefs.h
>>conftest.
$ac_ext
2263 cat >>conftest.
$ac_ext <<_ACEOF
2264 /* end confdefs.h. */
2277 rm -f conftest.
$ac_objext
2278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2279 (eval $ac_compile) 2>&5
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); } &&
2283 { ac_try
='test -s conftest.$ac_objext'
2284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288 (exit $ac_status); }; }; then
2291 echo "$as_me: failed program was:" >&5
2292 sed 's/^/| /' conftest.
$ac_ext >&5
2296 rm -f conftest.
$ac_objext conftest.
$ac_ext
2297 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2300 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2301 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2302 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2303 ac_test_CFLAGS
=${CFLAGS+set}
2304 ac_save_CFLAGS
=$CFLAGS
2306 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2307 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2308 if test "${ac_cv_prog_cc_g+set}" = set; then
2309 echo $ECHO_N "(cached) $ECHO_C" >&6
2311 cat >conftest.
$ac_ext <<_ACEOF
2312 #line $LINENO "configure"
2315 cat confdefs.h
>>conftest.
$ac_ext
2316 cat >>conftest.
$ac_ext <<_ACEOF
2317 /* end confdefs.h. */
2327 rm -f conftest.
$ac_objext
2328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2329 (eval $ac_compile) 2>&5
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); } &&
2333 { ac_try
='test -s conftest.$ac_objext'
2334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); }; }; then
2341 echo "$as_me: failed program was:" >&5
2342 sed 's/^/| /' conftest.
$ac_ext >&5
2346 rm -f conftest.
$ac_objext conftest.
$ac_ext
2348 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2349 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2350 if test "$ac_test_CFLAGS" = set; then
2351 CFLAGS
=$ac_save_CFLAGS
2352 elif test $ac_cv_prog_cc_g = yes; then
2353 if test "$GCC" = yes; then
2359 if test "$GCC" = yes; then
2365 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2366 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2367 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
2370 ac_cv_prog_cc_stdc
=no
2372 cat >conftest.
$ac_ext <<_ACEOF
2373 #line $LINENO "configure"
2376 cat confdefs.h
>>conftest.
$ac_ext
2377 cat >>conftest.
$ac_ext <<_ACEOF
2378 /* end confdefs.h. */
2381 #include <sys/types.h>
2382 #include <sys/stat.h>
2383 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2384 struct buf { int x; };
2385 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2386 static char *e (p, i)
2392 static char *f (char * (*g) (char **, int), char **p, ...)
2397 s = g (p, va_arg (v,int));
2401 int test (int i, double x);
2402 struct s1 {int (*f) (int a);};
2403 struct s2 {int (*f) (double a);};
2404 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2410 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2415 # Don't try gcc -ansi; that turns off useful extensions and
2416 # breaks some systems' header files.
2417 # AIX -qlanglvl=ansi
2418 # Ultrix and OSF/1 -std1
2419 # HP-UX 10.20 and later -Ae
2420 # HP-UX older versions -Aa -D_HPUX_SOURCE
2421 # SVR4 -Xc -D__EXTENSIONS__
2422 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2424 CC
="$ac_save_CC $ac_arg"
2425 rm -f conftest.
$ac_objext
2426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2427 (eval $ac_compile) 2>&5
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); } &&
2431 { ac_try
='test -s conftest.$ac_objext'
2432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); }; }; then
2437 ac_cv_prog_cc_stdc
=$ac_arg
2440 echo "$as_me: failed program was:" >&5
2441 sed 's/^/| /' conftest.
$ac_ext >&5
2444 rm -f conftest.
$ac_objext
2446 rm -f conftest.
$ac_ext conftest.
$ac_objext
2451 case "x$ac_cv_prog_cc_stdc" in
2453 echo "$as_me:$LINENO: result: none needed" >&5
2454 echo "${ECHO_T}none needed" >&6 ;;
2456 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2457 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2458 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2461 # Some people use a C++ compiler to compile C. Since we use `exit',
2462 # in C++ we need to declare it. In case someone uses the same compiler
2463 # for both compiling C and C++ we need to have the C++ compiler decide
2464 # the declaration of exit, since it's the most demanding environment.
2465 cat >conftest.
$ac_ext <<_ACEOF
2470 rm -f conftest.
$ac_objext
2471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2472 (eval $ac_compile) 2>&5
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); } &&
2476 { ac_try
='test -s conftest.$ac_objext'
2477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); }; }; then
2482 for ac_declaration
in \
2484 'extern "C" void std::exit (int) throw (); using std::exit;' \
2485 'extern "C" void std::exit (int); using std::exit;' \
2486 'extern "C" void exit (int) throw ();' \
2487 'extern "C" void exit (int);' \
2490 cat >conftest.
$ac_ext <<_ACEOF
2491 #line $LINENO "configure"
2494 cat confdefs.h
>>conftest.
$ac_ext
2495 cat >>conftest.
$ac_ext <<_ACEOF
2496 /* end confdefs.h. */
2507 rm -f conftest.
$ac_objext
2508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2509 (eval $ac_compile) 2>&5
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); } &&
2513 { ac_try
='test -s conftest.$ac_objext'
2514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; }; then
2521 echo "$as_me: failed program was:" >&5
2522 sed 's/^/| /' conftest.
$ac_ext >&5
2526 rm -f conftest.
$ac_objext conftest.
$ac_ext
2527 cat >conftest.
$ac_ext <<_ACEOF
2528 #line $LINENO "configure"
2531 cat confdefs.h
>>conftest.
$ac_ext
2532 cat >>conftest.
$ac_ext <<_ACEOF
2533 /* end confdefs.h. */
2543 rm -f conftest.
$ac_objext
2544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2545 (eval $ac_compile) 2>&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); } &&
2549 { ac_try
='test -s conftest.$ac_objext'
2550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); }; }; then
2557 echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.
$ac_ext >&5
2561 rm -f conftest.
$ac_objext conftest.
$ac_ext
2564 if test -n "$ac_declaration"; then
2565 echo '#ifdef __cplusplus' >>confdefs.h
2566 echo $ac_declaration >>confdefs.h
2567 echo '#endif' >>confdefs.h
2571 echo "$as_me: failed program was:" >&5
2572 sed 's/^/| /' conftest.
$ac_ext >&5
2575 rm -f conftest.
$ac_objext conftest.
$ac_ext
2577 ac_cpp
='$CPP $CPPFLAGS'
2578 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2579 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2580 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2582 # Make sure we can run config.sub.
2583 $ac_config_sub sun4
>/dev
/null
2>&1 ||
2584 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2585 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2586 { (exit 1); exit 1; }; }
2588 echo "$as_me:$LINENO: checking build system type" >&5
2589 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2590 if test "${ac_cv_build+set}" = set; then
2591 echo $ECHO_N "(cached) $ECHO_C" >&6
2593 ac_cv_build_alias
=$build_alias
2594 test -z "$ac_cv_build_alias" &&
2595 ac_cv_build_alias
=`$ac_config_guess`
2596 test -z "$ac_cv_build_alias" &&
2597 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2598 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2599 { (exit 1); exit 1; }; }
2600 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
2601 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2602 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2603 { (exit 1); exit 1; }; }
2606 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2607 echo "${ECHO_T}$ac_cv_build" >&6
2609 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2610 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2611 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2614 echo "$as_me:$LINENO: checking host system type" >&5
2615 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2616 if test "${ac_cv_host+set}" = set; then
2617 echo $ECHO_N "(cached) $ECHO_C" >&6
2619 ac_cv_host_alias
=$host_alias
2620 test -z "$ac_cv_host_alias" &&
2621 ac_cv_host_alias
=$ac_cv_build_alias
2622 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
2623 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2624 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2625 { (exit 1); exit 1; }; }
2628 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2629 echo "${ECHO_T}$ac_cv_host" >&6
2631 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2632 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2633 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2636 if test -n "$ac_tool_prefix"; then
2637 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2638 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2639 echo "$as_me:$LINENO: checking for $ac_word" >&5
2640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2641 if test "${ac_cv_prog_RANLIB+set}" = set; then
2642 echo $ECHO_N "(cached) $ECHO_C" >&6
2644 if test -n "$RANLIB"; then
2645 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2647 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2651 test -z "$as_dir" && as_dir
=.
2652 for ac_exec_ext
in '' $ac_executable_extensions; do
2653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2654 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2663 RANLIB
=$ac_cv_prog_RANLIB
2664 if test -n "$RANLIB"; then
2665 echo "$as_me:$LINENO: result: $RANLIB" >&5
2666 echo "${ECHO_T}$RANLIB" >&6
2668 echo "$as_me:$LINENO: result: no" >&5
2669 echo "${ECHO_T}no" >&6
2673 if test -z "$ac_cv_prog_RANLIB"; then
2674 ac_ct_RANLIB
=$RANLIB
2675 # Extract the first word of "ranlib", so it can be a program name with args.
2676 set dummy ranlib
; ac_word
=$2
2677 echo "$as_me:$LINENO: checking for $ac_word" >&5
2678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2679 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2680 echo $ECHO_N "(cached) $ECHO_C" >&6
2682 if test -n "$ac_ct_RANLIB"; then
2683 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
2685 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2689 test -z "$as_dir" && as_dir
=.
2690 for ac_exec_ext
in '' $ac_executable_extensions; do
2691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2692 ac_cv_prog_ac_ct_RANLIB
="ranlib"
2693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2699 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
2702 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
2703 if test -n "$ac_ct_RANLIB"; then
2704 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2705 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2707 echo "$as_me:$LINENO: result: no" >&5
2708 echo "${ECHO_T}no" >&6
2711 RANLIB
=$ac_ct_RANLIB
2713 RANLIB
="$ac_cv_prog_RANLIB"
2718 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2719 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2720 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2721 echo $ECHO_N "(cached) $ECHO_C" >&6
2723 ac_check_lib_save_LIBS
=$LIBS
2724 LIBS
="-lcposix $LIBS"
2725 cat >conftest.
$ac_ext <<_ACEOF
2726 #line $LINENO "configure"
2729 cat confdefs.h
>>conftest.
$ac_ext
2730 cat >>conftest.
$ac_ext <<_ACEOF
2731 /* end confdefs.h. */
2733 /* Override any gcc2 internal prototype to avoid an error. */
2737 /* We use char because int might match the return type of a gcc2
2738 builtin and then its argument prototype would still apply. */
2748 rm -f conftest.
$ac_objext conftest
$ac_exeext
2749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2750 (eval $ac_link) 2>&5
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); } &&
2754 { ac_try
='test -s conftest$ac_exeext'
2755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); }; }; then
2760 ac_cv_lib_cposix_strerror
=yes
2762 echo "$as_me: failed program was:" >&5
2763 sed 's/^/| /' conftest.
$ac_ext >&5
2765 ac_cv_lib_cposix_strerror
=no
2767 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
2768 LIBS
=$ac_check_lib_save_LIBS
2770 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2771 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2772 if test $ac_cv_lib_cposix_strerror = yes; then
2773 LIBS
="$LIBS -lcposix"
2779 ac_cpp
='$CPP $CPPFLAGS'
2780 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2781 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2782 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2783 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2784 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2785 # On Suns, sometimes $CPP names a directory.
2786 if test -n "$CPP" && test -d "$CPP"; then
2789 if test -z "$CPP"; then
2790 if test "${ac_cv_prog_CPP+set}" = set; then
2791 echo $ECHO_N "(cached) $ECHO_C" >&6
2793 # Double quotes because CPP needs to be expanded
2794 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2797 for ac_c_preproc_warn_flag
in '' yes
2799 # Use a header file that comes with gcc, so configuring glibc
2800 # with a fresh cross-compiler works.
2801 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2802 # <limits.h> exists even on freestanding compilers.
2803 # On the NeXT, cc -E runs the code through the compiler's parser,
2804 # not just through cpp. "Syntax error" is here to catch this case.
2805 cat >conftest.
$ac_ext <<_ACEOF
2806 #line $LINENO "configure"
2809 cat confdefs.h
>>conftest.
$ac_ext
2810 cat >>conftest.
$ac_ext <<_ACEOF
2811 /* end confdefs.h. */
2813 # include <limits.h>
2815 # include <assert.h>
2819 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2820 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2822 grep -v '^ *+' conftest.er1
>conftest.err
2824 cat conftest.err
>&5
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); } >/dev
/null
; then
2827 if test -s conftest.err
; then
2828 ac_cpp_err
=$ac_c_preproc_warn_flag
2835 if test -z "$ac_cpp_err"; then
2838 echo "$as_me: failed program was:" >&5
2839 sed 's/^/| /' conftest.
$ac_ext >&5
2841 # Broken: fails on valid input.
2844 rm -f conftest.err conftest.
$ac_ext
2846 # OK, works on sane cases. Now check whether non-existent headers
2847 # can be detected and how.
2848 cat >conftest.
$ac_ext <<_ACEOF
2849 #line $LINENO "configure"
2852 cat confdefs.h
>>conftest.
$ac_ext
2853 cat >>conftest.
$ac_ext <<_ACEOF
2854 /* end confdefs.h. */
2855 #include <ac_nonexistent.h>
2857 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2858 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2860 grep -v '^ *+' conftest.er1
>conftest.err
2862 cat conftest.err
>&5
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); } >/dev
/null
; then
2865 if test -s conftest.err
; then
2866 ac_cpp_err
=$ac_c_preproc_warn_flag
2873 if test -z "$ac_cpp_err"; then
2874 # Broken: success on invalid input.
2877 echo "$as_me: failed program was:" >&5
2878 sed 's/^/| /' conftest.
$ac_ext >&5
2880 # Passes both tests.
2884 rm -f conftest.err conftest.
$ac_ext
2887 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2888 rm -f conftest.err conftest.
$ac_ext
2889 if $ac_preproc_ok; then
2901 echo "$as_me:$LINENO: result: $CPP" >&5
2902 echo "${ECHO_T}$CPP" >&6
2904 for ac_c_preproc_warn_flag
in '' yes
2906 # Use a header file that comes with gcc, so configuring glibc
2907 # with a fresh cross-compiler works.
2908 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2909 # <limits.h> exists even on freestanding compilers.
2910 # On the NeXT, cc -E runs the code through the compiler's parser,
2911 # not just through cpp. "Syntax error" is here to catch this case.
2912 cat >conftest.
$ac_ext <<_ACEOF
2913 #line $LINENO "configure"
2916 cat confdefs.h
>>conftest.
$ac_ext
2917 cat >>conftest.
$ac_ext <<_ACEOF
2918 /* end confdefs.h. */
2920 # include <limits.h>
2922 # include <assert.h>
2926 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2927 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2929 grep -v '^ *+' conftest.er1
>conftest.err
2931 cat conftest.err
>&5
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); } >/dev
/null
; then
2934 if test -s conftest.err
; then
2935 ac_cpp_err
=$ac_c_preproc_warn_flag
2942 if test -z "$ac_cpp_err"; then
2945 echo "$as_me: failed program was:" >&5
2946 sed 's/^/| /' conftest.
$ac_ext >&5
2948 # Broken: fails on valid input.
2951 rm -f conftest.err conftest.
$ac_ext
2953 # OK, works on sane cases. Now check whether non-existent headers
2954 # can be detected and how.
2955 cat >conftest.
$ac_ext <<_ACEOF
2956 #line $LINENO "configure"
2959 cat confdefs.h
>>conftest.
$ac_ext
2960 cat >>conftest.
$ac_ext <<_ACEOF
2961 /* end confdefs.h. */
2962 #include <ac_nonexistent.h>
2964 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2965 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2967 grep -v '^ *+' conftest.er1
>conftest.err
2969 cat conftest.err
>&5
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); } >/dev
/null
; then
2972 if test -s conftest.err
; then
2973 ac_cpp_err
=$ac_c_preproc_warn_flag
2980 if test -z "$ac_cpp_err"; then
2981 # Broken: success on invalid input.
2984 echo "$as_me: failed program was:" >&5
2985 sed 's/^/| /' conftest.
$ac_ext >&5
2987 # Passes both tests.
2991 rm -f conftest.err conftest.
$ac_ext
2994 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2995 rm -f conftest.err conftest.
$ac_ext
2996 if $ac_preproc_ok; then
2999 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3000 See \`config.log' for more details." >&5
3001 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3002 See \`config.log' for more details." >&2;}
3003 { (exit 1); exit 1; }; }
3007 ac_cpp
='$CPP $CPPFLAGS'
3008 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3009 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3010 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3013 echo "$as_me:$LINENO: checking for egrep" >&5
3014 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3015 if test "${ac_cv_prog_egrep+set}" = set; then
3016 echo $ECHO_N "(cached) $ECHO_C" >&6
3018 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3019 then ac_cv_prog_egrep
='grep -E'
3020 else ac_cv_prog_egrep
='egrep'
3023 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3024 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3025 EGREP
=$ac_cv_prog_egrep
3028 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3029 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3030 if test "${ac_cv_header_stdc+set}" = set; then
3031 echo $ECHO_N "(cached) $ECHO_C" >&6
3033 cat >conftest.
$ac_ext <<_ACEOF
3034 #line $LINENO "configure"
3037 cat confdefs.h
>>conftest.
$ac_ext
3038 cat >>conftest.
$ac_ext <<_ACEOF
3039 /* end confdefs.h. */
3053 rm -f conftest.
$ac_objext
3054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3055 (eval $ac_compile) 2>&5
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); } &&
3059 { ac_try
='test -s conftest.$ac_objext'
3060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); }; }; then
3065 ac_cv_header_stdc
=yes
3067 echo "$as_me: failed program was:" >&5
3068 sed 's/^/| /' conftest.
$ac_ext >&5
3070 ac_cv_header_stdc
=no
3072 rm -f conftest.
$ac_objext conftest.
$ac_ext
3074 if test $ac_cv_header_stdc = yes; then
3075 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3076 cat >conftest.
$ac_ext <<_ACEOF
3077 #line $LINENO "configure"
3080 cat confdefs.h
>>conftest.
$ac_ext
3081 cat >>conftest.
$ac_ext <<_ACEOF
3082 /* end confdefs.h. */
3086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3087 $EGREP "memchr" >/dev
/null
2>&1; then
3090 ac_cv_header_stdc
=no
3096 if test $ac_cv_header_stdc = yes; then
3097 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3098 cat >conftest.
$ac_ext <<_ACEOF
3099 #line $LINENO "configure"
3102 cat confdefs.h
>>conftest.
$ac_ext
3103 cat >>conftest.
$ac_ext <<_ACEOF
3104 /* end confdefs.h. */
3108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3109 $EGREP "free" >/dev
/null
2>&1; then
3112 ac_cv_header_stdc
=no
3118 if test $ac_cv_header_stdc = yes; then
3119 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3120 if test "$cross_compiling" = yes; then
3123 cat >conftest.
$ac_ext <<_ACEOF
3124 #line $LINENO "configure"
3127 cat confdefs.h
>>conftest.
$ac_ext
3128 cat >>conftest.
$ac_ext <<_ACEOF
3129 /* end confdefs.h. */
3131 #if ((' ' & 0x0FF) == 0x020)
3132 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3133 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3135 # define ISLOWER(c) \
3136 (('a' <= (c) && (c) <= 'i') \
3137 || ('j' <= (c) && (c) <= 'r') \
3138 || ('s' <= (c) && (c) <= 'z'))
3139 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3142 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3147 for (i = 0; i < 256; i++)
3148 if (XOR (islower (i), ISLOWER (i))
3149 || toupper (i) != TOUPPER (i))
3154 rm -f conftest
$ac_exeext
3155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3156 (eval $ac_link) 2>&5
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }; }; then
3167 echo "$as_me: program exited with status $ac_status" >&5
3168 echo "$as_me: failed program was:" >&5
3169 sed 's/^/| /' conftest.
$ac_ext >&5
3172 ac_cv_header_stdc
=no
3174 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3178 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3179 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3180 if test $ac_cv_header_stdc = yes; then
3182 cat >>confdefs.h
<<\_ACEOF
3183 #define STDC_HEADERS 1
3188 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3189 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3190 if test "${ac_cv_c_const+set}" = set; then
3191 echo $ECHO_N "(cached) $ECHO_C" >&6
3193 cat >conftest.
$ac_ext <<_ACEOF
3194 #line $LINENO "configure"
3197 cat confdefs.h
>>conftest.
$ac_ext
3198 cat >>conftest.
$ac_ext <<_ACEOF
3199 /* end confdefs.h. */
3204 /* FIXME: Include the comments suggested by Paul. */
3206 /* Ultrix mips cc rejects this. */
3207 typedef int charset[2];
3209 /* SunOS 4.1.1 cc rejects this. */
3210 char const *const *ccp;
3212 /* NEC SVR4.0.2 mips cc rejects this. */
3213 struct point {int x, y;};
3214 static struct point const zero = {0,0};
3215 /* AIX XL C 1.02.0.0 rejects this.
3216 It does not let you subtract one const X* pointer from another in
3217 an arm of an if-expression whose if-part is not a constant
3219 const char *g = "string";
3220 ccp = &g + (g ? g-g : 0);
3221 /* HPUX 7.0 cc rejects these. */
3224 ccp = (char const *const *) p;
3225 { /* SCO 3.2v4 cc rejects this. */
3227 char const *s = 0 ? (char *) 0 : (char const *) 0;
3231 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3233 const int *foo = &x[0];
3236 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3237 typedef const int *iptr;
3241 { /* AIX XL C 1.02.0.0 rejects this saying
3242 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3243 struct s { int j; const int *ap[3]; };
3244 struct s *b; b->j = 5;
3246 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3255 rm -f conftest.
$ac_objext
3256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3257 (eval $ac_compile) 2>&5
3259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260 (exit $ac_status); } &&
3261 { ac_try
='test -s conftest.$ac_objext'
3262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 (exit $ac_status); }; }; then
3269 echo "$as_me: failed program was:" >&5
3270 sed 's/^/| /' conftest.
$ac_ext >&5
3274 rm -f conftest.
$ac_objext conftest.
$ac_ext
3276 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3277 echo "${ECHO_T}$ac_cv_c_const" >&6
3278 if test $ac_cv_c_const = no
; then
3280 cat >>confdefs.h
<<\_ACEOF
3286 echo "$as_me:$LINENO: checking for inline" >&5
3287 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3288 if test "${ac_cv_c_inline+set}" = set; then
3289 echo $ECHO_N "(cached) $ECHO_C" >&6
3292 for ac_kw
in inline __inline__ __inline
; do
3293 cat >conftest.
$ac_ext <<_ACEOF
3294 #line $LINENO "configure"
3297 cat confdefs.h
>>conftest.
$ac_ext
3298 cat >>conftest.
$ac_ext <<_ACEOF
3299 /* end confdefs.h. */
3302 static $ac_kw foo_t static_foo () {return 0; }
3303 $ac_kw foo_t foo () {return 0; }
3307 rm -f conftest.
$ac_objext
3308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3309 (eval $ac_compile) 2>&5
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); } &&
3313 { ac_try
='test -s conftest.$ac_objext'
3314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); }; }; then
3319 ac_cv_c_inline
=$ac_kw; break
3321 echo "$as_me: failed program was:" >&5
3322 sed 's/^/| /' conftest.
$ac_ext >&5
3325 rm -f conftest.
$ac_objext conftest.
$ac_ext
3329 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3330 echo "${ECHO_T}$ac_cv_c_inline" >&6
3331 case $ac_cv_c_inline in
3334 cat >>confdefs.h
<<\_ACEOF
3338 *) cat >>confdefs.h
<<_ACEOF
3339 #define inline $ac_cv_c_inline
3344 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3354 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3355 inttypes.h stdint.h unistd.h
3357 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3358 echo "$as_me:$LINENO: checking for $ac_header" >&5
3359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
3363 cat >conftest.
$ac_ext <<_ACEOF
3364 #line $LINENO "configure"
3367 cat confdefs.h
>>conftest.
$ac_ext
3368 cat >>conftest.
$ac_ext <<_ACEOF
3369 /* end confdefs.h. */
3370 $ac_includes_default
3372 #include <$ac_header>
3374 rm -f conftest.
$ac_objext
3375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3376 (eval $ac_compile) 2>&5
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); } &&
3380 { ac_try
='test -s conftest.$ac_objext'
3381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); }; }; then
3386 eval "$as_ac_Header=yes"
3388 echo "$as_me: failed program was:" >&5
3389 sed 's/^/| /' conftest.
$ac_ext >&5
3391 eval "$as_ac_Header=no"
3393 rm -f conftest.
$ac_objext conftest.
$ac_ext
3395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3396 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3397 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3398 cat >>confdefs.h
<<_ACEOF
3399 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3407 echo "$as_me:$LINENO: checking for off_t" >&5
3408 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3409 if test "${ac_cv_type_off_t+set}" = set; then
3410 echo $ECHO_N "(cached) $ECHO_C" >&6
3412 cat >conftest.
$ac_ext <<_ACEOF
3413 #line $LINENO "configure"
3416 cat confdefs.h
>>conftest.
$ac_ext
3417 cat >>conftest.
$ac_ext <<_ACEOF
3418 /* end confdefs.h. */
3419 $ac_includes_default
3431 rm -f conftest.
$ac_objext
3432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3433 (eval $ac_compile) 2>&5
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); } &&
3437 { ac_try
='test -s conftest.$ac_objext'
3438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442 (exit $ac_status); }; }; then
3443 ac_cv_type_off_t
=yes
3445 echo "$as_me: failed program was:" >&5
3446 sed 's/^/| /' conftest.
$ac_ext >&5
3450 rm -f conftest.
$ac_objext conftest.
$ac_ext
3452 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3453 echo "${ECHO_T}$ac_cv_type_off_t" >&6
3454 if test $ac_cv_type_off_t = yes; then
3458 cat >>confdefs.h
<<_ACEOF
3464 echo "$as_me:$LINENO: checking for size_t" >&5
3465 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3466 if test "${ac_cv_type_size_t+set}" = set; then
3467 echo $ECHO_N "(cached) $ECHO_C" >&6
3469 cat >conftest.
$ac_ext <<_ACEOF
3470 #line $LINENO "configure"
3473 cat confdefs.h
>>conftest.
$ac_ext
3474 cat >>conftest.
$ac_ext <<_ACEOF
3475 /* end confdefs.h. */
3476 $ac_includes_default
3482 if (sizeof (size_t))
3488 rm -f conftest.
$ac_objext
3489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3490 (eval $ac_compile) 2>&5
3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); } &&
3494 { ac_try
='test -s conftest.$ac_objext'
3495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); }; }; then
3500 ac_cv_type_size_t
=yes
3502 echo "$as_me: failed program was:" >&5
3503 sed 's/^/| /' conftest.
$ac_ext >&5
3505 ac_cv_type_size_t
=no
3507 rm -f conftest.
$ac_objext conftest.
$ac_ext
3509 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3510 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3511 if test $ac_cv_type_size_t = yes; then
3515 cat >>confdefs.h
<<_ACEOF
3516 #define size_t unsigned
3521 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3522 # for constant arguments. Useless!
3523 echo "$as_me:$LINENO: checking for working alloca.h" >&5
3524 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3525 if test "${ac_cv_working_alloca_h+set}" = set; then
3526 echo $ECHO_N "(cached) $ECHO_C" >&6
3528 cat >conftest.
$ac_ext <<_ACEOF
3529 #line $LINENO "configure"
3532 cat confdefs.h
>>conftest.
$ac_ext
3533 cat >>conftest.
$ac_ext <<_ACEOF
3534 /* end confdefs.h. */
3539 char *p = (char *) alloca (2 * sizeof (int));
3544 rm -f conftest.
$ac_objext conftest
$ac_exeext
3545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3546 (eval $ac_link) 2>&5
3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); } &&
3550 { ac_try
='test -s conftest$ac_exeext'
3551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); }; }; then
3556 ac_cv_working_alloca_h
=yes
3558 echo "$as_me: failed program was:" >&5
3559 sed 's/^/| /' conftest.
$ac_ext >&5
3561 ac_cv_working_alloca_h
=no
3563 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3565 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3566 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3567 if test $ac_cv_working_alloca_h = yes; then
3569 cat >>confdefs.h
<<\_ACEOF
3570 #define HAVE_ALLOCA_H 1
3575 echo "$as_me:$LINENO: checking for alloca" >&5
3576 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3577 if test "${ac_cv_func_alloca_works+set}" = set; then
3578 echo $ECHO_N "(cached) $ECHO_C" >&6
3580 cat >conftest.
$ac_ext <<_ACEOF
3581 #line $LINENO "configure"
3584 cat confdefs.h
>>conftest.
$ac_ext
3585 cat >>conftest.
$ac_ext <<_ACEOF
3586 /* end confdefs.h. */
3588 # define alloca __builtin_alloca
3591 # include <malloc.h>
3592 # define alloca _alloca
3595 # include <alloca.h>
3600 # ifndef alloca /* predefined by HP cc +Olibcalls */
3611 char *p = (char *) alloca (1);
3616 rm -f conftest.
$ac_objext conftest
$ac_exeext
3617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3618 (eval $ac_link) 2>&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); } &&
3622 { ac_try
='test -s conftest$ac_exeext'
3623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); }; }; then
3628 ac_cv_func_alloca_works
=yes
3630 echo "$as_me: failed program was:" >&5
3631 sed 's/^/| /' conftest.
$ac_ext >&5
3633 ac_cv_func_alloca_works
=no
3635 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3637 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3638 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3640 if test $ac_cv_func_alloca_works = yes; then
3642 cat >>confdefs.h
<<\_ACEOF
3643 #define HAVE_ALLOCA 1
3647 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3648 # that cause trouble. Some versions do not even contain alloca or
3649 # contain a buggy version. If you still want to use their alloca,
3650 # use ar to extract alloca.o from them instead of compiling alloca.c.
3652 ALLOCA
=alloca.
$ac_objext
3654 cat >>confdefs.h
<<\_ACEOF
3659 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3660 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3661 if test "${ac_cv_os_cray+set}" = set; then
3662 echo $ECHO_N "(cached) $ECHO_C" >&6
3664 cat >conftest.
$ac_ext <<_ACEOF
3665 #line $LINENO "configure"
3668 cat confdefs.h
>>conftest.
$ac_ext
3669 cat >>conftest.
$ac_ext <<_ACEOF
3670 /* end confdefs.h. */
3671 #if defined(CRAY) && ! defined(CRAY2)
3678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3679 $EGREP "webecray" >/dev
/null
2>&1; then
3687 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3688 echo "${ECHO_T}$ac_cv_os_cray" >&6
3689 if test $ac_cv_os_cray = yes; then
3690 for ac_func
in _getb67 GETB67 getb67
; do
3691 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3692 echo "$as_me:$LINENO: checking for $ac_func" >&5
3693 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3694 if eval "test \"\${$as_ac_var+set}\" = set"; then
3695 echo $ECHO_N "(cached) $ECHO_C" >&6
3697 cat >conftest.
$ac_ext <<_ACEOF
3698 #line $LINENO "configure"
3701 cat confdefs.h
>>conftest.
$ac_ext
3702 cat >>conftest.
$ac_ext <<_ACEOF
3703 /* end confdefs.h. */
3704 /* System header to define __stub macros and hopefully few prototypes,
3705 which can conflict with char $ac_func (); below.
3706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3707 <limits.h> exists even on freestanding compilers. */
3709 # include <limits.h>
3711 # include <assert.h>
3713 /* Override any gcc2 internal prototype to avoid an error. */
3718 /* We use char because int might match the return type of a gcc2
3719 builtin and then its argument prototype would still apply. */
3721 /* The GNU C library defines this for functions which it implements
3722 to always fail with ENOSYS. Some functions are actually named
3723 something starting with __ and the normal name is an alias. */
3724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3727 char (*f) () = $ac_func;
3736 return f != $ac_func;
3741 rm -f conftest.
$ac_objext conftest
$ac_exeext
3742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3743 (eval $ac_link) 2>&5
3745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746 (exit $ac_status); } &&
3747 { ac_try
='test -s conftest$ac_exeext'
3748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); }; }; then
3753 eval "$as_ac_var=yes"
3755 echo "$as_me: failed program was:" >&5
3756 sed 's/^/| /' conftest.
$ac_ext >&5
3758 eval "$as_ac_var=no"
3760 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3763 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3764 if test `eval echo '${'$as_ac_var'}'` = yes; then
3766 cat >>confdefs.h
<<_ACEOF
3767 #define CRAY_STACKSEG_END $ac_func
3776 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
3777 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3778 if test "${ac_cv_c_stack_direction+set}" = set; then
3779 echo $ECHO_N "(cached) $ECHO_C" >&6
3781 if test "$cross_compiling" = yes; then
3782 ac_cv_c_stack_direction
=0
3784 cat >conftest.
$ac_ext <<_ACEOF
3785 #line $LINENO "configure"
3788 cat confdefs.h
>>conftest.
$ac_ext
3789 cat >>conftest.
$ac_ext <<_ACEOF
3790 /* end confdefs.h. */
3792 find_stack_direction ()
3794 static char *addr = 0;
3799 return find_stack_direction ();
3802 return (&dummy > addr) ? 1 : -1;
3808 exit (find_stack_direction () < 0);
3811 rm -f conftest
$ac_exeext
3812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3813 (eval $ac_link) 2>&5
3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); }; }; then
3822 ac_cv_c_stack_direction
=1
3824 echo "$as_me: program exited with status $ac_status" >&5
3825 echo "$as_me: failed program was:" >&5
3826 sed 's/^/| /' conftest.
$ac_ext >&5
3829 ac_cv_c_stack_direction
=-1
3831 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3834 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
3835 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
3837 cat >>confdefs.h
<<_ACEOF
3838 #define STACK_DIRECTION $ac_cv_c_stack_direction
3846 for ac_header
in stdlib.h unistd.h
3848 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3850 echo "$as_me:$LINENO: checking for $ac_header" >&5
3851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3852 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3853 echo $ECHO_N "(cached) $ECHO_C" >&6
3855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3856 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3858 # Is the header compilable?
3859 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3860 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3861 cat >conftest.
$ac_ext <<_ACEOF
3862 #line $LINENO "configure"
3865 cat confdefs.h
>>conftest.
$ac_ext
3866 cat >>conftest.
$ac_ext <<_ACEOF
3867 /* end confdefs.h. */
3868 $ac_includes_default
3869 #include <$ac_header>
3871 rm -f conftest.
$ac_objext
3872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3873 (eval $ac_compile) 2>&5
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); } &&
3877 { ac_try
='test -s conftest.$ac_objext'
3878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 (exit $ac_status); }; }; then
3883 ac_header_compiler
=yes
3885 echo "$as_me: failed program was:" >&5
3886 sed 's/^/| /' conftest.
$ac_ext >&5
3888 ac_header_compiler
=no
3890 rm -f conftest.
$ac_objext conftest.
$ac_ext
3891 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3892 echo "${ECHO_T}$ac_header_compiler" >&6
3894 # Is the header present?
3895 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3896 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3897 cat >conftest.
$ac_ext <<_ACEOF
3898 #line $LINENO "configure"
3901 cat confdefs.h
>>conftest.
$ac_ext
3902 cat >>conftest.
$ac_ext <<_ACEOF
3903 /* end confdefs.h. */
3904 #include <$ac_header>
3906 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3907 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3909 grep -v '^ *+' conftest.er1
>conftest.err
3911 cat conftest.err
>&5
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); } >/dev
/null
; then
3914 if test -s conftest.err
; then
3915 ac_cpp_err
=$ac_c_preproc_warn_flag
3922 if test -z "$ac_cpp_err"; then
3923 ac_header_preproc
=yes
3925 echo "$as_me: failed program was:" >&5
3926 sed 's/^/| /' conftest.
$ac_ext >&5
3928 ac_header_preproc
=no
3930 rm -f conftest.err conftest.
$ac_ext
3931 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3932 echo "${ECHO_T}$ac_header_preproc" >&6
3934 # So? What about this header?
3935 case $ac_header_compiler:$ac_header_preproc in
3937 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3938 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3940 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3943 ## ------------------------------------ ##
3944 ## Report this to bug-autoconf@gnu.org. ##
3945 ## ------------------------------------ ##
3948 sed "s/^/$as_me: WARNING: /" >&2
3951 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3952 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3953 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3954 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3956 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3959 ## ------------------------------------ ##
3960 ## Report this to bug-autoconf@gnu.org. ##
3961 ## ------------------------------------ ##
3964 sed "s/^/$as_me: WARNING: /" >&2
3967 echo "$as_me:$LINENO: checking for $ac_header" >&5
3968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3970 echo $ECHO_N "(cached) $ECHO_C" >&6
3972 eval "$as_ac_Header=$ac_header_preproc"
3974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3975 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3978 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3979 cat >>confdefs.h
<<_ACEOF
3980 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3988 for ac_func
in getpagesize
3990 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3991 echo "$as_me:$LINENO: checking for $ac_func" >&5
3992 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3993 if eval "test \"\${$as_ac_var+set}\" = set"; then
3994 echo $ECHO_N "(cached) $ECHO_C" >&6
3996 cat >conftest.
$ac_ext <<_ACEOF
3997 #line $LINENO "configure"
4000 cat confdefs.h
>>conftest.
$ac_ext
4001 cat >>conftest.
$ac_ext <<_ACEOF
4002 /* end confdefs.h. */
4003 /* System header to define __stub macros and hopefully few prototypes,
4004 which can conflict with char $ac_func (); below.
4005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4006 <limits.h> exists even on freestanding compilers. */
4008 # include <limits.h>
4010 # include <assert.h>
4012 /* Override any gcc2 internal prototype to avoid an error. */
4017 /* We use char because int might match the return type of a gcc2
4018 builtin and then its argument prototype would still apply. */
4020 /* The GNU C library defines this for functions which it implements
4021 to always fail with ENOSYS. Some functions are actually named
4022 something starting with __ and the normal name is an alias. */
4023 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4026 char (*f) () = $ac_func;
4035 return f != $ac_func;
4040 rm -f conftest.
$ac_objext conftest
$ac_exeext
4041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4042 (eval $ac_link) 2>&5
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); } &&
4046 { ac_try
='test -s conftest$ac_exeext'
4047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); }; }; then
4052 eval "$as_ac_var=yes"
4054 echo "$as_me: failed program was:" >&5
4055 sed 's/^/| /' conftest.
$ac_ext >&5
4057 eval "$as_ac_var=no"
4059 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4062 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4063 if test `eval echo '${'$as_ac_var'}'` = yes; then
4064 cat >>confdefs.h
<<_ACEOF
4065 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4071 echo "$as_me:$LINENO: checking for working mmap" >&5
4072 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4073 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4074 echo $ECHO_N "(cached) $ECHO_C" >&6
4076 if test "$cross_compiling" = yes; then
4077 ac_cv_func_mmap_fixed_mapped
=no
4079 cat >conftest.
$ac_ext <<_ACEOF
4080 #line $LINENO "configure"
4083 cat confdefs.h
>>conftest.
$ac_ext
4084 cat >>conftest.
$ac_ext <<_ACEOF
4085 /* end confdefs.h. */
4086 $ac_includes_default
4087 /* malloc might have been renamed as rpl_malloc. */
4090 /* Thanks to Mike Haertel and Jim Avera for this test.
4091 Here is a matrix of mmap possibilities:
4092 mmap private not fixed
4093 mmap private fixed at somewhere currently unmapped
4094 mmap private fixed at somewhere already mapped
4095 mmap shared not fixed
4096 mmap shared fixed at somewhere currently unmapped
4097 mmap shared fixed at somewhere already mapped
4098 For private mappings, we should verify that changes cannot be read()
4099 back from the file, nor mmap's back from the file at a different
4100 address. (There have been systems where private was not correctly
4101 implemented like the infamous i386 svr4.0, and systems where the
4102 VM page cache was not coherent with the file system buffer cache
4103 like early versions of FreeBSD and possibly contemporary NetBSD.)
4104 For shared mappings, we should conversely verify that changes get
4105 propagated back to all the places they're supposed to be.
4107 Grep wants private fixed already mapped.
4108 The main things grep needs to know about mmap are:
4109 * does it exist and is it safe to write into the mmap'd area
4110 * how to use it (BSD variants) */
4113 #include <sys/mman.h>
4115 #if !STDC_HEADERS && !HAVE_STDLIB_H
4119 /* This mess was copied from the GNU getpagesize.h. */
4120 #if !HAVE_GETPAGESIZE
4121 /* Assume that all systems that can run configure have sys/param.h. */
4122 # if !HAVE_SYS_PARAM_H
4123 # define HAVE_SYS_PARAM_H 1
4126 # ifdef _SC_PAGESIZE
4127 # define getpagesize() sysconf(_SC_PAGESIZE)
4128 # else /* no _SC_PAGESIZE */
4129 # if HAVE_SYS_PARAM_H
4130 # include <sys/param.h>
4131 # ifdef EXEC_PAGESIZE
4132 # define getpagesize() EXEC_PAGESIZE
4133 # else /* no EXEC_PAGESIZE */
4135 # define getpagesize() NBPG * CLSIZE
4138 # endif /* no CLSIZE */
4139 # else /* no NBPG */
4141 # define getpagesize() NBPC
4142 # else /* no NBPC */
4144 # define getpagesize() PAGESIZE
4145 # endif /* PAGESIZE */
4146 # endif /* no NBPC */
4147 # endif /* no NBPG */
4148 # endif /* no EXEC_PAGESIZE */
4149 # else /* no HAVE_SYS_PARAM_H */
4150 # define getpagesize() 8192 /* punt totally */
4151 # endif /* no HAVE_SYS_PARAM_H */
4152 # endif /* no _SC_PAGESIZE */
4154 #endif /* no HAVE_GETPAGESIZE */
4159 char *data, *data2, *data3;
4163 pagesize = getpagesize ();
4165 /* First, make a file with some known garbage in it. */
4166 data = (char *) malloc (pagesize);
4169 for (i = 0; i < pagesize; ++i)
4170 *(data + i) = rand ();
4172 fd = creat ("conftest.mmap", 0600);
4175 if (write (fd, data, pagesize) != pagesize)
4179 /* Next, try to mmap the file at a fixed address which already has
4180 something else allocated at it. If we can, also make sure that
4181 we see the same garbage. */
4182 fd = open ("conftest.mmap", O_RDWR);
4185 data2 = (char *) malloc (2 * pagesize);
4188 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
4189 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4190 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4192 for (i = 0; i < pagesize; ++i)
4193 if (*(data + i) != *(data2 + i))
4196 /* Finally, make sure that changes to the mapped area do not
4197 percolate back to the file as seen by read(). (This is a bug on
4198 some variants of i386 svr4.0.) */
4199 for (i = 0; i < pagesize; ++i)
4200 *(data2 + i) = *(data2 + i) + 1;
4201 data3 = (char *) malloc (pagesize);
4204 if (read (fd, data3, pagesize) != pagesize)
4206 for (i = 0; i < pagesize; ++i)
4207 if (*(data + i) != *(data3 + i))
4213 rm -f conftest
$ac_exeext
4214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4215 (eval $ac_link) 2>&5
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); }; }; then
4224 ac_cv_func_mmap_fixed_mapped
=yes
4226 echo "$as_me: program exited with status $ac_status" >&5
4227 echo "$as_me: failed program was:" >&5
4228 sed 's/^/| /' conftest.
$ac_ext >&5
4231 ac_cv_func_mmap_fixed_mapped
=no
4233 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4236 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4237 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4238 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4240 cat >>confdefs.h
<<\_ACEOF
4248 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
4249 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
4250 if test "${ac_cv_gnu_library_2_1+set}" = set; then
4251 echo $ECHO_N "(cached) $ECHO_C" >&6
4253 cat >conftest.
$ac_ext <<_ACEOF
4254 #line $LINENO "configure"
4257 cat confdefs.h
>>conftest.
$ac_ext
4258 cat >>conftest.
$ac_ext <<_ACEOF
4259 /* end confdefs.h. */
4261 #include <features.h>
4262 #ifdef __GNU_LIBRARY__
4263 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
4269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4270 $EGREP "Lucky GNU user" >/dev
/null
2>&1; then
4271 ac_cv_gnu_library_2_1
=yes
4273 ac_cv_gnu_library_2_1
=no
4280 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
4281 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
4283 GLIBC21
="$ac_cv_gnu_library_2_1"
4288 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
4289 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
4290 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
4291 echo $ECHO_N "(cached) $ECHO_C" >&6
4294 if test "$cross_compiling" = yes; then
4296 # Guess based on the CPU.
4298 alpha
* | i3456786 | m68k | s390
*)
4299 gt_cv_int_divbyzero_sigfpe
="guessing yes";;
4301 gt_cv_int_divbyzero_sigfpe
="guessing no";;
4305 cat >conftest.
$ac_ext <<_ACEOF
4306 #line $LINENO "configure"
4309 cat confdefs.h
>>conftest.
$ac_ext
4310 cat >>conftest.
$ac_ext <<_ACEOF
4311 /* end confdefs.h. */
4318 sigfpe_handler (int sig)
4320 sigfpe_handler (sig) int sig;
4323 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
4324 exit (sig != SIGFPE);
4334 signal (SIGFPE, sigfpe_handler);
4335 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
4336 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
4337 signal (SIGTRAP, sigfpe_handler);
4339 /* Linux/SPARC yields signal SIGILL. */
4340 #if defined (__sparc__) && defined (__linux__)
4341 signal (SIGILL, sigfpe_handler);
4350 rm -f conftest
$ac_exeext
4351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4352 (eval $ac_link) 2>&5
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); }; }; then
4361 gt_cv_int_divbyzero_sigfpe
=yes
4363 echo "$as_me: program exited with status $ac_status" >&5
4364 echo "$as_me: failed program was:" >&5
4365 sed 's/^/| /' conftest.
$ac_ext >&5
4368 gt_cv_int_divbyzero_sigfpe
=no
4370 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4374 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
4375 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
4376 case "$gt_cv_int_divbyzero_sigfpe" in
4381 cat >>confdefs.h
<<_ACEOF
4382 #define INTDIV0_RAISES_SIGFPE $value
4387 echo "$as_me:$LINENO: checking for inttypes.h" >&5
4388 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
4389 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4392 cat >conftest.
$ac_ext <<_ACEOF
4393 #line $LINENO "configure"
4396 cat confdefs.h
>>conftest.
$ac_ext
4397 cat >>conftest.
$ac_ext <<_ACEOF
4398 /* end confdefs.h. */
4399 #include <sys/types.h>
4400 #include <inttypes.h>
4404 uintmax_t i = (uintmax_t) -1;
4409 rm -f conftest.
$ac_objext
4410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4411 (eval $ac_compile) 2>&5
4413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414 (exit $ac_status); } &&
4415 { ac_try
='test -s conftest.$ac_objext'
4416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); }; }; then
4421 jm_ac_cv_header_inttypes_h
=yes
4423 echo "$as_me: failed program was:" >&5
4424 sed 's/^/| /' conftest.
$ac_ext >&5
4426 jm_ac_cv_header_inttypes_h
=no
4428 rm -f conftest.
$ac_objext conftest.
$ac_ext
4430 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
4431 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
4432 if test $jm_ac_cv_header_inttypes_h = yes; then
4434 cat >>confdefs.h
<<_ACEOF
4435 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
4441 echo "$as_me:$LINENO: checking for stdint.h" >&5
4442 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
4443 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
4444 echo $ECHO_N "(cached) $ECHO_C" >&6
4446 cat >conftest.
$ac_ext <<_ACEOF
4447 #line $LINENO "configure"
4450 cat confdefs.h
>>conftest.
$ac_ext
4451 cat >>conftest.
$ac_ext <<_ACEOF
4452 /* end confdefs.h. */
4453 #include <sys/types.h>
4458 uintmax_t i = (uintmax_t) -1;
4463 rm -f conftest.
$ac_objext
4464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4465 (eval $ac_compile) 2>&5
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); } &&
4469 { ac_try
='test -s conftest.$ac_objext'
4470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); }; }; then
4475 jm_ac_cv_header_stdint_h
=yes
4477 echo "$as_me: failed program was:" >&5
4478 sed 's/^/| /' conftest.
$ac_ext >&5
4480 jm_ac_cv_header_stdint_h
=no
4482 rm -f conftest.
$ac_objext conftest.
$ac_ext
4484 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
4485 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
4486 if test $jm_ac_cv_header_stdint_h = yes; then
4488 cat >>confdefs.h
<<_ACEOF
4489 #define HAVE_STDINT_H_WITH_UINTMAX 1
4495 echo "$as_me:$LINENO: checking for unsigned long long" >&5
4496 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
4497 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
4498 echo $ECHO_N "(cached) $ECHO_C" >&6
4500 cat >conftest.
$ac_ext <<_ACEOF
4501 #line $LINENO "configure"
4504 cat confdefs.h
>>conftest.
$ac_ext
4505 cat >>conftest.
$ac_ext <<_ACEOF
4506 /* end confdefs.h. */
4507 unsigned long long ull = 1; int i = 63;
4511 unsigned long long ullmax = (unsigned long long) -1;
4512 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
4517 rm -f conftest.
$ac_objext conftest
$ac_exeext
4518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4519 (eval $ac_link) 2>&5
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); } &&
4523 { ac_try
='test -s conftest$ac_exeext'
4524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); }; }; then
4529 ac_cv_type_unsigned_long_long
=yes
4531 echo "$as_me: failed program was:" >&5
4532 sed 's/^/| /' conftest.
$ac_ext >&5
4534 ac_cv_type_unsigned_long_long
=no
4536 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4538 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
4539 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
4540 if test $ac_cv_type_unsigned_long_long = yes; then
4542 cat >>confdefs.h
<<\_ACEOF
4543 #define HAVE_UNSIGNED_LONG_LONG 1
4551 if test $jm_ac_cv_header_inttypes_h = no
&& test $jm_ac_cv_header_stdint_h = no
; then
4553 test $ac_cv_type_unsigned_long_long = yes \
4554 && ac_type
='unsigned long long' \
4555 || ac_type
='unsigned long'
4557 cat >>confdefs.h
<<_ACEOF
4558 #define uintmax_t $ac_type
4563 cat >>confdefs.h
<<\_ACEOF
4564 #define HAVE_UINTMAX_T 1
4570 echo "$as_me:$LINENO: checking for inttypes.h" >&5
4571 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
4572 if test "${gt_cv_header_inttypes_h+set}" = set; then
4573 echo $ECHO_N "(cached) $ECHO_C" >&6
4576 cat >conftest.
$ac_ext <<_ACEOF
4577 #line $LINENO "configure"
4580 cat confdefs.h
>>conftest.
$ac_ext
4581 cat >>conftest.
$ac_ext <<_ACEOF
4582 /* end confdefs.h. */
4583 #include <sys/types.h>
4584 #include <inttypes.h>
4593 rm -f conftest.
$ac_objext
4594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4595 (eval $ac_compile) 2>&5
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); } &&
4599 { ac_try
='test -s conftest.$ac_objext'
4600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); }; }; then
4605 gt_cv_header_inttypes_h
=yes
4607 echo "$as_me: failed program was:" >&5
4608 sed 's/^/| /' conftest.
$ac_ext >&5
4610 gt_cv_header_inttypes_h
=no
4612 rm -f conftest.
$ac_objext conftest.
$ac_ext
4615 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
4616 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
4617 if test $gt_cv_header_inttypes_h = yes; then
4619 cat >>confdefs.h
<<_ACEOF
4620 #define HAVE_INTTYPES_H 1
4627 if test $gt_cv_header_inttypes_h = yes; then
4628 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
4629 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
4630 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
4631 echo $ECHO_N "(cached) $ECHO_C" >&6
4634 cat >conftest.
$ac_ext <<_ACEOF
4635 #line $LINENO "configure"
4638 cat confdefs.h
>>conftest.
$ac_ext
4639 cat >>conftest.
$ac_ext <<_ACEOF
4640 /* end confdefs.h. */
4641 #include <inttypes.h>
4654 rm -f conftest.
$ac_objext
4655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4656 (eval $ac_compile) 2>&5
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); } &&
4660 { ac_try
='test -s conftest.$ac_objext'
4661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); }; }; then
4666 gt_cv_inttypes_pri_broken
=no
4668 echo "$as_me: failed program was:" >&5
4669 sed 's/^/| /' conftest.
$ac_ext >&5
4671 gt_cv_inttypes_pri_broken
=yes
4673 rm -f conftest.
$ac_objext conftest.
$ac_ext
4676 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
4677 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
4679 if test "$gt_cv_inttypes_pri_broken" = yes; then
4681 cat >>confdefs.h
<<_ACEOF
4682 #define PRI_MACROS_BROKEN 1
4688 if test "X$prefix" = "XNONE"; then
4689 acl_final_prefix
="$ac_default_prefix"
4691 acl_final_prefix
="$prefix"
4693 if test "X$exec_prefix" = "XNONE"; then
4694 acl_final_exec_prefix
='${prefix}'
4696 acl_final_exec_prefix
="$exec_prefix"
4698 acl_save_prefix
="$prefix"
4699 prefix
="$acl_final_prefix"
4700 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
4701 prefix
="$acl_save_prefix"
4704 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4705 if test "${with_gnu_ld+set}" = set; then
4706 withval
="$with_gnu_ld"
4707 test "$withval" = no || with_gnu_ld
=yes
4711 # Prepare PATH_SEPARATOR.
4712 # The user is always right.
4713 if test "${PATH_SEPARATOR+set}" != set; then
4714 echo "#! /bin/sh" >conf$$.sh
4715 echo "exit 0" >>conf$$.sh
4717 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
4725 if test "$GCC" = yes; then
4726 # Check if gcc -print-prog-name=ld gives a path.
4727 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4728 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4731 # gcc leaves a trailing carriage return which upsets mingw
4732 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4734 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
4737 # Accept absolute paths.
4738 [\\/]* |
[A-Za-z
]:[\\/]*)
4739 re_direlt
='/[^/][^/]*/\.\./'
4740 # Canonicalize the path of ld
4741 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
4742 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
4743 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
4745 test -z "$LD" && LD
="$ac_prog"
4748 # If it fails, then pretend we aren't using GCC.
4752 # If it is relative, then search for the first ld in PATH.
4756 elif test "$with_gnu_ld" = yes; then
4757 echo "$as_me:$LINENO: checking for GNU ld" >&5
4758 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4760 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4761 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4763 if test "${acl_cv_path_LD+set}" = set; then
4764 echo $ECHO_N "(cached) $ECHO_C" >&6
4766 if test -z "$LD"; then
4767 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4768 for ac_dir
in $PATH; do
4769 test -z "$ac_dir" && ac_dir
=.
4770 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
4771 acl_cv_path_LD
="$ac_dir/$ac_prog"
4772 # Check to see if the program is GNU ld. I'd rather use --version,
4773 # but apparently some GNU ld's only accept -v.
4774 # Break only if it was the GNU/non-GNU ld that we prefer.
4775 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
4776 test "$with_gnu_ld" != no
&& break
4778 test "$with_gnu_ld" != yes && break
4784 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
4788 LD
="$acl_cv_path_LD"
4789 if test -n "$LD"; then
4790 echo "$as_me:$LINENO: result: $LD" >&5
4791 echo "${ECHO_T}$LD" >&6
4793 echo "$as_me:$LINENO: result: no" >&5
4794 echo "${ECHO_T}no" >&6
4796 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4797 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4798 { (exit 1); exit 1; }; }
4799 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4800 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4801 if test "${acl_cv_prog_gnu_ld+set}" = set; then
4802 echo $ECHO_N "(cached) $ECHO_C" >&6
4804 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4805 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
4806 acl_cv_prog_gnu_ld
=yes
4808 acl_cv_prog_gnu_ld
=no
4811 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
4812 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
4813 with_gnu_ld
=$acl_cv_prog_gnu_ld
4817 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
4818 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
4819 if test "${acl_cv_rpath+set}" = set; then
4820 echo $ECHO_N "(cached) $ECHO_C" >&6
4823 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
4824 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4830 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
4831 echo "${ECHO_T}$acl_cv_rpath" >&6
4833 libext
="$acl_cv_libext"
4834 shlibext
="$acl_cv_shlibext"
4835 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
4836 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
4837 hardcode_direct
="$acl_cv_hardcode_direct"
4838 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
4839 # Check whether --enable-rpath or --disable-rpath was given.
4840 if test "${enable_rpath+set}" = set; then
4841 enableval
="$enable_rpath"
4855 acl_save_prefix
="$prefix"
4856 prefix
="$acl_final_prefix"
4857 acl_save_exec_prefix
="$exec_prefix"
4858 exec_prefix
="$acl_final_exec_prefix"
4860 eval additional_includedir
=\"$includedir\"
4861 eval additional_libdir
=\"$libdir\"
4863 exec_prefix
="$acl_save_exec_prefix"
4864 prefix
="$acl_save_prefix"
4867 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
4868 if test "${with_libiconv_prefix+set}" = set; then
4869 withval
="$with_libiconv_prefix"
4871 if test "X$withval" = "Xno"; then
4874 if test "X$withval" = "X"; then
4876 acl_save_prefix
="$prefix"
4877 prefix
="$acl_final_prefix"
4878 acl_save_exec_prefix
="$exec_prefix"
4879 exec_prefix
="$acl_final_exec_prefix"
4881 eval additional_includedir
=\"$includedir\"
4882 eval additional_libdir
=\"$libdir\"
4884 exec_prefix
="$acl_save_exec_prefix"
4885 prefix
="$acl_save_prefix"
4888 additional_includedir
="$withval/include"
4889 additional_libdir
="$withval/lib"
4899 names_already_handled
=
4900 names_next_round
='iconv '
4901 while test -n "$names_next_round"; do
4902 names_this_round
="$names_next_round"
4904 for name
in $names_this_round; do
4906 for n
in $names_already_handled; do
4907 if test "$n" = "$name"; then
4912 if test -z "$already_handled"; then
4913 names_already_handled
="$names_already_handled $name"
4914 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4915 eval value
=\"\
$HAVE_LIB$uppername\"
4916 if test -n "$value"; then
4917 if test "$value" = yes; then
4918 eval value
=\"\
$LIB$uppername\"
4919 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
4920 eval value
=\"\
$LTLIB$uppername\"
4921 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
4930 if test $use_additional = yes; then
4931 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
4932 found_dir
="$additional_libdir"
4933 found_so
="$additional_libdir/lib$name.$shlibext"
4934 if test -f "$additional_libdir/lib$name.la"; then
4935 found_la
="$additional_libdir/lib$name.la"
4938 if test -f "$additional_libdir/lib$name.$libext"; then
4939 found_dir
="$additional_libdir"
4940 found_a
="$additional_libdir/lib$name.$libext"
4941 if test -f "$additional_libdir/lib$name.la"; then
4942 found_la
="$additional_libdir/lib$name.la"
4947 if test "X$found_dir" = "X"; then
4948 for x
in $LDFLAGS $LTLIBICONV; do
4950 acl_save_prefix
="$prefix"
4951 prefix
="$acl_final_prefix"
4952 acl_save_exec_prefix
="$exec_prefix"
4953 exec_prefix
="$acl_final_exec_prefix"
4955 exec_prefix
="$acl_save_exec_prefix"
4956 prefix
="$acl_save_prefix"
4960 dir
=`echo "X$x" | sed -e 's/^X-L//'`
4961 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
4963 found_so
="$dir/lib$name.$shlibext"
4964 if test -f "$dir/lib$name.la"; then
4965 found_la
="$dir/lib$name.la"
4968 if test -f "$dir/lib$name.$libext"; then
4970 found_a
="$dir/lib$name.$libext"
4971 if test -f "$dir/lib$name.la"; then
4972 found_la
="$dir/lib$name.la"
4978 if test "X$found_dir" != "X"; then
4983 if test "X$found_dir" != "X"; then
4984 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
4985 if test "X$found_so" != "X"; then
4986 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
4987 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
4990 for x
in $ltrpathdirs; do
4991 if test "X$x" = "X$found_dir"; then
4996 if test -z "$haveit"; then
4997 ltrpathdirs
="$ltrpathdirs $found_dir"
4999 if test "$hardcode_direct" = yes; then
5000 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
5002 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
5003 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
5005 for x
in $rpathdirs; do
5006 if test "X$x" = "X$found_dir"; then
5011 if test -z "$haveit"; then
5012 rpathdirs
="$rpathdirs $found_dir"
5016 for x
in $LDFLAGS $LIBICONV; do
5018 acl_save_prefix
="$prefix"
5019 prefix
="$acl_final_prefix"
5020 acl_save_exec_prefix
="$exec_prefix"
5021 exec_prefix
="$acl_final_exec_prefix"
5023 exec_prefix
="$acl_save_exec_prefix"
5024 prefix
="$acl_save_prefix"
5026 if test "X$x" = "X-L$found_dir"; then
5031 if test -z "$haveit"; then
5032 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5034 if test "$hardcode_minus_L" != no
; then
5035 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
5037 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
5043 if test "X$found_a" != "X"; then
5044 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
5046 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5049 additional_includedir
=
5050 case "$found_dir" in
5052 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5053 additional_includedir
="$basedir/include"
5056 if test "X$additional_includedir" != "X"; then
5057 if test "X$additional_includedir" != "X/usr/include"; then
5059 if test "X$additional_includedir" = "X/usr/local/include"; then
5060 if test -n "$GCC"; then
5062 linux
*) haveit
=yes;;
5066 if test -z "$haveit"; then
5067 for x
in $CPPFLAGS $INCICONV; do
5069 acl_save_prefix
="$prefix"
5070 prefix
="$acl_final_prefix"
5071 acl_save_exec_prefix
="$exec_prefix"
5072 exec_prefix
="$acl_final_exec_prefix"
5074 exec_prefix
="$acl_save_exec_prefix"
5075 prefix
="$acl_save_prefix"
5077 if test "X$x" = "X-I$additional_includedir"; then
5082 if test -z "$haveit"; then
5083 if test -d "$additional_includedir"; then
5084 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5090 if test -n "$found_la"; then
5091 save_libdir
="$libdir"
5093 */* |
*\\*) .
"$found_la" ;;
5094 *) .
"./$found_la" ;;
5096 libdir
="$save_libdir"
5097 for dep
in $dependency_libs; do
5100 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
5101 if test "X$additional_libdir" != "X/usr/lib"; then
5103 if test "X$additional_libdir" = "X/usr/local/lib"; then
5104 if test -n "$GCC"; then
5106 linux
*) haveit
=yes;;
5110 if test -z "$haveit"; then
5112 for x
in $LDFLAGS $LIBICONV; do
5114 acl_save_prefix
="$prefix"
5115 prefix
="$acl_final_prefix"
5116 acl_save_exec_prefix
="$exec_prefix"
5117 exec_prefix
="$acl_final_exec_prefix"
5119 exec_prefix
="$acl_save_exec_prefix"
5120 prefix
="$acl_save_prefix"
5122 if test "X$x" = "X-L$additional_libdir"; then
5127 if test -z "$haveit"; then
5128 if test -d "$additional_libdir"; then
5129 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5133 for x
in $LDFLAGS $LTLIBICONV; do
5135 acl_save_prefix
="$prefix"
5136 prefix
="$acl_final_prefix"
5137 acl_save_exec_prefix
="$exec_prefix"
5138 exec_prefix
="$acl_final_exec_prefix"
5140 exec_prefix
="$acl_save_exec_prefix"
5141 prefix
="$acl_save_prefix"
5143 if test "X$x" = "X-L$additional_libdir"; then
5148 if test -z "$haveit"; then
5149 if test -d "$additional_libdir"; then
5150 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5157 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
5158 if test "$enable_rpath" != no
; then
5160 for x
in $rpathdirs; do
5161 if test "X$x" = "X$dir"; then
5166 if test -z "$haveit"; then
5167 rpathdirs
="$rpathdirs $dir"
5170 for x
in $ltrpathdirs; do
5171 if test "X$x" = "X$dir"; then
5176 if test -z "$haveit"; then
5177 ltrpathdirs
="$ltrpathdirs $dir"
5182 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5185 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5188 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
5189 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5195 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
5196 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5202 if test "X$rpathdirs" != "X"; then
5203 if test -n "$hardcode_libdir_separator"; then
5205 for found_dir
in $rpathdirs; do
5206 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5208 acl_save_libdir
="$libdir"
5210 eval flag
=\"$hardcode_libdir_flag_spec\"
5211 libdir
="$acl_save_libdir"
5212 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
5214 for found_dir
in $rpathdirs; do
5215 acl_save_libdir
="$libdir"
5217 eval flag
=\"$hardcode_libdir_flag_spec\"
5218 libdir
="$acl_save_libdir"
5219 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
5223 if test "X$ltrpathdirs" != "X"; then
5224 for found_dir
in $ltrpathdirs; do
5225 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5242 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
5243 stdlib.h string.h unistd.h sys
/param.h
5245 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5247 echo "$as_me:$LINENO: checking for $ac_header" >&5
5248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5250 echo $ECHO_N "(cached) $ECHO_C" >&6
5252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5253 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5255 # Is the header compilable?
5256 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5257 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5258 cat >conftest.
$ac_ext <<_ACEOF
5259 #line $LINENO "configure"
5262 cat confdefs.h
>>conftest.
$ac_ext
5263 cat >>conftest.
$ac_ext <<_ACEOF
5264 /* end confdefs.h. */
5265 $ac_includes_default
5266 #include <$ac_header>
5268 rm -f conftest.
$ac_objext
5269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5270 (eval $ac_compile) 2>&5
5272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273 (exit $ac_status); } &&
5274 { ac_try
='test -s conftest.$ac_objext'
5275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279 (exit $ac_status); }; }; then
5280 ac_header_compiler
=yes
5282 echo "$as_me: failed program was:" >&5
5283 sed 's/^/| /' conftest.
$ac_ext >&5
5285 ac_header_compiler
=no
5287 rm -f conftest.
$ac_objext conftest.
$ac_ext
5288 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5289 echo "${ECHO_T}$ac_header_compiler" >&6
5291 # Is the header present?
5292 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5293 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5294 cat >conftest.
$ac_ext <<_ACEOF
5295 #line $LINENO "configure"
5298 cat confdefs.h
>>conftest.
$ac_ext
5299 cat >>conftest.
$ac_ext <<_ACEOF
5300 /* end confdefs.h. */
5301 #include <$ac_header>
5303 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5304 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5306 grep -v '^ *+' conftest.er1
>conftest.err
5308 cat conftest.err
>&5
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); } >/dev
/null
; then
5311 if test -s conftest.err
; then
5312 ac_cpp_err
=$ac_c_preproc_warn_flag
5319 if test -z "$ac_cpp_err"; then
5320 ac_header_preproc
=yes
5322 echo "$as_me: failed program was:" >&5
5323 sed 's/^/| /' conftest.
$ac_ext >&5
5325 ac_header_preproc
=no
5327 rm -f conftest.err conftest.
$ac_ext
5328 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5329 echo "${ECHO_T}$ac_header_preproc" >&6
5331 # So? What about this header?
5332 case $ac_header_compiler:$ac_header_preproc in
5334 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5335 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5336 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5337 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5340 ## ------------------------------------ ##
5341 ## Report this to bug-autoconf@gnu.org. ##
5342 ## ------------------------------------ ##
5345 sed "s/^/$as_me: WARNING: /" >&2
5348 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5349 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5350 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5351 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5353 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5356 ## ------------------------------------ ##
5357 ## Report this to bug-autoconf@gnu.org. ##
5358 ## ------------------------------------ ##
5361 sed "s/^/$as_me: WARNING: /" >&2
5364 echo "$as_me:$LINENO: checking for $ac_header" >&5
5365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5367 echo $ECHO_N "(cached) $ECHO_C" >&6
5369 eval "$as_ac_Header=$ac_header_preproc"
5371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5372 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5375 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5376 cat >>confdefs.h
<<_ACEOF
5377 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5406 for ac_func
in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
5407 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
5408 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
5411 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5412 echo "$as_me:$LINENO: checking for $ac_func" >&5
5413 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5414 if eval "test \"\${$as_ac_var+set}\" = set"; then
5415 echo $ECHO_N "(cached) $ECHO_C" >&6
5417 cat >conftest.
$ac_ext <<_ACEOF
5418 #line $LINENO "configure"
5421 cat confdefs.h
>>conftest.
$ac_ext
5422 cat >>conftest.
$ac_ext <<_ACEOF
5423 /* end confdefs.h. */
5424 /* System header to define __stub macros and hopefully few prototypes,
5425 which can conflict with char $ac_func (); below.
5426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5427 <limits.h> exists even on freestanding compilers. */
5429 # include <limits.h>
5431 # include <assert.h>
5433 /* Override any gcc2 internal prototype to avoid an error. */
5438 /* We use char because int might match the return type of a gcc2
5439 builtin and then its argument prototype would still apply. */
5441 /* The GNU C library defines this for functions which it implements
5442 to always fail with ENOSYS. Some functions are actually named
5443 something starting with __ and the normal name is an alias. */
5444 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5447 char (*f) () = $ac_func;
5456 return f != $ac_func;
5461 rm -f conftest.
$ac_objext conftest
$ac_exeext
5462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5463 (eval $ac_link) 2>&5
5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466 (exit $ac_status); } &&
5467 { ac_try
='test -s conftest$ac_exeext'
5468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); }; }; then
5473 eval "$as_ac_var=yes"
5475 echo "$as_me: failed program was:" >&5
5476 sed 's/^/| /' conftest.
$ac_ext >&5
5478 eval "$as_ac_var=no"
5480 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5483 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5484 if test `eval echo '${'$as_ac_var'}'` = yes; then
5485 cat >>confdefs.h
<<_ACEOF
5486 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5498 am_save_CPPFLAGS
="$CPPFLAGS"
5500 for element
in $INCICONV; do
5502 for x
in $CPPFLAGS; do
5504 acl_save_prefix
="$prefix"
5505 prefix
="$acl_final_prefix"
5506 acl_save_exec_prefix
="$exec_prefix"
5507 exec_prefix
="$acl_final_exec_prefix"
5509 exec_prefix
="$acl_save_exec_prefix"
5510 prefix
="$acl_save_prefix"
5512 if test "X$x" = "X$element"; then
5517 if test -z "$haveit"; then
5518 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
5523 echo "$as_me:$LINENO: checking for iconv" >&5
5524 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
5525 if test "${am_cv_func_iconv+set}" = set; then
5526 echo $ECHO_N "(cached) $ECHO_C" >&6
5529 am_cv_func_iconv
="no, consider installing GNU libiconv"
5531 cat >conftest.
$ac_ext <<_ACEOF
5532 #line $LINENO "configure"
5535 cat confdefs.h
>>conftest.
$ac_ext
5536 cat >>conftest.
$ac_ext <<_ACEOF
5537 /* end confdefs.h. */
5543 iconv_t cd = iconv_open("","");
5544 iconv(cd,NULL,NULL,NULL,NULL);
5550 rm -f conftest.
$ac_objext conftest
$ac_exeext
5551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5552 (eval $ac_link) 2>&5
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); } &&
5556 { ac_try
='test -s conftest$ac_exeext'
5557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561 (exit $ac_status); }; }; then
5562 am_cv_func_iconv
=yes
5564 echo "$as_me: failed program was:" >&5
5565 sed 's/^/| /' conftest.
$ac_ext >&5
5568 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5569 if test "$am_cv_func_iconv" != yes; then
5570 am_save_LIBS
="$LIBS"
5571 LIBS
="$LIBS $LIBICONV"
5572 cat >conftest.
$ac_ext <<_ACEOF
5573 #line $LINENO "configure"
5576 cat confdefs.h
>>conftest.
$ac_ext
5577 cat >>conftest.
$ac_ext <<_ACEOF
5578 /* end confdefs.h. */
5584 iconv_t cd = iconv_open("","");
5585 iconv(cd,NULL,NULL,NULL,NULL);
5591 rm -f conftest.
$ac_objext conftest
$ac_exeext
5592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5593 (eval $ac_link) 2>&5
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); } &&
5597 { ac_try
='test -s conftest$ac_exeext'
5598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); }; }; then
5604 am_cv_func_iconv
=yes
5606 echo "$as_me: failed program was:" >&5
5607 sed 's/^/| /' conftest.
$ac_ext >&5
5610 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5611 LIBS
="$am_save_LIBS"
5615 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
5616 echo "${ECHO_T}$am_cv_func_iconv" >&6
5617 if test "$am_cv_func_iconv" = yes; then
5619 cat >>confdefs.h
<<\_ACEOF
5620 #define HAVE_ICONV 1
5624 if test "$am_cv_lib_iconv" = yes; then
5625 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
5626 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
5627 echo "$as_me:$LINENO: result: $LIBICONV" >&5
5628 echo "${ECHO_T}$LIBICONV" >&6
5630 CPPFLAGS
="$am_save_CPPFLAGS"
5637 if test "$am_cv_func_iconv" = yes; then
5638 echo "$as_me:$LINENO: checking for iconv declaration" >&5
5639 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
5640 if test "${am_cv_proto_iconv+set}" = set; then
5641 echo $ECHO_N "(cached) $ECHO_C" >&6
5644 cat >conftest.
$ac_ext <<_ACEOF
5645 #line $LINENO "configure"
5648 cat confdefs.h
>>conftest.
$ac_ext
5649 cat >>conftest.
$ac_ext <<_ACEOF
5650 /* end confdefs.h. */
5658 #if defined(__STDC__) || defined(__cplusplus)
5659 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
5672 rm -f conftest.
$ac_objext
5673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5674 (eval $ac_compile) 2>&5
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); } &&
5678 { ac_try
='test -s conftest.$ac_objext'
5679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); }; }; then
5684 am_cv_proto_iconv_arg1
=""
5686 echo "$as_me: failed program was:" >&5
5687 sed 's/^/| /' conftest.
$ac_ext >&5
5689 am_cv_proto_iconv_arg1
="const"
5691 rm -f conftest.
$ac_objext conftest.
$ac_ext
5692 am_cv_proto_iconv
="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
5695 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
5696 echo "$as_me:$LINENO: result: ${ac_t:-
5697 }$am_cv_proto_iconv" >&5
5698 echo "${ECHO_T}${ac_t:-
5699 }$am_cv_proto_iconv" >&6
5701 cat >>confdefs.h
<<_ACEOF
5702 #define ICONV_CONST $am_cv_proto_iconv_arg1
5708 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
5709 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
5710 if test "${am_cv_langinfo_codeset+set}" = set; then
5711 echo $ECHO_N "(cached) $ECHO_C" >&6
5713 cat >conftest.
$ac_ext <<_ACEOF
5714 #line $LINENO "configure"
5717 cat confdefs.h
>>conftest.
$ac_ext
5718 cat >>conftest.
$ac_ext <<_ACEOF
5719 /* end confdefs.h. */
5720 #include <langinfo.h>
5724 char* cs = nl_langinfo(CODESET);
5729 rm -f conftest.
$ac_objext conftest
$ac_exeext
5730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5731 (eval $ac_link) 2>&5
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); } &&
5735 { ac_try
='test -s conftest$ac_exeext'
5736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); }; }; then
5741 am_cv_langinfo_codeset
=yes
5743 echo "$as_me: failed program was:" >&5
5744 sed 's/^/| /' conftest.
$ac_ext >&5
5746 am_cv_langinfo_codeset
=no
5748 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5751 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
5752 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
5753 if test $am_cv_langinfo_codeset = yes; then
5755 cat >>confdefs.h
<<\_ACEOF
5756 #define HAVE_LANGINFO_CODESET 1
5761 if test $ac_cv_header_locale_h = yes; then
5763 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
5764 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
5765 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
5766 echo $ECHO_N "(cached) $ECHO_C" >&6
5768 cat >conftest.
$ac_ext <<_ACEOF
5769 #line $LINENO "configure"
5772 cat confdefs.h
>>conftest.
$ac_ext
5773 cat >>conftest.
$ac_ext <<_ACEOF
5774 /* end confdefs.h. */
5784 rm -f conftest.
$ac_objext conftest
$ac_exeext
5785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5786 (eval $ac_link) 2>&5
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); } &&
5790 { ac_try
='test -s conftest$ac_exeext'
5791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); }; }; then
5796 am_cv_val_LC_MESSAGES
=yes
5798 echo "$as_me: failed program was:" >&5
5799 sed 's/^/| /' conftest.
$ac_ext >&5
5801 am_cv_val_LC_MESSAGES
=no
5803 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5805 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
5806 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
5807 if test $am_cv_val_LC_MESSAGES = yes; then
5809 cat >>confdefs.h
<<\_ACEOF
5810 #define HAVE_LC_MESSAGES 1
5817 for ac_prog
in bison
5819 # Extract the first word of "$ac_prog", so it can be a program name with args.
5820 set dummy
$ac_prog; ac_word
=$2
5821 echo "$as_me:$LINENO: checking for $ac_word" >&5
5822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5823 if test "${ac_cv_prog_INTLBISON+set}" = set; then
5824 echo $ECHO_N "(cached) $ECHO_C" >&6
5826 if test -n "$INTLBISON"; then
5827 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
5829 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5833 test -z "$as_dir" && as_dir
=.
5834 for ac_exec_ext
in '' $ac_executable_extensions; do
5835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5836 ac_cv_prog_INTLBISON
="$ac_prog"
5837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5845 INTLBISON
=$ac_cv_prog_INTLBISON
5846 if test -n "$INTLBISON"; then
5847 echo "$as_me:$LINENO: result: $INTLBISON" >&5
5848 echo "${ECHO_T}$INTLBISON" >&6
5850 echo "$as_me:$LINENO: result: no" >&5
5851 echo "${ECHO_T}no" >&6
5854 test -n "$INTLBISON" && break
5857 if test -z "$INTLBISON"; then
5860 echo "$as_me:$LINENO: checking version of bison" >&5
5861 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
5862 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
5863 case $ac_prog_version in
5864 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
5865 1.2[6-9]* |
1.
[3-9][0-9]* |
[2-9].
*)
5866 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
5867 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
5869 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
5870 echo "${ECHO_T}$ac_prog_version" >&6
5872 if test $ac_verc_fail = yes; then
5891 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5892 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5893 # Check whether --enable-nls or --disable-nls was given.
5894 if test "${enable_nls+set}" = set; then
5895 enableval
="$enable_nls"
5900 echo "$as_me:$LINENO: result: $USE_NLS" >&5
5901 echo "${ECHO_T}$USE_NLS" >&6
5906 BUILD_INCLUDED_LIBINTL
=no
5907 USE_INCLUDED_LIBINTL
=no
5913 if test "$USE_NLS" = "yes"; then
5914 gt_use_preinstalled_gnugettext
=no
5916 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
5917 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
5919 # Check whether --with-included-gettext or --without-included-gettext was given.
5920 if test "${with_included_gettext+set}" = set; then
5921 withval
="$with_included_gettext"
5922 nls_cv_force_use_gnu_gettext
=$withval
5924 nls_cv_force_use_gnu_gettext
=no
5926 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
5927 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
5929 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
5930 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
5937 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
5938 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
5939 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
5940 echo $ECHO_N "(cached) $ECHO_C" >&6
5942 cat >conftest.
$ac_ext <<_ACEOF
5943 #line $LINENO "configure"
5946 cat confdefs.h
>>conftest.
$ac_ext
5947 cat >>conftest.
$ac_ext <<_ACEOF
5948 /* end confdefs.h. */
5949 #include <libintl.h>
5950 extern int _nl_msg_cat_cntr;
5951 extern int *_nl_domain_bindings;
5955 bindtextdomain ("", "");
5956 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
5961 rm -f conftest.
$ac_objext conftest
$ac_exeext
5962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5963 (eval $ac_link) 2>&5
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); } &&
5967 { ac_try
='test -s conftest$ac_exeext'
5968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972 (exit $ac_status); }; }; then
5973 gt_cv_func_gnugettext1_libc
=yes
5975 echo "$as_me: failed program was:" >&5
5976 sed 's/^/| /' conftest.
$ac_ext >&5
5978 gt_cv_func_gnugettext1_libc
=no
5980 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5982 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
5983 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
5985 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
5991 acl_save_prefix
="$prefix"
5992 prefix
="$acl_final_prefix"
5993 acl_save_exec_prefix
="$exec_prefix"
5994 exec_prefix
="$acl_final_exec_prefix"
5996 eval additional_includedir
=\"$includedir\"
5997 eval additional_libdir
=\"$libdir\"
5999 exec_prefix
="$acl_save_exec_prefix"
6000 prefix
="$acl_save_prefix"
6003 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
6004 if test "${with_libintl_prefix+set}" = set; then
6005 withval
="$with_libintl_prefix"
6007 if test "X$withval" = "Xno"; then
6010 if test "X$withval" = "X"; then
6012 acl_save_prefix
="$prefix"
6013 prefix
="$acl_final_prefix"
6014 acl_save_exec_prefix
="$exec_prefix"
6015 exec_prefix
="$acl_final_exec_prefix"
6017 eval additional_includedir
=\"$includedir\"
6018 eval additional_libdir
=\"$libdir\"
6020 exec_prefix
="$acl_save_exec_prefix"
6021 prefix
="$acl_save_prefix"
6024 additional_includedir
="$withval/include"
6025 additional_libdir
="$withval/lib"
6035 names_already_handled
=
6036 names_next_round
='intl '
6037 while test -n "$names_next_round"; do
6038 names_this_round
="$names_next_round"
6040 for name
in $names_this_round; do
6042 for n
in $names_already_handled; do
6043 if test "$n" = "$name"; then
6048 if test -z "$already_handled"; then
6049 names_already_handled
="$names_already_handled $name"
6050 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6051 eval value
=\"\
$HAVE_LIB$uppername\"
6052 if test -n "$value"; then
6053 if test "$value" = yes; then
6054 eval value
=\"\
$LIB$uppername\"
6055 test -z "$value" || LIBINTL
="${LIBINTL}${LIBINTL:+ }$value"
6056 eval value
=\"\
$LTLIB$uppername\"
6057 test -z "$value" || LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$value"
6066 if test $use_additional = yes; then
6067 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6068 found_dir
="$additional_libdir"
6069 found_so
="$additional_libdir/lib$name.$shlibext"
6070 if test -f "$additional_libdir/lib$name.la"; then
6071 found_la
="$additional_libdir/lib$name.la"
6074 if test -f "$additional_libdir/lib$name.$libext"; then
6075 found_dir
="$additional_libdir"
6076 found_a
="$additional_libdir/lib$name.$libext"
6077 if test -f "$additional_libdir/lib$name.la"; then
6078 found_la
="$additional_libdir/lib$name.la"
6083 if test "X$found_dir" = "X"; then
6084 for x
in $LDFLAGS $LTLIBINTL; do
6086 acl_save_prefix
="$prefix"
6087 prefix
="$acl_final_prefix"
6088 acl_save_exec_prefix
="$exec_prefix"
6089 exec_prefix
="$acl_final_exec_prefix"
6091 exec_prefix
="$acl_save_exec_prefix"
6092 prefix
="$acl_save_prefix"
6096 dir
=`echo "X$x" | sed -e 's/^X-L//'`
6097 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6099 found_so
="$dir/lib$name.$shlibext"
6100 if test -f "$dir/lib$name.la"; then
6101 found_la
="$dir/lib$name.la"
6104 if test -f "$dir/lib$name.$libext"; then
6106 found_a
="$dir/lib$name.$libext"
6107 if test -f "$dir/lib$name.la"; then
6108 found_la
="$dir/lib$name.la"
6114 if test "X$found_dir" != "X"; then
6119 if test "X$found_dir" != "X"; then
6120 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6121 if test "X$found_so" != "X"; then
6122 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
6123 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
6126 for x
in $ltrpathdirs; do
6127 if test "X$x" = "X$found_dir"; then
6132 if test -z "$haveit"; then
6133 ltrpathdirs
="$ltrpathdirs $found_dir"
6135 if test "$hardcode_direct" = yes; then
6136 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
6138 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
6139 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
6141 for x
in $rpathdirs; do
6142 if test "X$x" = "X$found_dir"; then
6147 if test -z "$haveit"; then
6148 rpathdirs
="$rpathdirs $found_dir"
6152 for x
in $LDFLAGS $LIBINTL; do
6154 acl_save_prefix
="$prefix"
6155 prefix
="$acl_final_prefix"
6156 acl_save_exec_prefix
="$exec_prefix"
6157 exec_prefix
="$acl_final_exec_prefix"
6159 exec_prefix
="$acl_save_exec_prefix"
6160 prefix
="$acl_save_prefix"
6162 if test "X$x" = "X-L$found_dir"; then
6167 if test -z "$haveit"; then
6168 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6170 if test "$hardcode_minus_L" != no
; then
6171 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
6173 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
6179 if test "X$found_a" != "X"; then
6180 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_a"
6182 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6185 additional_includedir
=
6186 case "$found_dir" in
6188 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6189 additional_includedir
="$basedir/include"
6192 if test "X$additional_includedir" != "X"; then
6193 if test "X$additional_includedir" != "X/usr/include"; then
6195 if test "X$additional_includedir" = "X/usr/local/include"; then
6196 if test -n "$GCC"; then
6198 linux
*) haveit
=yes;;
6202 if test -z "$haveit"; then
6203 for x
in $CPPFLAGS $INCINTL; do
6205 acl_save_prefix
="$prefix"
6206 prefix
="$acl_final_prefix"
6207 acl_save_exec_prefix
="$exec_prefix"
6208 exec_prefix
="$acl_final_exec_prefix"
6210 exec_prefix
="$acl_save_exec_prefix"
6211 prefix
="$acl_save_prefix"
6213 if test "X$x" = "X-I$additional_includedir"; then
6218 if test -z "$haveit"; then
6219 if test -d "$additional_includedir"; then
6220 INCINTL
="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6226 if test -n "$found_la"; then
6227 save_libdir
="$libdir"
6229 */* |
*\\*) .
"$found_la" ;;
6230 *) .
"./$found_la" ;;
6232 libdir
="$save_libdir"
6233 for dep
in $dependency_libs; do
6236 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
6237 if test "X$additional_libdir" != "X/usr/lib"; then
6239 if test "X$additional_libdir" = "X/usr/local/lib"; then
6240 if test -n "$GCC"; then
6242 linux
*) haveit
=yes;;
6246 if test -z "$haveit"; then
6248 for x
in $LDFLAGS $LIBINTL; do
6250 acl_save_prefix
="$prefix"
6251 prefix
="$acl_final_prefix"
6252 acl_save_exec_prefix
="$exec_prefix"
6253 exec_prefix
="$acl_final_exec_prefix"
6255 exec_prefix
="$acl_save_exec_prefix"
6256 prefix
="$acl_save_prefix"
6258 if test "X$x" = "X-L$additional_libdir"; then
6263 if test -z "$haveit"; then
6264 if test -d "$additional_libdir"; then
6265 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6269 for x
in $LDFLAGS $LTLIBINTL; do
6271 acl_save_prefix
="$prefix"
6272 prefix
="$acl_final_prefix"
6273 acl_save_exec_prefix
="$exec_prefix"
6274 exec_prefix
="$acl_final_exec_prefix"
6276 exec_prefix
="$acl_save_exec_prefix"
6277 prefix
="$acl_save_prefix"
6279 if test "X$x" = "X-L$additional_libdir"; then
6284 if test -z "$haveit"; then
6285 if test -d "$additional_libdir"; then
6286 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6293 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
6294 if test "$enable_rpath" != no
; then
6296 for x
in $rpathdirs; do
6297 if test "X$x" = "X$dir"; then
6302 if test -z "$haveit"; then
6303 rpathdirs
="$rpathdirs $dir"
6306 for x
in $ltrpathdirs; do
6307 if test "X$x" = "X$dir"; then
6312 if test -z "$haveit"; then
6313 ltrpathdirs
="$ltrpathdirs $dir"
6318 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6321 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6324 LIBINTL
="${LIBINTL}${LIBINTL:+ }$dep"
6325 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6331 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
6332 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6338 if test "X$rpathdirs" != "X"; then
6339 if test -n "$hardcode_libdir_separator"; then
6341 for found_dir
in $rpathdirs; do
6342 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6344 acl_save_libdir
="$libdir"
6346 eval flag
=\"$hardcode_libdir_flag_spec\"
6347 libdir
="$acl_save_libdir"
6348 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
6350 for found_dir
in $rpathdirs; do
6351 acl_save_libdir
="$libdir"
6353 eval flag
=\"$hardcode_libdir_flag_spec\"
6354 libdir
="$acl_save_libdir"
6355 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
6359 if test "X$ltrpathdirs" != "X"; then
6360 for found_dir
in $ltrpathdirs; do
6361 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6365 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
6366 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
6367 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
6368 echo $ECHO_N "(cached) $ECHO_C" >&6
6370 gt_save_CPPFLAGS
="$CPPFLAGS"
6371 CPPFLAGS
="$CPPFLAGS $INCINTL"
6372 gt_save_LIBS
="$LIBS"
6373 LIBS
="$LIBS $LIBINTL"
6374 cat >conftest.
$ac_ext <<_ACEOF
6375 #line $LINENO "configure"
6378 cat confdefs.h
>>conftest.
$ac_ext
6379 cat >>conftest.
$ac_ext <<_ACEOF
6380 /* end confdefs.h. */
6381 #include <libintl.h>
6382 extern int _nl_msg_cat_cntr;
6387 const char *_nl_expand_alias ();
6391 bindtextdomain ("", "");
6392 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
6397 rm -f conftest.
$ac_objext conftest
$ac_exeext
6398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6399 (eval $ac_link) 2>&5
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); } &&
6403 { ac_try
='test -s conftest$ac_exeext'
6404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); }; }; then
6409 gt_cv_func_gnugettext1_libintl
=yes
6411 echo "$as_me: failed program was:" >&5
6412 sed 's/^/| /' conftest.
$ac_ext >&5
6414 gt_cv_func_gnugettext1_libintl
=no
6416 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6417 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
6418 LIBS
="$LIBS $LIBICONV"
6419 cat >conftest.
$ac_ext <<_ACEOF
6420 #line $LINENO "configure"
6423 cat confdefs.h
>>conftest.
$ac_ext
6424 cat >>conftest.
$ac_ext <<_ACEOF
6425 /* end confdefs.h. */
6426 #include <libintl.h>
6427 extern int _nl_msg_cat_cntr;
6432 const char *_nl_expand_alias ();
6436 bindtextdomain ("", "");
6437 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
6442 rm -f conftest.
$ac_objext conftest
$ac_exeext
6443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6444 (eval $ac_link) 2>&5
6446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447 (exit $ac_status); } &&
6448 { ac_try
='test -s conftest$ac_exeext'
6449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); }; }; then
6454 LIBINTL
="$LIBINTL $LIBICONV"
6455 LTLIBINTL
="$LTLIBINTL $LTLIBICONV"
6456 gt_cv_func_gnugettext1_libintl
=yes
6459 echo "$as_me: failed program was:" >&5
6460 sed 's/^/| /' conftest.
$ac_ext >&5
6463 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6465 CPPFLAGS
="$gt_save_CPPFLAGS"
6466 LIBS
="$gt_save_LIBS"
6468 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
6469 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
6472 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6473 ||
{ test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6474 && test "$PACKAGE" != gettext-runtime \
6475 && test "$PACKAGE" != gettext-tools
; }; then
6476 gt_use_preinstalled_gnugettext
=yes
6484 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
6485 nls_cv_use_gnu_gettext
=yes
6489 if test "$nls_cv_use_gnu_gettext" = "yes"; then
6490 BUILD_INCLUDED_LIBINTL
=yes
6491 USE_INCLUDED_LIBINTL
=yes
6492 LIBINTL
="\${top_builddir}/intl/libintl.a $LIBICONV"
6493 LTLIBINTL
="\${top_builddir}/intl/libintl.a $LTLIBICONV"
6494 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
6497 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6498 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
6503 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6504 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
6506 cat >>confdefs.h
<<\_ACEOF
6507 #define ENABLE_NLS 1
6515 echo "$as_me:$LINENO: checking whether to use NLS" >&5
6516 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
6517 echo "$as_me:$LINENO: result: $USE_NLS" >&5
6518 echo "${ECHO_T}$USE_NLS" >&6
6519 if test "$USE_NLS" = "yes"; then
6520 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
6521 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
6522 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6523 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6524 gt_source
="external libintl"
6529 gt_source
="included intl directory"
6531 echo "$as_me:$LINENO: result: $gt_source" >&5
6532 echo "${ECHO_T}$gt_source" >&6
6535 if test "$USE_NLS" = "yes"; then
6537 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6538 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6539 echo "$as_me:$LINENO: checking how to link with libintl" >&5
6540 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
6541 echo "$as_me:$LINENO: result: $LIBINTL" >&5
6542 echo "${ECHO_T}$LIBINTL" >&6
6544 for element
in $INCINTL; do
6546 for x
in $CPPFLAGS; do
6548 acl_save_prefix
="$prefix"
6549 prefix
="$acl_final_prefix"
6550 acl_save_exec_prefix
="$exec_prefix"
6551 exec_prefix
="$acl_final_exec_prefix"
6553 exec_prefix
="$acl_save_exec_prefix"
6554 prefix
="$acl_save_prefix"
6556 if test "X$x" = "X$element"; then
6561 if test -z "$haveit"; then
6562 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
6569 cat >>confdefs.h
<<\_ACEOF
6570 #define HAVE_GETTEXT 1
6574 cat >>confdefs.h
<<\_ACEOF
6575 #define HAVE_DCGETTEXT 1
6584 if test "$PACKAGE" = gettext-runtime ||
test "$PACKAGE" = gettext-tools
; then
6585 BUILD_INCLUDED_LIBINTL
=yes
6593 nls_cv_header_libgt
=
6604 if test "$USE_INCLUDED_LIBINTL" = yes; then
6605 INTLOBJS
="\$(GETTOBJS)"
6609 INTL_LIBTOOL_SUFFIX_PREFIX
=
6622 cat >>confdefs.h
<<_ACEOF
6623 #define LOCALEDIR "$localedir"
6627 cat >>confdefs.h
<<_ACEOF
6628 #define LOCALE_ALIAS_PATH "$aliaspath"
6632 cat >>confdefs.h
<<_ACEOF
6633 #define LIBDIR "$libdir"
6637 cat >>confdefs.h
<<_ACEOF
6638 #define INSTALLDIR "$libdir"
6642 cat >>confdefs.h
<<\_ACEOF
6643 #define IN_LIBINTL 1
6647 cat >>confdefs.h
<<\_ACEOF
6648 #define IN_LIBRARY 1
6652 cat >>confdefs.h
<<\_ACEOF
6653 #define DEPENDS_ON_LIBICONV 1
6657 cat >>confdefs.h
<<\_ACEOF
6658 #define ENABLE_RELOCATABLE 1
6662 cat >>confdefs.h
<<\_ACEOF
6663 #define NO_XMALLOC 1
6667 cat >>confdefs.h
<<\_ACEOF
6668 #define set_relocation_prefix libintl_set_relocation_prefix
6672 cat >>confdefs.h
<<\_ACEOF
6673 #define relocate libintl_relocate
6677 ac_config_files
="$ac_config_files Makefile"
6678 cat >confcache
<<\_ACEOF
6679 # This file is a shell script that caches the results of configure
6680 # tests run on this system so they can be shared between configure
6681 # scripts and configure runs, see configure's option --config-cache.
6682 # It is not useful on other systems. If it contains results you don't
6683 # want to keep, you may remove or edit it.
6685 # config.status only pays attention to the cache file if you give it
6686 # the --recheck option to rerun configure.
6688 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6689 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6694 # The following way of writing the cache mishandles newlines in values,
6695 # but we know of no workaround that is simple, portable, and efficient.
6696 # So, don't put newlines in cache variables' values.
6697 # Ultrix sh set writes to stderr and can't be redirected directly,
6698 # and sets the high bit in the cache file unless we assign to the vars.
6701 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6703 # `set' does not quote correctly, so add quotes (double-quote
6704 # substitution turns \\\\ into \\, and sed turns \\ into \).
6707 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6710 # `set' quotes correctly as required by POSIX, so do not add quotes.
6712 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6719 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6721 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6723 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
6724 if test -w $cache_file; then
6725 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6726 cat confcache
>$cache_file
6728 echo "not updating unwritable cache $cache_file"
6733 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6734 # Let make expand exec_prefix.
6735 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6737 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6738 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6739 # trailing colons and then remove the whole line if VPATH becomes empty
6740 # (actually we leave an empty line to preserve line numbers).
6741 if test "x$srcdir" = x.
; then
6742 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
6743 s/:*\$(srcdir):*/:/;
6744 s/:*\${srcdir}:*/:/;
6746 s/^\([^=]*=[ ]*\):*/\1/;
6752 DEFS
=-DHAVE_CONFIG_H
6756 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
6757 # 1. Remove the extension, and $U if already installed.
6758 ac_i
=`echo "$ac_i" |
6759 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6761 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
6762 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
6766 LTLIBOBJS
=$ac_ltlibobjs
6770 : ${CONFIG_STATUS=./config.status}
6771 ac_clean_files_save
=$ac_clean_files
6772 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
6773 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6774 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6775 cat >$CONFIG_STATUS <<_ACEOF
6777 # Generated by $as_me.
6778 # Run this file to recreate the current configuration.
6779 # Compiler output produced by configure, useful for debugging
6780 # configure, is in config.log if it exists.
6785 SHELL=\${CONFIG_SHELL-$SHELL}
6788 cat >>$CONFIG_STATUS <<\_ACEOF
6789 ## --------------------- ##
6790 ## M4sh Initialization. ##
6791 ## --------------------- ##
6793 # Be Bourne compatible
6794 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
6797 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6798 # is contrary to our usage. Disable this feature.
6799 alias -g '${1+"$@"}'='"$@"'
6800 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
6804 # Support unset when possible.
6805 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
6812 # Work around bugs in pre-3.0 UWIN ksh.
6813 $as_unset ENV MAIL MAILPATH
6820 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6821 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6822 LC_TELEPHONE LC_TIME
6824 if (set +x
; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
6825 eval $as_var=C
; export $as_var
6831 # Required to use basename.
6832 if expr a
: '\(a\)' >/dev
/null
2>&1; then
6838 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
6839 as_basename
=basename
6845 # Name of the executable.
6846 as_me
=`$as_basename "$0" ||
6847 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6848 X"$0" : 'X\(//\)$' \| \
6849 X"$0" : 'X\(/\)$' \| \
6850 . : '\(.\)' 2>/dev/null ||
6852 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6853 /^X\/\(\/\/\)$/{ s//\1/; q; }
6854 /^X\/\(\/\).*/{ s//\1/; q; }
6858 # PATH needs CR, and LINENO needs CR and PATH.
6859 # Avoid depending upon Character Ranges.
6860 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
6861 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6862 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
6863 as_cr_digits
='0123456789'
6864 as_cr_alnum
=$as_cr_Letters$as_cr_digits
6866 # The user is always right.
6867 if test "${PATH_SEPARATOR+set}" != set; then
6868 echo "#! /bin/sh" >conf$$.sh
6869 echo "exit 0" >>conf$$.sh
6871 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6882 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
6883 test "x$as_lineno_1" != "x$as_lineno_2" &&
6884 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
6885 # Find who we are. Look in the path if we contain no path at all
6888 *[\\/]* ) as_myself
=$0 ;;
6889 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6893 test -z "$as_dir" && as_dir
=.
6894 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
6899 # We did not find ourselves, most probably we were run as `sh COMMAND'
6900 # in which case we are not to be found in the path.
6901 if test "x$as_myself" = x
; then
6904 if test ! -f "$as_myself"; then
6905 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6906 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6907 { (exit 1); exit 1; }; }
6909 case $CONFIG_SHELL in
6911 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6912 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
6915 test -z "$as_dir" && as_dir
=.
6916 for as_base
in sh bash ksh sh5
; do
6919 if ("$as_dir/$as_base" -c '
6922 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6923 test "x$as_lineno_1" != "x$as_lineno_2" &&
6924 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
6925 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
6926 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
6927 CONFIG_SHELL
=$as_dir/$as_base
6929 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6937 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6938 # uniformly replaced by the line number. The first 'sed' inserts a
6939 # line-number line before each line; the second 'sed' does the real
6940 # work. The second script uses 'N' to pair each line-number line
6941 # with the numbered line, and appends trailing '-' during
6942 # substitution so that $LINENO is not a special case at line end.
6943 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6944 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6945 sed '=' <$as_myself |
6950 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6953 s,^['$as_cr_digits']*\n,,
6955 chmod +x
$as_me.lineno ||
6956 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6957 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6958 { (exit 1); exit 1; }; }
6960 # Don't try to exec as it changes $[0], causing all sort of problems
6961 # (the dirname of $[0] is not the place where we might find the
6962 # original and so on. Autoconf is especially sensible to this).
6964 # Exit status is that of the last command.
6969 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6970 *c
*,-n*) ECHO_N
= ECHO_C
='
6972 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
6973 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
6976 if expr a
: '\(a\)' >/dev
/null
2>&1; then
6982 rm -f conf$$ conf$$.exe conf$$.
file
6984 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
6985 # We could just check for DJGPP; but this test a) works b) is more generic
6986 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6987 if test -f conf$$.exe
; then
6988 # Don't use ln at all; we don't have any links
6993 elif ln conf$$.
file conf$$
2>/dev
/null
; then
6998 rm -f conf$$ conf$$.exe conf$$.
file
7000 if mkdir
-p .
2>/dev
/null
; then
7006 as_executable_p
="test -f"
7008 # Sed expression to map a string onto a valid CPP name.
7009 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
7011 # Sed expression to map a string onto a valid variable name.
7012 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
7016 # We need space, tab and new line, in precisely that order.
7026 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7027 # report actual input values of CONFIG_FILES etc. instead of their
7028 # values after options handling. Logging --version etc. is OK.
7032 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7033 ## Running $as_me. ##
7038 This file was extended by $as_me, which was
7039 generated by GNU Autoconf 2.57. Invocation command line was
7041 CONFIG_FILES = $CONFIG_FILES
7042 CONFIG_HEADERS = $CONFIG_HEADERS
7043 CONFIG_LINKS = $CONFIG_LINKS
7044 CONFIG_COMMANDS = $CONFIG_COMMANDS
7048 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7052 # Files that config.status was made for.
7053 if test -n "$ac_config_files"; then
7054 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7057 if test -n "$ac_config_headers"; then
7058 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7061 if test -n "$ac_config_links"; then
7062 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7065 if test -n "$ac_config_commands"; then
7066 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7069 cat >>$CONFIG_STATUS <<\_ACEOF
7072 \`$as_me' instantiates files from templates according to the
7073 current configuration.
7075 Usage: $0 [OPTIONS] [FILE]...
7077 -h, --help print this help, then exit
7078 -V, --version print version number, then exit
7079 -q, --quiet do not print progress messages
7080 -d, --debug don't remove temporary files
7081 --recheck update $as_me by reconfiguring in the same conditions
7082 --file=FILE[:TEMPLATE]
7083 instantiate the configuration file FILE
7084 --header=FILE[:TEMPLATE]
7085 instantiate the configuration header FILE
7087 Configuration files:
7090 Configuration headers:
7093 Configuration commands:
7096 Report bugs to <bug-autoconf@gnu.org>."
7099 cat >>$CONFIG_STATUS <<_ACEOF
7102 configured by $0, generated by GNU Autoconf 2.57,
7103 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7105 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7106 Free Software Foundation, Inc.
7107 This config.status script is free software; the Free Software Foundation
7108 gives unlimited permission to copy, distribute and modify it."
7113 cat >>$CONFIG_STATUS <<\_ACEOF
7114 # If no file are specified by the user, then we need to provide default
7115 # value. By we need to know if files were specified by the user.
7121 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
7122 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
7130 *) # This is not an option, so the user has probably given explicit
7133 ac_need_defaults
=false
;;
7137 # Handling of the options.
7139 cat >>$CONFIG_STATUS <<\_ACEOF
7140 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
7142 --version |
--vers* |
-V )
7143 echo "$ac_cs_version"; exit 0 ;;
7145 # Conflict between --help and --header
7146 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7147 Try \`$0 --help' for more information." >&5
7148 echo "$as_me: error: ambiguous option: $1
7149 Try \`$0 --help' for more information." >&2;}
7150 { (exit 1); exit 1; }; };;
7151 --help |
--hel |
-h )
7152 echo "$ac_cs_usage"; exit 0 ;;
7153 --debug |
--d* |
-d )
7155 --file |
--fil |
--fi |
--f )
7157 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
7158 ac_need_defaults
=false
;;
7159 --header |
--heade |
--head |
--hea )
7161 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
7162 ac_need_defaults
=false
;;
7163 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
7164 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
7168 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7169 Try \`$0 --help' for more information." >&5
7170 echo "$as_me: error: unrecognized option: $1
7171 Try \`$0 --help' for more information." >&2;}
7172 { (exit 1); exit 1; }; } ;;
7174 *) ac_config_targets
="$ac_config_targets $1" ;;
7180 ac_configure_extra_args
=
7182 if $ac_cs_silent; then
7184 ac_configure_extra_args
="$ac_configure_extra_args --silent"
7188 cat >>$CONFIG_STATUS <<_ACEOF
7189 if \$ac_cs_recheck; then
7190 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7191 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7196 cat >>$CONFIG_STATUS <<_ACEOF
7198 # INIT-COMMANDS section.
7201 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
7202 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
7204 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
7205 # Capture the value of LINGUAS because we need it to compute CATALOGS.
7206 LINGUAS="${LINGUAS-%UNSET%}"
7213 cat >>$CONFIG_STATUS <<\_ACEOF
7214 for ac_config_target
in $ac_config_targets
7216 case "$ac_config_target" in
7217 # Handling of arguments.
7218 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
7219 "default-1" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
7220 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
7221 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7222 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7223 { (exit 1); exit 1; }; };;
7227 # If the user did not use the arguments to specify the items to instantiate,
7228 # then the envvar interface is used. Set only those that are not.
7229 # We use the long form for the default assignment because of an extremely
7230 # bizarre bug on SunOS 4.1.3.
7231 if $ac_need_defaults; then
7232 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
7233 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
7234 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
7237 # Have a temporary directory for convenience. Make it in the build tree
7238 # simply because there is no reason to put it here, and in addition,
7239 # creating and moving files from /tmp can sometimes cause problems.
7240 # Create a temporary directory, and hook for its removal unless debugging.
7243 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7244 trap '{ (exit 1); exit 1; }' 1 2 13 15
7247 # Create a (secure) tmp directory for tmp files.
7250 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7251 test -n "$tmp" && test -d "$tmp"
7254 tmp
=.
/confstat$$
-$RANDOM
7255 (umask 077 && mkdir
$tmp)
7258 echo "$me: cannot create a temporary directory in ." >&2
7259 { (exit 1); exit 1; }
7264 cat >>$CONFIG_STATUS <<_ACEOF
7267 # CONFIG_FILES section.
7270 # No need to generate the scripts if there are no CONFIG_FILES.
7271 # This happens for instance when ./config.status config.h
7272 if test -n "\$CONFIG_FILES"; then
7273 # Protect against being on the right side of a sed subst in config.status.
7274 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7275 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7276 s,@SHELL@,$SHELL,;t t
7277 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7278 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7279 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7280 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7281 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7282 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7283 s,@exec_prefix@,$exec_prefix,;t t
7284 s,@prefix@,$prefix,;t t
7285 s,@program_transform_name@,$program_transform_name,;t t
7286 s,@bindir@,$bindir,;t t
7287 s,@sbindir@,$sbindir,;t t
7288 s,@libexecdir@,$libexecdir,;t t
7289 s,@datadir@,$datadir,;t t
7290 s,@sysconfdir@,$sysconfdir,;t t
7291 s,@sharedstatedir@,$sharedstatedir,;t t
7292 s,@localstatedir@,$localstatedir,;t t
7293 s,@libdir@,$libdir,;t t
7294 s,@includedir@,$includedir,;t t
7295 s,@oldincludedir@,$oldincludedir,;t t
7296 s,@infodir@,$infodir,;t t
7297 s,@mandir@,$mandir,;t t
7298 s,@build_alias@,$build_alias,;t t
7299 s,@host_alias@,$host_alias,;t t
7300 s,@target_alias@,$target_alias,;t t
7302 s,@ECHO_C@,$ECHO_C,;t t
7303 s,@ECHO_N@,$ECHO_N,;t t
7304 s,@ECHO_T@,$ECHO_T,;t t
7306 s,@SET_MAKE@,$SET_MAKE,;t t
7307 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7308 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7309 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7310 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
7311 s,@USE_NLS@,$USE_NLS,;t t
7312 s,@MSGFMT@,$MSGFMT,;t t
7313 s,@GMSGFMT@,$GMSGFMT,;t t
7314 s,@XGETTEXT@,$XGETTEXT,;t t
7315 s,@MSGMERGE@,$MSGMERGE,;t t
7317 s,@CFLAGS@,$CFLAGS,;t t
7318 s,@LDFLAGS@,$LDFLAGS,;t t
7319 s,@CPPFLAGS@,$CPPFLAGS,;t t
7320 s,@ac_ct_CC@,$ac_ct_CC,;t t
7321 s,@EXEEXT@,$EXEEXT,;t t
7322 s,@OBJEXT@,$OBJEXT,;t t
7323 s,@build@,$build,;t t
7324 s,@build_cpu@,$build_cpu,;t t
7325 s,@build_vendor@,$build_vendor,;t t
7326 s,@build_os@,$build_os,;t t
7328 s,@host_cpu@,$host_cpu,;t t
7329 s,@host_vendor@,$host_vendor,;t t
7330 s,@host_os@,$host_os,;t t
7331 s,@RANLIB@,$RANLIB,;t t
7332 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7334 s,@EGREP@,$EGREP,;t t
7335 s,@ALLOCA@,$ALLOCA,;t t
7336 s,@GLIBC21@,$GLIBC21,;t t
7337 s,@LIBICONV@,$LIBICONV,;t t
7338 s,@LTLIBICONV@,$LTLIBICONV,;t t
7339 s,@INTLBISON@,$INTLBISON,;t t
7340 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
7341 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
7342 s,@CATOBJEXT@,$CATOBJEXT,;t t
7343 s,@DATADIRNAME@,$DATADIRNAME,;t t
7344 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
7345 s,@GENCAT@,$GENCAT,;t t
7346 s,@INTLOBJS@,$INTLOBJS,;t t
7347 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
7348 s,@INTLLIBS@,$INTLLIBS,;t t
7349 s,@LIBINTL@,$LIBINTL,;t t
7350 s,@LTLIBINTL@,$LTLIBINTL,;t t
7351 s,@POSUB@,$POSUB,;t t
7352 s,@LIBOBJS@,$LIBOBJS,;t t
7353 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7358 cat >>$CONFIG_STATUS <<\_ACEOF
7359 # Split the substitutions into bite-sized pieces for seds with
7360 # small command number limits, like on Digital OSF/1 and HP-UX.
7362 ac_sed_frag
=1 # Number of current file.
7363 ac_beg
=1 # First line for current file.
7364 ac_end
=$ac_max_sed_lines # Line after last line for current file.
7367 while $ac_more_lines; do
7368 if test $ac_beg -gt 1; then
7369 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
7371 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
7373 if test ! -s $tmp/subs.frag
; then
7376 # The purpose of the label and of the branching condition is to
7377 # speed up the sed processing (if there are no `@' at all, there
7378 # is no need to browse any of the substitutions).
7379 # These are the two extra sed commands mentioned above.
7381 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
7382 if test -z "$ac_sed_cmds"; then
7383 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
7385 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7387 ac_sed_frag
=`expr $ac_sed_frag + 1`
7389 ac_end
=`expr $ac_end + $ac_max_sed_lines`
7392 if test -z "$ac_sed_cmds"; then
7395 fi # test -n "$CONFIG_FILES"
7398 cat >>$CONFIG_STATUS <<\_ACEOF
7399 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
7400 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7402 - |
*:- |
*:-:* ) # input from stdin
7404 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7405 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7406 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7407 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7408 * ) ac_file_in
=$ac_file.
in ;;
7411 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7412 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
7413 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7414 X"$ac_file" : 'X\(//\)[^/]' \| \
7415 X"$ac_file" : 'X\(//\)$' \| \
7416 X"$ac_file" : 'X\(/\)' \| \
7417 . : '\(.\)' 2>/dev/null ||
7419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7420 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7421 /^X\(\/\/\)$/{ s//\1/; q; }
7422 /^X\(\/\).*/{ s//\1/; q; }
7424 { if $as_mkdir_p; then
7429 while test ! -d "$as_dir"; do
7430 as_dirs
="$as_dir $as_dirs"
7431 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
7432 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7433 X"$as_dir" : 'X\(//\)[^/]' \| \
7434 X"$as_dir" : 'X\(//\)$' \| \
7435 X"$as_dir" : 'X\(/\)' \| \
7436 . : '\(.\)' 2>/dev/null ||
7438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7439 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7440 /^X\(\/\/\)$/{ s//\1/; q; }
7441 /^X\(\/\).*/{ s//\1/; q; }
7444 test ! -n "$as_dirs" || mkdir
$as_dirs
7445 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7446 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7447 { (exit 1); exit 1; }; }; }
7451 if test "$ac_dir" != .
; then
7452 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7453 # A "../" for each directory in $ac_dir_suffix.
7454 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7456 ac_dir_suffix
= ac_top_builddir
=
7460 .
) # No --srcdir option. We are building in place.
7462 if test -z "$ac_top_builddir"; then
7465 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
7467 [\\/]* | ?
:[\\/]* ) # Absolute path.
7468 ac_srcdir
=$srcdir$ac_dir_suffix;
7469 ac_top_srcdir
=$srcdir ;;
7471 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
7472 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
7474 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7476 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
7477 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7478 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7479 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7483 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
7484 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
7487 if test x
"$ac_file" != x-
; then
7488 { echo "$as_me:$LINENO: creating $ac_file" >&5
7489 echo "$as_me: creating $ac_file" >&6;}
7492 # Let's still pretend it is `configure' which instantiates (i.e., don't
7493 # use $as_me), people would be surprised to read:
7494 # /* config.h. Generated by config.status. */
7495 if test x
"$ac_file" = x-
; then
7498 configure_input
="$ac_file. "
7500 configure_input
=$configure_input"Generated from `echo $ac_file_in |
7501 sed 's,.*/,,'` by configure."
7503 # First look for the input files in the build tree, otherwise in the
7505 ac_file_inputs
=`IFS=:
7506 for f in $ac_file_in; do
7508 -) echo $tmp/stdin ;;
7510 # Absolute (can't be DOS-style, as IFS=:)
7511 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7512 echo "$as_me: error: cannot find input file: $f" >&2;}
7513 { (exit 1); exit 1; }; }
7516 if test -f "$f"; then
7519 elif test -f "$srcdir/$f"; then
7524 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7525 echo "$as_me: error: cannot find input file: $f" >&2;}
7526 { (exit 1); exit 1; }; }
7529 done` ||
{ (exit 1); exit 1; }
7531 cat >>$CONFIG_STATUS <<_ACEOF
7535 cat >>$CONFIG_STATUS <<\_ACEOF
7537 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
7538 s
,@configure_input@
,$configure_input,;t t
7539 s
,@srcdir@
,$ac_srcdir,;t t
7540 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
7541 s
,@top_srcdir@
,$ac_top_srcdir,;t t
7542 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
7543 s
,@builddir@
,$ac_builddir,;t t
7544 s
,@abs_builddir@
,$ac_abs_builddir,;t t
7545 s
,@top_builddir@
,$ac_top_builddir,;t t
7546 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
7547 s
,@INSTALL@
,$ac_INSTALL,;t t
7548 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7550 if test x"$ac_file" != x-; then
7551 mv $tmp/out $ac_file
7559 cat >>$CONFIG_STATUS <<\_ACEOF
7562 # CONFIG_HEADER section.
7565 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
7566 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7568 # ac_d sets the value in "#define NAME VALUE" lines.
7569 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7570 ac_dB
='[ ].*$,\1#\2'
7573 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7574 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7575 ac_uB
='$,\1#\2define\3'
7579 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
7580 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7582 - |
*:- |
*:-:* ) # input from stdin
7584 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7585 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7586 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7587 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7588 * ) ac_file_in
=$ac_file.
in ;;
7591 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
7592 echo "$as_me: creating $ac_file" >&6;}
7594 # First look for the input files in the build tree, otherwise in the
7596 ac_file_inputs
=`IFS=:
7597 for f in $ac_file_in; do
7599 -) echo $tmp/stdin ;;
7601 # Absolute (can't be DOS-style, as IFS=:)
7602 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7603 echo "$as_me: error: cannot find input file: $f" >&2;}
7604 { (exit 1); exit 1; }; }
7607 if test -f "$f"; then
7610 elif test -f "$srcdir/$f"; then
7615 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7616 echo "$as_me: error: cannot find input file: $f" >&2;}
7617 { (exit 1); exit 1; }; }
7620 done` ||
{ (exit 1); exit 1; }
7621 # Remove the trailing spaces.
7622 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7626 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7627 # `conftest.undefs', that substitutes the proper values into
7628 # config.h.in to produce config.h. The first handles `#define'
7629 # templates, and the second `#undef' templates.
7630 # And first: Protect against being on the right side of a sed subst in
7631 # config.status. Protect against being in an unquoted here document
7633 rm -f conftest.defines conftest.undefs
7634 # Using a here document instead of a string reduces the quoting nightmare.
7635 # Putting comments in sed scripts is not portable.
7637 # `end' is used to avoid that the second main sed command (meant for
7638 # 0-ary CPP macros) applies to n-ary macro definitions.
7639 # See the Autoconf documentation for `clear'.
7640 cat >confdef2sed.
sed <<\_ACEOF
7645 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7647 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7650 # If some macros were called several times there might be several times
7651 # the same #defines, which is useless. Nevertheless, we may not want to
7652 # sort them, since we want the *last* AC-DEFINE to be honored.
7653 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7654 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7655 rm -f confdef2sed.sed
7657 # This sed command replaces #undef with comments. This is necessary, for
7658 # example, in the case of _POSIX_SOURCE, which is predefined and required
7659 # on some systems where configure will not decide to define it.
7660 cat >>conftest.undefs <<\_ACEOF
7661 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7664 # Break up conftest.defines because some shells have a limit on the size
7665 # of here documents, and old seds have small limits too (100 cmds).
7666 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7667 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7668 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7669 echo ' :' >>$CONFIG_STATUS
7671 while grep . conftest.defines >/dev/null
7673 # Write a limited-size here document to $tmp/defines.sed.
7674 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7675 # Speed up: don't consider the non `#define' lines.
7676 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7677 # Work around the forget-to-reset-the-flag bug.
7678 echo 't clr' >>$CONFIG_STATUS
7679 echo ': clr' >>$CONFIG_STATUS
7680 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
7682 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7686 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
7687 rm -f conftest.defines
7688 mv conftest.
tail conftest.defines
7690 rm -f conftest.defines
7691 echo ' fi # grep' >>$CONFIG_STATUS
7692 echo >>$CONFIG_STATUS
7694 # Break up conftest.undefs because some shells have a limit on the size
7695 # of here documents, and old seds have small limits too (100 cmds).
7696 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7698 while grep . conftest.undefs
>/dev
/null
7700 # Write a limited-size here document to $tmp/undefs.sed.
7701 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7702 # Speed up: don't consider the non
`#undef'
7703 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7704 # Work around the forget-to-reset-the-flag bug.
7705 echo 't clr' >>$CONFIG_STATUS
7706 echo ': clr' >>$CONFIG_STATUS
7707 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7709 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7713 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7714 rm -f conftest.undefs
7715 mv conftest.tail conftest.undefs
7717 rm -f conftest.undefs
7719 cat >>$CONFIG_STATUS <<\_ACEOF
7720 # Let's still pretend it is `configure
' which instantiates (i.e., don't
7721 # use $as_me), people would be surprised to read:
7722 # /* config.h. Generated by config.status. */
7723 if test x
"$ac_file" = x-
; then
7724 echo "/* Generated by configure. */" >$tmp/config.h
7726 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7728 cat $tmp/in >>$tmp/config.h
7730 if test x
"$ac_file" != x-
; then
7731 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
7732 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7733 echo "$as_me: $ac_file is unchanged" >&6;}
7735 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
7736 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7737 X"$ac_file" : 'X\(//\)[^/]' \| \
7738 X"$ac_file" : 'X\(//\)$' \| \
7739 X"$ac_file" : 'X\(/\)' \| \
7740 . : '\(.\)' 2>/dev/null ||
7742 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7743 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7744 /^X\(\/\/\)$/{ s//\1/; q; }
7745 /^X\(\/\).*/{ s//\1/; q; }
7747 { if $as_mkdir_p; then
7752 while test ! -d "$as_dir"; do
7753 as_dirs
="$as_dir $as_dirs"
7754 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
7755 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7756 X"$as_dir" : 'X\(//\)[^/]' \| \
7757 X"$as_dir" : 'X\(//\)$' \| \
7758 X"$as_dir" : 'X\(/\)' \| \
7759 . : '\(.\)' 2>/dev/null ||
7761 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7762 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7763 /^X\(\/\/\)$/{ s//\1/; q; }
7764 /^X\(\/\).*/{ s//\1/; q; }
7767 test ! -n "$as_dirs" || mkdir
$as_dirs
7768 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7769 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7770 { (exit 1); exit 1; }; }; }
7773 mv $tmp/config.h
$ac_file
7781 cat >>$CONFIG_STATUS <<\_ACEOF
7784 # CONFIG_COMMANDS section.
7786 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
7787 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
7788 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7789 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
7790 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7791 X"$ac_dest" : 'X\(//\)[^/]' \| \
7792 X"$ac_dest" : 'X\(//\)$' \| \
7793 X"$ac_dest" : 'X\(/\)' \| \
7794 . : '\(.\)' 2>/dev/null ||
7796 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7797 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7798 /^X\(\/\/\)$/{ s//\1/; q; }
7799 /^X\(\/\).*/{ s//\1/; q; }
7803 if test "$ac_dir" != .
; then
7804 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7805 # A "../" for each directory in $ac_dir_suffix.
7806 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7808 ac_dir_suffix
= ac_top_builddir
=
7812 .
) # No --srcdir option. We are building in place.
7814 if test -z "$ac_top_builddir"; then
7817 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
7819 [\\/]* | ?
:[\\/]* ) # Absolute path.
7820 ac_srcdir
=$srcdir$ac_dir_suffix;
7821 ac_top_srcdir
=$srcdir ;;
7823 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
7824 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
7826 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7828 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
7829 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7830 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7831 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7834 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7835 echo "$as_me: executing $ac_dest commands" >&6;}
7838 for ac_file
in $CONFIG_FILES; do
7839 # Support "outfile[:infile[:infile...]]"
7841 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7843 # PO directories have a Makefile.in generated from Makefile.in.in.
7844 case "$ac_file" in */Makefile.
in)
7845 # Adjust a relative srcdir.
7846 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
7847 ac_dir_suffix
="/`echo "$ac_dir"|sed 's%^\./%%'`"
7848 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
7849 # In autoconf-2.13 it is called $ac_given_srcdir.
7850 # In autoconf-2.50 it is called $srcdir.
7851 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
7852 case "$ac_given_srcdir" in
7853 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
7854 /*) top_srcdir
="$ac_given_srcdir" ;;
7855 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
7857 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
7858 rm -f "$ac_dir/POTFILES"
7859 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" ||
echo "creating $ac_dir/POTFILES"
7860 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" |
sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," |
sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
7861 POMAKEFILEDEPS
="POTFILES.in"
7862 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
7863 # on $ac_dir but don't depend on user-specified configuration
7865 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
7866 # The LINGUAS file contains the set of available languages.
7867 if test -n "$OBSOLETE_ALL_LINGUAS"; then
7868 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" ||
echo "setting ALL_LINGUAS in configure.in is obsolete"
7870 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
7871 # Hide the ALL_LINGUAS assigment from automake.
7872 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
7873 POMAKEFILEDEPS
="$POMAKEFILEDEPS LINGUAS"
7875 # The set of available languages was given in configure.in.
7876 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
7878 case "$ac_given_srcdir" in
7880 *) srcdirpre
='$(srcdir)/' ;;
7886 for lang
in $ALL_LINGUAS; do
7887 POFILES
="$POFILES $srcdirpre$lang.po"
7888 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
7889 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
7890 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
7892 # CATALOGS depends on both $ac_dir and the user's LINGUAS
7893 # environment variable.
7895 if test -n "$ALL_LINGUAS"; then
7896 for presentlang
in $ALL_LINGUAS; do
7898 if test "%UNSET%" != "$LINGUAS"; then
7899 desiredlanguages
="$LINGUAS"
7901 desiredlanguages
="$ALL_LINGUAS"
7903 for desiredlang
in $desiredlanguages; do
7904 # Use the presentlang catalog if desiredlang is
7905 # a. equal to presentlang, or
7906 # b. a variant of presentlang (because in this case,
7907 # presentlang can be used as a fallback for messages
7908 # which are not translated in the desiredlang catalog).
7909 case "$desiredlang" in
7910 "$presentlang"*) useit
=yes;;
7913 if test $useit = yes; then
7914 INST_LINGUAS
="$INST_LINGUAS $presentlang"
7919 if test -n "$INST_LINGUAS"; then
7920 for lang
in $INST_LINGUAS; do
7921 CATALOGS
="$CATALOGS $lang.gmo"
7924 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
7925 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
7926 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
7927 if test -f "$f"; then
7929 *.orig |
*.bak |
*~
) ;;
7930 *) cat "$f" >> "$ac_dir/Makefile" ;;
7942 cat >>$CONFIG_STATUS <<\_ACEOF
7944 { (exit 0); exit 0; }
7946 chmod +x
$CONFIG_STATUS
7947 ac_clean_files
=$ac_clean_files_save
7950 # configure is writing to config.log, and then calls config.status.
7951 # config.status does its own redirection, appending to config.log.
7952 # Unfortunately, on DOS this fails, as config.log is still kept open
7953 # by configure, so config.status won't be able to write to it; its
7954 # output is simply discarded. So we exec the FD to /dev/null,
7955 # effectively closing config.log, so it can be properly (re)opened and
7956 # appended to by config.status. When coming back to configure, we
7957 # need to make the FD available again.
7958 if test "$no_create" != yes; then
7960 ac_config_status_args
=
7961 test "$silent" = yes &&
7962 ac_config_status_args
="$ac_config_status_args --quiet"
7964 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
7966 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7967 # would make configure fail if this is the last instruction.
7968 $ac_cs_success ||
{ (exit 1); exit 1; }