Built win.arm64 against r3658
[kbuild-mirror.git] / src / oldsed / configure
blob0b01618f843eeaf0a4f22dd3626bb4f495baa5e9
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for sed 4.1.5.
5 # Report bugs to <bonzini@gnu.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
51 done
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
98 rm -f conf$$.sh
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
156 esac
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
240 IFS=" $as_nl"
242 # CDPATH.
243 $as_unset CDPATH
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251 exec 6>&1
254 # Initializations.
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
270 PACKAGE_NAME='sed'
271 PACKAGE_TARNAME='sed'
272 PACKAGE_VERSION='4.1.5'
273 PACKAGE_STRING='sed 4.1.5'
274 PACKAGE_BUGREPORT='bonzini@gnu.org'
276 ac_unique_file="sed/sed.c"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
279 #include <stdio.h>
280 #if HAVE_SYS_TYPES_H
281 # include <sys/types.h>
282 #endif
283 #if HAVE_SYS_STAT_H
284 # include <sys/stat.h>
285 #endif
286 #if STDC_HEADERS
287 # include <stdlib.h>
288 # include <stddef.h>
289 #else
290 # if HAVE_STDLIB_H
291 # include <stdlib.h>
292 # endif
293 #endif
294 #if HAVE_STRING_H
295 # if !STDC_HEADERS && HAVE_MEMORY_H
296 # include <memory.h>
297 # endif
298 # include <string.h>
299 #endif
300 #if HAVE_STRINGS_H
301 # include <strings.h>
302 #endif
303 #if HAVE_INTTYPES_H
304 # include <inttypes.h>
305 #else
306 # if HAVE_STDINT_H
307 # include <stdint.h>
308 # endif
309 #endif
310 #if HAVE_UNISTD_H
311 # include <unistd.h>
312 #endif"
314 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar SED_FEATURE_VERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE RANLIB ac_ct_RANLIB CPP EGREP HAVE__BOOL ALLOCA LIBOBJS TEST_REGEX_TRUE TEST_REGEX_FALSE BUILD_HTML_TRUE BUILD_HTML_FALSE TEXI2HTML MAKEINFO_HTML_TRUE MAKEINFO_HTML_FALSE TEXI2HTML_HTML_TRUE TEXI2HTML_HTML_FALSE MKINSTALLDIRS MSGFMT GMSGFMT XGETTEXT MSGMERGE build build_cpu build_vendor build_os host host_cpu host_vendor host_os GLIBC21 LIBICONV LTLIBICONV INTLBISON USE_NLS BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT INTLOBJS DATADIRNAME INSTOBJEXT GENCAT INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB LTLIBOBJS'
315 ac_subst_files=''
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
355 ac_prev=
356 for ac_option
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
361 ac_prev=
362 continue
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
369 case $ac_option in
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 bindir=$ac_optarg ;;
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file=$ac_optarg ;;
388 --config-cache | -C)
389 cache_file=config.cache ;;
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 ac_prev=datadir ;;
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 | --da=*)
395 datadir=$ac_optarg ;;
397 -disable-* | --disable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* | --enable-*)
407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 case $ac_option in
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 *) ac_optarg=yes ;;
416 esac
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix=$ac_optarg ;;
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
430 with_gas=yes ;;
432 -help | --help | --hel | --he | -h)
433 ac_init_help=long ;;
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir=$ac_optarg ;;
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 ac_prev=infodir ;;
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
456 -libdir | --libdir | --libdi | --libd)
457 ac_prev=libdir ;;
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 libdir=$ac_optarg ;;
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir=$ac_optarg ;;
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir=$ac_optarg ;;
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 ac_prev=mandir ;;
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 mandir=$ac_optarg ;;
482 -nfp | --nfp | --nf)
483 # Obsolete; use --without-fp.
484 with_fp=no ;;
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
488 no_create=yes ;;
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 no_recursion=yes ;;
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir=$ac_optarg ;;
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 ac_prev=prefix ;;
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 prefix=$ac_optarg ;;
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix=$ac_optarg ;;
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix=$ac_optarg ;;
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name=$ac_optarg ;;
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
541 silent=yes ;;
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 ac_prev=sbindir ;;
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 | --sbi=* | --sb=*)
547 sbindir=$ac_optarg ;;
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
552 | --sha | --sh)
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 | --sha=* | --sh=*)
558 sharedstatedir=$ac_optarg ;;
560 -site | --site | --sit)
561 ac_prev=site ;;
562 -site=* | --site=* | --sit=*)
563 site=$ac_optarg ;;
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 ac_prev=srcdir ;;
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 srcdir=$ac_optarg ;;
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575 sysconfdir=$ac_optarg ;;
577 -target | --target | --targe | --targ | --tar | --ta | --t)
578 ac_prev=target_alias ;;
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580 target_alias=$ac_optarg ;;
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 verbose=yes ;;
585 -version | --version | --versio | --versi | --vers | -V)
586 ac_init_version=: ;;
588 -with-* | --with-*)
589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 case $ac_option in
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 *) ac_optarg=yes ;;
598 esac
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* | --without-*)
602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
610 --x)
611 # Obsolete; use --with-x.
612 with_x=yes ;;
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619 x_includes=$ac_optarg ;;
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626 x_libraries=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
633 *=*)
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
641 export $ac_envvar ;;
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 esac
652 done
654 if test -n "$ac_prev"; then
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
663 eval ac_val=$`echo $ac_var`
664 case $ac_val in
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
668 esac
669 done
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val=$`echo $ac_var`
676 case $ac_val in
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
680 esac
681 done
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
697 cross_compiling=yes
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704 test "$silent" = yes && exec 6>/dev/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
717 echo X"$0" |
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
722 s/.*/./; q'`
723 srcdir=$ac_confdir
724 if test ! -r $srcdir/$ac_unique_file; then
725 srcdir=..
727 else
728 ac_srcdir_defaulted=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
734 else
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
756 ac_env_CC_value=$CC
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CPP_set=${CPP+set}
772 ac_env_CPP_value=$CPP
773 ac_cv_env_CPP_set=${CPP+set}
774 ac_cv_env_CPP_value=$CPP
777 # Report the --help message.
779 if test "$ac_init_help" = "long"; then
780 # Omit some internal or obsolete options to make the list less imposing.
781 # This message is too long to be a string in the A/UX 3.1 sh.
782 cat <<_ACEOF
783 \`configure' configures sed 4.1.5 to adapt to many kinds of systems.
785 Usage: $0 [OPTION]... [VAR=VALUE]...
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE. See below for descriptions of some of the useful variables.
790 Defaults for the options are specified in brackets.
792 Configuration:
793 -h, --help display this help and exit
794 --help=short display options specific to this package
795 --help=recursive display the short help of all the included packages
796 -V, --version display version information and exit
797 -q, --quiet, --silent do not print \`checking...' messages
798 --cache-file=FILE cache test results in FILE [disabled]
799 -C, --config-cache alias for \`--cache-file=config.cache'
800 -n, --no-create do not create output files
801 --srcdir=DIR find the sources in DIR [configure dir or \`..']
803 _ACEOF
805 cat <<_ACEOF
806 Installation directories:
807 --prefix=PREFIX install architecture-independent files in PREFIX
808 [$ac_default_prefix]
809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 [PREFIX]
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
817 For better control, use the options below.
819 Fine tuning of the installation directories:
820 --bindir=DIR user executables [EPREFIX/bin]
821 --sbindir=DIR system admin executables [EPREFIX/sbin]
822 --libexecdir=DIR program executables [EPREFIX/libexec]
823 --datadir=DIR read-only architecture-independent data [PREFIX/share]
824 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
825 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
826 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
827 --libdir=DIR object code libraries [EPREFIX/lib]
828 --includedir=DIR C header files [PREFIX/include]
829 --oldincludedir=DIR C header files for non-gcc [/usr/include]
830 --infodir=DIR info documentation [PREFIX/info]
831 --mandir=DIR man documentation [PREFIX/man]
832 _ACEOF
834 cat <<\_ACEOF
836 Program names:
837 --program-prefix=PREFIX prepend PREFIX to installed program names
838 --program-suffix=SUFFIX append SUFFIX to installed program names
839 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
841 System types:
842 --build=BUILD configure for building on BUILD [guessed]
843 --host=HOST cross-compile to build programs to run on HOST [BUILD]
844 _ACEOF
847 if test -n "$ac_init_help"; then
848 case $ac_init_help in
849 short | recursive ) echo "Configuration of sed 4.1.5:";;
850 esac
851 cat <<\_ACEOF
853 Optional Features:
854 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
855 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
856 --disable-dependency-tracking speeds up one-time build
857 --enable-dependency-tracking do not reject slow dependency extractors
858 --disable-largefile omit support for large files
859 --disable-i18n disable internationalization (default=yes)
860 --enable-regex-tests enable regex matcher regression tests (default=yes)
861 --enable-html build HTML manual (default=no)
862 --disable-nls do not use Native Language Support
864 Optional Packages:
865 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
866 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
867 --with-included-regex use included regex matcher (default=yes)
868 --with-gnu-ld assume the C compiler uses GNU ld default=no
869 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
870 --without-libiconv-prefix don't search for libiconv in includedir and libdir
871 --with-included-gettext use the GNU gettext library included here
872 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
873 --without-libintl-prefix don't search for libintl in includedir and libdir
875 Some influential environment variables:
876 CC C compiler command
877 CFLAGS C compiler flags
878 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
879 nonstandard directory <lib dir>
880 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
881 headers in a nonstandard directory <include dir>
882 CPP C preprocessor
884 Use these variables to override the choices made by `configure' or to help
885 it to find libraries and programs with nonstandard names/locations.
887 Report bugs to <bonzini@gnu.org>.
888 _ACEOF
891 if test "$ac_init_help" = "recursive"; then
892 # If there are subdirs, report their specific --help.
893 ac_popdir=`pwd`
894 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
895 test -d $ac_dir || continue
896 ac_builddir=.
898 if test "$ac_dir" != .; then
899 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
900 # A "../" for each directory in $ac_dir_suffix.
901 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
902 else
903 ac_dir_suffix= ac_top_builddir=
906 case $srcdir in
907 .) # No --srcdir option. We are building in place.
908 ac_srcdir=.
909 if test -z "$ac_top_builddir"; then
910 ac_top_srcdir=.
911 else
912 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
913 fi ;;
914 [\\/]* | ?:[\\/]* ) # Absolute path.
915 ac_srcdir=$srcdir$ac_dir_suffix;
916 ac_top_srcdir=$srcdir ;;
917 *) # Relative path.
918 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
919 ac_top_srcdir=$ac_top_builddir$srcdir ;;
920 esac
922 # Do not use `cd foo && pwd` to compute absolute paths, because
923 # the directories may not exist.
924 case `pwd` in
925 .) ac_abs_builddir="$ac_dir";;
927 case "$ac_dir" in
928 .) ac_abs_builddir=`pwd`;;
929 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
930 *) ac_abs_builddir=`pwd`/"$ac_dir";;
931 esac;;
932 esac
933 case $ac_abs_builddir in
934 .) ac_abs_top_builddir=${ac_top_builddir}.;;
936 case ${ac_top_builddir}. in
937 .) ac_abs_top_builddir=$ac_abs_builddir;;
938 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
939 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
940 esac;;
941 esac
942 case $ac_abs_builddir in
943 .) ac_abs_srcdir=$ac_srcdir;;
945 case $ac_srcdir in
946 .) ac_abs_srcdir=$ac_abs_builddir;;
947 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
948 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
949 esac;;
950 esac
951 case $ac_abs_builddir in
952 .) ac_abs_top_srcdir=$ac_top_srcdir;;
954 case $ac_top_srcdir in
955 .) ac_abs_top_srcdir=$ac_abs_builddir;;
956 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
957 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
958 esac;;
959 esac
961 cd $ac_dir
962 # Check for guested configure; otherwise get Cygnus style configure.
963 if test -f $ac_srcdir/configure.gnu; then
964 echo
965 $SHELL $ac_srcdir/configure.gnu --help=recursive
966 elif test -f $ac_srcdir/configure; then
967 echo
968 $SHELL $ac_srcdir/configure --help=recursive
969 elif test -f $ac_srcdir/configure.ac ||
970 test -f $ac_srcdir/configure.in; then
971 echo
972 $ac_configure --help
973 else
974 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
976 cd $ac_popdir
977 done
980 test -n "$ac_init_help" && exit 0
981 if $ac_init_version; then
982 cat <<\_ACEOF
983 sed configure 4.1.5
984 generated by GNU Autoconf 2.59
986 Copyright (C) 2003 Free Software Foundation, Inc.
987 This configure script is free software; the Free Software Foundation
988 gives unlimited permission to copy, distribute and modify it.
989 _ACEOF
990 exit 0
992 exec 5>config.log
993 cat >&5 <<_ACEOF
994 This file contains any messages produced by compilers while
995 running configure, to aid debugging if configure makes a mistake.
997 It was created by sed $as_me 4.1.5, which was
998 generated by GNU Autoconf 2.59. Invocation command line was
1000 $ $0 $@
1002 _ACEOF
1004 cat <<_ASUNAME
1005 ## --------- ##
1006 ## Platform. ##
1007 ## --------- ##
1009 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1010 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1011 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1012 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1013 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1015 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1016 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1018 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1019 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1020 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1021 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1022 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1023 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1024 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1026 _ASUNAME
1028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1029 for as_dir in $PATH
1031 IFS=$as_save_IFS
1032 test -z "$as_dir" && as_dir=.
1033 echo "PATH: $as_dir"
1034 done
1036 } >&5
1038 cat >&5 <<_ACEOF
1041 ## ----------- ##
1042 ## Core tests. ##
1043 ## ----------- ##
1045 _ACEOF
1048 # Keep a trace of the command line.
1049 # Strip out --no-create and --no-recursion so they do not pile up.
1050 # Strip out --silent because we don't want to record it for future runs.
1051 # Also quote any args containing shell meta-characters.
1052 # Make two passes to allow for proper duplicate-argument suppression.
1053 ac_configure_args=
1054 ac_configure_args0=
1055 ac_configure_args1=
1056 ac_sep=
1057 ac_must_keep_next=false
1058 for ac_pass in 1 2
1060 for ac_arg
1062 case $ac_arg in
1063 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1065 | -silent | --silent | --silen | --sile | --sil)
1066 continue ;;
1067 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1068 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1069 esac
1070 case $ac_pass in
1071 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1073 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1074 if test $ac_must_keep_next = true; then
1075 ac_must_keep_next=false # Got value, back to normal.
1076 else
1077 case $ac_arg in
1078 *=* | --config-cache | -C | -disable-* | --disable-* \
1079 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1080 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1081 | -with-* | --with-* | -without-* | --without-* | --x)
1082 case "$ac_configure_args0 " in
1083 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1084 esac
1086 -* ) ac_must_keep_next=true ;;
1087 esac
1089 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1090 # Get rid of the leading space.
1091 ac_sep=" "
1093 esac
1094 done
1095 done
1096 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1097 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1099 # When interrupted or exit'd, cleanup temporary files, and complete
1100 # config.log. We remove comments because anyway the quotes in there
1101 # would cause problems or look ugly.
1102 # WARNING: Be sure not to use single quotes in there, as some shells,
1103 # such as our DU 5.0 friend, will then `close' the trap.
1104 trap 'exit_status=$?
1105 # Save into config.log some information that might help in debugging.
1107 echo
1109 cat <<\_ASBOX
1110 ## ---------------- ##
1111 ## Cache variables. ##
1112 ## ---------------- ##
1113 _ASBOX
1114 echo
1115 # The following way of writing the cache mishandles newlines in values,
1117 (set) 2>&1 |
1118 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1119 *ac_space=\ *)
1120 sed -n \
1121 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1122 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1125 sed -n \
1126 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1128 esac;
1130 echo
1132 cat <<\_ASBOX
1133 ## ----------------- ##
1134 ## Output variables. ##
1135 ## ----------------- ##
1136 _ASBOX
1137 echo
1138 for ac_var in $ac_subst_vars
1140 eval ac_val=$`echo $ac_var`
1141 echo "$ac_var='"'"'$ac_val'"'"'"
1142 done | sort
1143 echo
1145 if test -n "$ac_subst_files"; then
1146 cat <<\_ASBOX
1147 ## ------------- ##
1148 ## Output files. ##
1149 ## ------------- ##
1150 _ASBOX
1151 echo
1152 for ac_var in $ac_subst_files
1154 eval ac_val=$`echo $ac_var`
1155 echo "$ac_var='"'"'$ac_val'"'"'"
1156 done | sort
1157 echo
1160 if test -s confdefs.h; then
1161 cat <<\_ASBOX
1162 ## ----------- ##
1163 ## confdefs.h. ##
1164 ## ----------- ##
1165 _ASBOX
1166 echo
1167 sed "/^$/d" confdefs.h | sort
1168 echo
1170 test "$ac_signal" != 0 &&
1171 echo "$as_me: caught signal $ac_signal"
1172 echo "$as_me: exit $exit_status"
1173 } >&5
1174 rm -f core *.core &&
1175 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1176 exit $exit_status
1178 for ac_signal in 1 2 13 15; do
1179 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1180 done
1181 ac_signal=0
1183 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1184 rm -rf conftest* confdefs.h
1185 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1186 echo >confdefs.h
1188 # Predefined preprocessor variables.
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_NAME "$PACKAGE_NAME"
1192 _ACEOF
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1197 _ACEOF
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1202 _ACEOF
1205 cat >>confdefs.h <<_ACEOF
1206 #define PACKAGE_STRING "$PACKAGE_STRING"
1207 _ACEOF
1210 cat >>confdefs.h <<_ACEOF
1211 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1212 _ACEOF
1215 # Let the site file select an alternate cache file if it wants to.
1216 # Prefer explicitly selected file to automatically selected ones.
1217 if test -z "$CONFIG_SITE"; then
1218 if test "x$prefix" != xNONE; then
1219 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1220 else
1221 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1224 for ac_site_file in $CONFIG_SITE; do
1225 if test -r "$ac_site_file"; then
1226 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1227 echo "$as_me: loading site script $ac_site_file" >&6;}
1228 sed 's/^/| /' "$ac_site_file" >&5
1229 . "$ac_site_file"
1231 done
1233 if test -r "$cache_file"; then
1234 # Some versions of bash will fail to source /dev/null (special
1235 # files actually), so we avoid doing that.
1236 if test -f "$cache_file"; then
1237 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1238 echo "$as_me: loading cache $cache_file" >&6;}
1239 case $cache_file in
1240 [\\/]* | ?:[\\/]* ) . $cache_file;;
1241 *) . ./$cache_file;;
1242 esac
1244 else
1245 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1246 echo "$as_me: creating cache $cache_file" >&6;}
1247 >$cache_file
1250 # Check that the precious variables saved in the cache have kept the same
1251 # value.
1252 ac_cache_corrupted=false
1253 for ac_var in `(set) 2>&1 |
1254 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1255 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1256 eval ac_new_set=\$ac_env_${ac_var}_set
1257 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1258 eval ac_new_val="\$ac_env_${ac_var}_value"
1259 case $ac_old_set,$ac_new_set in
1260 set,)
1261 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1262 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1263 ac_cache_corrupted=: ;;
1264 ,set)
1265 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1266 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1267 ac_cache_corrupted=: ;;
1268 ,);;
1270 if test "x$ac_old_val" != "x$ac_new_val"; then
1271 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1272 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1273 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1274 echo "$as_me: former value: $ac_old_val" >&2;}
1275 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1276 echo "$as_me: current value: $ac_new_val" >&2;}
1277 ac_cache_corrupted=:
1278 fi;;
1279 esac
1280 # Pass precious variables to config.status.
1281 if test "$ac_new_set" = set; then
1282 case $ac_new_val in
1283 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1284 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1285 *) ac_arg=$ac_var=$ac_new_val ;;
1286 esac
1287 case " $ac_configure_args " in
1288 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1289 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1290 esac
1292 done
1293 if $ac_cache_corrupted; then
1294 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1295 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1296 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1297 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1298 { (exit 1); exit 1; }; }
1301 ac_ext=c
1302 ac_cpp='$CPP $CPPFLAGS'
1303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1333 ac_aux_dir=
1334 for ac_dir in config $srcdir/config; do
1335 if test -f $ac_dir/install-sh; then
1336 ac_aux_dir=$ac_dir
1337 ac_install_sh="$ac_aux_dir/install-sh -c"
1338 break
1339 elif test -f $ac_dir/install.sh; then
1340 ac_aux_dir=$ac_dir
1341 ac_install_sh="$ac_aux_dir/install.sh -c"
1342 break
1343 elif test -f $ac_dir/shtool; then
1344 ac_aux_dir=$ac_dir
1345 ac_install_sh="$ac_aux_dir/shtool install -c"
1346 break
1348 done
1349 if test -z "$ac_aux_dir"; then
1350 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1351 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1352 { (exit 1); exit 1; }; }
1354 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1355 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1356 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1359 ac_config_headers="$ac_config_headers config.h:config_h.in"
1362 am__api_version="1.9"
1363 # Find a good install program. We prefer a C program (faster),
1364 # so one script is as good as another. But avoid the broken or
1365 # incompatible versions:
1366 # SysV /etc/install, /usr/sbin/install
1367 # SunOS /usr/etc/install
1368 # IRIX /sbin/install
1369 # AIX /bin/install
1370 # AmigaOS /C/install, which installs bootblocks on floppy discs
1371 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1372 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1373 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1374 # OS/2's system install, which has a completely different semantic
1375 # ./install, which can be erroneously created by make from ./install.sh.
1376 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1377 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1378 if test -z "$INSTALL"; then
1379 if test "${ac_cv_path_install+set}" = set; then
1380 echo $ECHO_N "(cached) $ECHO_C" >&6
1381 else
1382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1383 for as_dir in $PATH
1385 IFS=$as_save_IFS
1386 test -z "$as_dir" && as_dir=.
1387 # Account for people who put trailing slashes in PATH elements.
1388 case $as_dir/ in
1389 ./ | .// | /cC/* | \
1390 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1391 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1392 /usr/ucb/* ) ;;
1394 # OSF1 and SCO ODT 3.0 have their own names for install.
1395 # Don't use installbsd from OSF since it installs stuff as root
1396 # by default.
1397 for ac_prog in ginstall scoinst install; do
1398 for ac_exec_ext in '' $ac_executable_extensions; do
1399 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1400 if test $ac_prog = install &&
1401 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1402 # AIX install. It has an incompatible calling convention.
1404 elif test $ac_prog = install &&
1405 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1406 # program-specific install script used by HP pwplus--don't use.
1408 else
1409 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1410 break 3
1413 done
1414 done
1416 esac
1417 done
1421 if test "${ac_cv_path_install+set}" = set; then
1422 INSTALL=$ac_cv_path_install
1423 else
1424 # As a last resort, use the slow shell script. We don't cache a
1425 # path for INSTALL within a source directory, because that will
1426 # break other packages using the cache if that directory is
1427 # removed, or if the path is relative.
1428 INSTALL=$ac_install_sh
1431 echo "$as_me:$LINENO: result: $INSTALL" >&5
1432 echo "${ECHO_T}$INSTALL" >&6
1434 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1435 # It thinks the first close brace ends the variable substitution.
1436 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1438 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1440 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1442 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1443 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1444 # Just in case
1445 sleep 1
1446 echo timestamp > conftest.file
1447 # Do `set' in a subshell so we don't clobber the current shell's
1448 # arguments. Must try -L first in case configure is actually a
1449 # symlink; some systems play weird games with the mod time of symlinks
1450 # (eg FreeBSD returns the mod time of the symlink's containing
1451 # directory).
1452 if (
1453 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1454 if test "$*" = "X"; then
1455 # -L didn't work.
1456 set X `ls -t $srcdir/configure conftest.file`
1458 rm -f conftest.file
1459 if test "$*" != "X $srcdir/configure conftest.file" \
1460 && test "$*" != "X conftest.file $srcdir/configure"; then
1462 # If neither matched, then we have a broken ls. This can happen
1463 # if, for instance, CONFIG_SHELL is bash and it inherits a
1464 # broken ls alias from the environment. This has actually
1465 # happened. Such a system could not be considered "sane".
1466 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1467 alias in your environment" >&5
1468 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1469 alias in your environment" >&2;}
1470 { (exit 1); exit 1; }; }
1473 test "$2" = conftest.file
1475 then
1476 # Ok.
1478 else
1479 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1480 Check your system clock" >&5
1481 echo "$as_me: error: newly created file is older than distributed files!
1482 Check your system clock" >&2;}
1483 { (exit 1); exit 1; }; }
1485 echo "$as_me:$LINENO: result: yes" >&5
1486 echo "${ECHO_T}yes" >&6
1487 test "$program_prefix" != NONE &&
1488 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1489 # Use a double $ so make ignores it.
1490 test "$program_suffix" != NONE &&
1491 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1492 # Double any \ or $. echo might interpret backslashes.
1493 # By default was `s,x,x', remove it if useless.
1494 cat <<\_ACEOF >conftest.sed
1495 s/[\\$]/&&/g;s/;s,x,x,$//
1496 _ACEOF
1497 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1498 rm conftest.sed
1500 # expand $ac_aux_dir to an absolute path
1501 am_aux_dir=`cd $ac_aux_dir && pwd`
1503 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1504 # Use eval to expand $SHELL
1505 if eval "$MISSING --run true"; then
1506 am_missing_run="$MISSING --run "
1507 else
1508 am_missing_run=
1509 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1510 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1513 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1514 # We used to keeping the `.' as first argument, in order to
1515 # allow $(mkdir_p) to be used without argument. As in
1516 # $(mkdir_p) $(somedir)
1517 # where $(somedir) is conditionally defined. However this is wrong
1518 # for two reasons:
1519 # 1. if the package is installed by a user who cannot write `.'
1520 # make install will fail,
1521 # 2. the above comment should most certainly read
1522 # $(mkdir_p) $(DESTDIR)$(somedir)
1523 # so it does not work when $(somedir) is undefined and
1524 # $(DESTDIR) is not.
1525 # To support the latter case, we have to write
1526 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1527 # so the `.' trick is pointless.
1528 mkdir_p='mkdir -p --'
1529 else
1530 # On NextStep and OpenStep, the `mkdir' command does not
1531 # recognize any option. It will interpret all options as
1532 # directories to create, and then abort because `.' already
1533 # exists.
1534 for d in ./-p ./--version;
1536 test -d $d && rmdir $d
1537 done
1538 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1539 if test -f "$ac_aux_dir/mkinstalldirs"; then
1540 mkdir_p='$(mkinstalldirs)'
1541 else
1542 mkdir_p='$(install_sh) -d'
1546 for ac_prog in gawk mawk nawk awk
1548 # Extract the first word of "$ac_prog", so it can be a program name with args.
1549 set dummy $ac_prog; ac_word=$2
1550 echo "$as_me:$LINENO: checking for $ac_word" >&5
1551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1552 if test "${ac_cv_prog_AWK+set}" = set; then
1553 echo $ECHO_N "(cached) $ECHO_C" >&6
1554 else
1555 if test -n "$AWK"; then
1556 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1557 else
1558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1559 for as_dir in $PATH
1561 IFS=$as_save_IFS
1562 test -z "$as_dir" && as_dir=.
1563 for ac_exec_ext in '' $ac_executable_extensions; do
1564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1565 ac_cv_prog_AWK="$ac_prog"
1566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1567 break 2
1569 done
1570 done
1574 AWK=$ac_cv_prog_AWK
1575 if test -n "$AWK"; then
1576 echo "$as_me:$LINENO: result: $AWK" >&5
1577 echo "${ECHO_T}$AWK" >&6
1578 else
1579 echo "$as_me:$LINENO: result: no" >&5
1580 echo "${ECHO_T}no" >&6
1583 test -n "$AWK" && break
1584 done
1586 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1587 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1588 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1589 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1590 echo $ECHO_N "(cached) $ECHO_C" >&6
1591 else
1592 cat >conftest.make <<\_ACEOF
1593 all:
1594 @echo 'ac_maketemp="$(MAKE)"'
1595 _ACEOF
1596 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1597 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1598 if test -n "$ac_maketemp"; then
1599 eval ac_cv_prog_make_${ac_make}_set=yes
1600 else
1601 eval ac_cv_prog_make_${ac_make}_set=no
1603 rm -f conftest.make
1605 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1606 echo "$as_me:$LINENO: result: yes" >&5
1607 echo "${ECHO_T}yes" >&6
1608 SET_MAKE=
1609 else
1610 echo "$as_me:$LINENO: result: no" >&5
1611 echo "${ECHO_T}no" >&6
1612 SET_MAKE="MAKE=${MAKE-make}"
1615 rm -rf .tst 2>/dev/null
1616 mkdir .tst 2>/dev/null
1617 if test -d .tst; then
1618 am__leading_dot=.
1619 else
1620 am__leading_dot=_
1622 rmdir .tst 2>/dev/null
1624 # test to see if srcdir already configured
1625 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1626 test -f $srcdir/config.status; then
1627 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1628 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1629 { (exit 1); exit 1; }; }
1632 # test whether we have cygpath
1633 if test -z "$CYGPATH_W"; then
1634 if (cygpath --version) >/dev/null 2>/dev/null; then
1635 CYGPATH_W='cygpath -w'
1636 else
1637 CYGPATH_W=echo
1642 # Define the identity of the package.
1643 PACKAGE='sed'
1644 VERSION='4.1.5'
1647 cat >>confdefs.h <<_ACEOF
1648 #define PACKAGE "$PACKAGE"
1649 _ACEOF
1652 cat >>confdefs.h <<_ACEOF
1653 #define VERSION "$VERSION"
1654 _ACEOF
1656 # Some tools Automake needs.
1658 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1661 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1664 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1667 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1670 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1672 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1674 # Installed binaries are usually stripped using `strip' when the user
1675 # run `make install-strip'. However `strip' might not be the right
1676 # tool to use in cross-compilation environments, therefore Automake
1677 # will honor the `STRIP' environment variable to overrule this program.
1678 if test "$cross_compiling" != no; then
1679 if test -n "$ac_tool_prefix"; then
1680 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1681 set dummy ${ac_tool_prefix}strip; ac_word=$2
1682 echo "$as_me:$LINENO: checking for $ac_word" >&5
1683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1684 if test "${ac_cv_prog_STRIP+set}" = set; then
1685 echo $ECHO_N "(cached) $ECHO_C" >&6
1686 else
1687 if test -n "$STRIP"; then
1688 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1689 else
1690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1691 for as_dir in $PATH
1693 IFS=$as_save_IFS
1694 test -z "$as_dir" && as_dir=.
1695 for ac_exec_ext in '' $ac_executable_extensions; do
1696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1697 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1699 break 2
1701 done
1702 done
1706 STRIP=$ac_cv_prog_STRIP
1707 if test -n "$STRIP"; then
1708 echo "$as_me:$LINENO: result: $STRIP" >&5
1709 echo "${ECHO_T}$STRIP" >&6
1710 else
1711 echo "$as_me:$LINENO: result: no" >&5
1712 echo "${ECHO_T}no" >&6
1716 if test -z "$ac_cv_prog_STRIP"; then
1717 ac_ct_STRIP=$STRIP
1718 # Extract the first word of "strip", so it can be a program name with args.
1719 set dummy strip; ac_word=$2
1720 echo "$as_me:$LINENO: checking for $ac_word" >&5
1721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1722 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1723 echo $ECHO_N "(cached) $ECHO_C" >&6
1724 else
1725 if test -n "$ac_ct_STRIP"; then
1726 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1727 else
1728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1729 for as_dir in $PATH
1731 IFS=$as_save_IFS
1732 test -z "$as_dir" && as_dir=.
1733 for ac_exec_ext in '' $ac_executable_extensions; do
1734 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1735 ac_cv_prog_ac_ct_STRIP="strip"
1736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1737 break 2
1739 done
1740 done
1742 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1745 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1746 if test -n "$ac_ct_STRIP"; then
1747 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1748 echo "${ECHO_T}$ac_ct_STRIP" >&6
1749 else
1750 echo "$as_me:$LINENO: result: no" >&5
1751 echo "${ECHO_T}no" >&6
1754 STRIP=$ac_ct_STRIP
1755 else
1756 STRIP="$ac_cv_prog_STRIP"
1760 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1762 # We need awk for the "check" target. The system "awk" is bad on
1763 # some platforms.
1764 # Always define AMTAR for backward compatibility.
1766 AMTAR=${AMTAR-"${am_missing_run}tar"}
1768 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1775 SED_FEATURE_VERSION=4.1
1777 cat >>confdefs.h <<_ACEOF
1778 #define SED_FEATURE_VERSION "$SED_FEATURE_VERSION"
1779 _ACEOF
1783 ac_ext=c
1784 ac_cpp='$CPP $CPPFLAGS'
1785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1788 if test -n "$ac_tool_prefix"; then
1789 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1790 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1791 echo "$as_me:$LINENO: checking for $ac_word" >&5
1792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1793 if test "${ac_cv_prog_CC+set}" = set; then
1794 echo $ECHO_N "(cached) $ECHO_C" >&6
1795 else
1796 if test -n "$CC"; then
1797 ac_cv_prog_CC="$CC" # Let the user override the test.
1798 else
1799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1800 for as_dir in $PATH
1802 IFS=$as_save_IFS
1803 test -z "$as_dir" && as_dir=.
1804 for ac_exec_ext in '' $ac_executable_extensions; do
1805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1806 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1808 break 2
1810 done
1811 done
1815 CC=$ac_cv_prog_CC
1816 if test -n "$CC"; then
1817 echo "$as_me:$LINENO: result: $CC" >&5
1818 echo "${ECHO_T}$CC" >&6
1819 else
1820 echo "$as_me:$LINENO: result: no" >&5
1821 echo "${ECHO_T}no" >&6
1825 if test -z "$ac_cv_prog_CC"; then
1826 ac_ct_CC=$CC
1827 # Extract the first word of "gcc", so it can be a program name with args.
1828 set dummy gcc; ac_word=$2
1829 echo "$as_me:$LINENO: checking for $ac_word" >&5
1830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1831 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1832 echo $ECHO_N "(cached) $ECHO_C" >&6
1833 else
1834 if test -n "$ac_ct_CC"; then
1835 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1836 else
1837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1838 for as_dir in $PATH
1840 IFS=$as_save_IFS
1841 test -z "$as_dir" && as_dir=.
1842 for ac_exec_ext in '' $ac_executable_extensions; do
1843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1844 ac_cv_prog_ac_ct_CC="gcc"
1845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1846 break 2
1848 done
1849 done
1853 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1854 if test -n "$ac_ct_CC"; then
1855 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1856 echo "${ECHO_T}$ac_ct_CC" >&6
1857 else
1858 echo "$as_me:$LINENO: result: no" >&5
1859 echo "${ECHO_T}no" >&6
1862 CC=$ac_ct_CC
1863 else
1864 CC="$ac_cv_prog_CC"
1867 if test -z "$CC"; then
1868 if test -n "$ac_tool_prefix"; then
1869 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1870 set dummy ${ac_tool_prefix}cc; ac_word=$2
1871 echo "$as_me:$LINENO: checking for $ac_word" >&5
1872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1873 if test "${ac_cv_prog_CC+set}" = set; then
1874 echo $ECHO_N "(cached) $ECHO_C" >&6
1875 else
1876 if test -n "$CC"; then
1877 ac_cv_prog_CC="$CC" # Let the user override the test.
1878 else
1879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1880 for as_dir in $PATH
1882 IFS=$as_save_IFS
1883 test -z "$as_dir" && as_dir=.
1884 for ac_exec_ext in '' $ac_executable_extensions; do
1885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1886 ac_cv_prog_CC="${ac_tool_prefix}cc"
1887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1888 break 2
1890 done
1891 done
1895 CC=$ac_cv_prog_CC
1896 if test -n "$CC"; then
1897 echo "$as_me:$LINENO: result: $CC" >&5
1898 echo "${ECHO_T}$CC" >&6
1899 else
1900 echo "$as_me:$LINENO: result: no" >&5
1901 echo "${ECHO_T}no" >&6
1905 if test -z "$ac_cv_prog_CC"; then
1906 ac_ct_CC=$CC
1907 # Extract the first word of "cc", so it can be a program name with args.
1908 set dummy cc; ac_word=$2
1909 echo "$as_me:$LINENO: checking for $ac_word" >&5
1910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1911 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1912 echo $ECHO_N "(cached) $ECHO_C" >&6
1913 else
1914 if test -n "$ac_ct_CC"; then
1915 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1916 else
1917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1918 for as_dir in $PATH
1920 IFS=$as_save_IFS
1921 test -z "$as_dir" && as_dir=.
1922 for ac_exec_ext in '' $ac_executable_extensions; do
1923 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1924 ac_cv_prog_ac_ct_CC="cc"
1925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1926 break 2
1928 done
1929 done
1933 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1934 if test -n "$ac_ct_CC"; then
1935 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1936 echo "${ECHO_T}$ac_ct_CC" >&6
1937 else
1938 echo "$as_me:$LINENO: result: no" >&5
1939 echo "${ECHO_T}no" >&6
1942 CC=$ac_ct_CC
1943 else
1944 CC="$ac_cv_prog_CC"
1948 if test -z "$CC"; then
1949 # Extract the first word of "cc", so it can be a program name with args.
1950 set dummy cc; ac_word=$2
1951 echo "$as_me:$LINENO: checking for $ac_word" >&5
1952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1953 if test "${ac_cv_prog_CC+set}" = set; then
1954 echo $ECHO_N "(cached) $ECHO_C" >&6
1955 else
1956 if test -n "$CC"; then
1957 ac_cv_prog_CC="$CC" # Let the user override the test.
1958 else
1959 ac_prog_rejected=no
1960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1961 for as_dir in $PATH
1963 IFS=$as_save_IFS
1964 test -z "$as_dir" && as_dir=.
1965 for ac_exec_ext in '' $ac_executable_extensions; do
1966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1967 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1968 ac_prog_rejected=yes
1969 continue
1971 ac_cv_prog_CC="cc"
1972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1973 break 2
1975 done
1976 done
1978 if test $ac_prog_rejected = yes; then
1979 # We found a bogon in the path, so make sure we never use it.
1980 set dummy $ac_cv_prog_CC
1981 shift
1982 if test $# != 0; then
1983 # We chose a different compiler from the bogus one.
1984 # However, it has the same basename, so the bogon will be chosen
1985 # first if we set CC to just the basename; use the full file name.
1986 shift
1987 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1992 CC=$ac_cv_prog_CC
1993 if test -n "$CC"; then
1994 echo "$as_me:$LINENO: result: $CC" >&5
1995 echo "${ECHO_T}$CC" >&6
1996 else
1997 echo "$as_me:$LINENO: result: no" >&5
1998 echo "${ECHO_T}no" >&6
2002 if test -z "$CC"; then
2003 if test -n "$ac_tool_prefix"; then
2004 for ac_prog in cl
2006 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2007 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2008 echo "$as_me:$LINENO: checking for $ac_word" >&5
2009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2010 if test "${ac_cv_prog_CC+set}" = set; then
2011 echo $ECHO_N "(cached) $ECHO_C" >&6
2012 else
2013 if test -n "$CC"; then
2014 ac_cv_prog_CC="$CC" # Let the user override the test.
2015 else
2016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017 for as_dir in $PATH
2019 IFS=$as_save_IFS
2020 test -z "$as_dir" && as_dir=.
2021 for ac_exec_ext in '' $ac_executable_extensions; do
2022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2023 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2025 break 2
2027 done
2028 done
2032 CC=$ac_cv_prog_CC
2033 if test -n "$CC"; then
2034 echo "$as_me:$LINENO: result: $CC" >&5
2035 echo "${ECHO_T}$CC" >&6
2036 else
2037 echo "$as_me:$LINENO: result: no" >&5
2038 echo "${ECHO_T}no" >&6
2041 test -n "$CC" && break
2042 done
2044 if test -z "$CC"; then
2045 ac_ct_CC=$CC
2046 for ac_prog in cl
2048 # Extract the first word of "$ac_prog", so it can be a program name with args.
2049 set dummy $ac_prog; ac_word=$2
2050 echo "$as_me:$LINENO: checking for $ac_word" >&5
2051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2052 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2053 echo $ECHO_N "(cached) $ECHO_C" >&6
2054 else
2055 if test -n "$ac_ct_CC"; then
2056 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2057 else
2058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2059 for as_dir in $PATH
2061 IFS=$as_save_IFS
2062 test -z "$as_dir" && as_dir=.
2063 for ac_exec_ext in '' $ac_executable_extensions; do
2064 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2065 ac_cv_prog_ac_ct_CC="$ac_prog"
2066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2067 break 2
2069 done
2070 done
2074 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2075 if test -n "$ac_ct_CC"; then
2076 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2077 echo "${ECHO_T}$ac_ct_CC" >&6
2078 else
2079 echo "$as_me:$LINENO: result: no" >&5
2080 echo "${ECHO_T}no" >&6
2083 test -n "$ac_ct_CC" && break
2084 done
2086 CC=$ac_ct_CC
2092 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2093 See \`config.log' for more details." >&5
2094 echo "$as_me: error: no acceptable C compiler found in \$PATH
2095 See \`config.log' for more details." >&2;}
2096 { (exit 1); exit 1; }; }
2098 # Provide some information about the compiler.
2099 echo "$as_me:$LINENO:" \
2100 "checking for C compiler version" >&5
2101 ac_compiler=`set X $ac_compile; echo $2`
2102 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2103 (eval $ac_compiler --version </dev/null >&5) 2>&5
2104 ac_status=$?
2105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106 (exit $ac_status); }
2107 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2108 (eval $ac_compiler -v </dev/null >&5) 2>&5
2109 ac_status=$?
2110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111 (exit $ac_status); }
2112 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2113 (eval $ac_compiler -V </dev/null >&5) 2>&5
2114 ac_status=$?
2115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116 (exit $ac_status); }
2118 cat >conftest.$ac_ext <<_ACEOF
2119 /* confdefs.h. */
2120 _ACEOF
2121 cat confdefs.h >>conftest.$ac_ext
2122 cat >>conftest.$ac_ext <<_ACEOF
2123 /* end confdefs.h. */
2126 main ()
2130 return 0;
2132 _ACEOF
2133 ac_clean_files_save=$ac_clean_files
2134 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2135 # Try to create an executable without -o first, disregard a.out.
2136 # It will help us diagnose broken compilers, and finding out an intuition
2137 # of exeext.
2138 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2139 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2140 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2141 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2142 (eval $ac_link_default) 2>&5
2143 ac_status=$?
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145 (exit $ac_status); }; then
2146 # Find the output, starting from the most likely. This scheme is
2147 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2148 # resort.
2150 # Be careful to initialize this variable, since it used to be cached.
2151 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2152 ac_cv_exeext=
2153 # b.out is created by i960 compilers.
2154 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2156 test -f "$ac_file" || continue
2157 case $ac_file in
2158 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2160 conftest.$ac_ext )
2161 # This is the source file.
2163 [ab].out )
2164 # We found the default executable, but exeext='' is most
2165 # certainly right.
2166 break;;
2167 *.* )
2168 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2169 # FIXME: I believe we export ac_cv_exeext for Libtool,
2170 # but it would be cool to find out if it's true. Does anybody
2171 # maintain Libtool? --akim.
2172 export ac_cv_exeext
2173 break;;
2175 break;;
2176 esac
2177 done
2178 else
2179 echo "$as_me: failed program was:" >&5
2180 sed 's/^/| /' conftest.$ac_ext >&5
2182 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2183 See \`config.log' for more details." >&5
2184 echo "$as_me: error: C compiler cannot create executables
2185 See \`config.log' for more details." >&2;}
2186 { (exit 77); exit 77; }; }
2189 ac_exeext=$ac_cv_exeext
2190 echo "$as_me:$LINENO: result: $ac_file" >&5
2191 echo "${ECHO_T}$ac_file" >&6
2193 # Check the compiler produces executables we can run. If not, either
2194 # the compiler is broken, or we cross compile.
2195 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2196 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2197 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2198 # If not cross compiling, check that we can run a simple program.
2199 if test "$cross_compiling" != yes; then
2200 if { ac_try='./$ac_file'
2201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2202 (eval $ac_try) 2>&5
2203 ac_status=$?
2204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205 (exit $ac_status); }; }; then
2206 cross_compiling=no
2207 else
2208 if test "$cross_compiling" = maybe; then
2209 cross_compiling=yes
2210 else
2211 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2212 If you meant to cross compile, use \`--host'.
2213 See \`config.log' for more details." >&5
2214 echo "$as_me: error: cannot run C compiled programs.
2215 If you meant to cross compile, use \`--host'.
2216 See \`config.log' for more details." >&2;}
2217 { (exit 1); exit 1; }; }
2221 echo "$as_me:$LINENO: result: yes" >&5
2222 echo "${ECHO_T}yes" >&6
2224 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2225 ac_clean_files=$ac_clean_files_save
2226 # Check the compiler produces executables we can run. If not, either
2227 # the compiler is broken, or we cross compile.
2228 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2229 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2230 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2231 echo "${ECHO_T}$cross_compiling" >&6
2233 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2234 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2236 (eval $ac_link) 2>&5
2237 ac_status=$?
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); }; then
2240 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2241 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2242 # work properly (i.e., refer to `conftest.exe'), while it won't with
2243 # `rm'.
2244 for ac_file in conftest.exe conftest conftest.*; do
2245 test -f "$ac_file" || continue
2246 case $ac_file in
2247 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2248 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2249 export ac_cv_exeext
2250 break;;
2251 * ) break;;
2252 esac
2253 done
2254 else
2255 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2256 See \`config.log' for more details." >&5
2257 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2258 See \`config.log' for more details." >&2;}
2259 { (exit 1); exit 1; }; }
2262 rm -f conftest$ac_cv_exeext
2263 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2264 echo "${ECHO_T}$ac_cv_exeext" >&6
2266 rm -f conftest.$ac_ext
2267 EXEEXT=$ac_cv_exeext
2268 ac_exeext=$EXEEXT
2269 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2270 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2271 if test "${ac_cv_objext+set}" = set; then
2272 echo $ECHO_N "(cached) $ECHO_C" >&6
2273 else
2274 cat >conftest.$ac_ext <<_ACEOF
2275 /* confdefs.h. */
2276 _ACEOF
2277 cat confdefs.h >>conftest.$ac_ext
2278 cat >>conftest.$ac_ext <<_ACEOF
2279 /* end confdefs.h. */
2282 main ()
2286 return 0;
2288 _ACEOF
2289 rm -f conftest.o conftest.obj
2290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2291 (eval $ac_compile) 2>&5
2292 ac_status=$?
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); }; then
2295 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2296 case $ac_file in
2297 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2298 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2299 break;;
2300 esac
2301 done
2302 else
2303 echo "$as_me: failed program was:" >&5
2304 sed 's/^/| /' conftest.$ac_ext >&5
2306 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2307 See \`config.log' for more details." >&5
2308 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2309 See \`config.log' for more details." >&2;}
2310 { (exit 1); exit 1; }; }
2313 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2315 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2316 echo "${ECHO_T}$ac_cv_objext" >&6
2317 OBJEXT=$ac_cv_objext
2318 ac_objext=$OBJEXT
2319 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2320 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2321 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2322 echo $ECHO_N "(cached) $ECHO_C" >&6
2323 else
2324 cat >conftest.$ac_ext <<_ACEOF
2325 /* confdefs.h. */
2326 _ACEOF
2327 cat confdefs.h >>conftest.$ac_ext
2328 cat >>conftest.$ac_ext <<_ACEOF
2329 /* end confdefs.h. */
2332 main ()
2334 #ifndef __GNUC__
2335 choke me
2336 #endif
2339 return 0;
2341 _ACEOF
2342 rm -f conftest.$ac_objext
2343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2344 (eval $ac_compile) 2>conftest.er1
2345 ac_status=$?
2346 grep -v '^ *+' conftest.er1 >conftest.err
2347 rm -f conftest.er1
2348 cat conftest.err >&5
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); } &&
2351 { ac_try='test -z "$ac_c_werror_flag"
2352 || test ! -s conftest.err'
2353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2354 (eval $ac_try) 2>&5
2355 ac_status=$?
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); }; } &&
2358 { ac_try='test -s conftest.$ac_objext'
2359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2360 (eval $ac_try) 2>&5
2361 ac_status=$?
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }; }; then
2364 ac_compiler_gnu=yes
2365 else
2366 echo "$as_me: failed program was:" >&5
2367 sed 's/^/| /' conftest.$ac_ext >&5
2369 ac_compiler_gnu=no
2371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2372 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2375 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2376 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2377 GCC=`test $ac_compiler_gnu = yes && echo yes`
2378 ac_test_CFLAGS=${CFLAGS+set}
2379 ac_save_CFLAGS=$CFLAGS
2380 CFLAGS="-g"
2381 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2382 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2383 if test "${ac_cv_prog_cc_g+set}" = set; then
2384 echo $ECHO_N "(cached) $ECHO_C" >&6
2385 else
2386 cat >conftest.$ac_ext <<_ACEOF
2387 /* confdefs.h. */
2388 _ACEOF
2389 cat confdefs.h >>conftest.$ac_ext
2390 cat >>conftest.$ac_ext <<_ACEOF
2391 /* end confdefs.h. */
2394 main ()
2398 return 0;
2400 _ACEOF
2401 rm -f conftest.$ac_objext
2402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2403 (eval $ac_compile) 2>conftest.er1
2404 ac_status=$?
2405 grep -v '^ *+' conftest.er1 >conftest.err
2406 rm -f conftest.er1
2407 cat conftest.err >&5
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); } &&
2410 { ac_try='test -z "$ac_c_werror_flag"
2411 || test ! -s conftest.err'
2412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413 (eval $ac_try) 2>&5
2414 ac_status=$?
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); }; } &&
2417 { ac_try='test -s conftest.$ac_objext'
2418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419 (eval $ac_try) 2>&5
2420 ac_status=$?
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); }; }; then
2423 ac_cv_prog_cc_g=yes
2424 else
2425 echo "$as_me: failed program was:" >&5
2426 sed 's/^/| /' conftest.$ac_ext >&5
2428 ac_cv_prog_cc_g=no
2430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2432 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2433 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2434 if test "$ac_test_CFLAGS" = set; then
2435 CFLAGS=$ac_save_CFLAGS
2436 elif test $ac_cv_prog_cc_g = yes; then
2437 if test "$GCC" = yes; then
2438 CFLAGS="-g -O2"
2439 else
2440 CFLAGS="-g"
2442 else
2443 if test "$GCC" = yes; then
2444 CFLAGS="-O2"
2445 else
2446 CFLAGS=
2449 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2450 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2451 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2452 echo $ECHO_N "(cached) $ECHO_C" >&6
2453 else
2454 ac_cv_prog_cc_stdc=no
2455 ac_save_CC=$CC
2456 cat >conftest.$ac_ext <<_ACEOF
2457 /* confdefs.h. */
2458 _ACEOF
2459 cat confdefs.h >>conftest.$ac_ext
2460 cat >>conftest.$ac_ext <<_ACEOF
2461 /* end confdefs.h. */
2462 #include <stdarg.h>
2463 #include <stdio.h>
2464 #include <sys/types.h>
2465 #include <sys/stat.h>
2466 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2467 struct buf { int x; };
2468 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2469 static char *e (p, i)
2470 char **p;
2471 int i;
2473 return p[i];
2475 static char *f (char * (*g) (char **, int), char **p, ...)
2477 char *s;
2478 va_list v;
2479 va_start (v,p);
2480 s = g (p, va_arg (v,int));
2481 va_end (v);
2482 return s;
2485 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2486 function prototypes and stuff, but not '\xHH' hex character constants.
2487 These don't provoke an error unfortunately, instead are silently treated
2488 as 'x'. The following induces an error, until -std1 is added to get
2489 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2490 array size at least. It's necessary to write '\x00'==0 to get something
2491 that's true only with -std1. */
2492 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2494 int test (int i, double x);
2495 struct s1 {int (*f) (int a);};
2496 struct s2 {int (*f) (double a);};
2497 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2498 int argc;
2499 char **argv;
2501 main ()
2503 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2505 return 0;
2507 _ACEOF
2508 # Don't try gcc -ansi; that turns off useful extensions and
2509 # breaks some systems' header files.
2510 # AIX -qlanglvl=ansi
2511 # Ultrix and OSF/1 -std1
2512 # HP-UX 10.20 and later -Ae
2513 # HP-UX older versions -Aa -D_HPUX_SOURCE
2514 # SVR4 -Xc -D__EXTENSIONS__
2515 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2517 CC="$ac_save_CC $ac_arg"
2518 rm -f conftest.$ac_objext
2519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2520 (eval $ac_compile) 2>conftest.er1
2521 ac_status=$?
2522 grep -v '^ *+' conftest.er1 >conftest.err
2523 rm -f conftest.er1
2524 cat conftest.err >&5
2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526 (exit $ac_status); } &&
2527 { ac_try='test -z "$ac_c_werror_flag"
2528 || test ! -s conftest.err'
2529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2530 (eval $ac_try) 2>&5
2531 ac_status=$?
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }; } &&
2534 { ac_try='test -s conftest.$ac_objext'
2535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2536 (eval $ac_try) 2>&5
2537 ac_status=$?
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }; }; then
2540 ac_cv_prog_cc_stdc=$ac_arg
2541 break
2542 else
2543 echo "$as_me: failed program was:" >&5
2544 sed 's/^/| /' conftest.$ac_ext >&5
2547 rm -f conftest.err conftest.$ac_objext
2548 done
2549 rm -f conftest.$ac_ext conftest.$ac_objext
2550 CC=$ac_save_CC
2554 case "x$ac_cv_prog_cc_stdc" in
2555 x|xno)
2556 echo "$as_me:$LINENO: result: none needed" >&5
2557 echo "${ECHO_T}none needed" >&6 ;;
2559 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2560 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2561 CC="$CC $ac_cv_prog_cc_stdc" ;;
2562 esac
2564 # Some people use a C++ compiler to compile C. Since we use `exit',
2565 # in C++ we need to declare it. In case someone uses the same compiler
2566 # for both compiling C and C++ we need to have the C++ compiler decide
2567 # the declaration of exit, since it's the most demanding environment.
2568 cat >conftest.$ac_ext <<_ACEOF
2569 #ifndef __cplusplus
2570 choke me
2571 #endif
2572 _ACEOF
2573 rm -f conftest.$ac_objext
2574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2575 (eval $ac_compile) 2>conftest.er1
2576 ac_status=$?
2577 grep -v '^ *+' conftest.er1 >conftest.err
2578 rm -f conftest.er1
2579 cat conftest.err >&5
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); } &&
2582 { ac_try='test -z "$ac_c_werror_flag"
2583 || test ! -s conftest.err'
2584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2585 (eval $ac_try) 2>&5
2586 ac_status=$?
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); }; } &&
2589 { ac_try='test -s conftest.$ac_objext'
2590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2591 (eval $ac_try) 2>&5
2592 ac_status=$?
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }; }; then
2595 for ac_declaration in \
2596 '' \
2597 'extern "C" void std::exit (int) throw (); using std::exit;' \
2598 'extern "C" void std::exit (int); using std::exit;' \
2599 'extern "C" void exit (int) throw ();' \
2600 'extern "C" void exit (int);' \
2601 'void exit (int);'
2603 cat >conftest.$ac_ext <<_ACEOF
2604 /* confdefs.h. */
2605 _ACEOF
2606 cat confdefs.h >>conftest.$ac_ext
2607 cat >>conftest.$ac_ext <<_ACEOF
2608 /* end confdefs.h. */
2609 $ac_declaration
2610 #include <stdlib.h>
2612 main ()
2614 exit (42);
2616 return 0;
2618 _ACEOF
2619 rm -f conftest.$ac_objext
2620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2621 (eval $ac_compile) 2>conftest.er1
2622 ac_status=$?
2623 grep -v '^ *+' conftest.er1 >conftest.err
2624 rm -f conftest.er1
2625 cat conftest.err >&5
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); } &&
2628 { ac_try='test -z "$ac_c_werror_flag"
2629 || test ! -s conftest.err'
2630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631 (eval $ac_try) 2>&5
2632 ac_status=$?
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); }; } &&
2635 { ac_try='test -s conftest.$ac_objext'
2636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637 (eval $ac_try) 2>&5
2638 ac_status=$?
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); }; }; then
2642 else
2643 echo "$as_me: failed program was:" >&5
2644 sed 's/^/| /' conftest.$ac_ext >&5
2646 continue
2648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2649 cat >conftest.$ac_ext <<_ACEOF
2650 /* confdefs.h. */
2651 _ACEOF
2652 cat confdefs.h >>conftest.$ac_ext
2653 cat >>conftest.$ac_ext <<_ACEOF
2654 /* end confdefs.h. */
2655 $ac_declaration
2657 main ()
2659 exit (42);
2661 return 0;
2663 _ACEOF
2664 rm -f conftest.$ac_objext
2665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2666 (eval $ac_compile) 2>conftest.er1
2667 ac_status=$?
2668 grep -v '^ *+' conftest.er1 >conftest.err
2669 rm -f conftest.er1
2670 cat conftest.err >&5
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); } &&
2673 { ac_try='test -z "$ac_c_werror_flag"
2674 || test ! -s conftest.err'
2675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2676 (eval $ac_try) 2>&5
2677 ac_status=$?
2678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679 (exit $ac_status); }; } &&
2680 { ac_try='test -s conftest.$ac_objext'
2681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2682 (eval $ac_try) 2>&5
2683 ac_status=$?
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); }; }; then
2686 break
2687 else
2688 echo "$as_me: failed program was:" >&5
2689 sed 's/^/| /' conftest.$ac_ext >&5
2692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2693 done
2694 rm -f conftest*
2695 if test -n "$ac_declaration"; then
2696 echo '#ifdef __cplusplus' >>confdefs.h
2697 echo $ac_declaration >>confdefs.h
2698 echo '#endif' >>confdefs.h
2701 else
2702 echo "$as_me: failed program was:" >&5
2703 sed 's/^/| /' conftest.$ac_ext >&5
2706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2707 ac_ext=c
2708 ac_cpp='$CPP $CPPFLAGS'
2709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2712 DEPDIR="${am__leading_dot}deps"
2714 ac_config_commands="$ac_config_commands depfiles"
2717 am_make=${MAKE-make}
2718 cat > confinc << 'END'
2719 am__doit:
2720 @echo done
2721 .PHONY: am__doit
2723 # If we don't find an include directive, just comment out the code.
2724 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2725 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2726 am__include="#"
2727 am__quote=
2728 _am_result=none
2729 # First try GNU make style include.
2730 echo "include confinc" > confmf
2731 # We grep out `Entering directory' and `Leaving directory'
2732 # messages which can occur if `w' ends up in MAKEFLAGS.
2733 # In particular we don't look at `^make:' because GNU make might
2734 # be invoked under some other name (usually "gmake"), in which
2735 # case it prints its new name instead of `make'.
2736 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2737 am__include=include
2738 am__quote=
2739 _am_result=GNU
2741 # Now try BSD make style include.
2742 if test "$am__include" = "#"; then
2743 echo '.include "confinc"' > confmf
2744 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2745 am__include=.include
2746 am__quote="\""
2747 _am_result=BSD
2752 echo "$as_me:$LINENO: result: $_am_result" >&5
2753 echo "${ECHO_T}$_am_result" >&6
2754 rm -f confinc confmf
2756 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2757 if test "${enable_dependency_tracking+set}" = set; then
2758 enableval="$enable_dependency_tracking"
2761 if test "x$enable_dependency_tracking" != xno; then
2762 am_depcomp="$ac_aux_dir/depcomp"
2763 AMDEPBACKSLASH='\'
2767 if test "x$enable_dependency_tracking" != xno; then
2768 AMDEP_TRUE=
2769 AMDEP_FALSE='#'
2770 else
2771 AMDEP_TRUE='#'
2772 AMDEP_FALSE=
2778 depcc="$CC" am_compiler_list=
2780 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2781 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2782 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2783 echo $ECHO_N "(cached) $ECHO_C" >&6
2784 else
2785 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2786 # We make a subdir and do the tests there. Otherwise we can end up
2787 # making bogus files that we don't know about and never remove. For
2788 # instance it was reported that on HP-UX the gcc test will end up
2789 # making a dummy file named `D' -- because `-MD' means `put the output
2790 # in D'.
2791 mkdir conftest.dir
2792 # Copy depcomp to subdir because otherwise we won't find it if we're
2793 # using a relative directory.
2794 cp "$am_depcomp" conftest.dir
2795 cd conftest.dir
2796 # We will build objects and dependencies in a subdirectory because
2797 # it helps to detect inapplicable dependency modes. For instance
2798 # both Tru64's cc and ICC support -MD to output dependencies as a
2799 # side effect of compilation, but ICC will put the dependencies in
2800 # the current directory while Tru64 will put them in the object
2801 # directory.
2802 mkdir sub
2804 am_cv_CC_dependencies_compiler_type=none
2805 if test "$am_compiler_list" = ""; then
2806 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2808 for depmode in $am_compiler_list; do
2809 # Setup a source with many dependencies, because some compilers
2810 # like to wrap large dependency lists on column 80 (with \), and
2811 # we should not choose a depcomp mode which is confused by this.
2813 # We need to recreate these files for each test, as the compiler may
2814 # overwrite some of them when testing with obscure command lines.
2815 # This happens at least with the AIX C compiler.
2816 : > sub/conftest.c
2817 for i in 1 2 3 4 5 6; do
2818 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2819 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2820 # Solaris 8's {/usr,}/bin/sh.
2821 touch sub/conftst$i.h
2822 done
2823 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2825 case $depmode in
2826 nosideeffect)
2827 # after this tag, mechanisms are not by side-effect, so they'll
2828 # only be used when explicitly requested
2829 if test "x$enable_dependency_tracking" = xyes; then
2830 continue
2831 else
2832 break
2835 none) break ;;
2836 esac
2837 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2838 # mode. It turns out that the SunPro C++ compiler does not properly
2839 # handle `-M -o', and we need to detect this.
2840 if depmode=$depmode \
2841 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2842 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2843 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2844 >/dev/null 2>conftest.err &&
2845 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2846 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2847 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2848 # icc doesn't choke on unknown options, it will just issue warnings
2849 # or remarks (even with -Werror). So we grep stderr for any message
2850 # that says an option was ignored or not supported.
2851 # When given -MP, icc 7.0 and 7.1 complain thusly:
2852 # icc: Command line warning: ignoring option '-M'; no argument required
2853 # The diagnosis changed in icc 8.0:
2854 # icc: Command line remark: option '-MP' not supported
2855 if (grep 'ignoring option' conftest.err ||
2856 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2857 am_cv_CC_dependencies_compiler_type=$depmode
2858 break
2861 done
2863 cd ..
2864 rm -rf conftest.dir
2865 else
2866 am_cv_CC_dependencies_compiler_type=none
2870 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2871 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2872 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2877 test "x$enable_dependency_tracking" != xno \
2878 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2879 am__fastdepCC_TRUE=
2880 am__fastdepCC_FALSE='#'
2881 else
2882 am__fastdepCC_TRUE='#'
2883 am__fastdepCC_FALSE=
2887 if test -n "$ac_tool_prefix"; then
2888 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2889 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2890 echo "$as_me:$LINENO: checking for $ac_word" >&5
2891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2892 if test "${ac_cv_prog_RANLIB+set}" = set; then
2893 echo $ECHO_N "(cached) $ECHO_C" >&6
2894 else
2895 if test -n "$RANLIB"; then
2896 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2897 else
2898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899 for as_dir in $PATH
2901 IFS=$as_save_IFS
2902 test -z "$as_dir" && as_dir=.
2903 for ac_exec_ext in '' $ac_executable_extensions; do
2904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2905 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2907 break 2
2909 done
2910 done
2914 RANLIB=$ac_cv_prog_RANLIB
2915 if test -n "$RANLIB"; then
2916 echo "$as_me:$LINENO: result: $RANLIB" >&5
2917 echo "${ECHO_T}$RANLIB" >&6
2918 else
2919 echo "$as_me:$LINENO: result: no" >&5
2920 echo "${ECHO_T}no" >&6
2924 if test -z "$ac_cv_prog_RANLIB"; then
2925 ac_ct_RANLIB=$RANLIB
2926 # Extract the first word of "ranlib", so it can be a program name with args.
2927 set dummy ranlib; ac_word=$2
2928 echo "$as_me:$LINENO: checking for $ac_word" >&5
2929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2930 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2931 echo $ECHO_N "(cached) $ECHO_C" >&6
2932 else
2933 if test -n "$ac_ct_RANLIB"; then
2934 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2935 else
2936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2937 for as_dir in $PATH
2939 IFS=$as_save_IFS
2940 test -z "$as_dir" && as_dir=.
2941 for ac_exec_ext in '' $ac_executable_extensions; do
2942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2943 ac_cv_prog_ac_ct_RANLIB="ranlib"
2944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2945 break 2
2947 done
2948 done
2950 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2953 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2954 if test -n "$ac_ct_RANLIB"; then
2955 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2956 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2957 else
2958 echo "$as_me:$LINENO: result: no" >&5
2959 echo "${ECHO_T}no" >&6
2962 RANLIB=$ac_ct_RANLIB
2963 else
2964 RANLIB="$ac_cv_prog_RANLIB"
2968 cat >>confdefs.h <<\_ACEOF
2969 #define _GNU_SOURCE 1
2970 _ACEOF
2974 ac_ext=c
2975 ac_cpp='$CPP $CPPFLAGS'
2976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2979 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2980 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2981 # On Suns, sometimes $CPP names a directory.
2982 if test -n "$CPP" && test -d "$CPP"; then
2983 CPP=
2985 if test -z "$CPP"; then
2986 if test "${ac_cv_prog_CPP+set}" = set; then
2987 echo $ECHO_N "(cached) $ECHO_C" >&6
2988 else
2989 # Double quotes because CPP needs to be expanded
2990 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2992 ac_preproc_ok=false
2993 for ac_c_preproc_warn_flag in '' yes
2995 # Use a header file that comes with gcc, so configuring glibc
2996 # with a fresh cross-compiler works.
2997 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2998 # <limits.h> exists even on freestanding compilers.
2999 # On the NeXT, cc -E runs the code through the compiler's parser,
3000 # not just through cpp. "Syntax error" is here to catch this case.
3001 cat >conftest.$ac_ext <<_ACEOF
3002 /* confdefs.h. */
3003 _ACEOF
3004 cat confdefs.h >>conftest.$ac_ext
3005 cat >>conftest.$ac_ext <<_ACEOF
3006 /* end confdefs.h. */
3007 #ifdef __STDC__
3008 # include <limits.h>
3009 #else
3010 # include <assert.h>
3011 #endif
3012 Syntax error
3013 _ACEOF
3014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3015 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3016 ac_status=$?
3017 grep -v '^ *+' conftest.er1 >conftest.err
3018 rm -f conftest.er1
3019 cat conftest.err >&5
3020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021 (exit $ac_status); } >/dev/null; then
3022 if test -s conftest.err; then
3023 ac_cpp_err=$ac_c_preproc_warn_flag
3024 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3025 else
3026 ac_cpp_err=
3028 else
3029 ac_cpp_err=yes
3031 if test -z "$ac_cpp_err"; then
3033 else
3034 echo "$as_me: failed program was:" >&5
3035 sed 's/^/| /' conftest.$ac_ext >&5
3037 # Broken: fails on valid input.
3038 continue
3040 rm -f conftest.err conftest.$ac_ext
3042 # OK, works on sane cases. Now check whether non-existent headers
3043 # can be detected and how.
3044 cat >conftest.$ac_ext <<_ACEOF
3045 /* confdefs.h. */
3046 _ACEOF
3047 cat confdefs.h >>conftest.$ac_ext
3048 cat >>conftest.$ac_ext <<_ACEOF
3049 /* end confdefs.h. */
3050 #include <ac_nonexistent.h>
3051 _ACEOF
3052 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3053 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3054 ac_status=$?
3055 grep -v '^ *+' conftest.er1 >conftest.err
3056 rm -f conftest.er1
3057 cat conftest.err >&5
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); } >/dev/null; then
3060 if test -s conftest.err; then
3061 ac_cpp_err=$ac_c_preproc_warn_flag
3062 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3063 else
3064 ac_cpp_err=
3066 else
3067 ac_cpp_err=yes
3069 if test -z "$ac_cpp_err"; then
3070 # Broken: success on invalid input.
3071 continue
3072 else
3073 echo "$as_me: failed program was:" >&5
3074 sed 's/^/| /' conftest.$ac_ext >&5
3076 # Passes both tests.
3077 ac_preproc_ok=:
3078 break
3080 rm -f conftest.err conftest.$ac_ext
3082 done
3083 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3084 rm -f conftest.err conftest.$ac_ext
3085 if $ac_preproc_ok; then
3086 break
3089 done
3090 ac_cv_prog_CPP=$CPP
3093 CPP=$ac_cv_prog_CPP
3094 else
3095 ac_cv_prog_CPP=$CPP
3097 echo "$as_me:$LINENO: result: $CPP" >&5
3098 echo "${ECHO_T}$CPP" >&6
3099 ac_preproc_ok=false
3100 for ac_c_preproc_warn_flag in '' yes
3102 # Use a header file that comes with gcc, so configuring glibc
3103 # with a fresh cross-compiler works.
3104 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3105 # <limits.h> exists even on freestanding compilers.
3106 # On the NeXT, cc -E runs the code through the compiler's parser,
3107 # not just through cpp. "Syntax error" is here to catch this case.
3108 cat >conftest.$ac_ext <<_ACEOF
3109 /* confdefs.h. */
3110 _ACEOF
3111 cat confdefs.h >>conftest.$ac_ext
3112 cat >>conftest.$ac_ext <<_ACEOF
3113 /* end confdefs.h. */
3114 #ifdef __STDC__
3115 # include <limits.h>
3116 #else
3117 # include <assert.h>
3118 #endif
3119 Syntax error
3120 _ACEOF
3121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3122 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3123 ac_status=$?
3124 grep -v '^ *+' conftest.er1 >conftest.err
3125 rm -f conftest.er1
3126 cat conftest.err >&5
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); } >/dev/null; then
3129 if test -s conftest.err; then
3130 ac_cpp_err=$ac_c_preproc_warn_flag
3131 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3132 else
3133 ac_cpp_err=
3135 else
3136 ac_cpp_err=yes
3138 if test -z "$ac_cpp_err"; then
3140 else
3141 echo "$as_me: failed program was:" >&5
3142 sed 's/^/| /' conftest.$ac_ext >&5
3144 # Broken: fails on valid input.
3145 continue
3147 rm -f conftest.err conftest.$ac_ext
3149 # OK, works on sane cases. Now check whether non-existent headers
3150 # can be detected and how.
3151 cat >conftest.$ac_ext <<_ACEOF
3152 /* confdefs.h. */
3153 _ACEOF
3154 cat confdefs.h >>conftest.$ac_ext
3155 cat >>conftest.$ac_ext <<_ACEOF
3156 /* end confdefs.h. */
3157 #include <ac_nonexistent.h>
3158 _ACEOF
3159 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3160 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3161 ac_status=$?
3162 grep -v '^ *+' conftest.er1 >conftest.err
3163 rm -f conftest.er1
3164 cat conftest.err >&5
3165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166 (exit $ac_status); } >/dev/null; then
3167 if test -s conftest.err; then
3168 ac_cpp_err=$ac_c_preproc_warn_flag
3169 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3170 else
3171 ac_cpp_err=
3173 else
3174 ac_cpp_err=yes
3176 if test -z "$ac_cpp_err"; then
3177 # Broken: success on invalid input.
3178 continue
3179 else
3180 echo "$as_me: failed program was:" >&5
3181 sed 's/^/| /' conftest.$ac_ext >&5
3183 # Passes both tests.
3184 ac_preproc_ok=:
3185 break
3187 rm -f conftest.err conftest.$ac_ext
3189 done
3190 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3191 rm -f conftest.err conftest.$ac_ext
3192 if $ac_preproc_ok; then
3194 else
3195 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3196 See \`config.log' for more details." >&5
3197 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3198 See \`config.log' for more details." >&2;}
3199 { (exit 1); exit 1; }; }
3202 ac_ext=c
3203 ac_cpp='$CPP $CPPFLAGS'
3204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3209 echo "$as_me:$LINENO: checking for egrep" >&5
3210 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3211 if test "${ac_cv_prog_egrep+set}" = set; then
3212 echo $ECHO_N "(cached) $ECHO_C" >&6
3213 else
3214 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3215 then ac_cv_prog_egrep='grep -E'
3216 else ac_cv_prog_egrep='egrep'
3219 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3220 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3221 EGREP=$ac_cv_prog_egrep
3225 echo "$as_me:$LINENO: checking for AIX" >&5
3226 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3227 cat >conftest.$ac_ext <<_ACEOF
3228 /* confdefs.h. */
3229 _ACEOF
3230 cat confdefs.h >>conftest.$ac_ext
3231 cat >>conftest.$ac_ext <<_ACEOF
3232 /* end confdefs.h. */
3233 #ifdef _AIX
3235 #endif
3237 _ACEOF
3238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3239 $EGREP "yes" >/dev/null 2>&1; then
3240 echo "$as_me:$LINENO: result: yes" >&5
3241 echo "${ECHO_T}yes" >&6
3242 cat >>confdefs.h <<\_ACEOF
3243 #define _ALL_SOURCE 1
3244 _ACEOF
3246 else
3247 echo "$as_me:$LINENO: result: no" >&5
3248 echo "${ECHO_T}no" >&6
3250 rm -f conftest*
3253 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3254 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3255 if test "${ac_cv_header_stdc+set}" = set; then
3256 echo $ECHO_N "(cached) $ECHO_C" >&6
3257 else
3258 cat >conftest.$ac_ext <<_ACEOF
3259 /* confdefs.h. */
3260 _ACEOF
3261 cat confdefs.h >>conftest.$ac_ext
3262 cat >>conftest.$ac_ext <<_ACEOF
3263 /* end confdefs.h. */
3264 #include <stdlib.h>
3265 #include <stdarg.h>
3266 #include <string.h>
3267 #include <float.h>
3270 main ()
3274 return 0;
3276 _ACEOF
3277 rm -f conftest.$ac_objext
3278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3279 (eval $ac_compile) 2>conftest.er1
3280 ac_status=$?
3281 grep -v '^ *+' conftest.er1 >conftest.err
3282 rm -f conftest.er1
3283 cat conftest.err >&5
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); } &&
3286 { ac_try='test -z "$ac_c_werror_flag"
3287 || test ! -s conftest.err'
3288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3289 (eval $ac_try) 2>&5
3290 ac_status=$?
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); }; } &&
3293 { ac_try='test -s conftest.$ac_objext'
3294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3295 (eval $ac_try) 2>&5
3296 ac_status=$?
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); }; }; then
3299 ac_cv_header_stdc=yes
3300 else
3301 echo "$as_me: failed program was:" >&5
3302 sed 's/^/| /' conftest.$ac_ext >&5
3304 ac_cv_header_stdc=no
3306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3308 if test $ac_cv_header_stdc = yes; then
3309 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3310 cat >conftest.$ac_ext <<_ACEOF
3311 /* confdefs.h. */
3312 _ACEOF
3313 cat confdefs.h >>conftest.$ac_ext
3314 cat >>conftest.$ac_ext <<_ACEOF
3315 /* end confdefs.h. */
3316 #include <string.h>
3318 _ACEOF
3319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3320 $EGREP "memchr" >/dev/null 2>&1; then
3322 else
3323 ac_cv_header_stdc=no
3325 rm -f conftest*
3329 if test $ac_cv_header_stdc = yes; then
3330 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3331 cat >conftest.$ac_ext <<_ACEOF
3332 /* confdefs.h. */
3333 _ACEOF
3334 cat confdefs.h >>conftest.$ac_ext
3335 cat >>conftest.$ac_ext <<_ACEOF
3336 /* end confdefs.h. */
3337 #include <stdlib.h>
3339 _ACEOF
3340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3341 $EGREP "free" >/dev/null 2>&1; then
3343 else
3344 ac_cv_header_stdc=no
3346 rm -f conftest*
3350 if test $ac_cv_header_stdc = yes; then
3351 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3352 if test "$cross_compiling" = yes; then
3354 else
3355 cat >conftest.$ac_ext <<_ACEOF
3356 /* confdefs.h. */
3357 _ACEOF
3358 cat confdefs.h >>conftest.$ac_ext
3359 cat >>conftest.$ac_ext <<_ACEOF
3360 /* end confdefs.h. */
3361 #include <ctype.h>
3362 #if ((' ' & 0x0FF) == 0x020)
3363 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3364 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3365 #else
3366 # define ISLOWER(c) \
3367 (('a' <= (c) && (c) <= 'i') \
3368 || ('j' <= (c) && (c) <= 'r') \
3369 || ('s' <= (c) && (c) <= 'z'))
3370 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3371 #endif
3373 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3375 main ()
3377 int i;
3378 for (i = 0; i < 256; i++)
3379 if (XOR (islower (i), ISLOWER (i))
3380 || toupper (i) != TOUPPER (i))
3381 exit(2);
3382 exit (0);
3384 _ACEOF
3385 rm -f conftest$ac_exeext
3386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3387 (eval $ac_link) 2>&5
3388 ac_status=$?
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3392 (eval $ac_try) 2>&5
3393 ac_status=$?
3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); }; }; then
3397 else
3398 echo "$as_me: program exited with status $ac_status" >&5
3399 echo "$as_me: failed program was:" >&5
3400 sed 's/^/| /' conftest.$ac_ext >&5
3402 ( exit $ac_status )
3403 ac_cv_header_stdc=no
3405 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3409 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3410 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3411 if test $ac_cv_header_stdc = yes; then
3413 cat >>confdefs.h <<\_ACEOF
3414 #define STDC_HEADERS 1
3415 _ACEOF
3419 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3429 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3430 inttypes.h stdint.h unistd.h
3432 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3433 echo "$as_me:$LINENO: checking for $ac_header" >&5
3434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3436 echo $ECHO_N "(cached) $ECHO_C" >&6
3437 else
3438 cat >conftest.$ac_ext <<_ACEOF
3439 /* confdefs.h. */
3440 _ACEOF
3441 cat confdefs.h >>conftest.$ac_ext
3442 cat >>conftest.$ac_ext <<_ACEOF
3443 /* end confdefs.h. */
3444 $ac_includes_default
3446 #include <$ac_header>
3447 _ACEOF
3448 rm -f conftest.$ac_objext
3449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3450 (eval $ac_compile) 2>conftest.er1
3451 ac_status=$?
3452 grep -v '^ *+' conftest.er1 >conftest.err
3453 rm -f conftest.er1
3454 cat conftest.err >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); } &&
3457 { ac_try='test -z "$ac_c_werror_flag"
3458 || test ! -s conftest.err'
3459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3460 (eval $ac_try) 2>&5
3461 ac_status=$?
3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463 (exit $ac_status); }; } &&
3464 { ac_try='test -s conftest.$ac_objext'
3465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3466 (eval $ac_try) 2>&5
3467 ac_status=$?
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); }; }; then
3470 eval "$as_ac_Header=yes"
3471 else
3472 echo "$as_me: failed program was:" >&5
3473 sed 's/^/| /' conftest.$ac_ext >&5
3475 eval "$as_ac_Header=no"
3477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3480 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3482 cat >>confdefs.h <<_ACEOF
3483 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3484 _ACEOF
3488 done
3491 if test "${ac_cv_header_minix_config_h+set}" = set; then
3492 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3493 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3494 if test "${ac_cv_header_minix_config_h+set}" = set; then
3495 echo $ECHO_N "(cached) $ECHO_C" >&6
3497 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3498 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3499 else
3500 # Is the header compilable?
3501 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3502 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3503 cat >conftest.$ac_ext <<_ACEOF
3504 /* confdefs.h. */
3505 _ACEOF
3506 cat confdefs.h >>conftest.$ac_ext
3507 cat >>conftest.$ac_ext <<_ACEOF
3508 /* end confdefs.h. */
3509 $ac_includes_default
3510 #include <minix/config.h>
3511 _ACEOF
3512 rm -f conftest.$ac_objext
3513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3514 (eval $ac_compile) 2>conftest.er1
3515 ac_status=$?
3516 grep -v '^ *+' conftest.er1 >conftest.err
3517 rm -f conftest.er1
3518 cat conftest.err >&5
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); } &&
3521 { ac_try='test -z "$ac_c_werror_flag"
3522 || test ! -s conftest.err'
3523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3524 (eval $ac_try) 2>&5
3525 ac_status=$?
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); }; } &&
3528 { ac_try='test -s conftest.$ac_objext'
3529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3530 (eval $ac_try) 2>&5
3531 ac_status=$?
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); }; }; then
3534 ac_header_compiler=yes
3535 else
3536 echo "$as_me: failed program was:" >&5
3537 sed 's/^/| /' conftest.$ac_ext >&5
3539 ac_header_compiler=no
3541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3542 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3543 echo "${ECHO_T}$ac_header_compiler" >&6
3545 # Is the header present?
3546 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3547 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3548 cat >conftest.$ac_ext <<_ACEOF
3549 /* confdefs.h. */
3550 _ACEOF
3551 cat confdefs.h >>conftest.$ac_ext
3552 cat >>conftest.$ac_ext <<_ACEOF
3553 /* end confdefs.h. */
3554 #include <minix/config.h>
3555 _ACEOF
3556 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3557 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3558 ac_status=$?
3559 grep -v '^ *+' conftest.er1 >conftest.err
3560 rm -f conftest.er1
3561 cat conftest.err >&5
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); } >/dev/null; then
3564 if test -s conftest.err; then
3565 ac_cpp_err=$ac_c_preproc_warn_flag
3566 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3567 else
3568 ac_cpp_err=
3570 else
3571 ac_cpp_err=yes
3573 if test -z "$ac_cpp_err"; then
3574 ac_header_preproc=yes
3575 else
3576 echo "$as_me: failed program was:" >&5
3577 sed 's/^/| /' conftest.$ac_ext >&5
3579 ac_header_preproc=no
3581 rm -f conftest.err conftest.$ac_ext
3582 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3583 echo "${ECHO_T}$ac_header_preproc" >&6
3585 # So? What about this header?
3586 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3587 yes:no: )
3588 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3589 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3590 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3591 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3592 ac_header_preproc=yes
3594 no:yes:* )
3595 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3596 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3597 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3598 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3599 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3600 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3601 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3602 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3603 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3604 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3605 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3606 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3608 cat <<\_ASBOX
3609 ## ------------------------------ ##
3610 ## Report this to bonzini@gnu.org ##
3611 ## ------------------------------ ##
3612 _ASBOX
3614 sed "s/^/$as_me: WARNING: /" >&2
3616 esac
3617 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3618 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3619 if test "${ac_cv_header_minix_config_h+set}" = set; then
3620 echo $ECHO_N "(cached) $ECHO_C" >&6
3621 else
3622 ac_cv_header_minix_config_h=$ac_header_preproc
3624 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3625 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3628 if test $ac_cv_header_minix_config_h = yes; then
3629 MINIX=yes
3630 else
3631 MINIX=
3635 if test "$MINIX" = yes; then
3637 cat >>confdefs.h <<\_ACEOF
3638 #define _POSIX_SOURCE 1
3639 _ACEOF
3642 cat >>confdefs.h <<\_ACEOF
3643 #define _POSIX_1_SOURCE 2
3644 _ACEOF
3647 cat >>confdefs.h <<\_ACEOF
3648 #define _MINIX 1
3649 _ACEOF
3653 echo "$as_me:$LINENO: checking for library containing strerror" >&5
3654 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
3655 if test "${ac_cv_search_strerror+set}" = set; then
3656 echo $ECHO_N "(cached) $ECHO_C" >&6
3657 else
3658 ac_func_search_save_LIBS=$LIBS
3659 ac_cv_search_strerror=no
3660 cat >conftest.$ac_ext <<_ACEOF
3661 /* confdefs.h. */
3662 _ACEOF
3663 cat confdefs.h >>conftest.$ac_ext
3664 cat >>conftest.$ac_ext <<_ACEOF
3665 /* end confdefs.h. */
3667 /* Override any gcc2 internal prototype to avoid an error. */
3668 #ifdef __cplusplus
3669 extern "C"
3670 #endif
3671 /* We use char because int might match the return type of a gcc2
3672 builtin and then its argument prototype would still apply. */
3673 char strerror ();
3675 main ()
3677 strerror ();
3679 return 0;
3681 _ACEOF
3682 rm -f conftest.$ac_objext conftest$ac_exeext
3683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3684 (eval $ac_link) 2>conftest.er1
3685 ac_status=$?
3686 grep -v '^ *+' conftest.er1 >conftest.err
3687 rm -f conftest.er1
3688 cat conftest.err >&5
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); } &&
3691 { ac_try='test -z "$ac_c_werror_flag"
3692 || test ! -s conftest.err'
3693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3694 (eval $ac_try) 2>&5
3695 ac_status=$?
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); }; } &&
3698 { ac_try='test -s conftest$ac_exeext'
3699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3700 (eval $ac_try) 2>&5
3701 ac_status=$?
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); }; }; then
3704 ac_cv_search_strerror="none required"
3705 else
3706 echo "$as_me: failed program was:" >&5
3707 sed 's/^/| /' conftest.$ac_ext >&5
3710 rm -f conftest.err conftest.$ac_objext \
3711 conftest$ac_exeext conftest.$ac_ext
3712 if test "$ac_cv_search_strerror" = no; then
3713 for ac_lib in cposix; do
3714 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3715 cat >conftest.$ac_ext <<_ACEOF
3716 /* confdefs.h. */
3717 _ACEOF
3718 cat confdefs.h >>conftest.$ac_ext
3719 cat >>conftest.$ac_ext <<_ACEOF
3720 /* end confdefs.h. */
3722 /* Override any gcc2 internal prototype to avoid an error. */
3723 #ifdef __cplusplus
3724 extern "C"
3725 #endif
3726 /* We use char because int might match the return type of a gcc2
3727 builtin and then its argument prototype would still apply. */
3728 char strerror ();
3730 main ()
3732 strerror ();
3734 return 0;
3736 _ACEOF
3737 rm -f conftest.$ac_objext conftest$ac_exeext
3738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3739 (eval $ac_link) 2>conftest.er1
3740 ac_status=$?
3741 grep -v '^ *+' conftest.er1 >conftest.err
3742 rm -f conftest.er1
3743 cat conftest.err >&5
3744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745 (exit $ac_status); } &&
3746 { ac_try='test -z "$ac_c_werror_flag"
3747 || test ! -s conftest.err'
3748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3749 (eval $ac_try) 2>&5
3750 ac_status=$?
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); }; } &&
3753 { ac_try='test -s conftest$ac_exeext'
3754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3755 (eval $ac_try) 2>&5
3756 ac_status=$?
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); }; }; then
3759 ac_cv_search_strerror="-l$ac_lib"
3760 break
3761 else
3762 echo "$as_me: failed program was:" >&5
3763 sed 's/^/| /' conftest.$ac_ext >&5
3766 rm -f conftest.err conftest.$ac_objext \
3767 conftest$ac_exeext conftest.$ac_ext
3768 done
3770 LIBS=$ac_func_search_save_LIBS
3772 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3773 echo "${ECHO_T}$ac_cv_search_strerror" >&6
3774 if test "$ac_cv_search_strerror" != no; then
3775 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3779 # Check whether --enable-largefile or --disable-largefile was given.
3780 if test "${enable_largefile+set}" = set; then
3781 enableval="$enable_largefile"
3784 if test "$enable_largefile" != no; then
3786 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3787 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3788 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3789 echo $ECHO_N "(cached) $ECHO_C" >&6
3790 else
3791 ac_cv_sys_largefile_CC=no
3792 if test "$GCC" != yes; then
3793 ac_save_CC=$CC
3794 while :; do
3795 # IRIX 6.2 and later do not support large files by default,
3796 # so use the C compiler's -n32 option if that helps.
3797 cat >conftest.$ac_ext <<_ACEOF
3798 /* confdefs.h. */
3799 _ACEOF
3800 cat confdefs.h >>conftest.$ac_ext
3801 cat >>conftest.$ac_ext <<_ACEOF
3802 /* end confdefs.h. */
3803 #include <sys/types.h>
3804 /* Check that off_t can represent 2**63 - 1 correctly.
3805 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3806 since some C++ compilers masquerading as C compilers
3807 incorrectly reject 9223372036854775807. */
3808 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3809 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3810 && LARGE_OFF_T % 2147483647 == 1)
3811 ? 1 : -1];
3813 main ()
3817 return 0;
3819 _ACEOF
3820 rm -f conftest.$ac_objext
3821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3822 (eval $ac_compile) 2>conftest.er1
3823 ac_status=$?
3824 grep -v '^ *+' conftest.er1 >conftest.err
3825 rm -f conftest.er1
3826 cat conftest.err >&5
3827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828 (exit $ac_status); } &&
3829 { ac_try='test -z "$ac_c_werror_flag"
3830 || test ! -s conftest.err'
3831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3832 (eval $ac_try) 2>&5
3833 ac_status=$?
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); }; } &&
3836 { ac_try='test -s conftest.$ac_objext'
3837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3838 (eval $ac_try) 2>&5
3839 ac_status=$?
3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841 (exit $ac_status); }; }; then
3842 break
3843 else
3844 echo "$as_me: failed program was:" >&5
3845 sed 's/^/| /' conftest.$ac_ext >&5
3848 rm -f conftest.err conftest.$ac_objext
3849 CC="$CC -n32"
3850 rm -f conftest.$ac_objext
3851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3852 (eval $ac_compile) 2>conftest.er1
3853 ac_status=$?
3854 grep -v '^ *+' conftest.er1 >conftest.err
3855 rm -f conftest.er1
3856 cat conftest.err >&5
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); } &&
3859 { ac_try='test -z "$ac_c_werror_flag"
3860 || test ! -s conftest.err'
3861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3862 (eval $ac_try) 2>&5
3863 ac_status=$?
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }; } &&
3866 { ac_try='test -s conftest.$ac_objext'
3867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3868 (eval $ac_try) 2>&5
3869 ac_status=$?
3870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); }; }; then
3872 ac_cv_sys_largefile_CC=' -n32'; break
3873 else
3874 echo "$as_me: failed program was:" >&5
3875 sed 's/^/| /' conftest.$ac_ext >&5
3878 rm -f conftest.err conftest.$ac_objext
3879 break
3880 done
3881 CC=$ac_save_CC
3882 rm -f conftest.$ac_ext
3885 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3886 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3887 if test "$ac_cv_sys_largefile_CC" != no; then
3888 CC=$CC$ac_cv_sys_largefile_CC
3891 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3892 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3893 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3894 echo $ECHO_N "(cached) $ECHO_C" >&6
3895 else
3896 while :; do
3897 ac_cv_sys_file_offset_bits=no
3898 cat >conftest.$ac_ext <<_ACEOF
3899 /* confdefs.h. */
3900 _ACEOF
3901 cat confdefs.h >>conftest.$ac_ext
3902 cat >>conftest.$ac_ext <<_ACEOF
3903 /* end confdefs.h. */
3904 #include <sys/types.h>
3905 /* Check that off_t can represent 2**63 - 1 correctly.
3906 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3907 since some C++ compilers masquerading as C compilers
3908 incorrectly reject 9223372036854775807. */
3909 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3910 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3911 && LARGE_OFF_T % 2147483647 == 1)
3912 ? 1 : -1];
3914 main ()
3918 return 0;
3920 _ACEOF
3921 rm -f conftest.$ac_objext
3922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3923 (eval $ac_compile) 2>conftest.er1
3924 ac_status=$?
3925 grep -v '^ *+' conftest.er1 >conftest.err
3926 rm -f conftest.er1
3927 cat conftest.err >&5
3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 (exit $ac_status); } &&
3930 { ac_try='test -z "$ac_c_werror_flag"
3931 || test ! -s conftest.err'
3932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3933 (eval $ac_try) 2>&5
3934 ac_status=$?
3935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936 (exit $ac_status); }; } &&
3937 { ac_try='test -s conftest.$ac_objext'
3938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3939 (eval $ac_try) 2>&5
3940 ac_status=$?
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); }; }; then
3943 break
3944 else
3945 echo "$as_me: failed program was:" >&5
3946 sed 's/^/| /' conftest.$ac_ext >&5
3949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3950 cat >conftest.$ac_ext <<_ACEOF
3951 /* confdefs.h. */
3952 _ACEOF
3953 cat confdefs.h >>conftest.$ac_ext
3954 cat >>conftest.$ac_ext <<_ACEOF
3955 /* end confdefs.h. */
3956 #define _FILE_OFFSET_BITS 64
3957 #include <sys/types.h>
3958 /* Check that off_t can represent 2**63 - 1 correctly.
3959 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3960 since some C++ compilers masquerading as C compilers
3961 incorrectly reject 9223372036854775807. */
3962 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3963 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3964 && LARGE_OFF_T % 2147483647 == 1)
3965 ? 1 : -1];
3967 main ()
3971 return 0;
3973 _ACEOF
3974 rm -f conftest.$ac_objext
3975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3976 (eval $ac_compile) 2>conftest.er1
3977 ac_status=$?
3978 grep -v '^ *+' conftest.er1 >conftest.err
3979 rm -f conftest.er1
3980 cat conftest.err >&5
3981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982 (exit $ac_status); } &&
3983 { ac_try='test -z "$ac_c_werror_flag"
3984 || test ! -s conftest.err'
3985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3986 (eval $ac_try) 2>&5
3987 ac_status=$?
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); }; } &&
3990 { ac_try='test -s conftest.$ac_objext'
3991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3992 (eval $ac_try) 2>&5
3993 ac_status=$?
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); }; }; then
3996 ac_cv_sys_file_offset_bits=64; break
3997 else
3998 echo "$as_me: failed program was:" >&5
3999 sed 's/^/| /' conftest.$ac_ext >&5
4002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4003 break
4004 done
4006 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4007 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4008 if test "$ac_cv_sys_file_offset_bits" != no; then
4010 cat >>confdefs.h <<_ACEOF
4011 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4012 _ACEOF
4015 rm -f conftest*
4016 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4017 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4018 if test "${ac_cv_sys_large_files+set}" = set; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4020 else
4021 while :; do
4022 ac_cv_sys_large_files=no
4023 cat >conftest.$ac_ext <<_ACEOF
4024 /* confdefs.h. */
4025 _ACEOF
4026 cat confdefs.h >>conftest.$ac_ext
4027 cat >>conftest.$ac_ext <<_ACEOF
4028 /* end confdefs.h. */
4029 #include <sys/types.h>
4030 /* Check that off_t can represent 2**63 - 1 correctly.
4031 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4032 since some C++ compilers masquerading as C compilers
4033 incorrectly reject 9223372036854775807. */
4034 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4035 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4036 && LARGE_OFF_T % 2147483647 == 1)
4037 ? 1 : -1];
4039 main ()
4043 return 0;
4045 _ACEOF
4046 rm -f conftest.$ac_objext
4047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4048 (eval $ac_compile) 2>conftest.er1
4049 ac_status=$?
4050 grep -v '^ *+' conftest.er1 >conftest.err
4051 rm -f conftest.er1
4052 cat conftest.err >&5
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); } &&
4055 { ac_try='test -z "$ac_c_werror_flag"
4056 || test ! -s conftest.err'
4057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4058 (eval $ac_try) 2>&5
4059 ac_status=$?
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); }; } &&
4062 { ac_try='test -s conftest.$ac_objext'
4063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4064 (eval $ac_try) 2>&5
4065 ac_status=$?
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); }; }; then
4068 break
4069 else
4070 echo "$as_me: failed program was:" >&5
4071 sed 's/^/| /' conftest.$ac_ext >&5
4074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4075 cat >conftest.$ac_ext <<_ACEOF
4076 /* confdefs.h. */
4077 _ACEOF
4078 cat confdefs.h >>conftest.$ac_ext
4079 cat >>conftest.$ac_ext <<_ACEOF
4080 /* end confdefs.h. */
4081 #define _LARGE_FILES 1
4082 #include <sys/types.h>
4083 /* Check that off_t can represent 2**63 - 1 correctly.
4084 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4085 since some C++ compilers masquerading as C compilers
4086 incorrectly reject 9223372036854775807. */
4087 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4088 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4089 && LARGE_OFF_T % 2147483647 == 1)
4090 ? 1 : -1];
4092 main ()
4096 return 0;
4098 _ACEOF
4099 rm -f conftest.$ac_objext
4100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4101 (eval $ac_compile) 2>conftest.er1
4102 ac_status=$?
4103 grep -v '^ *+' conftest.er1 >conftest.err
4104 rm -f conftest.er1
4105 cat conftest.err >&5
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); } &&
4108 { ac_try='test -z "$ac_c_werror_flag"
4109 || test ! -s conftest.err'
4110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4111 (eval $ac_try) 2>&5
4112 ac_status=$?
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); }; } &&
4115 { ac_try='test -s conftest.$ac_objext'
4116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4117 (eval $ac_try) 2>&5
4118 ac_status=$?
4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); }; }; then
4121 ac_cv_sys_large_files=1; break
4122 else
4123 echo "$as_me: failed program was:" >&5
4124 sed 's/^/| /' conftest.$ac_ext >&5
4127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4128 break
4129 done
4131 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4132 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4133 if test "$ac_cv_sys_large_files" != no; then
4135 cat >>confdefs.h <<_ACEOF
4136 #define _LARGE_FILES $ac_cv_sys_large_files
4137 _ACEOF
4140 rm -f conftest*
4143 echo "$as_me:$LINENO: checking for long file names" >&5
4144 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
4145 if test "${ac_cv_sys_long_file_names+set}" = set; then
4146 echo $ECHO_N "(cached) $ECHO_C" >&6
4147 else
4148 ac_cv_sys_long_file_names=yes
4149 # Test for long file names in all the places we know might matter:
4150 # . the current directory, where building will happen
4151 # $prefix/lib where we will be installing things
4152 # $exec_prefix/lib likewise
4153 # eval it to expand exec_prefix.
4154 # $TMPDIR if set, where it might want to write temporary files
4155 # if $TMPDIR is not set:
4156 # /tmp where it might want to write temporary files
4157 # /var/tmp likewise
4158 # /usr/tmp likewise
4159 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4160 ac_tmpdirs=$TMPDIR
4161 else
4162 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
4164 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4165 test -d $ac_dir || continue
4166 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4167 ac_xdir=$ac_dir/cf$$
4168 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
4169 ac_tf1=$ac_xdir/conftest9012345
4170 ac_tf2=$ac_xdir/conftest9012346
4171 (echo 1 >$ac_tf1) 2>/dev/null
4172 (echo 2 >$ac_tf2) 2>/dev/null
4173 ac_val=`cat $ac_tf1 2>/dev/null`
4174 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
4175 ac_cv_sys_long_file_names=no
4176 rm -rf $ac_xdir 2>/dev/null
4177 break
4179 rm -rf $ac_xdir 2>/dev/null
4180 done
4182 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
4183 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
4184 if test $ac_cv_sys_long_file_names = yes; then
4186 cat >>confdefs.h <<\_ACEOF
4187 #define HAVE_LONG_FILE_NAMES 1
4188 _ACEOF
4193 echo "$as_me:$LINENO: checking whether -lcP is needed" >&5
4194 echo $ECHO_N "checking whether -lcP is needed... $ECHO_C" >&6
4195 if test "${sed_cv_libcp_needed+set}" = set; then
4196 echo $ECHO_N "(cached) $ECHO_C" >&6
4197 else
4199 if test "$cross_compiling" = yes; then
4200 sed_cv_libcp_needed="assuming no"
4201 else
4202 cat >conftest.$ac_ext <<_ACEOF
4203 /* confdefs.h. */
4204 _ACEOF
4205 cat confdefs.h >>conftest.$ac_ext
4206 cat >>conftest.$ac_ext <<_ACEOF
4207 /* end confdefs.h. */
4209 #include <stdio.h>
4210 #include <errno.h>
4212 int main()
4214 FILE *fp;
4215 int result;
4216 errno = 0;
4217 fp = fopen ("conftest.c", "r");
4218 if (!fp) return 0; /* error, assume not needed */
4219 result = fflush (fp) == EOF && errno == 0;
4220 fclose (fp);
4221 return result;
4223 _ACEOF
4224 rm -f conftest$ac_exeext
4225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4226 (eval $ac_link) 2>&5
4227 ac_status=$?
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4231 (eval $ac_try) 2>&5
4232 ac_status=$?
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); }; }; then
4235 sed_cv_libcp_needed=no
4236 else
4237 echo "$as_me: program exited with status $ac_status" >&5
4238 echo "$as_me: failed program was:" >&5
4239 sed 's/^/| /' conftest.$ac_ext >&5
4241 ( exit $ac_status )
4242 sed_cv_libcp_needed=yes
4244 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4248 echo "$as_me:$LINENO: result: $sed_cv_libcp_needed" >&5
4249 echo "${ECHO_T}$sed_cv_libcp_needed" >&6
4250 if test "$sed_cv_libcp_needed" = yes; then
4251 LIBS="-lcP $LIBS"
4259 ac_header_dirent=no
4260 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4261 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4262 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4263 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4265 echo $ECHO_N "(cached) $ECHO_C" >&6
4266 else
4267 cat >conftest.$ac_ext <<_ACEOF
4268 /* confdefs.h. */
4269 _ACEOF
4270 cat confdefs.h >>conftest.$ac_ext
4271 cat >>conftest.$ac_ext <<_ACEOF
4272 /* end confdefs.h. */
4273 #include <sys/types.h>
4274 #include <$ac_hdr>
4277 main ()
4279 if ((DIR *) 0)
4280 return 0;
4282 return 0;
4284 _ACEOF
4285 rm -f conftest.$ac_objext
4286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4287 (eval $ac_compile) 2>conftest.er1
4288 ac_status=$?
4289 grep -v '^ *+' conftest.er1 >conftest.err
4290 rm -f conftest.er1
4291 cat conftest.err >&5
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); } &&
4294 { ac_try='test -z "$ac_c_werror_flag"
4295 || test ! -s conftest.err'
4296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4297 (eval $ac_try) 2>&5
4298 ac_status=$?
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); }; } &&
4301 { ac_try='test -s conftest.$ac_objext'
4302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4303 (eval $ac_try) 2>&5
4304 ac_status=$?
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); }; }; then
4307 eval "$as_ac_Header=yes"
4308 else
4309 echo "$as_me: failed program was:" >&5
4310 sed 's/^/| /' conftest.$ac_ext >&5
4312 eval "$as_ac_Header=no"
4314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4318 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4319 cat >>confdefs.h <<_ACEOF
4320 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4321 _ACEOF
4323 ac_header_dirent=$ac_hdr; break
4326 done
4327 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4328 if test $ac_header_dirent = dirent.h; then
4329 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4330 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4331 if test "${ac_cv_search_opendir+set}" = set; then
4332 echo $ECHO_N "(cached) $ECHO_C" >&6
4333 else
4334 ac_func_search_save_LIBS=$LIBS
4335 ac_cv_search_opendir=no
4336 cat >conftest.$ac_ext <<_ACEOF
4337 /* confdefs.h. */
4338 _ACEOF
4339 cat confdefs.h >>conftest.$ac_ext
4340 cat >>conftest.$ac_ext <<_ACEOF
4341 /* end confdefs.h. */
4343 /* Override any gcc2 internal prototype to avoid an error. */
4344 #ifdef __cplusplus
4345 extern "C"
4346 #endif
4347 /* We use char because int might match the return type of a gcc2
4348 builtin and then its argument prototype would still apply. */
4349 char opendir ();
4351 main ()
4353 opendir ();
4355 return 0;
4357 _ACEOF
4358 rm -f conftest.$ac_objext conftest$ac_exeext
4359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4360 (eval $ac_link) 2>conftest.er1
4361 ac_status=$?
4362 grep -v '^ *+' conftest.er1 >conftest.err
4363 rm -f conftest.er1
4364 cat conftest.err >&5
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); } &&
4367 { ac_try='test -z "$ac_c_werror_flag"
4368 || test ! -s conftest.err'
4369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4370 (eval $ac_try) 2>&5
4371 ac_status=$?
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); }; } &&
4374 { ac_try='test -s conftest$ac_exeext'
4375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4376 (eval $ac_try) 2>&5
4377 ac_status=$?
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); }; }; then
4380 ac_cv_search_opendir="none required"
4381 else
4382 echo "$as_me: failed program was:" >&5
4383 sed 's/^/| /' conftest.$ac_ext >&5
4386 rm -f conftest.err conftest.$ac_objext \
4387 conftest$ac_exeext conftest.$ac_ext
4388 if test "$ac_cv_search_opendir" = no; then
4389 for ac_lib in dir; do
4390 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4391 cat >conftest.$ac_ext <<_ACEOF
4392 /* confdefs.h. */
4393 _ACEOF
4394 cat confdefs.h >>conftest.$ac_ext
4395 cat >>conftest.$ac_ext <<_ACEOF
4396 /* end confdefs.h. */
4398 /* Override any gcc2 internal prototype to avoid an error. */
4399 #ifdef __cplusplus
4400 extern "C"
4401 #endif
4402 /* We use char because int might match the return type of a gcc2
4403 builtin and then its argument prototype would still apply. */
4404 char opendir ();
4406 main ()
4408 opendir ();
4410 return 0;
4412 _ACEOF
4413 rm -f conftest.$ac_objext conftest$ac_exeext
4414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4415 (eval $ac_link) 2>conftest.er1
4416 ac_status=$?
4417 grep -v '^ *+' conftest.er1 >conftest.err
4418 rm -f conftest.er1
4419 cat conftest.err >&5
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); } &&
4422 { ac_try='test -z "$ac_c_werror_flag"
4423 || test ! -s conftest.err'
4424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4425 (eval $ac_try) 2>&5
4426 ac_status=$?
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); }; } &&
4429 { ac_try='test -s conftest$ac_exeext'
4430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4431 (eval $ac_try) 2>&5
4432 ac_status=$?
4433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434 (exit $ac_status); }; }; then
4435 ac_cv_search_opendir="-l$ac_lib"
4436 break
4437 else
4438 echo "$as_me: failed program was:" >&5
4439 sed 's/^/| /' conftest.$ac_ext >&5
4442 rm -f conftest.err conftest.$ac_objext \
4443 conftest$ac_exeext conftest.$ac_ext
4444 done
4446 LIBS=$ac_func_search_save_LIBS
4448 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4449 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4450 if test "$ac_cv_search_opendir" != no; then
4451 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4455 else
4456 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4457 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4458 if test "${ac_cv_search_opendir+set}" = set; then
4459 echo $ECHO_N "(cached) $ECHO_C" >&6
4460 else
4461 ac_func_search_save_LIBS=$LIBS
4462 ac_cv_search_opendir=no
4463 cat >conftest.$ac_ext <<_ACEOF
4464 /* confdefs.h. */
4465 _ACEOF
4466 cat confdefs.h >>conftest.$ac_ext
4467 cat >>conftest.$ac_ext <<_ACEOF
4468 /* end confdefs.h. */
4470 /* Override any gcc2 internal prototype to avoid an error. */
4471 #ifdef __cplusplus
4472 extern "C"
4473 #endif
4474 /* We use char because int might match the return type of a gcc2
4475 builtin and then its argument prototype would still apply. */
4476 char opendir ();
4478 main ()
4480 opendir ();
4482 return 0;
4484 _ACEOF
4485 rm -f conftest.$ac_objext conftest$ac_exeext
4486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4487 (eval $ac_link) 2>conftest.er1
4488 ac_status=$?
4489 grep -v '^ *+' conftest.er1 >conftest.err
4490 rm -f conftest.er1
4491 cat conftest.err >&5
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); } &&
4494 { ac_try='test -z "$ac_c_werror_flag"
4495 || test ! -s conftest.err'
4496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4497 (eval $ac_try) 2>&5
4498 ac_status=$?
4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); }; } &&
4501 { ac_try='test -s conftest$ac_exeext'
4502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4503 (eval $ac_try) 2>&5
4504 ac_status=$?
4505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506 (exit $ac_status); }; }; then
4507 ac_cv_search_opendir="none required"
4508 else
4509 echo "$as_me: failed program was:" >&5
4510 sed 's/^/| /' conftest.$ac_ext >&5
4513 rm -f conftest.err conftest.$ac_objext \
4514 conftest$ac_exeext conftest.$ac_ext
4515 if test "$ac_cv_search_opendir" = no; then
4516 for ac_lib in x; do
4517 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4518 cat >conftest.$ac_ext <<_ACEOF
4519 /* confdefs.h. */
4520 _ACEOF
4521 cat confdefs.h >>conftest.$ac_ext
4522 cat >>conftest.$ac_ext <<_ACEOF
4523 /* end confdefs.h. */
4525 /* Override any gcc2 internal prototype to avoid an error. */
4526 #ifdef __cplusplus
4527 extern "C"
4528 #endif
4529 /* We use char because int might match the return type of a gcc2
4530 builtin and then its argument prototype would still apply. */
4531 char opendir ();
4533 main ()
4535 opendir ();
4537 return 0;
4539 _ACEOF
4540 rm -f conftest.$ac_objext conftest$ac_exeext
4541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4542 (eval $ac_link) 2>conftest.er1
4543 ac_status=$?
4544 grep -v '^ *+' conftest.er1 >conftest.err
4545 rm -f conftest.er1
4546 cat conftest.err >&5
4547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); } &&
4549 { ac_try='test -z "$ac_c_werror_flag"
4550 || test ! -s conftest.err'
4551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4552 (eval $ac_try) 2>&5
4553 ac_status=$?
4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); }; } &&
4556 { ac_try='test -s conftest$ac_exeext'
4557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4558 (eval $ac_try) 2>&5
4559 ac_status=$?
4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561 (exit $ac_status); }; }; then
4562 ac_cv_search_opendir="-l$ac_lib"
4563 break
4564 else
4565 echo "$as_me: failed program was:" >&5
4566 sed 's/^/| /' conftest.$ac_ext >&5
4569 rm -f conftest.err conftest.$ac_objext \
4570 conftest$ac_exeext conftest.$ac_ext
4571 done
4573 LIBS=$ac_func_search_save_LIBS
4575 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4576 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4577 if test "$ac_cv_search_opendir" != no; then
4578 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4595 for ac_header in io.h limits.h locale.h stdarg.h alloca.h stddef.h errno.h \
4596 wchar.h wctype.h sys/file.h mcheck.h
4598 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4599 echo "$as_me:$LINENO: checking for $ac_header" >&5
4600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4602 echo $ECHO_N "(cached) $ECHO_C" >&6
4603 else
4604 cat >conftest.$ac_ext <<_ACEOF
4605 /* confdefs.h. */
4606 _ACEOF
4607 cat confdefs.h >>conftest.$ac_ext
4608 cat >>conftest.$ac_ext <<_ACEOF
4609 /* end confdefs.h. */
4610 $ac_includes_default
4612 #include <$ac_header>
4613 _ACEOF
4614 rm -f conftest.$ac_objext
4615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4616 (eval $ac_compile) 2>conftest.er1
4617 ac_status=$?
4618 grep -v '^ *+' conftest.er1 >conftest.err
4619 rm -f conftest.er1
4620 cat conftest.err >&5
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); } &&
4623 { ac_try='test -z "$ac_c_werror_flag"
4624 || test ! -s conftest.err'
4625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4626 (eval $ac_try) 2>&5
4627 ac_status=$?
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); }; } &&
4630 { ac_try='test -s conftest.$ac_objext'
4631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4632 (eval $ac_try) 2>&5
4633 ac_status=$?
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); }; }; then
4636 eval "$as_ac_Header=yes"
4637 else
4638 echo "$as_me: failed program was:" >&5
4639 sed 's/^/| /' conftest.$ac_ext >&5
4641 eval "$as_ac_Header=no"
4643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4645 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4646 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4647 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4648 cat >>confdefs.h <<_ACEOF
4649 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4650 _ACEOF
4654 done
4656 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4657 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4658 if test "${ac_cv_c_const+set}" = set; then
4659 echo $ECHO_N "(cached) $ECHO_C" >&6
4660 else
4661 cat >conftest.$ac_ext <<_ACEOF
4662 /* confdefs.h. */
4663 _ACEOF
4664 cat confdefs.h >>conftest.$ac_ext
4665 cat >>conftest.$ac_ext <<_ACEOF
4666 /* end confdefs.h. */
4669 main ()
4671 /* FIXME: Include the comments suggested by Paul. */
4672 #ifndef __cplusplus
4673 /* Ultrix mips cc rejects this. */
4674 typedef int charset[2];
4675 const charset x;
4676 /* SunOS 4.1.1 cc rejects this. */
4677 char const *const *ccp;
4678 char **p;
4679 /* NEC SVR4.0.2 mips cc rejects this. */
4680 struct point {int x, y;};
4681 static struct point const zero = {0,0};
4682 /* AIX XL C 1.02.0.0 rejects this.
4683 It does not let you subtract one const X* pointer from another in
4684 an arm of an if-expression whose if-part is not a constant
4685 expression */
4686 const char *g = "string";
4687 ccp = &g + (g ? g-g : 0);
4688 /* HPUX 7.0 cc rejects these. */
4689 ++ccp;
4690 p = (char**) ccp;
4691 ccp = (char const *const *) p;
4692 { /* SCO 3.2v4 cc rejects this. */
4693 char *t;
4694 char const *s = 0 ? (char *) 0 : (char const *) 0;
4696 *t++ = 0;
4698 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4699 int x[] = {25, 17};
4700 const int *foo = &x[0];
4701 ++foo;
4703 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4704 typedef const int *iptr;
4705 iptr p = 0;
4706 ++p;
4708 { /* AIX XL C 1.02.0.0 rejects this saying
4709 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4710 struct s { int j; const int *ap[3]; };
4711 struct s *b; b->j = 5;
4713 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4714 const int foo = 10;
4716 #endif
4719 return 0;
4721 _ACEOF
4722 rm -f conftest.$ac_objext
4723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4724 (eval $ac_compile) 2>conftest.er1
4725 ac_status=$?
4726 grep -v '^ *+' conftest.er1 >conftest.err
4727 rm -f conftest.er1
4728 cat conftest.err >&5
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); } &&
4731 { ac_try='test -z "$ac_c_werror_flag"
4732 || test ! -s conftest.err'
4733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4734 (eval $ac_try) 2>&5
4735 ac_status=$?
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); }; } &&
4738 { ac_try='test -s conftest.$ac_objext'
4739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4740 (eval $ac_try) 2>&5
4741 ac_status=$?
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); }; }; then
4744 ac_cv_c_const=yes
4745 else
4746 echo "$as_me: failed program was:" >&5
4747 sed 's/^/| /' conftest.$ac_ext >&5
4749 ac_cv_c_const=no
4751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4753 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4754 echo "${ECHO_T}$ac_cv_c_const" >&6
4755 if test $ac_cv_c_const = no; then
4757 cat >>confdefs.h <<\_ACEOF
4758 #define const
4759 _ACEOF
4763 echo "$as_me:$LINENO: checking for size_t" >&5
4764 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4765 if test "${ac_cv_type_size_t+set}" = set; then
4766 echo $ECHO_N "(cached) $ECHO_C" >&6
4767 else
4768 cat >conftest.$ac_ext <<_ACEOF
4769 /* confdefs.h. */
4770 _ACEOF
4771 cat confdefs.h >>conftest.$ac_ext
4772 cat >>conftest.$ac_ext <<_ACEOF
4773 /* end confdefs.h. */
4774 $ac_includes_default
4776 main ()
4778 if ((size_t *) 0)
4779 return 0;
4780 if (sizeof (size_t))
4781 return 0;
4783 return 0;
4785 _ACEOF
4786 rm -f conftest.$ac_objext
4787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4788 (eval $ac_compile) 2>conftest.er1
4789 ac_status=$?
4790 grep -v '^ *+' conftest.er1 >conftest.err
4791 rm -f conftest.er1
4792 cat conftest.err >&5
4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); } &&
4795 { ac_try='test -z "$ac_c_werror_flag"
4796 || test ! -s conftest.err'
4797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4798 (eval $ac_try) 2>&5
4799 ac_status=$?
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); }; } &&
4802 { ac_try='test -s conftest.$ac_objext'
4803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4804 (eval $ac_try) 2>&5
4805 ac_status=$?
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); }; }; then
4808 ac_cv_type_size_t=yes
4809 else
4810 echo "$as_me: failed program was:" >&5
4811 sed 's/^/| /' conftest.$ac_ext >&5
4813 ac_cv_type_size_t=no
4815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4817 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4818 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4819 if test $ac_cv_type_size_t = yes; then
4821 else
4823 cat >>confdefs.h <<_ACEOF
4824 #define size_t unsigned
4825 _ACEOF
4829 echo "$as_me:$LINENO: checking for ssize_t" >&5
4830 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
4831 if test "${ac_cv_type_ssize_t+set}" = set; then
4832 echo $ECHO_N "(cached) $ECHO_C" >&6
4833 else
4834 cat >conftest.$ac_ext <<_ACEOF
4835 /* confdefs.h. */
4836 _ACEOF
4837 cat confdefs.h >>conftest.$ac_ext
4838 cat >>conftest.$ac_ext <<_ACEOF
4839 /* end confdefs.h. */
4840 $ac_includes_default
4842 main ()
4844 if ((ssize_t *) 0)
4845 return 0;
4846 if (sizeof (ssize_t))
4847 return 0;
4849 return 0;
4851 _ACEOF
4852 rm -f conftest.$ac_objext
4853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4854 (eval $ac_compile) 2>conftest.er1
4855 ac_status=$?
4856 grep -v '^ *+' conftest.er1 >conftest.err
4857 rm -f conftest.er1
4858 cat conftest.err >&5
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); } &&
4861 { ac_try='test -z "$ac_c_werror_flag"
4862 || test ! -s conftest.err'
4863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4864 (eval $ac_try) 2>&5
4865 ac_status=$?
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); }; } &&
4868 { ac_try='test -s conftest.$ac_objext'
4869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4870 (eval $ac_try) 2>&5
4871 ac_status=$?
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); }; }; then
4874 ac_cv_type_ssize_t=yes
4875 else
4876 echo "$as_me: failed program was:" >&5
4877 sed 's/^/| /' conftest.$ac_ext >&5
4879 ac_cv_type_ssize_t=no
4881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4883 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
4884 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
4885 if test $ac_cv_type_ssize_t = yes; then
4887 else
4889 cat >>confdefs.h <<_ACEOF
4890 #define ssize_t int
4891 _ACEOF
4896 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
4897 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
4898 if test "${ac_cv_header_stdbool_h+set}" = set; then
4899 echo $ECHO_N "(cached) $ECHO_C" >&6
4900 else
4901 cat >conftest.$ac_ext <<_ACEOF
4902 /* confdefs.h. */
4903 _ACEOF
4904 cat confdefs.h >>conftest.$ac_ext
4905 cat >>conftest.$ac_ext <<_ACEOF
4906 /* end confdefs.h. */
4908 #include <stdbool.h>
4909 #ifndef bool
4910 "error: bool is not defined"
4911 #endif
4912 #ifndef false
4913 "error: false is not defined"
4914 #endif
4915 #if false
4916 "error: false is not 0"
4917 #endif
4918 #ifndef true
4919 "error: false is not defined"
4920 #endif
4921 #if true != 1
4922 "error: true is not 1"
4923 #endif
4924 #ifndef __bool_true_false_are_defined
4925 "error: __bool_true_false_are_defined is not defined"
4926 #endif
4928 struct s { _Bool s: 1; _Bool t; } s;
4930 char a[true == 1 ? 1 : -1];
4931 char b[false == 0 ? 1 : -1];
4932 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
4933 char d[(bool) -0.5 == true ? 1 : -1];
4934 bool e = &s;
4935 char f[(_Bool) -0.0 == false ? 1 : -1];
4936 char g[true];
4937 char h[sizeof (_Bool)];
4938 char i[sizeof s.t];
4941 main ()
4943 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
4945 return 0;
4947 _ACEOF
4948 rm -f conftest.$ac_objext
4949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4950 (eval $ac_compile) 2>conftest.er1
4951 ac_status=$?
4952 grep -v '^ *+' conftest.er1 >conftest.err
4953 rm -f conftest.er1
4954 cat conftest.err >&5
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); } &&
4957 { ac_try='test -z "$ac_c_werror_flag"
4958 || test ! -s conftest.err'
4959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4960 (eval $ac_try) 2>&5
4961 ac_status=$?
4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963 (exit $ac_status); }; } &&
4964 { ac_try='test -s conftest.$ac_objext'
4965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4966 (eval $ac_try) 2>&5
4967 ac_status=$?
4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); }; }; then
4970 ac_cv_header_stdbool_h=yes
4971 else
4972 echo "$as_me: failed program was:" >&5
4973 sed 's/^/| /' conftest.$ac_ext >&5
4975 ac_cv_header_stdbool_h=no
4977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4979 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
4980 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
4981 echo "$as_me:$LINENO: checking for _Bool" >&5
4982 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
4983 if test "${ac_cv_type__Bool+set}" = set; then
4984 echo $ECHO_N "(cached) $ECHO_C" >&6
4985 else
4986 cat >conftest.$ac_ext <<_ACEOF
4987 /* confdefs.h. */
4988 _ACEOF
4989 cat confdefs.h >>conftest.$ac_ext
4990 cat >>conftest.$ac_ext <<_ACEOF
4991 /* end confdefs.h. */
4992 $ac_includes_default
4994 main ()
4996 if ((_Bool *) 0)
4997 return 0;
4998 if (sizeof (_Bool))
4999 return 0;
5001 return 0;
5003 _ACEOF
5004 rm -f conftest.$ac_objext
5005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5006 (eval $ac_compile) 2>conftest.er1
5007 ac_status=$?
5008 grep -v '^ *+' conftest.er1 >conftest.err
5009 rm -f conftest.er1
5010 cat conftest.err >&5
5011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012 (exit $ac_status); } &&
5013 { ac_try='test -z "$ac_c_werror_flag"
5014 || test ! -s conftest.err'
5015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5016 (eval $ac_try) 2>&5
5017 ac_status=$?
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); }; } &&
5020 { ac_try='test -s conftest.$ac_objext'
5021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5022 (eval $ac_try) 2>&5
5023 ac_status=$?
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); }; }; then
5026 ac_cv_type__Bool=yes
5027 else
5028 echo "$as_me: failed program was:" >&5
5029 sed 's/^/| /' conftest.$ac_ext >&5
5031 ac_cv_type__Bool=no
5033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5035 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
5036 echo "${ECHO_T}$ac_cv_type__Bool" >&6
5037 if test $ac_cv_type__Bool = yes; then
5039 cat >>confdefs.h <<_ACEOF
5040 #define HAVE__BOOL 1
5041 _ACEOF
5046 if test $ac_cv_header_stdbool_h = yes; then
5048 cat >>confdefs.h <<\_ACEOF
5049 #define HAVE_STDBOOL_H 1
5050 _ACEOF
5053 if test "$ac_cv_type__Bool" = no; then
5054 HAVE__BOOL=0
5055 else
5056 HAVE__BOOL=1
5059 if test "$ac_cv_header_stdbool_h" = no; then
5060 ac_config_files="$ac_config_files lib/stdbool.h:lib/stdbool_.h"
5064 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5065 # for constant arguments. Useless!
5066 echo "$as_me:$LINENO: checking for working alloca.h" >&5
5067 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5068 if test "${ac_cv_working_alloca_h+set}" = set; then
5069 echo $ECHO_N "(cached) $ECHO_C" >&6
5070 else
5071 cat >conftest.$ac_ext <<_ACEOF
5072 /* confdefs.h. */
5073 _ACEOF
5074 cat confdefs.h >>conftest.$ac_ext
5075 cat >>conftest.$ac_ext <<_ACEOF
5076 /* end confdefs.h. */
5077 #include <alloca.h>
5079 main ()
5081 char *p = (char *) alloca (2 * sizeof (int));
5083 return 0;
5085 _ACEOF
5086 rm -f conftest.$ac_objext conftest$ac_exeext
5087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5088 (eval $ac_link) 2>conftest.er1
5089 ac_status=$?
5090 grep -v '^ *+' conftest.er1 >conftest.err
5091 rm -f conftest.er1
5092 cat conftest.err >&5
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); } &&
5095 { ac_try='test -z "$ac_c_werror_flag"
5096 || test ! -s conftest.err'
5097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5098 (eval $ac_try) 2>&5
5099 ac_status=$?
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); }; } &&
5102 { ac_try='test -s conftest$ac_exeext'
5103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5104 (eval $ac_try) 2>&5
5105 ac_status=$?
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); }; }; then
5108 ac_cv_working_alloca_h=yes
5109 else
5110 echo "$as_me: failed program was:" >&5
5111 sed 's/^/| /' conftest.$ac_ext >&5
5113 ac_cv_working_alloca_h=no
5115 rm -f conftest.err conftest.$ac_objext \
5116 conftest$ac_exeext conftest.$ac_ext
5118 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5119 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5120 if test $ac_cv_working_alloca_h = yes; then
5122 cat >>confdefs.h <<\_ACEOF
5123 #define HAVE_ALLOCA_H 1
5124 _ACEOF
5128 echo "$as_me:$LINENO: checking for alloca" >&5
5129 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5130 if test "${ac_cv_func_alloca_works+set}" = set; then
5131 echo $ECHO_N "(cached) $ECHO_C" >&6
5132 else
5133 cat >conftest.$ac_ext <<_ACEOF
5134 /* confdefs.h. */
5135 _ACEOF
5136 cat confdefs.h >>conftest.$ac_ext
5137 cat >>conftest.$ac_ext <<_ACEOF
5138 /* end confdefs.h. */
5139 #ifdef __GNUC__
5140 # define alloca __builtin_alloca
5141 #else
5142 # ifdef _MSC_VER
5143 # include <malloc.h>
5144 # define alloca _alloca
5145 # else
5146 # if HAVE_ALLOCA_H
5147 # include <alloca.h>
5148 # else
5149 # ifdef _AIX
5150 #pragma alloca
5151 # else
5152 # ifndef alloca /* predefined by HP cc +Olibcalls */
5153 char *alloca ();
5154 # endif
5155 # endif
5156 # endif
5157 # endif
5158 #endif
5161 main ()
5163 char *p = (char *) alloca (1);
5165 return 0;
5167 _ACEOF
5168 rm -f conftest.$ac_objext conftest$ac_exeext
5169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5170 (eval $ac_link) 2>conftest.er1
5171 ac_status=$?
5172 grep -v '^ *+' conftest.er1 >conftest.err
5173 rm -f conftest.er1
5174 cat conftest.err >&5
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); } &&
5177 { ac_try='test -z "$ac_c_werror_flag"
5178 || test ! -s conftest.err'
5179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5180 (eval $ac_try) 2>&5
5181 ac_status=$?
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); }; } &&
5184 { ac_try='test -s conftest$ac_exeext'
5185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5186 (eval $ac_try) 2>&5
5187 ac_status=$?
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); }; }; then
5190 ac_cv_func_alloca_works=yes
5191 else
5192 echo "$as_me: failed program was:" >&5
5193 sed 's/^/| /' conftest.$ac_ext >&5
5195 ac_cv_func_alloca_works=no
5197 rm -f conftest.err conftest.$ac_objext \
5198 conftest$ac_exeext conftest.$ac_ext
5200 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5201 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5203 if test $ac_cv_func_alloca_works = yes; then
5205 cat >>confdefs.h <<\_ACEOF
5206 #define HAVE_ALLOCA 1
5207 _ACEOF
5209 else
5210 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5211 # that cause trouble. Some versions do not even contain alloca or
5212 # contain a buggy version. If you still want to use their alloca,
5213 # use ar to extract alloca.o from them instead of compiling alloca.c.
5215 ALLOCA=alloca.$ac_objext
5217 cat >>confdefs.h <<\_ACEOF
5218 #define C_ALLOCA 1
5219 _ACEOF
5222 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5223 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5224 if test "${ac_cv_os_cray+set}" = set; then
5225 echo $ECHO_N "(cached) $ECHO_C" >&6
5226 else
5227 cat >conftest.$ac_ext <<_ACEOF
5228 /* confdefs.h. */
5229 _ACEOF
5230 cat confdefs.h >>conftest.$ac_ext
5231 cat >>conftest.$ac_ext <<_ACEOF
5232 /* end confdefs.h. */
5233 #if defined(CRAY) && ! defined(CRAY2)
5234 webecray
5235 #else
5236 wenotbecray
5237 #endif
5239 _ACEOF
5240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5241 $EGREP "webecray" >/dev/null 2>&1; then
5242 ac_cv_os_cray=yes
5243 else
5244 ac_cv_os_cray=no
5246 rm -f conftest*
5249 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5250 echo "${ECHO_T}$ac_cv_os_cray" >&6
5251 if test $ac_cv_os_cray = yes; then
5252 for ac_func in _getb67 GETB67 getb67; do
5253 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5254 echo "$as_me:$LINENO: checking for $ac_func" >&5
5255 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5256 if eval "test \"\${$as_ac_var+set}\" = set"; then
5257 echo $ECHO_N "(cached) $ECHO_C" >&6
5258 else
5259 cat >conftest.$ac_ext <<_ACEOF
5260 /* confdefs.h. */
5261 _ACEOF
5262 cat confdefs.h >>conftest.$ac_ext
5263 cat >>conftest.$ac_ext <<_ACEOF
5264 /* end confdefs.h. */
5265 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5266 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5267 #define $ac_func innocuous_$ac_func
5269 /* System header to define __stub macros and hopefully few prototypes,
5270 which can conflict with char $ac_func (); below.
5271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5272 <limits.h> exists even on freestanding compilers. */
5274 #ifdef __STDC__
5275 # include <limits.h>
5276 #else
5277 # include <assert.h>
5278 #endif
5280 #undef $ac_func
5282 /* Override any gcc2 internal prototype to avoid an error. */
5283 #ifdef __cplusplus
5284 extern "C"
5286 #endif
5287 /* We use char because int might match the return type of a gcc2
5288 builtin and then its argument prototype would still apply. */
5289 char $ac_func ();
5290 /* The GNU C library defines this for functions which it implements
5291 to always fail with ENOSYS. Some functions are actually named
5292 something starting with __ and the normal name is an alias. */
5293 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5294 choke me
5295 #else
5296 char (*f) () = $ac_func;
5297 #endif
5298 #ifdef __cplusplus
5300 #endif
5303 main ()
5305 return f != $ac_func;
5307 return 0;
5309 _ACEOF
5310 rm -f conftest.$ac_objext conftest$ac_exeext
5311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5312 (eval $ac_link) 2>conftest.er1
5313 ac_status=$?
5314 grep -v '^ *+' conftest.er1 >conftest.err
5315 rm -f conftest.er1
5316 cat conftest.err >&5
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); } &&
5319 { ac_try='test -z "$ac_c_werror_flag"
5320 || test ! -s conftest.err'
5321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5322 (eval $ac_try) 2>&5
5323 ac_status=$?
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); }; } &&
5326 { ac_try='test -s conftest$ac_exeext'
5327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5328 (eval $ac_try) 2>&5
5329 ac_status=$?
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); }; }; then
5332 eval "$as_ac_var=yes"
5333 else
5334 echo "$as_me: failed program was:" >&5
5335 sed 's/^/| /' conftest.$ac_ext >&5
5337 eval "$as_ac_var=no"
5339 rm -f conftest.err conftest.$ac_objext \
5340 conftest$ac_exeext conftest.$ac_ext
5342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5343 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5344 if test `eval echo '${'$as_ac_var'}'` = yes; then
5346 cat >>confdefs.h <<_ACEOF
5347 #define CRAY_STACKSEG_END $ac_func
5348 _ACEOF
5350 break
5353 done
5356 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5357 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5358 if test "${ac_cv_c_stack_direction+set}" = set; then
5359 echo $ECHO_N "(cached) $ECHO_C" >&6
5360 else
5361 if test "$cross_compiling" = yes; then
5362 ac_cv_c_stack_direction=0
5363 else
5364 cat >conftest.$ac_ext <<_ACEOF
5365 /* confdefs.h. */
5366 _ACEOF
5367 cat confdefs.h >>conftest.$ac_ext
5368 cat >>conftest.$ac_ext <<_ACEOF
5369 /* end confdefs.h. */
5371 find_stack_direction ()
5373 static char *addr = 0;
5374 auto char dummy;
5375 if (addr == 0)
5377 addr = &dummy;
5378 return find_stack_direction ();
5380 else
5381 return (&dummy > addr) ? 1 : -1;
5385 main ()
5387 exit (find_stack_direction () < 0);
5389 _ACEOF
5390 rm -f conftest$ac_exeext
5391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5392 (eval $ac_link) 2>&5
5393 ac_status=$?
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5397 (eval $ac_try) 2>&5
5398 ac_status=$?
5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400 (exit $ac_status); }; }; then
5401 ac_cv_c_stack_direction=1
5402 else
5403 echo "$as_me: program exited with status $ac_status" >&5
5404 echo "$as_me: failed program was:" >&5
5405 sed 's/^/| /' conftest.$ac_ext >&5
5407 ( exit $ac_status )
5408 ac_cv_c_stack_direction=-1
5410 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5413 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5414 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5416 cat >>confdefs.h <<_ACEOF
5417 #define STACK_DIRECTION $ac_cv_c_stack_direction
5418 _ACEOF
5424 for ac_func in vprintf
5426 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5427 echo "$as_me:$LINENO: checking for $ac_func" >&5
5428 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5429 if eval "test \"\${$as_ac_var+set}\" = set"; then
5430 echo $ECHO_N "(cached) $ECHO_C" >&6
5431 else
5432 cat >conftest.$ac_ext <<_ACEOF
5433 /* confdefs.h. */
5434 _ACEOF
5435 cat confdefs.h >>conftest.$ac_ext
5436 cat >>conftest.$ac_ext <<_ACEOF
5437 /* end confdefs.h. */
5438 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5439 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5440 #define $ac_func innocuous_$ac_func
5442 /* System header to define __stub macros and hopefully few prototypes,
5443 which can conflict with char $ac_func (); below.
5444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5445 <limits.h> exists even on freestanding compilers. */
5447 #ifdef __STDC__
5448 # include <limits.h>
5449 #else
5450 # include <assert.h>
5451 #endif
5453 #undef $ac_func
5455 /* Override any gcc2 internal prototype to avoid an error. */
5456 #ifdef __cplusplus
5457 extern "C"
5459 #endif
5460 /* We use char because int might match the return type of a gcc2
5461 builtin and then its argument prototype would still apply. */
5462 char $ac_func ();
5463 /* The GNU C library defines this for functions which it implements
5464 to always fail with ENOSYS. Some functions are actually named
5465 something starting with __ and the normal name is an alias. */
5466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5467 choke me
5468 #else
5469 char (*f) () = $ac_func;
5470 #endif
5471 #ifdef __cplusplus
5473 #endif
5476 main ()
5478 return f != $ac_func;
5480 return 0;
5482 _ACEOF
5483 rm -f conftest.$ac_objext conftest$ac_exeext
5484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5485 (eval $ac_link) 2>conftest.er1
5486 ac_status=$?
5487 grep -v '^ *+' conftest.er1 >conftest.err
5488 rm -f conftest.er1
5489 cat conftest.err >&5
5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); } &&
5492 { ac_try='test -z "$ac_c_werror_flag"
5493 || test ! -s conftest.err'
5494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5495 (eval $ac_try) 2>&5
5496 ac_status=$?
5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); }; } &&
5499 { ac_try='test -s conftest$ac_exeext'
5500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5501 (eval $ac_try) 2>&5
5502 ac_status=$?
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); }; }; then
5505 eval "$as_ac_var=yes"
5506 else
5507 echo "$as_me: failed program was:" >&5
5508 sed 's/^/| /' conftest.$ac_ext >&5
5510 eval "$as_ac_var=no"
5512 rm -f conftest.err conftest.$ac_objext \
5513 conftest$ac_exeext conftest.$ac_ext
5515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5516 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5517 if test `eval echo '${'$as_ac_var'}'` = yes; then
5518 cat >>confdefs.h <<_ACEOF
5519 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5520 _ACEOF
5522 echo "$as_me:$LINENO: checking for _doprnt" >&5
5523 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
5524 if test "${ac_cv_func__doprnt+set}" = set; then
5525 echo $ECHO_N "(cached) $ECHO_C" >&6
5526 else
5527 cat >conftest.$ac_ext <<_ACEOF
5528 /* confdefs.h. */
5529 _ACEOF
5530 cat confdefs.h >>conftest.$ac_ext
5531 cat >>conftest.$ac_ext <<_ACEOF
5532 /* end confdefs.h. */
5533 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
5534 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5535 #define _doprnt innocuous__doprnt
5537 /* System header to define __stub macros and hopefully few prototypes,
5538 which can conflict with char _doprnt (); below.
5539 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5540 <limits.h> exists even on freestanding compilers. */
5542 #ifdef __STDC__
5543 # include <limits.h>
5544 #else
5545 # include <assert.h>
5546 #endif
5548 #undef _doprnt
5550 /* Override any gcc2 internal prototype to avoid an error. */
5551 #ifdef __cplusplus
5552 extern "C"
5554 #endif
5555 /* We use char because int might match the return type of a gcc2
5556 builtin and then its argument prototype would still apply. */
5557 char _doprnt ();
5558 /* The GNU C library defines this for functions which it implements
5559 to always fail with ENOSYS. Some functions are actually named
5560 something starting with __ and the normal name is an alias. */
5561 #if defined (__stub__doprnt) || defined (__stub____doprnt)
5562 choke me
5563 #else
5564 char (*f) () = _doprnt;
5565 #endif
5566 #ifdef __cplusplus
5568 #endif
5571 main ()
5573 return f != _doprnt;
5575 return 0;
5577 _ACEOF
5578 rm -f conftest.$ac_objext conftest$ac_exeext
5579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5580 (eval $ac_link) 2>conftest.er1
5581 ac_status=$?
5582 grep -v '^ *+' conftest.er1 >conftest.err
5583 rm -f conftest.er1
5584 cat conftest.err >&5
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); } &&
5587 { ac_try='test -z "$ac_c_werror_flag"
5588 || test ! -s conftest.err'
5589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5590 (eval $ac_try) 2>&5
5591 ac_status=$?
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); }; } &&
5594 { ac_try='test -s conftest$ac_exeext'
5595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5596 (eval $ac_try) 2>&5
5597 ac_status=$?
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); }; }; then
5600 ac_cv_func__doprnt=yes
5601 else
5602 echo "$as_me: failed program was:" >&5
5603 sed 's/^/| /' conftest.$ac_ext >&5
5605 ac_cv_func__doprnt=no
5607 rm -f conftest.err conftest.$ac_objext \
5608 conftest$ac_exeext conftest.$ac_ext
5610 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
5611 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
5612 if test $ac_cv_func__doprnt = yes; then
5614 cat >>confdefs.h <<\_ACEOF
5615 #define HAVE_DOPRNT 1
5616 _ACEOF
5621 done
5624 am_getline_needs_run_time_check=no
5625 echo "$as_me:$LINENO: checking for getline" >&5
5626 echo $ECHO_N "checking for getline... $ECHO_C" >&6
5627 if test "${ac_cv_func_getline+set}" = set; then
5628 echo $ECHO_N "(cached) $ECHO_C" >&6
5629 else
5630 cat >conftest.$ac_ext <<_ACEOF
5631 /* confdefs.h. */
5632 _ACEOF
5633 cat confdefs.h >>conftest.$ac_ext
5634 cat >>conftest.$ac_ext <<_ACEOF
5635 /* end confdefs.h. */
5636 /* Define getline to an innocuous variant, in case <limits.h> declares getline.
5637 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5638 #define getline innocuous_getline
5640 /* System header to define __stub macros and hopefully few prototypes,
5641 which can conflict with char getline (); below.
5642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5643 <limits.h> exists even on freestanding compilers. */
5645 #ifdef __STDC__
5646 # include <limits.h>
5647 #else
5648 # include <assert.h>
5649 #endif
5651 #undef getline
5653 /* Override any gcc2 internal prototype to avoid an error. */
5654 #ifdef __cplusplus
5655 extern "C"
5657 #endif
5658 /* We use char because int might match the return type of a gcc2
5659 builtin and then its argument prototype would still apply. */
5660 char getline ();
5661 /* The GNU C library defines this for functions which it implements
5662 to always fail with ENOSYS. Some functions are actually named
5663 something starting with __ and the normal name is an alias. */
5664 #if defined (__stub_getline) || defined (__stub___getline)
5665 choke me
5666 #else
5667 char (*f) () = getline;
5668 #endif
5669 #ifdef __cplusplus
5671 #endif
5674 main ()
5676 return f != getline;
5678 return 0;
5680 _ACEOF
5681 rm -f conftest.$ac_objext conftest$ac_exeext
5682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5683 (eval $ac_link) 2>conftest.er1
5684 ac_status=$?
5685 grep -v '^ *+' conftest.er1 >conftest.err
5686 rm -f conftest.er1
5687 cat conftest.err >&5
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); } &&
5690 { ac_try='test -z "$ac_c_werror_flag"
5691 || test ! -s conftest.err'
5692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5693 (eval $ac_try) 2>&5
5694 ac_status=$?
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); }; } &&
5697 { ac_try='test -s conftest$ac_exeext'
5698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5699 (eval $ac_try) 2>&5
5700 ac_status=$?
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); }; }; then
5703 ac_cv_func_getline=yes
5704 else
5705 echo "$as_me: failed program was:" >&5
5706 sed 's/^/| /' conftest.$ac_ext >&5
5708 ac_cv_func_getline=no
5710 rm -f conftest.err conftest.$ac_objext \
5711 conftest$ac_exeext conftest.$ac_ext
5713 echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
5714 echo "${ECHO_T}$ac_cv_func_getline" >&6
5715 if test $ac_cv_func_getline = yes; then
5716 am_getline_needs_run_time_check=yes
5717 else
5718 am_cv_func_working_getline=no
5721 if test $am_getline_needs_run_time_check = yes; then
5722 echo "$as_me:$LINENO: checking for working getline function" >&5
5723 echo $ECHO_N "checking for working getline function... $ECHO_C" >&6
5724 if test "${am_cv_func_working_getline+set}" = set; then
5725 echo $ECHO_N "(cached) $ECHO_C" >&6
5726 else
5727 echo fooN |tr -d '\012'|tr N '\012' > conftest.data
5728 if test "$cross_compiling" = yes; then
5729 am_cv_func_working_getline=no
5730 else
5731 cat >conftest.$ac_ext <<_ACEOF
5732 /* confdefs.h. */
5733 _ACEOF
5734 cat confdefs.h >>conftest.$ac_ext
5735 cat >>conftest.$ac_ext <<_ACEOF
5736 /* end confdefs.h. */
5738 # include <stdio.h>
5739 # include <sys/types.h>
5740 # include <string.h>
5741 int main ()
5742 { /* Based on a test program from Karl Heuer. */
5743 char *line = NULL;
5744 size_t siz = 0;
5745 int len;
5746 FILE *in = fopen ("./conftest.data", "r");
5747 if (!in)
5748 return 1;
5749 len = getline (&line, &siz, in);
5750 exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
5753 _ACEOF
5754 rm -f conftest$ac_exeext
5755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5756 (eval $ac_link) 2>&5
5757 ac_status=$?
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5761 (eval $ac_try) 2>&5
5762 ac_status=$?
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); }; }; then
5765 am_cv_func_working_getline=yes
5766 else
5767 echo "$as_me: program exited with status $ac_status" >&5
5768 echo "$as_me: failed program was:" >&5
5769 sed 's/^/| /' conftest.$ac_ext >&5
5771 ( exit $ac_status )
5772 am_cv_func_working_getline=no
5774 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5777 echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
5778 echo "${ECHO_T}$am_cv_func_working_getline" >&6
5781 if test $am_cv_func_working_getline = no; then
5782 case $LIBOBJS in
5783 "getline.$ac_objext" | \
5784 *" getline.$ac_objext" | \
5785 "getline.$ac_objext "* | \
5786 *" getline.$ac_objext "* ) ;;
5787 *) LIBOBJS="$LIBOBJS getline.$ac_objext" ;;
5788 esac
5792 echo "$as_me:$LINENO: checking for obstacks" >&5
5793 echo $ECHO_N "checking for obstacks... $ECHO_C" >&6
5794 if test "${ac_cv_func_obstack+set}" = set; then
5795 echo $ECHO_N "(cached) $ECHO_C" >&6
5796 else
5797 cat >conftest.$ac_ext <<_ACEOF
5798 /* confdefs.h. */
5799 _ACEOF
5800 cat confdefs.h >>conftest.$ac_ext
5801 cat >>conftest.$ac_ext <<_ACEOF
5802 /* end confdefs.h. */
5803 #include "obstack.h"
5805 main ()
5807 struct obstack *mem; obstack_free(mem,(char *) 0)
5809 return 0;
5811 _ACEOF
5812 rm -f conftest.$ac_objext conftest$ac_exeext
5813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5814 (eval $ac_link) 2>conftest.er1
5815 ac_status=$?
5816 grep -v '^ *+' conftest.er1 >conftest.err
5817 rm -f conftest.er1
5818 cat conftest.err >&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); } &&
5821 { ac_try='test -z "$ac_c_werror_flag"
5822 || test ! -s conftest.err'
5823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5824 (eval $ac_try) 2>&5
5825 ac_status=$?
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); }; } &&
5828 { ac_try='test -s conftest$ac_exeext'
5829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5830 (eval $ac_try) 2>&5
5831 ac_status=$?
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); }; }; then
5834 ac_cv_func_obstack=yes
5835 else
5836 echo "$as_me: failed program was:" >&5
5837 sed 's/^/| /' conftest.$ac_ext >&5
5839 ac_cv_func_obstack=no
5841 rm -f conftest.err conftest.$ac_objext \
5842 conftest$ac_exeext conftest.$ac_ext
5844 echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
5845 echo "${ECHO_T}$ac_cv_func_obstack" >&6
5846 if test $ac_cv_func_obstack = yes; then
5848 cat >>confdefs.h <<\_ACEOF
5849 #define HAVE_OBSTACK 1
5850 _ACEOF
5852 else
5853 case $LIBOBJS in
5854 "obstack.$ac_objext" | \
5855 *" obstack.$ac_objext" | \
5856 "obstack.$ac_objext "* | \
5857 *" obstack.$ac_objext "* ) ;;
5858 *) LIBOBJS="$LIBOBJS obstack.$ac_objext" ;;
5859 esac
5864 echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
5865 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
5866 if test "${ac_cv_func_mbrtowc+set}" = set; then
5867 echo $ECHO_N "(cached) $ECHO_C" >&6
5868 else
5869 cat >conftest.$ac_ext <<_ACEOF
5870 /* confdefs.h. */
5871 _ACEOF
5872 cat confdefs.h >>conftest.$ac_ext
5873 cat >>conftest.$ac_ext <<_ACEOF
5874 /* end confdefs.h. */
5875 #include <wchar.h>
5877 main ()
5879 mbstate_t state; return ! (sizeof state && mbrtowc);
5881 return 0;
5883 _ACEOF
5884 rm -f conftest.$ac_objext conftest$ac_exeext
5885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5886 (eval $ac_link) 2>conftest.er1
5887 ac_status=$?
5888 grep -v '^ *+' conftest.er1 >conftest.err
5889 rm -f conftest.er1
5890 cat conftest.err >&5
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); } &&
5893 { ac_try='test -z "$ac_c_werror_flag"
5894 || test ! -s conftest.err'
5895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5896 (eval $ac_try) 2>&5
5897 ac_status=$?
5898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); }; } &&
5900 { ac_try='test -s conftest$ac_exeext'
5901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5902 (eval $ac_try) 2>&5
5903 ac_status=$?
5904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905 (exit $ac_status); }; }; then
5906 ac_cv_func_mbrtowc=yes
5907 else
5908 echo "$as_me: failed program was:" >&5
5909 sed 's/^/| /' conftest.$ac_ext >&5
5911 ac_cv_func_mbrtowc=no
5913 rm -f conftest.err conftest.$ac_objext \
5914 conftest$ac_exeext conftest.$ac_ext
5916 echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
5917 echo "${ECHO_T}$ac_cv_func_mbrtowc" >&6
5918 if test $ac_cv_func_mbrtowc = yes; then
5920 cat >>confdefs.h <<\_ACEOF
5921 #define HAVE_MBRTOWC 1
5922 _ACEOF
5926 echo "$as_me:$LINENO: checking for mbstate_t" >&5
5927 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
5928 if test "${ac_cv_type_mbstate_t+set}" = set; then
5929 echo $ECHO_N "(cached) $ECHO_C" >&6
5930 else
5931 cat >conftest.$ac_ext <<_ACEOF
5932 /* confdefs.h. */
5933 _ACEOF
5934 cat confdefs.h >>conftest.$ac_ext
5935 cat >>conftest.$ac_ext <<_ACEOF
5936 /* end confdefs.h. */
5937 $ac_includes_default
5938 # include <wchar.h>
5940 main ()
5942 mbstate_t x; return sizeof x;
5944 return 0;
5946 _ACEOF
5947 rm -f conftest.$ac_objext
5948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5949 (eval $ac_compile) 2>conftest.er1
5950 ac_status=$?
5951 grep -v '^ *+' conftest.er1 >conftest.err
5952 rm -f conftest.er1
5953 cat conftest.err >&5
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); } &&
5956 { ac_try='test -z "$ac_c_werror_flag"
5957 || test ! -s conftest.err'
5958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5959 (eval $ac_try) 2>&5
5960 ac_status=$?
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); }; } &&
5963 { ac_try='test -s conftest.$ac_objext'
5964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5965 (eval $ac_try) 2>&5
5966 ac_status=$?
5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); }; }; then
5969 ac_cv_type_mbstate_t=yes
5970 else
5971 echo "$as_me: failed program was:" >&5
5972 sed 's/^/| /' conftest.$ac_ext >&5
5974 ac_cv_type_mbstate_t=no
5976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5978 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
5979 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
5980 if test $ac_cv_type_mbstate_t = yes; then
5982 cat >>confdefs.h <<\_ACEOF
5983 #define HAVE_MBSTATE_T 1
5984 _ACEOF
5986 else
5988 cat >>confdefs.h <<\_ACEOF
5989 #define mbstate_t int
5990 _ACEOF
5997 for ac_func in strverscmp
5999 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6000 echo "$as_me:$LINENO: checking for $ac_func" >&5
6001 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6002 if eval "test \"\${$as_ac_var+set}\" = set"; then
6003 echo $ECHO_N "(cached) $ECHO_C" >&6
6004 else
6005 cat >conftest.$ac_ext <<_ACEOF
6006 /* confdefs.h. */
6007 _ACEOF
6008 cat confdefs.h >>conftest.$ac_ext
6009 cat >>conftest.$ac_ext <<_ACEOF
6010 /* end confdefs.h. */
6011 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6013 #define $ac_func innocuous_$ac_func
6015 /* System header to define __stub macros and hopefully few prototypes,
6016 which can conflict with char $ac_func (); below.
6017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6018 <limits.h> exists even on freestanding compilers. */
6020 #ifdef __STDC__
6021 # include <limits.h>
6022 #else
6023 # include <assert.h>
6024 #endif
6026 #undef $ac_func
6028 /* Override any gcc2 internal prototype to avoid an error. */
6029 #ifdef __cplusplus
6030 extern "C"
6032 #endif
6033 /* We use char because int might match the return type of a gcc2
6034 builtin and then its argument prototype would still apply. */
6035 char $ac_func ();
6036 /* The GNU C library defines this for functions which it implements
6037 to always fail with ENOSYS. Some functions are actually named
6038 something starting with __ and the normal name is an alias. */
6039 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6040 choke me
6041 #else
6042 char (*f) () = $ac_func;
6043 #endif
6044 #ifdef __cplusplus
6046 #endif
6049 main ()
6051 return f != $ac_func;
6053 return 0;
6055 _ACEOF
6056 rm -f conftest.$ac_objext conftest$ac_exeext
6057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6058 (eval $ac_link) 2>conftest.er1
6059 ac_status=$?
6060 grep -v '^ *+' conftest.er1 >conftest.err
6061 rm -f conftest.er1
6062 cat conftest.err >&5
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); } &&
6065 { ac_try='test -z "$ac_c_werror_flag"
6066 || test ! -s conftest.err'
6067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6068 (eval $ac_try) 2>&5
6069 ac_status=$?
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); }; } &&
6072 { ac_try='test -s conftest$ac_exeext'
6073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6074 (eval $ac_try) 2>&5
6075 ac_status=$?
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); }; }; then
6078 eval "$as_ac_var=yes"
6079 else
6080 echo "$as_me: failed program was:" >&5
6081 sed 's/^/| /' conftest.$ac_ext >&5
6083 eval "$as_ac_var=no"
6085 rm -f conftest.err conftest.$ac_objext \
6086 conftest$ac_exeext conftest.$ac_ext
6088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6089 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6090 if test `eval echo '${'$as_ac_var'}'` = yes; then
6091 cat >>confdefs.h <<_ACEOF
6092 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6093 _ACEOF
6095 else
6096 case $LIBOBJS in
6097 "$ac_func.$ac_objext" | \
6098 *" $ac_func.$ac_objext" | \
6099 "$ac_func.$ac_objext "* | \
6100 *" $ac_func.$ac_objext "* ) ;;
6101 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
6102 esac
6105 done
6108 if test $ac_cv_func_strverscmp = no; then
6119 for ac_func in memchr memcmp memmove strerror mkstemp
6121 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6122 echo "$as_me:$LINENO: checking for $ac_func" >&5
6123 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6124 if eval "test \"\${$as_ac_var+set}\" = set"; then
6125 echo $ECHO_N "(cached) $ECHO_C" >&6
6126 else
6127 cat >conftest.$ac_ext <<_ACEOF
6128 /* confdefs.h. */
6129 _ACEOF
6130 cat confdefs.h >>conftest.$ac_ext
6131 cat >>conftest.$ac_ext <<_ACEOF
6132 /* end confdefs.h. */
6133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6135 #define $ac_func innocuous_$ac_func
6137 /* System header to define __stub macros and hopefully few prototypes,
6138 which can conflict with char $ac_func (); below.
6139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6140 <limits.h> exists even on freestanding compilers. */
6142 #ifdef __STDC__
6143 # include <limits.h>
6144 #else
6145 # include <assert.h>
6146 #endif
6148 #undef $ac_func
6150 /* Override any gcc2 internal prototype to avoid an error. */
6151 #ifdef __cplusplus
6152 extern "C"
6154 #endif
6155 /* We use char because int might match the return type of a gcc2
6156 builtin and then its argument prototype would still apply. */
6157 char $ac_func ();
6158 /* The GNU C library defines this for functions which it implements
6159 to always fail with ENOSYS. Some functions are actually named
6160 something starting with __ and the normal name is an alias. */
6161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6162 choke me
6163 #else
6164 char (*f) () = $ac_func;
6165 #endif
6166 #ifdef __cplusplus
6168 #endif
6171 main ()
6173 return f != $ac_func;
6175 return 0;
6177 _ACEOF
6178 rm -f conftest.$ac_objext conftest$ac_exeext
6179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6180 (eval $ac_link) 2>conftest.er1
6181 ac_status=$?
6182 grep -v '^ *+' conftest.er1 >conftest.err
6183 rm -f conftest.er1
6184 cat conftest.err >&5
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); } &&
6187 { ac_try='test -z "$ac_c_werror_flag"
6188 || test ! -s conftest.err'
6189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6190 (eval $ac_try) 2>&5
6191 ac_status=$?
6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193 (exit $ac_status); }; } &&
6194 { ac_try='test -s conftest$ac_exeext'
6195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6196 (eval $ac_try) 2>&5
6197 ac_status=$?
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); }; }; then
6200 eval "$as_ac_var=yes"
6201 else
6202 echo "$as_me: failed program was:" >&5
6203 sed 's/^/| /' conftest.$ac_ext >&5
6205 eval "$as_ac_var=no"
6207 rm -f conftest.err conftest.$ac_objext \
6208 conftest$ac_exeext conftest.$ac_ext
6210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6211 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6212 if test `eval echo '${'$as_ac_var'}'` = yes; then
6213 cat >>confdefs.h <<_ACEOF
6214 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6215 _ACEOF
6217 else
6218 case $LIBOBJS in
6219 "$ac_func.$ac_objext" | \
6220 *" $ac_func.$ac_objext" | \
6221 "$ac_func.$ac_objext "* | \
6222 *" $ac_func.$ac_objext "* ) ;;
6223 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
6224 esac
6227 done
6247 for ac_func in isatty bcopy bzero isascii memcpy memset strchr strtoul popen \
6248 pathconf isblank fchown fchmod setlocale wcrtomb wcscoll btowc
6250 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6251 echo "$as_me:$LINENO: checking for $ac_func" >&5
6252 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6253 if eval "test \"\${$as_ac_var+set}\" = set"; then
6254 echo $ECHO_N "(cached) $ECHO_C" >&6
6255 else
6256 cat >conftest.$ac_ext <<_ACEOF
6257 /* confdefs.h. */
6258 _ACEOF
6259 cat confdefs.h >>conftest.$ac_ext
6260 cat >>conftest.$ac_ext <<_ACEOF
6261 /* end confdefs.h. */
6262 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6264 #define $ac_func innocuous_$ac_func
6266 /* System header to define __stub macros and hopefully few prototypes,
6267 which can conflict with char $ac_func (); below.
6268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6269 <limits.h> exists even on freestanding compilers. */
6271 #ifdef __STDC__
6272 # include <limits.h>
6273 #else
6274 # include <assert.h>
6275 #endif
6277 #undef $ac_func
6279 /* Override any gcc2 internal prototype to avoid an error. */
6280 #ifdef __cplusplus
6281 extern "C"
6283 #endif
6284 /* We use char because int might match the return type of a gcc2
6285 builtin and then its argument prototype would still apply. */
6286 char $ac_func ();
6287 /* The GNU C library defines this for functions which it implements
6288 to always fail with ENOSYS. Some functions are actually named
6289 something starting with __ and the normal name is an alias. */
6290 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6291 choke me
6292 #else
6293 char (*f) () = $ac_func;
6294 #endif
6295 #ifdef __cplusplus
6297 #endif
6300 main ()
6302 return f != $ac_func;
6304 return 0;
6306 _ACEOF
6307 rm -f conftest.$ac_objext conftest$ac_exeext
6308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6309 (eval $ac_link) 2>conftest.er1
6310 ac_status=$?
6311 grep -v '^ *+' conftest.er1 >conftest.err
6312 rm -f conftest.er1
6313 cat conftest.err >&5
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); } &&
6316 { ac_try='test -z "$ac_c_werror_flag"
6317 || test ! -s conftest.err'
6318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6319 (eval $ac_try) 2>&5
6320 ac_status=$?
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); }; } &&
6323 { ac_try='test -s conftest$ac_exeext'
6324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6325 (eval $ac_try) 2>&5
6326 ac_status=$?
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); }; }; then
6329 eval "$as_ac_var=yes"
6330 else
6331 echo "$as_me: failed program was:" >&5
6332 sed 's/^/| /' conftest.$ac_ext >&5
6334 eval "$as_ac_var=no"
6336 rm -f conftest.err conftest.$ac_objext \
6337 conftest$ac_exeext conftest.$ac_ext
6339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6340 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6341 if test `eval echo '${'$as_ac_var'}'` = yes; then
6342 cat >>confdefs.h <<_ACEOF
6343 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6344 _ACEOF
6347 done
6350 # Check whether --enable-i18n or --disable-i18n was given.
6351 if test "${enable_i18n+set}" = set; then
6352 enableval="$enable_i18n"
6354 else
6355 enable_i18n=yes
6357 if test "x$enable_i18n" = xno; then
6358 ac_cv_func_wcscoll=false
6362 # Check whether --with-included-regex or --without-included-regex was given.
6363 if test "${with_included_regex+set}" = set; then
6364 withval="$with_included_regex"
6366 else
6367 with_included_regex=yes
6370 if test "x$with_included_regex" = xno; then
6372 for ac_header in regex.h
6374 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6376 echo "$as_me:$LINENO: checking for $ac_header" >&5
6377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6379 echo $ECHO_N "(cached) $ECHO_C" >&6
6381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6382 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6383 else
6384 # Is the header compilable?
6385 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6386 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6387 cat >conftest.$ac_ext <<_ACEOF
6388 /* confdefs.h. */
6389 _ACEOF
6390 cat confdefs.h >>conftest.$ac_ext
6391 cat >>conftest.$ac_ext <<_ACEOF
6392 /* end confdefs.h. */
6393 $ac_includes_default
6394 #include <$ac_header>
6395 _ACEOF
6396 rm -f conftest.$ac_objext
6397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6398 (eval $ac_compile) 2>conftest.er1
6399 ac_status=$?
6400 grep -v '^ *+' conftest.er1 >conftest.err
6401 rm -f conftest.er1
6402 cat conftest.err >&5
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); } &&
6405 { ac_try='test -z "$ac_c_werror_flag"
6406 || test ! -s conftest.err'
6407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6408 (eval $ac_try) 2>&5
6409 ac_status=$?
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); }; } &&
6412 { ac_try='test -s conftest.$ac_objext'
6413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6414 (eval $ac_try) 2>&5
6415 ac_status=$?
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); }; }; then
6418 ac_header_compiler=yes
6419 else
6420 echo "$as_me: failed program was:" >&5
6421 sed 's/^/| /' conftest.$ac_ext >&5
6423 ac_header_compiler=no
6425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6426 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6427 echo "${ECHO_T}$ac_header_compiler" >&6
6429 # Is the header present?
6430 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6431 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6432 cat >conftest.$ac_ext <<_ACEOF
6433 /* confdefs.h. */
6434 _ACEOF
6435 cat confdefs.h >>conftest.$ac_ext
6436 cat >>conftest.$ac_ext <<_ACEOF
6437 /* end confdefs.h. */
6438 #include <$ac_header>
6439 _ACEOF
6440 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6441 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6442 ac_status=$?
6443 grep -v '^ *+' conftest.er1 >conftest.err
6444 rm -f conftest.er1
6445 cat conftest.err >&5
6446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447 (exit $ac_status); } >/dev/null; then
6448 if test -s conftest.err; then
6449 ac_cpp_err=$ac_c_preproc_warn_flag
6450 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6451 else
6452 ac_cpp_err=
6454 else
6455 ac_cpp_err=yes
6457 if test -z "$ac_cpp_err"; then
6458 ac_header_preproc=yes
6459 else
6460 echo "$as_me: failed program was:" >&5
6461 sed 's/^/| /' conftest.$ac_ext >&5
6463 ac_header_preproc=no
6465 rm -f conftest.err conftest.$ac_ext
6466 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6467 echo "${ECHO_T}$ac_header_preproc" >&6
6469 # So? What about this header?
6470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6471 yes:no: )
6472 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6473 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6475 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6476 ac_header_preproc=yes
6478 no:yes:* )
6479 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6480 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6481 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6482 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6483 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6484 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6485 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6486 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6488 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6489 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6490 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6492 cat <<\_ASBOX
6493 ## ------------------------------ ##
6494 ## Report this to bonzini@gnu.org ##
6495 ## ------------------------------ ##
6496 _ASBOX
6498 sed "s/^/$as_me: WARNING: /" >&2
6500 esac
6501 echo "$as_me:$LINENO: checking for $ac_header" >&5
6502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6503 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6504 echo $ECHO_N "(cached) $ECHO_C" >&6
6505 else
6506 eval "$as_ac_Header=\$ac_header_preproc"
6508 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6509 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6512 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6513 cat >>confdefs.h <<_ACEOF
6514 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6515 _ACEOF
6519 done
6522 echo "$as_me:$LINENO: checking for re_search in -lregex" >&5
6523 echo $ECHO_N "checking for re_search in -lregex... $ECHO_C" >&6
6524 if test "${ac_cv_lib_regex_re_search+set}" = set; then
6525 echo $ECHO_N "(cached) $ECHO_C" >&6
6526 else
6527 ac_check_lib_save_LIBS=$LIBS
6528 LIBS="-lregex $LIBS"
6529 cat >conftest.$ac_ext <<_ACEOF
6530 /* confdefs.h. */
6531 _ACEOF
6532 cat confdefs.h >>conftest.$ac_ext
6533 cat >>conftest.$ac_ext <<_ACEOF
6534 /* end confdefs.h. */
6536 /* Override any gcc2 internal prototype to avoid an error. */
6537 #ifdef __cplusplus
6538 extern "C"
6539 #endif
6540 /* We use char because int might match the return type of a gcc2
6541 builtin and then its argument prototype would still apply. */
6542 char re_search ();
6544 main ()
6546 re_search ();
6548 return 0;
6550 _ACEOF
6551 rm -f conftest.$ac_objext conftest$ac_exeext
6552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6553 (eval $ac_link) 2>conftest.er1
6554 ac_status=$?
6555 grep -v '^ *+' conftest.er1 >conftest.err
6556 rm -f conftest.er1
6557 cat conftest.err >&5
6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559 (exit $ac_status); } &&
6560 { ac_try='test -z "$ac_c_werror_flag"
6561 || test ! -s conftest.err'
6562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6563 (eval $ac_try) 2>&5
6564 ac_status=$?
6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); }; } &&
6567 { ac_try='test -s conftest$ac_exeext'
6568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6569 (eval $ac_try) 2>&5
6570 ac_status=$?
6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); }; }; then
6573 ac_cv_lib_regex_re_search=yes
6574 else
6575 echo "$as_me: failed program was:" >&5
6576 sed 's/^/| /' conftest.$ac_ext >&5
6578 ac_cv_lib_regex_re_search=no
6580 rm -f conftest.err conftest.$ac_objext \
6581 conftest$ac_exeext conftest.$ac_ext
6582 LIBS=$ac_check_lib_save_LIBS
6584 echo "$as_me:$LINENO: result: $ac_cv_lib_regex_re_search" >&5
6585 echo "${ECHO_T}$ac_cv_lib_regex_re_search" >&6
6586 if test $ac_cv_lib_regex_re_search = yes; then
6587 cat >>confdefs.h <<_ACEOF
6588 #define HAVE_LIBREGEX 1
6589 _ACEOF
6591 LIBS="-lregex $LIBS"
6595 echo "$as_me:$LINENO: checking for re_search" >&5
6596 echo $ECHO_N "checking for re_search... $ECHO_C" >&6
6597 if test "${ac_cv_func_re_search+set}" = set; then
6598 echo $ECHO_N "(cached) $ECHO_C" >&6
6599 else
6600 cat >conftest.$ac_ext <<_ACEOF
6601 /* confdefs.h. */
6602 _ACEOF
6603 cat confdefs.h >>conftest.$ac_ext
6604 cat >>conftest.$ac_ext <<_ACEOF
6605 /* end confdefs.h. */
6606 /* Define re_search to an innocuous variant, in case <limits.h> declares re_search.
6607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6608 #define re_search innocuous_re_search
6610 /* System header to define __stub macros and hopefully few prototypes,
6611 which can conflict with char re_search (); below.
6612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6613 <limits.h> exists even on freestanding compilers. */
6615 #ifdef __STDC__
6616 # include <limits.h>
6617 #else
6618 # include <assert.h>
6619 #endif
6621 #undef re_search
6623 /* Override any gcc2 internal prototype to avoid an error. */
6624 #ifdef __cplusplus
6625 extern "C"
6627 #endif
6628 /* We use char because int might match the return type of a gcc2
6629 builtin and then its argument prototype would still apply. */
6630 char re_search ();
6631 /* The GNU C library defines this for functions which it implements
6632 to always fail with ENOSYS. Some functions are actually named
6633 something starting with __ and the normal name is an alias. */
6634 #if defined (__stub_re_search) || defined (__stub___re_search)
6635 choke me
6636 #else
6637 char (*f) () = re_search;
6638 #endif
6639 #ifdef __cplusplus
6641 #endif
6644 main ()
6646 return f != re_search;
6648 return 0;
6650 _ACEOF
6651 rm -f conftest.$ac_objext conftest$ac_exeext
6652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6653 (eval $ac_link) 2>conftest.er1
6654 ac_status=$?
6655 grep -v '^ *+' conftest.er1 >conftest.err
6656 rm -f conftest.er1
6657 cat conftest.err >&5
6658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); } &&
6660 { ac_try='test -z "$ac_c_werror_flag"
6661 || test ! -s conftest.err'
6662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6663 (eval $ac_try) 2>&5
6664 ac_status=$?
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); }; } &&
6667 { ac_try='test -s conftest$ac_exeext'
6668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6669 (eval $ac_try) 2>&5
6670 ac_status=$?
6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); }; }; then
6673 ac_cv_func_re_search=yes
6674 else
6675 echo "$as_me: failed program was:" >&5
6676 sed 's/^/| /' conftest.$ac_ext >&5
6678 ac_cv_func_re_search=no
6680 rm -f conftest.err conftest.$ac_objext \
6681 conftest$ac_exeext conftest.$ac_ext
6683 echo "$as_me:$LINENO: result: $ac_cv_func_re_search" >&5
6684 echo "${ECHO_T}$ac_cv_func_re_search" >&6
6686 if test $ac_cv_header_regex_h = no || test $ac_cv_func_re_search = no; then
6687 { echo "$as_me:$LINENO: WARNING: GNU regex not found, falling back to the included version" >&5
6688 echo "$as_me: WARNING: GNU regex not found, falling back to the included version" >&2;}
6689 with_included_regex=yes
6693 # Check whether --enable-regex-tests or --disable-regex-tests was given.
6694 if test "${enable_regex_tests+set}" = set; then
6695 enableval="$enable_regex_tests"
6696 if test "x$with_included_regex" = xno; then
6697 enable_regex_tests=no
6699 else
6700 enable_regex_tests=$with_included_regex
6705 if test "x$enable_regex_tests" != xno; then
6706 TEST_REGEX_TRUE=
6707 TEST_REGEX_FALSE='#'
6708 else
6709 TEST_REGEX_TRUE='#'
6710 TEST_REGEX_FALSE=
6713 if test "x$with_included_regex" != xno; then
6714 ac_config_links="$ac_config_links lib/regex.h:lib/regex_.h"
6716 case $LIBOBJS in
6717 "regex.$ac_objext" | \
6718 *" regex.$ac_objext" | \
6719 "regex.$ac_objext "* | \
6720 *" regex.$ac_objext "* ) ;;
6721 *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
6722 esac
6725 if test "x$enable_regex_tests" = xyes; then
6727 cat >>confdefs.h <<_ACEOF
6728 #define _REGEX_RE_COMP 1
6729 _ACEOF
6733 # Check whether --enable-html or --disable-html was given.
6734 if test "${enable_html+set}" = set; then
6735 enableval="$enable_html"
6737 else
6738 enable_html=no
6743 if test "x$enable_html" != xno; then
6744 BUILD_HTML_TRUE=
6745 BUILD_HTML_FALSE='#'
6746 else
6747 BUILD_HTML_TRUE='#'
6748 BUILD_HTML_FALSE=
6752 : ${TEXI2HTML=texi2html -monolithic}
6755 echo "$as_me:$LINENO: checking how to build HTML documentation" >&5
6756 echo $ECHO_N "checking how to build HTML documentation... $ECHO_C" >&6
6757 if eval $am_missing_run makeinfo --help 2>&1 | grep .-html > /dev/null; then
6758 echo "$as_me:$LINENO: result: with makeinfo" >&5
6759 echo "${ECHO_T}with makeinfo" >&6
6760 enable_html=makeinfo
6761 else
6762 if $TEXI2HTML --help 2>&1 | grep monolithic > /dev/null; then
6763 echo "$as_me:$LINENO: result: with texi2html" >&5
6764 echo "${ECHO_T}with texi2html" >&6
6765 enable_html=texi2html
6766 else
6767 echo "$as_me:$LINENO: result: not built" >&5
6768 echo "${ECHO_T}not built" >&6
6769 if test "x$enable_html" != xno; then
6770 { { echo "$as_me:$LINENO: error: cannot build HTML documentation" >&5
6771 echo "$as_me: error: cannot build HTML documentation" >&2;}
6772 { (exit install makeinfo 4.0 or texi2html); exit install makeinfo 4.0 or texi2html; }; }
6774 enable_html=no
6780 if test "x$enable_html" = xmakeinfo; then
6781 MAKEINFO_HTML_TRUE=
6782 MAKEINFO_HTML_FALSE='#'
6783 else
6784 MAKEINFO_HTML_TRUE='#'
6785 MAKEINFO_HTML_FALSE=
6790 if test "x$enable_html" = xtexi2html; then
6791 TEXI2HTML_HTML_TRUE=
6792 TEXI2HTML_HTML_FALSE='#'
6793 else
6794 TEXI2HTML_HTML_TRUE='#'
6795 TEXI2HTML_HTML_FALSE=
6802 MKINSTALLDIRS="$mkdir_p"
6806 # Extract the first word of "msgfmt", so it can be a program name with args.
6807 set dummy msgfmt; ac_word=$2
6808 echo "$as_me:$LINENO: checking for $ac_word" >&5
6809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6810 if test "${ac_cv_path_MSGFMT+set}" = set; then
6811 echo $ECHO_N "(cached) $ECHO_C" >&6
6812 else
6813 case "$MSGFMT" in
6815 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6818 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6819 for ac_dir in $PATH; do
6820 test -z "$ac_dir" && ac_dir=.
6821 if test -f $ac_dir/$ac_word; then
6822 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
6823 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6824 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
6825 break
6828 done
6829 IFS="$ac_save_ifs"
6830 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6832 esac
6834 MSGFMT="$ac_cv_path_MSGFMT"
6835 if test "$MSGFMT" != ":"; then
6836 echo "$as_me:$LINENO: result: $MSGFMT" >&5
6837 echo "${ECHO_T}$MSGFMT" >&6
6838 else
6839 echo "$as_me:$LINENO: result: no" >&5
6840 echo "${ECHO_T}no" >&6
6843 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6844 set dummy gmsgfmt; ac_word=$2
6845 echo "$as_me:$LINENO: checking for $ac_word" >&5
6846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6847 if test "${ac_cv_path_GMSGFMT+set}" = set; then
6848 echo $ECHO_N "(cached) $ECHO_C" >&6
6849 else
6850 case $GMSGFMT in
6851 [\\/]* | ?:[\\/]*)
6852 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6856 for as_dir in $PATH
6858 IFS=$as_save_IFS
6859 test -z "$as_dir" && as_dir=.
6860 for ac_exec_ext in '' $ac_executable_extensions; do
6861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6862 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6864 break 2
6866 done
6867 done
6869 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6871 esac
6873 GMSGFMT=$ac_cv_path_GMSGFMT
6875 if test -n "$GMSGFMT"; then
6876 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
6877 echo "${ECHO_T}$GMSGFMT" >&6
6878 else
6879 echo "$as_me:$LINENO: result: no" >&5
6880 echo "${ECHO_T}no" >&6
6884 # Extract the first word of "xgettext", so it can be a program name with args.
6885 set dummy xgettext; ac_word=$2
6886 echo "$as_me:$LINENO: checking for $ac_word" >&5
6887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6888 if test "${ac_cv_path_XGETTEXT+set}" = set; then
6889 echo $ECHO_N "(cached) $ECHO_C" >&6
6890 else
6891 case "$XGETTEXT" in
6893 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6896 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6897 for ac_dir in $PATH; do
6898 test -z "$ac_dir" && ac_dir=.
6899 if test -f $ac_dir/$ac_word; then
6900 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
6901 (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6902 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
6903 break
6906 done
6907 IFS="$ac_save_ifs"
6908 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6910 esac
6912 XGETTEXT="$ac_cv_path_XGETTEXT"
6913 if test "$XGETTEXT" != ":"; then
6914 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
6915 echo "${ECHO_T}$XGETTEXT" >&6
6916 else
6917 echo "$as_me:$LINENO: result: no" >&5
6918 echo "${ECHO_T}no" >&6
6921 rm -f messages.po
6923 # Extract the first word of "msgmerge", so it can be a program name with args.
6924 set dummy msgmerge; ac_word=$2
6925 echo "$as_me:$LINENO: checking for $ac_word" >&5
6926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6927 if test "${ac_cv_path_MSGMERGE+set}" = set; then
6928 echo $ECHO_N "(cached) $ECHO_C" >&6
6929 else
6930 case "$MSGMERGE" in
6932 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6935 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6936 for ac_dir in $PATH; do
6937 test -z "$ac_dir" && ac_dir=.
6938 if test -f $ac_dir/$ac_word; then
6939 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
6940 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
6941 break
6944 done
6945 IFS="$ac_save_ifs"
6946 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6948 esac
6950 MSGMERGE="$ac_cv_path_MSGMERGE"
6951 if test "$MSGMERGE" != ":"; then
6952 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6953 echo "${ECHO_T}$MSGMERGE" >&6
6954 else
6955 echo "$as_me:$LINENO: result: no" >&5
6956 echo "${ECHO_T}no" >&6
6960 if test "$GMSGFMT" != ":"; then
6961 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6962 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6964 else
6965 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6966 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6967 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
6968 GMSGFMT=":"
6972 if test "$XGETTEXT" != ":"; then
6973 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
6974 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6976 else
6977 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6978 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
6979 XGETTEXT=":"
6981 rm -f messages.po
6984 ac_config_commands="$ac_config_commands default-1"
6987 # Make sure we can run config.sub.
6988 $ac_config_sub sun4 >/dev/null 2>&1 ||
6989 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
6990 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
6991 { (exit 1); exit 1; }; }
6993 echo "$as_me:$LINENO: checking build system type" >&5
6994 echo $ECHO_N "checking build system type... $ECHO_C" >&6
6995 if test "${ac_cv_build+set}" = set; then
6996 echo $ECHO_N "(cached) $ECHO_C" >&6
6997 else
6998 ac_cv_build_alias=$build_alias
6999 test -z "$ac_cv_build_alias" &&
7000 ac_cv_build_alias=`$ac_config_guess`
7001 test -z "$ac_cv_build_alias" &&
7002 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
7003 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
7004 { (exit 1); exit 1; }; }
7005 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
7006 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
7007 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
7008 { (exit 1); exit 1; }; }
7011 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
7012 echo "${ECHO_T}$ac_cv_build" >&6
7013 build=$ac_cv_build
7014 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
7015 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
7016 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7019 echo "$as_me:$LINENO: checking host system type" >&5
7020 echo $ECHO_N "checking host system type... $ECHO_C" >&6
7021 if test "${ac_cv_host+set}" = set; then
7022 echo $ECHO_N "(cached) $ECHO_C" >&6
7023 else
7024 ac_cv_host_alias=$host_alias
7025 test -z "$ac_cv_host_alias" &&
7026 ac_cv_host_alias=$ac_cv_build_alias
7027 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
7028 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
7029 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
7030 { (exit 1); exit 1; }; }
7033 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
7034 echo "${ECHO_T}$ac_cv_host" >&6
7035 host=$ac_cv_host
7036 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
7037 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
7038 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7041 echo "$as_me:$LINENO: checking for inline" >&5
7042 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7043 if test "${ac_cv_c_inline+set}" = set; then
7044 echo $ECHO_N "(cached) $ECHO_C" >&6
7045 else
7046 ac_cv_c_inline=no
7047 for ac_kw in inline __inline__ __inline; do
7048 cat >conftest.$ac_ext <<_ACEOF
7049 /* confdefs.h. */
7050 _ACEOF
7051 cat confdefs.h >>conftest.$ac_ext
7052 cat >>conftest.$ac_ext <<_ACEOF
7053 /* end confdefs.h. */
7054 #ifndef __cplusplus
7055 typedef int foo_t;
7056 static $ac_kw foo_t static_foo () {return 0; }
7057 $ac_kw foo_t foo () {return 0; }
7058 #endif
7060 _ACEOF
7061 rm -f conftest.$ac_objext
7062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7063 (eval $ac_compile) 2>conftest.er1
7064 ac_status=$?
7065 grep -v '^ *+' conftest.er1 >conftest.err
7066 rm -f conftest.er1
7067 cat conftest.err >&5
7068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069 (exit $ac_status); } &&
7070 { ac_try='test -z "$ac_c_werror_flag"
7071 || test ! -s conftest.err'
7072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7073 (eval $ac_try) 2>&5
7074 ac_status=$?
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); }; } &&
7077 { ac_try='test -s conftest.$ac_objext'
7078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7079 (eval $ac_try) 2>&5
7080 ac_status=$?
7081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082 (exit $ac_status); }; }; then
7083 ac_cv_c_inline=$ac_kw; break
7084 else
7085 echo "$as_me: failed program was:" >&5
7086 sed 's/^/| /' conftest.$ac_ext >&5
7089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7090 done
7093 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7094 echo "${ECHO_T}$ac_cv_c_inline" >&6
7097 case $ac_cv_c_inline in
7098 inline | yes) ;;
7100 case $ac_cv_c_inline in
7101 no) ac_val=;;
7102 *) ac_val=$ac_cv_c_inline;;
7103 esac
7104 cat >>confdefs.h <<_ACEOF
7105 #ifndef __cplusplus
7106 #define inline $ac_val
7107 #endif
7108 _ACEOF
7110 esac
7112 echo "$as_me:$LINENO: checking for off_t" >&5
7113 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7114 if test "${ac_cv_type_off_t+set}" = set; then
7115 echo $ECHO_N "(cached) $ECHO_C" >&6
7116 else
7117 cat >conftest.$ac_ext <<_ACEOF
7118 /* confdefs.h. */
7119 _ACEOF
7120 cat confdefs.h >>conftest.$ac_ext
7121 cat >>conftest.$ac_ext <<_ACEOF
7122 /* end confdefs.h. */
7123 $ac_includes_default
7125 main ()
7127 if ((off_t *) 0)
7128 return 0;
7129 if (sizeof (off_t))
7130 return 0;
7132 return 0;
7134 _ACEOF
7135 rm -f conftest.$ac_objext
7136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7137 (eval $ac_compile) 2>conftest.er1
7138 ac_status=$?
7139 grep -v '^ *+' conftest.er1 >conftest.err
7140 rm -f conftest.er1
7141 cat conftest.err >&5
7142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143 (exit $ac_status); } &&
7144 { ac_try='test -z "$ac_c_werror_flag"
7145 || test ! -s conftest.err'
7146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7147 (eval $ac_try) 2>&5
7148 ac_status=$?
7149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150 (exit $ac_status); }; } &&
7151 { ac_try='test -s conftest.$ac_objext'
7152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7153 (eval $ac_try) 2>&5
7154 ac_status=$?
7155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156 (exit $ac_status); }; }; then
7157 ac_cv_type_off_t=yes
7158 else
7159 echo "$as_me: failed program was:" >&5
7160 sed 's/^/| /' conftest.$ac_ext >&5
7162 ac_cv_type_off_t=no
7164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7166 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7167 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7168 if test $ac_cv_type_off_t = yes; then
7170 else
7172 cat >>confdefs.h <<_ACEOF
7173 #define off_t long
7174 _ACEOF
7180 for ac_header in stdlib.h unistd.h
7182 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7184 echo "$as_me:$LINENO: checking for $ac_header" >&5
7185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7187 echo $ECHO_N "(cached) $ECHO_C" >&6
7189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7190 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7191 else
7192 # Is the header compilable?
7193 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7194 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7195 cat >conftest.$ac_ext <<_ACEOF
7196 /* confdefs.h. */
7197 _ACEOF
7198 cat confdefs.h >>conftest.$ac_ext
7199 cat >>conftest.$ac_ext <<_ACEOF
7200 /* end confdefs.h. */
7201 $ac_includes_default
7202 #include <$ac_header>
7203 _ACEOF
7204 rm -f conftest.$ac_objext
7205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7206 (eval $ac_compile) 2>conftest.er1
7207 ac_status=$?
7208 grep -v '^ *+' conftest.er1 >conftest.err
7209 rm -f conftest.er1
7210 cat conftest.err >&5
7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); } &&
7213 { ac_try='test -z "$ac_c_werror_flag"
7214 || test ! -s conftest.err'
7215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7216 (eval $ac_try) 2>&5
7217 ac_status=$?
7218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219 (exit $ac_status); }; } &&
7220 { ac_try='test -s conftest.$ac_objext'
7221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7222 (eval $ac_try) 2>&5
7223 ac_status=$?
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); }; }; then
7226 ac_header_compiler=yes
7227 else
7228 echo "$as_me: failed program was:" >&5
7229 sed 's/^/| /' conftest.$ac_ext >&5
7231 ac_header_compiler=no
7233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7234 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7235 echo "${ECHO_T}$ac_header_compiler" >&6
7237 # Is the header present?
7238 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7239 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7240 cat >conftest.$ac_ext <<_ACEOF
7241 /* confdefs.h. */
7242 _ACEOF
7243 cat confdefs.h >>conftest.$ac_ext
7244 cat >>conftest.$ac_ext <<_ACEOF
7245 /* end confdefs.h. */
7246 #include <$ac_header>
7247 _ACEOF
7248 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7249 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7250 ac_status=$?
7251 grep -v '^ *+' conftest.er1 >conftest.err
7252 rm -f conftest.er1
7253 cat conftest.err >&5
7254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255 (exit $ac_status); } >/dev/null; then
7256 if test -s conftest.err; then
7257 ac_cpp_err=$ac_c_preproc_warn_flag
7258 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7259 else
7260 ac_cpp_err=
7262 else
7263 ac_cpp_err=yes
7265 if test -z "$ac_cpp_err"; then
7266 ac_header_preproc=yes
7267 else
7268 echo "$as_me: failed program was:" >&5
7269 sed 's/^/| /' conftest.$ac_ext >&5
7271 ac_header_preproc=no
7273 rm -f conftest.err conftest.$ac_ext
7274 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7275 echo "${ECHO_T}$ac_header_preproc" >&6
7277 # So? What about this header?
7278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7279 yes:no: )
7280 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7281 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7283 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7284 ac_header_preproc=yes
7286 no:yes:* )
7287 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7288 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7289 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7290 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7291 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7292 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7293 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7294 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7296 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7297 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7298 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7300 cat <<\_ASBOX
7301 ## ------------------------------ ##
7302 ## Report this to bonzini@gnu.org ##
7303 ## ------------------------------ ##
7304 _ASBOX
7306 sed "s/^/$as_me: WARNING: /" >&2
7308 esac
7309 echo "$as_me:$LINENO: checking for $ac_header" >&5
7310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7311 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7312 echo $ECHO_N "(cached) $ECHO_C" >&6
7313 else
7314 eval "$as_ac_Header=\$ac_header_preproc"
7316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7320 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7321 cat >>confdefs.h <<_ACEOF
7322 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7323 _ACEOF
7327 done
7330 for ac_func in getpagesize
7332 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7333 echo "$as_me:$LINENO: checking for $ac_func" >&5
7334 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7335 if eval "test \"\${$as_ac_var+set}\" = set"; then
7336 echo $ECHO_N "(cached) $ECHO_C" >&6
7337 else
7338 cat >conftest.$ac_ext <<_ACEOF
7339 /* confdefs.h. */
7340 _ACEOF
7341 cat confdefs.h >>conftest.$ac_ext
7342 cat >>conftest.$ac_ext <<_ACEOF
7343 /* end confdefs.h. */
7344 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7346 #define $ac_func innocuous_$ac_func
7348 /* System header to define __stub macros and hopefully few prototypes,
7349 which can conflict with char $ac_func (); below.
7350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7351 <limits.h> exists even on freestanding compilers. */
7353 #ifdef __STDC__
7354 # include <limits.h>
7355 #else
7356 # include <assert.h>
7357 #endif
7359 #undef $ac_func
7361 /* Override any gcc2 internal prototype to avoid an error. */
7362 #ifdef __cplusplus
7363 extern "C"
7365 #endif
7366 /* We use char because int might match the return type of a gcc2
7367 builtin and then its argument prototype would still apply. */
7368 char $ac_func ();
7369 /* The GNU C library defines this for functions which it implements
7370 to always fail with ENOSYS. Some functions are actually named
7371 something starting with __ and the normal name is an alias. */
7372 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7373 choke me
7374 #else
7375 char (*f) () = $ac_func;
7376 #endif
7377 #ifdef __cplusplus
7379 #endif
7382 main ()
7384 return f != $ac_func;
7386 return 0;
7388 _ACEOF
7389 rm -f conftest.$ac_objext conftest$ac_exeext
7390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7391 (eval $ac_link) 2>conftest.er1
7392 ac_status=$?
7393 grep -v '^ *+' conftest.er1 >conftest.err
7394 rm -f conftest.er1
7395 cat conftest.err >&5
7396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397 (exit $ac_status); } &&
7398 { ac_try='test -z "$ac_c_werror_flag"
7399 || test ! -s conftest.err'
7400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7401 (eval $ac_try) 2>&5
7402 ac_status=$?
7403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404 (exit $ac_status); }; } &&
7405 { ac_try='test -s conftest$ac_exeext'
7406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7407 (eval $ac_try) 2>&5
7408 ac_status=$?
7409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410 (exit $ac_status); }; }; then
7411 eval "$as_ac_var=yes"
7412 else
7413 echo "$as_me: failed program was:" >&5
7414 sed 's/^/| /' conftest.$ac_ext >&5
7416 eval "$as_ac_var=no"
7418 rm -f conftest.err conftest.$ac_objext \
7419 conftest$ac_exeext conftest.$ac_ext
7421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7422 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7423 if test `eval echo '${'$as_ac_var'}'` = yes; then
7424 cat >>confdefs.h <<_ACEOF
7425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7426 _ACEOF
7429 done
7431 echo "$as_me:$LINENO: checking for working mmap" >&5
7432 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7433 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7434 echo $ECHO_N "(cached) $ECHO_C" >&6
7435 else
7436 if test "$cross_compiling" = yes; then
7437 ac_cv_func_mmap_fixed_mapped=no
7438 else
7439 cat >conftest.$ac_ext <<_ACEOF
7440 /* confdefs.h. */
7441 _ACEOF
7442 cat confdefs.h >>conftest.$ac_ext
7443 cat >>conftest.$ac_ext <<_ACEOF
7444 /* end confdefs.h. */
7445 $ac_includes_default
7446 /* malloc might have been renamed as rpl_malloc. */
7447 #undef malloc
7449 /* Thanks to Mike Haertel and Jim Avera for this test.
7450 Here is a matrix of mmap possibilities:
7451 mmap private not fixed
7452 mmap private fixed at somewhere currently unmapped
7453 mmap private fixed at somewhere already mapped
7454 mmap shared not fixed
7455 mmap shared fixed at somewhere currently unmapped
7456 mmap shared fixed at somewhere already mapped
7457 For private mappings, we should verify that changes cannot be read()
7458 back from the file, nor mmap's back from the file at a different
7459 address. (There have been systems where private was not correctly
7460 implemented like the infamous i386 svr4.0, and systems where the
7461 VM page cache was not coherent with the file system buffer cache
7462 like early versions of FreeBSD and possibly contemporary NetBSD.)
7463 For shared mappings, we should conversely verify that changes get
7464 propagated back to all the places they're supposed to be.
7466 Grep wants private fixed already mapped.
7467 The main things grep needs to know about mmap are:
7468 * does it exist and is it safe to write into the mmap'd area
7469 * how to use it (BSD variants) */
7471 #include <fcntl.h>
7472 #include <sys/mman.h>
7474 #if !STDC_HEADERS && !HAVE_STDLIB_H
7475 char *malloc ();
7476 #endif
7478 /* This mess was copied from the GNU getpagesize.h. */
7479 #if !HAVE_GETPAGESIZE
7480 /* Assume that all systems that can run configure have sys/param.h. */
7481 # if !HAVE_SYS_PARAM_H
7482 # define HAVE_SYS_PARAM_H 1
7483 # endif
7485 # ifdef _SC_PAGESIZE
7486 # define getpagesize() sysconf(_SC_PAGESIZE)
7487 # else /* no _SC_PAGESIZE */
7488 # if HAVE_SYS_PARAM_H
7489 # include <sys/param.h>
7490 # ifdef EXEC_PAGESIZE
7491 # define getpagesize() EXEC_PAGESIZE
7492 # else /* no EXEC_PAGESIZE */
7493 # ifdef NBPG
7494 # define getpagesize() NBPG * CLSIZE
7495 # ifndef CLSIZE
7496 # define CLSIZE 1
7497 # endif /* no CLSIZE */
7498 # else /* no NBPG */
7499 # ifdef NBPC
7500 # define getpagesize() NBPC
7501 # else /* no NBPC */
7502 # ifdef PAGESIZE
7503 # define getpagesize() PAGESIZE
7504 # endif /* PAGESIZE */
7505 # endif /* no NBPC */
7506 # endif /* no NBPG */
7507 # endif /* no EXEC_PAGESIZE */
7508 # else /* no HAVE_SYS_PARAM_H */
7509 # define getpagesize() 8192 /* punt totally */
7510 # endif /* no HAVE_SYS_PARAM_H */
7511 # endif /* no _SC_PAGESIZE */
7513 #endif /* no HAVE_GETPAGESIZE */
7516 main ()
7518 char *data, *data2, *data3;
7519 int i, pagesize;
7520 int fd;
7522 pagesize = getpagesize ();
7524 /* First, make a file with some known garbage in it. */
7525 data = (char *) malloc (pagesize);
7526 if (!data)
7527 exit (1);
7528 for (i = 0; i < pagesize; ++i)
7529 *(data + i) = rand ();
7530 umask (0);
7531 fd = creat ("conftest.mmap", 0600);
7532 if (fd < 0)
7533 exit (1);
7534 if (write (fd, data, pagesize) != pagesize)
7535 exit (1);
7536 close (fd);
7538 /* Next, try to mmap the file at a fixed address which already has
7539 something else allocated at it. If we can, also make sure that
7540 we see the same garbage. */
7541 fd = open ("conftest.mmap", O_RDWR);
7542 if (fd < 0)
7543 exit (1);
7544 data2 = (char *) malloc (2 * pagesize);
7545 if (!data2)
7546 exit (1);
7547 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
7548 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7549 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7550 exit (1);
7551 for (i = 0; i < pagesize; ++i)
7552 if (*(data + i) != *(data2 + i))
7553 exit (1);
7555 /* Finally, make sure that changes to the mapped area do not
7556 percolate back to the file as seen by read(). (This is a bug on
7557 some variants of i386 svr4.0.) */
7558 for (i = 0; i < pagesize; ++i)
7559 *(data2 + i) = *(data2 + i) + 1;
7560 data3 = (char *) malloc (pagesize);
7561 if (!data3)
7562 exit (1);
7563 if (read (fd, data3, pagesize) != pagesize)
7564 exit (1);
7565 for (i = 0; i < pagesize; ++i)
7566 if (*(data + i) != *(data3 + i))
7567 exit (1);
7568 close (fd);
7569 exit (0);
7571 _ACEOF
7572 rm -f conftest$ac_exeext
7573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7574 (eval $ac_link) 2>&5
7575 ac_status=$?
7576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7579 (eval $ac_try) 2>&5
7580 ac_status=$?
7581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 (exit $ac_status); }; }; then
7583 ac_cv_func_mmap_fixed_mapped=yes
7584 else
7585 echo "$as_me: program exited with status $ac_status" >&5
7586 echo "$as_me: failed program was:" >&5
7587 sed 's/^/| /' conftest.$ac_ext >&5
7589 ( exit $ac_status )
7590 ac_cv_func_mmap_fixed_mapped=no
7592 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7595 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7596 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7597 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7599 cat >>confdefs.h <<\_ACEOF
7600 #define HAVE_MMAP 1
7601 _ACEOF
7604 rm -f conftest.mmap
7607 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
7608 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
7609 if test "${ac_cv_gnu_library_2_1+set}" = set; then
7610 echo $ECHO_N "(cached) $ECHO_C" >&6
7611 else
7612 cat >conftest.$ac_ext <<_ACEOF
7613 /* confdefs.h. */
7614 _ACEOF
7615 cat confdefs.h >>conftest.$ac_ext
7616 cat >>conftest.$ac_ext <<_ACEOF
7617 /* end confdefs.h. */
7619 #include <features.h>
7620 #ifdef __GNU_LIBRARY__
7621 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7622 Lucky GNU user
7623 #endif
7624 #endif
7626 _ACEOF
7627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7628 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7629 ac_cv_gnu_library_2_1=yes
7630 else
7631 ac_cv_gnu_library_2_1=no
7633 rm -f conftest*
7638 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
7639 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
7641 GLIBC21="$ac_cv_gnu_library_2_1"
7645 if test "X$prefix" = "XNONE"; then
7646 acl_final_prefix="$ac_default_prefix"
7647 else
7648 acl_final_prefix="$prefix"
7650 if test "X$exec_prefix" = "XNONE"; then
7651 acl_final_exec_prefix='${prefix}'
7652 else
7653 acl_final_exec_prefix="$exec_prefix"
7655 acl_save_prefix="$prefix"
7656 prefix="$acl_final_prefix"
7657 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7658 prefix="$acl_save_prefix"
7661 # Check whether --with-gnu-ld or --without-gnu-ld was given.
7662 if test "${with_gnu_ld+set}" = set; then
7663 withval="$with_gnu_ld"
7664 test "$withval" = no || with_gnu_ld=yes
7665 else
7666 with_gnu_ld=no
7668 ac_prog=ld
7669 if test "$GCC" = yes; then
7670 # Check if gcc -print-prog-name=ld gives a path.
7671 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
7672 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
7673 case $host in
7674 *-*-mingw*)
7675 # gcc leaves a trailing carriage return which upsets mingw
7676 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7678 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7679 esac
7680 case $ac_prog in
7681 # Accept absolute paths.
7682 [\\/]* | [A-Za-z]:[\\/]*)
7683 re_direlt='/[^/][^/]*/\.\./'
7684 # Canonicalize the path of ld
7685 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7686 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7687 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7688 done
7689 test -z "$LD" && LD="$ac_prog"
7692 # If it fails, then pretend we aren't using GCC.
7693 ac_prog=ld
7696 # If it is relative, then search for the first ld in PATH.
7697 with_gnu_ld=unknown
7699 esac
7700 elif test "$with_gnu_ld" = yes; then
7701 echo "$as_me:$LINENO: checking for GNU ld" >&5
7702 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7703 else
7704 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7705 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7707 if test "${acl_cv_path_LD+set}" = set; then
7708 echo $ECHO_N "(cached) $ECHO_C" >&6
7709 else
7710 if test -z "$LD"; then
7711 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7712 for ac_dir in $PATH; do
7713 test -z "$ac_dir" && ac_dir=.
7714 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7715 acl_cv_path_LD="$ac_dir/$ac_prog"
7716 # Check to see if the program is GNU ld. I'd rather use --version,
7717 # but apparently some GNU ld's only accept -v.
7718 # Break only if it was the GNU/non-GNU ld that we prefer.
7719 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
7720 test "$with_gnu_ld" != no && break
7721 else
7722 test "$with_gnu_ld" != yes && break
7725 done
7726 IFS="$ac_save_ifs"
7727 else
7728 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7732 LD="$acl_cv_path_LD"
7733 if test -n "$LD"; then
7734 echo "$as_me:$LINENO: result: $LD" >&5
7735 echo "${ECHO_T}$LD" >&6
7736 else
7737 echo "$as_me:$LINENO: result: no" >&5
7738 echo "${ECHO_T}no" >&6
7740 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7741 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7742 { (exit 1); exit 1; }; }
7743 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7744 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7745 if test "${acl_cv_prog_gnu_ld+set}" = set; then
7746 echo $ECHO_N "(cached) $ECHO_C" >&6
7747 else
7748 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7749 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
7750 acl_cv_prog_gnu_ld=yes
7751 else
7752 acl_cv_prog_gnu_ld=no
7755 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
7756 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
7757 with_gnu_ld=$acl_cv_prog_gnu_ld
7761 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
7762 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
7763 if test "${acl_cv_rpath+set}" = set; then
7764 echo $ECHO_N "(cached) $ECHO_C" >&6
7765 else
7767 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7768 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7769 . ./conftest.sh
7770 rm -f ./conftest.sh
7771 acl_cv_rpath=done
7774 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
7775 echo "${ECHO_T}$acl_cv_rpath" >&6
7776 wl="$acl_cv_wl"
7777 libext="$acl_cv_libext"
7778 shlibext="$acl_cv_shlibext"
7779 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7780 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7781 hardcode_direct="$acl_cv_hardcode_direct"
7782 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7783 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
7784 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
7793 use_additional=yes
7795 acl_save_prefix="$prefix"
7796 prefix="$acl_final_prefix"
7797 acl_save_exec_prefix="$exec_prefix"
7798 exec_prefix="$acl_final_exec_prefix"
7800 eval additional_includedir=\"$includedir\"
7801 eval additional_libdir=\"$libdir\"
7803 exec_prefix="$acl_save_exec_prefix"
7804 prefix="$acl_save_prefix"
7807 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7808 if test "${with_libiconv_prefix+set}" = set; then
7809 withval="$with_libiconv_prefix"
7811 if test "X$withval" = "Xno"; then
7812 use_additional=no
7813 else
7814 if test "X$withval" = "X"; then
7816 acl_save_prefix="$prefix"
7817 prefix="$acl_final_prefix"
7818 acl_save_exec_prefix="$exec_prefix"
7819 exec_prefix="$acl_final_exec_prefix"
7821 eval additional_includedir=\"$includedir\"
7822 eval additional_libdir=\"$libdir\"
7824 exec_prefix="$acl_save_exec_prefix"
7825 prefix="$acl_save_prefix"
7827 else
7828 additional_includedir="$withval/include"
7829 additional_libdir="$withval/lib"
7834 LIBICONV=
7835 LTLIBICONV=
7836 INCICONV=
7837 rpathdirs=
7838 ltrpathdirs=
7839 names_already_handled=
7840 names_next_round='iconv '
7841 while test -n "$names_next_round"; do
7842 names_this_round="$names_next_round"
7843 names_next_round=
7844 for name in $names_this_round; do
7845 already_handled=
7846 for n in $names_already_handled; do
7847 if test "$n" = "$name"; then
7848 already_handled=yes
7849 break
7851 done
7852 if test -z "$already_handled"; then
7853 names_already_handled="$names_already_handled $name"
7854 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7855 eval value=\"\$HAVE_LIB$uppername\"
7856 if test -n "$value"; then
7857 if test "$value" = yes; then
7858 eval value=\"\$LIB$uppername\"
7859 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7860 eval value=\"\$LTLIB$uppername\"
7861 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7862 else
7865 else
7866 found_dir=
7867 found_la=
7868 found_so=
7869 found_a=
7870 if test $use_additional = yes; then
7871 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7872 found_dir="$additional_libdir"
7873 found_so="$additional_libdir/lib$name.$shlibext"
7874 if test -f "$additional_libdir/lib$name.la"; then
7875 found_la="$additional_libdir/lib$name.la"
7877 else
7878 if test -f "$additional_libdir/lib$name.$libext"; then
7879 found_dir="$additional_libdir"
7880 found_a="$additional_libdir/lib$name.$libext"
7881 if test -f "$additional_libdir/lib$name.la"; then
7882 found_la="$additional_libdir/lib$name.la"
7887 if test "X$found_dir" = "X"; then
7888 for x in $LDFLAGS $LTLIBICONV; do
7890 acl_save_prefix="$prefix"
7891 prefix="$acl_final_prefix"
7892 acl_save_exec_prefix="$exec_prefix"
7893 exec_prefix="$acl_final_exec_prefix"
7894 eval x=\"$x\"
7895 exec_prefix="$acl_save_exec_prefix"
7896 prefix="$acl_save_prefix"
7898 case "$x" in
7899 -L*)
7900 dir=`echo "X$x" | sed -e 's/^X-L//'`
7901 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7902 found_dir="$dir"
7903 found_so="$dir/lib$name.$shlibext"
7904 if test -f "$dir/lib$name.la"; then
7905 found_la="$dir/lib$name.la"
7907 else
7908 if test -f "$dir/lib$name.$libext"; then
7909 found_dir="$dir"
7910 found_a="$dir/lib$name.$libext"
7911 if test -f "$dir/lib$name.la"; then
7912 found_la="$dir/lib$name.la"
7917 esac
7918 if test "X$found_dir" != "X"; then
7919 break
7921 done
7923 if test "X$found_dir" != "X"; then
7924 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7925 if test "X$found_so" != "X"; then
7926 if test "X$found_dir" = "X/usr/lib"; then
7927 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7928 else
7929 haveit=
7930 for x in $ltrpathdirs; do
7931 if test "X$x" = "X$found_dir"; then
7932 haveit=yes
7933 break
7935 done
7936 if test -z "$haveit"; then
7937 ltrpathdirs="$ltrpathdirs $found_dir"
7939 if test "$hardcode_direct" = yes; then
7940 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7941 else
7942 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7943 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7944 haveit=
7945 for x in $rpathdirs; do
7946 if test "X$x" = "X$found_dir"; then
7947 haveit=yes
7948 break
7950 done
7951 if test -z "$haveit"; then
7952 rpathdirs="$rpathdirs $found_dir"
7954 else
7955 haveit=
7956 for x in $LDFLAGS $LIBICONV; do
7958 acl_save_prefix="$prefix"
7959 prefix="$acl_final_prefix"
7960 acl_save_exec_prefix="$exec_prefix"
7961 exec_prefix="$acl_final_exec_prefix"
7962 eval x=\"$x\"
7963 exec_prefix="$acl_save_exec_prefix"
7964 prefix="$acl_save_prefix"
7966 if test "X$x" = "X-L$found_dir"; then
7967 haveit=yes
7968 break
7970 done
7971 if test -z "$haveit"; then
7972 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7974 if test "$hardcode_minus_L" != no; then
7975 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7976 else
7977 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7982 else
7983 if test "X$found_a" != "X"; then
7984 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7985 else
7986 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7989 additional_includedir=
7990 case "$found_dir" in
7991 */lib | */lib/)
7992 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7993 additional_includedir="$basedir/include"
7995 esac
7996 if test "X$additional_includedir" != "X"; then
7997 if test "X$additional_includedir" != "X/usr/include"; then
7998 haveit=
7999 if test "X$additional_includedir" = "X/usr/local/include"; then
8000 if test -n "$GCC"; then
8001 case $host_os in
8002 linux*) haveit=yes;;
8003 esac
8006 if test -z "$haveit"; then
8007 for x in $CPPFLAGS $INCICONV; do
8009 acl_save_prefix="$prefix"
8010 prefix="$acl_final_prefix"
8011 acl_save_exec_prefix="$exec_prefix"
8012 exec_prefix="$acl_final_exec_prefix"
8013 eval x=\"$x\"
8014 exec_prefix="$acl_save_exec_prefix"
8015 prefix="$acl_save_prefix"
8017 if test "X$x" = "X-I$additional_includedir"; then
8018 haveit=yes
8019 break
8021 done
8022 if test -z "$haveit"; then
8023 if test -d "$additional_includedir"; then
8024 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8030 if test -n "$found_la"; then
8031 save_libdir="$libdir"
8032 case "$found_la" in
8033 */* | *\\*) . "$found_la" ;;
8034 *) . "./$found_la" ;;
8035 esac
8036 libdir="$save_libdir"
8037 for dep in $dependency_libs; do
8038 case "$dep" in
8039 -L*)
8040 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8041 if test "X$additional_libdir" != "X/usr/lib"; then
8042 haveit=
8043 if test "X$additional_libdir" = "X/usr/local/lib"; then
8044 if test -n "$GCC"; then
8045 case $host_os in
8046 linux*) haveit=yes;;
8047 esac
8050 if test -z "$haveit"; then
8051 haveit=
8052 for x in $LDFLAGS $LIBICONV; do
8054 acl_save_prefix="$prefix"
8055 prefix="$acl_final_prefix"
8056 acl_save_exec_prefix="$exec_prefix"
8057 exec_prefix="$acl_final_exec_prefix"
8058 eval x=\"$x\"
8059 exec_prefix="$acl_save_exec_prefix"
8060 prefix="$acl_save_prefix"
8062 if test "X$x" = "X-L$additional_libdir"; then
8063 haveit=yes
8064 break
8066 done
8067 if test -z "$haveit"; then
8068 if test -d "$additional_libdir"; then
8069 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8072 haveit=
8073 for x in $LDFLAGS $LTLIBICONV; do
8075 acl_save_prefix="$prefix"
8076 prefix="$acl_final_prefix"
8077 acl_save_exec_prefix="$exec_prefix"
8078 exec_prefix="$acl_final_exec_prefix"
8079 eval x=\"$x\"
8080 exec_prefix="$acl_save_exec_prefix"
8081 prefix="$acl_save_prefix"
8083 if test "X$x" = "X-L$additional_libdir"; then
8084 haveit=yes
8085 break
8087 done
8088 if test -z "$haveit"; then
8089 if test -d "$additional_libdir"; then
8090 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8096 -l*)
8097 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8099 *.la)
8100 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8103 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8104 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8106 esac
8107 done
8109 else
8110 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8111 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8115 done
8116 done
8117 if test "X$rpathdirs" != "X"; then
8118 if test -n "$hardcode_libdir_separator"; then
8119 alldirs=
8120 for found_dir in $rpathdirs; do
8121 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8122 done
8123 acl_save_libdir="$libdir"
8124 libdir="$alldirs"
8125 eval flag=\"$hardcode_libdir_flag_spec\"
8126 libdir="$acl_save_libdir"
8127 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8128 else
8129 for found_dir in $rpathdirs; do
8130 acl_save_libdir="$libdir"
8131 libdir="$found_dir"
8132 eval flag=\"$hardcode_libdir_flag_spec\"
8133 libdir="$acl_save_libdir"
8134 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8135 done
8138 if test "X$ltrpathdirs" != "X"; then
8139 for found_dir in $ltrpathdirs; do
8140 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8141 done
8145 am_save_CPPFLAGS="$CPPFLAGS"
8147 for element in $INCICONV; do
8148 haveit=
8149 for x in $CPPFLAGS; do
8151 acl_save_prefix="$prefix"
8152 prefix="$acl_final_prefix"
8153 acl_save_exec_prefix="$exec_prefix"
8154 exec_prefix="$acl_final_exec_prefix"
8155 eval x=\"$x\"
8156 exec_prefix="$acl_save_exec_prefix"
8157 prefix="$acl_save_prefix"
8159 if test "X$x" = "X$element"; then
8160 haveit=yes
8161 break
8163 done
8164 if test -z "$haveit"; then
8165 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8167 done
8170 echo "$as_me:$LINENO: checking for iconv" >&5
8171 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
8172 if test "${am_cv_func_iconv+set}" = set; then
8173 echo $ECHO_N "(cached) $ECHO_C" >&6
8174 else
8176 am_cv_func_iconv="no, consider installing GNU libiconv"
8177 am_cv_lib_iconv=no
8178 cat >conftest.$ac_ext <<_ACEOF
8179 /* confdefs.h. */
8180 _ACEOF
8181 cat confdefs.h >>conftest.$ac_ext
8182 cat >>conftest.$ac_ext <<_ACEOF
8183 /* end confdefs.h. */
8184 #include <stdlib.h>
8185 #include <iconv.h>
8187 main ()
8189 iconv_t cd = iconv_open("","");
8190 iconv(cd,NULL,NULL,NULL,NULL);
8191 iconv_close(cd);
8193 return 0;
8195 _ACEOF
8196 rm -f conftest.$ac_objext conftest$ac_exeext
8197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8198 (eval $ac_link) 2>conftest.er1
8199 ac_status=$?
8200 grep -v '^ *+' conftest.er1 >conftest.err
8201 rm -f conftest.er1
8202 cat conftest.err >&5
8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204 (exit $ac_status); } &&
8205 { ac_try='test -z "$ac_c_werror_flag"
8206 || test ! -s conftest.err'
8207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8208 (eval $ac_try) 2>&5
8209 ac_status=$?
8210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8211 (exit $ac_status); }; } &&
8212 { ac_try='test -s conftest$ac_exeext'
8213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8214 (eval $ac_try) 2>&5
8215 ac_status=$?
8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 (exit $ac_status); }; }; then
8218 am_cv_func_iconv=yes
8219 else
8220 echo "$as_me: failed program was:" >&5
8221 sed 's/^/| /' conftest.$ac_ext >&5
8224 rm -f conftest.err conftest.$ac_objext \
8225 conftest$ac_exeext conftest.$ac_ext
8226 if test "$am_cv_func_iconv" != yes; then
8227 am_save_LIBS="$LIBS"
8228 LIBS="$LIBS $LIBICONV"
8229 cat >conftest.$ac_ext <<_ACEOF
8230 /* confdefs.h. */
8231 _ACEOF
8232 cat confdefs.h >>conftest.$ac_ext
8233 cat >>conftest.$ac_ext <<_ACEOF
8234 /* end confdefs.h. */
8235 #include <stdlib.h>
8236 #include <iconv.h>
8238 main ()
8240 iconv_t cd = iconv_open("","");
8241 iconv(cd,NULL,NULL,NULL,NULL);
8242 iconv_close(cd);
8244 return 0;
8246 _ACEOF
8247 rm -f conftest.$ac_objext conftest$ac_exeext
8248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8249 (eval $ac_link) 2>conftest.er1
8250 ac_status=$?
8251 grep -v '^ *+' conftest.er1 >conftest.err
8252 rm -f conftest.er1
8253 cat conftest.err >&5
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); } &&
8256 { ac_try='test -z "$ac_c_werror_flag"
8257 || test ! -s conftest.err'
8258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8259 (eval $ac_try) 2>&5
8260 ac_status=$?
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); }; } &&
8263 { ac_try='test -s conftest$ac_exeext'
8264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8265 (eval $ac_try) 2>&5
8266 ac_status=$?
8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 (exit $ac_status); }; }; then
8269 am_cv_lib_iconv=yes
8270 am_cv_func_iconv=yes
8271 else
8272 echo "$as_me: failed program was:" >&5
8273 sed 's/^/| /' conftest.$ac_ext >&5
8276 rm -f conftest.err conftest.$ac_objext \
8277 conftest$ac_exeext conftest.$ac_ext
8278 LIBS="$am_save_LIBS"
8282 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8283 echo "${ECHO_T}$am_cv_func_iconv" >&6
8284 if test "$am_cv_func_iconv" = yes; then
8286 cat >>confdefs.h <<\_ACEOF
8287 #define HAVE_ICONV 1
8288 _ACEOF
8291 if test "$am_cv_lib_iconv" = yes; then
8292 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
8293 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
8294 echo "$as_me:$LINENO: result: $LIBICONV" >&5
8295 echo "${ECHO_T}$LIBICONV" >&6
8296 else
8297 CPPFLAGS="$am_save_CPPFLAGS"
8298 LIBICONV=
8299 LTLIBICONV=
8316 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8317 stdlib.h string.h unistd.h sys/param.h
8319 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8321 echo "$as_me:$LINENO: checking for $ac_header" >&5
8322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8324 echo $ECHO_N "(cached) $ECHO_C" >&6
8326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8327 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8328 else
8329 # Is the header compilable?
8330 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8331 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8332 cat >conftest.$ac_ext <<_ACEOF
8333 /* confdefs.h. */
8334 _ACEOF
8335 cat confdefs.h >>conftest.$ac_ext
8336 cat >>conftest.$ac_ext <<_ACEOF
8337 /* end confdefs.h. */
8338 $ac_includes_default
8339 #include <$ac_header>
8340 _ACEOF
8341 rm -f conftest.$ac_objext
8342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8343 (eval $ac_compile) 2>conftest.er1
8344 ac_status=$?
8345 grep -v '^ *+' conftest.er1 >conftest.err
8346 rm -f conftest.er1
8347 cat conftest.err >&5
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); } &&
8350 { ac_try='test -z "$ac_c_werror_flag"
8351 || test ! -s conftest.err'
8352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8353 (eval $ac_try) 2>&5
8354 ac_status=$?
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); }; } &&
8357 { ac_try='test -s conftest.$ac_objext'
8358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8359 (eval $ac_try) 2>&5
8360 ac_status=$?
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); }; }; then
8363 ac_header_compiler=yes
8364 else
8365 echo "$as_me: failed program was:" >&5
8366 sed 's/^/| /' conftest.$ac_ext >&5
8368 ac_header_compiler=no
8370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8371 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8372 echo "${ECHO_T}$ac_header_compiler" >&6
8374 # Is the header present?
8375 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8376 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8377 cat >conftest.$ac_ext <<_ACEOF
8378 /* confdefs.h. */
8379 _ACEOF
8380 cat confdefs.h >>conftest.$ac_ext
8381 cat >>conftest.$ac_ext <<_ACEOF
8382 /* end confdefs.h. */
8383 #include <$ac_header>
8384 _ACEOF
8385 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8386 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8387 ac_status=$?
8388 grep -v '^ *+' conftest.er1 >conftest.err
8389 rm -f conftest.er1
8390 cat conftest.err >&5
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); } >/dev/null; then
8393 if test -s conftest.err; then
8394 ac_cpp_err=$ac_c_preproc_warn_flag
8395 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8396 else
8397 ac_cpp_err=
8399 else
8400 ac_cpp_err=yes
8402 if test -z "$ac_cpp_err"; then
8403 ac_header_preproc=yes
8404 else
8405 echo "$as_me: failed program was:" >&5
8406 sed 's/^/| /' conftest.$ac_ext >&5
8408 ac_header_preproc=no
8410 rm -f conftest.err conftest.$ac_ext
8411 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8412 echo "${ECHO_T}$ac_header_preproc" >&6
8414 # So? What about this header?
8415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8416 yes:no: )
8417 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8418 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8420 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8421 ac_header_preproc=yes
8423 no:yes:* )
8424 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8425 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8426 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8427 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8428 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8429 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8430 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8431 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8433 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8434 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8435 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8437 cat <<\_ASBOX
8438 ## ------------------------------ ##
8439 ## Report this to bonzini@gnu.org ##
8440 ## ------------------------------ ##
8441 _ASBOX
8443 sed "s/^/$as_me: WARNING: /" >&2
8445 esac
8446 echo "$as_me:$LINENO: checking for $ac_header" >&5
8447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8449 echo $ECHO_N "(cached) $ECHO_C" >&6
8450 else
8451 eval "$as_ac_Header=\$ac_header_preproc"
8453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8458 cat >>confdefs.h <<_ACEOF
8459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8460 _ACEOF
8464 done
8487 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
8488 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
8489 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
8491 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8492 echo "$as_me:$LINENO: checking for $ac_func" >&5
8493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8494 if eval "test \"\${$as_ac_var+set}\" = set"; then
8495 echo $ECHO_N "(cached) $ECHO_C" >&6
8496 else
8497 cat >conftest.$ac_ext <<_ACEOF
8498 /* confdefs.h. */
8499 _ACEOF
8500 cat confdefs.h >>conftest.$ac_ext
8501 cat >>conftest.$ac_ext <<_ACEOF
8502 /* end confdefs.h. */
8503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8505 #define $ac_func innocuous_$ac_func
8507 /* System header to define __stub macros and hopefully few prototypes,
8508 which can conflict with char $ac_func (); below.
8509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8510 <limits.h> exists even on freestanding compilers. */
8512 #ifdef __STDC__
8513 # include <limits.h>
8514 #else
8515 # include <assert.h>
8516 #endif
8518 #undef $ac_func
8520 /* Override any gcc2 internal prototype to avoid an error. */
8521 #ifdef __cplusplus
8522 extern "C"
8524 #endif
8525 /* We use char because int might match the return type of a gcc2
8526 builtin and then its argument prototype would still apply. */
8527 char $ac_func ();
8528 /* The GNU C library defines this for functions which it implements
8529 to always fail with ENOSYS. Some functions are actually named
8530 something starting with __ and the normal name is an alias. */
8531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8532 choke me
8533 #else
8534 char (*f) () = $ac_func;
8535 #endif
8536 #ifdef __cplusplus
8538 #endif
8541 main ()
8543 return f != $ac_func;
8545 return 0;
8547 _ACEOF
8548 rm -f conftest.$ac_objext conftest$ac_exeext
8549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8550 (eval $ac_link) 2>conftest.er1
8551 ac_status=$?
8552 grep -v '^ *+' conftest.er1 >conftest.err
8553 rm -f conftest.er1
8554 cat conftest.err >&5
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); } &&
8557 { ac_try='test -z "$ac_c_werror_flag"
8558 || test ! -s conftest.err'
8559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8560 (eval $ac_try) 2>&5
8561 ac_status=$?
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); }; } &&
8564 { ac_try='test -s conftest$ac_exeext'
8565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8566 (eval $ac_try) 2>&5
8567 ac_status=$?
8568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569 (exit $ac_status); }; }; then
8570 eval "$as_ac_var=yes"
8571 else
8572 echo "$as_me: failed program was:" >&5
8573 sed 's/^/| /' conftest.$ac_ext >&5
8575 eval "$as_ac_var=no"
8577 rm -f conftest.err conftest.$ac_objext \
8578 conftest$ac_exeext conftest.$ac_ext
8580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8581 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8582 if test `eval echo '${'$as_ac_var'}'` = yes; then
8583 cat >>confdefs.h <<_ACEOF
8584 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8585 _ACEOF
8588 done
8593 if test "$am_cv_func_iconv" = yes; then
8594 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8595 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8596 if test "${am_cv_proto_iconv+set}" = set; then
8597 echo $ECHO_N "(cached) $ECHO_C" >&6
8598 else
8600 cat >conftest.$ac_ext <<_ACEOF
8601 /* confdefs.h. */
8602 _ACEOF
8603 cat confdefs.h >>conftest.$ac_ext
8604 cat >>conftest.$ac_ext <<_ACEOF
8605 /* end confdefs.h. */
8607 #include <stdlib.h>
8608 #include <iconv.h>
8609 extern
8610 #ifdef __cplusplus
8612 #endif
8613 #if defined(__STDC__) || defined(__cplusplus)
8614 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8615 #else
8616 size_t iconv();
8617 #endif
8620 main ()
8624 return 0;
8626 _ACEOF
8627 rm -f conftest.$ac_objext
8628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8629 (eval $ac_compile) 2>conftest.er1
8630 ac_status=$?
8631 grep -v '^ *+' conftest.er1 >conftest.err
8632 rm -f conftest.er1
8633 cat conftest.err >&5
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); } &&
8636 { ac_try='test -z "$ac_c_werror_flag"
8637 || test ! -s conftest.err'
8638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8639 (eval $ac_try) 2>&5
8640 ac_status=$?
8641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642 (exit $ac_status); }; } &&
8643 { ac_try='test -s conftest.$ac_objext'
8644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8645 (eval $ac_try) 2>&5
8646 ac_status=$?
8647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); }; }; then
8649 am_cv_proto_iconv_arg1=""
8650 else
8651 echo "$as_me: failed program was:" >&5
8652 sed 's/^/| /' conftest.$ac_ext >&5
8654 am_cv_proto_iconv_arg1="const"
8656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8657 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);"
8660 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8661 echo "$as_me:$LINENO: result: ${ac_t:-
8662 }$am_cv_proto_iconv" >&5
8663 echo "${ECHO_T}${ac_t:-
8664 }$am_cv_proto_iconv" >&6
8666 cat >>confdefs.h <<_ACEOF
8667 #define ICONV_CONST $am_cv_proto_iconv_arg1
8668 _ACEOF
8673 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
8674 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
8675 if test "${am_cv_langinfo_codeset+set}" = set; then
8676 echo $ECHO_N "(cached) $ECHO_C" >&6
8677 else
8678 cat >conftest.$ac_ext <<_ACEOF
8679 /* confdefs.h. */
8680 _ACEOF
8681 cat confdefs.h >>conftest.$ac_ext
8682 cat >>conftest.$ac_ext <<_ACEOF
8683 /* end confdefs.h. */
8684 #include <langinfo.h>
8686 main ()
8688 char* cs = nl_langinfo(CODESET);
8690 return 0;
8692 _ACEOF
8693 rm -f conftest.$ac_objext conftest$ac_exeext
8694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8695 (eval $ac_link) 2>conftest.er1
8696 ac_status=$?
8697 grep -v '^ *+' conftest.er1 >conftest.err
8698 rm -f conftest.er1
8699 cat conftest.err >&5
8700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701 (exit $ac_status); } &&
8702 { ac_try='test -z "$ac_c_werror_flag"
8703 || test ! -s conftest.err'
8704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8705 (eval $ac_try) 2>&5
8706 ac_status=$?
8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 (exit $ac_status); }; } &&
8709 { ac_try='test -s conftest$ac_exeext'
8710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8711 (eval $ac_try) 2>&5
8712 ac_status=$?
8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714 (exit $ac_status); }; }; then
8715 am_cv_langinfo_codeset=yes
8716 else
8717 echo "$as_me: failed program was:" >&5
8718 sed 's/^/| /' conftest.$ac_ext >&5
8720 am_cv_langinfo_codeset=no
8722 rm -f conftest.err conftest.$ac_objext \
8723 conftest$ac_exeext conftest.$ac_ext
8726 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
8727 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
8728 if test $am_cv_langinfo_codeset = yes; then
8730 cat >>confdefs.h <<\_ACEOF
8731 #define HAVE_LANGINFO_CODESET 1
8732 _ACEOF
8736 if test $ac_cv_header_locale_h = yes; then
8737 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8738 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8739 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8740 echo $ECHO_N "(cached) $ECHO_C" >&6
8741 else
8742 cat >conftest.$ac_ext <<_ACEOF
8743 /* confdefs.h. */
8744 _ACEOF
8745 cat confdefs.h >>conftest.$ac_ext
8746 cat >>conftest.$ac_ext <<_ACEOF
8747 /* end confdefs.h. */
8748 #include <locale.h>
8750 main ()
8752 return LC_MESSAGES
8754 return 0;
8756 _ACEOF
8757 rm -f conftest.$ac_objext conftest$ac_exeext
8758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8759 (eval $ac_link) 2>conftest.er1
8760 ac_status=$?
8761 grep -v '^ *+' conftest.er1 >conftest.err
8762 rm -f conftest.er1
8763 cat conftest.err >&5
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); } &&
8766 { ac_try='test -z "$ac_c_werror_flag"
8767 || test ! -s conftest.err'
8768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8769 (eval $ac_try) 2>&5
8770 ac_status=$?
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); }; } &&
8773 { ac_try='test -s conftest$ac_exeext'
8774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8775 (eval $ac_try) 2>&5
8776 ac_status=$?
8777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778 (exit $ac_status); }; }; then
8779 am_cv_val_LC_MESSAGES=yes
8780 else
8781 echo "$as_me: failed program was:" >&5
8782 sed 's/^/| /' conftest.$ac_ext >&5
8784 am_cv_val_LC_MESSAGES=no
8786 rm -f conftest.err conftest.$ac_objext \
8787 conftest$ac_exeext conftest.$ac_ext
8789 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8790 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8791 if test $am_cv_val_LC_MESSAGES = yes; then
8793 cat >>confdefs.h <<\_ACEOF
8794 #define HAVE_LC_MESSAGES 1
8795 _ACEOF
8800 for ac_prog in bison
8802 # Extract the first word of "$ac_prog", so it can be a program name with args.
8803 set dummy $ac_prog; ac_word=$2
8804 echo "$as_me:$LINENO: checking for $ac_word" >&5
8805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8806 if test "${ac_cv_prog_INTLBISON+set}" = set; then
8807 echo $ECHO_N "(cached) $ECHO_C" >&6
8808 else
8809 if test -n "$INTLBISON"; then
8810 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8811 else
8812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8813 for as_dir in $PATH
8815 IFS=$as_save_IFS
8816 test -z "$as_dir" && as_dir=.
8817 for ac_exec_ext in '' $ac_executable_extensions; do
8818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8819 ac_cv_prog_INTLBISON="$ac_prog"
8820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8821 break 2
8823 done
8824 done
8828 INTLBISON=$ac_cv_prog_INTLBISON
8829 if test -n "$INTLBISON"; then
8830 echo "$as_me:$LINENO: result: $INTLBISON" >&5
8831 echo "${ECHO_T}$INTLBISON" >&6
8832 else
8833 echo "$as_me:$LINENO: result: no" >&5
8834 echo "${ECHO_T}no" >&6
8837 test -n "$INTLBISON" && break
8838 done
8840 if test -z "$INTLBISON"; then
8841 ac_verc_fail=yes
8842 else
8843 echo "$as_me:$LINENO: checking version of bison" >&5
8844 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
8845 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8846 case $ac_prog_version in
8847 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8848 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8849 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8850 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8851 esac
8852 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
8853 echo "${ECHO_T}$ac_prog_version" >&6
8855 if test $ac_verc_fail = yes; then
8856 INTLBISON=:
8871 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
8872 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
8873 # Check whether --enable-nls or --disable-nls was given.
8874 if test "${enable_nls+set}" = set; then
8875 enableval="$enable_nls"
8876 USE_NLS=$enableval
8877 else
8878 USE_NLS=yes
8880 echo "$as_me:$LINENO: result: $USE_NLS" >&5
8881 echo "${ECHO_T}$USE_NLS" >&6
8885 BUILD_INCLUDED_LIBINTL=no
8886 USE_INCLUDED_LIBINTL=no
8888 LIBINTL=
8889 LTLIBINTL=
8890 POSUB=
8892 if test "$USE_NLS" = "yes"; then
8893 gt_use_preinstalled_gnugettext=no
8895 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
8896 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
8898 # Check whether --with-included-gettext or --without-included-gettext was given.
8899 if test "${with_included_gettext+set}" = set; then
8900 withval="$with_included_gettext"
8901 nls_cv_force_use_gnu_gettext=$withval
8902 else
8903 nls_cv_force_use_gnu_gettext=no
8905 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
8906 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
8908 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8909 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8916 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
8917 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
8918 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
8919 echo $ECHO_N "(cached) $ECHO_C" >&6
8920 else
8921 cat >conftest.$ac_ext <<_ACEOF
8922 /* confdefs.h. */
8923 _ACEOF
8924 cat confdefs.h >>conftest.$ac_ext
8925 cat >>conftest.$ac_ext <<_ACEOF
8926 /* end confdefs.h. */
8927 #include <libintl.h>
8928 extern int _nl_msg_cat_cntr;
8930 main ()
8932 bindtextdomain ("", "");
8933 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr
8935 return 0;
8937 _ACEOF
8938 rm -f conftest.$ac_objext conftest$ac_exeext
8939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8940 (eval $ac_link) 2>conftest.er1
8941 ac_status=$?
8942 grep -v '^ *+' conftest.er1 >conftest.err
8943 rm -f conftest.er1
8944 cat conftest.err >&5
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); } &&
8947 { ac_try='test -z "$ac_c_werror_flag"
8948 || test ! -s conftest.err'
8949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8950 (eval $ac_try) 2>&5
8951 ac_status=$?
8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953 (exit $ac_status); }; } &&
8954 { ac_try='test -s conftest$ac_exeext'
8955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8956 (eval $ac_try) 2>&5
8957 ac_status=$?
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); }; }; then
8960 gt_cv_func_gnugettext2_libc=yes
8961 else
8962 echo "$as_me: failed program was:" >&5
8963 sed 's/^/| /' conftest.$ac_ext >&5
8965 gt_cv_func_gnugettext2_libc=no
8967 rm -f conftest.err conftest.$ac_objext \
8968 conftest$ac_exeext conftest.$ac_ext
8970 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
8971 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
8973 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
8977 use_additional=yes
8979 acl_save_prefix="$prefix"
8980 prefix="$acl_final_prefix"
8981 acl_save_exec_prefix="$exec_prefix"
8982 exec_prefix="$acl_final_exec_prefix"
8984 eval additional_includedir=\"$includedir\"
8985 eval additional_libdir=\"$libdir\"
8987 exec_prefix="$acl_save_exec_prefix"
8988 prefix="$acl_save_prefix"
8991 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
8992 if test "${with_libintl_prefix+set}" = set; then
8993 withval="$with_libintl_prefix"
8995 if test "X$withval" = "Xno"; then
8996 use_additional=no
8997 else
8998 if test "X$withval" = "X"; then
9000 acl_save_prefix="$prefix"
9001 prefix="$acl_final_prefix"
9002 acl_save_exec_prefix="$exec_prefix"
9003 exec_prefix="$acl_final_exec_prefix"
9005 eval additional_includedir=\"$includedir\"
9006 eval additional_libdir=\"$libdir\"
9008 exec_prefix="$acl_save_exec_prefix"
9009 prefix="$acl_save_prefix"
9011 else
9012 additional_includedir="$withval/include"
9013 additional_libdir="$withval/lib"
9018 LIBINTL=
9019 LTLIBINTL=
9020 INCINTL=
9021 rpathdirs=
9022 ltrpathdirs=
9023 names_already_handled=
9024 names_next_round='intl '
9025 while test -n "$names_next_round"; do
9026 names_this_round="$names_next_round"
9027 names_next_round=
9028 for name in $names_this_round; do
9029 already_handled=
9030 for n in $names_already_handled; do
9031 if test "$n" = "$name"; then
9032 already_handled=yes
9033 break
9035 done
9036 if test -z "$already_handled"; then
9037 names_already_handled="$names_already_handled $name"
9038 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9039 eval value=\"\$HAVE_LIB$uppername\"
9040 if test -n "$value"; then
9041 if test "$value" = yes; then
9042 eval value=\"\$LIB$uppername\"
9043 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9044 eval value=\"\$LTLIB$uppername\"
9045 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9046 else
9049 else
9050 found_dir=
9051 found_la=
9052 found_so=
9053 found_a=
9054 if test $use_additional = yes; then
9055 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9056 found_dir="$additional_libdir"
9057 found_so="$additional_libdir/lib$name.$shlibext"
9058 if test -f "$additional_libdir/lib$name.la"; then
9059 found_la="$additional_libdir/lib$name.la"
9061 else
9062 if test -f "$additional_libdir/lib$name.$libext"; then
9063 found_dir="$additional_libdir"
9064 found_a="$additional_libdir/lib$name.$libext"
9065 if test -f "$additional_libdir/lib$name.la"; then
9066 found_la="$additional_libdir/lib$name.la"
9071 if test "X$found_dir" = "X"; then
9072 for x in $LDFLAGS $LTLIBINTL; do
9074 acl_save_prefix="$prefix"
9075 prefix="$acl_final_prefix"
9076 acl_save_exec_prefix="$exec_prefix"
9077 exec_prefix="$acl_final_exec_prefix"
9078 eval x=\"$x\"
9079 exec_prefix="$acl_save_exec_prefix"
9080 prefix="$acl_save_prefix"
9082 case "$x" in
9083 -L*)
9084 dir=`echo "X$x" | sed -e 's/^X-L//'`
9085 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9086 found_dir="$dir"
9087 found_so="$dir/lib$name.$shlibext"
9088 if test -f "$dir/lib$name.la"; then
9089 found_la="$dir/lib$name.la"
9091 else
9092 if test -f "$dir/lib$name.$libext"; then
9093 found_dir="$dir"
9094 found_a="$dir/lib$name.$libext"
9095 if test -f "$dir/lib$name.la"; then
9096 found_la="$dir/lib$name.la"
9101 esac
9102 if test "X$found_dir" != "X"; then
9103 break
9105 done
9107 if test "X$found_dir" != "X"; then
9108 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9109 if test "X$found_so" != "X"; then
9110 if test "X$found_dir" = "X/usr/lib"; then
9111 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9112 else
9113 haveit=
9114 for x in $ltrpathdirs; do
9115 if test "X$x" = "X$found_dir"; then
9116 haveit=yes
9117 break
9119 done
9120 if test -z "$haveit"; then
9121 ltrpathdirs="$ltrpathdirs $found_dir"
9123 if test "$hardcode_direct" = yes; then
9124 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9125 else
9126 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9127 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9128 haveit=
9129 for x in $rpathdirs; do
9130 if test "X$x" = "X$found_dir"; then
9131 haveit=yes
9132 break
9134 done
9135 if test -z "$haveit"; then
9136 rpathdirs="$rpathdirs $found_dir"
9138 else
9139 haveit=
9140 for x in $LDFLAGS $LIBINTL; do
9142 acl_save_prefix="$prefix"
9143 prefix="$acl_final_prefix"
9144 acl_save_exec_prefix="$exec_prefix"
9145 exec_prefix="$acl_final_exec_prefix"
9146 eval x=\"$x\"
9147 exec_prefix="$acl_save_exec_prefix"
9148 prefix="$acl_save_prefix"
9150 if test "X$x" = "X-L$found_dir"; then
9151 haveit=yes
9152 break
9154 done
9155 if test -z "$haveit"; then
9156 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9158 if test "$hardcode_minus_L" != no; then
9159 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9160 else
9161 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9166 else
9167 if test "X$found_a" != "X"; then
9168 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9169 else
9170 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9173 additional_includedir=
9174 case "$found_dir" in
9175 */lib | */lib/)
9176 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9177 additional_includedir="$basedir/include"
9179 esac
9180 if test "X$additional_includedir" != "X"; then
9181 if test "X$additional_includedir" != "X/usr/include"; then
9182 haveit=
9183 if test "X$additional_includedir" = "X/usr/local/include"; then
9184 if test -n "$GCC"; then
9185 case $host_os in
9186 linux*) haveit=yes;;
9187 esac
9190 if test -z "$haveit"; then
9191 for x in $CPPFLAGS $INCINTL; do
9193 acl_save_prefix="$prefix"
9194 prefix="$acl_final_prefix"
9195 acl_save_exec_prefix="$exec_prefix"
9196 exec_prefix="$acl_final_exec_prefix"
9197 eval x=\"$x\"
9198 exec_prefix="$acl_save_exec_prefix"
9199 prefix="$acl_save_prefix"
9201 if test "X$x" = "X-I$additional_includedir"; then
9202 haveit=yes
9203 break
9205 done
9206 if test -z "$haveit"; then
9207 if test -d "$additional_includedir"; then
9208 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9214 if test -n "$found_la"; then
9215 save_libdir="$libdir"
9216 case "$found_la" in
9217 */* | *\\*) . "$found_la" ;;
9218 *) . "./$found_la" ;;
9219 esac
9220 libdir="$save_libdir"
9221 for dep in $dependency_libs; do
9222 case "$dep" in
9223 -L*)
9224 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9225 if test "X$additional_libdir" != "X/usr/lib"; then
9226 haveit=
9227 if test "X$additional_libdir" = "X/usr/local/lib"; then
9228 if test -n "$GCC"; then
9229 case $host_os in
9230 linux*) haveit=yes;;
9231 esac
9234 if test -z "$haveit"; then
9235 haveit=
9236 for x in $LDFLAGS $LIBINTL; do
9238 acl_save_prefix="$prefix"
9239 prefix="$acl_final_prefix"
9240 acl_save_exec_prefix="$exec_prefix"
9241 exec_prefix="$acl_final_exec_prefix"
9242 eval x=\"$x\"
9243 exec_prefix="$acl_save_exec_prefix"
9244 prefix="$acl_save_prefix"
9246 if test "X$x" = "X-L$additional_libdir"; then
9247 haveit=yes
9248 break
9250 done
9251 if test -z "$haveit"; then
9252 if test -d "$additional_libdir"; then
9253 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9256 haveit=
9257 for x in $LDFLAGS $LTLIBINTL; do
9259 acl_save_prefix="$prefix"
9260 prefix="$acl_final_prefix"
9261 acl_save_exec_prefix="$exec_prefix"
9262 exec_prefix="$acl_final_exec_prefix"
9263 eval x=\"$x\"
9264 exec_prefix="$acl_save_exec_prefix"
9265 prefix="$acl_save_prefix"
9267 if test "X$x" = "X-L$additional_libdir"; then
9268 haveit=yes
9269 break
9271 done
9272 if test -z "$haveit"; then
9273 if test -d "$additional_libdir"; then
9274 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9280 -l*)
9281 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9283 *.la)
9284 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9287 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9288 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9290 esac
9291 done
9293 else
9294 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9295 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9299 done
9300 done
9301 if test "X$rpathdirs" != "X"; then
9302 if test -n "$hardcode_libdir_separator"; then
9303 alldirs=
9304 for found_dir in $rpathdirs; do
9305 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9306 done
9307 acl_save_libdir="$libdir"
9308 libdir="$alldirs"
9309 eval flag=\"$hardcode_libdir_flag_spec\"
9310 libdir="$acl_save_libdir"
9311 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9312 else
9313 for found_dir in $rpathdirs; do
9314 acl_save_libdir="$libdir"
9315 libdir="$found_dir"
9316 eval flag=\"$hardcode_libdir_flag_spec\"
9317 libdir="$acl_save_libdir"
9318 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9319 done
9322 if test "X$ltrpathdirs" != "X"; then
9323 for found_dir in $ltrpathdirs; do
9324 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9325 done
9328 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
9329 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
9330 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
9331 echo $ECHO_N "(cached) $ECHO_C" >&6
9332 else
9333 gt_save_CPPFLAGS="$CPPFLAGS"
9334 CPPFLAGS="$CPPFLAGS $INCINTL"
9335 gt_save_LIBS="$LIBS"
9336 LIBS="$LIBS $LIBINTL"
9337 cat >conftest.$ac_ext <<_ACEOF
9338 /* confdefs.h. */
9339 _ACEOF
9340 cat confdefs.h >>conftest.$ac_ext
9341 cat >>conftest.$ac_ext <<_ACEOF
9342 /* end confdefs.h. */
9343 #include <libintl.h>
9344 extern int _nl_msg_cat_cntr;
9346 main ()
9348 bindtextdomain ("", "");
9349 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr
9351 return 0;
9353 _ACEOF
9354 rm -f conftest.$ac_objext conftest$ac_exeext
9355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9356 (eval $ac_link) 2>conftest.er1
9357 ac_status=$?
9358 grep -v '^ *+' conftest.er1 >conftest.err
9359 rm -f conftest.er1
9360 cat conftest.err >&5
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); } &&
9363 { ac_try='test -z "$ac_c_werror_flag"
9364 || test ! -s conftest.err'
9365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9366 (eval $ac_try) 2>&5
9367 ac_status=$?
9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 (exit $ac_status); }; } &&
9370 { ac_try='test -s conftest$ac_exeext'
9371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9372 (eval $ac_try) 2>&5
9373 ac_status=$?
9374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375 (exit $ac_status); }; }; then
9376 gt_cv_func_gnugettext2_libintl=yes
9377 else
9378 echo "$as_me: failed program was:" >&5
9379 sed 's/^/| /' conftest.$ac_ext >&5
9381 gt_cv_func_gnugettext2_libintl=no
9383 rm -f conftest.err conftest.$ac_objext \
9384 conftest$ac_exeext conftest.$ac_ext
9385 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
9386 LIBS="$LIBS $LIBICONV"
9387 cat >conftest.$ac_ext <<_ACEOF
9388 /* confdefs.h. */
9389 _ACEOF
9390 cat confdefs.h >>conftest.$ac_ext
9391 cat >>conftest.$ac_ext <<_ACEOF
9392 /* end confdefs.h. */
9393 #include <libintl.h>
9394 extern int _nl_msg_cat_cntr;
9396 main ()
9398 bindtextdomain ("", "");
9399 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr
9401 return 0;
9403 _ACEOF
9404 rm -f conftest.$ac_objext conftest$ac_exeext
9405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9406 (eval $ac_link) 2>conftest.er1
9407 ac_status=$?
9408 grep -v '^ *+' conftest.er1 >conftest.err
9409 rm -f conftest.er1
9410 cat conftest.err >&5
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); } &&
9413 { ac_try='test -z "$ac_c_werror_flag"
9414 || test ! -s conftest.err'
9415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9416 (eval $ac_try) 2>&5
9417 ac_status=$?
9418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419 (exit $ac_status); }; } &&
9420 { ac_try='test -s conftest$ac_exeext'
9421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9422 (eval $ac_try) 2>&5
9423 ac_status=$?
9424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425 (exit $ac_status); }; }; then
9426 LIBINTL="$LIBINTL $LIBICONV"
9427 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9428 gt_cv_func_gnugettext2_libintl=yes
9430 else
9431 echo "$as_me: failed program was:" >&5
9432 sed 's/^/| /' conftest.$ac_ext >&5
9435 rm -f conftest.err conftest.$ac_objext \
9436 conftest$ac_exeext conftest.$ac_ext
9438 CPPFLAGS="$gt_save_CPPFLAGS"
9439 LIBS="$gt_save_LIBS"
9441 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
9442 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
9445 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
9446 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
9447 && test "$PACKAGE" != gettext; }; then
9448 gt_use_preinstalled_gnugettext=yes
9452 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9453 nls_cv_use_gnu_gettext=yes
9457 if test "$nls_cv_use_gnu_gettext" = "yes"; then
9458 INTLOBJS="\$(GETTOBJS)"
9459 BUILD_INCLUDED_LIBINTL=yes
9460 USE_INCLUDED_LIBINTL=yes
9461 LIBINTL="../intl/libintl.a $LIBICONV"
9462 LTLIBINTL="../intl/libintl.a $LTLIBICONV"
9463 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9466 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9467 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9468 CATOBJEXT=.gmo
9472 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9473 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9475 cat >>confdefs.h <<\_ACEOF
9476 #define ENABLE_NLS 1
9477 _ACEOF
9479 else
9480 USE_NLS=no
9484 if test "$USE_NLS" = "yes"; then
9486 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9487 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
9488 echo "$as_me:$LINENO: checking how to link with libintl" >&5
9489 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
9490 echo "$as_me:$LINENO: result: $LIBINTL" >&5
9491 echo "${ECHO_T}$LIBINTL" >&6
9493 for element in $INCINTL; do
9494 haveit=
9495 for x in $CPPFLAGS; do
9497 acl_save_prefix="$prefix"
9498 prefix="$acl_final_prefix"
9499 acl_save_exec_prefix="$exec_prefix"
9500 exec_prefix="$acl_final_exec_prefix"
9501 eval x=\"$x\"
9502 exec_prefix="$acl_save_exec_prefix"
9503 prefix="$acl_save_prefix"
9505 if test "X$x" = "X$element"; then
9506 haveit=yes
9507 break
9509 done
9510 if test -z "$haveit"; then
9511 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9513 done
9518 cat >>confdefs.h <<\_ACEOF
9519 #define HAVE_GETTEXT 1
9520 _ACEOF
9523 cat >>confdefs.h <<\_ACEOF
9524 #define HAVE_DCGETTEXT 1
9525 _ACEOF
9529 POSUB=po
9533 if test "$PACKAGE" = gettext; then
9534 BUILD_INCLUDED_LIBINTL=yes
9542 nls_cv_header_intl=
9543 nls_cv_header_libgt=
9545 DATADIRNAME=share
9548 INSTOBJEXT=.mo
9551 GENCAT=gencat
9554 INTL_LIBTOOL_SUFFIX_PREFIX=
9558 INTLLIBS="$LIBINTL"
9565 ac_config_commands="$ac_config_commands gettext-fix"
9568 ac_config_files="$ac_config_files bootstrap.sh"
9570 ac_config_files="$ac_config_files Makefile doc/Makefile lib/Makefile sed/Makefile testsuite/Makefile po/Makefile.in intl/Makefile"
9572 cat >confcache <<\_ACEOF
9573 # This file is a shell script that caches the results of configure
9574 # tests run on this system so they can be shared between configure
9575 # scripts and configure runs, see configure's option --config-cache.
9576 # It is not useful on other systems. If it contains results you don't
9577 # want to keep, you may remove or edit it.
9579 # config.status only pays attention to the cache file if you give it
9580 # the --recheck option to rerun configure.
9582 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9583 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9584 # following values.
9586 _ACEOF
9588 # The following way of writing the cache mishandles newlines in values,
9589 # but we know of no workaround that is simple, portable, and efficient.
9590 # So, don't put newlines in cache variables' values.
9591 # Ultrix sh set writes to stderr and can't be redirected directly,
9592 # and sets the high bit in the cache file unless we assign to the vars.
9594 (set) 2>&1 |
9595 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9596 *ac_space=\ *)
9597 # `set' does not quote correctly, so add quotes (double-quote
9598 # substitution turns \\\\ into \\, and sed turns \\ into \).
9599 sed -n \
9600 "s/'/'\\\\''/g;
9601 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9604 # `set' quotes correctly as required by POSIX, so do not add quotes.
9605 sed -n \
9606 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9608 esac;
9610 sed '
9611 t clear
9612 : clear
9613 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9614 t end
9615 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9616 : end' >>confcache
9617 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9618 if test -w $cache_file; then
9619 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9620 cat confcache >$cache_file
9621 else
9622 echo "not updating unwritable cache $cache_file"
9625 rm -f confcache
9627 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9628 # Let make expand exec_prefix.
9629 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9631 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9632 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9633 # trailing colons and then remove the whole line if VPATH becomes empty
9634 # (actually we leave an empty line to preserve line numbers).
9635 if test "x$srcdir" = x.; then
9636 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9637 s/:*\$(srcdir):*/:/;
9638 s/:*\${srcdir}:*/:/;
9639 s/:*@srcdir@:*/:/;
9640 s/^\([^=]*=[ ]*\):*/\1/;
9641 s/:*$//;
9642 s/^[^=]*=[ ]*$//;
9646 DEFS=-DHAVE_CONFIG_H
9648 ac_libobjs=
9649 ac_ltlibobjs=
9650 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9651 # 1. Remove the extension, and $U if already installed.
9652 ac_i=`echo "$ac_i" |
9653 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9654 # 2. Add them.
9655 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9656 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9657 done
9658 LIBOBJS=$ac_libobjs
9660 LTLIBOBJS=$ac_ltlibobjs
9663 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9664 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9665 Usually this means the macro was only invoked conditionally." >&5
9666 echo "$as_me: error: conditional \"AMDEP\" was never defined.
9667 Usually this means the macro was only invoked conditionally." >&2;}
9668 { (exit 1); exit 1; }; }
9670 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9671 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9672 Usually this means the macro was only invoked conditionally." >&5
9673 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9674 Usually this means the macro was only invoked conditionally." >&2;}
9675 { (exit 1); exit 1; }; }
9677 if test -z "${TEST_REGEX_TRUE}" && test -z "${TEST_REGEX_FALSE}"; then
9678 { { echo "$as_me:$LINENO: error: conditional \"TEST_REGEX\" was never defined.
9679 Usually this means the macro was only invoked conditionally." >&5
9680 echo "$as_me: error: conditional \"TEST_REGEX\" was never defined.
9681 Usually this means the macro was only invoked conditionally." >&2;}
9682 { (exit 1); exit 1; }; }
9684 if test -z "${BUILD_HTML_TRUE}" && test -z "${BUILD_HTML_FALSE}"; then
9685 { { echo "$as_me:$LINENO: error: conditional \"BUILD_HTML\" was never defined.
9686 Usually this means the macro was only invoked conditionally." >&5
9687 echo "$as_me: error: conditional \"BUILD_HTML\" was never defined.
9688 Usually this means the macro was only invoked conditionally." >&2;}
9689 { (exit 1); exit 1; }; }
9691 if test -z "${MAKEINFO_HTML_TRUE}" && test -z "${MAKEINFO_HTML_FALSE}"; then
9692 { { echo "$as_me:$LINENO: error: conditional \"MAKEINFO_HTML\" was never defined.
9693 Usually this means the macro was only invoked conditionally." >&5
9694 echo "$as_me: error: conditional \"MAKEINFO_HTML\" was never defined.
9695 Usually this means the macro was only invoked conditionally." >&2;}
9696 { (exit 1); exit 1; }; }
9698 if test -z "${TEXI2HTML_HTML_TRUE}" && test -z "${TEXI2HTML_HTML_FALSE}"; then
9699 { { echo "$as_me:$LINENO: error: conditional \"TEXI2HTML_HTML\" was never defined.
9700 Usually this means the macro was only invoked conditionally." >&5
9701 echo "$as_me: error: conditional \"TEXI2HTML_HTML\" was never defined.
9702 Usually this means the macro was only invoked conditionally." >&2;}
9703 { (exit 1); exit 1; }; }
9706 : ${CONFIG_STATUS=./config.status}
9707 ac_clean_files_save=$ac_clean_files
9708 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9709 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9710 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9711 cat >$CONFIG_STATUS <<_ACEOF
9712 #! $SHELL
9713 # Generated by $as_me.
9714 # Run this file to recreate the current configuration.
9715 # Compiler output produced by configure, useful for debugging
9716 # configure, is in config.log if it exists.
9718 debug=false
9719 ac_cs_recheck=false
9720 ac_cs_silent=false
9721 SHELL=\${CONFIG_SHELL-$SHELL}
9722 _ACEOF
9724 cat >>$CONFIG_STATUS <<\_ACEOF
9725 ## --------------------- ##
9726 ## M4sh Initialization. ##
9727 ## --------------------- ##
9729 # Be Bourne compatible
9730 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9731 emulate sh
9732 NULLCMD=:
9733 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9734 # is contrary to our usage. Disable this feature.
9735 alias -g '${1+"$@"}'='"$@"'
9736 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9737 set -o posix
9739 DUALCASE=1; export DUALCASE # for MKS sh
9741 # Support unset when possible.
9742 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9743 as_unset=unset
9744 else
9745 as_unset=false
9749 # Work around bugs in pre-3.0 UWIN ksh.
9750 $as_unset ENV MAIL MAILPATH
9751 PS1='$ '
9752 PS2='> '
9753 PS4='+ '
9755 # NLS nuisances.
9756 for as_var in \
9757 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9758 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9759 LC_TELEPHONE LC_TIME
9761 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9762 eval $as_var=C; export $as_var
9763 else
9764 $as_unset $as_var
9766 done
9768 # Required to use basename.
9769 if expr a : '\(a\)' >/dev/null 2>&1; then
9770 as_expr=expr
9771 else
9772 as_expr=false
9775 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9776 as_basename=basename
9777 else
9778 as_basename=false
9782 # Name of the executable.
9783 as_me=`$as_basename "$0" ||
9784 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9785 X"$0" : 'X\(//\)$' \| \
9786 X"$0" : 'X\(/\)$' \| \
9787 . : '\(.\)' 2>/dev/null ||
9788 echo X/"$0" |
9789 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9790 /^X\/\(\/\/\)$/{ s//\1/; q; }
9791 /^X\/\(\/\).*/{ s//\1/; q; }
9792 s/.*/./; q'`
9795 # PATH needs CR, and LINENO needs CR and PATH.
9796 # Avoid depending upon Character Ranges.
9797 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9798 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9799 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9800 as_cr_digits='0123456789'
9801 as_cr_alnum=$as_cr_Letters$as_cr_digits
9803 # The user is always right.
9804 if test "${PATH_SEPARATOR+set}" != set; then
9805 echo "#! /bin/sh" >conf$$.sh
9806 echo "exit 0" >>conf$$.sh
9807 chmod +x conf$$.sh
9808 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9809 PATH_SEPARATOR=';'
9810 else
9811 PATH_SEPARATOR=:
9813 rm -f conf$$.sh
9817 as_lineno_1=$LINENO
9818 as_lineno_2=$LINENO
9819 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9820 test "x$as_lineno_1" != "x$as_lineno_2" &&
9821 test "x$as_lineno_3" = "x$as_lineno_2" || {
9822 # Find who we are. Look in the path if we contain no path at all
9823 # relative or not.
9824 case $0 in
9825 *[\\/]* ) as_myself=$0 ;;
9826 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9827 for as_dir in $PATH
9829 IFS=$as_save_IFS
9830 test -z "$as_dir" && as_dir=.
9831 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9832 done
9835 esac
9836 # We did not find ourselves, most probably we were run as `sh COMMAND'
9837 # in which case we are not to be found in the path.
9838 if test "x$as_myself" = x; then
9839 as_myself=$0
9841 if test ! -f "$as_myself"; then
9842 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9843 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9844 { (exit 1); exit 1; }; }
9846 case $CONFIG_SHELL in
9848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9849 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9851 IFS=$as_save_IFS
9852 test -z "$as_dir" && as_dir=.
9853 for as_base in sh bash ksh sh5; do
9854 case $as_dir in
9856 if ("$as_dir/$as_base" -c '
9857 as_lineno_1=$LINENO
9858 as_lineno_2=$LINENO
9859 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9860 test "x$as_lineno_1" != "x$as_lineno_2" &&
9861 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9862 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9863 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9864 CONFIG_SHELL=$as_dir/$as_base
9865 export CONFIG_SHELL
9866 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9867 fi;;
9868 esac
9869 done
9870 done
9872 esac
9874 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9875 # uniformly replaced by the line number. The first 'sed' inserts a
9876 # line-number line before each line; the second 'sed' does the real
9877 # work. The second script uses 'N' to pair each line-number line
9878 # with the numbered line, and appends trailing '-' during
9879 # substitution so that $LINENO is not a special case at line end.
9880 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9881 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9882 sed '=' <$as_myself |
9883 sed '
9885 s,$,-,
9886 : loop
9887 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9888 t loop
9889 s,-$,,
9890 s,^['$as_cr_digits']*\n,,
9891 ' >$as_me.lineno &&
9892 chmod +x $as_me.lineno ||
9893 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9894 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9895 { (exit 1); exit 1; }; }
9897 # Don't try to exec as it changes $[0], causing all sort of problems
9898 # (the dirname of $[0] is not the place where we might find the
9899 # original and so on. Autoconf is especially sensible to this).
9900 . ./$as_me.lineno
9901 # Exit status is that of the last command.
9902 exit
9906 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9907 *c*,-n*) ECHO_N= ECHO_C='
9908 ' ECHO_T=' ' ;;
9909 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9910 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9911 esac
9913 if expr a : '\(a\)' >/dev/null 2>&1; then
9914 as_expr=expr
9915 else
9916 as_expr=false
9919 rm -f conf$$ conf$$.exe conf$$.file
9920 echo >conf$$.file
9921 if ln -s conf$$.file conf$$ 2>/dev/null; then
9922 # We could just check for DJGPP; but this test a) works b) is more generic
9923 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9924 if test -f conf$$.exe; then
9925 # Don't use ln at all; we don't have any links
9926 as_ln_s='cp -p'
9927 else
9928 as_ln_s='ln -s'
9930 elif ln conf$$.file conf$$ 2>/dev/null; then
9931 as_ln_s=ln
9932 else
9933 as_ln_s='cp -p'
9935 rm -f conf$$ conf$$.exe conf$$.file
9937 if mkdir -p . 2>/dev/null; then
9938 as_mkdir_p=:
9939 else
9940 test -d ./-p && rmdir ./-p
9941 as_mkdir_p=false
9944 as_executable_p="test -f"
9946 # Sed expression to map a string onto a valid CPP name.
9947 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9949 # Sed expression to map a string onto a valid variable name.
9950 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9953 # IFS
9954 # We need space, tab and new line, in precisely that order.
9955 as_nl='
9957 IFS=" $as_nl"
9959 # CDPATH.
9960 $as_unset CDPATH
9962 exec 6>&1
9964 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9965 # report actual input values of CONFIG_FILES etc. instead of their
9966 # values after options handling. Logging --version etc. is OK.
9967 exec 5>>config.log
9969 echo
9970 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9971 ## Running $as_me. ##
9972 _ASBOX
9973 } >&5
9974 cat >&5 <<_CSEOF
9976 This file was extended by sed $as_me 4.1.5, which was
9977 generated by GNU Autoconf 2.59. Invocation command line was
9979 CONFIG_FILES = $CONFIG_FILES
9980 CONFIG_HEADERS = $CONFIG_HEADERS
9981 CONFIG_LINKS = $CONFIG_LINKS
9982 CONFIG_COMMANDS = $CONFIG_COMMANDS
9983 $ $0 $@
9985 _CSEOF
9986 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9987 echo >&5
9988 _ACEOF
9990 # Files that config.status was made for.
9991 if test -n "$ac_config_files"; then
9992 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9995 if test -n "$ac_config_headers"; then
9996 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9999 if test -n "$ac_config_links"; then
10000 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10003 if test -n "$ac_config_commands"; then
10004 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10007 cat >>$CONFIG_STATUS <<\_ACEOF
10009 ac_cs_usage="\
10010 \`$as_me' instantiates files from templates according to the
10011 current configuration.
10013 Usage: $0 [OPTIONS] [FILE]...
10015 -h, --help print this help, then exit
10016 -V, --version print version number, then exit
10017 -q, --quiet do not print progress messages
10018 -d, --debug don't remove temporary files
10019 --recheck update $as_me by reconfiguring in the same conditions
10020 --file=FILE[:TEMPLATE]
10021 instantiate the configuration file FILE
10022 --header=FILE[:TEMPLATE]
10023 instantiate the configuration header FILE
10025 Configuration files:
10026 $config_files
10028 Configuration headers:
10029 $config_headers
10031 Configuration links:
10032 $config_links
10034 Configuration commands:
10035 $config_commands
10037 Report bugs to <bug-autoconf@gnu.org>."
10038 _ACEOF
10040 cat >>$CONFIG_STATUS <<_ACEOF
10041 ac_cs_version="\\
10042 sed config.status 4.1.5
10043 configured by $0, generated by GNU Autoconf 2.59,
10044 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10046 Copyright (C) 2003 Free Software Foundation, Inc.
10047 This config.status script is free software; the Free Software Foundation
10048 gives unlimited permission to copy, distribute and modify it."
10049 srcdir=$srcdir
10050 INSTALL="$INSTALL"
10051 _ACEOF
10053 cat >>$CONFIG_STATUS <<\_ACEOF
10054 # If no file are specified by the user, then we need to provide default
10055 # value. By we need to know if files were specified by the user.
10056 ac_need_defaults=:
10057 while test $# != 0
10059 case $1 in
10060 --*=*)
10061 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10062 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10063 ac_shift=:
10066 ac_option=$1
10067 ac_optarg=$2
10068 ac_shift=shift
10070 *) # This is not an option, so the user has probably given explicit
10071 # arguments.
10072 ac_option=$1
10073 ac_need_defaults=false;;
10074 esac
10076 case $ac_option in
10077 # Handling of the options.
10078 _ACEOF
10079 cat >>$CONFIG_STATUS <<\_ACEOF
10080 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10081 ac_cs_recheck=: ;;
10082 --version | --vers* | -V )
10083 echo "$ac_cs_version"; exit 0 ;;
10084 --he | --h)
10085 # Conflict between --help and --header
10086 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10087 Try \`$0 --help' for more information." >&5
10088 echo "$as_me: error: ambiguous option: $1
10089 Try \`$0 --help' for more information." >&2;}
10090 { (exit 1); exit 1; }; };;
10091 --help | --hel | -h )
10092 echo "$ac_cs_usage"; exit 0 ;;
10093 --debug | --d* | -d )
10094 debug=: ;;
10095 --file | --fil | --fi | --f )
10096 $ac_shift
10097 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10098 ac_need_defaults=false;;
10099 --header | --heade | --head | --hea )
10100 $ac_shift
10101 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10102 ac_need_defaults=false;;
10103 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10104 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10105 ac_cs_silent=: ;;
10107 # This is an error.
10108 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10109 Try \`$0 --help' for more information." >&5
10110 echo "$as_me: error: unrecognized option: $1
10111 Try \`$0 --help' for more information." >&2;}
10112 { (exit 1); exit 1; }; } ;;
10114 *) ac_config_targets="$ac_config_targets $1" ;;
10116 esac
10117 shift
10118 done
10120 ac_configure_extra_args=
10122 if $ac_cs_silent; then
10123 exec 6>/dev/null
10124 ac_configure_extra_args="$ac_configure_extra_args --silent"
10127 _ACEOF
10128 cat >>$CONFIG_STATUS <<_ACEOF
10129 if \$ac_cs_recheck; then
10130 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10131 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10134 _ACEOF
10136 cat >>$CONFIG_STATUS <<_ACEOF
10138 # INIT-COMMANDS section.
10141 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10142 # Capture the value of obsolete $ALL_LINGUAS because we need it to compute
10143 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
10144 # from automake.
10145 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
10146 # Capture the value of LINGUAS because we need it to compute CATALOGS.
10147 LINGUAS="${LINGUAS-%UNSET%}"
10150 install_sh="$install_sh"
10152 _ACEOF
10156 cat >>$CONFIG_STATUS <<\_ACEOF
10157 for ac_config_target in $ac_config_targets
10159 case "$ac_config_target" in
10160 # Handling of arguments.
10161 "lib/stdbool.h" ) CONFIG_FILES="$CONFIG_FILES lib/stdbool.h:lib/stdbool_.h" ;;
10162 "bootstrap.sh" ) CONFIG_FILES="$CONFIG_FILES bootstrap.sh" ;;
10163 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10164 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10165 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
10166 "sed/Makefile" ) CONFIG_FILES="$CONFIG_FILES sed/Makefile" ;;
10167 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
10168 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
10169 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
10170 "lib/regex.h" ) CONFIG_LINKS="$CONFIG_LINKS lib/regex.h:lib/regex_.h" ;;
10171 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10172 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
10173 "gettext-fix" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gettext-fix" ;;
10174 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config_h.in" ;;
10175 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10176 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10177 { (exit 1); exit 1; }; };;
10178 esac
10179 done
10181 # If the user did not use the arguments to specify the items to instantiate,
10182 # then the envvar interface is used. Set only those that are not.
10183 # We use the long form for the default assignment because of an extremely
10184 # bizarre bug on SunOS 4.1.3.
10185 if $ac_need_defaults; then
10186 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10187 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10188 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
10189 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10192 # Have a temporary directory for convenience. Make it in the build tree
10193 # simply because there is no reason to put it here, and in addition,
10194 # creating and moving files from /tmp can sometimes cause problems.
10195 # Create a temporary directory, and hook for its removal unless debugging.
10196 $debug ||
10198 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10199 trap '{ (exit 1); exit 1; }' 1 2 13 15
10202 # Create a (secure) tmp directory for tmp files.
10205 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10206 test -n "$tmp" && test -d "$tmp"
10207 } ||
10209 tmp=./confstat$$-$RANDOM
10210 (umask 077 && mkdir $tmp)
10211 } ||
10213 echo "$me: cannot create a temporary directory in ." >&2
10214 { (exit 1); exit 1; }
10217 _ACEOF
10219 cat >>$CONFIG_STATUS <<_ACEOF
10222 # CONFIG_FILES section.
10225 # No need to generate the scripts if there are no CONFIG_FILES.
10226 # This happens for instance when ./config.status config.h
10227 if test -n "\$CONFIG_FILES"; then
10228 # Protect against being on the right side of a sed subst in config.status.
10229 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10230 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10231 s,@SHELL@,$SHELL,;t t
10232 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10233 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10234 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10235 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10236 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10237 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10238 s,@exec_prefix@,$exec_prefix,;t t
10239 s,@prefix@,$prefix,;t t
10240 s,@program_transform_name@,$program_transform_name,;t t
10241 s,@bindir@,$bindir,;t t
10242 s,@sbindir@,$sbindir,;t t
10243 s,@libexecdir@,$libexecdir,;t t
10244 s,@datadir@,$datadir,;t t
10245 s,@sysconfdir@,$sysconfdir,;t t
10246 s,@sharedstatedir@,$sharedstatedir,;t t
10247 s,@localstatedir@,$localstatedir,;t t
10248 s,@libdir@,$libdir,;t t
10249 s,@includedir@,$includedir,;t t
10250 s,@oldincludedir@,$oldincludedir,;t t
10251 s,@infodir@,$infodir,;t t
10252 s,@mandir@,$mandir,;t t
10253 s,@build_alias@,$build_alias,;t t
10254 s,@host_alias@,$host_alias,;t t
10255 s,@target_alias@,$target_alias,;t t
10256 s,@DEFS@,$DEFS,;t t
10257 s,@ECHO_C@,$ECHO_C,;t t
10258 s,@ECHO_N@,$ECHO_N,;t t
10259 s,@ECHO_T@,$ECHO_T,;t t
10260 s,@LIBS@,$LIBS,;t t
10261 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10262 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10263 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10264 s,@CYGPATH_W@,$CYGPATH_W,;t t
10265 s,@PACKAGE@,$PACKAGE,;t t
10266 s,@VERSION@,$VERSION,;t t
10267 s,@ACLOCAL@,$ACLOCAL,;t t
10268 s,@AUTOCONF@,$AUTOCONF,;t t
10269 s,@AUTOMAKE@,$AUTOMAKE,;t t
10270 s,@AUTOHEADER@,$AUTOHEADER,;t t
10271 s,@MAKEINFO@,$MAKEINFO,;t t
10272 s,@install_sh@,$install_sh,;t t
10273 s,@STRIP@,$STRIP,;t t
10274 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10275 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
10276 s,@mkdir_p@,$mkdir_p,;t t
10277 s,@AWK@,$AWK,;t t
10278 s,@SET_MAKE@,$SET_MAKE,;t t
10279 s,@am__leading_dot@,$am__leading_dot,;t t
10280 s,@AMTAR@,$AMTAR,;t t
10281 s,@am__tar@,$am__tar,;t t
10282 s,@am__untar@,$am__untar,;t t
10283 s,@SED_FEATURE_VERSION@,$SED_FEATURE_VERSION,;t t
10284 s,@CC@,$CC,;t t
10285 s,@CFLAGS@,$CFLAGS,;t t
10286 s,@LDFLAGS@,$LDFLAGS,;t t
10287 s,@CPPFLAGS@,$CPPFLAGS,;t t
10288 s,@ac_ct_CC@,$ac_ct_CC,;t t
10289 s,@EXEEXT@,$EXEEXT,;t t
10290 s,@OBJEXT@,$OBJEXT,;t t
10291 s,@DEPDIR@,$DEPDIR,;t t
10292 s,@am__include@,$am__include,;t t
10293 s,@am__quote@,$am__quote,;t t
10294 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
10295 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
10296 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
10297 s,@CCDEPMODE@,$CCDEPMODE,;t t
10298 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
10299 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
10300 s,@RANLIB@,$RANLIB,;t t
10301 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10302 s,@CPP@,$CPP,;t t
10303 s,@EGREP@,$EGREP,;t t
10304 s,@HAVE__BOOL@,$HAVE__BOOL,;t t
10305 s,@ALLOCA@,$ALLOCA,;t t
10306 s,@LIBOBJS@,$LIBOBJS,;t t
10307 s,@TEST_REGEX_TRUE@,$TEST_REGEX_TRUE,;t t
10308 s,@TEST_REGEX_FALSE@,$TEST_REGEX_FALSE,;t t
10309 s,@BUILD_HTML_TRUE@,$BUILD_HTML_TRUE,;t t
10310 s,@BUILD_HTML_FALSE@,$BUILD_HTML_FALSE,;t t
10311 s,@TEXI2HTML@,$TEXI2HTML,;t t
10312 s,@MAKEINFO_HTML_TRUE@,$MAKEINFO_HTML_TRUE,;t t
10313 s,@MAKEINFO_HTML_FALSE@,$MAKEINFO_HTML_FALSE,;t t
10314 s,@TEXI2HTML_HTML_TRUE@,$TEXI2HTML_HTML_TRUE,;t t
10315 s,@TEXI2HTML_HTML_FALSE@,$TEXI2HTML_HTML_FALSE,;t t
10316 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
10317 s,@MSGFMT@,$MSGFMT,;t t
10318 s,@GMSGFMT@,$GMSGFMT,;t t
10319 s,@XGETTEXT@,$XGETTEXT,;t t
10320 s,@MSGMERGE@,$MSGMERGE,;t t
10321 s,@build@,$build,;t t
10322 s,@build_cpu@,$build_cpu,;t t
10323 s,@build_vendor@,$build_vendor,;t t
10324 s,@build_os@,$build_os,;t t
10325 s,@host@,$host,;t t
10326 s,@host_cpu@,$host_cpu,;t t
10327 s,@host_vendor@,$host_vendor,;t t
10328 s,@host_os@,$host_os,;t t
10329 s,@GLIBC21@,$GLIBC21,;t t
10330 s,@LIBICONV@,$LIBICONV,;t t
10331 s,@LTLIBICONV@,$LTLIBICONV,;t t
10332 s,@INTLBISON@,$INTLBISON,;t t
10333 s,@USE_NLS@,$USE_NLS,;t t
10334 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
10335 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
10336 s,@CATOBJEXT@,$CATOBJEXT,;t t
10337 s,@INTLOBJS@,$INTLOBJS,;t t
10338 s,@DATADIRNAME@,$DATADIRNAME,;t t
10339 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
10340 s,@GENCAT@,$GENCAT,;t t
10341 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
10342 s,@INTLLIBS@,$INTLLIBS,;t t
10343 s,@LIBINTL@,$LIBINTL,;t t
10344 s,@LTLIBINTL@,$LTLIBINTL,;t t
10345 s,@POSUB@,$POSUB,;t t
10346 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10347 CEOF
10349 _ACEOF
10351 cat >>$CONFIG_STATUS <<\_ACEOF
10352 # Split the substitutions into bite-sized pieces for seds with
10353 # small command number limits, like on Digital OSF/1 and HP-UX.
10354 ac_max_sed_lines=48
10355 ac_sed_frag=1 # Number of current file.
10356 ac_beg=1 # First line for current file.
10357 ac_end=$ac_max_sed_lines # Line after last line for current file.
10358 ac_more_lines=:
10359 ac_sed_cmds=
10360 while $ac_more_lines; do
10361 if test $ac_beg -gt 1; then
10362 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10363 else
10364 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10366 if test ! -s $tmp/subs.frag; then
10367 ac_more_lines=false
10368 else
10369 # The purpose of the label and of the branching condition is to
10370 # speed up the sed processing (if there are no `@' at all, there
10371 # is no need to browse any of the substitutions).
10372 # These are the two extra sed commands mentioned above.
10373 (echo ':t
10374 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10375 if test -z "$ac_sed_cmds"; then
10376 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10377 else
10378 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10380 ac_sed_frag=`expr $ac_sed_frag + 1`
10381 ac_beg=$ac_end
10382 ac_end=`expr $ac_end + $ac_max_sed_lines`
10384 done
10385 if test -z "$ac_sed_cmds"; then
10386 ac_sed_cmds=cat
10388 fi # test -n "$CONFIG_FILES"
10390 _ACEOF
10391 cat >>$CONFIG_STATUS <<\_ACEOF
10392 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10393 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10394 case $ac_file in
10395 - | *:- | *:-:* ) # input from stdin
10396 cat >$tmp/stdin
10397 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10398 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10399 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10400 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10401 * ) ac_file_in=$ac_file.in ;;
10402 esac
10404 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10405 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10406 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10407 X"$ac_file" : 'X\(//\)[^/]' \| \
10408 X"$ac_file" : 'X\(//\)$' \| \
10409 X"$ac_file" : 'X\(/\)' \| \
10410 . : '\(.\)' 2>/dev/null ||
10411 echo X"$ac_file" |
10412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10413 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10414 /^X\(\/\/\)$/{ s//\1/; q; }
10415 /^X\(\/\).*/{ s//\1/; q; }
10416 s/.*/./; q'`
10417 { if $as_mkdir_p; then
10418 mkdir -p "$ac_dir"
10419 else
10420 as_dir="$ac_dir"
10421 as_dirs=
10422 while test ! -d "$as_dir"; do
10423 as_dirs="$as_dir $as_dirs"
10424 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10425 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10426 X"$as_dir" : 'X\(//\)[^/]' \| \
10427 X"$as_dir" : 'X\(//\)$' \| \
10428 X"$as_dir" : 'X\(/\)' \| \
10429 . : '\(.\)' 2>/dev/null ||
10430 echo X"$as_dir" |
10431 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10432 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10433 /^X\(\/\/\)$/{ s//\1/; q; }
10434 /^X\(\/\).*/{ s//\1/; q; }
10435 s/.*/./; q'`
10436 done
10437 test ! -n "$as_dirs" || mkdir $as_dirs
10438 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10439 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10440 { (exit 1); exit 1; }; }; }
10442 ac_builddir=.
10444 if test "$ac_dir" != .; then
10445 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10446 # A "../" for each directory in $ac_dir_suffix.
10447 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10448 else
10449 ac_dir_suffix= ac_top_builddir=
10452 case $srcdir in
10453 .) # No --srcdir option. We are building in place.
10454 ac_srcdir=.
10455 if test -z "$ac_top_builddir"; then
10456 ac_top_srcdir=.
10457 else
10458 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10459 fi ;;
10460 [\\/]* | ?:[\\/]* ) # Absolute path.
10461 ac_srcdir=$srcdir$ac_dir_suffix;
10462 ac_top_srcdir=$srcdir ;;
10463 *) # Relative path.
10464 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10465 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10466 esac
10468 # Do not use `cd foo && pwd` to compute absolute paths, because
10469 # the directories may not exist.
10470 case `pwd` in
10471 .) ac_abs_builddir="$ac_dir";;
10473 case "$ac_dir" in
10474 .) ac_abs_builddir=`pwd`;;
10475 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10476 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10477 esac;;
10478 esac
10479 case $ac_abs_builddir in
10480 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10482 case ${ac_top_builddir}. in
10483 .) ac_abs_top_builddir=$ac_abs_builddir;;
10484 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10485 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10486 esac;;
10487 esac
10488 case $ac_abs_builddir in
10489 .) ac_abs_srcdir=$ac_srcdir;;
10491 case $ac_srcdir in
10492 .) ac_abs_srcdir=$ac_abs_builddir;;
10493 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10494 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10495 esac;;
10496 esac
10497 case $ac_abs_builddir in
10498 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10500 case $ac_top_srcdir in
10501 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10502 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10503 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10504 esac;;
10505 esac
10508 case $INSTALL in
10509 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10510 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10511 esac
10513 if test x"$ac_file" != x-; then
10514 { echo "$as_me:$LINENO: creating $ac_file" >&5
10515 echo "$as_me: creating $ac_file" >&6;}
10516 rm -f "$ac_file"
10518 # Let's still pretend it is `configure' which instantiates (i.e., don't
10519 # use $as_me), people would be surprised to read:
10520 # /* config.h. Generated by config.status. */
10521 if test x"$ac_file" = x-; then
10522 configure_input=
10523 else
10524 configure_input="$ac_file. "
10526 configure_input=$configure_input"Generated from `echo $ac_file_in |
10527 sed 's,.*/,,'` by configure."
10529 # First look for the input files in the build tree, otherwise in the
10530 # src tree.
10531 ac_file_inputs=`IFS=:
10532 for f in $ac_file_in; do
10533 case $f in
10534 -) echo $tmp/stdin ;;
10535 [\\/$]*)
10536 # Absolute (can't be DOS-style, as IFS=:)
10537 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10538 echo "$as_me: error: cannot find input file: $f" >&2;}
10539 { (exit 1); exit 1; }; }
10540 echo "$f";;
10541 *) # Relative
10542 if test -f "$f"; then
10543 # Build tree
10544 echo "$f"
10545 elif test -f "$srcdir/$f"; then
10546 # Source tree
10547 echo "$srcdir/$f"
10548 else
10549 # /dev/null tree
10550 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10551 echo "$as_me: error: cannot find input file: $f" >&2;}
10552 { (exit 1); exit 1; }; }
10553 fi;;
10554 esac
10555 done` || { (exit 1); exit 1; }
10556 _ACEOF
10557 cat >>$CONFIG_STATUS <<_ACEOF
10558 sed "$ac_vpsub
10559 $extrasub
10560 _ACEOF
10561 cat >>$CONFIG_STATUS <<\_ACEOF
10563 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10564 s,@configure_input@,$configure_input,;t t
10565 s,@srcdir@,$ac_srcdir,;t t
10566 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10567 s,@top_srcdir@,$ac_top_srcdir,;t t
10568 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10569 s,@builddir@,$ac_builddir,;t t
10570 s,@abs_builddir@,$ac_abs_builddir,;t t
10571 s,@top_builddir@,$ac_top_builddir,;t t
10572 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10573 s,@INSTALL@,$ac_INSTALL,;t t
10574 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10575 rm -f $tmp/stdin
10576 if test x"$ac_file" != x-; then
10577 mv $tmp/out $ac_file
10578 else
10579 cat $tmp/out
10580 rm -f $tmp/out
10583 # Run the commands associated with the file.
10584 case $ac_file in
10585 bootstrap.sh ) chmod +x bootstrap.sh ;;
10586 esac
10587 done
10588 _ACEOF
10589 cat >>$CONFIG_STATUS <<\_ACEOF
10592 # CONFIG_HEADER section.
10595 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10596 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10598 # ac_d sets the value in "#define NAME VALUE" lines.
10599 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10600 ac_dB='[ ].*$,\1#\2'
10601 ac_dC=' '
10602 ac_dD=',;t'
10603 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10604 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10605 ac_uB='$,\1#\2define\3'
10606 ac_uC=' '
10607 ac_uD=',;t'
10609 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10610 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10611 case $ac_file in
10612 - | *:- | *:-:* ) # input from stdin
10613 cat >$tmp/stdin
10614 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10615 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10616 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10617 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10618 * ) ac_file_in=$ac_file.in ;;
10619 esac
10621 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10622 echo "$as_me: creating $ac_file" >&6;}
10624 # First look for the input files in the build tree, otherwise in the
10625 # src tree.
10626 ac_file_inputs=`IFS=:
10627 for f in $ac_file_in; do
10628 case $f in
10629 -) echo $tmp/stdin ;;
10630 [\\/$]*)
10631 # Absolute (can't be DOS-style, as IFS=:)
10632 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10633 echo "$as_me: error: cannot find input file: $f" >&2;}
10634 { (exit 1); exit 1; }; }
10635 # Do quote $f, to prevent DOS paths from being IFS'd.
10636 echo "$f";;
10637 *) # Relative
10638 if test -f "$f"; then
10639 # Build tree
10640 echo "$f"
10641 elif test -f "$srcdir/$f"; then
10642 # Source tree
10643 echo "$srcdir/$f"
10644 else
10645 # /dev/null tree
10646 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10647 echo "$as_me: error: cannot find input file: $f" >&2;}
10648 { (exit 1); exit 1; }; }
10649 fi;;
10650 esac
10651 done` || { (exit 1); exit 1; }
10652 # Remove the trailing spaces.
10653 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10655 _ACEOF
10657 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10658 # `conftest.undefs', that substitutes the proper values into
10659 # config.h.in to produce config.h. The first handles `#define'
10660 # templates, and the second `#undef' templates.
10661 # And first: Protect against being on the right side of a sed subst in
10662 # config.status. Protect against being in an unquoted here document
10663 # in config.status.
10664 rm -f conftest.defines conftest.undefs
10665 # Using a here document instead of a string reduces the quoting nightmare.
10666 # Putting comments in sed scripts is not portable.
10668 # `end' is used to avoid that the second main sed command (meant for
10669 # 0-ary CPP macros) applies to n-ary macro definitions.
10670 # See the Autoconf documentation for `clear'.
10671 cat >confdef2sed.sed <<\_ACEOF
10672 s/[\\&,]/\\&/g
10673 s,[\\$`],\\&,g
10674 t clear
10675 : clear
10676 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10677 t end
10678 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10679 : end
10680 _ACEOF
10681 # If some macros were called several times there might be several times
10682 # the same #defines, which is useless. Nevertheless, we may not want to
10683 # sort them, since we want the *last* AC-DEFINE to be honored.
10684 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10685 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10686 rm -f confdef2sed.sed
10688 # This sed command replaces #undef with comments. This is necessary, for
10689 # example, in the case of _POSIX_SOURCE, which is predefined and required
10690 # on some systems where configure will not decide to define it.
10691 cat >>conftest.undefs <<\_ACEOF
10692 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10693 _ACEOF
10695 # Break up conftest.defines because some shells have a limit on the size
10696 # of here documents, and old seds have small limits too (100 cmds).
10697 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10698 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10699 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10700 echo ' :' >>$CONFIG_STATUS
10701 rm -f conftest.tail
10702 while grep . conftest.defines >/dev/null
10704 # Write a limited-size here document to $tmp/defines.sed.
10705 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10706 # Speed up: don't consider the non `#define' lines.
10707 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10708 # Work around the forget-to-reset-the-flag bug.
10709 echo 't clr' >>$CONFIG_STATUS
10710 echo ': clr' >>$CONFIG_STATUS
10711 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10712 echo 'CEOF
10713 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10714 rm -f $tmp/in
10715 mv $tmp/out $tmp/in
10716 ' >>$CONFIG_STATUS
10717 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10718 rm -f conftest.defines
10719 mv conftest.tail conftest.defines
10720 done
10721 rm -f conftest.defines
10722 echo ' fi # grep' >>$CONFIG_STATUS
10723 echo >>$CONFIG_STATUS
10725 # Break up conftest.undefs because some shells have a limit on the size
10726 # of here documents, and old seds have small limits too (100 cmds).
10727 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10728 rm -f conftest.tail
10729 while grep . conftest.undefs >/dev/null
10731 # Write a limited-size here document to $tmp/undefs.sed.
10732 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10733 # Speed up: don't consider the non `#undef'
10734 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10735 # Work around the forget-to-reset-the-flag bug.
10736 echo 't clr' >>$CONFIG_STATUS
10737 echo ': clr' >>$CONFIG_STATUS
10738 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10739 echo 'CEOF
10740 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10741 rm -f $tmp/in
10742 mv $tmp/out $tmp/in
10743 ' >>$CONFIG_STATUS
10744 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10745 rm -f conftest.undefs
10746 mv conftest.tail conftest.undefs
10747 done
10748 rm -f conftest.undefs
10750 cat >>$CONFIG_STATUS <<\_ACEOF
10751 # Let's still pretend it is `configure' which instantiates (i.e., don't
10752 # use $as_me), people would be surprised to read:
10753 # /* config.h. Generated by config.status. */
10754 if test x"$ac_file" = x-; then
10755 echo "/* Generated by configure. */" >$tmp/config.h
10756 else
10757 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10759 cat $tmp/in >>$tmp/config.h
10760 rm -f $tmp/in
10761 if test x"$ac_file" != x-; then
10762 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10763 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10764 echo "$as_me: $ac_file is unchanged" >&6;}
10765 else
10766 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10767 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10768 X"$ac_file" : 'X\(//\)[^/]' \| \
10769 X"$ac_file" : 'X\(//\)$' \| \
10770 X"$ac_file" : 'X\(/\)' \| \
10771 . : '\(.\)' 2>/dev/null ||
10772 echo X"$ac_file" |
10773 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10774 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10775 /^X\(\/\/\)$/{ s//\1/; q; }
10776 /^X\(\/\).*/{ s//\1/; q; }
10777 s/.*/./; q'`
10778 { if $as_mkdir_p; then
10779 mkdir -p "$ac_dir"
10780 else
10781 as_dir="$ac_dir"
10782 as_dirs=
10783 while test ! -d "$as_dir"; do
10784 as_dirs="$as_dir $as_dirs"
10785 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10786 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10787 X"$as_dir" : 'X\(//\)[^/]' \| \
10788 X"$as_dir" : 'X\(//\)$' \| \
10789 X"$as_dir" : 'X\(/\)' \| \
10790 . : '\(.\)' 2>/dev/null ||
10791 echo X"$as_dir" |
10792 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10793 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10794 /^X\(\/\/\)$/{ s//\1/; q; }
10795 /^X\(\/\).*/{ s//\1/; q; }
10796 s/.*/./; q'`
10797 done
10798 test ! -n "$as_dirs" || mkdir $as_dirs
10799 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10800 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10801 { (exit 1); exit 1; }; }; }
10803 rm -f $ac_file
10804 mv $tmp/config.h $ac_file
10806 else
10807 cat $tmp/config.h
10808 rm -f $tmp/config.h
10810 # Compute $ac_file's index in $config_headers.
10811 _am_stamp_count=1
10812 for _am_header in $config_headers :; do
10813 case $_am_header in
10814 $ac_file | $ac_file:* )
10815 break ;;
10817 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10818 esac
10819 done
10820 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
10821 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10822 X$ac_file : 'X\(//\)[^/]' \| \
10823 X$ac_file : 'X\(//\)$' \| \
10824 X$ac_file : 'X\(/\)' \| \
10825 . : '\(.\)' 2>/dev/null ||
10826 echo X$ac_file |
10827 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10828 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10829 /^X\(\/\/\)$/{ s//\1/; q; }
10830 /^X\(\/\).*/{ s//\1/; q; }
10831 s/.*/./; q'`/stamp-h$_am_stamp_count
10832 done
10833 _ACEOF
10834 cat >>$CONFIG_STATUS <<\_ACEOF
10837 # CONFIG_LINKS section.
10840 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
10841 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10842 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10844 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
10845 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
10847 if test ! -r $srcdir/$ac_source; then
10848 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
10849 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
10850 { (exit 1); exit 1; }; }
10852 rm -f $ac_dest
10854 # Make relative symlinks.
10855 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
10856 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10857 X"$ac_dest" : 'X\(//\)[^/]' \| \
10858 X"$ac_dest" : 'X\(//\)$' \| \
10859 X"$ac_dest" : 'X\(/\)' \| \
10860 . : '\(.\)' 2>/dev/null ||
10861 echo X"$ac_dest" |
10862 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10863 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10864 /^X\(\/\/\)$/{ s//\1/; q; }
10865 /^X\(\/\).*/{ s//\1/; q; }
10866 s/.*/./; q'`
10867 { if $as_mkdir_p; then
10868 mkdir -p "$ac_dest_dir"
10869 else
10870 as_dir="$ac_dest_dir"
10871 as_dirs=
10872 while test ! -d "$as_dir"; do
10873 as_dirs="$as_dir $as_dirs"
10874 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10875 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10876 X"$as_dir" : 'X\(//\)[^/]' \| \
10877 X"$as_dir" : 'X\(//\)$' \| \
10878 X"$as_dir" : 'X\(/\)' \| \
10879 . : '\(.\)' 2>/dev/null ||
10880 echo X"$as_dir" |
10881 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10882 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10883 /^X\(\/\/\)$/{ s//\1/; q; }
10884 /^X\(\/\).*/{ s//\1/; q; }
10885 s/.*/./; q'`
10886 done
10887 test ! -n "$as_dirs" || mkdir $as_dirs
10888 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
10889 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
10890 { (exit 1); exit 1; }; }; }
10892 ac_builddir=.
10894 if test "$ac_dest_dir" != .; then
10895 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
10896 # A "../" for each directory in $ac_dir_suffix.
10897 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10898 else
10899 ac_dir_suffix= ac_top_builddir=
10902 case $srcdir in
10903 .) # No --srcdir option. We are building in place.
10904 ac_srcdir=.
10905 if test -z "$ac_top_builddir"; then
10906 ac_top_srcdir=.
10907 else
10908 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10909 fi ;;
10910 [\\/]* | ?:[\\/]* ) # Absolute path.
10911 ac_srcdir=$srcdir$ac_dir_suffix;
10912 ac_top_srcdir=$srcdir ;;
10913 *) # Relative path.
10914 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10915 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10916 esac
10918 # Do not use `cd foo && pwd` to compute absolute paths, because
10919 # the directories may not exist.
10920 case `pwd` in
10921 .) ac_abs_builddir="$ac_dest_dir";;
10923 case "$ac_dest_dir" in
10924 .) ac_abs_builddir=`pwd`;;
10925 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
10926 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
10927 esac;;
10928 esac
10929 case $ac_abs_builddir in
10930 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10932 case ${ac_top_builddir}. in
10933 .) ac_abs_top_builddir=$ac_abs_builddir;;
10934 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10935 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10936 esac;;
10937 esac
10938 case $ac_abs_builddir in
10939 .) ac_abs_srcdir=$ac_srcdir;;
10941 case $ac_srcdir in
10942 .) ac_abs_srcdir=$ac_abs_builddir;;
10943 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10944 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10945 esac;;
10946 esac
10947 case $ac_abs_builddir in
10948 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10950 case $ac_top_srcdir in
10951 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10952 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10953 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10954 esac;;
10955 esac
10958 case $srcdir in
10959 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
10960 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
10961 esac
10963 # Try a symlink, then a hard link, then a copy.
10964 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
10965 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
10966 cp -p $srcdir/$ac_source $ac_dest ||
10967 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
10968 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
10969 { (exit 1); exit 1; }; }
10970 done
10971 _ACEOF
10972 cat >>$CONFIG_STATUS <<\_ACEOF
10975 # CONFIG_COMMANDS section.
10977 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10978 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10979 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10980 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10981 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10982 X"$ac_dest" : 'X\(//\)[^/]' \| \
10983 X"$ac_dest" : 'X\(//\)$' \| \
10984 X"$ac_dest" : 'X\(/\)' \| \
10985 . : '\(.\)' 2>/dev/null ||
10986 echo X"$ac_dest" |
10987 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10988 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10989 /^X\(\/\/\)$/{ s//\1/; q; }
10990 /^X\(\/\).*/{ s//\1/; q; }
10991 s/.*/./; q'`
10992 { if $as_mkdir_p; then
10993 mkdir -p "$ac_dir"
10994 else
10995 as_dir="$ac_dir"
10996 as_dirs=
10997 while test ! -d "$as_dir"; do
10998 as_dirs="$as_dir $as_dirs"
10999 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11000 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11001 X"$as_dir" : 'X\(//\)[^/]' \| \
11002 X"$as_dir" : 'X\(//\)$' \| \
11003 X"$as_dir" : 'X\(/\)' \| \
11004 . : '\(.\)' 2>/dev/null ||
11005 echo X"$as_dir" |
11006 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11007 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11008 /^X\(\/\/\)$/{ s//\1/; q; }
11009 /^X\(\/\).*/{ s//\1/; q; }
11010 s/.*/./; q'`
11011 done
11012 test ! -n "$as_dirs" || mkdir $as_dirs
11013 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11014 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11015 { (exit 1); exit 1; }; }; }
11017 ac_builddir=.
11019 if test "$ac_dir" != .; then
11020 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11021 # A "../" for each directory in $ac_dir_suffix.
11022 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11023 else
11024 ac_dir_suffix= ac_top_builddir=
11027 case $srcdir in
11028 .) # No --srcdir option. We are building in place.
11029 ac_srcdir=.
11030 if test -z "$ac_top_builddir"; then
11031 ac_top_srcdir=.
11032 else
11033 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11034 fi ;;
11035 [\\/]* | ?:[\\/]* ) # Absolute path.
11036 ac_srcdir=$srcdir$ac_dir_suffix;
11037 ac_top_srcdir=$srcdir ;;
11038 *) # Relative path.
11039 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11040 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11041 esac
11043 # Do not use `cd foo && pwd` to compute absolute paths, because
11044 # the directories may not exist.
11045 case `pwd` in
11046 .) ac_abs_builddir="$ac_dir";;
11048 case "$ac_dir" in
11049 .) ac_abs_builddir=`pwd`;;
11050 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11051 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11052 esac;;
11053 esac
11054 case $ac_abs_builddir in
11055 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11057 case ${ac_top_builddir}. in
11058 .) ac_abs_top_builddir=$ac_abs_builddir;;
11059 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11060 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11061 esac;;
11062 esac
11063 case $ac_abs_builddir in
11064 .) ac_abs_srcdir=$ac_srcdir;;
11066 case $ac_srcdir in
11067 .) ac_abs_srcdir=$ac_abs_builddir;;
11068 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11069 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11070 esac;;
11071 esac
11072 case $ac_abs_builddir in
11073 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11075 case $ac_top_srcdir in
11076 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11077 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11078 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11079 esac;;
11080 esac
11083 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11084 echo "$as_me: executing $ac_dest commands" >&6;}
11085 case $ac_dest in
11086 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11087 # Strip MF so we end up with the name of the file.
11088 mf=`echo "$mf" | sed -e 's/:.*$//'`
11089 # Check whether this is an Automake generated Makefile or not.
11090 # We used to match only the files named `Makefile.in', but
11091 # some people rename them; so instead we look at the file content.
11092 # Grep'ing the first line is not enough: some people post-process
11093 # each Makefile.in and add a new line on top of each file to say so.
11094 # So let's grep whole file.
11095 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11096 dirpart=`(dirname "$mf") 2>/dev/null ||
11097 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11098 X"$mf" : 'X\(//\)[^/]' \| \
11099 X"$mf" : 'X\(//\)$' \| \
11100 X"$mf" : 'X\(/\)' \| \
11101 . : '\(.\)' 2>/dev/null ||
11102 echo X"$mf" |
11103 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11104 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11105 /^X\(\/\/\)$/{ s//\1/; q; }
11106 /^X\(\/\).*/{ s//\1/; q; }
11107 s/.*/./; q'`
11108 else
11109 continue
11111 # Extract the definition of DEPDIR, am__include, and am__quote
11112 # from the Makefile without running `make'.
11113 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11114 test -z "$DEPDIR" && continue
11115 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11116 test -z "am__include" && continue
11117 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11118 # When using ansi2knr, U may be empty or an underscore; expand it
11119 U=`sed -n 's/^U = //p' < "$mf"`
11120 # Find all dependency output files, they are included files with
11121 # $(DEPDIR) in their names. We invoke sed twice because it is the
11122 # simplest approach to changing $(DEPDIR) to its actual value in the
11123 # expansion.
11124 for file in `sed -n "
11125 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11126 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11127 # Make sure the directory exists.
11128 test -f "$dirpart/$file" && continue
11129 fdir=`(dirname "$file") 2>/dev/null ||
11130 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11131 X"$file" : 'X\(//\)[^/]' \| \
11132 X"$file" : 'X\(//\)$' \| \
11133 X"$file" : 'X\(/\)' \| \
11134 . : '\(.\)' 2>/dev/null ||
11135 echo X"$file" |
11136 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11137 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11138 /^X\(\/\/\)$/{ s//\1/; q; }
11139 /^X\(\/\).*/{ s//\1/; q; }
11140 s/.*/./; q'`
11141 { if $as_mkdir_p; then
11142 mkdir -p $dirpart/$fdir
11143 else
11144 as_dir=$dirpart/$fdir
11145 as_dirs=
11146 while test ! -d "$as_dir"; do
11147 as_dirs="$as_dir $as_dirs"
11148 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11149 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11150 X"$as_dir" : 'X\(//\)[^/]' \| \
11151 X"$as_dir" : 'X\(//\)$' \| \
11152 X"$as_dir" : 'X\(/\)' \| \
11153 . : '\(.\)' 2>/dev/null ||
11154 echo X"$as_dir" |
11155 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11156 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11157 /^X\(\/\/\)$/{ s//\1/; q; }
11158 /^X\(\/\).*/{ s//\1/; q; }
11159 s/.*/./; q'`
11160 done
11161 test ! -n "$as_dirs" || mkdir $as_dirs
11162 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
11163 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
11164 { (exit 1); exit 1; }; }; }
11166 # echo "creating $dirpart/$file"
11167 echo '# dummy' > "$dirpart/$file"
11168 done
11169 done
11171 default-1 )
11172 for ac_file in $CONFIG_FILES; do
11173 # Support "outfile[:infile[:infile...]]"
11174 case "$ac_file" in
11175 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11176 esac
11177 # PO directories have a Makefile.in generated from Makefile.in.in.
11178 case "$ac_file" in */Makefile.in)
11179 # Adjust a relative srcdir.
11180 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
11181 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
11182 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
11183 # In autoconf-2.13 it is called $ac_given_srcdir.
11184 # In autoconf-2.50 it is called $srcdir.
11185 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
11186 case "$ac_given_srcdir" in
11187 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
11188 /*) top_srcdir="$ac_given_srcdir" ;;
11189 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
11190 esac
11191 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
11192 rm -f "$ac_dir/POTFILES"
11193 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
11194 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
11195 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
11196 # on $ac_dir but don't depend on user-specified configuration
11197 # parameters.
11198 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
11199 # The LINGUAS file contains the set of available languages.
11200 if test -n "$ALL_LINGUAS"; then
11201 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
11203 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
11204 # Hide the ALL_LINGUAS assigment from automake.
11205 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
11207 case "$ac_given_srcdir" in
11208 .) srcdirpre= ;;
11209 *) srcdirpre='$(srcdir)/' ;;
11210 esac
11211 POFILES=
11212 GMOFILES=
11213 UPDATEPOFILES=
11214 DUMMYPOFILES=
11215 for lang in $ALL_LINGUAS; do
11216 POFILES="$POFILES $srcdirpre$lang.po"
11217 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
11218 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
11219 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
11220 done
11221 # CATALOGS depends on both $ac_dir and the user's LINGUAS
11222 # environment variable.
11223 INST_LINGUAS=
11224 if test -n "$ALL_LINGUAS"; then
11225 for presentlang in $ALL_LINGUAS; do
11226 useit=no
11227 if test "%UNSET%" != "$LINGUAS"; then
11228 desiredlanguages="$LINGUAS"
11229 else
11230 desiredlanguages="$ALL_LINGUAS"
11232 for desiredlang in $desiredlanguages; do
11233 # Use the presentlang catalog if desiredlang is
11234 # a. equal to presentlang, or
11235 # b. a variant of presentlang (because in this case,
11236 # presentlang can be used as a fallback for messages
11237 # which are not translated in the desiredlang catalog).
11238 case "$desiredlang" in
11239 "$presentlang"*) useit=yes;;
11240 esac
11241 done
11242 if test $useit = yes; then
11243 INST_LINGUAS="$INST_LINGUAS $presentlang"
11245 done
11247 CATALOGS=
11248 if test -n "$INST_LINGUAS"; then
11249 for lang in $INST_LINGUAS; do
11250 CATALOGS="$CATALOGS $lang.gmo"
11251 done
11253 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
11254 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" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
11255 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
11256 if test -f "$f"; then
11257 case "$f" in
11258 *.orig | *.bak | *~) ;;
11259 *) cat "$f" >> "$ac_dir/Makefile" ;;
11260 esac
11262 done
11265 esac
11266 done ;;
11267 gettext-fix )
11268 sed -e '/^mkinstalldirs *=/a\' \
11269 -e "install_sh=$install_sh" \
11270 -e 's/^mkinstalldirs *=.*/mkinstalldirs=$(MKINSTALLDIRS)/' \
11271 intl/Makefile > intl/Makefile.tmp
11272 mv intl/Makefile.tmp intl/Makefile
11273 sed -e '/^mkinstalldirs *=/a\' \
11274 -e "install_sh=$install_sh" \
11275 -e 's/^mkinstalldirs *=.*/mkinstalldirs=$(MKINSTALLDIRS)/' \
11276 po/Makefile > po/Makefile.tmp
11277 mv po/Makefile.tmp po/Makefile ;;
11278 esac
11279 done
11280 _ACEOF
11282 cat >>$CONFIG_STATUS <<\_ACEOF
11284 { (exit 0); exit 0; }
11285 _ACEOF
11286 chmod +x $CONFIG_STATUS
11287 ac_clean_files=$ac_clean_files_save
11290 # configure is writing to config.log, and then calls config.status.
11291 # config.status does its own redirection, appending to config.log.
11292 # Unfortunately, on DOS this fails, as config.log is still kept open
11293 # by configure, so config.status won't be able to write to it; its
11294 # output is simply discarded. So we exec the FD to /dev/null,
11295 # effectively closing config.log, so it can be properly (re)opened and
11296 # appended to by config.status. When coming back to configure, we
11297 # need to make the FD available again.
11298 if test "$no_create" != yes; then
11299 ac_cs_success=:
11300 ac_config_status_args=
11301 test "$silent" = yes &&
11302 ac_config_status_args="$ac_config_status_args --quiet"
11303 exec 5>/dev/null
11304 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11305 exec 5>>config.log
11306 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11307 # would make configure fail if this is the last instruction.
11308 $ac_cs_success || { (exit 1); exit 1; }