initialize repository
[xorcyst.git] / configure
blobb9b275926755e130c9e070c4f31fe1ea0ddaacb8
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="parser.y"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE CPP EGREP YACC LEX LEXLIB LEX_OUTPUT_ROOT LN_S LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801 _ACEOF
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
832 cat <<\_ACEOF
834 Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
838 _ACEOF
841 if test -n "$ac_init_help"; then
843 cat <<\_ACEOF
845 Optional Features:
846 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
847 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
848 --disable-dependency-tracking Speeds up one-time builds
849 --enable-dependency-tracking Do not reject slow dependency extractors
851 Some influential environment variables:
852 CC C compiler command
853 CFLAGS C compiler flags
854 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
855 nonstandard directory <lib dir>
856 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
857 headers in a nonstandard directory <include dir>
858 CPP C preprocessor
860 Use these variables to override the choices made by `configure' or to help
861 it to find libraries and programs with nonstandard names/locations.
863 _ACEOF
866 if test "$ac_init_help" = "recursive"; then
867 # If there are subdirs, report their specific --help.
868 ac_popdir=`pwd`
869 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
870 test -d $ac_dir || continue
871 ac_builddir=.
873 if test "$ac_dir" != .; then
874 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
875 # A "../" for each directory in $ac_dir_suffix.
876 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
877 else
878 ac_dir_suffix= ac_top_builddir=
881 case $srcdir in
882 .) # No --srcdir option. We are building in place.
883 ac_srcdir=.
884 if test -z "$ac_top_builddir"; then
885 ac_top_srcdir=.
886 else
887 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
888 fi ;;
889 [\\/]* | ?:[\\/]* ) # Absolute path.
890 ac_srcdir=$srcdir$ac_dir_suffix;
891 ac_top_srcdir=$srcdir ;;
892 *) # Relative path.
893 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
894 ac_top_srcdir=$ac_top_builddir$srcdir ;;
895 esac
897 # Do not use `cd foo && pwd` to compute absolute paths, because
898 # the directories may not exist.
899 case `pwd` in
900 .) ac_abs_builddir="$ac_dir";;
902 case "$ac_dir" in
903 .) ac_abs_builddir=`pwd`;;
904 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
905 *) ac_abs_builddir=`pwd`/"$ac_dir";;
906 esac;;
907 esac
908 case $ac_abs_builddir in
909 .) ac_abs_top_builddir=${ac_top_builddir}.;;
911 case ${ac_top_builddir}. in
912 .) ac_abs_top_builddir=$ac_abs_builddir;;
913 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
914 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
915 esac;;
916 esac
917 case $ac_abs_builddir in
918 .) ac_abs_srcdir=$ac_srcdir;;
920 case $ac_srcdir in
921 .) ac_abs_srcdir=$ac_abs_builddir;;
922 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
923 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
924 esac;;
925 esac
926 case $ac_abs_builddir in
927 .) ac_abs_top_srcdir=$ac_top_srcdir;;
929 case $ac_top_srcdir in
930 .) ac_abs_top_srcdir=$ac_abs_builddir;;
931 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
932 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
933 esac;;
934 esac
936 cd $ac_dir
937 # Check for guested configure; otherwise get Cygnus style configure.
938 if test -f $ac_srcdir/configure.gnu; then
939 echo
940 $SHELL $ac_srcdir/configure.gnu --help=recursive
941 elif test -f $ac_srcdir/configure; then
942 echo
943 $SHELL $ac_srcdir/configure --help=recursive
944 elif test -f $ac_srcdir/configure.ac ||
945 test -f $ac_srcdir/configure.in; then
946 echo
947 $ac_configure --help
948 else
949 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
951 cd $ac_popdir
952 done
955 test -n "$ac_init_help" && exit 0
956 if $ac_init_version; then
957 cat <<\_ACEOF
959 Copyright (C) 2003 Free Software Foundation, Inc.
960 This configure script is free software; the Free Software Foundation
961 gives unlimited permission to copy, distribute and modify it.
962 _ACEOF
963 exit 0
965 exec 5>config.log
966 cat >&5 <<_ACEOF
967 This file contains any messages produced by compilers while
968 running configure, to aid debugging if configure makes a mistake.
970 It was created by $as_me, which was
971 generated by GNU Autoconf 2.59. Invocation command line was
973 $ $0 $@
975 _ACEOF
977 cat <<_ASUNAME
978 ## --------- ##
979 ## Platform. ##
980 ## --------- ##
982 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
983 uname -m = `(uname -m) 2>/dev/null || echo unknown`
984 uname -r = `(uname -r) 2>/dev/null || echo unknown`
985 uname -s = `(uname -s) 2>/dev/null || echo unknown`
986 uname -v = `(uname -v) 2>/dev/null || echo unknown`
988 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
989 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
991 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
992 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
993 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
994 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
995 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
996 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
997 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
999 _ASUNAME
1001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1002 for as_dir in $PATH
1004 IFS=$as_save_IFS
1005 test -z "$as_dir" && as_dir=.
1006 echo "PATH: $as_dir"
1007 done
1009 } >&5
1011 cat >&5 <<_ACEOF
1014 ## ----------- ##
1015 ## Core tests. ##
1016 ## ----------- ##
1018 _ACEOF
1021 # Keep a trace of the command line.
1022 # Strip out --no-create and --no-recursion so they do not pile up.
1023 # Strip out --silent because we don't want to record it for future runs.
1024 # Also quote any args containing shell meta-characters.
1025 # Make two passes to allow for proper duplicate-argument suppression.
1026 ac_configure_args=
1027 ac_configure_args0=
1028 ac_configure_args1=
1029 ac_sep=
1030 ac_must_keep_next=false
1031 for ac_pass in 1 2
1033 for ac_arg
1035 case $ac_arg in
1036 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1037 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1038 | -silent | --silent | --silen | --sile | --sil)
1039 continue ;;
1040 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1041 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1042 esac
1043 case $ac_pass in
1044 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1046 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1047 if test $ac_must_keep_next = true; then
1048 ac_must_keep_next=false # Got value, back to normal.
1049 else
1050 case $ac_arg in
1051 *=* | --config-cache | -C | -disable-* | --disable-* \
1052 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1053 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1054 | -with-* | --with-* | -without-* | --without-* | --x)
1055 case "$ac_configure_args0 " in
1056 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1057 esac
1059 -* ) ac_must_keep_next=true ;;
1060 esac
1062 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1063 # Get rid of the leading space.
1064 ac_sep=" "
1066 esac
1067 done
1068 done
1069 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1070 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1072 # When interrupted or exit'd, cleanup temporary files, and complete
1073 # config.log. We remove comments because anyway the quotes in there
1074 # would cause problems or look ugly.
1075 # WARNING: Be sure not to use single quotes in there, as some shells,
1076 # such as our DU 5.0 friend, will then `close' the trap.
1077 trap 'exit_status=$?
1078 # Save into config.log some information that might help in debugging.
1080 echo
1082 cat <<\_ASBOX
1083 ## ---------------- ##
1084 ## Cache variables. ##
1085 ## ---------------- ##
1086 _ASBOX
1087 echo
1088 # The following way of writing the cache mishandles newlines in values,
1090 (set) 2>&1 |
1091 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1092 *ac_space=\ *)
1093 sed -n \
1094 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1095 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1098 sed -n \
1099 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1101 esac;
1103 echo
1105 cat <<\_ASBOX
1106 ## ----------------- ##
1107 ## Output variables. ##
1108 ## ----------------- ##
1109 _ASBOX
1110 echo
1111 for ac_var in $ac_subst_vars
1113 eval ac_val=$`echo $ac_var`
1114 echo "$ac_var='"'"'$ac_val'"'"'"
1115 done | sort
1116 echo
1118 if test -n "$ac_subst_files"; then
1119 cat <<\_ASBOX
1120 ## ------------- ##
1121 ## Output files. ##
1122 ## ------------- ##
1123 _ASBOX
1124 echo
1125 for ac_var in $ac_subst_files
1127 eval ac_val=$`echo $ac_var`
1128 echo "$ac_var='"'"'$ac_val'"'"'"
1129 done | sort
1130 echo
1133 if test -s confdefs.h; then
1134 cat <<\_ASBOX
1135 ## ----------- ##
1136 ## confdefs.h. ##
1137 ## ----------- ##
1138 _ASBOX
1139 echo
1140 sed "/^$/d" confdefs.h | sort
1141 echo
1143 test "$ac_signal" != 0 &&
1144 echo "$as_me: caught signal $ac_signal"
1145 echo "$as_me: exit $exit_status"
1146 } >&5
1147 rm -f core *.core &&
1148 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1149 exit $exit_status
1151 for ac_signal in 1 2 13 15; do
1152 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1153 done
1154 ac_signal=0
1156 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1157 rm -rf conftest* confdefs.h
1158 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1159 echo >confdefs.h
1161 # Predefined preprocessor variables.
1163 cat >>confdefs.h <<_ACEOF
1164 #define PACKAGE_NAME "$PACKAGE_NAME"
1165 _ACEOF
1168 cat >>confdefs.h <<_ACEOF
1169 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1170 _ACEOF
1173 cat >>confdefs.h <<_ACEOF
1174 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1175 _ACEOF
1178 cat >>confdefs.h <<_ACEOF
1179 #define PACKAGE_STRING "$PACKAGE_STRING"
1180 _ACEOF
1183 cat >>confdefs.h <<_ACEOF
1184 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1185 _ACEOF
1188 # Let the site file select an alternate cache file if it wants to.
1189 # Prefer explicitly selected file to automatically selected ones.
1190 if test -z "$CONFIG_SITE"; then
1191 if test "x$prefix" != xNONE; then
1192 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1193 else
1194 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1197 for ac_site_file in $CONFIG_SITE; do
1198 if test -r "$ac_site_file"; then
1199 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1200 echo "$as_me: loading site script $ac_site_file" >&6;}
1201 sed 's/^/| /' "$ac_site_file" >&5
1202 . "$ac_site_file"
1204 done
1206 if test -r "$cache_file"; then
1207 # Some versions of bash will fail to source /dev/null (special
1208 # files actually), so we avoid doing that.
1209 if test -f "$cache_file"; then
1210 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1211 echo "$as_me: loading cache $cache_file" >&6;}
1212 case $cache_file in
1213 [\\/]* | ?:[\\/]* ) . $cache_file;;
1214 *) . ./$cache_file;;
1215 esac
1217 else
1218 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1219 echo "$as_me: creating cache $cache_file" >&6;}
1220 >$cache_file
1223 # Check that the precious variables saved in the cache have kept the same
1224 # value.
1225 ac_cache_corrupted=false
1226 for ac_var in `(set) 2>&1 |
1227 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1228 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1229 eval ac_new_set=\$ac_env_${ac_var}_set
1230 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1231 eval ac_new_val="\$ac_env_${ac_var}_value"
1232 case $ac_old_set,$ac_new_set in
1233 set,)
1234 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1235 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1236 ac_cache_corrupted=: ;;
1237 ,set)
1238 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1239 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1240 ac_cache_corrupted=: ;;
1241 ,);;
1243 if test "x$ac_old_val" != "x$ac_new_val"; then
1244 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1245 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1246 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1247 echo "$as_me: former value: $ac_old_val" >&2;}
1248 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1249 echo "$as_me: current value: $ac_new_val" >&2;}
1250 ac_cache_corrupted=:
1251 fi;;
1252 esac
1253 # Pass precious variables to config.status.
1254 if test "$ac_new_set" = set; then
1255 case $ac_new_val in
1256 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1257 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1258 *) ac_arg=$ac_var=$ac_new_val ;;
1259 esac
1260 case " $ac_configure_args " in
1261 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1262 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1263 esac
1265 done
1266 if $ac_cache_corrupted; then
1267 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1268 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1269 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1270 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1271 { (exit 1); exit 1; }; }
1274 ac_ext=c
1275 ac_cpp='$CPP $CPPFLAGS'
1276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1299 # Add the stamp file to the list of files AC keeps track of,
1300 # along with our hook.
1301 ac_config_headers="$ac_config_headers config.h"
1305 am__api_version="1.6"
1306 ac_aux_dir=
1307 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1308 if test -f $ac_dir/install-sh; then
1309 ac_aux_dir=$ac_dir
1310 ac_install_sh="$ac_aux_dir/install-sh -c"
1311 break
1312 elif test -f $ac_dir/install.sh; then
1313 ac_aux_dir=$ac_dir
1314 ac_install_sh="$ac_aux_dir/install.sh -c"
1315 break
1316 elif test -f $ac_dir/shtool; then
1317 ac_aux_dir=$ac_dir
1318 ac_install_sh="$ac_aux_dir/shtool install -c"
1319 break
1321 done
1322 if test -z "$ac_aux_dir"; then
1323 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1324 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1325 { (exit 1); exit 1; }; }
1327 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1328 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1329 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1331 # Find a good install program. We prefer a C program (faster),
1332 # so one script is as good as another. But avoid the broken or
1333 # incompatible versions:
1334 # SysV /etc/install, /usr/sbin/install
1335 # SunOS /usr/etc/install
1336 # IRIX /sbin/install
1337 # AIX /bin/install
1338 # AmigaOS /C/install, which installs bootblocks on floppy discs
1339 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1340 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1341 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1342 # OS/2's system install, which has a completely different semantic
1343 # ./install, which can be erroneously created by make from ./install.sh.
1344 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1345 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1346 if test -z "$INSTALL"; then
1347 if test "${ac_cv_path_install+set}" = set; then
1348 echo $ECHO_N "(cached) $ECHO_C" >&6
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 # Account for people who put trailing slashes in PATH elements.
1356 case $as_dir/ in
1357 ./ | .// | /cC/* | \
1358 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1359 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1360 /usr/ucb/* ) ;;
1362 # OSF1 and SCO ODT 3.0 have their own names for install.
1363 # Don't use installbsd from OSF since it installs stuff as root
1364 # by default.
1365 for ac_prog in ginstall scoinst install; do
1366 for ac_exec_ext in '' $ac_executable_extensions; do
1367 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1368 if test $ac_prog = install &&
1369 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1370 # AIX install. It has an incompatible calling convention.
1372 elif test $ac_prog = install &&
1373 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1374 # program-specific install script used by HP pwplus--don't use.
1376 else
1377 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1378 break 3
1381 done
1382 done
1384 esac
1385 done
1389 if test "${ac_cv_path_install+set}" = set; then
1390 INSTALL=$ac_cv_path_install
1391 else
1392 # As a last resort, use the slow shell script. We don't cache a
1393 # path for INSTALL within a source directory, because that will
1394 # break other packages using the cache if that directory is
1395 # removed, or if the path is relative.
1396 INSTALL=$ac_install_sh
1399 echo "$as_me:$LINENO: result: $INSTALL" >&5
1400 echo "${ECHO_T}$INSTALL" >&6
1402 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1403 # It thinks the first close brace ends the variable substitution.
1404 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1406 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1408 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1410 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1411 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1412 # Just in case
1413 sleep 1
1414 echo timestamp > conftest.file
1415 # Do `set' in a subshell so we don't clobber the current shell's
1416 # arguments. Must try -L first in case configure is actually a
1417 # symlink; some systems play weird games with the mod time of symlinks
1418 # (eg FreeBSD returns the mod time of the symlink's containing
1419 # directory).
1420 if (
1421 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1422 if test "$*" = "X"; then
1423 # -L didn't work.
1424 set X `ls -t $srcdir/configure conftest.file`
1426 rm -f conftest.file
1427 if test "$*" != "X $srcdir/configure conftest.file" \
1428 && test "$*" != "X conftest.file $srcdir/configure"; then
1430 # If neither matched, then we have a broken ls. This can happen
1431 # if, for instance, CONFIG_SHELL is bash and it inherits a
1432 # broken ls alias from the environment. This has actually
1433 # happened. Such a system could not be considered "sane".
1434 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1435 alias in your environment" >&5
1436 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1437 alias in your environment" >&2;}
1438 { (exit 1); exit 1; }; }
1441 test "$2" = conftest.file
1443 then
1444 # Ok.
1446 else
1447 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1448 Check your system clock" >&5
1449 echo "$as_me: error: newly created file is older than distributed files!
1450 Check your system clock" >&2;}
1451 { (exit 1); exit 1; }; }
1453 echo "$as_me:$LINENO: result: yes" >&5
1454 echo "${ECHO_T}yes" >&6
1455 test "$program_prefix" != NONE &&
1456 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1457 # Use a double $ so make ignores it.
1458 test "$program_suffix" != NONE &&
1459 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1460 # Double any \ or $. echo might interpret backslashes.
1461 # By default was `s,x,x', remove it if useless.
1462 cat <<\_ACEOF >conftest.sed
1463 s/[\\$]/&&/g;s/;s,x,x,$//
1464 _ACEOF
1465 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1466 rm conftest.sed
1469 # expand $ac_aux_dir to an absolute path
1470 am_aux_dir=`cd $ac_aux_dir && pwd`
1472 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1473 # Use eval to expand $SHELL
1474 if eval "$MISSING --run true"; then
1475 am_missing_run="$MISSING --run "
1476 else
1477 am_missing_run=
1478 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1479 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1482 for ac_prog in gawk mawk nawk awk
1484 # Extract the first word of "$ac_prog", so it can be a program name with args.
1485 set dummy $ac_prog; ac_word=$2
1486 echo "$as_me:$LINENO: checking for $ac_word" >&5
1487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1488 if test "${ac_cv_prog_AWK+set}" = set; then
1489 echo $ECHO_N "(cached) $ECHO_C" >&6
1490 else
1491 if test -n "$AWK"; then
1492 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1493 else
1494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1495 for as_dir in $PATH
1497 IFS=$as_save_IFS
1498 test -z "$as_dir" && as_dir=.
1499 for ac_exec_ext in '' $ac_executable_extensions; do
1500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1501 ac_cv_prog_AWK="$ac_prog"
1502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1503 break 2
1505 done
1506 done
1510 AWK=$ac_cv_prog_AWK
1511 if test -n "$AWK"; then
1512 echo "$as_me:$LINENO: result: $AWK" >&5
1513 echo "${ECHO_T}$AWK" >&6
1514 else
1515 echo "$as_me:$LINENO: result: no" >&5
1516 echo "${ECHO_T}no" >&6
1519 test -n "$AWK" && break
1520 done
1522 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1523 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1524 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1525 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1526 echo $ECHO_N "(cached) $ECHO_C" >&6
1527 else
1528 cat >conftest.make <<\_ACEOF
1529 all:
1530 @echo 'ac_maketemp="$(MAKE)"'
1531 _ACEOF
1532 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1533 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1534 if test -n "$ac_maketemp"; then
1535 eval ac_cv_prog_make_${ac_make}_set=yes
1536 else
1537 eval ac_cv_prog_make_${ac_make}_set=no
1539 rm -f conftest.make
1541 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1542 echo "$as_me:$LINENO: result: yes" >&5
1543 echo "${ECHO_T}yes" >&6
1544 SET_MAKE=
1545 else
1546 echo "$as_me:$LINENO: result: no" >&5
1547 echo "${ECHO_T}no" >&6
1548 SET_MAKE="MAKE=${MAKE-make}"
1551 # test to see if srcdir already configured
1552 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1553 test -f $srcdir/config.status; then
1554 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1555 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1556 { (exit 1); exit 1; }; }
1559 # Define the identity of the package.
1560 PACKAGE=xorcyst
1561 VERSION=1.0.2
1564 cat >>confdefs.h <<_ACEOF
1565 #define PACKAGE "$PACKAGE"
1566 _ACEOF
1569 cat >>confdefs.h <<_ACEOF
1570 #define VERSION "$VERSION"
1571 _ACEOF
1573 # Some tools Automake needs.
1575 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1578 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1581 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1584 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1587 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1590 AMTAR=${AMTAR-"${am_missing_run}tar"}
1592 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1594 # Installed binaries are usually stripped using `strip' when the user
1595 # run `make install-strip'. However `strip' might not be the right
1596 # tool to use in cross-compilation environments, therefore Automake
1597 # will honor the `STRIP' environment variable to overrule this program.
1598 if test "$cross_compiling" != no; then
1599 if test -n "$ac_tool_prefix"; then
1600 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1601 set dummy ${ac_tool_prefix}strip; ac_word=$2
1602 echo "$as_me:$LINENO: checking for $ac_word" >&5
1603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1604 if test "${ac_cv_prog_STRIP+set}" = set; then
1605 echo $ECHO_N "(cached) $ECHO_C" >&6
1606 else
1607 if test -n "$STRIP"; then
1608 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1609 else
1610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1611 for as_dir in $PATH
1613 IFS=$as_save_IFS
1614 test -z "$as_dir" && as_dir=.
1615 for ac_exec_ext in '' $ac_executable_extensions; do
1616 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1617 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1619 break 2
1621 done
1622 done
1626 STRIP=$ac_cv_prog_STRIP
1627 if test -n "$STRIP"; then
1628 echo "$as_me:$LINENO: result: $STRIP" >&5
1629 echo "${ECHO_T}$STRIP" >&6
1630 else
1631 echo "$as_me:$LINENO: result: no" >&5
1632 echo "${ECHO_T}no" >&6
1636 if test -z "$ac_cv_prog_STRIP"; then
1637 ac_ct_STRIP=$STRIP
1638 # Extract the first word of "strip", so it can be a program name with args.
1639 set dummy strip; ac_word=$2
1640 echo "$as_me:$LINENO: checking for $ac_word" >&5
1641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1642 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1643 echo $ECHO_N "(cached) $ECHO_C" >&6
1644 else
1645 if test -n "$ac_ct_STRIP"; then
1646 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1647 else
1648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1649 for as_dir in $PATH
1651 IFS=$as_save_IFS
1652 test -z "$as_dir" && as_dir=.
1653 for ac_exec_ext in '' $ac_executable_extensions; do
1654 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1655 ac_cv_prog_ac_ct_STRIP="strip"
1656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1657 break 2
1659 done
1660 done
1662 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1665 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1666 if test -n "$ac_ct_STRIP"; then
1667 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1668 echo "${ECHO_T}$ac_ct_STRIP" >&6
1669 else
1670 echo "$as_me:$LINENO: result: no" >&5
1671 echo "${ECHO_T}no" >&6
1674 STRIP=$ac_ct_STRIP
1675 else
1676 STRIP="$ac_cv_prog_STRIP"
1680 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1682 # We need awk for the "check" target. The system "awk" is bad on
1683 # some platforms.
1688 rm -f .deps 2>/dev/null
1689 mkdir .deps 2>/dev/null
1690 if test -d .deps; then
1691 DEPDIR=.deps
1692 else
1693 # MS-DOS does not allow filenames that begin with a dot.
1694 DEPDIR=_deps
1696 rmdir .deps 2>/dev/null
1699 ac_config_commands="$ac_config_commands depfiles"
1702 am_make=${MAKE-make}
1703 cat > confinc << 'END'
1704 doit:
1705 @echo done
1707 # If we don't find an include directive, just comment out the code.
1708 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1709 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1710 am__include="#"
1711 am__quote=
1712 _am_result=none
1713 # First try GNU make style include.
1714 echo "include confinc" > confmf
1715 # We grep out `Entering directory' and `Leaving directory'
1716 # messages which can occur if `w' ends up in MAKEFLAGS.
1717 # In particular we don't look at `^make:' because GNU make might
1718 # be invoked under some other name (usually "gmake"), in which
1719 # case it prints its new name instead of `make'.
1720 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
1721 am__include=include
1722 am__quote=
1723 _am_result=GNU
1725 # Now try BSD make style include.
1726 if test "$am__include" = "#"; then
1727 echo '.include "confinc"' > confmf
1728 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1729 am__include=.include
1730 am__quote="\""
1731 _am_result=BSD
1736 echo "$as_me:$LINENO: result: $_am_result" >&5
1737 echo "${ECHO_T}$_am_result" >&6
1738 rm -f confinc confmf
1740 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1741 if test "${enable_dependency_tracking+set}" = set; then
1742 enableval="$enable_dependency_tracking"
1745 if test "x$enable_dependency_tracking" != xno; then
1746 am_depcomp="$ac_aux_dir/depcomp"
1747 AMDEPBACKSLASH='\'
1751 if test "x$enable_dependency_tracking" != xno; then
1752 AMDEP_TRUE=
1753 AMDEP_FALSE='#'
1754 else
1755 AMDEP_TRUE='#'
1756 AMDEP_FALSE=
1761 ac_ext=c
1762 ac_cpp='$CPP $CPPFLAGS'
1763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1766 if test -n "$ac_tool_prefix"; then
1767 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1768 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1769 echo "$as_me:$LINENO: checking for $ac_word" >&5
1770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1771 if test "${ac_cv_prog_CC+set}" = set; then
1772 echo $ECHO_N "(cached) $ECHO_C" >&6
1773 else
1774 if test -n "$CC"; then
1775 ac_cv_prog_CC="$CC" # Let the user override the test.
1776 else
1777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1778 for as_dir in $PATH
1780 IFS=$as_save_IFS
1781 test -z "$as_dir" && as_dir=.
1782 for ac_exec_ext in '' $ac_executable_extensions; do
1783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1784 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1786 break 2
1788 done
1789 done
1793 CC=$ac_cv_prog_CC
1794 if test -n "$CC"; then
1795 echo "$as_me:$LINENO: result: $CC" >&5
1796 echo "${ECHO_T}$CC" >&6
1797 else
1798 echo "$as_me:$LINENO: result: no" >&5
1799 echo "${ECHO_T}no" >&6
1803 if test -z "$ac_cv_prog_CC"; then
1804 ac_ct_CC=$CC
1805 # Extract the first word of "gcc", so it can be a program name with args.
1806 set dummy gcc; ac_word=$2
1807 echo "$as_me:$LINENO: checking for $ac_word" >&5
1808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1809 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1810 echo $ECHO_N "(cached) $ECHO_C" >&6
1811 else
1812 if test -n "$ac_ct_CC"; then
1813 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1814 else
1815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1816 for as_dir in $PATH
1818 IFS=$as_save_IFS
1819 test -z "$as_dir" && as_dir=.
1820 for ac_exec_ext in '' $ac_executable_extensions; do
1821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1822 ac_cv_prog_ac_ct_CC="gcc"
1823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1824 break 2
1826 done
1827 done
1831 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1832 if test -n "$ac_ct_CC"; then
1833 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1834 echo "${ECHO_T}$ac_ct_CC" >&6
1835 else
1836 echo "$as_me:$LINENO: result: no" >&5
1837 echo "${ECHO_T}no" >&6
1840 CC=$ac_ct_CC
1841 else
1842 CC="$ac_cv_prog_CC"
1845 if test -z "$CC"; then
1846 if test -n "$ac_tool_prefix"; then
1847 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1848 set dummy ${ac_tool_prefix}cc; ac_word=$2
1849 echo "$as_me:$LINENO: checking for $ac_word" >&5
1850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1851 if test "${ac_cv_prog_CC+set}" = set; then
1852 echo $ECHO_N "(cached) $ECHO_C" >&6
1853 else
1854 if test -n "$CC"; then
1855 ac_cv_prog_CC="$CC" # Let the user override the test.
1856 else
1857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1858 for as_dir in $PATH
1860 IFS=$as_save_IFS
1861 test -z "$as_dir" && as_dir=.
1862 for ac_exec_ext in '' $ac_executable_extensions; do
1863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1864 ac_cv_prog_CC="${ac_tool_prefix}cc"
1865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1866 break 2
1868 done
1869 done
1873 CC=$ac_cv_prog_CC
1874 if test -n "$CC"; then
1875 echo "$as_me:$LINENO: result: $CC" >&5
1876 echo "${ECHO_T}$CC" >&6
1877 else
1878 echo "$as_me:$LINENO: result: no" >&5
1879 echo "${ECHO_T}no" >&6
1883 if test -z "$ac_cv_prog_CC"; then
1884 ac_ct_CC=$CC
1885 # Extract the first word of "cc", so it can be a program name with args.
1886 set dummy cc; ac_word=$2
1887 echo "$as_me:$LINENO: checking for $ac_word" >&5
1888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1889 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1890 echo $ECHO_N "(cached) $ECHO_C" >&6
1891 else
1892 if test -n "$ac_ct_CC"; then
1893 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1894 else
1895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1896 for as_dir in $PATH
1898 IFS=$as_save_IFS
1899 test -z "$as_dir" && as_dir=.
1900 for ac_exec_ext in '' $ac_executable_extensions; do
1901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1902 ac_cv_prog_ac_ct_CC="cc"
1903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1904 break 2
1906 done
1907 done
1911 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1912 if test -n "$ac_ct_CC"; then
1913 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1914 echo "${ECHO_T}$ac_ct_CC" >&6
1915 else
1916 echo "$as_me:$LINENO: result: no" >&5
1917 echo "${ECHO_T}no" >&6
1920 CC=$ac_ct_CC
1921 else
1922 CC="$ac_cv_prog_CC"
1926 if test -z "$CC"; then
1927 # Extract the first word of "cc", so it can be a program name with args.
1928 set dummy cc; ac_word=$2
1929 echo "$as_me:$LINENO: checking for $ac_word" >&5
1930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1931 if test "${ac_cv_prog_CC+set}" = set; then
1932 echo $ECHO_N "(cached) $ECHO_C" >&6
1933 else
1934 if test -n "$CC"; then
1935 ac_cv_prog_CC="$CC" # Let the user override the test.
1936 else
1937 ac_prog_rejected=no
1938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1939 for as_dir in $PATH
1941 IFS=$as_save_IFS
1942 test -z "$as_dir" && as_dir=.
1943 for ac_exec_ext in '' $ac_executable_extensions; do
1944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1945 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1946 ac_prog_rejected=yes
1947 continue
1949 ac_cv_prog_CC="cc"
1950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1951 break 2
1953 done
1954 done
1956 if test $ac_prog_rejected = yes; then
1957 # We found a bogon in the path, so make sure we never use it.
1958 set dummy $ac_cv_prog_CC
1959 shift
1960 if test $# != 0; then
1961 # We chose a different compiler from the bogus one.
1962 # However, it has the same basename, so the bogon will be chosen
1963 # first if we set CC to just the basename; use the full file name.
1964 shift
1965 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1970 CC=$ac_cv_prog_CC
1971 if test -n "$CC"; then
1972 echo "$as_me:$LINENO: result: $CC" >&5
1973 echo "${ECHO_T}$CC" >&6
1974 else
1975 echo "$as_me:$LINENO: result: no" >&5
1976 echo "${ECHO_T}no" >&6
1980 if test -z "$CC"; then
1981 if test -n "$ac_tool_prefix"; then
1982 for ac_prog in cl
1984 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1985 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1986 echo "$as_me:$LINENO: checking for $ac_word" >&5
1987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1988 if test "${ac_cv_prog_CC+set}" = set; then
1989 echo $ECHO_N "(cached) $ECHO_C" >&6
1990 else
1991 if test -n "$CC"; then
1992 ac_cv_prog_CC="$CC" # Let the user override the test.
1993 else
1994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995 for as_dir in $PATH
1997 IFS=$as_save_IFS
1998 test -z "$as_dir" && as_dir=.
1999 for ac_exec_ext in '' $ac_executable_extensions; do
2000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2001 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2003 break 2
2005 done
2006 done
2010 CC=$ac_cv_prog_CC
2011 if test -n "$CC"; then
2012 echo "$as_me:$LINENO: result: $CC" >&5
2013 echo "${ECHO_T}$CC" >&6
2014 else
2015 echo "$as_me:$LINENO: result: no" >&5
2016 echo "${ECHO_T}no" >&6
2019 test -n "$CC" && break
2020 done
2022 if test -z "$CC"; then
2023 ac_ct_CC=$CC
2024 for ac_prog in cl
2026 # Extract the first word of "$ac_prog", so it can be a program name with args.
2027 set dummy $ac_prog; ac_word=$2
2028 echo "$as_me:$LINENO: checking for $ac_word" >&5
2029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2030 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2032 else
2033 if test -n "$ac_ct_CC"; then
2034 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2035 else
2036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2037 for as_dir in $PATH
2039 IFS=$as_save_IFS
2040 test -z "$as_dir" && as_dir=.
2041 for ac_exec_ext in '' $ac_executable_extensions; do
2042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2043 ac_cv_prog_ac_ct_CC="$ac_prog"
2044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2045 break 2
2047 done
2048 done
2052 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2053 if test -n "$ac_ct_CC"; then
2054 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2055 echo "${ECHO_T}$ac_ct_CC" >&6
2056 else
2057 echo "$as_me:$LINENO: result: no" >&5
2058 echo "${ECHO_T}no" >&6
2061 test -n "$ac_ct_CC" && break
2062 done
2064 CC=$ac_ct_CC
2070 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2071 See \`config.log' for more details." >&5
2072 echo "$as_me: error: no acceptable C compiler found in \$PATH
2073 See \`config.log' for more details." >&2;}
2074 { (exit 1); exit 1; }; }
2076 # Provide some information about the compiler.
2077 echo "$as_me:$LINENO:" \
2078 "checking for C compiler version" >&5
2079 ac_compiler=`set X $ac_compile; echo $2`
2080 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2081 (eval $ac_compiler --version </dev/null >&5) 2>&5
2082 ac_status=$?
2083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084 (exit $ac_status); }
2085 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2086 (eval $ac_compiler -v </dev/null >&5) 2>&5
2087 ac_status=$?
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }
2090 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2091 (eval $ac_compiler -V </dev/null >&5) 2>&5
2092 ac_status=$?
2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094 (exit $ac_status); }
2096 cat >conftest.$ac_ext <<_ACEOF
2097 /* confdefs.h. */
2098 _ACEOF
2099 cat confdefs.h >>conftest.$ac_ext
2100 cat >>conftest.$ac_ext <<_ACEOF
2101 /* end confdefs.h. */
2104 main ()
2108 return 0;
2110 _ACEOF
2111 ac_clean_files_save=$ac_clean_files
2112 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2113 # Try to create an executable without -o first, disregard a.out.
2114 # It will help us diagnose broken compilers, and finding out an intuition
2115 # of exeext.
2116 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2117 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2118 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2119 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2120 (eval $ac_link_default) 2>&5
2121 ac_status=$?
2122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123 (exit $ac_status); }; then
2124 # Find the output, starting from the most likely. This scheme is
2125 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2126 # resort.
2128 # Be careful to initialize this variable, since it used to be cached.
2129 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2130 ac_cv_exeext=
2131 # b.out is created by i960 compilers.
2132 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2134 test -f "$ac_file" || continue
2135 case $ac_file in
2136 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2138 conftest.$ac_ext )
2139 # This is the source file.
2141 [ab].out )
2142 # We found the default executable, but exeext='' is most
2143 # certainly right.
2144 break;;
2145 *.* )
2146 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2147 # FIXME: I believe we export ac_cv_exeext for Libtool,
2148 # but it would be cool to find out if it's true. Does anybody
2149 # maintain Libtool? --akim.
2150 export ac_cv_exeext
2151 break;;
2153 break;;
2154 esac
2155 done
2156 else
2157 echo "$as_me: failed program was:" >&5
2158 sed 's/^/| /' conftest.$ac_ext >&5
2160 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2161 See \`config.log' for more details." >&5
2162 echo "$as_me: error: C compiler cannot create executables
2163 See \`config.log' for more details." >&2;}
2164 { (exit 77); exit 77; }; }
2167 ac_exeext=$ac_cv_exeext
2168 echo "$as_me:$LINENO: result: $ac_file" >&5
2169 echo "${ECHO_T}$ac_file" >&6
2171 # Check the compiler produces executables we can run. If not, either
2172 # the compiler is broken, or we cross compile.
2173 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2174 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2175 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2176 # If not cross compiling, check that we can run a simple program.
2177 if test "$cross_compiling" != yes; then
2178 if { ac_try='./$ac_file'
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); }; }; then
2184 cross_compiling=no
2185 else
2186 if test "$cross_compiling" = maybe; then
2187 cross_compiling=yes
2188 else
2189 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2190 If you meant to cross compile, use \`--host'.
2191 See \`config.log' for more details." >&5
2192 echo "$as_me: error: cannot run C compiled programs.
2193 If you meant to cross compile, use \`--host'.
2194 See \`config.log' for more details." >&2;}
2195 { (exit 1); exit 1; }; }
2199 echo "$as_me:$LINENO: result: yes" >&5
2200 echo "${ECHO_T}yes" >&6
2202 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2203 ac_clean_files=$ac_clean_files_save
2204 # Check the compiler produces executables we can run. If not, either
2205 # the compiler is broken, or we cross compile.
2206 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2207 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2208 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2209 echo "${ECHO_T}$cross_compiling" >&6
2211 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2212 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2214 (eval $ac_link) 2>&5
2215 ac_status=$?
2216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217 (exit $ac_status); }; then
2218 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2219 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2220 # work properly (i.e., refer to `conftest.exe'), while it won't with
2221 # `rm'.
2222 for ac_file in conftest.exe conftest conftest.*; do
2223 test -f "$ac_file" || continue
2224 case $ac_file in
2225 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2226 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2227 export ac_cv_exeext
2228 break;;
2229 * ) break;;
2230 esac
2231 done
2232 else
2233 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2234 See \`config.log' for more details." >&5
2235 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2236 See \`config.log' for more details." >&2;}
2237 { (exit 1); exit 1; }; }
2240 rm -f conftest$ac_cv_exeext
2241 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2242 echo "${ECHO_T}$ac_cv_exeext" >&6
2244 rm -f conftest.$ac_ext
2245 EXEEXT=$ac_cv_exeext
2246 ac_exeext=$EXEEXT
2247 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2248 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2249 if test "${ac_cv_objext+set}" = set; then
2250 echo $ECHO_N "(cached) $ECHO_C" >&6
2251 else
2252 cat >conftest.$ac_ext <<_ACEOF
2253 /* confdefs.h. */
2254 _ACEOF
2255 cat confdefs.h >>conftest.$ac_ext
2256 cat >>conftest.$ac_ext <<_ACEOF
2257 /* end confdefs.h. */
2260 main ()
2264 return 0;
2266 _ACEOF
2267 rm -f conftest.o conftest.obj
2268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2269 (eval $ac_compile) 2>&5
2270 ac_status=$?
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); }; then
2273 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2274 case $ac_file in
2275 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2276 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2277 break;;
2278 esac
2279 done
2280 else
2281 echo "$as_me: failed program was:" >&5
2282 sed 's/^/| /' conftest.$ac_ext >&5
2284 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2285 See \`config.log' for more details." >&5
2286 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2287 See \`config.log' for more details." >&2;}
2288 { (exit 1); exit 1; }; }
2291 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2293 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2294 echo "${ECHO_T}$ac_cv_objext" >&6
2295 OBJEXT=$ac_cv_objext
2296 ac_objext=$OBJEXT
2297 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2298 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2299 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2300 echo $ECHO_N "(cached) $ECHO_C" >&6
2301 else
2302 cat >conftest.$ac_ext <<_ACEOF
2303 /* confdefs.h. */
2304 _ACEOF
2305 cat confdefs.h >>conftest.$ac_ext
2306 cat >>conftest.$ac_ext <<_ACEOF
2307 /* end confdefs.h. */
2310 main ()
2312 #ifndef __GNUC__
2313 choke me
2314 #endif
2317 return 0;
2319 _ACEOF
2320 rm -f conftest.$ac_objext
2321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2322 (eval $ac_compile) 2>conftest.er1
2323 ac_status=$?
2324 grep -v '^ *+' conftest.er1 >conftest.err
2325 rm -f conftest.er1
2326 cat conftest.err >&5
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); } &&
2329 { ac_try='test -z "$ac_c_werror_flag"
2330 || test ! -s conftest.err'
2331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2332 (eval $ac_try) 2>&5
2333 ac_status=$?
2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335 (exit $ac_status); }; } &&
2336 { ac_try='test -s conftest.$ac_objext'
2337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2338 (eval $ac_try) 2>&5
2339 ac_status=$?
2340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341 (exit $ac_status); }; }; then
2342 ac_compiler_gnu=yes
2343 else
2344 echo "$as_me: failed program was:" >&5
2345 sed 's/^/| /' conftest.$ac_ext >&5
2347 ac_compiler_gnu=no
2349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2350 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2353 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2354 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2355 GCC=`test $ac_compiler_gnu = yes && echo yes`
2356 ac_test_CFLAGS=${CFLAGS+set}
2357 ac_save_CFLAGS=$CFLAGS
2358 CFLAGS="-g"
2359 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2360 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2361 if test "${ac_cv_prog_cc_g+set}" = set; then
2362 echo $ECHO_N "(cached) $ECHO_C" >&6
2363 else
2364 cat >conftest.$ac_ext <<_ACEOF
2365 /* confdefs.h. */
2366 _ACEOF
2367 cat confdefs.h >>conftest.$ac_ext
2368 cat >>conftest.$ac_ext <<_ACEOF
2369 /* end confdefs.h. */
2372 main ()
2376 return 0;
2378 _ACEOF
2379 rm -f conftest.$ac_objext
2380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2381 (eval $ac_compile) 2>conftest.er1
2382 ac_status=$?
2383 grep -v '^ *+' conftest.er1 >conftest.err
2384 rm -f conftest.er1
2385 cat conftest.err >&5
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); } &&
2388 { ac_try='test -z "$ac_c_werror_flag"
2389 || test ! -s conftest.err'
2390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2391 (eval $ac_try) 2>&5
2392 ac_status=$?
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); }; } &&
2395 { ac_try='test -s conftest.$ac_objext'
2396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397 (eval $ac_try) 2>&5
2398 ac_status=$?
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); }; }; then
2401 ac_cv_prog_cc_g=yes
2402 else
2403 echo "$as_me: failed program was:" >&5
2404 sed 's/^/| /' conftest.$ac_ext >&5
2406 ac_cv_prog_cc_g=no
2408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2410 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2411 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2412 if test "$ac_test_CFLAGS" = set; then
2413 CFLAGS=$ac_save_CFLAGS
2414 elif test $ac_cv_prog_cc_g = yes; then
2415 if test "$GCC" = yes; then
2416 CFLAGS="-g -O2"
2417 else
2418 CFLAGS="-g"
2420 else
2421 if test "$GCC" = yes; then
2422 CFLAGS="-O2"
2423 else
2424 CFLAGS=
2427 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2428 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2429 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2430 echo $ECHO_N "(cached) $ECHO_C" >&6
2431 else
2432 ac_cv_prog_cc_stdc=no
2433 ac_save_CC=$CC
2434 cat >conftest.$ac_ext <<_ACEOF
2435 /* confdefs.h. */
2436 _ACEOF
2437 cat confdefs.h >>conftest.$ac_ext
2438 cat >>conftest.$ac_ext <<_ACEOF
2439 /* end confdefs.h. */
2440 #include <stdarg.h>
2441 #include <stdio.h>
2442 #include <sys/types.h>
2443 #include <sys/stat.h>
2444 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2445 struct buf { int x; };
2446 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2447 static char *e (p, i)
2448 char **p;
2449 int i;
2451 return p[i];
2453 static char *f (char * (*g) (char **, int), char **p, ...)
2455 char *s;
2456 va_list v;
2457 va_start (v,p);
2458 s = g (p, va_arg (v,int));
2459 va_end (v);
2460 return s;
2463 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2464 function prototypes and stuff, but not '\xHH' hex character constants.
2465 These don't provoke an error unfortunately, instead are silently treated
2466 as 'x'. The following induces an error, until -std1 is added to get
2467 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2468 array size at least. It's necessary to write '\x00'==0 to get something
2469 that's true only with -std1. */
2470 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2472 int test (int i, double x);
2473 struct s1 {int (*f) (int a);};
2474 struct s2 {int (*f) (double a);};
2475 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2476 int argc;
2477 char **argv;
2479 main ()
2481 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2483 return 0;
2485 _ACEOF
2486 # Don't try gcc -ansi; that turns off useful extensions and
2487 # breaks some systems' header files.
2488 # AIX -qlanglvl=ansi
2489 # Ultrix and OSF/1 -std1
2490 # HP-UX 10.20 and later -Ae
2491 # HP-UX older versions -Aa -D_HPUX_SOURCE
2492 # SVR4 -Xc -D__EXTENSIONS__
2493 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2495 CC="$ac_save_CC $ac_arg"
2496 rm -f conftest.$ac_objext
2497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2498 (eval $ac_compile) 2>conftest.er1
2499 ac_status=$?
2500 grep -v '^ *+' conftest.er1 >conftest.err
2501 rm -f conftest.er1
2502 cat conftest.err >&5
2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504 (exit $ac_status); } &&
2505 { ac_try='test -z "$ac_c_werror_flag"
2506 || test ! -s conftest.err'
2507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2508 (eval $ac_try) 2>&5
2509 ac_status=$?
2510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511 (exit $ac_status); }; } &&
2512 { ac_try='test -s conftest.$ac_objext'
2513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2514 (eval $ac_try) 2>&5
2515 ac_status=$?
2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517 (exit $ac_status); }; }; then
2518 ac_cv_prog_cc_stdc=$ac_arg
2519 break
2520 else
2521 echo "$as_me: failed program was:" >&5
2522 sed 's/^/| /' conftest.$ac_ext >&5
2525 rm -f conftest.err conftest.$ac_objext
2526 done
2527 rm -f conftest.$ac_ext conftest.$ac_objext
2528 CC=$ac_save_CC
2532 case "x$ac_cv_prog_cc_stdc" in
2533 x|xno)
2534 echo "$as_me:$LINENO: result: none needed" >&5
2535 echo "${ECHO_T}none needed" >&6 ;;
2537 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2538 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2539 CC="$CC $ac_cv_prog_cc_stdc" ;;
2540 esac
2542 # Some people use a C++ compiler to compile C. Since we use `exit',
2543 # in C++ we need to declare it. In case someone uses the same compiler
2544 # for both compiling C and C++ we need to have the C++ compiler decide
2545 # the declaration of exit, since it's the most demanding environment.
2546 cat >conftest.$ac_ext <<_ACEOF
2547 #ifndef __cplusplus
2548 choke me
2549 #endif
2550 _ACEOF
2551 rm -f conftest.$ac_objext
2552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2553 (eval $ac_compile) 2>conftest.er1
2554 ac_status=$?
2555 grep -v '^ *+' conftest.er1 >conftest.err
2556 rm -f conftest.er1
2557 cat conftest.err >&5
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); } &&
2560 { ac_try='test -z "$ac_c_werror_flag"
2561 || test ! -s conftest.err'
2562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563 (eval $ac_try) 2>&5
2564 ac_status=$?
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); }; } &&
2567 { ac_try='test -s conftest.$ac_objext'
2568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569 (eval $ac_try) 2>&5
2570 ac_status=$?
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); }; }; then
2573 for ac_declaration in \
2574 '' \
2575 'extern "C" void std::exit (int) throw (); using std::exit;' \
2576 'extern "C" void std::exit (int); using std::exit;' \
2577 'extern "C" void exit (int) throw ();' \
2578 'extern "C" void exit (int);' \
2579 'void exit (int);'
2581 cat >conftest.$ac_ext <<_ACEOF
2582 /* confdefs.h. */
2583 _ACEOF
2584 cat confdefs.h >>conftest.$ac_ext
2585 cat >>conftest.$ac_ext <<_ACEOF
2586 /* end confdefs.h. */
2587 $ac_declaration
2588 #include <stdlib.h>
2590 main ()
2592 exit (42);
2594 return 0;
2596 _ACEOF
2597 rm -f conftest.$ac_objext
2598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2599 (eval $ac_compile) 2>conftest.er1
2600 ac_status=$?
2601 grep -v '^ *+' conftest.er1 >conftest.err
2602 rm -f conftest.er1
2603 cat conftest.err >&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); } &&
2606 { ac_try='test -z "$ac_c_werror_flag"
2607 || test ! -s conftest.err'
2608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2609 (eval $ac_try) 2>&5
2610 ac_status=$?
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); }; } &&
2613 { ac_try='test -s conftest.$ac_objext'
2614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2615 (eval $ac_try) 2>&5
2616 ac_status=$?
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); }; }; then
2620 else
2621 echo "$as_me: failed program was:" >&5
2622 sed 's/^/| /' conftest.$ac_ext >&5
2624 continue
2626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2627 cat >conftest.$ac_ext <<_ACEOF
2628 /* confdefs.h. */
2629 _ACEOF
2630 cat confdefs.h >>conftest.$ac_ext
2631 cat >>conftest.$ac_ext <<_ACEOF
2632 /* end confdefs.h. */
2633 $ac_declaration
2635 main ()
2637 exit (42);
2639 return 0;
2641 _ACEOF
2642 rm -f conftest.$ac_objext
2643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2644 (eval $ac_compile) 2>conftest.er1
2645 ac_status=$?
2646 grep -v '^ *+' conftest.er1 >conftest.err
2647 rm -f conftest.er1
2648 cat conftest.err >&5
2649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 (exit $ac_status); } &&
2651 { ac_try='test -z "$ac_c_werror_flag"
2652 || test ! -s conftest.err'
2653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2654 (eval $ac_try) 2>&5
2655 ac_status=$?
2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657 (exit $ac_status); }; } &&
2658 { ac_try='test -s conftest.$ac_objext'
2659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2660 (eval $ac_try) 2>&5
2661 ac_status=$?
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); }; }; then
2664 break
2665 else
2666 echo "$as_me: failed program was:" >&5
2667 sed 's/^/| /' conftest.$ac_ext >&5
2670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2671 done
2672 rm -f conftest*
2673 if test -n "$ac_declaration"; then
2674 echo '#ifdef __cplusplus' >>confdefs.h
2675 echo $ac_declaration >>confdefs.h
2676 echo '#endif' >>confdefs.h
2679 else
2680 echo "$as_me: failed program was:" >&5
2681 sed 's/^/| /' conftest.$ac_ext >&5
2684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2685 ac_ext=c
2686 ac_cpp='$CPP $CPPFLAGS'
2687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2691 depcc="$CC" am_compiler_list=
2693 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2694 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2695 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
2697 else
2698 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2699 # We make a subdir and do the tests there. Otherwise we can end up
2700 # making bogus files that we don't know about and never remove. For
2701 # instance it was reported that on HP-UX the gcc test will end up
2702 # making a dummy file named `D' -- because `-MD' means `put the output
2703 # in D'.
2704 mkdir conftest.dir
2705 # Copy depcomp to subdir because otherwise we won't find it if we're
2706 # using a relative directory.
2707 cp "$am_depcomp" conftest.dir
2708 cd conftest.dir
2710 am_cv_CC_dependencies_compiler_type=none
2711 if test "$am_compiler_list" = ""; then
2712 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2714 for depmode in $am_compiler_list; do
2715 # We need to recreate these files for each test, as the compiler may
2716 # overwrite some of them when testing with obscure command lines.
2717 # This happens at least with the AIX C compiler.
2718 echo '#include "conftest.h"' > conftest.c
2719 echo 'int i;' > conftest.h
2720 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2722 case $depmode in
2723 nosideeffect)
2724 # after this tag, mechanisms are not by side-effect, so they'll
2725 # only be used when explicitly requested
2726 if test "x$enable_dependency_tracking" = xyes; then
2727 continue
2728 else
2729 break
2732 none) break ;;
2733 esac
2734 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2735 # mode. It turns out that the SunPro C++ compiler does not properly
2736 # handle `-M -o', and we need to detect this.
2737 if depmode=$depmode \
2738 source=conftest.c object=conftest.o \
2739 depfile=conftest.Po tmpdepfile=conftest.TPo \
2740 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2741 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2742 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2743 am_cv_CC_dependencies_compiler_type=$depmode
2744 break
2746 done
2748 cd ..
2749 rm -rf conftest.dir
2750 else
2751 am_cv_CC_dependencies_compiler_type=none
2755 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2756 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2757 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2761 ac_ext=c
2762 ac_cpp='$CPP $CPPFLAGS'
2763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2766 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2767 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2768 # On Suns, sometimes $CPP names a directory.
2769 if test -n "$CPP" && test -d "$CPP"; then
2770 CPP=
2772 if test -z "$CPP"; then
2773 if test "${ac_cv_prog_CPP+set}" = set; then
2774 echo $ECHO_N "(cached) $ECHO_C" >&6
2775 else
2776 # Double quotes because CPP needs to be expanded
2777 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2779 ac_preproc_ok=false
2780 for ac_c_preproc_warn_flag in '' yes
2782 # Use a header file that comes with gcc, so configuring glibc
2783 # with a fresh cross-compiler works.
2784 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2785 # <limits.h> exists even on freestanding compilers.
2786 # On the NeXT, cc -E runs the code through the compiler's parser,
2787 # not just through cpp. "Syntax error" is here to catch this case.
2788 cat >conftest.$ac_ext <<_ACEOF
2789 /* confdefs.h. */
2790 _ACEOF
2791 cat confdefs.h >>conftest.$ac_ext
2792 cat >>conftest.$ac_ext <<_ACEOF
2793 /* end confdefs.h. */
2794 #ifdef __STDC__
2795 # include <limits.h>
2796 #else
2797 # include <assert.h>
2798 #endif
2799 Syntax error
2800 _ACEOF
2801 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2802 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2803 ac_status=$?
2804 grep -v '^ *+' conftest.er1 >conftest.err
2805 rm -f conftest.er1
2806 cat conftest.err >&5
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); } >/dev/null; then
2809 if test -s conftest.err; then
2810 ac_cpp_err=$ac_c_preproc_warn_flag
2811 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2812 else
2813 ac_cpp_err=
2815 else
2816 ac_cpp_err=yes
2818 if test -z "$ac_cpp_err"; then
2820 else
2821 echo "$as_me: failed program was:" >&5
2822 sed 's/^/| /' conftest.$ac_ext >&5
2824 # Broken: fails on valid input.
2825 continue
2827 rm -f conftest.err conftest.$ac_ext
2829 # OK, works on sane cases. Now check whether non-existent headers
2830 # can be detected and how.
2831 cat >conftest.$ac_ext <<_ACEOF
2832 /* confdefs.h. */
2833 _ACEOF
2834 cat confdefs.h >>conftest.$ac_ext
2835 cat >>conftest.$ac_ext <<_ACEOF
2836 /* end confdefs.h. */
2837 #include <ac_nonexistent.h>
2838 _ACEOF
2839 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2840 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2841 ac_status=$?
2842 grep -v '^ *+' conftest.er1 >conftest.err
2843 rm -f conftest.er1
2844 cat conftest.err >&5
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); } >/dev/null; then
2847 if test -s conftest.err; then
2848 ac_cpp_err=$ac_c_preproc_warn_flag
2849 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2850 else
2851 ac_cpp_err=
2853 else
2854 ac_cpp_err=yes
2856 if test -z "$ac_cpp_err"; then
2857 # Broken: success on invalid input.
2858 continue
2859 else
2860 echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.$ac_ext >&5
2863 # Passes both tests.
2864 ac_preproc_ok=:
2865 break
2867 rm -f conftest.err conftest.$ac_ext
2869 done
2870 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2871 rm -f conftest.err conftest.$ac_ext
2872 if $ac_preproc_ok; then
2873 break
2876 done
2877 ac_cv_prog_CPP=$CPP
2880 CPP=$ac_cv_prog_CPP
2881 else
2882 ac_cv_prog_CPP=$CPP
2884 echo "$as_me:$LINENO: result: $CPP" >&5
2885 echo "${ECHO_T}$CPP" >&6
2886 ac_preproc_ok=false
2887 for ac_c_preproc_warn_flag in '' yes
2889 # Use a header file that comes with gcc, so configuring glibc
2890 # with a fresh cross-compiler works.
2891 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2892 # <limits.h> exists even on freestanding compilers.
2893 # On the NeXT, cc -E runs the code through the compiler's parser,
2894 # not just through cpp. "Syntax error" is here to catch this case.
2895 cat >conftest.$ac_ext <<_ACEOF
2896 /* confdefs.h. */
2897 _ACEOF
2898 cat confdefs.h >>conftest.$ac_ext
2899 cat >>conftest.$ac_ext <<_ACEOF
2900 /* end confdefs.h. */
2901 #ifdef __STDC__
2902 # include <limits.h>
2903 #else
2904 # include <assert.h>
2905 #endif
2906 Syntax error
2907 _ACEOF
2908 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2909 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2910 ac_status=$?
2911 grep -v '^ *+' conftest.er1 >conftest.err
2912 rm -f conftest.er1
2913 cat conftest.err >&5
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); } >/dev/null; then
2916 if test -s conftest.err; then
2917 ac_cpp_err=$ac_c_preproc_warn_flag
2918 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2919 else
2920 ac_cpp_err=
2922 else
2923 ac_cpp_err=yes
2925 if test -z "$ac_cpp_err"; then
2927 else
2928 echo "$as_me: failed program was:" >&5
2929 sed 's/^/| /' conftest.$ac_ext >&5
2931 # Broken: fails on valid input.
2932 continue
2934 rm -f conftest.err conftest.$ac_ext
2936 # OK, works on sane cases. Now check whether non-existent headers
2937 # can be detected and how.
2938 cat >conftest.$ac_ext <<_ACEOF
2939 /* confdefs.h. */
2940 _ACEOF
2941 cat confdefs.h >>conftest.$ac_ext
2942 cat >>conftest.$ac_ext <<_ACEOF
2943 /* end confdefs.h. */
2944 #include <ac_nonexistent.h>
2945 _ACEOF
2946 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2947 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2948 ac_status=$?
2949 grep -v '^ *+' conftest.er1 >conftest.err
2950 rm -f conftest.er1
2951 cat conftest.err >&5
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); } >/dev/null; then
2954 if test -s conftest.err; then
2955 ac_cpp_err=$ac_c_preproc_warn_flag
2956 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2957 else
2958 ac_cpp_err=
2960 else
2961 ac_cpp_err=yes
2963 if test -z "$ac_cpp_err"; then
2964 # Broken: success on invalid input.
2965 continue
2966 else
2967 echo "$as_me: failed program was:" >&5
2968 sed 's/^/| /' conftest.$ac_ext >&5
2970 # Passes both tests.
2971 ac_preproc_ok=:
2972 break
2974 rm -f conftest.err conftest.$ac_ext
2976 done
2977 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2978 rm -f conftest.err conftest.$ac_ext
2979 if $ac_preproc_ok; then
2981 else
2982 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2983 See \`config.log' for more details." >&5
2984 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2985 See \`config.log' for more details." >&2;}
2986 { (exit 1); exit 1; }; }
2989 ac_ext=c
2990 ac_cpp='$CPP $CPPFLAGS'
2991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2996 echo "$as_me:$LINENO: checking for egrep" >&5
2997 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2998 if test "${ac_cv_prog_egrep+set}" = set; then
2999 echo $ECHO_N "(cached) $ECHO_C" >&6
3000 else
3001 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3002 then ac_cv_prog_egrep='grep -E'
3003 else ac_cv_prog_egrep='egrep'
3006 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3007 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3008 EGREP=$ac_cv_prog_egrep
3011 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3012 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3013 if test "${ac_cv_header_stdc+set}" = set; then
3014 echo $ECHO_N "(cached) $ECHO_C" >&6
3015 else
3016 cat >conftest.$ac_ext <<_ACEOF
3017 /* confdefs.h. */
3018 _ACEOF
3019 cat confdefs.h >>conftest.$ac_ext
3020 cat >>conftest.$ac_ext <<_ACEOF
3021 /* end confdefs.h. */
3022 #include <stdlib.h>
3023 #include <stdarg.h>
3024 #include <string.h>
3025 #include <float.h>
3028 main ()
3032 return 0;
3034 _ACEOF
3035 rm -f conftest.$ac_objext
3036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3037 (eval $ac_compile) 2>conftest.er1
3038 ac_status=$?
3039 grep -v '^ *+' conftest.er1 >conftest.err
3040 rm -f conftest.er1
3041 cat conftest.err >&5
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); } &&
3044 { ac_try='test -z "$ac_c_werror_flag"
3045 || test ! -s conftest.err'
3046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3047 (eval $ac_try) 2>&5
3048 ac_status=$?
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }; } &&
3051 { ac_try='test -s conftest.$ac_objext'
3052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3053 (eval $ac_try) 2>&5
3054 ac_status=$?
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); }; }; then
3057 ac_cv_header_stdc=yes
3058 else
3059 echo "$as_me: failed program was:" >&5
3060 sed 's/^/| /' conftest.$ac_ext >&5
3062 ac_cv_header_stdc=no
3064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3066 if test $ac_cv_header_stdc = yes; then
3067 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3068 cat >conftest.$ac_ext <<_ACEOF
3069 /* confdefs.h. */
3070 _ACEOF
3071 cat confdefs.h >>conftest.$ac_ext
3072 cat >>conftest.$ac_ext <<_ACEOF
3073 /* end confdefs.h. */
3074 #include <string.h>
3076 _ACEOF
3077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3078 $EGREP "memchr" >/dev/null 2>&1; then
3080 else
3081 ac_cv_header_stdc=no
3083 rm -f conftest*
3087 if test $ac_cv_header_stdc = yes; then
3088 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3089 cat >conftest.$ac_ext <<_ACEOF
3090 /* confdefs.h. */
3091 _ACEOF
3092 cat confdefs.h >>conftest.$ac_ext
3093 cat >>conftest.$ac_ext <<_ACEOF
3094 /* end confdefs.h. */
3095 #include <stdlib.h>
3097 _ACEOF
3098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3099 $EGREP "free" >/dev/null 2>&1; then
3101 else
3102 ac_cv_header_stdc=no
3104 rm -f conftest*
3108 if test $ac_cv_header_stdc = yes; then
3109 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3110 if test "$cross_compiling" = yes; then
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 #include <ctype.h>
3120 #if ((' ' & 0x0FF) == 0x020)
3121 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3122 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3123 #else
3124 # define ISLOWER(c) \
3125 (('a' <= (c) && (c) <= 'i') \
3126 || ('j' <= (c) && (c) <= 'r') \
3127 || ('s' <= (c) && (c) <= 'z'))
3128 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3129 #endif
3131 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3133 main ()
3135 int i;
3136 for (i = 0; i < 256; i++)
3137 if (XOR (islower (i), ISLOWER (i))
3138 || toupper (i) != TOUPPER (i))
3139 exit(2);
3140 exit (0);
3142 _ACEOF
3143 rm -f conftest$ac_exeext
3144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3145 (eval $ac_link) 2>&5
3146 ac_status=$?
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3150 (eval $ac_try) 2>&5
3151 ac_status=$?
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); }; }; then
3155 else
3156 echo "$as_me: program exited with status $ac_status" >&5
3157 echo "$as_me: failed program was:" >&5
3158 sed 's/^/| /' conftest.$ac_ext >&5
3160 ( exit $ac_status )
3161 ac_cv_header_stdc=no
3163 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3167 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3168 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3169 if test $ac_cv_header_stdc = yes; then
3171 cat >>confdefs.h <<\_ACEOF
3172 #define STDC_HEADERS 1
3173 _ACEOF
3177 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3187 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3188 inttypes.h stdint.h unistd.h
3190 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3191 echo "$as_me:$LINENO: checking for $ac_header" >&5
3192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3194 echo $ECHO_N "(cached) $ECHO_C" >&6
3195 else
3196 cat >conftest.$ac_ext <<_ACEOF
3197 /* confdefs.h. */
3198 _ACEOF
3199 cat confdefs.h >>conftest.$ac_ext
3200 cat >>conftest.$ac_ext <<_ACEOF
3201 /* end confdefs.h. */
3202 $ac_includes_default
3204 #include <$ac_header>
3205 _ACEOF
3206 rm -f conftest.$ac_objext
3207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3208 (eval $ac_compile) 2>conftest.er1
3209 ac_status=$?
3210 grep -v '^ *+' conftest.er1 >conftest.err
3211 rm -f conftest.er1
3212 cat conftest.err >&5
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); } &&
3215 { ac_try='test -z "$ac_c_werror_flag"
3216 || test ! -s conftest.err'
3217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3218 (eval $ac_try) 2>&5
3219 ac_status=$?
3220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221 (exit $ac_status); }; } &&
3222 { ac_try='test -s conftest.$ac_objext'
3223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3224 (eval $ac_try) 2>&5
3225 ac_status=$?
3226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227 (exit $ac_status); }; }; then
3228 eval "$as_ac_Header=yes"
3229 else
3230 echo "$as_me: failed program was:" >&5
3231 sed 's/^/| /' conftest.$ac_ext >&5
3233 eval "$as_ac_Header=no"
3235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3240 cat >>confdefs.h <<_ACEOF
3241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3242 _ACEOF
3246 done
3249 echo "$as_me:$LINENO: checking for size_t" >&5
3250 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3251 if test "${ac_cv_type_size_t+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3253 else
3254 cat >conftest.$ac_ext <<_ACEOF
3255 /* confdefs.h. */
3256 _ACEOF
3257 cat confdefs.h >>conftest.$ac_ext
3258 cat >>conftest.$ac_ext <<_ACEOF
3259 /* end confdefs.h. */
3260 $ac_includes_default
3262 main ()
3264 if ((size_t *) 0)
3265 return 0;
3266 if (sizeof (size_t))
3267 return 0;
3269 return 0;
3271 _ACEOF
3272 rm -f conftest.$ac_objext
3273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3274 (eval $ac_compile) 2>conftest.er1
3275 ac_status=$?
3276 grep -v '^ *+' conftest.er1 >conftest.err
3277 rm -f conftest.er1
3278 cat conftest.err >&5
3279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); } &&
3281 { ac_try='test -z "$ac_c_werror_flag"
3282 || test ! -s conftest.err'
3283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3284 (eval $ac_try) 2>&5
3285 ac_status=$?
3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287 (exit $ac_status); }; } &&
3288 { ac_try='test -s conftest.$ac_objext'
3289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3290 (eval $ac_try) 2>&5
3291 ac_status=$?
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); }; }; then
3294 ac_cv_type_size_t=yes
3295 else
3296 echo "$as_me: failed program was:" >&5
3297 sed 's/^/| /' conftest.$ac_ext >&5
3299 ac_cv_type_size_t=no
3301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3303 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3304 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3305 if test $ac_cv_type_size_t = yes; then
3307 else
3309 cat >>confdefs.h <<_ACEOF
3310 #define size_t unsigned
3311 _ACEOF
3315 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3316 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3317 if test "${ac_cv_c_const+set}" = set; then
3318 echo $ECHO_N "(cached) $ECHO_C" >&6
3319 else
3320 cat >conftest.$ac_ext <<_ACEOF
3321 /* confdefs.h. */
3322 _ACEOF
3323 cat confdefs.h >>conftest.$ac_ext
3324 cat >>conftest.$ac_ext <<_ACEOF
3325 /* end confdefs.h. */
3328 main ()
3330 /* FIXME: Include the comments suggested by Paul. */
3331 #ifndef __cplusplus
3332 /* Ultrix mips cc rejects this. */
3333 typedef int charset[2];
3334 const charset x;
3335 /* SunOS 4.1.1 cc rejects this. */
3336 char const *const *ccp;
3337 char **p;
3338 /* NEC SVR4.0.2 mips cc rejects this. */
3339 struct point {int x, y;};
3340 static struct point const zero = {0,0};
3341 /* AIX XL C 1.02.0.0 rejects this.
3342 It does not let you subtract one const X* pointer from another in
3343 an arm of an if-expression whose if-part is not a constant
3344 expression */
3345 const char *g = "string";
3346 ccp = &g + (g ? g-g : 0);
3347 /* HPUX 7.0 cc rejects these. */
3348 ++ccp;
3349 p = (char**) ccp;
3350 ccp = (char const *const *) p;
3351 { /* SCO 3.2v4 cc rejects this. */
3352 char *t;
3353 char const *s = 0 ? (char *) 0 : (char const *) 0;
3355 *t++ = 0;
3357 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3358 int x[] = {25, 17};
3359 const int *foo = &x[0];
3360 ++foo;
3362 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3363 typedef const int *iptr;
3364 iptr p = 0;
3365 ++p;
3367 { /* AIX XL C 1.02.0.0 rejects this saying
3368 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3369 struct s { int j; const int *ap[3]; };
3370 struct s *b; b->j = 5;
3372 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3373 const int foo = 10;
3375 #endif
3378 return 0;
3380 _ACEOF
3381 rm -f conftest.$ac_objext
3382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3383 (eval $ac_compile) 2>conftest.er1
3384 ac_status=$?
3385 grep -v '^ *+' conftest.er1 >conftest.err
3386 rm -f conftest.er1
3387 cat conftest.err >&5
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); } &&
3390 { ac_try='test -z "$ac_c_werror_flag"
3391 || test ! -s conftest.err'
3392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3393 (eval $ac_try) 2>&5
3394 ac_status=$?
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); }; } &&
3397 { ac_try='test -s conftest.$ac_objext'
3398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3399 (eval $ac_try) 2>&5
3400 ac_status=$?
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); }; }; then
3403 ac_cv_c_const=yes
3404 else
3405 echo "$as_me: failed program was:" >&5
3406 sed 's/^/| /' conftest.$ac_ext >&5
3408 ac_cv_c_const=no
3410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3412 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3413 echo "${ECHO_T}$ac_cv_c_const" >&6
3414 if test $ac_cv_c_const = no; then
3416 cat >>confdefs.h <<\_ACEOF
3417 #define const
3418 _ACEOF
3423 for ac_prog in gawk mawk nawk awk
3425 # Extract the first word of "$ac_prog", so it can be a program name with args.
3426 set dummy $ac_prog; ac_word=$2
3427 echo "$as_me:$LINENO: checking for $ac_word" >&5
3428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3429 if test "${ac_cv_prog_AWK+set}" = set; then
3430 echo $ECHO_N "(cached) $ECHO_C" >&6
3431 else
3432 if test -n "$AWK"; then
3433 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3434 else
3435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3436 for as_dir in $PATH
3438 IFS=$as_save_IFS
3439 test -z "$as_dir" && as_dir=.
3440 for ac_exec_ext in '' $ac_executable_extensions; do
3441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3442 ac_cv_prog_AWK="$ac_prog"
3443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3444 break 2
3446 done
3447 done
3451 AWK=$ac_cv_prog_AWK
3452 if test -n "$AWK"; then
3453 echo "$as_me:$LINENO: result: $AWK" >&5
3454 echo "${ECHO_T}$AWK" >&6
3455 else
3456 echo "$as_me:$LINENO: result: no" >&5
3457 echo "${ECHO_T}no" >&6
3460 test -n "$AWK" && break
3461 done
3463 ac_ext=c
3464 ac_cpp='$CPP $CPPFLAGS'
3465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3468 if test -n "$ac_tool_prefix"; then
3469 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3470 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3471 echo "$as_me:$LINENO: checking for $ac_word" >&5
3472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3473 if test "${ac_cv_prog_CC+set}" = set; then
3474 echo $ECHO_N "(cached) $ECHO_C" >&6
3475 else
3476 if test -n "$CC"; then
3477 ac_cv_prog_CC="$CC" # Let the user override the test.
3478 else
3479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480 for as_dir in $PATH
3482 IFS=$as_save_IFS
3483 test -z "$as_dir" && as_dir=.
3484 for ac_exec_ext in '' $ac_executable_extensions; do
3485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3486 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3488 break 2
3490 done
3491 done
3495 CC=$ac_cv_prog_CC
3496 if test -n "$CC"; then
3497 echo "$as_me:$LINENO: result: $CC" >&5
3498 echo "${ECHO_T}$CC" >&6
3499 else
3500 echo "$as_me:$LINENO: result: no" >&5
3501 echo "${ECHO_T}no" >&6
3505 if test -z "$ac_cv_prog_CC"; then
3506 ac_ct_CC=$CC
3507 # Extract the first word of "gcc", so it can be a program name with args.
3508 set dummy gcc; ac_word=$2
3509 echo "$as_me:$LINENO: checking for $ac_word" >&5
3510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3511 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3512 echo $ECHO_N "(cached) $ECHO_C" >&6
3513 else
3514 if test -n "$ac_ct_CC"; then
3515 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3516 else
3517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3518 for as_dir in $PATH
3520 IFS=$as_save_IFS
3521 test -z "$as_dir" && as_dir=.
3522 for ac_exec_ext in '' $ac_executable_extensions; do
3523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3524 ac_cv_prog_ac_ct_CC="gcc"
3525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3526 break 2
3528 done
3529 done
3533 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3534 if test -n "$ac_ct_CC"; then
3535 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3536 echo "${ECHO_T}$ac_ct_CC" >&6
3537 else
3538 echo "$as_me:$LINENO: result: no" >&5
3539 echo "${ECHO_T}no" >&6
3542 CC=$ac_ct_CC
3543 else
3544 CC="$ac_cv_prog_CC"
3547 if test -z "$CC"; then
3548 if test -n "$ac_tool_prefix"; then
3549 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3550 set dummy ${ac_tool_prefix}cc; ac_word=$2
3551 echo "$as_me:$LINENO: checking for $ac_word" >&5
3552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3553 if test "${ac_cv_prog_CC+set}" = set; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
3555 else
3556 if test -n "$CC"; then
3557 ac_cv_prog_CC="$CC" # Let the user override the test.
3558 else
3559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3560 for as_dir in $PATH
3562 IFS=$as_save_IFS
3563 test -z "$as_dir" && as_dir=.
3564 for ac_exec_ext in '' $ac_executable_extensions; do
3565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3566 ac_cv_prog_CC="${ac_tool_prefix}cc"
3567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3568 break 2
3570 done
3571 done
3575 CC=$ac_cv_prog_CC
3576 if test -n "$CC"; then
3577 echo "$as_me:$LINENO: result: $CC" >&5
3578 echo "${ECHO_T}$CC" >&6
3579 else
3580 echo "$as_me:$LINENO: result: no" >&5
3581 echo "${ECHO_T}no" >&6
3585 if test -z "$ac_cv_prog_CC"; then
3586 ac_ct_CC=$CC
3587 # Extract the first word of "cc", so it can be a program name with args.
3588 set dummy cc; ac_word=$2
3589 echo "$as_me:$LINENO: checking for $ac_word" >&5
3590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3591 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3592 echo $ECHO_N "(cached) $ECHO_C" >&6
3593 else
3594 if test -n "$ac_ct_CC"; then
3595 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3596 else
3597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3598 for as_dir in $PATH
3600 IFS=$as_save_IFS
3601 test -z "$as_dir" && as_dir=.
3602 for ac_exec_ext in '' $ac_executable_extensions; do
3603 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3604 ac_cv_prog_ac_ct_CC="cc"
3605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3606 break 2
3608 done
3609 done
3613 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3614 if test -n "$ac_ct_CC"; then
3615 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3616 echo "${ECHO_T}$ac_ct_CC" >&6
3617 else
3618 echo "$as_me:$LINENO: result: no" >&5
3619 echo "${ECHO_T}no" >&6
3622 CC=$ac_ct_CC
3623 else
3624 CC="$ac_cv_prog_CC"
3628 if test -z "$CC"; then
3629 # Extract the first word of "cc", so it can be a program name with args.
3630 set dummy cc; ac_word=$2
3631 echo "$as_me:$LINENO: checking for $ac_word" >&5
3632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3633 if test "${ac_cv_prog_CC+set}" = set; then
3634 echo $ECHO_N "(cached) $ECHO_C" >&6
3635 else
3636 if test -n "$CC"; then
3637 ac_cv_prog_CC="$CC" # Let the user override the test.
3638 else
3639 ac_prog_rejected=no
3640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3641 for as_dir in $PATH
3643 IFS=$as_save_IFS
3644 test -z "$as_dir" && as_dir=.
3645 for ac_exec_ext in '' $ac_executable_extensions; do
3646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3647 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3648 ac_prog_rejected=yes
3649 continue
3651 ac_cv_prog_CC="cc"
3652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3653 break 2
3655 done
3656 done
3658 if test $ac_prog_rejected = yes; then
3659 # We found a bogon in the path, so make sure we never use it.
3660 set dummy $ac_cv_prog_CC
3661 shift
3662 if test $# != 0; then
3663 # We chose a different compiler from the bogus one.
3664 # However, it has the same basename, so the bogon will be chosen
3665 # first if we set CC to just the basename; use the full file name.
3666 shift
3667 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3672 CC=$ac_cv_prog_CC
3673 if test -n "$CC"; then
3674 echo "$as_me:$LINENO: result: $CC" >&5
3675 echo "${ECHO_T}$CC" >&6
3676 else
3677 echo "$as_me:$LINENO: result: no" >&5
3678 echo "${ECHO_T}no" >&6
3682 if test -z "$CC"; then
3683 if test -n "$ac_tool_prefix"; then
3684 for ac_prog in cl
3686 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3687 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3688 echo "$as_me:$LINENO: checking for $ac_word" >&5
3689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3690 if test "${ac_cv_prog_CC+set}" = set; then
3691 echo $ECHO_N "(cached) $ECHO_C" >&6
3692 else
3693 if test -n "$CC"; then
3694 ac_cv_prog_CC="$CC" # Let the user override the test.
3695 else
3696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3697 for as_dir in $PATH
3699 IFS=$as_save_IFS
3700 test -z "$as_dir" && as_dir=.
3701 for ac_exec_ext in '' $ac_executable_extensions; do
3702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3703 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3705 break 2
3707 done
3708 done
3712 CC=$ac_cv_prog_CC
3713 if test -n "$CC"; then
3714 echo "$as_me:$LINENO: result: $CC" >&5
3715 echo "${ECHO_T}$CC" >&6
3716 else
3717 echo "$as_me:$LINENO: result: no" >&5
3718 echo "${ECHO_T}no" >&6
3721 test -n "$CC" && break
3722 done
3724 if test -z "$CC"; then
3725 ac_ct_CC=$CC
3726 for ac_prog in cl
3728 # Extract the first word of "$ac_prog", so it can be a program name with args.
3729 set dummy $ac_prog; ac_word=$2
3730 echo "$as_me:$LINENO: checking for $ac_word" >&5
3731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3732 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3733 echo $ECHO_N "(cached) $ECHO_C" >&6
3734 else
3735 if test -n "$ac_ct_CC"; then
3736 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3737 else
3738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3739 for as_dir in $PATH
3741 IFS=$as_save_IFS
3742 test -z "$as_dir" && as_dir=.
3743 for ac_exec_ext in '' $ac_executable_extensions; do
3744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3745 ac_cv_prog_ac_ct_CC="$ac_prog"
3746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3747 break 2
3749 done
3750 done
3754 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3755 if test -n "$ac_ct_CC"; then
3756 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3757 echo "${ECHO_T}$ac_ct_CC" >&6
3758 else
3759 echo "$as_me:$LINENO: result: no" >&5
3760 echo "${ECHO_T}no" >&6
3763 test -n "$ac_ct_CC" && break
3764 done
3766 CC=$ac_ct_CC
3772 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3773 See \`config.log' for more details." >&5
3774 echo "$as_me: error: no acceptable C compiler found in \$PATH
3775 See \`config.log' for more details." >&2;}
3776 { (exit 1); exit 1; }; }
3778 # Provide some information about the compiler.
3779 echo "$as_me:$LINENO:" \
3780 "checking for C compiler version" >&5
3781 ac_compiler=`set X $ac_compile; echo $2`
3782 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3783 (eval $ac_compiler --version </dev/null >&5) 2>&5
3784 ac_status=$?
3785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786 (exit $ac_status); }
3787 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3788 (eval $ac_compiler -v </dev/null >&5) 2>&5
3789 ac_status=$?
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); }
3792 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3793 (eval $ac_compiler -V </dev/null >&5) 2>&5
3794 ac_status=$?
3795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796 (exit $ac_status); }
3798 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3799 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3800 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3801 echo $ECHO_N "(cached) $ECHO_C" >&6
3802 else
3803 cat >conftest.$ac_ext <<_ACEOF
3804 /* confdefs.h. */
3805 _ACEOF
3806 cat confdefs.h >>conftest.$ac_ext
3807 cat >>conftest.$ac_ext <<_ACEOF
3808 /* end confdefs.h. */
3811 main ()
3813 #ifndef __GNUC__
3814 choke me
3815 #endif
3818 return 0;
3820 _ACEOF
3821 rm -f conftest.$ac_objext
3822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3823 (eval $ac_compile) 2>conftest.er1
3824 ac_status=$?
3825 grep -v '^ *+' conftest.er1 >conftest.err
3826 rm -f conftest.er1
3827 cat conftest.err >&5
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); } &&
3830 { ac_try='test -z "$ac_c_werror_flag"
3831 || test ! -s conftest.err'
3832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3833 (eval $ac_try) 2>&5
3834 ac_status=$?
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); }; } &&
3837 { ac_try='test -s conftest.$ac_objext'
3838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3839 (eval $ac_try) 2>&5
3840 ac_status=$?
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); }; }; then
3843 ac_compiler_gnu=yes
3844 else
3845 echo "$as_me: failed program was:" >&5
3846 sed 's/^/| /' conftest.$ac_ext >&5
3848 ac_compiler_gnu=no
3850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3851 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3854 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3855 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3856 GCC=`test $ac_compiler_gnu = yes && echo yes`
3857 ac_test_CFLAGS=${CFLAGS+set}
3858 ac_save_CFLAGS=$CFLAGS
3859 CFLAGS="-g"
3860 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3861 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3862 if test "${ac_cv_prog_cc_g+set}" = set; then
3863 echo $ECHO_N "(cached) $ECHO_C" >&6
3864 else
3865 cat >conftest.$ac_ext <<_ACEOF
3866 /* confdefs.h. */
3867 _ACEOF
3868 cat confdefs.h >>conftest.$ac_ext
3869 cat >>conftest.$ac_ext <<_ACEOF
3870 /* end confdefs.h. */
3873 main ()
3877 return 0;
3879 _ACEOF
3880 rm -f conftest.$ac_objext
3881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3882 (eval $ac_compile) 2>conftest.er1
3883 ac_status=$?
3884 grep -v '^ *+' conftest.er1 >conftest.err
3885 rm -f conftest.er1
3886 cat conftest.err >&5
3887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888 (exit $ac_status); } &&
3889 { ac_try='test -z "$ac_c_werror_flag"
3890 || test ! -s conftest.err'
3891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3892 (eval $ac_try) 2>&5
3893 ac_status=$?
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); }; } &&
3896 { ac_try='test -s conftest.$ac_objext'
3897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3898 (eval $ac_try) 2>&5
3899 ac_status=$?
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); }; }; then
3902 ac_cv_prog_cc_g=yes
3903 else
3904 echo "$as_me: failed program was:" >&5
3905 sed 's/^/| /' conftest.$ac_ext >&5
3907 ac_cv_prog_cc_g=no
3909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3911 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3912 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3913 if test "$ac_test_CFLAGS" = set; then
3914 CFLAGS=$ac_save_CFLAGS
3915 elif test $ac_cv_prog_cc_g = yes; then
3916 if test "$GCC" = yes; then
3917 CFLAGS="-g -O2"
3918 else
3919 CFLAGS="-g"
3921 else
3922 if test "$GCC" = yes; then
3923 CFLAGS="-O2"
3924 else
3925 CFLAGS=
3928 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3929 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3930 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3931 echo $ECHO_N "(cached) $ECHO_C" >&6
3932 else
3933 ac_cv_prog_cc_stdc=no
3934 ac_save_CC=$CC
3935 cat >conftest.$ac_ext <<_ACEOF
3936 /* confdefs.h. */
3937 _ACEOF
3938 cat confdefs.h >>conftest.$ac_ext
3939 cat >>conftest.$ac_ext <<_ACEOF
3940 /* end confdefs.h. */
3941 #include <stdarg.h>
3942 #include <stdio.h>
3943 #include <sys/types.h>
3944 #include <sys/stat.h>
3945 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3946 struct buf { int x; };
3947 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3948 static char *e (p, i)
3949 char **p;
3950 int i;
3952 return p[i];
3954 static char *f (char * (*g) (char **, int), char **p, ...)
3956 char *s;
3957 va_list v;
3958 va_start (v,p);
3959 s = g (p, va_arg (v,int));
3960 va_end (v);
3961 return s;
3964 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3965 function prototypes and stuff, but not '\xHH' hex character constants.
3966 These don't provoke an error unfortunately, instead are silently treated
3967 as 'x'. The following induces an error, until -std1 is added to get
3968 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3969 array size at least. It's necessary to write '\x00'==0 to get something
3970 that's true only with -std1. */
3971 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3973 int test (int i, double x);
3974 struct s1 {int (*f) (int a);};
3975 struct s2 {int (*f) (double a);};
3976 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3977 int argc;
3978 char **argv;
3980 main ()
3982 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3984 return 0;
3986 _ACEOF
3987 # Don't try gcc -ansi; that turns off useful extensions and
3988 # breaks some systems' header files.
3989 # AIX -qlanglvl=ansi
3990 # Ultrix and OSF/1 -std1
3991 # HP-UX 10.20 and later -Ae
3992 # HP-UX older versions -Aa -D_HPUX_SOURCE
3993 # SVR4 -Xc -D__EXTENSIONS__
3994 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3996 CC="$ac_save_CC $ac_arg"
3997 rm -f conftest.$ac_objext
3998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3999 (eval $ac_compile) 2>conftest.er1
4000 ac_status=$?
4001 grep -v '^ *+' conftest.er1 >conftest.err
4002 rm -f conftest.er1
4003 cat conftest.err >&5
4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); } &&
4006 { ac_try='test -z "$ac_c_werror_flag"
4007 || test ! -s conftest.err'
4008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4009 (eval $ac_try) 2>&5
4010 ac_status=$?
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); }; } &&
4013 { ac_try='test -s conftest.$ac_objext'
4014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4015 (eval $ac_try) 2>&5
4016 ac_status=$?
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); }; }; then
4019 ac_cv_prog_cc_stdc=$ac_arg
4020 break
4021 else
4022 echo "$as_me: failed program was:" >&5
4023 sed 's/^/| /' conftest.$ac_ext >&5
4026 rm -f conftest.err conftest.$ac_objext
4027 done
4028 rm -f conftest.$ac_ext conftest.$ac_objext
4029 CC=$ac_save_CC
4033 case "x$ac_cv_prog_cc_stdc" in
4034 x|xno)
4035 echo "$as_me:$LINENO: result: none needed" >&5
4036 echo "${ECHO_T}none needed" >&6 ;;
4038 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4039 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4040 CC="$CC $ac_cv_prog_cc_stdc" ;;
4041 esac
4043 # Some people use a C++ compiler to compile C. Since we use `exit',
4044 # in C++ we need to declare it. In case someone uses the same compiler
4045 # for both compiling C and C++ we need to have the C++ compiler decide
4046 # the declaration of exit, since it's the most demanding environment.
4047 cat >conftest.$ac_ext <<_ACEOF
4048 #ifndef __cplusplus
4049 choke me
4050 #endif
4051 _ACEOF
4052 rm -f conftest.$ac_objext
4053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4054 (eval $ac_compile) 2>conftest.er1
4055 ac_status=$?
4056 grep -v '^ *+' conftest.er1 >conftest.err
4057 rm -f conftest.er1
4058 cat conftest.err >&5
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); } &&
4061 { ac_try='test -z "$ac_c_werror_flag"
4062 || test ! -s conftest.err'
4063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4064 (eval $ac_try) 2>&5
4065 ac_status=$?
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); }; } &&
4068 { ac_try='test -s conftest.$ac_objext'
4069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4070 (eval $ac_try) 2>&5
4071 ac_status=$?
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); }; }; then
4074 for ac_declaration in \
4075 '' \
4076 'extern "C" void std::exit (int) throw (); using std::exit;' \
4077 'extern "C" void std::exit (int); using std::exit;' \
4078 'extern "C" void exit (int) throw ();' \
4079 'extern "C" void exit (int);' \
4080 'void exit (int);'
4082 cat >conftest.$ac_ext <<_ACEOF
4083 /* confdefs.h. */
4084 _ACEOF
4085 cat confdefs.h >>conftest.$ac_ext
4086 cat >>conftest.$ac_ext <<_ACEOF
4087 /* end confdefs.h. */
4088 $ac_declaration
4089 #include <stdlib.h>
4091 main ()
4093 exit (42);
4095 return 0;
4097 _ACEOF
4098 rm -f conftest.$ac_objext
4099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4100 (eval $ac_compile) 2>conftest.er1
4101 ac_status=$?
4102 grep -v '^ *+' conftest.er1 >conftest.err
4103 rm -f conftest.er1
4104 cat conftest.err >&5
4105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106 (exit $ac_status); } &&
4107 { ac_try='test -z "$ac_c_werror_flag"
4108 || test ! -s conftest.err'
4109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4110 (eval $ac_try) 2>&5
4111 ac_status=$?
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); }; } &&
4114 { ac_try='test -s conftest.$ac_objext'
4115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4116 (eval $ac_try) 2>&5
4117 ac_status=$?
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); }; }; then
4121 else
4122 echo "$as_me: failed program was:" >&5
4123 sed 's/^/| /' conftest.$ac_ext >&5
4125 continue
4127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4128 cat >conftest.$ac_ext <<_ACEOF
4129 /* confdefs.h. */
4130 _ACEOF
4131 cat confdefs.h >>conftest.$ac_ext
4132 cat >>conftest.$ac_ext <<_ACEOF
4133 /* end confdefs.h. */
4134 $ac_declaration
4136 main ()
4138 exit (42);
4140 return 0;
4142 _ACEOF
4143 rm -f conftest.$ac_objext
4144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4145 (eval $ac_compile) 2>conftest.er1
4146 ac_status=$?
4147 grep -v '^ *+' conftest.er1 >conftest.err
4148 rm -f conftest.er1
4149 cat conftest.err >&5
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); } &&
4152 { ac_try='test -z "$ac_c_werror_flag"
4153 || test ! -s conftest.err'
4154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4155 (eval $ac_try) 2>&5
4156 ac_status=$?
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); }; } &&
4159 { ac_try='test -s conftest.$ac_objext'
4160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4161 (eval $ac_try) 2>&5
4162 ac_status=$?
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); }; }; then
4165 break
4166 else
4167 echo "$as_me: failed program was:" >&5
4168 sed 's/^/| /' conftest.$ac_ext >&5
4171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4172 done
4173 rm -f conftest*
4174 if test -n "$ac_declaration"; then
4175 echo '#ifdef __cplusplus' >>confdefs.h
4176 echo $ac_declaration >>confdefs.h
4177 echo '#endif' >>confdefs.h
4180 else
4181 echo "$as_me: failed program was:" >&5
4182 sed 's/^/| /' conftest.$ac_ext >&5
4185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4186 ac_ext=c
4187 ac_cpp='$CPP $CPPFLAGS'
4188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4192 depcc="$CC" am_compiler_list=
4194 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4195 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4196 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4197 echo $ECHO_N "(cached) $ECHO_C" >&6
4198 else
4199 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4200 # We make a subdir and do the tests there. Otherwise we can end up
4201 # making bogus files that we don't know about and never remove. For
4202 # instance it was reported that on HP-UX the gcc test will end up
4203 # making a dummy file named `D' -- because `-MD' means `put the output
4204 # in D'.
4205 mkdir conftest.dir
4206 # Copy depcomp to subdir because otherwise we won't find it if we're
4207 # using a relative directory.
4208 cp "$am_depcomp" conftest.dir
4209 cd conftest.dir
4211 am_cv_CC_dependencies_compiler_type=none
4212 if test "$am_compiler_list" = ""; then
4213 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4215 for depmode in $am_compiler_list; do
4216 # We need to recreate these files for each test, as the compiler may
4217 # overwrite some of them when testing with obscure command lines.
4218 # This happens at least with the AIX C compiler.
4219 echo '#include "conftest.h"' > conftest.c
4220 echo 'int i;' > conftest.h
4221 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
4223 case $depmode in
4224 nosideeffect)
4225 # after this tag, mechanisms are not by side-effect, so they'll
4226 # only be used when explicitly requested
4227 if test "x$enable_dependency_tracking" = xyes; then
4228 continue
4229 else
4230 break
4233 none) break ;;
4234 esac
4235 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4236 # mode. It turns out that the SunPro C++ compiler does not properly
4237 # handle `-M -o', and we need to detect this.
4238 if depmode=$depmode \
4239 source=conftest.c object=conftest.o \
4240 depfile=conftest.Po tmpdepfile=conftest.TPo \
4241 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
4242 grep conftest.h conftest.Po > /dev/null 2>&1 &&
4243 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4244 am_cv_CC_dependencies_compiler_type=$depmode
4245 break
4247 done
4249 cd ..
4250 rm -rf conftest.dir
4251 else
4252 am_cv_CC_dependencies_compiler_type=none
4256 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4257 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4258 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4261 for ac_prog in 'bison -y' byacc
4263 # Extract the first word of "$ac_prog", so it can be a program name with args.
4264 set dummy $ac_prog; ac_word=$2
4265 echo "$as_me:$LINENO: checking for $ac_word" >&5
4266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4267 if test "${ac_cv_prog_YACC+set}" = set; then
4268 echo $ECHO_N "(cached) $ECHO_C" >&6
4269 else
4270 if test -n "$YACC"; then
4271 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4272 else
4273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274 for as_dir in $PATH
4276 IFS=$as_save_IFS
4277 test -z "$as_dir" && as_dir=.
4278 for ac_exec_ext in '' $ac_executable_extensions; do
4279 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4280 ac_cv_prog_YACC="$ac_prog"
4281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4282 break 2
4284 done
4285 done
4289 YACC=$ac_cv_prog_YACC
4290 if test -n "$YACC"; then
4291 echo "$as_me:$LINENO: result: $YACC" >&5
4292 echo "${ECHO_T}$YACC" >&6
4293 else
4294 echo "$as_me:$LINENO: result: no" >&5
4295 echo "${ECHO_T}no" >&6
4298 test -n "$YACC" && break
4299 done
4300 test -n "$YACC" || YACC="yacc"
4302 for ac_prog in flex lex
4304 # Extract the first word of "$ac_prog", so it can be a program name with args.
4305 set dummy $ac_prog; ac_word=$2
4306 echo "$as_me:$LINENO: checking for $ac_word" >&5
4307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4308 if test "${ac_cv_prog_LEX+set}" = set; then
4309 echo $ECHO_N "(cached) $ECHO_C" >&6
4310 else
4311 if test -n "$LEX"; then
4312 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4313 else
4314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4315 for as_dir in $PATH
4317 IFS=$as_save_IFS
4318 test -z "$as_dir" && as_dir=.
4319 for ac_exec_ext in '' $ac_executable_extensions; do
4320 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4321 ac_cv_prog_LEX="$ac_prog"
4322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4323 break 2
4325 done
4326 done
4330 LEX=$ac_cv_prog_LEX
4331 if test -n "$LEX"; then
4332 echo "$as_me:$LINENO: result: $LEX" >&5
4333 echo "${ECHO_T}$LEX" >&6
4334 else
4335 echo "$as_me:$LINENO: result: no" >&5
4336 echo "${ECHO_T}no" >&6
4339 test -n "$LEX" && break
4340 done
4341 test -n "$LEX" || LEX=":"
4343 if test -z "$LEXLIB"
4344 then
4345 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4346 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4347 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4348 echo $ECHO_N "(cached) $ECHO_C" >&6
4349 else
4350 ac_check_lib_save_LIBS=$LIBS
4351 LIBS="-lfl $LIBS"
4352 cat >conftest.$ac_ext <<_ACEOF
4353 /* confdefs.h. */
4354 _ACEOF
4355 cat confdefs.h >>conftest.$ac_ext
4356 cat >>conftest.$ac_ext <<_ACEOF
4357 /* end confdefs.h. */
4359 /* Override any gcc2 internal prototype to avoid an error. */
4360 #ifdef __cplusplus
4361 extern "C"
4362 #endif
4363 /* We use char because int might match the return type of a gcc2
4364 builtin and then its argument prototype would still apply. */
4365 char yywrap ();
4367 main ()
4369 yywrap ();
4371 return 0;
4373 _ACEOF
4374 rm -f conftest.$ac_objext conftest$ac_exeext
4375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4376 (eval $ac_link) 2>conftest.er1
4377 ac_status=$?
4378 grep -v '^ *+' conftest.er1 >conftest.err
4379 rm -f conftest.er1
4380 cat conftest.err >&5
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); } &&
4383 { ac_try='test -z "$ac_c_werror_flag"
4384 || test ! -s conftest.err'
4385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4386 (eval $ac_try) 2>&5
4387 ac_status=$?
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); }; } &&
4390 { ac_try='test -s conftest$ac_exeext'
4391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4392 (eval $ac_try) 2>&5
4393 ac_status=$?
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); }; }; then
4396 ac_cv_lib_fl_yywrap=yes
4397 else
4398 echo "$as_me: failed program was:" >&5
4399 sed 's/^/| /' conftest.$ac_ext >&5
4401 ac_cv_lib_fl_yywrap=no
4403 rm -f conftest.err conftest.$ac_objext \
4404 conftest$ac_exeext conftest.$ac_ext
4405 LIBS=$ac_check_lib_save_LIBS
4407 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4408 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4409 if test $ac_cv_lib_fl_yywrap = yes; then
4410 LEXLIB="-lfl"
4411 else
4412 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4413 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4414 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4415 echo $ECHO_N "(cached) $ECHO_C" >&6
4416 else
4417 ac_check_lib_save_LIBS=$LIBS
4418 LIBS="-ll $LIBS"
4419 cat >conftest.$ac_ext <<_ACEOF
4420 /* confdefs.h. */
4421 _ACEOF
4422 cat confdefs.h >>conftest.$ac_ext
4423 cat >>conftest.$ac_ext <<_ACEOF
4424 /* end confdefs.h. */
4426 /* Override any gcc2 internal prototype to avoid an error. */
4427 #ifdef __cplusplus
4428 extern "C"
4429 #endif
4430 /* We use char because int might match the return type of a gcc2
4431 builtin and then its argument prototype would still apply. */
4432 char yywrap ();
4434 main ()
4436 yywrap ();
4438 return 0;
4440 _ACEOF
4441 rm -f conftest.$ac_objext conftest$ac_exeext
4442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4443 (eval $ac_link) 2>conftest.er1
4444 ac_status=$?
4445 grep -v '^ *+' conftest.er1 >conftest.err
4446 rm -f conftest.er1
4447 cat conftest.err >&5
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); } &&
4450 { ac_try='test -z "$ac_c_werror_flag"
4451 || test ! -s conftest.err'
4452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4453 (eval $ac_try) 2>&5
4454 ac_status=$?
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); }; } &&
4457 { ac_try='test -s conftest$ac_exeext'
4458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4459 (eval $ac_try) 2>&5
4460 ac_status=$?
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); }; }; then
4463 ac_cv_lib_l_yywrap=yes
4464 else
4465 echo "$as_me: failed program was:" >&5
4466 sed 's/^/| /' conftest.$ac_ext >&5
4468 ac_cv_lib_l_yywrap=no
4470 rm -f conftest.err conftest.$ac_objext \
4471 conftest$ac_exeext conftest.$ac_ext
4472 LIBS=$ac_check_lib_save_LIBS
4474 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4475 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4476 if test $ac_cv_lib_l_yywrap = yes; then
4477 LEXLIB="-ll"
4484 if test "x$LEX" != "x:"; then
4485 echo "$as_me:$LINENO: checking lex output file root" >&5
4486 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4487 if test "${ac_cv_prog_lex_root+set}" = set; then
4488 echo $ECHO_N "(cached) $ECHO_C" >&6
4489 else
4490 # The minimal lex program is just a single line: %%. But some broken lexes
4491 # (Solaris, I think it was) want two %% lines, so accommodate them.
4492 cat >conftest.l <<_ACEOF
4495 _ACEOF
4496 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4497 (eval $LEX conftest.l) 2>&5
4498 ac_status=$?
4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); }
4501 if test -f lex.yy.c; then
4502 ac_cv_prog_lex_root=lex.yy
4503 elif test -f lexyy.c; then
4504 ac_cv_prog_lex_root=lexyy
4505 else
4506 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4507 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4508 { (exit 1); exit 1; }; }
4511 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4512 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4513 rm -f conftest.l
4514 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4516 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4517 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4518 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4519 echo $ECHO_N "(cached) $ECHO_C" >&6
4520 else
4521 # POSIX says lex can declare yytext either as a pointer or an array; the
4522 # default is implementation-dependent. Figure out which it is, since
4523 # not all implementations provide the %pointer and %array declarations.
4524 ac_cv_prog_lex_yytext_pointer=no
4525 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4526 ac_save_LIBS=$LIBS
4527 LIBS="$LIBS $LEXLIB"
4528 cat >conftest.$ac_ext <<_ACEOF
4529 `cat $LEX_OUTPUT_ROOT.c`
4530 _ACEOF
4531 rm -f conftest.$ac_objext conftest$ac_exeext
4532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4533 (eval $ac_link) 2>conftest.er1
4534 ac_status=$?
4535 grep -v '^ *+' conftest.er1 >conftest.err
4536 rm -f conftest.er1
4537 cat conftest.err >&5
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); } &&
4540 { ac_try='test -z "$ac_c_werror_flag"
4541 || test ! -s conftest.err'
4542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4543 (eval $ac_try) 2>&5
4544 ac_status=$?
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); }; } &&
4547 { ac_try='test -s conftest$ac_exeext'
4548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4549 (eval $ac_try) 2>&5
4550 ac_status=$?
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); }; }; then
4553 ac_cv_prog_lex_yytext_pointer=yes
4554 else
4555 echo "$as_me: failed program was:" >&5
4556 sed 's/^/| /' conftest.$ac_ext >&5
4559 rm -f conftest.err conftest.$ac_objext \
4560 conftest$ac_exeext conftest.$ac_ext
4561 LIBS=$ac_save_LIBS
4562 rm -f "${LEX_OUTPUT_ROOT}.c"
4565 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4566 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4567 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4569 cat >>confdefs.h <<\_ACEOF
4570 #define YYTEXT_POINTER 1
4571 _ACEOF
4576 if test "$LEX" = :; then
4577 LEX=${am_missing_run}flex
4579 # Find a good install program. We prefer a C program (faster),
4580 # so one script is as good as another. But avoid the broken or
4581 # incompatible versions:
4582 # SysV /etc/install, /usr/sbin/install
4583 # SunOS /usr/etc/install
4584 # IRIX /sbin/install
4585 # AIX /bin/install
4586 # AmigaOS /C/install, which installs bootblocks on floppy discs
4587 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4588 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4589 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4590 # OS/2's system install, which has a completely different semantic
4591 # ./install, which can be erroneously created by make from ./install.sh.
4592 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4593 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4594 if test -z "$INSTALL"; then
4595 if test "${ac_cv_path_install+set}" = set; then
4596 echo $ECHO_N "(cached) $ECHO_C" >&6
4597 else
4598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599 for as_dir in $PATH
4601 IFS=$as_save_IFS
4602 test -z "$as_dir" && as_dir=.
4603 # Account for people who put trailing slashes in PATH elements.
4604 case $as_dir/ in
4605 ./ | .// | /cC/* | \
4606 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4607 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4608 /usr/ucb/* ) ;;
4610 # OSF1 and SCO ODT 3.0 have their own names for install.
4611 # Don't use installbsd from OSF since it installs stuff as root
4612 # by default.
4613 for ac_prog in ginstall scoinst install; do
4614 for ac_exec_ext in '' $ac_executable_extensions; do
4615 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4616 if test $ac_prog = install &&
4617 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4618 # AIX install. It has an incompatible calling convention.
4620 elif test $ac_prog = install &&
4621 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4622 # program-specific install script used by HP pwplus--don't use.
4624 else
4625 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4626 break 3
4629 done
4630 done
4632 esac
4633 done
4637 if test "${ac_cv_path_install+set}" = set; then
4638 INSTALL=$ac_cv_path_install
4639 else
4640 # As a last resort, use the slow shell script. We don't cache a
4641 # path for INSTALL within a source directory, because that will
4642 # break other packages using the cache if that directory is
4643 # removed, or if the path is relative.
4644 INSTALL=$ac_install_sh
4647 echo "$as_me:$LINENO: result: $INSTALL" >&5
4648 echo "${ECHO_T}$INSTALL" >&6
4650 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4651 # It thinks the first close brace ends the variable substitution.
4652 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4654 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4656 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4658 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4659 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4660 LN_S=$as_ln_s
4661 if test "$LN_S" = "ln -s"; then
4662 echo "$as_me:$LINENO: result: yes" >&5
4663 echo "${ECHO_T}yes" >&6
4664 else
4665 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4666 echo "${ECHO_T}no, using $LN_S" >&6
4671 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4672 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4673 if test "${ac_cv_header_stdc+set}" = set; then
4674 echo $ECHO_N "(cached) $ECHO_C" >&6
4675 else
4676 cat >conftest.$ac_ext <<_ACEOF
4677 /* confdefs.h. */
4678 _ACEOF
4679 cat confdefs.h >>conftest.$ac_ext
4680 cat >>conftest.$ac_ext <<_ACEOF
4681 /* end confdefs.h. */
4682 #include <stdlib.h>
4683 #include <stdarg.h>
4684 #include <string.h>
4685 #include <float.h>
4688 main ()
4692 return 0;
4694 _ACEOF
4695 rm -f conftest.$ac_objext
4696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4697 (eval $ac_compile) 2>conftest.er1
4698 ac_status=$?
4699 grep -v '^ *+' conftest.er1 >conftest.err
4700 rm -f conftest.er1
4701 cat conftest.err >&5
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); } &&
4704 { ac_try='test -z "$ac_c_werror_flag"
4705 || test ! -s conftest.err'
4706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4707 (eval $ac_try) 2>&5
4708 ac_status=$?
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); }; } &&
4711 { ac_try='test -s conftest.$ac_objext'
4712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4713 (eval $ac_try) 2>&5
4714 ac_status=$?
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); }; }; then
4717 ac_cv_header_stdc=yes
4718 else
4719 echo "$as_me: failed program was:" >&5
4720 sed 's/^/| /' conftest.$ac_ext >&5
4722 ac_cv_header_stdc=no
4724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4726 if test $ac_cv_header_stdc = yes; then
4727 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4728 cat >conftest.$ac_ext <<_ACEOF
4729 /* confdefs.h. */
4730 _ACEOF
4731 cat confdefs.h >>conftest.$ac_ext
4732 cat >>conftest.$ac_ext <<_ACEOF
4733 /* end confdefs.h. */
4734 #include <string.h>
4736 _ACEOF
4737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4738 $EGREP "memchr" >/dev/null 2>&1; then
4740 else
4741 ac_cv_header_stdc=no
4743 rm -f conftest*
4747 if test $ac_cv_header_stdc = yes; then
4748 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4749 cat >conftest.$ac_ext <<_ACEOF
4750 /* confdefs.h. */
4751 _ACEOF
4752 cat confdefs.h >>conftest.$ac_ext
4753 cat >>conftest.$ac_ext <<_ACEOF
4754 /* end confdefs.h. */
4755 #include <stdlib.h>
4757 _ACEOF
4758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4759 $EGREP "free" >/dev/null 2>&1; then
4761 else
4762 ac_cv_header_stdc=no
4764 rm -f conftest*
4768 if test $ac_cv_header_stdc = yes; then
4769 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4770 if test "$cross_compiling" = yes; then
4772 else
4773 cat >conftest.$ac_ext <<_ACEOF
4774 /* confdefs.h. */
4775 _ACEOF
4776 cat confdefs.h >>conftest.$ac_ext
4777 cat >>conftest.$ac_ext <<_ACEOF
4778 /* end confdefs.h. */
4779 #include <ctype.h>
4780 #if ((' ' & 0x0FF) == 0x020)
4781 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4782 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4783 #else
4784 # define ISLOWER(c) \
4785 (('a' <= (c) && (c) <= 'i') \
4786 || ('j' <= (c) && (c) <= 'r') \
4787 || ('s' <= (c) && (c) <= 'z'))
4788 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4789 #endif
4791 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4793 main ()
4795 int i;
4796 for (i = 0; i < 256; i++)
4797 if (XOR (islower (i), ISLOWER (i))
4798 || toupper (i) != TOUPPER (i))
4799 exit(2);
4800 exit (0);
4802 _ACEOF
4803 rm -f conftest$ac_exeext
4804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4805 (eval $ac_link) 2>&5
4806 ac_status=$?
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4810 (eval $ac_try) 2>&5
4811 ac_status=$?
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); }; }; then
4815 else
4816 echo "$as_me: program exited with status $ac_status" >&5
4817 echo "$as_me: failed program was:" >&5
4818 sed 's/^/| /' conftest.$ac_ext >&5
4820 ( exit $ac_status )
4821 ac_cv_header_stdc=no
4823 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4827 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4828 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4829 if test $ac_cv_header_stdc = yes; then
4831 cat >>confdefs.h <<\_ACEOF
4832 #define STDC_HEADERS 1
4833 _ACEOF
4838 for ac_header in stddef.h
4840 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4842 echo "$as_me:$LINENO: checking for $ac_header" >&5
4843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4845 echo $ECHO_N "(cached) $ECHO_C" >&6
4847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4848 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4849 else
4850 # Is the header compilable?
4851 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4852 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4853 cat >conftest.$ac_ext <<_ACEOF
4854 /* confdefs.h. */
4855 _ACEOF
4856 cat confdefs.h >>conftest.$ac_ext
4857 cat >>conftest.$ac_ext <<_ACEOF
4858 /* end confdefs.h. */
4859 $ac_includes_default
4860 #include <$ac_header>
4861 _ACEOF
4862 rm -f conftest.$ac_objext
4863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4864 (eval $ac_compile) 2>conftest.er1
4865 ac_status=$?
4866 grep -v '^ *+' conftest.er1 >conftest.err
4867 rm -f conftest.er1
4868 cat conftest.err >&5
4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870 (exit $ac_status); } &&
4871 { ac_try='test -z "$ac_c_werror_flag"
4872 || test ! -s conftest.err'
4873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4874 (eval $ac_try) 2>&5
4875 ac_status=$?
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); }; } &&
4878 { ac_try='test -s conftest.$ac_objext'
4879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4880 (eval $ac_try) 2>&5
4881 ac_status=$?
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); }; }; then
4884 ac_header_compiler=yes
4885 else
4886 echo "$as_me: failed program was:" >&5
4887 sed 's/^/| /' conftest.$ac_ext >&5
4889 ac_header_compiler=no
4891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4892 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4893 echo "${ECHO_T}$ac_header_compiler" >&6
4895 # Is the header present?
4896 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4897 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4898 cat >conftest.$ac_ext <<_ACEOF
4899 /* confdefs.h. */
4900 _ACEOF
4901 cat confdefs.h >>conftest.$ac_ext
4902 cat >>conftest.$ac_ext <<_ACEOF
4903 /* end confdefs.h. */
4904 #include <$ac_header>
4905 _ACEOF
4906 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4907 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4908 ac_status=$?
4909 grep -v '^ *+' conftest.er1 >conftest.err
4910 rm -f conftest.er1
4911 cat conftest.err >&5
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); } >/dev/null; then
4914 if test -s conftest.err; then
4915 ac_cpp_err=$ac_c_preproc_warn_flag
4916 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4917 else
4918 ac_cpp_err=
4920 else
4921 ac_cpp_err=yes
4923 if test -z "$ac_cpp_err"; then
4924 ac_header_preproc=yes
4925 else
4926 echo "$as_me: failed program was:" >&5
4927 sed 's/^/| /' conftest.$ac_ext >&5
4929 ac_header_preproc=no
4931 rm -f conftest.err conftest.$ac_ext
4932 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4933 echo "${ECHO_T}$ac_header_preproc" >&6
4935 # So? What about this header?
4936 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4937 yes:no: )
4938 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4939 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4941 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4942 ac_header_preproc=yes
4944 no:yes:* )
4945 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4946 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4947 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4948 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4949 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4950 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4951 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4952 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4954 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4955 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4956 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4958 cat <<\_ASBOX
4959 ## ------------------------------------------ ##
4960 ## Report this to the AC_PACKAGE_NAME lists. ##
4961 ## ------------------------------------------ ##
4962 _ASBOX
4964 sed "s/^/$as_me: WARNING: /" >&2
4966 esac
4967 echo "$as_me:$LINENO: checking for $ac_header" >&5
4968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4970 echo $ECHO_N "(cached) $ECHO_C" >&6
4971 else
4972 eval "$as_ac_Header=\$ac_header_preproc"
4974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4975 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4978 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4979 cat >>confdefs.h <<_ACEOF
4980 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4981 _ACEOF
4985 done
4990 for ac_func in vprintf
4992 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4993 echo "$as_me:$LINENO: checking for $ac_func" >&5
4994 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4995 if eval "test \"\${$as_ac_var+set}\" = set"; then
4996 echo $ECHO_N "(cached) $ECHO_C" >&6
4997 else
4998 cat >conftest.$ac_ext <<_ACEOF
4999 /* confdefs.h. */
5000 _ACEOF
5001 cat confdefs.h >>conftest.$ac_ext
5002 cat >>conftest.$ac_ext <<_ACEOF
5003 /* end confdefs.h. */
5004 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5005 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5006 #define $ac_func innocuous_$ac_func
5008 /* System header to define __stub macros and hopefully few prototypes,
5009 which can conflict with char $ac_func (); below.
5010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5011 <limits.h> exists even on freestanding compilers. */
5013 #ifdef __STDC__
5014 # include <limits.h>
5015 #else
5016 # include <assert.h>
5017 #endif
5019 #undef $ac_func
5021 /* Override any gcc2 internal prototype to avoid an error. */
5022 #ifdef __cplusplus
5023 extern "C"
5025 #endif
5026 /* We use char because int might match the return type of a gcc2
5027 builtin and then its argument prototype would still apply. */
5028 char $ac_func ();
5029 /* The GNU C library defines this for functions which it implements
5030 to always fail with ENOSYS. Some functions are actually named
5031 something starting with __ and the normal name is an alias. */
5032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5033 choke me
5034 #else
5035 char (*f) () = $ac_func;
5036 #endif
5037 #ifdef __cplusplus
5039 #endif
5042 main ()
5044 return f != $ac_func;
5046 return 0;
5048 _ACEOF
5049 rm -f conftest.$ac_objext conftest$ac_exeext
5050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5051 (eval $ac_link) 2>conftest.er1
5052 ac_status=$?
5053 grep -v '^ *+' conftest.er1 >conftest.err
5054 rm -f conftest.er1
5055 cat conftest.err >&5
5056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057 (exit $ac_status); } &&
5058 { ac_try='test -z "$ac_c_werror_flag"
5059 || test ! -s conftest.err'
5060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5061 (eval $ac_try) 2>&5
5062 ac_status=$?
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); }; } &&
5065 { ac_try='test -s conftest$ac_exeext'
5066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5067 (eval $ac_try) 2>&5
5068 ac_status=$?
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); }; }; then
5071 eval "$as_ac_var=yes"
5072 else
5073 echo "$as_me: failed program was:" >&5
5074 sed 's/^/| /' conftest.$ac_ext >&5
5076 eval "$as_ac_var=no"
5078 rm -f conftest.err conftest.$ac_objext \
5079 conftest$ac_exeext conftest.$ac_ext
5081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5082 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5083 if test `eval echo '${'$as_ac_var'}'` = yes; then
5084 cat >>confdefs.h <<_ACEOF
5085 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5086 _ACEOF
5088 echo "$as_me:$LINENO: checking for _doprnt" >&5
5089 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
5090 if test "${ac_cv_func__doprnt+set}" = set; then
5091 echo $ECHO_N "(cached) $ECHO_C" >&6
5092 else
5093 cat >conftest.$ac_ext <<_ACEOF
5094 /* confdefs.h. */
5095 _ACEOF
5096 cat confdefs.h >>conftest.$ac_ext
5097 cat >>conftest.$ac_ext <<_ACEOF
5098 /* end confdefs.h. */
5099 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
5100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5101 #define _doprnt innocuous__doprnt
5103 /* System header to define __stub macros and hopefully few prototypes,
5104 which can conflict with char _doprnt (); below.
5105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5106 <limits.h> exists even on freestanding compilers. */
5108 #ifdef __STDC__
5109 # include <limits.h>
5110 #else
5111 # include <assert.h>
5112 #endif
5114 #undef _doprnt
5116 /* Override any gcc2 internal prototype to avoid an error. */
5117 #ifdef __cplusplus
5118 extern "C"
5120 #endif
5121 /* We use char because int might match the return type of a gcc2
5122 builtin and then its argument prototype would still apply. */
5123 char _doprnt ();
5124 /* The GNU C library defines this for functions which it implements
5125 to always fail with ENOSYS. Some functions are actually named
5126 something starting with __ and the normal name is an alias. */
5127 #if defined (__stub__doprnt) || defined (__stub____doprnt)
5128 choke me
5129 #else
5130 char (*f) () = _doprnt;
5131 #endif
5132 #ifdef __cplusplus
5134 #endif
5137 main ()
5139 return f != _doprnt;
5141 return 0;
5143 _ACEOF
5144 rm -f conftest.$ac_objext conftest$ac_exeext
5145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5146 (eval $ac_link) 2>conftest.er1
5147 ac_status=$?
5148 grep -v '^ *+' conftest.er1 >conftest.err
5149 rm -f conftest.er1
5150 cat conftest.err >&5
5151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152 (exit $ac_status); } &&
5153 { ac_try='test -z "$ac_c_werror_flag"
5154 || test ! -s conftest.err'
5155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5156 (eval $ac_try) 2>&5
5157 ac_status=$?
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); }; } &&
5160 { ac_try='test -s conftest$ac_exeext'
5161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5162 (eval $ac_try) 2>&5
5163 ac_status=$?
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); }; }; then
5166 ac_cv_func__doprnt=yes
5167 else
5168 echo "$as_me: failed program was:" >&5
5169 sed 's/^/| /' conftest.$ac_ext >&5
5171 ac_cv_func__doprnt=no
5173 rm -f conftest.err conftest.$ac_objext \
5174 conftest$ac_exeext conftest.$ac_ext
5176 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
5177 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
5178 if test $ac_cv_func__doprnt = yes; then
5180 cat >>confdefs.h <<\_ACEOF
5181 #define HAVE_DOPRNT 1
5182 _ACEOF
5187 done
5191 for ac_header in stdlib.h
5193 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5195 echo "$as_me:$LINENO: checking for $ac_header" >&5
5196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5201 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5202 else
5203 # Is the header compilable?
5204 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5205 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5206 cat >conftest.$ac_ext <<_ACEOF
5207 /* confdefs.h. */
5208 _ACEOF
5209 cat confdefs.h >>conftest.$ac_ext
5210 cat >>conftest.$ac_ext <<_ACEOF
5211 /* end confdefs.h. */
5212 $ac_includes_default
5213 #include <$ac_header>
5214 _ACEOF
5215 rm -f conftest.$ac_objext
5216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5217 (eval $ac_compile) 2>conftest.er1
5218 ac_status=$?
5219 grep -v '^ *+' conftest.er1 >conftest.err
5220 rm -f conftest.er1
5221 cat conftest.err >&5
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); } &&
5224 { ac_try='test -z "$ac_c_werror_flag"
5225 || test ! -s conftest.err'
5226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5227 (eval $ac_try) 2>&5
5228 ac_status=$?
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); }; } &&
5231 { ac_try='test -s conftest.$ac_objext'
5232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5233 (eval $ac_try) 2>&5
5234 ac_status=$?
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); }; }; then
5237 ac_header_compiler=yes
5238 else
5239 echo "$as_me: failed program was:" >&5
5240 sed 's/^/| /' conftest.$ac_ext >&5
5242 ac_header_compiler=no
5244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5245 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5246 echo "${ECHO_T}$ac_header_compiler" >&6
5248 # Is the header present?
5249 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5250 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5251 cat >conftest.$ac_ext <<_ACEOF
5252 /* confdefs.h. */
5253 _ACEOF
5254 cat confdefs.h >>conftest.$ac_ext
5255 cat >>conftest.$ac_ext <<_ACEOF
5256 /* end confdefs.h. */
5257 #include <$ac_header>
5258 _ACEOF
5259 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5260 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5261 ac_status=$?
5262 grep -v '^ *+' conftest.er1 >conftest.err
5263 rm -f conftest.er1
5264 cat conftest.err >&5
5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266 (exit $ac_status); } >/dev/null; then
5267 if test -s conftest.err; then
5268 ac_cpp_err=$ac_c_preproc_warn_flag
5269 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5270 else
5271 ac_cpp_err=
5273 else
5274 ac_cpp_err=yes
5276 if test -z "$ac_cpp_err"; then
5277 ac_header_preproc=yes
5278 else
5279 echo "$as_me: failed program was:" >&5
5280 sed 's/^/| /' conftest.$ac_ext >&5
5282 ac_header_preproc=no
5284 rm -f conftest.err conftest.$ac_ext
5285 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5286 echo "${ECHO_T}$ac_header_preproc" >&6
5288 # So? What about this header?
5289 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5290 yes:no: )
5291 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5292 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5294 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5295 ac_header_preproc=yes
5297 no:yes:* )
5298 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5299 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5300 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5301 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5302 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5303 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5304 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5305 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5307 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5308 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5309 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5311 cat <<\_ASBOX
5312 ## ------------------------------------------ ##
5313 ## Report this to the AC_PACKAGE_NAME lists. ##
5314 ## ------------------------------------------ ##
5315 _ASBOX
5317 sed "s/^/$as_me: WARNING: /" >&2
5319 esac
5320 echo "$as_me:$LINENO: checking for $ac_header" >&5
5321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5323 echo $ECHO_N "(cached) $ECHO_C" >&6
5324 else
5325 eval "$as_ac_Header=\$ac_header_preproc"
5327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5328 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5331 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5332 cat >>confdefs.h <<_ACEOF
5333 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5334 _ACEOF
5338 done
5340 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
5341 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
5342 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
5343 echo $ECHO_N "(cached) $ECHO_C" >&6
5344 else
5345 if test "$cross_compiling" = yes; then
5346 ac_cv_func_malloc_0_nonnull=no
5347 else
5348 cat >conftest.$ac_ext <<_ACEOF
5349 /* confdefs.h. */
5350 _ACEOF
5351 cat confdefs.h >>conftest.$ac_ext
5352 cat >>conftest.$ac_ext <<_ACEOF
5353 /* end confdefs.h. */
5354 #if STDC_HEADERS || HAVE_STDLIB_H
5355 # include <stdlib.h>
5356 #else
5357 char *malloc ();
5358 #endif
5361 main ()
5363 exit (malloc (0) ? 0 : 1);
5365 return 0;
5367 _ACEOF
5368 rm -f conftest$ac_exeext
5369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5370 (eval $ac_link) 2>&5
5371 ac_status=$?
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5375 (eval $ac_try) 2>&5
5376 ac_status=$?
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); }; }; then
5379 ac_cv_func_malloc_0_nonnull=yes
5380 else
5381 echo "$as_me: program exited with status $ac_status" >&5
5382 echo "$as_me: failed program was:" >&5
5383 sed 's/^/| /' conftest.$ac_ext >&5
5385 ( exit $ac_status )
5386 ac_cv_func_malloc_0_nonnull=no
5388 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5391 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
5392 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
5393 if test $ac_cv_func_malloc_0_nonnull = yes; then
5395 cat >>confdefs.h <<\_ACEOF
5396 #define HAVE_MALLOC 1
5397 _ACEOF
5399 else
5400 cat >>confdefs.h <<\_ACEOF
5401 #define HAVE_MALLOC 0
5402 _ACEOF
5404 case $LIBOBJS in
5405 "malloc.$ac_objext" | \
5406 *" malloc.$ac_objext" | \
5407 "malloc.$ac_objext "* | \
5408 *" malloc.$ac_objext "* ) ;;
5409 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
5410 esac
5413 cat >>confdefs.h <<\_ACEOF
5414 #define malloc rpl_malloc
5415 _ACEOF
5422 for ac_header in stdlib.h
5424 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5426 echo "$as_me:$LINENO: checking for $ac_header" >&5
5427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5429 echo $ECHO_N "(cached) $ECHO_C" >&6
5431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5432 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5433 else
5434 # Is the header compilable?
5435 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5436 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5437 cat >conftest.$ac_ext <<_ACEOF
5438 /* confdefs.h. */
5439 _ACEOF
5440 cat confdefs.h >>conftest.$ac_ext
5441 cat >>conftest.$ac_ext <<_ACEOF
5442 /* end confdefs.h. */
5443 $ac_includes_default
5444 #include <$ac_header>
5445 _ACEOF
5446 rm -f conftest.$ac_objext
5447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5448 (eval $ac_compile) 2>conftest.er1
5449 ac_status=$?
5450 grep -v '^ *+' conftest.er1 >conftest.err
5451 rm -f conftest.er1
5452 cat conftest.err >&5
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); } &&
5455 { ac_try='test -z "$ac_c_werror_flag"
5456 || test ! -s conftest.err'
5457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5458 (eval $ac_try) 2>&5
5459 ac_status=$?
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); }; } &&
5462 { ac_try='test -s conftest.$ac_objext'
5463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5464 (eval $ac_try) 2>&5
5465 ac_status=$?
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); }; }; then
5468 ac_header_compiler=yes
5469 else
5470 echo "$as_me: failed program was:" >&5
5471 sed 's/^/| /' conftest.$ac_ext >&5
5473 ac_header_compiler=no
5475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5476 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5477 echo "${ECHO_T}$ac_header_compiler" >&6
5479 # Is the header present?
5480 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5481 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5482 cat >conftest.$ac_ext <<_ACEOF
5483 /* confdefs.h. */
5484 _ACEOF
5485 cat confdefs.h >>conftest.$ac_ext
5486 cat >>conftest.$ac_ext <<_ACEOF
5487 /* end confdefs.h. */
5488 #include <$ac_header>
5489 _ACEOF
5490 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5491 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5492 ac_status=$?
5493 grep -v '^ *+' conftest.er1 >conftest.err
5494 rm -f conftest.er1
5495 cat conftest.err >&5
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); } >/dev/null; then
5498 if test -s conftest.err; then
5499 ac_cpp_err=$ac_c_preproc_warn_flag
5500 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5501 else
5502 ac_cpp_err=
5504 else
5505 ac_cpp_err=yes
5507 if test -z "$ac_cpp_err"; then
5508 ac_header_preproc=yes
5509 else
5510 echo "$as_me: failed program was:" >&5
5511 sed 's/^/| /' conftest.$ac_ext >&5
5513 ac_header_preproc=no
5515 rm -f conftest.err conftest.$ac_ext
5516 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5517 echo "${ECHO_T}$ac_header_preproc" >&6
5519 # So? What about this header?
5520 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5521 yes:no: )
5522 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5523 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5525 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5526 ac_header_preproc=yes
5528 no:yes:* )
5529 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5530 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5531 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5532 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5533 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5534 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5535 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5536 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5537 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5538 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5539 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5540 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5542 cat <<\_ASBOX
5543 ## ------------------------------------------ ##
5544 ## Report this to the AC_PACKAGE_NAME lists. ##
5545 ## ------------------------------------------ ##
5546 _ASBOX
5548 sed "s/^/$as_me: WARNING: /" >&2
5550 esac
5551 echo "$as_me:$LINENO: checking for $ac_header" >&5
5552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5553 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5554 echo $ECHO_N "(cached) $ECHO_C" >&6
5555 else
5556 eval "$as_ac_Header=\$ac_header_preproc"
5558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5559 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5562 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5563 cat >>confdefs.h <<_ACEOF
5564 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5565 _ACEOF
5569 done
5571 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
5572 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
5573 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
5574 echo $ECHO_N "(cached) $ECHO_C" >&6
5575 else
5576 if test "$cross_compiling" = yes; then
5577 ac_cv_func_realloc_0_nonnull=no
5578 else
5579 cat >conftest.$ac_ext <<_ACEOF
5580 /* confdefs.h. */
5581 _ACEOF
5582 cat confdefs.h >>conftest.$ac_ext
5583 cat >>conftest.$ac_ext <<_ACEOF
5584 /* end confdefs.h. */
5585 #if STDC_HEADERS || HAVE_STDLIB_H
5586 # include <stdlib.h>
5587 #else
5588 char *realloc ();
5589 #endif
5592 main ()
5594 exit (realloc (0, 0) ? 0 : 1);
5596 return 0;
5598 _ACEOF
5599 rm -f conftest$ac_exeext
5600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5601 (eval $ac_link) 2>&5
5602 ac_status=$?
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5606 (eval $ac_try) 2>&5
5607 ac_status=$?
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); }; }; then
5610 ac_cv_func_realloc_0_nonnull=yes
5611 else
5612 echo "$as_me: program exited with status $ac_status" >&5
5613 echo "$as_me: failed program was:" >&5
5614 sed 's/^/| /' conftest.$ac_ext >&5
5616 ( exit $ac_status )
5617 ac_cv_func_realloc_0_nonnull=no
5619 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5622 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
5623 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
5624 if test $ac_cv_func_realloc_0_nonnull = yes; then
5626 cat >>confdefs.h <<\_ACEOF
5627 #define HAVE_REALLOC 1
5628 _ACEOF
5630 else
5631 cat >>confdefs.h <<\_ACEOF
5632 #define HAVE_REALLOC 0
5633 _ACEOF
5635 case $LIBOBJS in
5636 "realloc.$ac_objext" | \
5637 *" realloc.$ac_objext" | \
5638 "realloc.$ac_objext "* | \
5639 *" realloc.$ac_objext "* ) ;;
5640 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
5641 esac
5644 cat >>confdefs.h <<\_ACEOF
5645 #define realloc rpl_realloc
5646 _ACEOF
5653 for ac_func in strtol
5655 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5656 echo "$as_me:$LINENO: checking for $ac_func" >&5
5657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5658 if eval "test \"\${$as_ac_var+set}\" = set"; then
5659 echo $ECHO_N "(cached) $ECHO_C" >&6
5660 else
5661 cat >conftest.$ac_ext <<_ACEOF
5662 /* confdefs.h. */
5663 _ACEOF
5664 cat confdefs.h >>conftest.$ac_ext
5665 cat >>conftest.$ac_ext <<_ACEOF
5666 /* end confdefs.h. */
5667 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5669 #define $ac_func innocuous_$ac_func
5671 /* System header to define __stub macros and hopefully few prototypes,
5672 which can conflict with char $ac_func (); below.
5673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5674 <limits.h> exists even on freestanding compilers. */
5676 #ifdef __STDC__
5677 # include <limits.h>
5678 #else
5679 # include <assert.h>
5680 #endif
5682 #undef $ac_func
5684 /* Override any gcc2 internal prototype to avoid an error. */
5685 #ifdef __cplusplus
5686 extern "C"
5688 #endif
5689 /* We use char because int might match the return type of a gcc2
5690 builtin and then its argument prototype would still apply. */
5691 char $ac_func ();
5692 /* The GNU C library defines this for functions which it implements
5693 to always fail with ENOSYS. Some functions are actually named
5694 something starting with __ and the normal name is an alias. */
5695 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5696 choke me
5697 #else
5698 char (*f) () = $ac_func;
5699 #endif
5700 #ifdef __cplusplus
5702 #endif
5705 main ()
5707 return f != $ac_func;
5709 return 0;
5711 _ACEOF
5712 rm -f conftest.$ac_objext conftest$ac_exeext
5713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5714 (eval $ac_link) 2>conftest.er1
5715 ac_status=$?
5716 grep -v '^ *+' conftest.er1 >conftest.err
5717 rm -f conftest.er1
5718 cat conftest.err >&5
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); } &&
5721 { ac_try='test -z "$ac_c_werror_flag"
5722 || test ! -s conftest.err'
5723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5724 (eval $ac_try) 2>&5
5725 ac_status=$?
5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727 (exit $ac_status); }; } &&
5728 { ac_try='test -s conftest$ac_exeext'
5729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5730 (eval $ac_try) 2>&5
5731 ac_status=$?
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); }; }; then
5734 eval "$as_ac_var=yes"
5735 else
5736 echo "$as_me: failed program was:" >&5
5737 sed 's/^/| /' conftest.$ac_ext >&5
5739 eval "$as_ac_var=no"
5741 rm -f conftest.err conftest.$ac_objext \
5742 conftest$ac_exeext conftest.$ac_ext
5744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5745 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5746 if test `eval echo '${'$as_ac_var'}'` = yes; then
5747 cat >>confdefs.h <<_ACEOF
5748 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5749 _ACEOF
5752 done
5755 for ac_func in strchr
5757 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5758 echo "$as_me:$LINENO: checking for $ac_func" >&5
5759 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5760 if eval "test \"\${$as_ac_var+set}\" = set"; then
5761 echo $ECHO_N "(cached) $ECHO_C" >&6
5762 else
5763 cat >conftest.$ac_ext <<_ACEOF
5764 /* confdefs.h. */
5765 _ACEOF
5766 cat confdefs.h >>conftest.$ac_ext
5767 cat >>conftest.$ac_ext <<_ACEOF
5768 /* end confdefs.h. */
5769 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5771 #define $ac_func innocuous_$ac_func
5773 /* System header to define __stub macros and hopefully few prototypes,
5774 which can conflict with char $ac_func (); below.
5775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5776 <limits.h> exists even on freestanding compilers. */
5778 #ifdef __STDC__
5779 # include <limits.h>
5780 #else
5781 # include <assert.h>
5782 #endif
5784 #undef $ac_func
5786 /* Override any gcc2 internal prototype to avoid an error. */
5787 #ifdef __cplusplus
5788 extern "C"
5790 #endif
5791 /* We use char because int might match the return type of a gcc2
5792 builtin and then its argument prototype would still apply. */
5793 char $ac_func ();
5794 /* The GNU C library defines this for functions which it implements
5795 to always fail with ENOSYS. Some functions are actually named
5796 something starting with __ and the normal name is an alias. */
5797 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5798 choke me
5799 #else
5800 char (*f) () = $ac_func;
5801 #endif
5802 #ifdef __cplusplus
5804 #endif
5807 main ()
5809 return f != $ac_func;
5811 return 0;
5813 _ACEOF
5814 rm -f conftest.$ac_objext conftest$ac_exeext
5815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5816 (eval $ac_link) 2>conftest.er1
5817 ac_status=$?
5818 grep -v '^ *+' conftest.er1 >conftest.err
5819 rm -f conftest.er1
5820 cat conftest.err >&5
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); } &&
5823 { ac_try='test -z "$ac_c_werror_flag"
5824 || test ! -s conftest.err'
5825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5826 (eval $ac_try) 2>&5
5827 ac_status=$?
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); }; } &&
5830 { ac_try='test -s conftest$ac_exeext'
5831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5832 (eval $ac_try) 2>&5
5833 ac_status=$?
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); }; }; then
5836 eval "$as_ac_var=yes"
5837 else
5838 echo "$as_me: failed program was:" >&5
5839 sed 's/^/| /' conftest.$ac_ext >&5
5841 eval "$as_ac_var=no"
5843 rm -f conftest.err conftest.$ac_objext \
5844 conftest$ac_exeext conftest.$ac_ext
5846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5847 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5848 if test `eval echo '${'$as_ac_var'}'` = yes; then
5849 cat >>confdefs.h <<_ACEOF
5850 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5851 _ACEOF
5854 done
5857 for ac_func in strrchr
5859 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5860 echo "$as_me:$LINENO: checking for $ac_func" >&5
5861 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5862 if eval "test \"\${$as_ac_var+set}\" = set"; then
5863 echo $ECHO_N "(cached) $ECHO_C" >&6
5864 else
5865 cat >conftest.$ac_ext <<_ACEOF
5866 /* confdefs.h. */
5867 _ACEOF
5868 cat confdefs.h >>conftest.$ac_ext
5869 cat >>conftest.$ac_ext <<_ACEOF
5870 /* end confdefs.h. */
5871 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5873 #define $ac_func innocuous_$ac_func
5875 /* System header to define __stub macros and hopefully few prototypes,
5876 which can conflict with char $ac_func (); below.
5877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5878 <limits.h> exists even on freestanding compilers. */
5880 #ifdef __STDC__
5881 # include <limits.h>
5882 #else
5883 # include <assert.h>
5884 #endif
5886 #undef $ac_func
5888 /* Override any gcc2 internal prototype to avoid an error. */
5889 #ifdef __cplusplus
5890 extern "C"
5892 #endif
5893 /* We use char because int might match the return type of a gcc2
5894 builtin and then its argument prototype would still apply. */
5895 char $ac_func ();
5896 /* The GNU C library defines this for functions which it implements
5897 to always fail with ENOSYS. Some functions are actually named
5898 something starting with __ and the normal name is an alias. */
5899 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5900 choke me
5901 #else
5902 char (*f) () = $ac_func;
5903 #endif
5904 #ifdef __cplusplus
5906 #endif
5909 main ()
5911 return f != $ac_func;
5913 return 0;
5915 _ACEOF
5916 rm -f conftest.$ac_objext conftest$ac_exeext
5917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5918 (eval $ac_link) 2>conftest.er1
5919 ac_status=$?
5920 grep -v '^ *+' conftest.er1 >conftest.err
5921 rm -f conftest.er1
5922 cat conftest.err >&5
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); } &&
5925 { ac_try='test -z "$ac_c_werror_flag"
5926 || test ! -s conftest.err'
5927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5928 (eval $ac_try) 2>&5
5929 ac_status=$?
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); }; } &&
5932 { ac_try='test -s conftest$ac_exeext'
5933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5934 (eval $ac_try) 2>&5
5935 ac_status=$?
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); }; }; then
5938 eval "$as_ac_var=yes"
5939 else
5940 echo "$as_me: failed program was:" >&5
5941 sed 's/^/| /' conftest.$ac_ext >&5
5943 eval "$as_ac_var=no"
5945 rm -f conftest.err conftest.$ac_objext \
5946 conftest$ac_exeext conftest.$ac_ext
5948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5949 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5950 if test `eval echo '${'$as_ac_var'}'` = yes; then
5951 cat >>confdefs.h <<_ACEOF
5952 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5953 _ACEOF
5956 done
5959 ac_config_files="$ac_config_files Makefile"
5960 cat >confcache <<\_ACEOF
5961 # This file is a shell script that caches the results of configure
5962 # tests run on this system so they can be shared between configure
5963 # scripts and configure runs, see configure's option --config-cache.
5964 # It is not useful on other systems. If it contains results you don't
5965 # want to keep, you may remove or edit it.
5967 # config.status only pays attention to the cache file if you give it
5968 # the --recheck option to rerun configure.
5970 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5971 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5972 # following values.
5974 _ACEOF
5976 # The following way of writing the cache mishandles newlines in values,
5977 # but we know of no workaround that is simple, portable, and efficient.
5978 # So, don't put newlines in cache variables' values.
5979 # Ultrix sh set writes to stderr and can't be redirected directly,
5980 # and sets the high bit in the cache file unless we assign to the vars.
5982 (set) 2>&1 |
5983 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5984 *ac_space=\ *)
5985 # `set' does not quote correctly, so add quotes (double-quote
5986 # substitution turns \\\\ into \\, and sed turns \\ into \).
5987 sed -n \
5988 "s/'/'\\\\''/g;
5989 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5992 # `set' quotes correctly as required by POSIX, so do not add quotes.
5993 sed -n \
5994 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5996 esac;
5998 sed '
5999 t clear
6000 : clear
6001 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6002 t end
6003 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6004 : end' >>confcache
6005 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6006 if test -w $cache_file; then
6007 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6008 cat confcache >$cache_file
6009 else
6010 echo "not updating unwritable cache $cache_file"
6013 rm -f confcache
6015 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6016 # Let make expand exec_prefix.
6017 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6019 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6020 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6021 # trailing colons and then remove the whole line if VPATH becomes empty
6022 # (actually we leave an empty line to preserve line numbers).
6023 if test "x$srcdir" = x.; then
6024 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6025 s/:*\$(srcdir):*/:/;
6026 s/:*\${srcdir}:*/:/;
6027 s/:*@srcdir@:*/:/;
6028 s/^\([^=]*=[ ]*\):*/\1/;
6029 s/:*$//;
6030 s/^[^=]*=[ ]*$//;
6034 DEFS=-DHAVE_CONFIG_H
6036 ac_libobjs=
6037 ac_ltlibobjs=
6038 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6039 # 1. Remove the extension, and $U if already installed.
6040 ac_i=`echo "$ac_i" |
6041 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6042 # 2. Add them.
6043 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6044 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6045 done
6046 LIBOBJS=$ac_libobjs
6048 LTLIBOBJS=$ac_ltlibobjs
6051 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6052 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6053 Usually this means the macro was only invoked conditionally." >&5
6054 echo "$as_me: error: conditional \"AMDEP\" was never defined.
6055 Usually this means the macro was only invoked conditionally." >&2;}
6056 { (exit 1); exit 1; }; }
6059 : ${CONFIG_STATUS=./config.status}
6060 ac_clean_files_save=$ac_clean_files
6061 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6062 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6063 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6064 cat >$CONFIG_STATUS <<_ACEOF
6065 #! $SHELL
6066 # Generated by $as_me.
6067 # Run this file to recreate the current configuration.
6068 # Compiler output produced by configure, useful for debugging
6069 # configure, is in config.log if it exists.
6071 debug=false
6072 ac_cs_recheck=false
6073 ac_cs_silent=false
6074 SHELL=\${CONFIG_SHELL-$SHELL}
6075 _ACEOF
6077 cat >>$CONFIG_STATUS <<\_ACEOF
6078 ## --------------------- ##
6079 ## M4sh Initialization. ##
6080 ## --------------------- ##
6082 # Be Bourne compatible
6083 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6084 emulate sh
6085 NULLCMD=:
6086 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6087 # is contrary to our usage. Disable this feature.
6088 alias -g '${1+"$@"}'='"$@"'
6089 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6090 set -o posix
6092 DUALCASE=1; export DUALCASE # for MKS sh
6094 # Support unset when possible.
6095 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6096 as_unset=unset
6097 else
6098 as_unset=false
6102 # Work around bugs in pre-3.0 UWIN ksh.
6103 $as_unset ENV MAIL MAILPATH
6104 PS1='$ '
6105 PS2='> '
6106 PS4='+ '
6108 # NLS nuisances.
6109 for as_var in \
6110 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6111 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6112 LC_TELEPHONE LC_TIME
6114 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6115 eval $as_var=C; export $as_var
6116 else
6117 $as_unset $as_var
6119 done
6121 # Required to use basename.
6122 if expr a : '\(a\)' >/dev/null 2>&1; then
6123 as_expr=expr
6124 else
6125 as_expr=false
6128 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6129 as_basename=basename
6130 else
6131 as_basename=false
6135 # Name of the executable.
6136 as_me=`$as_basename "$0" ||
6137 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6138 X"$0" : 'X\(//\)$' \| \
6139 X"$0" : 'X\(/\)$' \| \
6140 . : '\(.\)' 2>/dev/null ||
6141 echo X/"$0" |
6142 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6143 /^X\/\(\/\/\)$/{ s//\1/; q; }
6144 /^X\/\(\/\).*/{ s//\1/; q; }
6145 s/.*/./; q'`
6148 # PATH needs CR, and LINENO needs CR and PATH.
6149 # Avoid depending upon Character Ranges.
6150 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6151 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6152 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6153 as_cr_digits='0123456789'
6154 as_cr_alnum=$as_cr_Letters$as_cr_digits
6156 # The user is always right.
6157 if test "${PATH_SEPARATOR+set}" != set; then
6158 echo "#! /bin/sh" >conf$$.sh
6159 echo "exit 0" >>conf$$.sh
6160 chmod +x conf$$.sh
6161 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6162 PATH_SEPARATOR=';'
6163 else
6164 PATH_SEPARATOR=:
6166 rm -f conf$$.sh
6170 as_lineno_1=$LINENO
6171 as_lineno_2=$LINENO
6172 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6173 test "x$as_lineno_1" != "x$as_lineno_2" &&
6174 test "x$as_lineno_3" = "x$as_lineno_2" || {
6175 # Find who we are. Look in the path if we contain no path at all
6176 # relative or not.
6177 case $0 in
6178 *[\\/]* ) as_myself=$0 ;;
6179 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6180 for as_dir in $PATH
6182 IFS=$as_save_IFS
6183 test -z "$as_dir" && as_dir=.
6184 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6185 done
6188 esac
6189 # We did not find ourselves, most probably we were run as `sh COMMAND'
6190 # in which case we are not to be found in the path.
6191 if test "x$as_myself" = x; then
6192 as_myself=$0
6194 if test ! -f "$as_myself"; then
6195 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6196 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6197 { (exit 1); exit 1; }; }
6199 case $CONFIG_SHELL in
6201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6204 IFS=$as_save_IFS
6205 test -z "$as_dir" && as_dir=.
6206 for as_base in sh bash ksh sh5; do
6207 case $as_dir in
6209 if ("$as_dir/$as_base" -c '
6210 as_lineno_1=$LINENO
6211 as_lineno_2=$LINENO
6212 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6213 test "x$as_lineno_1" != "x$as_lineno_2" &&
6214 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6215 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6216 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6217 CONFIG_SHELL=$as_dir/$as_base
6218 export CONFIG_SHELL
6219 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6220 fi;;
6221 esac
6222 done
6223 done
6225 esac
6227 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6228 # uniformly replaced by the line number. The first 'sed' inserts a
6229 # line-number line before each line; the second 'sed' does the real
6230 # work. The second script uses 'N' to pair each line-number line
6231 # with the numbered line, and appends trailing '-' during
6232 # substitution so that $LINENO is not a special case at line end.
6233 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6234 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6235 sed '=' <$as_myself |
6236 sed '
6238 s,$,-,
6239 : loop
6240 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6241 t loop
6242 s,-$,,
6243 s,^['$as_cr_digits']*\n,,
6244 ' >$as_me.lineno &&
6245 chmod +x $as_me.lineno ||
6246 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6247 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6248 { (exit 1); exit 1; }; }
6250 # Don't try to exec as it changes $[0], causing all sort of problems
6251 # (the dirname of $[0] is not the place where we might find the
6252 # original and so on. Autoconf is especially sensible to this).
6253 . ./$as_me.lineno
6254 # Exit status is that of the last command.
6255 exit
6259 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6260 *c*,-n*) ECHO_N= ECHO_C='
6261 ' ECHO_T=' ' ;;
6262 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6263 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6264 esac
6266 if expr a : '\(a\)' >/dev/null 2>&1; then
6267 as_expr=expr
6268 else
6269 as_expr=false
6272 rm -f conf$$ conf$$.exe conf$$.file
6273 echo >conf$$.file
6274 if ln -s conf$$.file conf$$ 2>/dev/null; then
6275 # We could just check for DJGPP; but this test a) works b) is more generic
6276 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6277 if test -f conf$$.exe; then
6278 # Don't use ln at all; we don't have any links
6279 as_ln_s='cp -p'
6280 else
6281 as_ln_s='ln -s'
6283 elif ln conf$$.file conf$$ 2>/dev/null; then
6284 as_ln_s=ln
6285 else
6286 as_ln_s='cp -p'
6288 rm -f conf$$ conf$$.exe conf$$.file
6290 if mkdir -p . 2>/dev/null; then
6291 as_mkdir_p=:
6292 else
6293 test -d ./-p && rmdir ./-p
6294 as_mkdir_p=false
6297 as_executable_p="test -f"
6299 # Sed expression to map a string onto a valid CPP name.
6300 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6302 # Sed expression to map a string onto a valid variable name.
6303 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6306 # IFS
6307 # We need space, tab and new line, in precisely that order.
6308 as_nl='
6310 IFS=" $as_nl"
6312 # CDPATH.
6313 $as_unset CDPATH
6315 exec 6>&1
6317 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6318 # report actual input values of CONFIG_FILES etc. instead of their
6319 # values after options handling. Logging --version etc. is OK.
6320 exec 5>>config.log
6322 echo
6323 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6324 ## Running $as_me. ##
6325 _ASBOX
6326 } >&5
6327 cat >&5 <<_CSEOF
6329 This file was extended by $as_me, which was
6330 generated by GNU Autoconf 2.59. Invocation command line was
6332 CONFIG_FILES = $CONFIG_FILES
6333 CONFIG_HEADERS = $CONFIG_HEADERS
6334 CONFIG_LINKS = $CONFIG_LINKS
6335 CONFIG_COMMANDS = $CONFIG_COMMANDS
6336 $ $0 $@
6338 _CSEOF
6339 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6340 echo >&5
6341 _ACEOF
6343 # Files that config.status was made for.
6344 if test -n "$ac_config_files"; then
6345 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6348 if test -n "$ac_config_headers"; then
6349 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6352 if test -n "$ac_config_links"; then
6353 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6356 if test -n "$ac_config_commands"; then
6357 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6360 cat >>$CONFIG_STATUS <<\_ACEOF
6362 ac_cs_usage="\
6363 \`$as_me' instantiates files from templates according to the
6364 current configuration.
6366 Usage: $0 [OPTIONS] [FILE]...
6368 -h, --help print this help, then exit
6369 -V, --version print version number, then exit
6370 -q, --quiet do not print progress messages
6371 -d, --debug don't remove temporary files
6372 --recheck update $as_me by reconfiguring in the same conditions
6373 --file=FILE[:TEMPLATE]
6374 instantiate the configuration file FILE
6375 --header=FILE[:TEMPLATE]
6376 instantiate the configuration header FILE
6378 Configuration files:
6379 $config_files
6381 Configuration headers:
6382 $config_headers
6384 Configuration commands:
6385 $config_commands
6387 Report bugs to <bug-autoconf@gnu.org>."
6388 _ACEOF
6390 cat >>$CONFIG_STATUS <<_ACEOF
6391 ac_cs_version="\\
6392 config.status
6393 configured by $0, generated by GNU Autoconf 2.59,
6394 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6396 Copyright (C) 2003 Free Software Foundation, Inc.
6397 This config.status script is free software; the Free Software Foundation
6398 gives unlimited permission to copy, distribute and modify it."
6399 srcdir=$srcdir
6400 INSTALL="$INSTALL"
6401 _ACEOF
6403 cat >>$CONFIG_STATUS <<\_ACEOF
6404 # If no file are specified by the user, then we need to provide default
6405 # value. By we need to know if files were specified by the user.
6406 ac_need_defaults=:
6407 while test $# != 0
6409 case $1 in
6410 --*=*)
6411 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6412 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6413 ac_shift=:
6416 ac_option=$1
6417 ac_optarg=$2
6418 ac_shift=shift
6420 *) # This is not an option, so the user has probably given explicit
6421 # arguments.
6422 ac_option=$1
6423 ac_need_defaults=false;;
6424 esac
6426 case $ac_option in
6427 # Handling of the options.
6428 _ACEOF
6429 cat >>$CONFIG_STATUS <<\_ACEOF
6430 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6431 ac_cs_recheck=: ;;
6432 --version | --vers* | -V )
6433 echo "$ac_cs_version"; exit 0 ;;
6434 --he | --h)
6435 # Conflict between --help and --header
6436 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6437 Try \`$0 --help' for more information." >&5
6438 echo "$as_me: error: ambiguous option: $1
6439 Try \`$0 --help' for more information." >&2;}
6440 { (exit 1); exit 1; }; };;
6441 --help | --hel | -h )
6442 echo "$ac_cs_usage"; exit 0 ;;
6443 --debug | --d* | -d )
6444 debug=: ;;
6445 --file | --fil | --fi | --f )
6446 $ac_shift
6447 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6448 ac_need_defaults=false;;
6449 --header | --heade | --head | --hea )
6450 $ac_shift
6451 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6452 ac_need_defaults=false;;
6453 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6454 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6455 ac_cs_silent=: ;;
6457 # This is an error.
6458 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6459 Try \`$0 --help' for more information." >&5
6460 echo "$as_me: error: unrecognized option: $1
6461 Try \`$0 --help' for more information." >&2;}
6462 { (exit 1); exit 1; }; } ;;
6464 *) ac_config_targets="$ac_config_targets $1" ;;
6466 esac
6467 shift
6468 done
6470 ac_configure_extra_args=
6472 if $ac_cs_silent; then
6473 exec 6>/dev/null
6474 ac_configure_extra_args="$ac_configure_extra_args --silent"
6477 _ACEOF
6478 cat >>$CONFIG_STATUS <<_ACEOF
6479 if \$ac_cs_recheck; then
6480 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6481 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6484 _ACEOF
6486 cat >>$CONFIG_STATUS <<_ACEOF
6488 # INIT-COMMANDS section.
6491 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6493 _ACEOF
6497 cat >>$CONFIG_STATUS <<\_ACEOF
6498 for ac_config_target in $ac_config_targets
6500 case "$ac_config_target" in
6501 # Handling of arguments.
6502 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6503 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6504 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6505 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6506 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6507 { (exit 1); exit 1; }; };;
6508 esac
6509 done
6511 # If the user did not use the arguments to specify the items to instantiate,
6512 # then the envvar interface is used. Set only those that are not.
6513 # We use the long form for the default assignment because of an extremely
6514 # bizarre bug on SunOS 4.1.3.
6515 if $ac_need_defaults; then
6516 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6517 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6518 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6521 # Have a temporary directory for convenience. Make it in the build tree
6522 # simply because there is no reason to put it here, and in addition,
6523 # creating and moving files from /tmp can sometimes cause problems.
6524 # Create a temporary directory, and hook for its removal unless debugging.
6525 $debug ||
6527 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6528 trap '{ (exit 1); exit 1; }' 1 2 13 15
6531 # Create a (secure) tmp directory for tmp files.
6534 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6535 test -n "$tmp" && test -d "$tmp"
6536 } ||
6538 tmp=./confstat$$-$RANDOM
6539 (umask 077 && mkdir $tmp)
6540 } ||
6542 echo "$me: cannot create a temporary directory in ." >&2
6543 { (exit 1); exit 1; }
6546 _ACEOF
6548 cat >>$CONFIG_STATUS <<_ACEOF
6551 # CONFIG_FILES section.
6554 # No need to generate the scripts if there are no CONFIG_FILES.
6555 # This happens for instance when ./config.status config.h
6556 if test -n "\$CONFIG_FILES"; then
6557 # Protect against being on the right side of a sed subst in config.status.
6558 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6559 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6560 s,@SHELL@,$SHELL,;t t
6561 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6562 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6563 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6564 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6565 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6566 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6567 s,@exec_prefix@,$exec_prefix,;t t
6568 s,@prefix@,$prefix,;t t
6569 s,@program_transform_name@,$program_transform_name,;t t
6570 s,@bindir@,$bindir,;t t
6571 s,@sbindir@,$sbindir,;t t
6572 s,@libexecdir@,$libexecdir,;t t
6573 s,@datadir@,$datadir,;t t
6574 s,@sysconfdir@,$sysconfdir,;t t
6575 s,@sharedstatedir@,$sharedstatedir,;t t
6576 s,@localstatedir@,$localstatedir,;t t
6577 s,@libdir@,$libdir,;t t
6578 s,@includedir@,$includedir,;t t
6579 s,@oldincludedir@,$oldincludedir,;t t
6580 s,@infodir@,$infodir,;t t
6581 s,@mandir@,$mandir,;t t
6582 s,@build_alias@,$build_alias,;t t
6583 s,@host_alias@,$host_alias,;t t
6584 s,@target_alias@,$target_alias,;t t
6585 s,@DEFS@,$DEFS,;t t
6586 s,@ECHO_C@,$ECHO_C,;t t
6587 s,@ECHO_N@,$ECHO_N,;t t
6588 s,@ECHO_T@,$ECHO_T,;t t
6589 s,@LIBS@,$LIBS,;t t
6590 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6591 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6592 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6593 s,@PACKAGE@,$PACKAGE,;t t
6594 s,@VERSION@,$VERSION,;t t
6595 s,@ACLOCAL@,$ACLOCAL,;t t
6596 s,@AUTOCONF@,$AUTOCONF,;t t
6597 s,@AUTOMAKE@,$AUTOMAKE,;t t
6598 s,@AUTOHEADER@,$AUTOHEADER,;t t
6599 s,@MAKEINFO@,$MAKEINFO,;t t
6600 s,@AMTAR@,$AMTAR,;t t
6601 s,@install_sh@,$install_sh,;t t
6602 s,@STRIP@,$STRIP,;t t
6603 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
6604 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
6605 s,@AWK@,$AWK,;t t
6606 s,@SET_MAKE@,$SET_MAKE,;t t
6607 s,@CC@,$CC,;t t
6608 s,@CFLAGS@,$CFLAGS,;t t
6609 s,@LDFLAGS@,$LDFLAGS,;t t
6610 s,@CPPFLAGS@,$CPPFLAGS,;t t
6611 s,@ac_ct_CC@,$ac_ct_CC,;t t
6612 s,@EXEEXT@,$EXEEXT,;t t
6613 s,@OBJEXT@,$OBJEXT,;t t
6614 s,@DEPDIR@,$DEPDIR,;t t
6615 s,@am__include@,$am__include,;t t
6616 s,@am__quote@,$am__quote,;t t
6617 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
6618 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
6619 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
6620 s,@CCDEPMODE@,$CCDEPMODE,;t t
6621 s,@CPP@,$CPP,;t t
6622 s,@EGREP@,$EGREP,;t t
6623 s,@YACC@,$YACC,;t t
6624 s,@LEX@,$LEX,;t t
6625 s,@LEXLIB@,$LEXLIB,;t t
6626 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
6627 s,@LN_S@,$LN_S,;t t
6628 s,@LIBOBJS@,$LIBOBJS,;t t
6629 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6630 CEOF
6632 _ACEOF
6634 cat >>$CONFIG_STATUS <<\_ACEOF
6635 # Split the substitutions into bite-sized pieces for seds with
6636 # small command number limits, like on Digital OSF/1 and HP-UX.
6637 ac_max_sed_lines=48
6638 ac_sed_frag=1 # Number of current file.
6639 ac_beg=1 # First line for current file.
6640 ac_end=$ac_max_sed_lines # Line after last line for current file.
6641 ac_more_lines=:
6642 ac_sed_cmds=
6643 while $ac_more_lines; do
6644 if test $ac_beg -gt 1; then
6645 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6646 else
6647 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6649 if test ! -s $tmp/subs.frag; then
6650 ac_more_lines=false
6651 else
6652 # The purpose of the label and of the branching condition is to
6653 # speed up the sed processing (if there are no `@' at all, there
6654 # is no need to browse any of the substitutions).
6655 # These are the two extra sed commands mentioned above.
6656 (echo ':t
6657 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6658 if test -z "$ac_sed_cmds"; then
6659 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6660 else
6661 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6663 ac_sed_frag=`expr $ac_sed_frag + 1`
6664 ac_beg=$ac_end
6665 ac_end=`expr $ac_end + $ac_max_sed_lines`
6667 done
6668 if test -z "$ac_sed_cmds"; then
6669 ac_sed_cmds=cat
6671 fi # test -n "$CONFIG_FILES"
6673 _ACEOF
6674 cat >>$CONFIG_STATUS <<\_ACEOF
6675 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6676 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6677 case $ac_file in
6678 - | *:- | *:-:* ) # input from stdin
6679 cat >$tmp/stdin
6680 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6681 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6682 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6683 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6684 * ) ac_file_in=$ac_file.in ;;
6685 esac
6687 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6688 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6689 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6690 X"$ac_file" : 'X\(//\)[^/]' \| \
6691 X"$ac_file" : 'X\(//\)$' \| \
6692 X"$ac_file" : 'X\(/\)' \| \
6693 . : '\(.\)' 2>/dev/null ||
6694 echo X"$ac_file" |
6695 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6696 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6697 /^X\(\/\/\)$/{ s//\1/; q; }
6698 /^X\(\/\).*/{ s//\1/; q; }
6699 s/.*/./; q'`
6700 { if $as_mkdir_p; then
6701 mkdir -p "$ac_dir"
6702 else
6703 as_dir="$ac_dir"
6704 as_dirs=
6705 while test ! -d "$as_dir"; do
6706 as_dirs="$as_dir $as_dirs"
6707 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6708 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6709 X"$as_dir" : 'X\(//\)[^/]' \| \
6710 X"$as_dir" : 'X\(//\)$' \| \
6711 X"$as_dir" : 'X\(/\)' \| \
6712 . : '\(.\)' 2>/dev/null ||
6713 echo X"$as_dir" |
6714 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6715 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6716 /^X\(\/\/\)$/{ s//\1/; q; }
6717 /^X\(\/\).*/{ s//\1/; q; }
6718 s/.*/./; q'`
6719 done
6720 test ! -n "$as_dirs" || mkdir $as_dirs
6721 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6722 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6723 { (exit 1); exit 1; }; }; }
6725 ac_builddir=.
6727 if test "$ac_dir" != .; then
6728 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6729 # A "../" for each directory in $ac_dir_suffix.
6730 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6731 else
6732 ac_dir_suffix= ac_top_builddir=
6735 case $srcdir in
6736 .) # No --srcdir option. We are building in place.
6737 ac_srcdir=.
6738 if test -z "$ac_top_builddir"; then
6739 ac_top_srcdir=.
6740 else
6741 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6742 fi ;;
6743 [\\/]* | ?:[\\/]* ) # Absolute path.
6744 ac_srcdir=$srcdir$ac_dir_suffix;
6745 ac_top_srcdir=$srcdir ;;
6746 *) # Relative path.
6747 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6748 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6749 esac
6751 # Do not use `cd foo && pwd` to compute absolute paths, because
6752 # the directories may not exist.
6753 case `pwd` in
6754 .) ac_abs_builddir="$ac_dir";;
6756 case "$ac_dir" in
6757 .) ac_abs_builddir=`pwd`;;
6758 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6759 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6760 esac;;
6761 esac
6762 case $ac_abs_builddir in
6763 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6765 case ${ac_top_builddir}. in
6766 .) ac_abs_top_builddir=$ac_abs_builddir;;
6767 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6768 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6769 esac;;
6770 esac
6771 case $ac_abs_builddir in
6772 .) ac_abs_srcdir=$ac_srcdir;;
6774 case $ac_srcdir in
6775 .) ac_abs_srcdir=$ac_abs_builddir;;
6776 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6777 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6778 esac;;
6779 esac
6780 case $ac_abs_builddir in
6781 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6783 case $ac_top_srcdir in
6784 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6785 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6786 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6787 esac;;
6788 esac
6791 case $INSTALL in
6792 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6793 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6794 esac
6796 if test x"$ac_file" != x-; then
6797 { echo "$as_me:$LINENO: creating $ac_file" >&5
6798 echo "$as_me: creating $ac_file" >&6;}
6799 rm -f "$ac_file"
6801 # Let's still pretend it is `configure' which instantiates (i.e., don't
6802 # use $as_me), people would be surprised to read:
6803 # /* config.h. Generated by config.status. */
6804 if test x"$ac_file" = x-; then
6805 configure_input=
6806 else
6807 configure_input="$ac_file. "
6809 configure_input=$configure_input"Generated from `echo $ac_file_in |
6810 sed 's,.*/,,'` by configure."
6812 # First look for the input files in the build tree, otherwise in the
6813 # src tree.
6814 ac_file_inputs=`IFS=:
6815 for f in $ac_file_in; do
6816 case $f in
6817 -) echo $tmp/stdin ;;
6818 [\\/$]*)
6819 # Absolute (can't be DOS-style, as IFS=:)
6820 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6821 echo "$as_me: error: cannot find input file: $f" >&2;}
6822 { (exit 1); exit 1; }; }
6823 echo "$f";;
6824 *) # Relative
6825 if test -f "$f"; then
6826 # Build tree
6827 echo "$f"
6828 elif test -f "$srcdir/$f"; then
6829 # Source tree
6830 echo "$srcdir/$f"
6831 else
6832 # /dev/null tree
6833 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6834 echo "$as_me: error: cannot find input file: $f" >&2;}
6835 { (exit 1); exit 1; }; }
6836 fi;;
6837 esac
6838 done` || { (exit 1); exit 1; }
6839 _ACEOF
6840 cat >>$CONFIG_STATUS <<_ACEOF
6841 sed "$ac_vpsub
6842 $extrasub
6843 _ACEOF
6844 cat >>$CONFIG_STATUS <<\_ACEOF
6846 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6847 s,@configure_input@,$configure_input,;t t
6848 s,@srcdir@,$ac_srcdir,;t t
6849 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6850 s,@top_srcdir@,$ac_top_srcdir,;t t
6851 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6852 s,@builddir@,$ac_builddir,;t t
6853 s,@abs_builddir@,$ac_abs_builddir,;t t
6854 s,@top_builddir@,$ac_top_builddir,;t t
6855 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6856 s,@INSTALL@,$ac_INSTALL,;t t
6857 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6858 rm -f $tmp/stdin
6859 if test x"$ac_file" != x-; then
6860 mv $tmp/out $ac_file
6861 else
6862 cat $tmp/out
6863 rm -f $tmp/out
6866 done
6867 _ACEOF
6868 cat >>$CONFIG_STATUS <<\_ACEOF
6871 # CONFIG_HEADER section.
6874 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6875 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6877 # ac_d sets the value in "#define NAME VALUE" lines.
6878 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6879 ac_dB='[ ].*$,\1#\2'
6880 ac_dC=' '
6881 ac_dD=',;t'
6882 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6883 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6884 ac_uB='$,\1#\2define\3'
6885 ac_uC=' '
6886 ac_uD=',;t'
6888 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6889 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6890 case $ac_file in
6891 - | *:- | *:-:* ) # input from stdin
6892 cat >$tmp/stdin
6893 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6894 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6895 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6896 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6897 * ) ac_file_in=$ac_file.in ;;
6898 esac
6900 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6901 echo "$as_me: creating $ac_file" >&6;}
6903 # First look for the input files in the build tree, otherwise in the
6904 # src tree.
6905 ac_file_inputs=`IFS=:
6906 for f in $ac_file_in; do
6907 case $f in
6908 -) echo $tmp/stdin ;;
6909 [\\/$]*)
6910 # Absolute (can't be DOS-style, as IFS=:)
6911 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6912 echo "$as_me: error: cannot find input file: $f" >&2;}
6913 { (exit 1); exit 1; }; }
6914 # Do quote $f, to prevent DOS paths from being IFS'd.
6915 echo "$f";;
6916 *) # Relative
6917 if test -f "$f"; then
6918 # Build tree
6919 echo "$f"
6920 elif test -f "$srcdir/$f"; then
6921 # Source tree
6922 echo "$srcdir/$f"
6923 else
6924 # /dev/null tree
6925 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6926 echo "$as_me: error: cannot find input file: $f" >&2;}
6927 { (exit 1); exit 1; }; }
6928 fi;;
6929 esac
6930 done` || { (exit 1); exit 1; }
6931 # Remove the trailing spaces.
6932 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6934 _ACEOF
6936 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6937 # `conftest.undefs', that substitutes the proper values into
6938 # config.h.in to produce config.h. The first handles `#define'
6939 # templates, and the second `#undef' templates.
6940 # And first: Protect against being on the right side of a sed subst in
6941 # config.status. Protect against being in an unquoted here document
6942 # in config.status.
6943 rm -f conftest.defines conftest.undefs
6944 # Using a here document instead of a string reduces the quoting nightmare.
6945 # Putting comments in sed scripts is not portable.
6947 # `end' is used to avoid that the second main sed command (meant for
6948 # 0-ary CPP macros) applies to n-ary macro definitions.
6949 # See the Autoconf documentation for `clear'.
6950 cat >confdef2sed.sed <<\_ACEOF
6951 s/[\\&,]/\\&/g
6952 s,[\\$`],\\&,g
6953 t clear
6954 : clear
6955 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6956 t end
6957 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6958 : end
6959 _ACEOF
6960 # If some macros were called several times there might be several times
6961 # the same #defines, which is useless. Nevertheless, we may not want to
6962 # sort them, since we want the *last* AC-DEFINE to be honored.
6963 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6964 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6965 rm -f confdef2sed.sed
6967 # This sed command replaces #undef with comments. This is necessary, for
6968 # example, in the case of _POSIX_SOURCE, which is predefined and required
6969 # on some systems where configure will not decide to define it.
6970 cat >>conftest.undefs <<\_ACEOF
6971 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6972 _ACEOF
6974 # Break up conftest.defines because some shells have a limit on the size
6975 # of here documents, and old seds have small limits too (100 cmds).
6976 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6977 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6978 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6979 echo ' :' >>$CONFIG_STATUS
6980 rm -f conftest.tail
6981 while grep . conftest.defines >/dev/null
6983 # Write a limited-size here document to $tmp/defines.sed.
6984 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6985 # Speed up: don't consider the non `#define' lines.
6986 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6987 # Work around the forget-to-reset-the-flag bug.
6988 echo 't clr' >>$CONFIG_STATUS
6989 echo ': clr' >>$CONFIG_STATUS
6990 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6991 echo 'CEOF
6992 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6993 rm -f $tmp/in
6994 mv $tmp/out $tmp/in
6995 ' >>$CONFIG_STATUS
6996 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6997 rm -f conftest.defines
6998 mv conftest.tail conftest.defines
6999 done
7000 rm -f conftest.defines
7001 echo ' fi # grep' >>$CONFIG_STATUS
7002 echo >>$CONFIG_STATUS
7004 # Break up conftest.undefs because some shells have a limit on the size
7005 # of here documents, and old seds have small limits too (100 cmds).
7006 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7007 rm -f conftest.tail
7008 while grep . conftest.undefs >/dev/null
7010 # Write a limited-size here document to $tmp/undefs.sed.
7011 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7012 # Speed up: don't consider the non `#undef'
7013 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7014 # Work around the forget-to-reset-the-flag bug.
7015 echo 't clr' >>$CONFIG_STATUS
7016 echo ': clr' >>$CONFIG_STATUS
7017 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7018 echo 'CEOF
7019 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7020 rm -f $tmp/in
7021 mv $tmp/out $tmp/in
7022 ' >>$CONFIG_STATUS
7023 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7024 rm -f conftest.undefs
7025 mv conftest.tail conftest.undefs
7026 done
7027 rm -f conftest.undefs
7029 cat >>$CONFIG_STATUS <<\_ACEOF
7030 # Let's still pretend it is `configure' which instantiates (i.e., don't
7031 # use $as_me), people would be surprised to read:
7032 # /* config.h. Generated by config.status. */
7033 if test x"$ac_file" = x-; then
7034 echo "/* Generated by configure. */" >$tmp/config.h
7035 else
7036 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7038 cat $tmp/in >>$tmp/config.h
7039 rm -f $tmp/in
7040 if test x"$ac_file" != x-; then
7041 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7042 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7043 echo "$as_me: $ac_file is unchanged" >&6;}
7044 else
7045 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7046 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7047 X"$ac_file" : 'X\(//\)[^/]' \| \
7048 X"$ac_file" : 'X\(//\)$' \| \
7049 X"$ac_file" : 'X\(/\)' \| \
7050 . : '\(.\)' 2>/dev/null ||
7051 echo X"$ac_file" |
7052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7053 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7054 /^X\(\/\/\)$/{ s//\1/; q; }
7055 /^X\(\/\).*/{ s//\1/; q; }
7056 s/.*/./; q'`
7057 { if $as_mkdir_p; then
7058 mkdir -p "$ac_dir"
7059 else
7060 as_dir="$ac_dir"
7061 as_dirs=
7062 while test ! -d "$as_dir"; do
7063 as_dirs="$as_dir $as_dirs"
7064 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7065 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7066 X"$as_dir" : 'X\(//\)[^/]' \| \
7067 X"$as_dir" : 'X\(//\)$' \| \
7068 X"$as_dir" : 'X\(/\)' \| \
7069 . : '\(.\)' 2>/dev/null ||
7070 echo X"$as_dir" |
7071 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7072 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7073 /^X\(\/\/\)$/{ s//\1/; q; }
7074 /^X\(\/\).*/{ s//\1/; q; }
7075 s/.*/./; q'`
7076 done
7077 test ! -n "$as_dirs" || mkdir $as_dirs
7078 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7079 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7080 { (exit 1); exit 1; }; }; }
7082 rm -f $ac_file
7083 mv $tmp/config.h $ac_file
7085 else
7086 cat $tmp/config.h
7087 rm -f $tmp/config.h
7089 # Run the commands associated with the file.
7090 case $ac_file in
7091 config.h ) # update the timestamp
7092 echo 'timestamp for config.h' >"./stamp-h1"
7094 esac
7095 done
7096 _ACEOF
7097 cat >>$CONFIG_STATUS <<\_ACEOF
7100 # CONFIG_COMMANDS section.
7102 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7103 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7104 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7105 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7106 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7107 X"$ac_dest" : 'X\(//\)[^/]' \| \
7108 X"$ac_dest" : 'X\(//\)$' \| \
7109 X"$ac_dest" : 'X\(/\)' \| \
7110 . : '\(.\)' 2>/dev/null ||
7111 echo X"$ac_dest" |
7112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7113 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7114 /^X\(\/\/\)$/{ s//\1/; q; }
7115 /^X\(\/\).*/{ s//\1/; q; }
7116 s/.*/./; q'`
7117 { if $as_mkdir_p; then
7118 mkdir -p "$ac_dir"
7119 else
7120 as_dir="$ac_dir"
7121 as_dirs=
7122 while test ! -d "$as_dir"; do
7123 as_dirs="$as_dir $as_dirs"
7124 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7125 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7126 X"$as_dir" : 'X\(//\)[^/]' \| \
7127 X"$as_dir" : 'X\(//\)$' \| \
7128 X"$as_dir" : 'X\(/\)' \| \
7129 . : '\(.\)' 2>/dev/null ||
7130 echo X"$as_dir" |
7131 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7132 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7133 /^X\(\/\/\)$/{ s//\1/; q; }
7134 /^X\(\/\).*/{ s//\1/; q; }
7135 s/.*/./; q'`
7136 done
7137 test ! -n "$as_dirs" || mkdir $as_dirs
7138 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7139 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7140 { (exit 1); exit 1; }; }; }
7142 ac_builddir=.
7144 if test "$ac_dir" != .; then
7145 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7146 # A "../" for each directory in $ac_dir_suffix.
7147 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7148 else
7149 ac_dir_suffix= ac_top_builddir=
7152 case $srcdir in
7153 .) # No --srcdir option. We are building in place.
7154 ac_srcdir=.
7155 if test -z "$ac_top_builddir"; then
7156 ac_top_srcdir=.
7157 else
7158 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7159 fi ;;
7160 [\\/]* | ?:[\\/]* ) # Absolute path.
7161 ac_srcdir=$srcdir$ac_dir_suffix;
7162 ac_top_srcdir=$srcdir ;;
7163 *) # Relative path.
7164 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7165 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7166 esac
7168 # Do not use `cd foo && pwd` to compute absolute paths, because
7169 # the directories may not exist.
7170 case `pwd` in
7171 .) ac_abs_builddir="$ac_dir";;
7173 case "$ac_dir" in
7174 .) ac_abs_builddir=`pwd`;;
7175 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7176 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7177 esac;;
7178 esac
7179 case $ac_abs_builddir in
7180 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7182 case ${ac_top_builddir}. in
7183 .) ac_abs_top_builddir=$ac_abs_builddir;;
7184 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7185 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7186 esac;;
7187 esac
7188 case $ac_abs_builddir in
7189 .) ac_abs_srcdir=$ac_srcdir;;
7191 case $ac_srcdir in
7192 .) ac_abs_srcdir=$ac_abs_builddir;;
7193 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7194 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7195 esac;;
7196 esac
7197 case $ac_abs_builddir in
7198 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7200 case $ac_top_srcdir in
7201 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7202 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7203 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7204 esac;;
7205 esac
7208 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7209 echo "$as_me: executing $ac_dest commands" >&6;}
7210 case $ac_dest in
7211 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
7212 # Strip MF so we end up with the name of the file.
7213 mf=`echo "$mf" | sed -e 's/:.*$//'`
7214 # Check whether this is an Automake generated Makefile or not.
7215 # We used to match only the files named `Makefile.in', but
7216 # some people rename them; so instead we look at the file content.
7217 # Grep'ing the first line is not enough: some people post-process
7218 # each Makefile.in and add a new line on top of each file to say so.
7219 # So let's grep whole file.
7220 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
7221 dirpart=`(dirname "$mf") 2>/dev/null ||
7222 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7223 X"$mf" : 'X\(//\)[^/]' \| \
7224 X"$mf" : 'X\(//\)$' \| \
7225 X"$mf" : 'X\(/\)' \| \
7226 . : '\(.\)' 2>/dev/null ||
7227 echo X"$mf" |
7228 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7229 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7230 /^X\(\/\/\)$/{ s//\1/; q; }
7231 /^X\(\/\).*/{ s//\1/; q; }
7232 s/.*/./; q'`
7233 else
7234 continue
7236 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
7237 # Extract the definition of DEP_FILES from the Makefile without
7238 # running `make'.
7239 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
7240 test -z "$DEPDIR" && continue
7241 # When using ansi2knr, U may be empty or an underscore; expand it
7242 U=`sed -n -e '/^U = / s///p' < "$mf"`
7243 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
7244 # We invoke sed twice because it is the simplest approach to
7245 # changing $(DEPDIR) to its actual value in the expansion.
7246 for file in `sed -n -e '
7247 /^DEP_FILES = .*\\\\$/ {
7248 s/^DEP_FILES = //
7249 :loop
7250 s/\\\\$//
7253 /\\\\$/ b loop
7256 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
7257 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7258 # Make sure the directory exists.
7259 test -f "$dirpart/$file" && continue
7260 fdir=`(dirname "$file") 2>/dev/null ||
7261 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7262 X"$file" : 'X\(//\)[^/]' \| \
7263 X"$file" : 'X\(//\)$' \| \
7264 X"$file" : 'X\(/\)' \| \
7265 . : '\(.\)' 2>/dev/null ||
7266 echo X"$file" |
7267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7268 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7269 /^X\(\/\/\)$/{ s//\1/; q; }
7270 /^X\(\/\).*/{ s//\1/; q; }
7271 s/.*/./; q'`
7272 { if $as_mkdir_p; then
7273 mkdir -p $dirpart/$fdir
7274 else
7275 as_dir=$dirpart/$fdir
7276 as_dirs=
7277 while test ! -d "$as_dir"; do
7278 as_dirs="$as_dir $as_dirs"
7279 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7280 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7281 X"$as_dir" : 'X\(//\)[^/]' \| \
7282 X"$as_dir" : 'X\(//\)$' \| \
7283 X"$as_dir" : 'X\(/\)' \| \
7284 . : '\(.\)' 2>/dev/null ||
7285 echo X"$as_dir" |
7286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7287 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7288 /^X\(\/\/\)$/{ s//\1/; q; }
7289 /^X\(\/\).*/{ s//\1/; q; }
7290 s/.*/./; q'`
7291 done
7292 test ! -n "$as_dirs" || mkdir $as_dirs
7293 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
7294 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
7295 { (exit 1); exit 1; }; }; }
7297 # echo "creating $dirpart/$file"
7298 echo '# dummy' > "$dirpart/$file"
7299 done
7300 done
7302 esac
7303 done
7304 _ACEOF
7306 cat >>$CONFIG_STATUS <<\_ACEOF
7308 { (exit 0); exit 0; }
7309 _ACEOF
7310 chmod +x $CONFIG_STATUS
7311 ac_clean_files=$ac_clean_files_save
7314 # configure is writing to config.log, and then calls config.status.
7315 # config.status does its own redirection, appending to config.log.
7316 # Unfortunately, on DOS this fails, as config.log is still kept open
7317 # by configure, so config.status won't be able to write to it; its
7318 # output is simply discarded. So we exec the FD to /dev/null,
7319 # effectively closing config.log, so it can be properly (re)opened and
7320 # appended to by config.status. When coming back to configure, we
7321 # need to make the FD available again.
7322 if test "$no_create" != yes; then
7323 ac_cs_success=:
7324 ac_config_status_args=
7325 test "$silent" = yes &&
7326 ac_config_status_args="$ac_config_status_args --quiet"
7327 exec 5>/dev/null
7328 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7329 exec 5>>config.log
7330 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7331 # would make configure fail if this is the last instruction.
7332 $ac_cs_success || { (exit 1); exit 1; }