* src/m4.c (main): Modernise the --version output.
[m4.git] / configure
blobb8a017588a413c8daea1bcd977cd3f69fc172c73
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for GNU M4 1.4.2a.
5 # Report bugs to <bug-m4@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='GNU M4'
271 PACKAGE_TARNAME='m4'
272 PACKAGE_VERSION='1.4.2a'
273 PACKAGE_STRING='GNU M4 1.4.2a'
274 PACKAGE_BUGREPORT='bug-m4@gnu.org'
276 ac_unique_file="src/m4.h"
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 PACKAGE VERSION AWK CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA SET_MAKE RANLIB ac_ct_RANLIB CPP EGREP U ANSI2KNR ALLOCA LIBOBJS STACKOVF 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 GNU M4 1.4.2a 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
840 _ACEOF
843 if test -n "$ac_init_help"; then
844 case $ac_init_help in
845 short | recursive ) echo "Configuration of GNU M4 1.4.2a:";;
846 esac
847 cat <<\_ACEOF
849 Optional Features:
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --enable-changeword enable -W and changeword() builtin
854 Optional Packages:
855 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
856 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
857 --with-dmalloc use dmalloc, as in dmalloc.tar.gz from
858 @/ftp.antaire.com:antaire/src/dmalloc.
860 Some influential environment variables:
861 CC C compiler command
862 CFLAGS C compiler flags
863 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
864 nonstandard directory <lib dir>
865 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
866 headers in a nonstandard directory <include dir>
867 CPP C preprocessor
869 Use these variables to override the choices made by `configure' or to help
870 it to find libraries and programs with nonstandard names/locations.
872 Report bugs to <bug-m4@gnu.org>.
873 _ACEOF
876 if test "$ac_init_help" = "recursive"; then
877 # If there are subdirs, report their specific --help.
878 ac_popdir=`pwd`
879 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
880 test -d $ac_dir || continue
881 ac_builddir=.
883 if test "$ac_dir" != .; then
884 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
885 # A "../" for each directory in $ac_dir_suffix.
886 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
887 else
888 ac_dir_suffix= ac_top_builddir=
891 case $srcdir in
892 .) # No --srcdir option. We are building in place.
893 ac_srcdir=.
894 if test -z "$ac_top_builddir"; then
895 ac_top_srcdir=.
896 else
897 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
898 fi ;;
899 [\\/]* | ?:[\\/]* ) # Absolute path.
900 ac_srcdir=$srcdir$ac_dir_suffix;
901 ac_top_srcdir=$srcdir ;;
902 *) # Relative path.
903 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
904 ac_top_srcdir=$ac_top_builddir$srcdir ;;
905 esac
907 # Do not use `cd foo && pwd` to compute absolute paths, because
908 # the directories may not exist.
909 case `pwd` in
910 .) ac_abs_builddir="$ac_dir";;
912 case "$ac_dir" in
913 .) ac_abs_builddir=`pwd`;;
914 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
915 *) ac_abs_builddir=`pwd`/"$ac_dir";;
916 esac;;
917 esac
918 case $ac_abs_builddir in
919 .) ac_abs_top_builddir=${ac_top_builddir}.;;
921 case ${ac_top_builddir}. in
922 .) ac_abs_top_builddir=$ac_abs_builddir;;
923 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
924 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
925 esac;;
926 esac
927 case $ac_abs_builddir in
928 .) ac_abs_srcdir=$ac_srcdir;;
930 case $ac_srcdir in
931 .) ac_abs_srcdir=$ac_abs_builddir;;
932 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
933 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
934 esac;;
935 esac
936 case $ac_abs_builddir in
937 .) ac_abs_top_srcdir=$ac_top_srcdir;;
939 case $ac_top_srcdir in
940 .) ac_abs_top_srcdir=$ac_abs_builddir;;
941 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
942 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
943 esac;;
944 esac
946 cd $ac_dir
947 # Check for guested configure; otherwise get Cygnus style configure.
948 if test -f $ac_srcdir/configure.gnu; then
949 echo
950 $SHELL $ac_srcdir/configure.gnu --help=recursive
951 elif test -f $ac_srcdir/configure; then
952 echo
953 $SHELL $ac_srcdir/configure --help=recursive
954 elif test -f $ac_srcdir/configure.ac ||
955 test -f $ac_srcdir/configure.in; then
956 echo
957 $ac_configure --help
958 else
959 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
961 cd $ac_popdir
962 done
965 test -n "$ac_init_help" && exit 0
966 if $ac_init_version; then
967 cat <<\_ACEOF
968 GNU M4 configure 1.4.2a
969 generated by GNU Autoconf 2.59
971 Copyright (C) 2003 Free Software Foundation, Inc.
972 This configure script is free software; the Free Software Foundation
973 gives unlimited permission to copy, distribute and modify it.
974 _ACEOF
975 exit 0
977 exec 5>config.log
978 cat >&5 <<_ACEOF
979 This file contains any messages produced by compilers while
980 running configure, to aid debugging if configure makes a mistake.
982 It was created by GNU M4 $as_me 1.4.2a, which was
983 generated by GNU Autoconf 2.59. Invocation command line was
985 $ $0 $@
987 _ACEOF
989 cat <<_ASUNAME
990 ## --------- ##
991 ## Platform. ##
992 ## --------- ##
994 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
995 uname -m = `(uname -m) 2>/dev/null || echo unknown`
996 uname -r = `(uname -r) 2>/dev/null || echo unknown`
997 uname -s = `(uname -s) 2>/dev/null || echo unknown`
998 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1000 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1001 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1003 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1004 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1005 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1006 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1007 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1008 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1009 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1011 _ASUNAME
1013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1014 for as_dir in $PATH
1016 IFS=$as_save_IFS
1017 test -z "$as_dir" && as_dir=.
1018 echo "PATH: $as_dir"
1019 done
1021 } >&5
1023 cat >&5 <<_ACEOF
1026 ## ----------- ##
1027 ## Core tests. ##
1028 ## ----------- ##
1030 _ACEOF
1033 # Keep a trace of the command line.
1034 # Strip out --no-create and --no-recursion so they do not pile up.
1035 # Strip out --silent because we don't want to record it for future runs.
1036 # Also quote any args containing shell meta-characters.
1037 # Make two passes to allow for proper duplicate-argument suppression.
1038 ac_configure_args=
1039 ac_configure_args0=
1040 ac_configure_args1=
1041 ac_sep=
1042 ac_must_keep_next=false
1043 for ac_pass in 1 2
1045 for ac_arg
1047 case $ac_arg in
1048 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1049 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1050 | -silent | --silent | --silen | --sile | --sil)
1051 continue ;;
1052 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1053 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1054 esac
1055 case $ac_pass in
1056 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1058 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1059 if test $ac_must_keep_next = true; then
1060 ac_must_keep_next=false # Got value, back to normal.
1061 else
1062 case $ac_arg in
1063 *=* | --config-cache | -C | -disable-* | --disable-* \
1064 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1065 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1066 | -with-* | --with-* | -without-* | --without-* | --x)
1067 case "$ac_configure_args0 " in
1068 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1069 esac
1071 -* ) ac_must_keep_next=true ;;
1072 esac
1074 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1075 # Get rid of the leading space.
1076 ac_sep=" "
1078 esac
1079 done
1080 done
1081 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1082 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1084 # When interrupted or exit'd, cleanup temporary files, and complete
1085 # config.log. We remove comments because anyway the quotes in there
1086 # would cause problems or look ugly.
1087 # WARNING: Be sure not to use single quotes in there, as some shells,
1088 # such as our DU 5.0 friend, will then `close' the trap.
1089 trap 'exit_status=$?
1090 # Save into config.log some information that might help in debugging.
1092 echo
1094 cat <<\_ASBOX
1095 ## ---------------- ##
1096 ## Cache variables. ##
1097 ## ---------------- ##
1098 _ASBOX
1099 echo
1100 # The following way of writing the cache mishandles newlines in values,
1102 (set) 2>&1 |
1103 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1104 *ac_space=\ *)
1105 sed -n \
1106 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1107 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1110 sed -n \
1111 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1113 esac;
1115 echo
1117 cat <<\_ASBOX
1118 ## ----------------- ##
1119 ## Output variables. ##
1120 ## ----------------- ##
1121 _ASBOX
1122 echo
1123 for ac_var in $ac_subst_vars
1125 eval ac_val=$`echo $ac_var`
1126 echo "$ac_var='"'"'$ac_val'"'"'"
1127 done | sort
1128 echo
1130 if test -n "$ac_subst_files"; then
1131 cat <<\_ASBOX
1132 ## ------------- ##
1133 ## Output files. ##
1134 ## ------------- ##
1135 _ASBOX
1136 echo
1137 for ac_var in $ac_subst_files
1139 eval ac_val=$`echo $ac_var`
1140 echo "$ac_var='"'"'$ac_val'"'"'"
1141 done | sort
1142 echo
1145 if test -s confdefs.h; then
1146 cat <<\_ASBOX
1147 ## ----------- ##
1148 ## confdefs.h. ##
1149 ## ----------- ##
1150 _ASBOX
1151 echo
1152 sed "/^$/d" confdefs.h | sort
1153 echo
1155 test "$ac_signal" != 0 &&
1156 echo "$as_me: caught signal $ac_signal"
1157 echo "$as_me: exit $exit_status"
1158 } >&5
1159 rm -f core *.core &&
1160 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1161 exit $exit_status
1163 for ac_signal in 1 2 13 15; do
1164 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1165 done
1166 ac_signal=0
1168 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1169 rm -rf conftest* confdefs.h
1170 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1171 echo >confdefs.h
1173 # Predefined preprocessor variables.
1175 cat >>confdefs.h <<_ACEOF
1176 #define PACKAGE_NAME "$PACKAGE_NAME"
1177 _ACEOF
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1182 _ACEOF
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1187 _ACEOF
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_STRING "$PACKAGE_STRING"
1192 _ACEOF
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1197 _ACEOF
1200 # Let the site file select an alternate cache file if it wants to.
1201 # Prefer explicitly selected file to automatically selected ones.
1202 if test -z "$CONFIG_SITE"; then
1203 if test "x$prefix" != xNONE; then
1204 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1205 else
1206 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1209 for ac_site_file in $CONFIG_SITE; do
1210 if test -r "$ac_site_file"; then
1211 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1212 echo "$as_me: loading site script $ac_site_file" >&6;}
1213 sed 's/^/| /' "$ac_site_file" >&5
1214 . "$ac_site_file"
1216 done
1218 if test -r "$cache_file"; then
1219 # Some versions of bash will fail to source /dev/null (special
1220 # files actually), so we avoid doing that.
1221 if test -f "$cache_file"; then
1222 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1223 echo "$as_me: loading cache $cache_file" >&6;}
1224 case $cache_file in
1225 [\\/]* | ?:[\\/]* ) . $cache_file;;
1226 *) . ./$cache_file;;
1227 esac
1229 else
1230 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1231 echo "$as_me: creating cache $cache_file" >&6;}
1232 >$cache_file
1235 # Check that the precious variables saved in the cache have kept the same
1236 # value.
1237 ac_cache_corrupted=false
1238 for ac_var in `(set) 2>&1 |
1239 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1240 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1241 eval ac_new_set=\$ac_env_${ac_var}_set
1242 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1243 eval ac_new_val="\$ac_env_${ac_var}_value"
1244 case $ac_old_set,$ac_new_set in
1245 set,)
1246 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1247 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1248 ac_cache_corrupted=: ;;
1249 ,set)
1250 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1251 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1252 ac_cache_corrupted=: ;;
1253 ,);;
1255 if test "x$ac_old_val" != "x$ac_new_val"; then
1256 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1257 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1258 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1259 echo "$as_me: former value: $ac_old_val" >&2;}
1260 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1261 echo "$as_me: current value: $ac_new_val" >&2;}
1262 ac_cache_corrupted=:
1263 fi;;
1264 esac
1265 # Pass precious variables to config.status.
1266 if test "$ac_new_set" = set; then
1267 case $ac_new_val in
1268 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1269 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1270 *) ac_arg=$ac_var=$ac_new_val ;;
1271 esac
1272 case " $ac_configure_args " in
1273 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1274 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1275 esac
1277 done
1278 if $ac_cache_corrupted; then
1279 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1280 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1281 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1282 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1283 { (exit 1); exit 1; }; }
1286 ac_ext=c
1287 ac_cpp='$CPP $CPPFLAGS'
1288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1318 PACKAGE=$PACKAGE_TARNAME;
1319 VERSION=$PACKAGE_VERSION;
1322 ac_config_headers="$ac_config_headers config.h:config-h.in"
1324 test "$program_prefix" != NONE &&
1325 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1326 # Use a double $ so make ignores it.
1327 test "$program_suffix" != NONE &&
1328 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1329 # Double any \ or $. echo might interpret backslashes.
1330 # By default was `s,x,x', remove it if useless.
1331 cat <<\_ACEOF >conftest.sed
1332 s/[\\$]/&&/g;s/;s,x,x,$//
1333 _ACEOF
1334 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1335 rm conftest.sed
1338 for ac_prog in gawk mawk nawk awk
1340 # Extract the first word of "$ac_prog", so it can be a program name with args.
1341 set dummy $ac_prog; ac_word=$2
1342 echo "$as_me:$LINENO: checking for $ac_word" >&5
1343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1344 if test "${ac_cv_prog_AWK+set}" = set; then
1345 echo $ECHO_N "(cached) $ECHO_C" >&6
1346 else
1347 if test -n "$AWK"; then
1348 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1349 else
1350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1351 for as_dir in $PATH
1353 IFS=$as_save_IFS
1354 test -z "$as_dir" && as_dir=.
1355 for ac_exec_ext in '' $ac_executable_extensions; do
1356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1357 ac_cv_prog_AWK="$ac_prog"
1358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1359 break 2
1361 done
1362 done
1366 AWK=$ac_cv_prog_AWK
1367 if test -n "$AWK"; then
1368 echo "$as_me:$LINENO: result: $AWK" >&5
1369 echo "${ECHO_T}$AWK" >&6
1370 else
1371 echo "$as_me:$LINENO: result: no" >&5
1372 echo "${ECHO_T}no" >&6
1375 test -n "$AWK" && break
1376 done
1378 ac_ext=c
1379 ac_cpp='$CPP $CPPFLAGS'
1380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1383 if test -n "$ac_tool_prefix"; then
1384 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1385 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1386 echo "$as_me:$LINENO: checking for $ac_word" >&5
1387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1388 if test "${ac_cv_prog_CC+set}" = set; then
1389 echo $ECHO_N "(cached) $ECHO_C" >&6
1390 else
1391 if test -n "$CC"; then
1392 ac_cv_prog_CC="$CC" # Let the user override the test.
1393 else
1394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1395 for as_dir in $PATH
1397 IFS=$as_save_IFS
1398 test -z "$as_dir" && as_dir=.
1399 for ac_exec_ext in '' $ac_executable_extensions; do
1400 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1401 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1403 break 2
1405 done
1406 done
1410 CC=$ac_cv_prog_CC
1411 if test -n "$CC"; then
1412 echo "$as_me:$LINENO: result: $CC" >&5
1413 echo "${ECHO_T}$CC" >&6
1414 else
1415 echo "$as_me:$LINENO: result: no" >&5
1416 echo "${ECHO_T}no" >&6
1420 if test -z "$ac_cv_prog_CC"; then
1421 ac_ct_CC=$CC
1422 # Extract the first word of "gcc", so it can be a program name with args.
1423 set dummy gcc; ac_word=$2
1424 echo "$as_me:$LINENO: checking for $ac_word" >&5
1425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1426 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1427 echo $ECHO_N "(cached) $ECHO_C" >&6
1428 else
1429 if test -n "$ac_ct_CC"; then
1430 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1431 else
1432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1433 for as_dir in $PATH
1435 IFS=$as_save_IFS
1436 test -z "$as_dir" && as_dir=.
1437 for ac_exec_ext in '' $ac_executable_extensions; do
1438 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1439 ac_cv_prog_ac_ct_CC="gcc"
1440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1441 break 2
1443 done
1444 done
1448 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1449 if test -n "$ac_ct_CC"; then
1450 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1451 echo "${ECHO_T}$ac_ct_CC" >&6
1452 else
1453 echo "$as_me:$LINENO: result: no" >&5
1454 echo "${ECHO_T}no" >&6
1457 CC=$ac_ct_CC
1458 else
1459 CC="$ac_cv_prog_CC"
1462 if test -z "$CC"; then
1463 if test -n "$ac_tool_prefix"; then
1464 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1465 set dummy ${ac_tool_prefix}cc; ac_word=$2
1466 echo "$as_me:$LINENO: checking for $ac_word" >&5
1467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1468 if test "${ac_cv_prog_CC+set}" = set; then
1469 echo $ECHO_N "(cached) $ECHO_C" >&6
1470 else
1471 if test -n "$CC"; then
1472 ac_cv_prog_CC="$CC" # Let the user override the test.
1473 else
1474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1475 for as_dir in $PATH
1477 IFS=$as_save_IFS
1478 test -z "$as_dir" && as_dir=.
1479 for ac_exec_ext in '' $ac_executable_extensions; do
1480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1481 ac_cv_prog_CC="${ac_tool_prefix}cc"
1482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1483 break 2
1485 done
1486 done
1490 CC=$ac_cv_prog_CC
1491 if test -n "$CC"; then
1492 echo "$as_me:$LINENO: result: $CC" >&5
1493 echo "${ECHO_T}$CC" >&6
1494 else
1495 echo "$as_me:$LINENO: result: no" >&5
1496 echo "${ECHO_T}no" >&6
1500 if test -z "$ac_cv_prog_CC"; then
1501 ac_ct_CC=$CC
1502 # Extract the first word of "cc", so it can be a program name with args.
1503 set dummy cc; ac_word=$2
1504 echo "$as_me:$LINENO: checking for $ac_word" >&5
1505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1506 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1507 echo $ECHO_N "(cached) $ECHO_C" >&6
1508 else
1509 if test -n "$ac_ct_CC"; then
1510 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1511 else
1512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1513 for as_dir in $PATH
1515 IFS=$as_save_IFS
1516 test -z "$as_dir" && as_dir=.
1517 for ac_exec_ext in '' $ac_executable_extensions; do
1518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1519 ac_cv_prog_ac_ct_CC="cc"
1520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1521 break 2
1523 done
1524 done
1528 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1529 if test -n "$ac_ct_CC"; then
1530 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1531 echo "${ECHO_T}$ac_ct_CC" >&6
1532 else
1533 echo "$as_me:$LINENO: result: no" >&5
1534 echo "${ECHO_T}no" >&6
1537 CC=$ac_ct_CC
1538 else
1539 CC="$ac_cv_prog_CC"
1543 if test -z "$CC"; then
1544 # Extract the first word of "cc", so it can be a program name with args.
1545 set dummy cc; ac_word=$2
1546 echo "$as_me:$LINENO: checking for $ac_word" >&5
1547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1548 if test "${ac_cv_prog_CC+set}" = set; then
1549 echo $ECHO_N "(cached) $ECHO_C" >&6
1550 else
1551 if test -n "$CC"; then
1552 ac_cv_prog_CC="$CC" # Let the user override the test.
1553 else
1554 ac_prog_rejected=no
1555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1556 for as_dir in $PATH
1558 IFS=$as_save_IFS
1559 test -z "$as_dir" && as_dir=.
1560 for ac_exec_ext in '' $ac_executable_extensions; do
1561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1562 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1563 ac_prog_rejected=yes
1564 continue
1566 ac_cv_prog_CC="cc"
1567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1568 break 2
1570 done
1571 done
1573 if test $ac_prog_rejected = yes; then
1574 # We found a bogon in the path, so make sure we never use it.
1575 set dummy $ac_cv_prog_CC
1576 shift
1577 if test $# != 0; then
1578 # We chose a different compiler from the bogus one.
1579 # However, it has the same basename, so the bogon will be chosen
1580 # first if we set CC to just the basename; use the full file name.
1581 shift
1582 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1587 CC=$ac_cv_prog_CC
1588 if test -n "$CC"; then
1589 echo "$as_me:$LINENO: result: $CC" >&5
1590 echo "${ECHO_T}$CC" >&6
1591 else
1592 echo "$as_me:$LINENO: result: no" >&5
1593 echo "${ECHO_T}no" >&6
1597 if test -z "$CC"; then
1598 if test -n "$ac_tool_prefix"; then
1599 for ac_prog in cl
1601 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1602 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1603 echo "$as_me:$LINENO: checking for $ac_word" >&5
1604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1605 if test "${ac_cv_prog_CC+set}" = set; then
1606 echo $ECHO_N "(cached) $ECHO_C" >&6
1607 else
1608 if test -n "$CC"; then
1609 ac_cv_prog_CC="$CC" # Let the user override the test.
1610 else
1611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1612 for as_dir in $PATH
1614 IFS=$as_save_IFS
1615 test -z "$as_dir" && as_dir=.
1616 for ac_exec_ext in '' $ac_executable_extensions; do
1617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1618 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1620 break 2
1622 done
1623 done
1627 CC=$ac_cv_prog_CC
1628 if test -n "$CC"; then
1629 echo "$as_me:$LINENO: result: $CC" >&5
1630 echo "${ECHO_T}$CC" >&6
1631 else
1632 echo "$as_me:$LINENO: result: no" >&5
1633 echo "${ECHO_T}no" >&6
1636 test -n "$CC" && break
1637 done
1639 if test -z "$CC"; then
1640 ac_ct_CC=$CC
1641 for ac_prog in cl
1643 # Extract the first word of "$ac_prog", so it can be a program name with args.
1644 set dummy $ac_prog; ac_word=$2
1645 echo "$as_me:$LINENO: checking for $ac_word" >&5
1646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1647 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1648 echo $ECHO_N "(cached) $ECHO_C" >&6
1649 else
1650 if test -n "$ac_ct_CC"; then
1651 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1652 else
1653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1654 for as_dir in $PATH
1656 IFS=$as_save_IFS
1657 test -z "$as_dir" && as_dir=.
1658 for ac_exec_ext in '' $ac_executable_extensions; do
1659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1660 ac_cv_prog_ac_ct_CC="$ac_prog"
1661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1662 break 2
1664 done
1665 done
1669 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1670 if test -n "$ac_ct_CC"; then
1671 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1672 echo "${ECHO_T}$ac_ct_CC" >&6
1673 else
1674 echo "$as_me:$LINENO: result: no" >&5
1675 echo "${ECHO_T}no" >&6
1678 test -n "$ac_ct_CC" && break
1679 done
1681 CC=$ac_ct_CC
1687 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1688 See \`config.log' for more details." >&5
1689 echo "$as_me: error: no acceptable C compiler found in \$PATH
1690 See \`config.log' for more details." >&2;}
1691 { (exit 1); exit 1; }; }
1693 # Provide some information about the compiler.
1694 echo "$as_me:$LINENO:" \
1695 "checking for C compiler version" >&5
1696 ac_compiler=`set X $ac_compile; echo $2`
1697 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1698 (eval $ac_compiler --version </dev/null >&5) 2>&5
1699 ac_status=$?
1700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1701 (exit $ac_status); }
1702 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1703 (eval $ac_compiler -v </dev/null >&5) 2>&5
1704 ac_status=$?
1705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1706 (exit $ac_status); }
1707 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1708 (eval $ac_compiler -V </dev/null >&5) 2>&5
1709 ac_status=$?
1710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1711 (exit $ac_status); }
1713 cat >conftest.$ac_ext <<_ACEOF
1714 /* confdefs.h. */
1715 _ACEOF
1716 cat confdefs.h >>conftest.$ac_ext
1717 cat >>conftest.$ac_ext <<_ACEOF
1718 /* end confdefs.h. */
1721 main ()
1725 return 0;
1727 _ACEOF
1728 ac_clean_files_save=$ac_clean_files
1729 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1730 # Try to create an executable without -o first, disregard a.out.
1731 # It will help us diagnose broken compilers, and finding out an intuition
1732 # of exeext.
1733 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1734 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1735 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1736 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1737 (eval $ac_link_default) 2>&5
1738 ac_status=$?
1739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1740 (exit $ac_status); }; then
1741 # Find the output, starting from the most likely. This scheme is
1742 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1743 # resort.
1745 # Be careful to initialize this variable, since it used to be cached.
1746 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1747 ac_cv_exeext=
1748 # b.out is created by i960 compilers.
1749 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1751 test -f "$ac_file" || continue
1752 case $ac_file in
1753 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1755 conftest.$ac_ext )
1756 # This is the source file.
1758 [ab].out )
1759 # We found the default executable, but exeext='' is most
1760 # certainly right.
1761 break;;
1762 *.* )
1763 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1764 # FIXME: I believe we export ac_cv_exeext for Libtool,
1765 # but it would be cool to find out if it's true. Does anybody
1766 # maintain Libtool? --akim.
1767 export ac_cv_exeext
1768 break;;
1770 break;;
1771 esac
1772 done
1773 else
1774 echo "$as_me: failed program was:" >&5
1775 sed 's/^/| /' conftest.$ac_ext >&5
1777 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1778 See \`config.log' for more details." >&5
1779 echo "$as_me: error: C compiler cannot create executables
1780 See \`config.log' for more details." >&2;}
1781 { (exit 77); exit 77; }; }
1784 ac_exeext=$ac_cv_exeext
1785 echo "$as_me:$LINENO: result: $ac_file" >&5
1786 echo "${ECHO_T}$ac_file" >&6
1788 # Check the compiler produces executables we can run. If not, either
1789 # the compiler is broken, or we cross compile.
1790 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1791 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1792 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1793 # If not cross compiling, check that we can run a simple program.
1794 if test "$cross_compiling" != yes; then
1795 if { ac_try='./$ac_file'
1796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1797 (eval $ac_try) 2>&5
1798 ac_status=$?
1799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1800 (exit $ac_status); }; }; then
1801 cross_compiling=no
1802 else
1803 if test "$cross_compiling" = maybe; then
1804 cross_compiling=yes
1805 else
1806 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1807 If you meant to cross compile, use \`--host'.
1808 See \`config.log' for more details." >&5
1809 echo "$as_me: error: cannot run C compiled programs.
1810 If you meant to cross compile, use \`--host'.
1811 See \`config.log' for more details." >&2;}
1812 { (exit 1); exit 1; }; }
1816 echo "$as_me:$LINENO: result: yes" >&5
1817 echo "${ECHO_T}yes" >&6
1819 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1820 ac_clean_files=$ac_clean_files_save
1821 # Check the compiler produces executables we can run. If not, either
1822 # the compiler is broken, or we cross compile.
1823 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1824 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1825 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1826 echo "${ECHO_T}$cross_compiling" >&6
1828 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1829 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1831 (eval $ac_link) 2>&5
1832 ac_status=$?
1833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1834 (exit $ac_status); }; then
1835 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1836 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1837 # work properly (i.e., refer to `conftest.exe'), while it won't with
1838 # `rm'.
1839 for ac_file in conftest.exe conftest conftest.*; do
1840 test -f "$ac_file" || continue
1841 case $ac_file in
1842 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1843 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1844 export ac_cv_exeext
1845 break;;
1846 * ) break;;
1847 esac
1848 done
1849 else
1850 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1851 See \`config.log' for more details." >&5
1852 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1853 See \`config.log' for more details." >&2;}
1854 { (exit 1); exit 1; }; }
1857 rm -f conftest$ac_cv_exeext
1858 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1859 echo "${ECHO_T}$ac_cv_exeext" >&6
1861 rm -f conftest.$ac_ext
1862 EXEEXT=$ac_cv_exeext
1863 ac_exeext=$EXEEXT
1864 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1865 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1866 if test "${ac_cv_objext+set}" = set; then
1867 echo $ECHO_N "(cached) $ECHO_C" >&6
1868 else
1869 cat >conftest.$ac_ext <<_ACEOF
1870 /* confdefs.h. */
1871 _ACEOF
1872 cat confdefs.h >>conftest.$ac_ext
1873 cat >>conftest.$ac_ext <<_ACEOF
1874 /* end confdefs.h. */
1877 main ()
1881 return 0;
1883 _ACEOF
1884 rm -f conftest.o conftest.obj
1885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1886 (eval $ac_compile) 2>&5
1887 ac_status=$?
1888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1889 (exit $ac_status); }; then
1890 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1891 case $ac_file in
1892 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1893 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1894 break;;
1895 esac
1896 done
1897 else
1898 echo "$as_me: failed program was:" >&5
1899 sed 's/^/| /' conftest.$ac_ext >&5
1901 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1902 See \`config.log' for more details." >&5
1903 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1904 See \`config.log' for more details." >&2;}
1905 { (exit 1); exit 1; }; }
1908 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1910 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1911 echo "${ECHO_T}$ac_cv_objext" >&6
1912 OBJEXT=$ac_cv_objext
1913 ac_objext=$OBJEXT
1914 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1915 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1916 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1917 echo $ECHO_N "(cached) $ECHO_C" >&6
1918 else
1919 cat >conftest.$ac_ext <<_ACEOF
1920 /* confdefs.h. */
1921 _ACEOF
1922 cat confdefs.h >>conftest.$ac_ext
1923 cat >>conftest.$ac_ext <<_ACEOF
1924 /* end confdefs.h. */
1927 main ()
1929 #ifndef __GNUC__
1930 choke me
1931 #endif
1934 return 0;
1936 _ACEOF
1937 rm -f conftest.$ac_objext
1938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1939 (eval $ac_compile) 2>conftest.er1
1940 ac_status=$?
1941 grep -v '^ *+' conftest.er1 >conftest.err
1942 rm -f conftest.er1
1943 cat conftest.err >&5
1944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1945 (exit $ac_status); } &&
1946 { ac_try='test -z "$ac_c_werror_flag"
1947 || test ! -s conftest.err'
1948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1949 (eval $ac_try) 2>&5
1950 ac_status=$?
1951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1952 (exit $ac_status); }; } &&
1953 { ac_try='test -s conftest.$ac_objext'
1954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1955 (eval $ac_try) 2>&5
1956 ac_status=$?
1957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1958 (exit $ac_status); }; }; then
1959 ac_compiler_gnu=yes
1960 else
1961 echo "$as_me: failed program was:" >&5
1962 sed 's/^/| /' conftest.$ac_ext >&5
1964 ac_compiler_gnu=no
1966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1967 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1970 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1971 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1972 GCC=`test $ac_compiler_gnu = yes && echo yes`
1973 ac_test_CFLAGS=${CFLAGS+set}
1974 ac_save_CFLAGS=$CFLAGS
1975 CFLAGS="-g"
1976 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1977 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1978 if test "${ac_cv_prog_cc_g+set}" = set; then
1979 echo $ECHO_N "(cached) $ECHO_C" >&6
1980 else
1981 cat >conftest.$ac_ext <<_ACEOF
1982 /* confdefs.h. */
1983 _ACEOF
1984 cat confdefs.h >>conftest.$ac_ext
1985 cat >>conftest.$ac_ext <<_ACEOF
1986 /* end confdefs.h. */
1989 main ()
1993 return 0;
1995 _ACEOF
1996 rm -f conftest.$ac_objext
1997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1998 (eval $ac_compile) 2>conftest.er1
1999 ac_status=$?
2000 grep -v '^ *+' conftest.er1 >conftest.err
2001 rm -f conftest.er1
2002 cat conftest.err >&5
2003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004 (exit $ac_status); } &&
2005 { ac_try='test -z "$ac_c_werror_flag"
2006 || test ! -s conftest.err'
2007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2008 (eval $ac_try) 2>&5
2009 ac_status=$?
2010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011 (exit $ac_status); }; } &&
2012 { ac_try='test -s conftest.$ac_objext'
2013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2014 (eval $ac_try) 2>&5
2015 ac_status=$?
2016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2017 (exit $ac_status); }; }; then
2018 ac_cv_prog_cc_g=yes
2019 else
2020 echo "$as_me: failed program was:" >&5
2021 sed 's/^/| /' conftest.$ac_ext >&5
2023 ac_cv_prog_cc_g=no
2025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2027 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2028 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2029 if test "$ac_test_CFLAGS" = set; then
2030 CFLAGS=$ac_save_CFLAGS
2031 elif test $ac_cv_prog_cc_g = yes; then
2032 if test "$GCC" = yes; then
2033 CFLAGS="-g -O2"
2034 else
2035 CFLAGS="-g"
2037 else
2038 if test "$GCC" = yes; then
2039 CFLAGS="-O2"
2040 else
2041 CFLAGS=
2044 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2045 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2046 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2047 echo $ECHO_N "(cached) $ECHO_C" >&6
2048 else
2049 ac_cv_prog_cc_stdc=no
2050 ac_save_CC=$CC
2051 cat >conftest.$ac_ext <<_ACEOF
2052 /* confdefs.h. */
2053 _ACEOF
2054 cat confdefs.h >>conftest.$ac_ext
2055 cat >>conftest.$ac_ext <<_ACEOF
2056 /* end confdefs.h. */
2057 #include <stdarg.h>
2058 #include <stdio.h>
2059 #include <sys/types.h>
2060 #include <sys/stat.h>
2061 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2062 struct buf { int x; };
2063 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2064 static char *e (p, i)
2065 char **p;
2066 int i;
2068 return p[i];
2070 static char *f (char * (*g) (char **, int), char **p, ...)
2072 char *s;
2073 va_list v;
2074 va_start (v,p);
2075 s = g (p, va_arg (v,int));
2076 va_end (v);
2077 return s;
2080 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2081 function prototypes and stuff, but not '\xHH' hex character constants.
2082 These don't provoke an error unfortunately, instead are silently treated
2083 as 'x'. The following induces an error, until -std1 is added to get
2084 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2085 array size at least. It's necessary to write '\x00'==0 to get something
2086 that's true only with -std1. */
2087 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2089 int test (int i, double x);
2090 struct s1 {int (*f) (int a);};
2091 struct s2 {int (*f) (double a);};
2092 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2093 int argc;
2094 char **argv;
2096 main ()
2098 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2100 return 0;
2102 _ACEOF
2103 # Don't try gcc -ansi; that turns off useful extensions and
2104 # breaks some systems' header files.
2105 # AIX -qlanglvl=ansi
2106 # Ultrix and OSF/1 -std1
2107 # HP-UX 10.20 and later -Ae
2108 # HP-UX older versions -Aa -D_HPUX_SOURCE
2109 # SVR4 -Xc -D__EXTENSIONS__
2110 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2112 CC="$ac_save_CC $ac_arg"
2113 rm -f conftest.$ac_objext
2114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2115 (eval $ac_compile) 2>conftest.er1
2116 ac_status=$?
2117 grep -v '^ *+' conftest.er1 >conftest.err
2118 rm -f conftest.er1
2119 cat conftest.err >&5
2120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121 (exit $ac_status); } &&
2122 { ac_try='test -z "$ac_c_werror_flag"
2123 || test ! -s conftest.err'
2124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2125 (eval $ac_try) 2>&5
2126 ac_status=$?
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); }; } &&
2129 { ac_try='test -s conftest.$ac_objext'
2130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2131 (eval $ac_try) 2>&5
2132 ac_status=$?
2133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134 (exit $ac_status); }; }; then
2135 ac_cv_prog_cc_stdc=$ac_arg
2136 break
2137 else
2138 echo "$as_me: failed program was:" >&5
2139 sed 's/^/| /' conftest.$ac_ext >&5
2142 rm -f conftest.err conftest.$ac_objext
2143 done
2144 rm -f conftest.$ac_ext conftest.$ac_objext
2145 CC=$ac_save_CC
2149 case "x$ac_cv_prog_cc_stdc" in
2150 x|xno)
2151 echo "$as_me:$LINENO: result: none needed" >&5
2152 echo "${ECHO_T}none needed" >&6 ;;
2154 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2155 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2156 CC="$CC $ac_cv_prog_cc_stdc" ;;
2157 esac
2159 # Some people use a C++ compiler to compile C. Since we use `exit',
2160 # in C++ we need to declare it. In case someone uses the same compiler
2161 # for both compiling C and C++ we need to have the C++ compiler decide
2162 # the declaration of exit, since it's the most demanding environment.
2163 cat >conftest.$ac_ext <<_ACEOF
2164 #ifndef __cplusplus
2165 choke me
2166 #endif
2167 _ACEOF
2168 rm -f conftest.$ac_objext
2169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2170 (eval $ac_compile) 2>conftest.er1
2171 ac_status=$?
2172 grep -v '^ *+' conftest.er1 >conftest.err
2173 rm -f conftest.er1
2174 cat conftest.err >&5
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); } &&
2177 { ac_try='test -z "$ac_c_werror_flag"
2178 || test ! -s conftest.err'
2179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2180 (eval $ac_try) 2>&5
2181 ac_status=$?
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); }; } &&
2184 { ac_try='test -s conftest.$ac_objext'
2185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2186 (eval $ac_try) 2>&5
2187 ac_status=$?
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); }; }; then
2190 for ac_declaration in \
2191 '' \
2192 'extern "C" void std::exit (int) throw (); using std::exit;' \
2193 'extern "C" void std::exit (int); using std::exit;' \
2194 'extern "C" void exit (int) throw ();' \
2195 'extern "C" void exit (int);' \
2196 'void exit (int);'
2198 cat >conftest.$ac_ext <<_ACEOF
2199 /* confdefs.h. */
2200 _ACEOF
2201 cat confdefs.h >>conftest.$ac_ext
2202 cat >>conftest.$ac_ext <<_ACEOF
2203 /* end confdefs.h. */
2204 $ac_declaration
2205 #include <stdlib.h>
2207 main ()
2209 exit (42);
2211 return 0;
2213 _ACEOF
2214 rm -f conftest.$ac_objext
2215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2216 (eval $ac_compile) 2>conftest.er1
2217 ac_status=$?
2218 grep -v '^ *+' conftest.er1 >conftest.err
2219 rm -f conftest.er1
2220 cat conftest.err >&5
2221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222 (exit $ac_status); } &&
2223 { ac_try='test -z "$ac_c_werror_flag"
2224 || test ! -s conftest.err'
2225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2226 (eval $ac_try) 2>&5
2227 ac_status=$?
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); }; } &&
2230 { ac_try='test -s conftest.$ac_objext'
2231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232 (eval $ac_try) 2>&5
2233 ac_status=$?
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; }; then
2237 else
2238 echo "$as_me: failed program was:" >&5
2239 sed 's/^/| /' conftest.$ac_ext >&5
2241 continue
2243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2244 cat >conftest.$ac_ext <<_ACEOF
2245 /* confdefs.h. */
2246 _ACEOF
2247 cat confdefs.h >>conftest.$ac_ext
2248 cat >>conftest.$ac_ext <<_ACEOF
2249 /* end confdefs.h. */
2250 $ac_declaration
2252 main ()
2254 exit (42);
2256 return 0;
2258 _ACEOF
2259 rm -f conftest.$ac_objext
2260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2261 (eval $ac_compile) 2>conftest.er1
2262 ac_status=$?
2263 grep -v '^ *+' conftest.er1 >conftest.err
2264 rm -f conftest.er1
2265 cat conftest.err >&5
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267 (exit $ac_status); } &&
2268 { ac_try='test -z "$ac_c_werror_flag"
2269 || test ! -s conftest.err'
2270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271 (eval $ac_try) 2>&5
2272 ac_status=$?
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; } &&
2275 { ac_try='test -s conftest.$ac_objext'
2276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2277 (eval $ac_try) 2>&5
2278 ac_status=$?
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); }; }; then
2281 break
2282 else
2283 echo "$as_me: failed program was:" >&5
2284 sed 's/^/| /' conftest.$ac_ext >&5
2287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2288 done
2289 rm -f conftest*
2290 if test -n "$ac_declaration"; then
2291 echo '#ifdef __cplusplus' >>confdefs.h
2292 echo $ac_declaration >>confdefs.h
2293 echo '#endif' >>confdefs.h
2296 else
2297 echo "$as_me: failed program was:" >&5
2298 sed 's/^/| /' conftest.$ac_ext >&5
2301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2302 ac_ext=c
2303 ac_cpp='$CPP $CPPFLAGS'
2304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2308 ac_aux_dir=
2309 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2310 if test -f $ac_dir/install-sh; then
2311 ac_aux_dir=$ac_dir
2312 ac_install_sh="$ac_aux_dir/install-sh -c"
2313 break
2314 elif test -f $ac_dir/install.sh; then
2315 ac_aux_dir=$ac_dir
2316 ac_install_sh="$ac_aux_dir/install.sh -c"
2317 break
2318 elif test -f $ac_dir/shtool; then
2319 ac_aux_dir=$ac_dir
2320 ac_install_sh="$ac_aux_dir/shtool install -c"
2321 break
2323 done
2324 if test -z "$ac_aux_dir"; then
2325 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2326 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2327 { (exit 1); exit 1; }; }
2329 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2330 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2331 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2333 # Find a good install program. We prefer a C program (faster),
2334 # so one script is as good as another. But avoid the broken or
2335 # incompatible versions:
2336 # SysV /etc/install, /usr/sbin/install
2337 # SunOS /usr/etc/install
2338 # IRIX /sbin/install
2339 # AIX /bin/install
2340 # AmigaOS /C/install, which installs bootblocks on floppy discs
2341 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2342 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2343 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2344 # OS/2's system install, which has a completely different semantic
2345 # ./install, which can be erroneously created by make from ./install.sh.
2346 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2347 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2348 if test -z "$INSTALL"; then
2349 if test "${ac_cv_path_install+set}" = set; then
2350 echo $ECHO_N "(cached) $ECHO_C" >&6
2351 else
2352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2353 for as_dir in $PATH
2355 IFS=$as_save_IFS
2356 test -z "$as_dir" && as_dir=.
2357 # Account for people who put trailing slashes in PATH elements.
2358 case $as_dir/ in
2359 ./ | .// | /cC/* | \
2360 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2361 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2362 /usr/ucb/* ) ;;
2364 # OSF1 and SCO ODT 3.0 have their own names for install.
2365 # Don't use installbsd from OSF since it installs stuff as root
2366 # by default.
2367 for ac_prog in ginstall scoinst install; do
2368 for ac_exec_ext in '' $ac_executable_extensions; do
2369 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2370 if test $ac_prog = install &&
2371 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2372 # AIX install. It has an incompatible calling convention.
2374 elif test $ac_prog = install &&
2375 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2376 # program-specific install script used by HP pwplus--don't use.
2378 else
2379 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2380 break 3
2383 done
2384 done
2386 esac
2387 done
2391 if test "${ac_cv_path_install+set}" = set; then
2392 INSTALL=$ac_cv_path_install
2393 else
2394 # As a last resort, use the slow shell script. We don't cache a
2395 # path for INSTALL within a source directory, because that will
2396 # break other packages using the cache if that directory is
2397 # removed, or if the path is relative.
2398 INSTALL=$ac_install_sh
2401 echo "$as_me:$LINENO: result: $INSTALL" >&5
2402 echo "${ECHO_T}$INSTALL" >&6
2404 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2405 # It thinks the first close brace ends the variable substitution.
2406 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2408 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2410 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2412 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2413 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2414 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2415 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2416 echo $ECHO_N "(cached) $ECHO_C" >&6
2417 else
2418 cat >conftest.make <<\_ACEOF
2419 all:
2420 @echo 'ac_maketemp="$(MAKE)"'
2421 _ACEOF
2422 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2423 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2424 if test -n "$ac_maketemp"; then
2425 eval ac_cv_prog_make_${ac_make}_set=yes
2426 else
2427 eval ac_cv_prog_make_${ac_make}_set=no
2429 rm -f conftest.make
2431 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2432 echo "$as_me:$LINENO: result: yes" >&5
2433 echo "${ECHO_T}yes" >&6
2434 SET_MAKE=
2435 else
2436 echo "$as_me:$LINENO: result: no" >&5
2437 echo "${ECHO_T}no" >&6
2438 SET_MAKE="MAKE=${MAKE-make}"
2441 if test -n "$ac_tool_prefix"; then
2442 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2443 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2444 echo "$as_me:$LINENO: checking for $ac_word" >&5
2445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2446 if test "${ac_cv_prog_RANLIB+set}" = set; then
2447 echo $ECHO_N "(cached) $ECHO_C" >&6
2448 else
2449 if test -n "$RANLIB"; then
2450 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2451 else
2452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453 for as_dir in $PATH
2455 IFS=$as_save_IFS
2456 test -z "$as_dir" && as_dir=.
2457 for ac_exec_ext in '' $ac_executable_extensions; do
2458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2459 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2461 break 2
2463 done
2464 done
2468 RANLIB=$ac_cv_prog_RANLIB
2469 if test -n "$RANLIB"; then
2470 echo "$as_me:$LINENO: result: $RANLIB" >&5
2471 echo "${ECHO_T}$RANLIB" >&6
2472 else
2473 echo "$as_me:$LINENO: result: no" >&5
2474 echo "${ECHO_T}no" >&6
2478 if test -z "$ac_cv_prog_RANLIB"; then
2479 ac_ct_RANLIB=$RANLIB
2480 # Extract the first word of "ranlib", so it can be a program name with args.
2481 set dummy ranlib; ac_word=$2
2482 echo "$as_me:$LINENO: checking for $ac_word" >&5
2483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2484 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2485 echo $ECHO_N "(cached) $ECHO_C" >&6
2486 else
2487 if test -n "$ac_ct_RANLIB"; then
2488 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2489 else
2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491 for as_dir in $PATH
2493 IFS=$as_save_IFS
2494 test -z "$as_dir" && as_dir=.
2495 for ac_exec_ext in '' $ac_executable_extensions; do
2496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2497 ac_cv_prog_ac_ct_RANLIB="ranlib"
2498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2499 break 2
2501 done
2502 done
2504 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2507 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2508 if test -n "$ac_ct_RANLIB"; then
2509 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2510 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2511 else
2512 echo "$as_me:$LINENO: result: no" >&5
2513 echo "${ECHO_T}no" >&6
2516 RANLIB=$ac_ct_RANLIB
2517 else
2518 RANLIB="$ac_cv_prog_RANLIB"
2523 ac_ext=c
2524 ac_cpp='$CPP $CPPFLAGS'
2525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2528 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2529 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2530 # On Suns, sometimes $CPP names a directory.
2531 if test -n "$CPP" && test -d "$CPP"; then
2532 CPP=
2534 if test -z "$CPP"; then
2535 if test "${ac_cv_prog_CPP+set}" = set; then
2536 echo $ECHO_N "(cached) $ECHO_C" >&6
2537 else
2538 # Double quotes because CPP needs to be expanded
2539 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2541 ac_preproc_ok=false
2542 for ac_c_preproc_warn_flag in '' yes
2544 # Use a header file that comes with gcc, so configuring glibc
2545 # with a fresh cross-compiler works.
2546 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2547 # <limits.h> exists even on freestanding compilers.
2548 # On the NeXT, cc -E runs the code through the compiler's parser,
2549 # not just through cpp. "Syntax error" is here to catch this case.
2550 cat >conftest.$ac_ext <<_ACEOF
2551 /* confdefs.h. */
2552 _ACEOF
2553 cat confdefs.h >>conftest.$ac_ext
2554 cat >>conftest.$ac_ext <<_ACEOF
2555 /* end confdefs.h. */
2556 #ifdef __STDC__
2557 # include <limits.h>
2558 #else
2559 # include <assert.h>
2560 #endif
2561 Syntax error
2562 _ACEOF
2563 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2564 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2565 ac_status=$?
2566 grep -v '^ *+' conftest.er1 >conftest.err
2567 rm -f conftest.er1
2568 cat conftest.err >&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); } >/dev/null; then
2571 if test -s conftest.err; then
2572 ac_cpp_err=$ac_c_preproc_warn_flag
2573 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2574 else
2575 ac_cpp_err=
2577 else
2578 ac_cpp_err=yes
2580 if test -z "$ac_cpp_err"; then
2582 else
2583 echo "$as_me: failed program was:" >&5
2584 sed 's/^/| /' conftest.$ac_ext >&5
2586 # Broken: fails on valid input.
2587 continue
2589 rm -f conftest.err conftest.$ac_ext
2591 # OK, works on sane cases. Now check whether non-existent headers
2592 # can be detected and how.
2593 cat >conftest.$ac_ext <<_ACEOF
2594 /* confdefs.h. */
2595 _ACEOF
2596 cat confdefs.h >>conftest.$ac_ext
2597 cat >>conftest.$ac_ext <<_ACEOF
2598 /* end confdefs.h. */
2599 #include <ac_nonexistent.h>
2600 _ACEOF
2601 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2602 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2603 ac_status=$?
2604 grep -v '^ *+' conftest.er1 >conftest.err
2605 rm -f conftest.er1
2606 cat conftest.err >&5
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); } >/dev/null; then
2609 if test -s conftest.err; then
2610 ac_cpp_err=$ac_c_preproc_warn_flag
2611 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2612 else
2613 ac_cpp_err=
2615 else
2616 ac_cpp_err=yes
2618 if test -z "$ac_cpp_err"; then
2619 # Broken: success on invalid input.
2620 continue
2621 else
2622 echo "$as_me: failed program was:" >&5
2623 sed 's/^/| /' conftest.$ac_ext >&5
2625 # Passes both tests.
2626 ac_preproc_ok=:
2627 break
2629 rm -f conftest.err conftest.$ac_ext
2631 done
2632 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2633 rm -f conftest.err conftest.$ac_ext
2634 if $ac_preproc_ok; then
2635 break
2638 done
2639 ac_cv_prog_CPP=$CPP
2642 CPP=$ac_cv_prog_CPP
2643 else
2644 ac_cv_prog_CPP=$CPP
2646 echo "$as_me:$LINENO: result: $CPP" >&5
2647 echo "${ECHO_T}$CPP" >&6
2648 ac_preproc_ok=false
2649 for ac_c_preproc_warn_flag in '' yes
2651 # Use a header file that comes with gcc, so configuring glibc
2652 # with a fresh cross-compiler works.
2653 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2654 # <limits.h> exists even on freestanding compilers.
2655 # On the NeXT, cc -E runs the code through the compiler's parser,
2656 # not just through cpp. "Syntax error" is here to catch this case.
2657 cat >conftest.$ac_ext <<_ACEOF
2658 /* confdefs.h. */
2659 _ACEOF
2660 cat confdefs.h >>conftest.$ac_ext
2661 cat >>conftest.$ac_ext <<_ACEOF
2662 /* end confdefs.h. */
2663 #ifdef __STDC__
2664 # include <limits.h>
2665 #else
2666 # include <assert.h>
2667 #endif
2668 Syntax error
2669 _ACEOF
2670 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2671 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2672 ac_status=$?
2673 grep -v '^ *+' conftest.er1 >conftest.err
2674 rm -f conftest.er1
2675 cat conftest.err >&5
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); } >/dev/null; then
2678 if test -s conftest.err; then
2679 ac_cpp_err=$ac_c_preproc_warn_flag
2680 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2681 else
2682 ac_cpp_err=
2684 else
2685 ac_cpp_err=yes
2687 if test -z "$ac_cpp_err"; then
2689 else
2690 echo "$as_me: failed program was:" >&5
2691 sed 's/^/| /' conftest.$ac_ext >&5
2693 # Broken: fails on valid input.
2694 continue
2696 rm -f conftest.err conftest.$ac_ext
2698 # OK, works on sane cases. Now check whether non-existent headers
2699 # can be detected and how.
2700 cat >conftest.$ac_ext <<_ACEOF
2701 /* confdefs.h. */
2702 _ACEOF
2703 cat confdefs.h >>conftest.$ac_ext
2704 cat >>conftest.$ac_ext <<_ACEOF
2705 /* end confdefs.h. */
2706 #include <ac_nonexistent.h>
2707 _ACEOF
2708 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2709 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2710 ac_status=$?
2711 grep -v '^ *+' conftest.er1 >conftest.err
2712 rm -f conftest.er1
2713 cat conftest.err >&5
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); } >/dev/null; then
2716 if test -s conftest.err; then
2717 ac_cpp_err=$ac_c_preproc_warn_flag
2718 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2719 else
2720 ac_cpp_err=
2722 else
2723 ac_cpp_err=yes
2725 if test -z "$ac_cpp_err"; then
2726 # Broken: success on invalid input.
2727 continue
2728 else
2729 echo "$as_me: failed program was:" >&5
2730 sed 's/^/| /' conftest.$ac_ext >&5
2732 # Passes both tests.
2733 ac_preproc_ok=:
2734 break
2736 rm -f conftest.err conftest.$ac_ext
2738 done
2739 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2740 rm -f conftest.err conftest.$ac_ext
2741 if $ac_preproc_ok; then
2743 else
2744 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2745 See \`config.log' for more details." >&5
2746 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2747 See \`config.log' for more details." >&2;}
2748 { (exit 1); exit 1; }; }
2751 ac_ext=c
2752 ac_cpp='$CPP $CPPFLAGS'
2753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2758 echo "$as_me:$LINENO: checking for egrep" >&5
2759 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2760 if test "${ac_cv_prog_egrep+set}" = set; then
2761 echo $ECHO_N "(cached) $ECHO_C" >&6
2762 else
2763 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2764 then ac_cv_prog_egrep='grep -E'
2765 else ac_cv_prog_egrep='egrep'
2768 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2769 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2770 EGREP=$ac_cv_prog_egrep
2774 echo "$as_me:$LINENO: checking for AIX" >&5
2775 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2776 cat >conftest.$ac_ext <<_ACEOF
2777 /* confdefs.h. */
2778 _ACEOF
2779 cat confdefs.h >>conftest.$ac_ext
2780 cat >>conftest.$ac_ext <<_ACEOF
2781 /* end confdefs.h. */
2782 #ifdef _AIX
2784 #endif
2786 _ACEOF
2787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2788 $EGREP "yes" >/dev/null 2>&1; then
2789 echo "$as_me:$LINENO: result: yes" >&5
2790 echo "${ECHO_T}yes" >&6
2791 cat >>confdefs.h <<\_ACEOF
2792 #define _ALL_SOURCE 1
2793 _ACEOF
2795 else
2796 echo "$as_me:$LINENO: result: no" >&5
2797 echo "${ECHO_T}no" >&6
2799 rm -f conftest*
2802 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2803 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2804 if test "${ac_cv_search_strerror+set}" = set; then
2805 echo $ECHO_N "(cached) $ECHO_C" >&6
2806 else
2807 ac_func_search_save_LIBS=$LIBS
2808 ac_cv_search_strerror=no
2809 cat >conftest.$ac_ext <<_ACEOF
2810 /* confdefs.h. */
2811 _ACEOF
2812 cat confdefs.h >>conftest.$ac_ext
2813 cat >>conftest.$ac_ext <<_ACEOF
2814 /* end confdefs.h. */
2816 /* Override any gcc2 internal prototype to avoid an error. */
2817 #ifdef __cplusplus
2818 extern "C"
2819 #endif
2820 /* We use char because int might match the return type of a gcc2
2821 builtin and then its argument prototype would still apply. */
2822 char strerror ();
2824 main ()
2826 strerror ();
2828 return 0;
2830 _ACEOF
2831 rm -f conftest.$ac_objext conftest$ac_exeext
2832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2833 (eval $ac_link) 2>conftest.er1
2834 ac_status=$?
2835 grep -v '^ *+' conftest.er1 >conftest.err
2836 rm -f conftest.er1
2837 cat conftest.err >&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); } &&
2840 { ac_try='test -z "$ac_c_werror_flag"
2841 || test ! -s conftest.err'
2842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2843 (eval $ac_try) 2>&5
2844 ac_status=$?
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }; } &&
2847 { ac_try='test -s conftest$ac_exeext'
2848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849 (eval $ac_try) 2>&5
2850 ac_status=$?
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); }; }; then
2853 ac_cv_search_strerror="none required"
2854 else
2855 echo "$as_me: failed program was:" >&5
2856 sed 's/^/| /' conftest.$ac_ext >&5
2859 rm -f conftest.err conftest.$ac_objext \
2860 conftest$ac_exeext conftest.$ac_ext
2861 if test "$ac_cv_search_strerror" = no; then
2862 for ac_lib in cposix; do
2863 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2864 cat >conftest.$ac_ext <<_ACEOF
2865 /* confdefs.h. */
2866 _ACEOF
2867 cat confdefs.h >>conftest.$ac_ext
2868 cat >>conftest.$ac_ext <<_ACEOF
2869 /* end confdefs.h. */
2871 /* Override any gcc2 internal prototype to avoid an error. */
2872 #ifdef __cplusplus
2873 extern "C"
2874 #endif
2875 /* We use char because int might match the return type of a gcc2
2876 builtin and then its argument prototype would still apply. */
2877 char strerror ();
2879 main ()
2881 strerror ();
2883 return 0;
2885 _ACEOF
2886 rm -f conftest.$ac_objext conftest$ac_exeext
2887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2888 (eval $ac_link) 2>conftest.er1
2889 ac_status=$?
2890 grep -v '^ *+' conftest.er1 >conftest.err
2891 rm -f conftest.er1
2892 cat conftest.err >&5
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); } &&
2895 { ac_try='test -z "$ac_c_werror_flag"
2896 || test ! -s conftest.err'
2897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2898 (eval $ac_try) 2>&5
2899 ac_status=$?
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }; } &&
2902 { ac_try='test -s conftest$ac_exeext'
2903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2904 (eval $ac_try) 2>&5
2905 ac_status=$?
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); }; }; then
2908 ac_cv_search_strerror="-l$ac_lib"
2909 break
2910 else
2911 echo "$as_me: failed program was:" >&5
2912 sed 's/^/| /' conftest.$ac_ext >&5
2915 rm -f conftest.err conftest.$ac_objext \
2916 conftest$ac_exeext conftest.$ac_ext
2917 done
2919 LIBS=$ac_func_search_save_LIBS
2921 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2922 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2923 if test "$ac_cv_search_strerror" != no; then
2924 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2928 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2929 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2930 if test "${ac_cv_header_stdc+set}" = set; then
2931 echo $ECHO_N "(cached) $ECHO_C" >&6
2932 else
2933 cat >conftest.$ac_ext <<_ACEOF
2934 /* confdefs.h. */
2935 _ACEOF
2936 cat confdefs.h >>conftest.$ac_ext
2937 cat >>conftest.$ac_ext <<_ACEOF
2938 /* end confdefs.h. */
2939 #include <stdlib.h>
2940 #include <stdarg.h>
2941 #include <string.h>
2942 #include <float.h>
2945 main ()
2949 return 0;
2951 _ACEOF
2952 rm -f conftest.$ac_objext
2953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2954 (eval $ac_compile) 2>conftest.er1
2955 ac_status=$?
2956 grep -v '^ *+' conftest.er1 >conftest.err
2957 rm -f conftest.er1
2958 cat conftest.err >&5
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); } &&
2961 { ac_try='test -z "$ac_c_werror_flag"
2962 || test ! -s conftest.err'
2963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2964 (eval $ac_try) 2>&5
2965 ac_status=$?
2966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967 (exit $ac_status); }; } &&
2968 { ac_try='test -s conftest.$ac_objext'
2969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2970 (eval $ac_try) 2>&5
2971 ac_status=$?
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); }; }; then
2974 ac_cv_header_stdc=yes
2975 else
2976 echo "$as_me: failed program was:" >&5
2977 sed 's/^/| /' conftest.$ac_ext >&5
2979 ac_cv_header_stdc=no
2981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2983 if test $ac_cv_header_stdc = yes; then
2984 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2985 cat >conftest.$ac_ext <<_ACEOF
2986 /* confdefs.h. */
2987 _ACEOF
2988 cat confdefs.h >>conftest.$ac_ext
2989 cat >>conftest.$ac_ext <<_ACEOF
2990 /* end confdefs.h. */
2991 #include <string.h>
2993 _ACEOF
2994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2995 $EGREP "memchr" >/dev/null 2>&1; then
2997 else
2998 ac_cv_header_stdc=no
3000 rm -f conftest*
3004 if test $ac_cv_header_stdc = yes; then
3005 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3006 cat >conftest.$ac_ext <<_ACEOF
3007 /* confdefs.h. */
3008 _ACEOF
3009 cat confdefs.h >>conftest.$ac_ext
3010 cat >>conftest.$ac_ext <<_ACEOF
3011 /* end confdefs.h. */
3012 #include <stdlib.h>
3014 _ACEOF
3015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3016 $EGREP "free" >/dev/null 2>&1; then
3018 else
3019 ac_cv_header_stdc=no
3021 rm -f conftest*
3025 if test $ac_cv_header_stdc = yes; then
3026 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3027 if test "$cross_compiling" = yes; then
3029 else
3030 cat >conftest.$ac_ext <<_ACEOF
3031 /* confdefs.h. */
3032 _ACEOF
3033 cat confdefs.h >>conftest.$ac_ext
3034 cat >>conftest.$ac_ext <<_ACEOF
3035 /* end confdefs.h. */
3036 #include <ctype.h>
3037 #if ((' ' & 0x0FF) == 0x020)
3038 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3039 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3040 #else
3041 # define ISLOWER(c) \
3042 (('a' <= (c) && (c) <= 'i') \
3043 || ('j' <= (c) && (c) <= 'r') \
3044 || ('s' <= (c) && (c) <= 'z'))
3045 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3046 #endif
3048 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3050 main ()
3052 int i;
3053 for (i = 0; i < 256; i++)
3054 if (XOR (islower (i), ISLOWER (i))
3055 || toupper (i) != TOUPPER (i))
3056 exit(2);
3057 exit (0);
3059 _ACEOF
3060 rm -f conftest$ac_exeext
3061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3062 (eval $ac_link) 2>&5
3063 ac_status=$?
3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3067 (eval $ac_try) 2>&5
3068 ac_status=$?
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); }; }; then
3072 else
3073 echo "$as_me: program exited with status $ac_status" >&5
3074 echo "$as_me: failed program was:" >&5
3075 sed 's/^/| /' conftest.$ac_ext >&5
3077 ( exit $ac_status )
3078 ac_cv_header_stdc=no
3080 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3084 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3085 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3086 if test $ac_cv_header_stdc = yes; then
3088 cat >>confdefs.h <<\_ACEOF
3089 #define STDC_HEADERS 1
3090 _ACEOF
3094 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3104 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3105 inttypes.h stdint.h unistd.h
3107 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3108 echo "$as_me:$LINENO: checking for $ac_header" >&5
3109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3111 echo $ECHO_N "(cached) $ECHO_C" >&6
3112 else
3113 cat >conftest.$ac_ext <<_ACEOF
3114 /* confdefs.h. */
3115 _ACEOF
3116 cat confdefs.h >>conftest.$ac_ext
3117 cat >>conftest.$ac_ext <<_ACEOF
3118 /* end confdefs.h. */
3119 $ac_includes_default
3121 #include <$ac_header>
3122 _ACEOF
3123 rm -f conftest.$ac_objext
3124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3125 (eval $ac_compile) 2>conftest.er1
3126 ac_status=$?
3127 grep -v '^ *+' conftest.er1 >conftest.err
3128 rm -f conftest.er1
3129 cat conftest.err >&5
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); } &&
3132 { ac_try='test -z "$ac_c_werror_flag"
3133 || test ! -s conftest.err'
3134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3135 (eval $ac_try) 2>&5
3136 ac_status=$?
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); }; } &&
3139 { ac_try='test -s conftest.$ac_objext'
3140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3141 (eval $ac_try) 2>&5
3142 ac_status=$?
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); }; }; then
3145 eval "$as_ac_Header=yes"
3146 else
3147 echo "$as_me: failed program was:" >&5
3148 sed 's/^/| /' conftest.$ac_ext >&5
3150 eval "$as_ac_Header=no"
3152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3155 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3157 cat >>confdefs.h <<_ACEOF
3158 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3159 _ACEOF
3163 done
3166 if test "${ac_cv_header_minix_config_h+set}" = set; then
3167 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3168 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3169 if test "${ac_cv_header_minix_config_h+set}" = set; then
3170 echo $ECHO_N "(cached) $ECHO_C" >&6
3172 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3173 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3174 else
3175 # Is the header compilable?
3176 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3177 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3178 cat >conftest.$ac_ext <<_ACEOF
3179 /* confdefs.h. */
3180 _ACEOF
3181 cat confdefs.h >>conftest.$ac_ext
3182 cat >>conftest.$ac_ext <<_ACEOF
3183 /* end confdefs.h. */
3184 $ac_includes_default
3185 #include <minix/config.h>
3186 _ACEOF
3187 rm -f conftest.$ac_objext
3188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3189 (eval $ac_compile) 2>conftest.er1
3190 ac_status=$?
3191 grep -v '^ *+' conftest.er1 >conftest.err
3192 rm -f conftest.er1
3193 cat conftest.err >&5
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); } &&
3196 { ac_try='test -z "$ac_c_werror_flag"
3197 || test ! -s conftest.err'
3198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3199 (eval $ac_try) 2>&5
3200 ac_status=$?
3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202 (exit $ac_status); }; } &&
3203 { ac_try='test -s conftest.$ac_objext'
3204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3205 (eval $ac_try) 2>&5
3206 ac_status=$?
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); }; }; then
3209 ac_header_compiler=yes
3210 else
3211 echo "$as_me: failed program was:" >&5
3212 sed 's/^/| /' conftest.$ac_ext >&5
3214 ac_header_compiler=no
3216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3217 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3218 echo "${ECHO_T}$ac_header_compiler" >&6
3220 # Is the header present?
3221 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3222 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3223 cat >conftest.$ac_ext <<_ACEOF
3224 /* confdefs.h. */
3225 _ACEOF
3226 cat confdefs.h >>conftest.$ac_ext
3227 cat >>conftest.$ac_ext <<_ACEOF
3228 /* end confdefs.h. */
3229 #include <minix/config.h>
3230 _ACEOF
3231 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3232 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3233 ac_status=$?
3234 grep -v '^ *+' conftest.er1 >conftest.err
3235 rm -f conftest.er1
3236 cat conftest.err >&5
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); } >/dev/null; then
3239 if test -s conftest.err; then
3240 ac_cpp_err=$ac_c_preproc_warn_flag
3241 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3242 else
3243 ac_cpp_err=
3245 else
3246 ac_cpp_err=yes
3248 if test -z "$ac_cpp_err"; then
3249 ac_header_preproc=yes
3250 else
3251 echo "$as_me: failed program was:" >&5
3252 sed 's/^/| /' conftest.$ac_ext >&5
3254 ac_header_preproc=no
3256 rm -f conftest.err conftest.$ac_ext
3257 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3258 echo "${ECHO_T}$ac_header_preproc" >&6
3260 # So? What about this header?
3261 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3262 yes:no: )
3263 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3264 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3265 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3266 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3267 ac_header_preproc=yes
3269 no:yes:* )
3270 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3271 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3272 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3273 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3274 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3275 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3276 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3277 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3278 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3279 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3280 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3281 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3283 cat <<\_ASBOX
3284 ## ----------------------------- ##
3285 ## Report this to bug-m4@gnu.org ##
3286 ## ----------------------------- ##
3287 _ASBOX
3289 sed "s/^/$as_me: WARNING: /" >&2
3291 esac
3292 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3293 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3294 if test "${ac_cv_header_minix_config_h+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3296 else
3297 ac_cv_header_minix_config_h=$ac_header_preproc
3299 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3300 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3303 if test $ac_cv_header_minix_config_h = yes; then
3304 MINIX=yes
3305 else
3306 MINIX=
3310 if test "$MINIX" = yes; then
3312 cat >>confdefs.h <<\_ACEOF
3313 #define _POSIX_SOURCE 1
3314 _ACEOF
3317 cat >>confdefs.h <<\_ACEOF
3318 #define _POSIX_1_SOURCE 2
3319 _ACEOF
3322 cat >>confdefs.h <<\_ACEOF
3323 #define _MINIX 1
3324 _ACEOF
3328 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3329 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3330 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3331 echo $ECHO_N "(cached) $ECHO_C" >&6
3332 else
3333 ac_cv_prog_cc_stdc=no
3334 ac_save_CFLAGS="$CFLAGS"
3335 # Don't try gcc -ansi; that turns off useful extensions and
3336 # breaks some systems' header files.
3337 # AIX -qlanglvl=ansi
3338 # Ultrix and OSF/1 -std1
3339 # HP-UX -Aa -D_HPUX_SOURCE
3340 # SVR4 -Xc
3341 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
3343 CFLAGS="$ac_save_CFLAGS $ac_arg"
3344 cat >conftest.$ac_ext <<_ACEOF
3345 /* confdefs.h. */
3346 _ACEOF
3347 cat confdefs.h >>conftest.$ac_ext
3348 cat >>conftest.$ac_ext <<_ACEOF
3349 /* end confdefs.h. */
3350 #if !defined(__STDC__) || __STDC__ != 1
3351 choke me
3352 #endif
3355 main ()
3357 int test (int i, double x);
3358 struct s1 {int (*f) (int a);};
3359 struct s2 {int (*f) (double a);};
3361 return 0;
3363 _ACEOF
3364 rm -f conftest.$ac_objext
3365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3366 (eval $ac_compile) 2>conftest.er1
3367 ac_status=$?
3368 grep -v '^ *+' conftest.er1 >conftest.err
3369 rm -f conftest.er1
3370 cat conftest.err >&5
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); } &&
3373 { ac_try='test -z "$ac_c_werror_flag"
3374 || test ! -s conftest.err'
3375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3376 (eval $ac_try) 2>&5
3377 ac_status=$?
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); }; } &&
3380 { ac_try='test -s conftest.$ac_objext'
3381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3382 (eval $ac_try) 2>&5
3383 ac_status=$?
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); }; }; then
3386 ac_cv_prog_cc_stdc="$ac_arg"; break
3387 else
3388 echo "$as_me: failed program was:" >&5
3389 sed 's/^/| /' conftest.$ac_ext >&5
3392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3393 done
3394 CFLAGS="$ac_save_CFLAGS"
3398 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3399 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3400 case "x$ac_cv_prog_cc_stdc" in
3401 x|xno) ;;
3402 *) CC="$CC $ac_cv_prog_cc_stdc" ;;
3403 esac
3406 echo "$as_me:$LINENO: checking for function prototypes" >&5
3407 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3408 if test "$ac_cv_prog_cc_stdc" != no; then
3409 echo "$as_me:$LINENO: result: yes" >&5
3410 echo "${ECHO_T}yes" >&6
3412 cat >>confdefs.h <<\_ACEOF
3413 #define PROTOTYPES 1
3414 _ACEOF
3416 U= ANSI2KNR=
3417 else
3418 echo "$as_me:$LINENO: result: no" >&5
3419 echo "${ECHO_T}no" >&6
3420 U=_ ANSI2KNR=ansi2knr
3423 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3424 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3425 if test "${ac_cv_c_const+set}" = set; then
3426 echo $ECHO_N "(cached) $ECHO_C" >&6
3427 else
3428 cat >conftest.$ac_ext <<_ACEOF
3429 /* confdefs.h. */
3430 _ACEOF
3431 cat confdefs.h >>conftest.$ac_ext
3432 cat >>conftest.$ac_ext <<_ACEOF
3433 /* end confdefs.h. */
3436 main ()
3438 /* FIXME: Include the comments suggested by Paul. */
3439 #ifndef __cplusplus
3440 /* Ultrix mips cc rejects this. */
3441 typedef int charset[2];
3442 const charset x;
3443 /* SunOS 4.1.1 cc rejects this. */
3444 char const *const *ccp;
3445 char **p;
3446 /* NEC SVR4.0.2 mips cc rejects this. */
3447 struct point {int x, y;};
3448 static struct point const zero = {0,0};
3449 /* AIX XL C 1.02.0.0 rejects this.
3450 It does not let you subtract one const X* pointer from another in
3451 an arm of an if-expression whose if-part is not a constant
3452 expression */
3453 const char *g = "string";
3454 ccp = &g + (g ? g-g : 0);
3455 /* HPUX 7.0 cc rejects these. */
3456 ++ccp;
3457 p = (char**) ccp;
3458 ccp = (char const *const *) p;
3459 { /* SCO 3.2v4 cc rejects this. */
3460 char *t;
3461 char const *s = 0 ? (char *) 0 : (char const *) 0;
3463 *t++ = 0;
3465 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3466 int x[] = {25, 17};
3467 const int *foo = &x[0];
3468 ++foo;
3470 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3471 typedef const int *iptr;
3472 iptr p = 0;
3473 ++p;
3475 { /* AIX XL C 1.02.0.0 rejects this saying
3476 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3477 struct s { int j; const int *ap[3]; };
3478 struct s *b; b->j = 5;
3480 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3481 const int foo = 10;
3483 #endif
3486 return 0;
3488 _ACEOF
3489 rm -f conftest.$ac_objext
3490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3491 (eval $ac_compile) 2>conftest.er1
3492 ac_status=$?
3493 grep -v '^ *+' conftest.er1 >conftest.err
3494 rm -f conftest.er1
3495 cat conftest.err >&5
3496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 (exit $ac_status); } &&
3498 { ac_try='test -z "$ac_c_werror_flag"
3499 || test ! -s conftest.err'
3500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3501 (eval $ac_try) 2>&5
3502 ac_status=$?
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); }; } &&
3505 { ac_try='test -s conftest.$ac_objext'
3506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3507 (eval $ac_try) 2>&5
3508 ac_status=$?
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); }; }; then
3511 ac_cv_c_const=yes
3512 else
3513 echo "$as_me: failed program was:" >&5
3514 sed 's/^/| /' conftest.$ac_ext >&5
3516 ac_cv_c_const=no
3518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3520 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3521 echo "${ECHO_T}$ac_cv_c_const" >&6
3522 if test $ac_cv_c_const = no; then
3524 cat >>confdefs.h <<\_ACEOF
3525 #define const
3526 _ACEOF
3536 for ac_header in limits.h memory.h siginfo.h string.h unistd.h
3538 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3540 echo "$as_me:$LINENO: checking for $ac_header" >&5
3541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3542 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3546 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3547 else
3548 # Is the header compilable?
3549 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3550 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3551 cat >conftest.$ac_ext <<_ACEOF
3552 /* confdefs.h. */
3553 _ACEOF
3554 cat confdefs.h >>conftest.$ac_ext
3555 cat >>conftest.$ac_ext <<_ACEOF
3556 /* end confdefs.h. */
3557 $ac_includes_default
3558 #include <$ac_header>
3559 _ACEOF
3560 rm -f conftest.$ac_objext
3561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3562 (eval $ac_compile) 2>conftest.er1
3563 ac_status=$?
3564 grep -v '^ *+' conftest.er1 >conftest.err
3565 rm -f conftest.er1
3566 cat conftest.err >&5
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); } &&
3569 { ac_try='test -z "$ac_c_werror_flag"
3570 || test ! -s conftest.err'
3571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3572 (eval $ac_try) 2>&5
3573 ac_status=$?
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); }; } &&
3576 { ac_try='test -s conftest.$ac_objext'
3577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3578 (eval $ac_try) 2>&5
3579 ac_status=$?
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); }; }; then
3582 ac_header_compiler=yes
3583 else
3584 echo "$as_me: failed program was:" >&5
3585 sed 's/^/| /' conftest.$ac_ext >&5
3587 ac_header_compiler=no
3589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3590 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3591 echo "${ECHO_T}$ac_header_compiler" >&6
3593 # Is the header present?
3594 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3595 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3596 cat >conftest.$ac_ext <<_ACEOF
3597 /* confdefs.h. */
3598 _ACEOF
3599 cat confdefs.h >>conftest.$ac_ext
3600 cat >>conftest.$ac_ext <<_ACEOF
3601 /* end confdefs.h. */
3602 #include <$ac_header>
3603 _ACEOF
3604 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3605 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3606 ac_status=$?
3607 grep -v '^ *+' conftest.er1 >conftest.err
3608 rm -f conftest.er1
3609 cat conftest.err >&5
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); } >/dev/null; then
3612 if test -s conftest.err; then
3613 ac_cpp_err=$ac_c_preproc_warn_flag
3614 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3615 else
3616 ac_cpp_err=
3618 else
3619 ac_cpp_err=yes
3621 if test -z "$ac_cpp_err"; then
3622 ac_header_preproc=yes
3623 else
3624 echo "$as_me: failed program was:" >&5
3625 sed 's/^/| /' conftest.$ac_ext >&5
3627 ac_header_preproc=no
3629 rm -f conftest.err conftest.$ac_ext
3630 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3631 echo "${ECHO_T}$ac_header_preproc" >&6
3633 # So? What about this header?
3634 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3635 yes:no: )
3636 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3637 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3638 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3639 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3640 ac_header_preproc=yes
3642 no:yes:* )
3643 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3644 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3645 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3646 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3647 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3648 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3649 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3650 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3651 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3652 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3653 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3654 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3656 cat <<\_ASBOX
3657 ## ----------------------------- ##
3658 ## Report this to bug-m4@gnu.org ##
3659 ## ----------------------------- ##
3660 _ASBOX
3662 sed "s/^/$as_me: WARNING: /" >&2
3664 esac
3665 echo "$as_me:$LINENO: checking for $ac_header" >&5
3666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3667 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3669 else
3670 eval "$as_ac_Header=\$ac_header_preproc"
3672 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3673 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3676 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3677 cat >>confdefs.h <<_ACEOF
3678 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3679 _ACEOF
3683 done
3687 for ac_header in signal.h sys/signal.h
3689 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3691 echo "$as_me:$LINENO: checking for $ac_header" >&5
3692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3694 echo $ECHO_N "(cached) $ECHO_C" >&6
3696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3697 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3698 else
3699 # Is the header compilable?
3700 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3701 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3702 cat >conftest.$ac_ext <<_ACEOF
3703 /* confdefs.h. */
3704 _ACEOF
3705 cat confdefs.h >>conftest.$ac_ext
3706 cat >>conftest.$ac_ext <<_ACEOF
3707 /* end confdefs.h. */
3708 $ac_includes_default
3709 #include <$ac_header>
3710 _ACEOF
3711 rm -f conftest.$ac_objext
3712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3713 (eval $ac_compile) 2>conftest.er1
3714 ac_status=$?
3715 grep -v '^ *+' conftest.er1 >conftest.err
3716 rm -f conftest.er1
3717 cat conftest.err >&5
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); } &&
3720 { ac_try='test -z "$ac_c_werror_flag"
3721 || test ! -s conftest.err'
3722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3723 (eval $ac_try) 2>&5
3724 ac_status=$?
3725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726 (exit $ac_status); }; } &&
3727 { ac_try='test -s conftest.$ac_objext'
3728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3729 (eval $ac_try) 2>&5
3730 ac_status=$?
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); }; }; then
3733 ac_header_compiler=yes
3734 else
3735 echo "$as_me: failed program was:" >&5
3736 sed 's/^/| /' conftest.$ac_ext >&5
3738 ac_header_compiler=no
3740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3741 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3742 echo "${ECHO_T}$ac_header_compiler" >&6
3744 # Is the header present?
3745 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3746 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3747 cat >conftest.$ac_ext <<_ACEOF
3748 /* confdefs.h. */
3749 _ACEOF
3750 cat confdefs.h >>conftest.$ac_ext
3751 cat >>conftest.$ac_ext <<_ACEOF
3752 /* end confdefs.h. */
3753 #include <$ac_header>
3754 _ACEOF
3755 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3756 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3757 ac_status=$?
3758 grep -v '^ *+' conftest.er1 >conftest.err
3759 rm -f conftest.er1
3760 cat conftest.err >&5
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); } >/dev/null; then
3763 if test -s conftest.err; then
3764 ac_cpp_err=$ac_c_preproc_warn_flag
3765 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3766 else
3767 ac_cpp_err=
3769 else
3770 ac_cpp_err=yes
3772 if test -z "$ac_cpp_err"; then
3773 ac_header_preproc=yes
3774 else
3775 echo "$as_me: failed program was:" >&5
3776 sed 's/^/| /' conftest.$ac_ext >&5
3778 ac_header_preproc=no
3780 rm -f conftest.err conftest.$ac_ext
3781 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3782 echo "${ECHO_T}$ac_header_preproc" >&6
3784 # So? What about this header?
3785 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3786 yes:no: )
3787 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3788 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3790 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3791 ac_header_preproc=yes
3793 no:yes:* )
3794 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3795 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3796 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3797 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3798 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3799 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3800 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3801 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3803 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3804 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3805 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3807 cat <<\_ASBOX
3808 ## ----------------------------- ##
3809 ## Report this to bug-m4@gnu.org ##
3810 ## ----------------------------- ##
3811 _ASBOX
3813 sed "s/^/$as_me: WARNING: /" >&2
3815 esac
3816 echo "$as_me:$LINENO: checking for $ac_header" >&5
3817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3818 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3819 echo $ECHO_N "(cached) $ECHO_C" >&6
3820 else
3821 eval "$as_ac_Header=\$ac_header_preproc"
3823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3824 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3828 cat >>confdefs.h <<_ACEOF
3829 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3830 _ACEOF
3831 break
3834 done
3836 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3837 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3838 if test "${ac_cv_header_stdc+set}" = set; then
3839 echo $ECHO_N "(cached) $ECHO_C" >&6
3840 else
3841 cat >conftest.$ac_ext <<_ACEOF
3842 /* confdefs.h. */
3843 _ACEOF
3844 cat confdefs.h >>conftest.$ac_ext
3845 cat >>conftest.$ac_ext <<_ACEOF
3846 /* end confdefs.h. */
3847 #include <stdlib.h>
3848 #include <stdarg.h>
3849 #include <string.h>
3850 #include <float.h>
3853 main ()
3857 return 0;
3859 _ACEOF
3860 rm -f conftest.$ac_objext
3861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3862 (eval $ac_compile) 2>conftest.er1
3863 ac_status=$?
3864 grep -v '^ *+' conftest.er1 >conftest.err
3865 rm -f conftest.er1
3866 cat conftest.err >&5
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); } &&
3869 { ac_try='test -z "$ac_c_werror_flag"
3870 || test ! -s conftest.err'
3871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3872 (eval $ac_try) 2>&5
3873 ac_status=$?
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); }; } &&
3876 { ac_try='test -s conftest.$ac_objext'
3877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3878 (eval $ac_try) 2>&5
3879 ac_status=$?
3880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881 (exit $ac_status); }; }; then
3882 ac_cv_header_stdc=yes
3883 else
3884 echo "$as_me: failed program was:" >&5
3885 sed 's/^/| /' conftest.$ac_ext >&5
3887 ac_cv_header_stdc=no
3889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3891 if test $ac_cv_header_stdc = yes; then
3892 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3893 cat >conftest.$ac_ext <<_ACEOF
3894 /* confdefs.h. */
3895 _ACEOF
3896 cat confdefs.h >>conftest.$ac_ext
3897 cat >>conftest.$ac_ext <<_ACEOF
3898 /* end confdefs.h. */
3899 #include <string.h>
3901 _ACEOF
3902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3903 $EGREP "memchr" >/dev/null 2>&1; then
3905 else
3906 ac_cv_header_stdc=no
3908 rm -f conftest*
3912 if test $ac_cv_header_stdc = yes; then
3913 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3914 cat >conftest.$ac_ext <<_ACEOF
3915 /* confdefs.h. */
3916 _ACEOF
3917 cat confdefs.h >>conftest.$ac_ext
3918 cat >>conftest.$ac_ext <<_ACEOF
3919 /* end confdefs.h. */
3920 #include <stdlib.h>
3922 _ACEOF
3923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3924 $EGREP "free" >/dev/null 2>&1; then
3926 else
3927 ac_cv_header_stdc=no
3929 rm -f conftest*
3933 if test $ac_cv_header_stdc = yes; then
3934 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3935 if test "$cross_compiling" = yes; then
3937 else
3938 cat >conftest.$ac_ext <<_ACEOF
3939 /* confdefs.h. */
3940 _ACEOF
3941 cat confdefs.h >>conftest.$ac_ext
3942 cat >>conftest.$ac_ext <<_ACEOF
3943 /* end confdefs.h. */
3944 #include <ctype.h>
3945 #if ((' ' & 0x0FF) == 0x020)
3946 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3947 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3948 #else
3949 # define ISLOWER(c) \
3950 (('a' <= (c) && (c) <= 'i') \
3951 || ('j' <= (c) && (c) <= 'r') \
3952 || ('s' <= (c) && (c) <= 'z'))
3953 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3954 #endif
3956 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3958 main ()
3960 int i;
3961 for (i = 0; i < 256; i++)
3962 if (XOR (islower (i), ISLOWER (i))
3963 || toupper (i) != TOUPPER (i))
3964 exit(2);
3965 exit (0);
3967 _ACEOF
3968 rm -f conftest$ac_exeext
3969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3970 (eval $ac_link) 2>&5
3971 ac_status=$?
3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3975 (eval $ac_try) 2>&5
3976 ac_status=$?
3977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); }; }; then
3980 else
3981 echo "$as_me: program exited with status $ac_status" >&5
3982 echo "$as_me: failed program was:" >&5
3983 sed 's/^/| /' conftest.$ac_ext >&5
3985 ( exit $ac_status )
3986 ac_cv_header_stdc=no
3988 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3992 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3993 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3994 if test $ac_cv_header_stdc = yes; then
3996 cat >>confdefs.h <<\_ACEOF
3997 #define STDC_HEADERS 1
3998 _ACEOF
4002 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4003 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4004 if test "${ac_cv_type_signal+set}" = set; then
4005 echo $ECHO_N "(cached) $ECHO_C" >&6
4006 else
4007 cat >conftest.$ac_ext <<_ACEOF
4008 /* confdefs.h. */
4009 _ACEOF
4010 cat confdefs.h >>conftest.$ac_ext
4011 cat >>conftest.$ac_ext <<_ACEOF
4012 /* end confdefs.h. */
4013 #include <sys/types.h>
4014 #include <signal.h>
4015 #ifdef signal
4016 # undef signal
4017 #endif
4018 #ifdef __cplusplus
4019 extern "C" void (*signal (int, void (*)(int)))(int);
4020 #else
4021 void (*signal ()) ();
4022 #endif
4025 main ()
4027 int i;
4029 return 0;
4031 _ACEOF
4032 rm -f conftest.$ac_objext
4033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4034 (eval $ac_compile) 2>conftest.er1
4035 ac_status=$?
4036 grep -v '^ *+' conftest.er1 >conftest.err
4037 rm -f conftest.er1
4038 cat conftest.err >&5
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); } &&
4041 { ac_try='test -z "$ac_c_werror_flag"
4042 || test ! -s conftest.err'
4043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4044 (eval $ac_try) 2>&5
4045 ac_status=$?
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); }; } &&
4048 { ac_try='test -s conftest.$ac_objext'
4049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4050 (eval $ac_try) 2>&5
4051 ac_status=$?
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); }; }; then
4054 ac_cv_type_signal=void
4055 else
4056 echo "$as_me: failed program was:" >&5
4057 sed 's/^/| /' conftest.$ac_ext >&5
4059 ac_cv_type_signal=int
4061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4063 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4064 echo "${ECHO_T}$ac_cv_type_signal" >&6
4066 cat >>confdefs.h <<_ACEOF
4067 #define RETSIGTYPE $ac_cv_type_signal
4068 _ACEOF
4071 echo "$as_me:$LINENO: checking for size_t" >&5
4072 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4073 if test "${ac_cv_type_size_t+set}" = set; then
4074 echo $ECHO_N "(cached) $ECHO_C" >&6
4075 else
4076 cat >conftest.$ac_ext <<_ACEOF
4077 /* confdefs.h. */
4078 _ACEOF
4079 cat confdefs.h >>conftest.$ac_ext
4080 cat >>conftest.$ac_ext <<_ACEOF
4081 /* end confdefs.h. */
4082 $ac_includes_default
4084 main ()
4086 if ((size_t *) 0)
4087 return 0;
4088 if (sizeof (size_t))
4089 return 0;
4091 return 0;
4093 _ACEOF
4094 rm -f conftest.$ac_objext
4095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4096 (eval $ac_compile) 2>conftest.er1
4097 ac_status=$?
4098 grep -v '^ *+' conftest.er1 >conftest.err
4099 rm -f conftest.er1
4100 cat conftest.err >&5
4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); } &&
4103 { ac_try='test -z "$ac_c_werror_flag"
4104 || test ! -s conftest.err'
4105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4106 (eval $ac_try) 2>&5
4107 ac_status=$?
4108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109 (exit $ac_status); }; } &&
4110 { ac_try='test -s conftest.$ac_objext'
4111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4112 (eval $ac_try) 2>&5
4113 ac_status=$?
4114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115 (exit $ac_status); }; }; then
4116 ac_cv_type_size_t=yes
4117 else
4118 echo "$as_me: failed program was:" >&5
4119 sed 's/^/| /' conftest.$ac_ext >&5
4121 ac_cv_type_size_t=no
4123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4125 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4126 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4127 if test $ac_cv_type_size_t = yes; then
4129 else
4131 cat >>confdefs.h <<_ACEOF
4132 #define size_t unsigned
4133 _ACEOF
4145 for ac_func in mkstemp sigaction sigaltstack sigstack sigvec strerror tmpfile
4147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4148 echo "$as_me:$LINENO: checking for $ac_func" >&5
4149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4150 if eval "test \"\${$as_ac_var+set}\" = set"; then
4151 echo $ECHO_N "(cached) $ECHO_C" >&6
4152 else
4153 cat >conftest.$ac_ext <<_ACEOF
4154 /* confdefs.h. */
4155 _ACEOF
4156 cat confdefs.h >>conftest.$ac_ext
4157 cat >>conftest.$ac_ext <<_ACEOF
4158 /* end confdefs.h. */
4159 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4161 #define $ac_func innocuous_$ac_func
4163 /* System header to define __stub macros and hopefully few prototypes,
4164 which can conflict with char $ac_func (); below.
4165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4166 <limits.h> exists even on freestanding compilers. */
4168 #ifdef __STDC__
4169 # include <limits.h>
4170 #else
4171 # include <assert.h>
4172 #endif
4174 #undef $ac_func
4176 /* Override any gcc2 internal prototype to avoid an error. */
4177 #ifdef __cplusplus
4178 extern "C"
4180 #endif
4181 /* We use char because int might match the return type of a gcc2
4182 builtin and then its argument prototype would still apply. */
4183 char $ac_func ();
4184 /* The GNU C library defines this for functions which it implements
4185 to always fail with ENOSYS. Some functions are actually named
4186 something starting with __ and the normal name is an alias. */
4187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4188 choke me
4189 #else
4190 char (*f) () = $ac_func;
4191 #endif
4192 #ifdef __cplusplus
4194 #endif
4197 main ()
4199 return f != $ac_func;
4201 return 0;
4203 _ACEOF
4204 rm -f conftest.$ac_objext conftest$ac_exeext
4205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4206 (eval $ac_link) 2>conftest.er1
4207 ac_status=$?
4208 grep -v '^ *+' conftest.er1 >conftest.err
4209 rm -f conftest.er1
4210 cat conftest.err >&5
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); } &&
4213 { ac_try='test -z "$ac_c_werror_flag"
4214 || test ! -s conftest.err'
4215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4216 (eval $ac_try) 2>&5
4217 ac_status=$?
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); }; } &&
4220 { ac_try='test -s conftest$ac_exeext'
4221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4222 (eval $ac_try) 2>&5
4223 ac_status=$?
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); }; }; then
4226 eval "$as_ac_var=yes"
4227 else
4228 echo "$as_me: failed program was:" >&5
4229 sed 's/^/| /' conftest.$ac_ext >&5
4231 eval "$as_ac_var=no"
4233 rm -f conftest.err conftest.$ac_objext \
4234 conftest$ac_exeext conftest.$ac_ext
4236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4237 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4238 if test `eval echo '${'$as_ac_var'}'` = yes; then
4239 cat >>confdefs.h <<_ACEOF
4240 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4241 _ACEOF
4244 done
4246 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4247 # for constant arguments. Useless!
4248 echo "$as_me:$LINENO: checking for working alloca.h" >&5
4249 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4250 if test "${ac_cv_working_alloca_h+set}" = set; then
4251 echo $ECHO_N "(cached) $ECHO_C" >&6
4252 else
4253 cat >conftest.$ac_ext <<_ACEOF
4254 /* confdefs.h. */
4255 _ACEOF
4256 cat confdefs.h >>conftest.$ac_ext
4257 cat >>conftest.$ac_ext <<_ACEOF
4258 /* end confdefs.h. */
4259 #include <alloca.h>
4261 main ()
4263 char *p = (char *) alloca (2 * sizeof (int));
4265 return 0;
4267 _ACEOF
4268 rm -f conftest.$ac_objext conftest$ac_exeext
4269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4270 (eval $ac_link) 2>conftest.er1
4271 ac_status=$?
4272 grep -v '^ *+' conftest.er1 >conftest.err
4273 rm -f conftest.er1
4274 cat conftest.err >&5
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); } &&
4277 { ac_try='test -z "$ac_c_werror_flag"
4278 || test ! -s conftest.err'
4279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4280 (eval $ac_try) 2>&5
4281 ac_status=$?
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); }; } &&
4284 { ac_try='test -s conftest$ac_exeext'
4285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4286 (eval $ac_try) 2>&5
4287 ac_status=$?
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); }; }; then
4290 ac_cv_working_alloca_h=yes
4291 else
4292 echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4295 ac_cv_working_alloca_h=no
4297 rm -f conftest.err conftest.$ac_objext \
4298 conftest$ac_exeext conftest.$ac_ext
4300 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
4301 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4302 if test $ac_cv_working_alloca_h = yes; then
4304 cat >>confdefs.h <<\_ACEOF
4305 #define HAVE_ALLOCA_H 1
4306 _ACEOF
4310 echo "$as_me:$LINENO: checking for alloca" >&5
4311 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
4312 if test "${ac_cv_func_alloca_works+set}" = set; then
4313 echo $ECHO_N "(cached) $ECHO_C" >&6
4314 else
4315 cat >conftest.$ac_ext <<_ACEOF
4316 /* confdefs.h. */
4317 _ACEOF
4318 cat confdefs.h >>conftest.$ac_ext
4319 cat >>conftest.$ac_ext <<_ACEOF
4320 /* end confdefs.h. */
4321 #ifdef __GNUC__
4322 # define alloca __builtin_alloca
4323 #else
4324 # ifdef _MSC_VER
4325 # include <malloc.h>
4326 # define alloca _alloca
4327 # else
4328 # if HAVE_ALLOCA_H
4329 # include <alloca.h>
4330 # else
4331 # ifdef _AIX
4332 #pragma alloca
4333 # else
4334 # ifndef alloca /* predefined by HP cc +Olibcalls */
4335 char *alloca ();
4336 # endif
4337 # endif
4338 # endif
4339 # endif
4340 #endif
4343 main ()
4345 char *p = (char *) alloca (1);
4347 return 0;
4349 _ACEOF
4350 rm -f conftest.$ac_objext conftest$ac_exeext
4351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4352 (eval $ac_link) 2>conftest.er1
4353 ac_status=$?
4354 grep -v '^ *+' conftest.er1 >conftest.err
4355 rm -f conftest.er1
4356 cat conftest.err >&5
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); } &&
4359 { ac_try='test -z "$ac_c_werror_flag"
4360 || test ! -s conftest.err'
4361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4362 (eval $ac_try) 2>&5
4363 ac_status=$?
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); }; } &&
4366 { ac_try='test -s conftest$ac_exeext'
4367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4368 (eval $ac_try) 2>&5
4369 ac_status=$?
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); }; }; then
4372 ac_cv_func_alloca_works=yes
4373 else
4374 echo "$as_me: failed program was:" >&5
4375 sed 's/^/| /' conftest.$ac_ext >&5
4377 ac_cv_func_alloca_works=no
4379 rm -f conftest.err conftest.$ac_objext \
4380 conftest$ac_exeext conftest.$ac_ext
4382 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
4383 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
4385 if test $ac_cv_func_alloca_works = yes; then
4387 cat >>confdefs.h <<\_ACEOF
4388 #define HAVE_ALLOCA 1
4389 _ACEOF
4391 else
4392 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4393 # that cause trouble. Some versions do not even contain alloca or
4394 # contain a buggy version. If you still want to use their alloca,
4395 # use ar to extract alloca.o from them instead of compiling alloca.c.
4397 ALLOCA=alloca.$ac_objext
4399 cat >>confdefs.h <<\_ACEOF
4400 #define C_ALLOCA 1
4401 _ACEOF
4404 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
4405 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
4406 if test "${ac_cv_os_cray+set}" = set; then
4407 echo $ECHO_N "(cached) $ECHO_C" >&6
4408 else
4409 cat >conftest.$ac_ext <<_ACEOF
4410 /* confdefs.h. */
4411 _ACEOF
4412 cat confdefs.h >>conftest.$ac_ext
4413 cat >>conftest.$ac_ext <<_ACEOF
4414 /* end confdefs.h. */
4415 #if defined(CRAY) && ! defined(CRAY2)
4416 webecray
4417 #else
4418 wenotbecray
4419 #endif
4421 _ACEOF
4422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4423 $EGREP "webecray" >/dev/null 2>&1; then
4424 ac_cv_os_cray=yes
4425 else
4426 ac_cv_os_cray=no
4428 rm -f conftest*
4431 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
4432 echo "${ECHO_T}$ac_cv_os_cray" >&6
4433 if test $ac_cv_os_cray = yes; then
4434 for ac_func in _getb67 GETB67 getb67; do
4435 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4436 echo "$as_me:$LINENO: checking for $ac_func" >&5
4437 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4438 if eval "test \"\${$as_ac_var+set}\" = set"; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4440 else
4441 cat >conftest.$ac_ext <<_ACEOF
4442 /* confdefs.h. */
4443 _ACEOF
4444 cat confdefs.h >>conftest.$ac_ext
4445 cat >>conftest.$ac_ext <<_ACEOF
4446 /* end confdefs.h. */
4447 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4448 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4449 #define $ac_func innocuous_$ac_func
4451 /* System header to define __stub macros and hopefully few prototypes,
4452 which can conflict with char $ac_func (); below.
4453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4454 <limits.h> exists even on freestanding compilers. */
4456 #ifdef __STDC__
4457 # include <limits.h>
4458 #else
4459 # include <assert.h>
4460 #endif
4462 #undef $ac_func
4464 /* Override any gcc2 internal prototype to avoid an error. */
4465 #ifdef __cplusplus
4466 extern "C"
4468 #endif
4469 /* We use char because int might match the return type of a gcc2
4470 builtin and then its argument prototype would still apply. */
4471 char $ac_func ();
4472 /* The GNU C library defines this for functions which it implements
4473 to always fail with ENOSYS. Some functions are actually named
4474 something starting with __ and the normal name is an alias. */
4475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4476 choke me
4477 #else
4478 char (*f) () = $ac_func;
4479 #endif
4480 #ifdef __cplusplus
4482 #endif
4485 main ()
4487 return f != $ac_func;
4489 return 0;
4491 _ACEOF
4492 rm -f conftest.$ac_objext conftest$ac_exeext
4493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4494 (eval $ac_link) 2>conftest.er1
4495 ac_status=$?
4496 grep -v '^ *+' conftest.er1 >conftest.err
4497 rm -f conftest.er1
4498 cat conftest.err >&5
4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); } &&
4501 { ac_try='test -z "$ac_c_werror_flag"
4502 || test ! -s conftest.err'
4503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4504 (eval $ac_try) 2>&5
4505 ac_status=$?
4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507 (exit $ac_status); }; } &&
4508 { ac_try='test -s conftest$ac_exeext'
4509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4510 (eval $ac_try) 2>&5
4511 ac_status=$?
4512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513 (exit $ac_status); }; }; then
4514 eval "$as_ac_var=yes"
4515 else
4516 echo "$as_me: failed program was:" >&5
4517 sed 's/^/| /' conftest.$ac_ext >&5
4519 eval "$as_ac_var=no"
4521 rm -f conftest.err conftest.$ac_objext \
4522 conftest$ac_exeext conftest.$ac_ext
4524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4525 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4526 if test `eval echo '${'$as_ac_var'}'` = yes; then
4528 cat >>confdefs.h <<_ACEOF
4529 #define CRAY_STACKSEG_END $ac_func
4530 _ACEOF
4532 break
4535 done
4538 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
4539 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4540 if test "${ac_cv_c_stack_direction+set}" = set; then
4541 echo $ECHO_N "(cached) $ECHO_C" >&6
4542 else
4543 if test "$cross_compiling" = yes; then
4544 ac_cv_c_stack_direction=0
4545 else
4546 cat >conftest.$ac_ext <<_ACEOF
4547 /* confdefs.h. */
4548 _ACEOF
4549 cat confdefs.h >>conftest.$ac_ext
4550 cat >>conftest.$ac_ext <<_ACEOF
4551 /* end confdefs.h. */
4553 find_stack_direction ()
4555 static char *addr = 0;
4556 auto char dummy;
4557 if (addr == 0)
4559 addr = &dummy;
4560 return find_stack_direction ();
4562 else
4563 return (&dummy > addr) ? 1 : -1;
4567 main ()
4569 exit (find_stack_direction () < 0);
4571 _ACEOF
4572 rm -f conftest$ac_exeext
4573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4574 (eval $ac_link) 2>&5
4575 ac_status=$?
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4579 (eval $ac_try) 2>&5
4580 ac_status=$?
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); }; }; then
4583 ac_cv_c_stack_direction=1
4584 else
4585 echo "$as_me: program exited with status $ac_status" >&5
4586 echo "$as_me: failed program was:" >&5
4587 sed 's/^/| /' conftest.$ac_ext >&5
4589 ( exit $ac_status )
4590 ac_cv_c_stack_direction=-1
4592 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4595 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4596 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4598 cat >>confdefs.h <<_ACEOF
4599 #define STACK_DIRECTION $ac_cv_c_stack_direction
4600 _ACEOF
4606 for ac_func in vprintf
4608 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4609 echo "$as_me:$LINENO: checking for $ac_func" >&5
4610 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4611 if eval "test \"\${$as_ac_var+set}\" = set"; then
4612 echo $ECHO_N "(cached) $ECHO_C" >&6
4613 else
4614 cat >conftest.$ac_ext <<_ACEOF
4615 /* confdefs.h. */
4616 _ACEOF
4617 cat confdefs.h >>conftest.$ac_ext
4618 cat >>conftest.$ac_ext <<_ACEOF
4619 /* end confdefs.h. */
4620 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4622 #define $ac_func innocuous_$ac_func
4624 /* System header to define __stub macros and hopefully few prototypes,
4625 which can conflict with char $ac_func (); below.
4626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4627 <limits.h> exists even on freestanding compilers. */
4629 #ifdef __STDC__
4630 # include <limits.h>
4631 #else
4632 # include <assert.h>
4633 #endif
4635 #undef $ac_func
4637 /* Override any gcc2 internal prototype to avoid an error. */
4638 #ifdef __cplusplus
4639 extern "C"
4641 #endif
4642 /* We use char because int might match the return type of a gcc2
4643 builtin and then its argument prototype would still apply. */
4644 char $ac_func ();
4645 /* The GNU C library defines this for functions which it implements
4646 to always fail with ENOSYS. Some functions are actually named
4647 something starting with __ and the normal name is an alias. */
4648 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4649 choke me
4650 #else
4651 char (*f) () = $ac_func;
4652 #endif
4653 #ifdef __cplusplus
4655 #endif
4658 main ()
4660 return f != $ac_func;
4662 return 0;
4664 _ACEOF
4665 rm -f conftest.$ac_objext conftest$ac_exeext
4666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4667 (eval $ac_link) 2>conftest.er1
4668 ac_status=$?
4669 grep -v '^ *+' conftest.er1 >conftest.err
4670 rm -f conftest.er1
4671 cat conftest.err >&5
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); } &&
4674 { ac_try='test -z "$ac_c_werror_flag"
4675 || test ! -s conftest.err'
4676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4677 (eval $ac_try) 2>&5
4678 ac_status=$?
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); }; } &&
4681 { ac_try='test -s conftest$ac_exeext'
4682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4683 (eval $ac_try) 2>&5
4684 ac_status=$?
4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686 (exit $ac_status); }; }; then
4687 eval "$as_ac_var=yes"
4688 else
4689 echo "$as_me: failed program was:" >&5
4690 sed 's/^/| /' conftest.$ac_ext >&5
4692 eval "$as_ac_var=no"
4694 rm -f conftest.err conftest.$ac_objext \
4695 conftest$ac_exeext conftest.$ac_ext
4697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4698 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4699 if test `eval echo '${'$as_ac_var'}'` = yes; then
4700 cat >>confdefs.h <<_ACEOF
4701 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4702 _ACEOF
4704 echo "$as_me:$LINENO: checking for _doprnt" >&5
4705 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
4706 if test "${ac_cv_func__doprnt+set}" = set; then
4707 echo $ECHO_N "(cached) $ECHO_C" >&6
4708 else
4709 cat >conftest.$ac_ext <<_ACEOF
4710 /* confdefs.h. */
4711 _ACEOF
4712 cat confdefs.h >>conftest.$ac_ext
4713 cat >>conftest.$ac_ext <<_ACEOF
4714 /* end confdefs.h. */
4715 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
4716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4717 #define _doprnt innocuous__doprnt
4719 /* System header to define __stub macros and hopefully few prototypes,
4720 which can conflict with char _doprnt (); below.
4721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4722 <limits.h> exists even on freestanding compilers. */
4724 #ifdef __STDC__
4725 # include <limits.h>
4726 #else
4727 # include <assert.h>
4728 #endif
4730 #undef _doprnt
4732 /* Override any gcc2 internal prototype to avoid an error. */
4733 #ifdef __cplusplus
4734 extern "C"
4736 #endif
4737 /* We use char because int might match the return type of a gcc2
4738 builtin and then its argument prototype would still apply. */
4739 char _doprnt ();
4740 /* The GNU C library defines this for functions which it implements
4741 to always fail with ENOSYS. Some functions are actually named
4742 something starting with __ and the normal name is an alias. */
4743 #if defined (__stub__doprnt) || defined (__stub____doprnt)
4744 choke me
4745 #else
4746 char (*f) () = _doprnt;
4747 #endif
4748 #ifdef __cplusplus
4750 #endif
4753 main ()
4755 return f != _doprnt;
4757 return 0;
4759 _ACEOF
4760 rm -f conftest.$ac_objext conftest$ac_exeext
4761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4762 (eval $ac_link) 2>conftest.er1
4763 ac_status=$?
4764 grep -v '^ *+' conftest.er1 >conftest.err
4765 rm -f conftest.er1
4766 cat conftest.err >&5
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); } &&
4769 { ac_try='test -z "$ac_c_werror_flag"
4770 || test ! -s conftest.err'
4771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4772 (eval $ac_try) 2>&5
4773 ac_status=$?
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); }; } &&
4776 { ac_try='test -s conftest$ac_exeext'
4777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4778 (eval $ac_try) 2>&5
4779 ac_status=$?
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); }; }; then
4782 ac_cv_func__doprnt=yes
4783 else
4784 echo "$as_me: failed program was:" >&5
4785 sed 's/^/| /' conftest.$ac_ext >&5
4787 ac_cv_func__doprnt=no
4789 rm -f conftest.err conftest.$ac_objext \
4790 conftest$ac_exeext conftest.$ac_ext
4792 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
4793 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
4794 if test $ac_cv_func__doprnt = yes; then
4796 cat >>confdefs.h <<\_ACEOF
4797 #define HAVE_DOPRNT 1
4798 _ACEOF
4803 done
4807 for ac_func in strtol
4809 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4810 echo "$as_me:$LINENO: checking for $ac_func" >&5
4811 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4812 if eval "test \"\${$as_ac_var+set}\" = set"; then
4813 echo $ECHO_N "(cached) $ECHO_C" >&6
4814 else
4815 cat >conftest.$ac_ext <<_ACEOF
4816 /* confdefs.h. */
4817 _ACEOF
4818 cat confdefs.h >>conftest.$ac_ext
4819 cat >>conftest.$ac_ext <<_ACEOF
4820 /* end confdefs.h. */
4821 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4823 #define $ac_func innocuous_$ac_func
4825 /* System header to define __stub macros and hopefully few prototypes,
4826 which can conflict with char $ac_func (); below.
4827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4828 <limits.h> exists even on freestanding compilers. */
4830 #ifdef __STDC__
4831 # include <limits.h>
4832 #else
4833 # include <assert.h>
4834 #endif
4836 #undef $ac_func
4838 /* Override any gcc2 internal prototype to avoid an error. */
4839 #ifdef __cplusplus
4840 extern "C"
4842 #endif
4843 /* We use char because int might match the return type of a gcc2
4844 builtin and then its argument prototype would still apply. */
4845 char $ac_func ();
4846 /* The GNU C library defines this for functions which it implements
4847 to always fail with ENOSYS. Some functions are actually named
4848 something starting with __ and the normal name is an alias. */
4849 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4850 choke me
4851 #else
4852 char (*f) () = $ac_func;
4853 #endif
4854 #ifdef __cplusplus
4856 #endif
4859 main ()
4861 return f != $ac_func;
4863 return 0;
4865 _ACEOF
4866 rm -f conftest.$ac_objext conftest$ac_exeext
4867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4868 (eval $ac_link) 2>conftest.er1
4869 ac_status=$?
4870 grep -v '^ *+' conftest.er1 >conftest.err
4871 rm -f conftest.er1
4872 cat conftest.err >&5
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); } &&
4875 { ac_try='test -z "$ac_c_werror_flag"
4876 || test ! -s conftest.err'
4877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4878 (eval $ac_try) 2>&5
4879 ac_status=$?
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); }; } &&
4882 { ac_try='test -s conftest$ac_exeext'
4883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4884 (eval $ac_try) 2>&5
4885 ac_status=$?
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); }; }; then
4888 eval "$as_ac_var=yes"
4889 else
4890 echo "$as_me: failed program was:" >&5
4891 sed 's/^/| /' conftest.$ac_ext >&5
4893 eval "$as_ac_var=no"
4895 rm -f conftest.err conftest.$ac_objext \
4896 conftest$ac_exeext conftest.$ac_ext
4898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4899 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4900 if test `eval echo '${'$as_ac_var'}'` = yes; then
4901 cat >>confdefs.h <<_ACEOF
4902 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4903 _ACEOF
4905 else
4906 case $LIBOBJS in
4907 "$ac_func.$ac_objext" | \
4908 *" $ac_func.$ac_objext" | \
4909 "$ac_func.$ac_objext "* | \
4910 *" $ac_func.$ac_objext "* ) ;;
4911 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
4912 esac
4915 done
4920 echo "$as_me:$LINENO: checking ecvt declaration" >&5
4921 echo $ECHO_N "checking ecvt declaration... $ECHO_C" >&6
4922 cat >conftest.$ac_ext <<_ACEOF
4923 /* confdefs.h. */
4924 _ACEOF
4925 cat confdefs.h >>conftest.$ac_ext
4926 cat >>conftest.$ac_ext <<_ACEOF
4927 /* end confdefs.h. */
4928 #include <stdlib.h>
4930 _ACEOF
4931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4932 $EGREP "ecvt" >/dev/null 2>&1; then
4933 echo "$as_me:$LINENO: result: yes" >&5
4934 echo "${ECHO_T}yes" >&6
4936 cat >>confdefs.h <<\_ACEOF
4937 #define HAVE_EFGCVT 2
4938 _ACEOF
4941 else
4942 echo "$as_me:$LINENO: result: no" >&5
4943 echo "${ECHO_T}no" >&6;
4944 for ac_func in ecvt
4946 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4947 echo "$as_me:$LINENO: checking for $ac_func" >&5
4948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4949 if eval "test \"\${$as_ac_var+set}\" = set"; then
4950 echo $ECHO_N "(cached) $ECHO_C" >&6
4951 else
4952 cat >conftest.$ac_ext <<_ACEOF
4953 /* confdefs.h. */
4954 _ACEOF
4955 cat confdefs.h >>conftest.$ac_ext
4956 cat >>conftest.$ac_ext <<_ACEOF
4957 /* end confdefs.h. */
4958 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4959 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4960 #define $ac_func innocuous_$ac_func
4962 /* System header to define __stub macros and hopefully few prototypes,
4963 which can conflict with char $ac_func (); below.
4964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4965 <limits.h> exists even on freestanding compilers. */
4967 #ifdef __STDC__
4968 # include <limits.h>
4969 #else
4970 # include <assert.h>
4971 #endif
4973 #undef $ac_func
4975 /* Override any gcc2 internal prototype to avoid an error. */
4976 #ifdef __cplusplus
4977 extern "C"
4979 #endif
4980 /* We use char because int might match the return type of a gcc2
4981 builtin and then its argument prototype would still apply. */
4982 char $ac_func ();
4983 /* The GNU C library defines this for functions which it implements
4984 to always fail with ENOSYS. Some functions are actually named
4985 something starting with __ and the normal name is an alias. */
4986 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4987 choke me
4988 #else
4989 char (*f) () = $ac_func;
4990 #endif
4991 #ifdef __cplusplus
4993 #endif
4996 main ()
4998 return f != $ac_func;
5000 return 0;
5002 _ACEOF
5003 rm -f conftest.$ac_objext conftest$ac_exeext
5004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5005 (eval $ac_link) 2>conftest.er1
5006 ac_status=$?
5007 grep -v '^ *+' conftest.er1 >conftest.err
5008 rm -f conftest.er1
5009 cat conftest.err >&5
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); } &&
5012 { ac_try='test -z "$ac_c_werror_flag"
5013 || test ! -s conftest.err'
5014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5015 (eval $ac_try) 2>&5
5016 ac_status=$?
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); }; } &&
5019 { ac_try='test -s conftest$ac_exeext'
5020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5021 (eval $ac_try) 2>&5
5022 ac_status=$?
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); }; }; then
5025 eval "$as_ac_var=yes"
5026 else
5027 echo "$as_me: failed program was:" >&5
5028 sed 's/^/| /' conftest.$ac_ext >&5
5030 eval "$as_ac_var=no"
5032 rm -f conftest.err conftest.$ac_objext \
5033 conftest$ac_exeext conftest.$ac_ext
5035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5036 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5037 if test `eval echo '${'$as_ac_var'}'` = yes; then
5038 cat >>confdefs.h <<_ACEOF
5039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5040 _ACEOF
5043 done
5046 rm -f conftest*
5050 echo "$as_me:$LINENO: checking if stack overflow is detectable" >&5
5051 echo $ECHO_N "checking if stack overflow is detectable... $ECHO_C" >&6
5052 # Code from Jim Avera <jima@netcom.com>.
5053 # stackovf.c requires:
5054 # 1. Either sigaction with SA_ONSTACK, or sigvec with SV_ONSTACK
5055 # 2. Either sigaltstack or sigstack
5056 # 3. getrlimit, including support for RLIMIT_STACK
5057 use_stackovf=no
5058 if test "$ac_cv_func_sigaction" = yes || test "$ac_cv_func_sigvec" = yes; then
5059 if test "$ac_cv_func_sigaltstack" = yes || test "$ac_cv_func_sigstack" = yes; then
5060 cat >conftest.$ac_ext <<_ACEOF
5061 /* confdefs.h. */
5062 _ACEOF
5063 cat confdefs.h >>conftest.$ac_ext
5064 cat >>conftest.$ac_ext <<_ACEOF
5065 /* end confdefs.h. */
5066 #include <sys/time.h>
5067 #include <sys/resource.h>
5068 #include <signal.h>
5070 main ()
5072 struct rlimit r; int i; getrlimit (RLIMIT_STACK, &r)
5073 #if (!defined(HAVE_SIGACTION) || !defined(SA_ONSTACK)) \
5074 && (!defined(HAVE_SIGVEC) || !defined(SV_ONSTACK))
5075 choke me /* SA_ONSTACK and/or SV_ONSTACK are not defined */
5076 #endif
5078 return 0;
5080 _ACEOF
5081 rm -f conftest.$ac_objext conftest$ac_exeext
5082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5083 (eval $ac_link) 2>conftest.er1
5084 ac_status=$?
5085 grep -v '^ *+' conftest.er1 >conftest.err
5086 rm -f conftest.er1
5087 cat conftest.err >&5
5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); } &&
5090 { ac_try='test -z "$ac_c_werror_flag"
5091 || test ! -s conftest.err'
5092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5093 (eval $ac_try) 2>&5
5094 ac_status=$?
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); }; } &&
5097 { ac_try='test -s conftest$ac_exeext'
5098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5099 (eval $ac_try) 2>&5
5100 ac_status=$?
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); }; }; then
5103 use_stackovf=yes
5104 else
5105 echo "$as_me: failed program was:" >&5
5106 sed 's/^/| /' conftest.$ac_ext >&5
5109 rm -f conftest.err conftest.$ac_objext \
5110 conftest$ac_exeext conftest.$ac_ext
5113 echo "$as_me:$LINENO: result: $use_stackovf" >&5
5114 echo "${ECHO_T}$use_stackovf" >&6
5115 if test "$use_stackovf" = yes; then
5117 cat >>confdefs.h <<\_ACEOF
5118 #define USE_STACKOVF 1
5119 _ACEOF
5121 STACKOVF=stackovf.${U}o
5123 cat >conftest.$ac_ext <<_ACEOF
5124 /* confdefs.h. */
5125 _ACEOF
5126 cat confdefs.h >>conftest.$ac_ext
5127 cat >>conftest.$ac_ext <<_ACEOF
5128 /* end confdefs.h. */
5129 #include <sys/resource.h>
5131 _ACEOF
5132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5133 $EGREP "rlim_t" >/dev/null 2>&1; then
5135 else
5137 cat >>confdefs.h <<\_ACEOF
5138 #define rlim_t int
5139 _ACEOF
5143 rm -f conftest*
5145 cat >conftest.$ac_ext <<_ACEOF
5146 /* confdefs.h. */
5147 _ACEOF
5148 cat confdefs.h >>conftest.$ac_ext
5149 cat >>conftest.$ac_ext <<_ACEOF
5150 /* end confdefs.h. */
5151 #include <signal.h>
5153 _ACEOF
5154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5155 $EGREP "stack_t" >/dev/null 2>&1; then
5157 else
5159 cat >>confdefs.h <<\_ACEOF
5160 #define stack_t struct sigaltstack
5161 _ACEOF
5165 rm -f conftest*
5167 cat >conftest.$ac_ext <<_ACEOF
5168 /* confdefs.h. */
5169 _ACEOF
5170 cat confdefs.h >>conftest.$ac_ext
5171 cat >>conftest.$ac_ext <<_ACEOF
5172 /* end confdefs.h. */
5173 #include <signal.h>
5175 _ACEOF
5176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5177 $EGREP "sigcontext" >/dev/null 2>&1; then
5179 cat >>confdefs.h <<\_ACEOF
5180 #define HAVE_SIGCONTEXT 1
5181 _ACEOF
5185 rm -f conftest*
5189 echo "$as_me:$LINENO: checking if changeword is wanted" >&5
5190 echo $ECHO_N "checking if changeword is wanted... $ECHO_C" >&6
5191 # Check whether --enable-changeword or --disable-changeword was given.
5192 if test "${enable_changeword+set}" = set; then
5193 enableval="$enable_changeword"
5194 if test "$enableval" = yes; then
5195 echo "$as_me:$LINENO: result: yes" >&5
5196 echo "${ECHO_T}yes" >&6
5198 cat >>confdefs.h <<\_ACEOF
5199 #define ENABLE_CHANGEWORD 1
5200 _ACEOF
5202 else
5203 echo "$as_me:$LINENO: result: no" >&5
5204 echo "${ECHO_T}no" >&6
5206 else
5207 echo "$as_me:$LINENO: result: no" >&5
5208 echo "${ECHO_T}no" >&6
5211 echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
5212 echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
5214 # Check whether --with-dmalloc or --without-dmalloc was given.
5215 if test "${with_dmalloc+set}" = set; then
5216 withval="$with_dmalloc"
5217 if test "$withval" = yes; then
5218 echo "$as_me:$LINENO: result: yes" >&5
5219 echo "${ECHO_T}yes" >&6
5221 cat >>confdefs.h <<\_ACEOF
5222 #define WITH_DMALLOC 1
5223 _ACEOF
5225 LIBS="$LIBS -ldmalloc"
5226 LDFLAGS="$LDFLAGS -g"
5227 else
5228 echo "$as_me:$LINENO: result: no" >&5
5229 echo "${ECHO_T}no" >&6
5231 else
5232 echo "$as_me:$LINENO: result: no" >&5
5233 echo "${ECHO_T}no" >&6
5236 ac_config_files="$ac_config_files stamp-h"
5239 ac_config_files="$ac_config_files Makefile doc/Makefile lib/Makefile src/Makefile checks/Makefile examples/Makefile"
5242 cat >confcache <<\_ACEOF
5243 # This file is a shell script that caches the results of configure
5244 # tests run on this system so they can be shared between configure
5245 # scripts and configure runs, see configure's option --config-cache.
5246 # It is not useful on other systems. If it contains results you don't
5247 # want to keep, you may remove or edit it.
5249 # config.status only pays attention to the cache file if you give it
5250 # the --recheck option to rerun configure.
5252 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5253 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5254 # following values.
5256 _ACEOF
5258 # The following way of writing the cache mishandles newlines in values,
5259 # but we know of no workaround that is simple, portable, and efficient.
5260 # So, don't put newlines in cache variables' values.
5261 # Ultrix sh set writes to stderr and can't be redirected directly,
5262 # and sets the high bit in the cache file unless we assign to the vars.
5264 (set) 2>&1 |
5265 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5266 *ac_space=\ *)
5267 # `set' does not quote correctly, so add quotes (double-quote
5268 # substitution turns \\\\ into \\, and sed turns \\ into \).
5269 sed -n \
5270 "s/'/'\\\\''/g;
5271 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5274 # `set' quotes correctly as required by POSIX, so do not add quotes.
5275 sed -n \
5276 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5278 esac;
5280 sed '
5281 t clear
5282 : clear
5283 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5284 t end
5285 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5286 : end' >>confcache
5287 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5288 if test -w $cache_file; then
5289 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5290 cat confcache >$cache_file
5291 else
5292 echo "not updating unwritable cache $cache_file"
5295 rm -f confcache
5297 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5298 # Let make expand exec_prefix.
5299 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5301 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5302 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5303 # trailing colons and then remove the whole line if VPATH becomes empty
5304 # (actually we leave an empty line to preserve line numbers).
5305 if test "x$srcdir" = x.; then
5306 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5307 s/:*\$(srcdir):*/:/;
5308 s/:*\${srcdir}:*/:/;
5309 s/:*@srcdir@:*/:/;
5310 s/^\([^=]*=[ ]*\):*/\1/;
5311 s/:*$//;
5312 s/^[^=]*=[ ]*$//;
5316 DEFS=-DHAVE_CONFIG_H
5318 ac_libobjs=
5319 ac_ltlibobjs=
5320 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5321 # 1. Remove the extension, and $U if already installed.
5322 ac_i=`echo "$ac_i" |
5323 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5324 # 2. Add them.
5325 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5326 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5327 done
5328 LIBOBJS=$ac_libobjs
5330 LTLIBOBJS=$ac_ltlibobjs
5334 : ${CONFIG_STATUS=./config.status}
5335 ac_clean_files_save=$ac_clean_files
5336 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5337 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5338 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5339 cat >$CONFIG_STATUS <<_ACEOF
5340 #! $SHELL
5341 # Generated by $as_me.
5342 # Run this file to recreate the current configuration.
5343 # Compiler output produced by configure, useful for debugging
5344 # configure, is in config.log if it exists.
5346 debug=false
5347 ac_cs_recheck=false
5348 ac_cs_silent=false
5349 SHELL=\${CONFIG_SHELL-$SHELL}
5350 _ACEOF
5352 cat >>$CONFIG_STATUS <<\_ACEOF
5353 ## --------------------- ##
5354 ## M4sh Initialization. ##
5355 ## --------------------- ##
5357 # Be Bourne compatible
5358 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5359 emulate sh
5360 NULLCMD=:
5361 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5362 # is contrary to our usage. Disable this feature.
5363 alias -g '${1+"$@"}'='"$@"'
5364 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5365 set -o posix
5367 DUALCASE=1; export DUALCASE # for MKS sh
5369 # Support unset when possible.
5370 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5371 as_unset=unset
5372 else
5373 as_unset=false
5377 # Work around bugs in pre-3.0 UWIN ksh.
5378 $as_unset ENV MAIL MAILPATH
5379 PS1='$ '
5380 PS2='> '
5381 PS4='+ '
5383 # NLS nuisances.
5384 for as_var in \
5385 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5386 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5387 LC_TELEPHONE LC_TIME
5389 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5390 eval $as_var=C; export $as_var
5391 else
5392 $as_unset $as_var
5394 done
5396 # Required to use basename.
5397 if expr a : '\(a\)' >/dev/null 2>&1; then
5398 as_expr=expr
5399 else
5400 as_expr=false
5403 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5404 as_basename=basename
5405 else
5406 as_basename=false
5410 # Name of the executable.
5411 as_me=`$as_basename "$0" ||
5412 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5413 X"$0" : 'X\(//\)$' \| \
5414 X"$0" : 'X\(/\)$' \| \
5415 . : '\(.\)' 2>/dev/null ||
5416 echo X/"$0" |
5417 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5418 /^X\/\(\/\/\)$/{ s//\1/; q; }
5419 /^X\/\(\/\).*/{ s//\1/; q; }
5420 s/.*/./; q'`
5423 # PATH needs CR, and LINENO needs CR and PATH.
5424 # Avoid depending upon Character Ranges.
5425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5428 as_cr_digits='0123456789'
5429 as_cr_alnum=$as_cr_Letters$as_cr_digits
5431 # The user is always right.
5432 if test "${PATH_SEPARATOR+set}" != set; then
5433 echo "#! /bin/sh" >conf$$.sh
5434 echo "exit 0" >>conf$$.sh
5435 chmod +x conf$$.sh
5436 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5437 PATH_SEPARATOR=';'
5438 else
5439 PATH_SEPARATOR=:
5441 rm -f conf$$.sh
5445 as_lineno_1=$LINENO
5446 as_lineno_2=$LINENO
5447 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5448 test "x$as_lineno_1" != "x$as_lineno_2" &&
5449 test "x$as_lineno_3" = "x$as_lineno_2" || {
5450 # Find who we are. Look in the path if we contain no path at all
5451 # relative or not.
5452 case $0 in
5453 *[\\/]* ) as_myself=$0 ;;
5454 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5455 for as_dir in $PATH
5457 IFS=$as_save_IFS
5458 test -z "$as_dir" && as_dir=.
5459 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5460 done
5463 esac
5464 # We did not find ourselves, most probably we were run as `sh COMMAND'
5465 # in which case we are not to be found in the path.
5466 if test "x$as_myself" = x; then
5467 as_myself=$0
5469 if test ! -f "$as_myself"; then
5470 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5471 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5472 { (exit 1); exit 1; }; }
5474 case $CONFIG_SHELL in
5476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5477 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5479 IFS=$as_save_IFS
5480 test -z "$as_dir" && as_dir=.
5481 for as_base in sh bash ksh sh5; do
5482 case $as_dir in
5484 if ("$as_dir/$as_base" -c '
5485 as_lineno_1=$LINENO
5486 as_lineno_2=$LINENO
5487 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5488 test "x$as_lineno_1" != "x$as_lineno_2" &&
5489 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5490 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5491 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5492 CONFIG_SHELL=$as_dir/$as_base
5493 export CONFIG_SHELL
5494 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5495 fi;;
5496 esac
5497 done
5498 done
5500 esac
5502 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5503 # uniformly replaced by the line number. The first 'sed' inserts a
5504 # line-number line before each line; the second 'sed' does the real
5505 # work. The second script uses 'N' to pair each line-number line
5506 # with the numbered line, and appends trailing '-' during
5507 # substitution so that $LINENO is not a special case at line end.
5508 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5509 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5510 sed '=' <$as_myself |
5511 sed '
5513 s,$,-,
5514 : loop
5515 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5516 t loop
5517 s,-$,,
5518 s,^['$as_cr_digits']*\n,,
5519 ' >$as_me.lineno &&
5520 chmod +x $as_me.lineno ||
5521 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5522 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5523 { (exit 1); exit 1; }; }
5525 # Don't try to exec as it changes $[0], causing all sort of problems
5526 # (the dirname of $[0] is not the place where we might find the
5527 # original and so on. Autoconf is especially sensible to this).
5528 . ./$as_me.lineno
5529 # Exit status is that of the last command.
5530 exit
5534 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5535 *c*,-n*) ECHO_N= ECHO_C='
5536 ' ECHO_T=' ' ;;
5537 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5538 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5539 esac
5541 if expr a : '\(a\)' >/dev/null 2>&1; then
5542 as_expr=expr
5543 else
5544 as_expr=false
5547 rm -f conf$$ conf$$.exe conf$$.file
5548 echo >conf$$.file
5549 if ln -s conf$$.file conf$$ 2>/dev/null; then
5550 # We could just check for DJGPP; but this test a) works b) is more generic
5551 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5552 if test -f conf$$.exe; then
5553 # Don't use ln at all; we don't have any links
5554 as_ln_s='cp -p'
5555 else
5556 as_ln_s='ln -s'
5558 elif ln conf$$.file conf$$ 2>/dev/null; then
5559 as_ln_s=ln
5560 else
5561 as_ln_s='cp -p'
5563 rm -f conf$$ conf$$.exe conf$$.file
5565 if mkdir -p . 2>/dev/null; then
5566 as_mkdir_p=:
5567 else
5568 test -d ./-p && rmdir ./-p
5569 as_mkdir_p=false
5572 as_executable_p="test -f"
5574 # Sed expression to map a string onto a valid CPP name.
5575 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5577 # Sed expression to map a string onto a valid variable name.
5578 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5581 # IFS
5582 # We need space, tab and new line, in precisely that order.
5583 as_nl='
5585 IFS=" $as_nl"
5587 # CDPATH.
5588 $as_unset CDPATH
5590 exec 6>&1
5592 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5593 # report actual input values of CONFIG_FILES etc. instead of their
5594 # values after options handling. Logging --version etc. is OK.
5595 exec 5>>config.log
5597 echo
5598 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5599 ## Running $as_me. ##
5600 _ASBOX
5601 } >&5
5602 cat >&5 <<_CSEOF
5604 This file was extended by GNU M4 $as_me 1.4.2a, which was
5605 generated by GNU Autoconf 2.59. Invocation command line was
5607 CONFIG_FILES = $CONFIG_FILES
5608 CONFIG_HEADERS = $CONFIG_HEADERS
5609 CONFIG_LINKS = $CONFIG_LINKS
5610 CONFIG_COMMANDS = $CONFIG_COMMANDS
5611 $ $0 $@
5613 _CSEOF
5614 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5615 echo >&5
5616 _ACEOF
5618 # Files that config.status was made for.
5619 if test -n "$ac_config_files"; then
5620 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5623 if test -n "$ac_config_headers"; then
5624 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5627 if test -n "$ac_config_links"; then
5628 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5631 if test -n "$ac_config_commands"; then
5632 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5635 cat >>$CONFIG_STATUS <<\_ACEOF
5637 ac_cs_usage="\
5638 \`$as_me' instantiates files from templates according to the
5639 current configuration.
5641 Usage: $0 [OPTIONS] [FILE]...
5643 -h, --help print this help, then exit
5644 -V, --version print version number, then exit
5645 -q, --quiet do not print progress messages
5646 -d, --debug don't remove temporary files
5647 --recheck update $as_me by reconfiguring in the same conditions
5648 --file=FILE[:TEMPLATE]
5649 instantiate the configuration file FILE
5650 --header=FILE[:TEMPLATE]
5651 instantiate the configuration header FILE
5653 Configuration files:
5654 $config_files
5656 Configuration headers:
5657 $config_headers
5659 Report bugs to <bug-autoconf@gnu.org>."
5660 _ACEOF
5662 cat >>$CONFIG_STATUS <<_ACEOF
5663 ac_cs_version="\\
5664 GNU M4 config.status 1.4.2a
5665 configured by $0, generated by GNU Autoconf 2.59,
5666 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5668 Copyright (C) 2003 Free Software Foundation, Inc.
5669 This config.status script is free software; the Free Software Foundation
5670 gives unlimited permission to copy, distribute and modify it."
5671 srcdir=$srcdir
5672 INSTALL="$INSTALL"
5673 _ACEOF
5675 cat >>$CONFIG_STATUS <<\_ACEOF
5676 # If no file are specified by the user, then we need to provide default
5677 # value. By we need to know if files were specified by the user.
5678 ac_need_defaults=:
5679 while test $# != 0
5681 case $1 in
5682 --*=*)
5683 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5684 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5685 ac_shift=:
5688 ac_option=$1
5689 ac_optarg=$2
5690 ac_shift=shift
5692 *) # This is not an option, so the user has probably given explicit
5693 # arguments.
5694 ac_option=$1
5695 ac_need_defaults=false;;
5696 esac
5698 case $ac_option in
5699 # Handling of the options.
5700 _ACEOF
5701 cat >>$CONFIG_STATUS <<\_ACEOF
5702 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5703 ac_cs_recheck=: ;;
5704 --version | --vers* | -V )
5705 echo "$ac_cs_version"; exit 0 ;;
5706 --he | --h)
5707 # Conflict between --help and --header
5708 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5709 Try \`$0 --help' for more information." >&5
5710 echo "$as_me: error: ambiguous option: $1
5711 Try \`$0 --help' for more information." >&2;}
5712 { (exit 1); exit 1; }; };;
5713 --help | --hel | -h )
5714 echo "$ac_cs_usage"; exit 0 ;;
5715 --debug | --d* | -d )
5716 debug=: ;;
5717 --file | --fil | --fi | --f )
5718 $ac_shift
5719 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5720 ac_need_defaults=false;;
5721 --header | --heade | --head | --hea )
5722 $ac_shift
5723 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5724 ac_need_defaults=false;;
5725 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5726 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5727 ac_cs_silent=: ;;
5729 # This is an error.
5730 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5731 Try \`$0 --help' for more information." >&5
5732 echo "$as_me: error: unrecognized option: $1
5733 Try \`$0 --help' for more information." >&2;}
5734 { (exit 1); exit 1; }; } ;;
5736 *) ac_config_targets="$ac_config_targets $1" ;;
5738 esac
5739 shift
5740 done
5742 ac_configure_extra_args=
5744 if $ac_cs_silent; then
5745 exec 6>/dev/null
5746 ac_configure_extra_args="$ac_configure_extra_args --silent"
5749 _ACEOF
5750 cat >>$CONFIG_STATUS <<_ACEOF
5751 if \$ac_cs_recheck; then
5752 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5753 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5756 _ACEOF
5762 cat >>$CONFIG_STATUS <<\_ACEOF
5763 for ac_config_target in $ac_config_targets
5765 case "$ac_config_target" in
5766 # Handling of arguments.
5767 "stamp-h" ) CONFIG_FILES="$CONFIG_FILES stamp-h" ;;
5768 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5769 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
5770 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
5771 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
5772 "checks/Makefile" ) CONFIG_FILES="$CONFIG_FILES checks/Makefile" ;;
5773 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
5774 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
5775 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5776 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5777 { (exit 1); exit 1; }; };;
5778 esac
5779 done
5781 # If the user did not use the arguments to specify the items to instantiate,
5782 # then the envvar interface is used. Set only those that are not.
5783 # We use the long form for the default assignment because of an extremely
5784 # bizarre bug on SunOS 4.1.3.
5785 if $ac_need_defaults; then
5786 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5787 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5790 # Have a temporary directory for convenience. Make it in the build tree
5791 # simply because there is no reason to put it here, and in addition,
5792 # creating and moving files from /tmp can sometimes cause problems.
5793 # Create a temporary directory, and hook for its removal unless debugging.
5794 $debug ||
5796 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5797 trap '{ (exit 1); exit 1; }' 1 2 13 15
5800 # Create a (secure) tmp directory for tmp files.
5803 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5804 test -n "$tmp" && test -d "$tmp"
5805 } ||
5807 tmp=./confstat$$-$RANDOM
5808 (umask 077 && mkdir $tmp)
5809 } ||
5811 echo "$me: cannot create a temporary directory in ." >&2
5812 { (exit 1); exit 1; }
5815 _ACEOF
5817 cat >>$CONFIG_STATUS <<_ACEOF
5820 # CONFIG_FILES section.
5823 # No need to generate the scripts if there are no CONFIG_FILES.
5824 # This happens for instance when ./config.status config.h
5825 if test -n "\$CONFIG_FILES"; then
5826 # Protect against being on the right side of a sed subst in config.status.
5827 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5828 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5829 s,@SHELL@,$SHELL,;t t
5830 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5831 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5832 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5833 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5834 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5835 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5836 s,@exec_prefix@,$exec_prefix,;t t
5837 s,@prefix@,$prefix,;t t
5838 s,@program_transform_name@,$program_transform_name,;t t
5839 s,@bindir@,$bindir,;t t
5840 s,@sbindir@,$sbindir,;t t
5841 s,@libexecdir@,$libexecdir,;t t
5842 s,@datadir@,$datadir,;t t
5843 s,@sysconfdir@,$sysconfdir,;t t
5844 s,@sharedstatedir@,$sharedstatedir,;t t
5845 s,@localstatedir@,$localstatedir,;t t
5846 s,@libdir@,$libdir,;t t
5847 s,@includedir@,$includedir,;t t
5848 s,@oldincludedir@,$oldincludedir,;t t
5849 s,@infodir@,$infodir,;t t
5850 s,@mandir@,$mandir,;t t
5851 s,@build_alias@,$build_alias,;t t
5852 s,@host_alias@,$host_alias,;t t
5853 s,@target_alias@,$target_alias,;t t
5854 s,@DEFS@,$DEFS,;t t
5855 s,@ECHO_C@,$ECHO_C,;t t
5856 s,@ECHO_N@,$ECHO_N,;t t
5857 s,@ECHO_T@,$ECHO_T,;t t
5858 s,@LIBS@,$LIBS,;t t
5859 s,@PACKAGE@,$PACKAGE,;t t
5860 s,@VERSION@,$VERSION,;t t
5861 s,@AWK@,$AWK,;t t
5862 s,@CC@,$CC,;t t
5863 s,@CFLAGS@,$CFLAGS,;t t
5864 s,@LDFLAGS@,$LDFLAGS,;t t
5865 s,@CPPFLAGS@,$CPPFLAGS,;t t
5866 s,@ac_ct_CC@,$ac_ct_CC,;t t
5867 s,@EXEEXT@,$EXEEXT,;t t
5868 s,@OBJEXT@,$OBJEXT,;t t
5869 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5870 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5871 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5872 s,@SET_MAKE@,$SET_MAKE,;t t
5873 s,@RANLIB@,$RANLIB,;t t
5874 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5875 s,@CPP@,$CPP,;t t
5876 s,@EGREP@,$EGREP,;t t
5877 s,@U@,$U,;t t
5878 s,@ANSI2KNR@,$ANSI2KNR,;t t
5879 s,@ALLOCA@,$ALLOCA,;t t
5880 s,@LIBOBJS@,$LIBOBJS,;t t
5881 s,@STACKOVF@,$STACKOVF,;t t
5882 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5883 CEOF
5885 _ACEOF
5887 cat >>$CONFIG_STATUS <<\_ACEOF
5888 # Split the substitutions into bite-sized pieces for seds with
5889 # small command number limits, like on Digital OSF/1 and HP-UX.
5890 ac_max_sed_lines=48
5891 ac_sed_frag=1 # Number of current file.
5892 ac_beg=1 # First line for current file.
5893 ac_end=$ac_max_sed_lines # Line after last line for current file.
5894 ac_more_lines=:
5895 ac_sed_cmds=
5896 while $ac_more_lines; do
5897 if test $ac_beg -gt 1; then
5898 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5899 else
5900 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5902 if test ! -s $tmp/subs.frag; then
5903 ac_more_lines=false
5904 else
5905 # The purpose of the label and of the branching condition is to
5906 # speed up the sed processing (if there are no `@' at all, there
5907 # is no need to browse any of the substitutions).
5908 # These are the two extra sed commands mentioned above.
5909 (echo ':t
5910 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5911 if test -z "$ac_sed_cmds"; then
5912 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5913 else
5914 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5916 ac_sed_frag=`expr $ac_sed_frag + 1`
5917 ac_beg=$ac_end
5918 ac_end=`expr $ac_end + $ac_max_sed_lines`
5920 done
5921 if test -z "$ac_sed_cmds"; then
5922 ac_sed_cmds=cat
5924 fi # test -n "$CONFIG_FILES"
5926 _ACEOF
5927 cat >>$CONFIG_STATUS <<\_ACEOF
5928 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5929 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5930 case $ac_file in
5931 - | *:- | *:-:* ) # input from stdin
5932 cat >$tmp/stdin
5933 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5934 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5935 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5936 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5937 * ) ac_file_in=$ac_file.in ;;
5938 esac
5940 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5941 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5942 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5943 X"$ac_file" : 'X\(//\)[^/]' \| \
5944 X"$ac_file" : 'X\(//\)$' \| \
5945 X"$ac_file" : 'X\(/\)' \| \
5946 . : '\(.\)' 2>/dev/null ||
5947 echo X"$ac_file" |
5948 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5949 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5950 /^X\(\/\/\)$/{ s//\1/; q; }
5951 /^X\(\/\).*/{ s//\1/; q; }
5952 s/.*/./; q'`
5953 { if $as_mkdir_p; then
5954 mkdir -p "$ac_dir"
5955 else
5956 as_dir="$ac_dir"
5957 as_dirs=
5958 while test ! -d "$as_dir"; do
5959 as_dirs="$as_dir $as_dirs"
5960 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5961 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5962 X"$as_dir" : 'X\(//\)[^/]' \| \
5963 X"$as_dir" : 'X\(//\)$' \| \
5964 X"$as_dir" : 'X\(/\)' \| \
5965 . : '\(.\)' 2>/dev/null ||
5966 echo X"$as_dir" |
5967 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5968 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5969 /^X\(\/\/\)$/{ s//\1/; q; }
5970 /^X\(\/\).*/{ s//\1/; q; }
5971 s/.*/./; q'`
5972 done
5973 test ! -n "$as_dirs" || mkdir $as_dirs
5974 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5975 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5976 { (exit 1); exit 1; }; }; }
5978 ac_builddir=.
5980 if test "$ac_dir" != .; then
5981 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5982 # A "../" for each directory in $ac_dir_suffix.
5983 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5984 else
5985 ac_dir_suffix= ac_top_builddir=
5988 case $srcdir in
5989 .) # No --srcdir option. We are building in place.
5990 ac_srcdir=.
5991 if test -z "$ac_top_builddir"; then
5992 ac_top_srcdir=.
5993 else
5994 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5995 fi ;;
5996 [\\/]* | ?:[\\/]* ) # Absolute path.
5997 ac_srcdir=$srcdir$ac_dir_suffix;
5998 ac_top_srcdir=$srcdir ;;
5999 *) # Relative path.
6000 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6001 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6002 esac
6004 # Do not use `cd foo && pwd` to compute absolute paths, because
6005 # the directories may not exist.
6006 case `pwd` in
6007 .) ac_abs_builddir="$ac_dir";;
6009 case "$ac_dir" in
6010 .) ac_abs_builddir=`pwd`;;
6011 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6012 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6013 esac;;
6014 esac
6015 case $ac_abs_builddir in
6016 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6018 case ${ac_top_builddir}. in
6019 .) ac_abs_top_builddir=$ac_abs_builddir;;
6020 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6021 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6022 esac;;
6023 esac
6024 case $ac_abs_builddir in
6025 .) ac_abs_srcdir=$ac_srcdir;;
6027 case $ac_srcdir in
6028 .) ac_abs_srcdir=$ac_abs_builddir;;
6029 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6030 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6031 esac;;
6032 esac
6033 case $ac_abs_builddir in
6034 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6036 case $ac_top_srcdir in
6037 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6038 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6039 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6040 esac;;
6041 esac
6044 case $INSTALL in
6045 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6046 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6047 esac
6049 if test x"$ac_file" != x-; then
6050 { echo "$as_me:$LINENO: creating $ac_file" >&5
6051 echo "$as_me: creating $ac_file" >&6;}
6052 rm -f "$ac_file"
6054 # Let's still pretend it is `configure' which instantiates (i.e., don't
6055 # use $as_me), people would be surprised to read:
6056 # /* config.h. Generated by config.status. */
6057 if test x"$ac_file" = x-; then
6058 configure_input=
6059 else
6060 configure_input="$ac_file. "
6062 configure_input=$configure_input"Generated from `echo $ac_file_in |
6063 sed 's,.*/,,'` by configure."
6065 # First look for the input files in the build tree, otherwise in the
6066 # src tree.
6067 ac_file_inputs=`IFS=:
6068 for f in $ac_file_in; do
6069 case $f in
6070 -) echo $tmp/stdin ;;
6071 [\\/$]*)
6072 # Absolute (can't be DOS-style, as IFS=:)
6073 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6074 echo "$as_me: error: cannot find input file: $f" >&2;}
6075 { (exit 1); exit 1; }; }
6076 echo "$f";;
6077 *) # Relative
6078 if test -f "$f"; then
6079 # Build tree
6080 echo "$f"
6081 elif test -f "$srcdir/$f"; then
6082 # Source tree
6083 echo "$srcdir/$f"
6084 else
6085 # /dev/null tree
6086 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6087 echo "$as_me: error: cannot find input file: $f" >&2;}
6088 { (exit 1); exit 1; }; }
6089 fi;;
6090 esac
6091 done` || { (exit 1); exit 1; }
6092 _ACEOF
6093 cat >>$CONFIG_STATUS <<_ACEOF
6094 sed "$ac_vpsub
6095 $extrasub
6096 _ACEOF
6097 cat >>$CONFIG_STATUS <<\_ACEOF
6099 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6100 s,@configure_input@,$configure_input,;t t
6101 s,@srcdir@,$ac_srcdir,;t t
6102 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6103 s,@top_srcdir@,$ac_top_srcdir,;t t
6104 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6105 s,@builddir@,$ac_builddir,;t t
6106 s,@abs_builddir@,$ac_abs_builddir,;t t
6107 s,@top_builddir@,$ac_top_builddir,;t t
6108 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6109 s,@INSTALL@,$ac_INSTALL,;t t
6110 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6111 rm -f $tmp/stdin
6112 if test x"$ac_file" != x-; then
6113 mv $tmp/out $ac_file
6114 else
6115 cat $tmp/out
6116 rm -f $tmp/out
6119 # Run the commands associated with the file.
6120 case $ac_file in
6121 stamp-h ) test -z "$CONFIG_HEADERS" || date > stamp-h ;;
6122 esac
6123 done
6124 _ACEOF
6125 cat >>$CONFIG_STATUS <<\_ACEOF
6128 # CONFIG_HEADER section.
6131 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6132 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6134 # ac_d sets the value in "#define NAME VALUE" lines.
6135 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6136 ac_dB='[ ].*$,\1#\2'
6137 ac_dC=' '
6138 ac_dD=',;t'
6139 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6140 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6141 ac_uB='$,\1#\2define\3'
6142 ac_uC=' '
6143 ac_uD=',;t'
6145 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6146 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6147 case $ac_file in
6148 - | *:- | *:-:* ) # input from stdin
6149 cat >$tmp/stdin
6150 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6151 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6152 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6153 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6154 * ) ac_file_in=$ac_file.in ;;
6155 esac
6157 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6158 echo "$as_me: creating $ac_file" >&6;}
6160 # First look for the input files in the build tree, otherwise in the
6161 # src tree.
6162 ac_file_inputs=`IFS=:
6163 for f in $ac_file_in; do
6164 case $f in
6165 -) echo $tmp/stdin ;;
6166 [\\/$]*)
6167 # Absolute (can't be DOS-style, as IFS=:)
6168 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6169 echo "$as_me: error: cannot find input file: $f" >&2;}
6170 { (exit 1); exit 1; }; }
6171 # Do quote $f, to prevent DOS paths from being IFS'd.
6172 echo "$f";;
6173 *) # Relative
6174 if test -f "$f"; then
6175 # Build tree
6176 echo "$f"
6177 elif test -f "$srcdir/$f"; then
6178 # Source tree
6179 echo "$srcdir/$f"
6180 else
6181 # /dev/null tree
6182 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6183 echo "$as_me: error: cannot find input file: $f" >&2;}
6184 { (exit 1); exit 1; }; }
6185 fi;;
6186 esac
6187 done` || { (exit 1); exit 1; }
6188 # Remove the trailing spaces.
6189 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6191 _ACEOF
6193 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6194 # `conftest.undefs', that substitutes the proper values into
6195 # config.h.in to produce config.h. The first handles `#define'
6196 # templates, and the second `#undef' templates.
6197 # And first: Protect against being on the right side of a sed subst in
6198 # config.status. Protect against being in an unquoted here document
6199 # in config.status.
6200 rm -f conftest.defines conftest.undefs
6201 # Using a here document instead of a string reduces the quoting nightmare.
6202 # Putting comments in sed scripts is not portable.
6204 # `end' is used to avoid that the second main sed command (meant for
6205 # 0-ary CPP macros) applies to n-ary macro definitions.
6206 # See the Autoconf documentation for `clear'.
6207 cat >confdef2sed.sed <<\_ACEOF
6208 s/[\\&,]/\\&/g
6209 s,[\\$`],\\&,g
6210 t clear
6211 : clear
6212 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6213 t end
6214 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6215 : end
6216 _ACEOF
6217 # If some macros were called several times there might be several times
6218 # the same #defines, which is useless. Nevertheless, we may not want to
6219 # sort them, since we want the *last* AC-DEFINE to be honored.
6220 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6221 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6222 rm -f confdef2sed.sed
6224 # This sed command replaces #undef with comments. This is necessary, for
6225 # example, in the case of _POSIX_SOURCE, which is predefined and required
6226 # on some systems where configure will not decide to define it.
6227 cat >>conftest.undefs <<\_ACEOF
6228 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6229 _ACEOF
6231 # Break up conftest.defines because some shells have a limit on the size
6232 # of here documents, and old seds have small limits too (100 cmds).
6233 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6234 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6235 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6236 echo ' :' >>$CONFIG_STATUS
6237 rm -f conftest.tail
6238 while grep . conftest.defines >/dev/null
6240 # Write a limited-size here document to $tmp/defines.sed.
6241 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6242 # Speed up: don't consider the non `#define' lines.
6243 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6244 # Work around the forget-to-reset-the-flag bug.
6245 echo 't clr' >>$CONFIG_STATUS
6246 echo ': clr' >>$CONFIG_STATUS
6247 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6248 echo 'CEOF
6249 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6250 rm -f $tmp/in
6251 mv $tmp/out $tmp/in
6252 ' >>$CONFIG_STATUS
6253 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6254 rm -f conftest.defines
6255 mv conftest.tail conftest.defines
6256 done
6257 rm -f conftest.defines
6258 echo ' fi # grep' >>$CONFIG_STATUS
6259 echo >>$CONFIG_STATUS
6261 # Break up conftest.undefs because some shells have a limit on the size
6262 # of here documents, and old seds have small limits too (100 cmds).
6263 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6264 rm -f conftest.tail
6265 while grep . conftest.undefs >/dev/null
6267 # Write a limited-size here document to $tmp/undefs.sed.
6268 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6269 # Speed up: don't consider the non `#undef'
6270 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6271 # Work around the forget-to-reset-the-flag bug.
6272 echo 't clr' >>$CONFIG_STATUS
6273 echo ': clr' >>$CONFIG_STATUS
6274 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6275 echo 'CEOF
6276 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6277 rm -f $tmp/in
6278 mv $tmp/out $tmp/in
6279 ' >>$CONFIG_STATUS
6280 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6281 rm -f conftest.undefs
6282 mv conftest.tail conftest.undefs
6283 done
6284 rm -f conftest.undefs
6286 cat >>$CONFIG_STATUS <<\_ACEOF
6287 # Let's still pretend it is `configure' which instantiates (i.e., don't
6288 # use $as_me), people would be surprised to read:
6289 # /* config.h. Generated by config.status. */
6290 if test x"$ac_file" = x-; then
6291 echo "/* Generated by configure. */" >$tmp/config.h
6292 else
6293 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6295 cat $tmp/in >>$tmp/config.h
6296 rm -f $tmp/in
6297 if test x"$ac_file" != x-; then
6298 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6299 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6300 echo "$as_me: $ac_file is unchanged" >&6;}
6301 else
6302 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6303 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6304 X"$ac_file" : 'X\(//\)[^/]' \| \
6305 X"$ac_file" : 'X\(//\)$' \| \
6306 X"$ac_file" : 'X\(/\)' \| \
6307 . : '\(.\)' 2>/dev/null ||
6308 echo X"$ac_file" |
6309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6310 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6311 /^X\(\/\/\)$/{ s//\1/; q; }
6312 /^X\(\/\).*/{ s//\1/; q; }
6313 s/.*/./; q'`
6314 { if $as_mkdir_p; then
6315 mkdir -p "$ac_dir"
6316 else
6317 as_dir="$ac_dir"
6318 as_dirs=
6319 while test ! -d "$as_dir"; do
6320 as_dirs="$as_dir $as_dirs"
6321 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6322 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6323 X"$as_dir" : 'X\(//\)[^/]' \| \
6324 X"$as_dir" : 'X\(//\)$' \| \
6325 X"$as_dir" : 'X\(/\)' \| \
6326 . : '\(.\)' 2>/dev/null ||
6327 echo X"$as_dir" |
6328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6329 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6330 /^X\(\/\/\)$/{ s//\1/; q; }
6331 /^X\(\/\).*/{ s//\1/; q; }
6332 s/.*/./; q'`
6333 done
6334 test ! -n "$as_dirs" || mkdir $as_dirs
6335 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6336 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6337 { (exit 1); exit 1; }; }; }
6339 rm -f $ac_file
6340 mv $tmp/config.h $ac_file
6342 else
6343 cat $tmp/config.h
6344 rm -f $tmp/config.h
6346 done
6347 _ACEOF
6349 cat >>$CONFIG_STATUS <<\_ACEOF
6351 { (exit 0); exit 0; }
6352 _ACEOF
6353 chmod +x $CONFIG_STATUS
6354 ac_clean_files=$ac_clean_files_save
6357 # configure is writing to config.log, and then calls config.status.
6358 # config.status does its own redirection, appending to config.log.
6359 # Unfortunately, on DOS this fails, as config.log is still kept open
6360 # by configure, so config.status won't be able to write to it; its
6361 # output is simply discarded. So we exec the FD to /dev/null,
6362 # effectively closing config.log, so it can be properly (re)opened and
6363 # appended to by config.status. When coming back to configure, we
6364 # need to make the FD available again.
6365 if test "$no_create" != yes; then
6366 ac_cs_success=:
6367 ac_config_status_args=
6368 test "$silent" = yes &&
6369 ac_config_status_args="$ac_config_status_args --quiet"
6370 exec 5>/dev/null
6371 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6372 exec 5>>config.log
6373 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6374 # would make configure fail if this is the last instruction.
6375 $ac_cs_success || { (exit 1); exit 1; }