Expand PMF_FN_* macros.
[netbsd-mini2440.git] / external / bsd / flex / dist / configure
blob5fefb23eefaaf377f2392725aa19a3eaf987890c
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for the fast lexical analyser generator 2.5.35.
5 # Report bugs to <flex-help@lists.sourceforge.net>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
51 done
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
98 rm -f conf$$.sh
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
156 esac
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
240 IFS=" $as_nl"
242 # CDPATH.
243 $as_unset CDPATH
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251 exec 6>&1
254 # Initializations.
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
270 PACKAGE_NAME='the fast lexical analyser generator'
271 PACKAGE_TARNAME='flex'
272 PACKAGE_VERSION='2.5.35'
273 PACKAGE_STRING='the fast lexical analyser generator 2.5.35'
274 PACKAGE_BUGREPORT='flex-help@lists.sourceforge.net'
276 ac_unique_file="scan.l"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
279 #include <stdio.h>
280 #if HAVE_SYS_TYPES_H
281 # include <sys/types.h>
282 #endif
283 #if HAVE_SYS_STAT_H
284 # include <sys/stat.h>
285 #endif
286 #if STDC_HEADERS
287 # include <stdlib.h>
288 # include <stddef.h>
289 #else
290 # if HAVE_STDLIB_H
291 # include <stdlib.h>
292 # endif
293 #endif
294 #if HAVE_STRING_H
295 # if !STDC_HEADERS && HAVE_MEMORY_H
296 # include <memory.h>
297 # endif
298 # include <string.h>
299 #endif
300 #if HAVE_STRINGS_H
301 # include <strings.h>
302 #endif
303 #if HAVE_INTTYPES_H
304 # include <inttypes.h>
305 #else
306 # if HAVE_STDINT_H
307 # include <stdint.h>
308 # endif
309 #endif
310 #if HAVE_UNISTD_H
311 # include <unistd.h>
312 #endif"
314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB YACC LEX LEXLIB LEX_OUTPUT_ROOT CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE LN_S RANLIB ac_ct_RANLIB BISON HELP2MAN M4 INDENT ALLOCA CPP EGREP LIBOBJS LTLIBOBJS'
315 ac_subst_files=''
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
355 ac_prev=
356 for ac_option
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
361 ac_prev=
362 continue
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
369 case $ac_option in
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 bindir=$ac_optarg ;;
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file=$ac_optarg ;;
388 --config-cache | -C)
389 cache_file=config.cache ;;
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 ac_prev=datadir ;;
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 | --da=*)
395 datadir=$ac_optarg ;;
397 -disable-* | --disable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* | --enable-*)
407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 case $ac_option in
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 *) ac_optarg=yes ;;
416 esac
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix=$ac_optarg ;;
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
430 with_gas=yes ;;
432 -help | --help | --hel | --he | -h)
433 ac_init_help=long ;;
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir=$ac_optarg ;;
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 ac_prev=infodir ;;
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
456 -libdir | --libdir | --libdi | --libd)
457 ac_prev=libdir ;;
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 libdir=$ac_optarg ;;
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir=$ac_optarg ;;
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir=$ac_optarg ;;
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 ac_prev=mandir ;;
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 mandir=$ac_optarg ;;
482 -nfp | --nfp | --nf)
483 # Obsolete; use --without-fp.
484 with_fp=no ;;
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
488 no_create=yes ;;
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 no_recursion=yes ;;
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir=$ac_optarg ;;
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 ac_prev=prefix ;;
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 prefix=$ac_optarg ;;
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix=$ac_optarg ;;
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix=$ac_optarg ;;
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name=$ac_optarg ;;
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
541 silent=yes ;;
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 ac_prev=sbindir ;;
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 | --sbi=* | --sb=*)
547 sbindir=$ac_optarg ;;
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
552 | --sha | --sh)
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 | --sha=* | --sh=*)
558 sharedstatedir=$ac_optarg ;;
560 -site | --site | --sit)
561 ac_prev=site ;;
562 -site=* | --site=* | --sit=*)
563 site=$ac_optarg ;;
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 ac_prev=srcdir ;;
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 srcdir=$ac_optarg ;;
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575 sysconfdir=$ac_optarg ;;
577 -target | --target | --targe | --targ | --tar | --ta | --t)
578 ac_prev=target_alias ;;
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580 target_alias=$ac_optarg ;;
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 verbose=yes ;;
585 -version | --version | --versio | --versi | --vers | -V)
586 ac_init_version=: ;;
588 -with-* | --with-*)
589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 case $ac_option in
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 *) ac_optarg=yes ;;
598 esac
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* | --without-*)
602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
610 --x)
611 # Obsolete; use --with-x.
612 with_x=yes ;;
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619 x_includes=$ac_optarg ;;
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626 x_libraries=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
633 *=*)
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
641 export $ac_envvar ;;
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 esac
652 done
654 if test -n "$ac_prev"; then
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
663 eval ac_val=$`echo $ac_var`
664 case $ac_val in
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
668 esac
669 done
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val=$`echo $ac_var`
676 case $ac_val in
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
680 esac
681 done
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
697 cross_compiling=yes
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704 test "$silent" = yes && exec 6>/dev/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
717 echo X"$0" |
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
722 s/.*/./; q'`
723 srcdir=$ac_confdir
724 if test ! -r $srcdir/$ac_unique_file; then
725 srcdir=..
727 else
728 ac_srcdir_defaulted=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
734 else
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
756 ac_env_CC_value=$CC
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CXX_set=${CXX+set}
772 ac_env_CXX_value=$CXX
773 ac_cv_env_CXX_set=${CXX+set}
774 ac_cv_env_CXX_value=$CXX
775 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_env_CXXFLAGS_value=$CXXFLAGS
777 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
778 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
779 ac_env_CPP_set=${CPP+set}
780 ac_env_CPP_value=$CPP
781 ac_cv_env_CPP_set=${CPP+set}
782 ac_cv_env_CPP_value=$CPP
785 # Report the --help message.
787 if test "$ac_init_help" = "long"; then
788 # Omit some internal or obsolete options to make the list less imposing.
789 # This message is too long to be a string in the A/UX 3.1 sh.
790 cat <<_ACEOF
791 \`configure' configures the fast lexical analyser generator 2.5.35 to adapt to many kinds of systems.
793 Usage: $0 [OPTION]... [VAR=VALUE]...
795 To assign environment variables (e.g., CC, CFLAGS...), specify them as
796 VAR=VALUE. See below for descriptions of some of the useful variables.
798 Defaults for the options are specified in brackets.
800 Configuration:
801 -h, --help display this help and exit
802 --help=short display options specific to this package
803 --help=recursive display the short help of all the included packages
804 -V, --version display version information and exit
805 -q, --quiet, --silent do not print \`checking...' messages
806 --cache-file=FILE cache test results in FILE [disabled]
807 -C, --config-cache alias for \`--cache-file=config.cache'
808 -n, --no-create do not create output files
809 --srcdir=DIR find the sources in DIR [configure dir or \`..']
811 _ACEOF
813 cat <<_ACEOF
814 Installation directories:
815 --prefix=PREFIX install architecture-independent files in PREFIX
816 [$ac_default_prefix]
817 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
818 [PREFIX]
820 By default, \`make install' will install all the files in
821 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
822 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
823 for instance \`--prefix=\$HOME'.
825 For better control, use the options below.
827 Fine tuning of the installation directories:
828 --bindir=DIR user executables [EPREFIX/bin]
829 --sbindir=DIR system admin executables [EPREFIX/sbin]
830 --libexecdir=DIR program executables [EPREFIX/libexec]
831 --datadir=DIR read-only architecture-independent data [PREFIX/share]
832 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
833 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
834 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
835 --libdir=DIR object code libraries [EPREFIX/lib]
836 --includedir=DIR C header files [PREFIX/include]
837 --oldincludedir=DIR C header files for non-gcc [/usr/include]
838 --infodir=DIR info documentation [PREFIX/info]
839 --mandir=DIR man documentation [PREFIX/man]
840 _ACEOF
842 cat <<\_ACEOF
844 Program names:
845 --program-prefix=PREFIX prepend PREFIX to installed program names
846 --program-suffix=SUFFIX append SUFFIX to installed program names
847 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
849 System types:
850 --build=BUILD configure for building on BUILD [guessed]
851 --host=HOST cross-compile to build programs to run on HOST [BUILD]
852 _ACEOF
855 if test -n "$ac_init_help"; then
856 case $ac_init_help in
857 short | recursive ) echo "Configuration of the fast lexical analyser generator 2.5.35:";;
858 esac
859 cat <<\_ACEOF
861 Optional Features:
862 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
863 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
864 --disable-nls do not use Native Language Support
865 --disable-dependency-tracking speeds up one-time build
866 --enable-dependency-tracking do not reject slow dependency extractors
867 --disable-rpath do not hardcode runtime library paths
869 Optional Packages:
870 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
871 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
872 --with-gnu-ld assume the C compiler uses GNU ld default=no
873 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
874 --without-libiconv-prefix don't search for libiconv in includedir and libdir
875 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
876 --without-libintl-prefix don't search for libintl in includedir and libdir
878 Some influential environment variables:
879 CC C compiler command
880 CFLAGS C compiler flags
881 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
882 nonstandard directory <lib dir>
883 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
884 headers in a nonstandard directory <include dir>
885 CXX C++ compiler command
886 CXXFLAGS C++ compiler flags
887 CPP C preprocessor
889 Use these variables to override the choices made by `configure' or to help
890 it to find libraries and programs with nonstandard names/locations.
892 Report bugs to <flex-help@lists.sourceforge.net>.
893 _ACEOF
896 if test "$ac_init_help" = "recursive"; then
897 # If there are subdirs, report their specific --help.
898 ac_popdir=`pwd`
899 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
900 test -d $ac_dir || continue
901 ac_builddir=.
903 if test "$ac_dir" != .; then
904 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
905 # A "../" for each directory in $ac_dir_suffix.
906 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
907 else
908 ac_dir_suffix= ac_top_builddir=
911 case $srcdir in
912 .) # No --srcdir option. We are building in place.
913 ac_srcdir=.
914 if test -z "$ac_top_builddir"; then
915 ac_top_srcdir=.
916 else
917 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
918 fi ;;
919 [\\/]* | ?:[\\/]* ) # Absolute path.
920 ac_srcdir=$srcdir$ac_dir_suffix;
921 ac_top_srcdir=$srcdir ;;
922 *) # Relative path.
923 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
924 ac_top_srcdir=$ac_top_builddir$srcdir ;;
925 esac
927 # Do not use `cd foo && pwd` to compute absolute paths, because
928 # the directories may not exist.
929 case `pwd` in
930 .) ac_abs_builddir="$ac_dir";;
932 case "$ac_dir" in
933 .) ac_abs_builddir=`pwd`;;
934 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
935 *) ac_abs_builddir=`pwd`/"$ac_dir";;
936 esac;;
937 esac
938 case $ac_abs_builddir in
939 .) ac_abs_top_builddir=${ac_top_builddir}.;;
941 case ${ac_top_builddir}. in
942 .) ac_abs_top_builddir=$ac_abs_builddir;;
943 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
944 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
945 esac;;
946 esac
947 case $ac_abs_builddir in
948 .) ac_abs_srcdir=$ac_srcdir;;
950 case $ac_srcdir in
951 .) ac_abs_srcdir=$ac_abs_builddir;;
952 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
953 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
954 esac;;
955 esac
956 case $ac_abs_builddir in
957 .) ac_abs_top_srcdir=$ac_top_srcdir;;
959 case $ac_top_srcdir in
960 .) ac_abs_top_srcdir=$ac_abs_builddir;;
961 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
962 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
963 esac;;
964 esac
966 cd $ac_dir
967 # Check for guested configure; otherwise get Cygnus style configure.
968 if test -f $ac_srcdir/configure.gnu; then
969 echo
970 $SHELL $ac_srcdir/configure.gnu --help=recursive
971 elif test -f $ac_srcdir/configure; then
972 echo
973 $SHELL $ac_srcdir/configure --help=recursive
974 elif test -f $ac_srcdir/configure.ac ||
975 test -f $ac_srcdir/configure.in; then
976 echo
977 $ac_configure --help
978 else
979 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
981 cd "$ac_popdir"
982 done
985 test -n "$ac_init_help" && exit 0
986 if $ac_init_version; then
987 cat <<\_ACEOF
988 the fast lexical analyser generator configure 2.5.35
989 generated by GNU Autoconf 2.59
991 Copyright (C) 2003 Free Software Foundation, Inc.
992 This configure script is free software; the Free Software Foundation
993 gives unlimited permission to copy, distribute and modify it.
994 _ACEOF
995 exit 0
997 exec 5>config.log
998 cat >&5 <<_ACEOF
999 This file contains any messages produced by compilers while
1000 running configure, to aid debugging if configure makes a mistake.
1002 It was created by the fast lexical analyser generator $as_me 2.5.35, which was
1003 generated by GNU Autoconf 2.59. Invocation command line was
1005 $ $0 $@
1007 _ACEOF
1009 cat <<_ASUNAME
1010 ## --------- ##
1011 ## Platform. ##
1012 ## --------- ##
1014 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1015 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1016 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1017 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1018 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1020 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1021 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1023 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1024 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1025 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1026 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1027 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1028 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1029 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1031 _ASUNAME
1033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1034 for as_dir in $PATH
1036 IFS=$as_save_IFS
1037 test -z "$as_dir" && as_dir=.
1038 echo "PATH: $as_dir"
1039 done
1041 } >&5
1043 cat >&5 <<_ACEOF
1046 ## ----------- ##
1047 ## Core tests. ##
1048 ## ----------- ##
1050 _ACEOF
1053 # Keep a trace of the command line.
1054 # Strip out --no-create and --no-recursion so they do not pile up.
1055 # Strip out --silent because we don't want to record it for future runs.
1056 # Also quote any args containing shell meta-characters.
1057 # Make two passes to allow for proper duplicate-argument suppression.
1058 ac_configure_args=
1059 ac_configure_args0=
1060 ac_configure_args1=
1061 ac_sep=
1062 ac_must_keep_next=false
1063 for ac_pass in 1 2
1065 for ac_arg
1067 case $ac_arg in
1068 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070 | -silent | --silent | --silen | --sile | --sil)
1071 continue ;;
1072 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1073 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1074 esac
1075 case $ac_pass in
1076 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1078 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1079 if test $ac_must_keep_next = true; then
1080 ac_must_keep_next=false # Got value, back to normal.
1081 else
1082 case $ac_arg in
1083 *=* | --config-cache | -C | -disable-* | --disable-* \
1084 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1085 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1086 | -with-* | --with-* | -without-* | --without-* | --x)
1087 case "$ac_configure_args0 " in
1088 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1089 esac
1091 -* ) ac_must_keep_next=true ;;
1092 esac
1094 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1095 # Get rid of the leading space.
1096 ac_sep=" "
1098 esac
1099 done
1100 done
1101 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1102 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1104 # When interrupted or exit'd, cleanup temporary files, and complete
1105 # config.log. We remove comments because anyway the quotes in there
1106 # would cause problems or look ugly.
1107 # WARNING: Be sure not to use single quotes in there, as some shells,
1108 # such as our DU 5.0 friend, will then `close' the trap.
1109 trap 'exit_status=$?
1110 # Save into config.log some information that might help in debugging.
1112 echo
1114 cat <<\_ASBOX
1115 ## ---------------- ##
1116 ## Cache variables. ##
1117 ## ---------------- ##
1118 _ASBOX
1119 echo
1120 # The following way of writing the cache mishandles newlines in values,
1122 (set) 2>&1 |
1123 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1124 *ac_space=\ *)
1125 sed -n \
1126 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1127 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1130 sed -n \
1131 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1133 esac;
1135 echo
1137 cat <<\_ASBOX
1138 ## ----------------- ##
1139 ## Output variables. ##
1140 ## ----------------- ##
1141 _ASBOX
1142 echo
1143 for ac_var in $ac_subst_vars
1145 eval ac_val=$`echo $ac_var`
1146 echo "$ac_var='"'"'$ac_val'"'"'"
1147 done | sort
1148 echo
1150 if test -n "$ac_subst_files"; then
1151 cat <<\_ASBOX
1152 ## ------------- ##
1153 ## Output files. ##
1154 ## ------------- ##
1155 _ASBOX
1156 echo
1157 for ac_var in $ac_subst_files
1159 eval ac_val=$`echo $ac_var`
1160 echo "$ac_var='"'"'$ac_val'"'"'"
1161 done | sort
1162 echo
1165 if test -s confdefs.h; then
1166 cat <<\_ASBOX
1167 ## ----------- ##
1168 ## confdefs.h. ##
1169 ## ----------- ##
1170 _ASBOX
1171 echo
1172 sed "/^$/d" confdefs.h | sort
1173 echo
1175 test "$ac_signal" != 0 &&
1176 echo "$as_me: caught signal $ac_signal"
1177 echo "$as_me: exit $exit_status"
1178 } >&5
1179 rm -f core *.core &&
1180 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1181 exit $exit_status
1183 for ac_signal in 1 2 13 15; do
1184 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1185 done
1186 ac_signal=0
1188 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1189 rm -rf conftest* confdefs.h
1190 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1191 echo >confdefs.h
1193 # Predefined preprocessor variables.
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_NAME "$PACKAGE_NAME"
1197 _ACEOF
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1202 _ACEOF
1205 cat >>confdefs.h <<_ACEOF
1206 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1207 _ACEOF
1210 cat >>confdefs.h <<_ACEOF
1211 #define PACKAGE_STRING "$PACKAGE_STRING"
1212 _ACEOF
1215 cat >>confdefs.h <<_ACEOF
1216 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1217 _ACEOF
1220 # Let the site file select an alternate cache file if it wants to.
1221 # Prefer explicitly selected file to automatically selected ones.
1222 if test -z "$CONFIG_SITE"; then
1223 if test "x$prefix" != xNONE; then
1224 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1225 else
1226 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1229 for ac_site_file in $CONFIG_SITE; do
1230 if test -r "$ac_site_file"; then
1231 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1232 echo "$as_me: loading site script $ac_site_file" >&6;}
1233 sed 's/^/| /' "$ac_site_file" >&5
1234 . "$ac_site_file"
1236 done
1238 if test -r "$cache_file"; then
1239 # Some versions of bash will fail to source /dev/null (special
1240 # files actually), so we avoid doing that.
1241 if test -f "$cache_file"; then
1242 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1243 echo "$as_me: loading cache $cache_file" >&6;}
1244 case $cache_file in
1245 [\\/]* | ?:[\\/]* ) . $cache_file;;
1246 *) . ./$cache_file;;
1247 esac
1249 else
1250 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1251 echo "$as_me: creating cache $cache_file" >&6;}
1252 >$cache_file
1255 # Check that the precious variables saved in the cache have kept the same
1256 # value.
1257 ac_cache_corrupted=false
1258 for ac_var in `(set) 2>&1 |
1259 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1260 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1261 eval ac_new_set=\$ac_env_${ac_var}_set
1262 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1263 eval ac_new_val="\$ac_env_${ac_var}_value"
1264 case $ac_old_set,$ac_new_set in
1265 set,)
1266 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1267 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1268 ac_cache_corrupted=: ;;
1269 ,set)
1270 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1271 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1272 ac_cache_corrupted=: ;;
1273 ,);;
1275 if test "x$ac_old_val" != "x$ac_new_val"; then
1276 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1277 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1278 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1279 echo "$as_me: former value: $ac_old_val" >&2;}
1280 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1281 echo "$as_me: current value: $ac_new_val" >&2;}
1282 ac_cache_corrupted=:
1283 fi;;
1284 esac
1285 # Pass precious variables to config.status.
1286 if test "$ac_new_set" = set; then
1287 case $ac_new_val in
1288 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1289 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1290 *) ac_arg=$ac_var=$ac_new_val ;;
1291 esac
1292 case " $ac_configure_args " in
1293 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1294 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1295 esac
1297 done
1298 if $ac_cache_corrupted; then
1299 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1300 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1301 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1302 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1303 { (exit 1); exit 1; }; }
1306 ac_ext=c
1307 ac_cpp='$CPP $CPPFLAGS'
1308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1339 am__api_version="1.9"
1340 ac_aux_dir=
1341 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1342 if test -f $ac_dir/install-sh; then
1343 ac_aux_dir=$ac_dir
1344 ac_install_sh="$ac_aux_dir/install-sh -c"
1345 break
1346 elif test -f $ac_dir/install.sh; then
1347 ac_aux_dir=$ac_dir
1348 ac_install_sh="$ac_aux_dir/install.sh -c"
1349 break
1350 elif test -f $ac_dir/shtool; then
1351 ac_aux_dir=$ac_dir
1352 ac_install_sh="$ac_aux_dir/shtool install -c"
1353 break
1355 done
1356 if test -z "$ac_aux_dir"; then
1357 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1358 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1359 { (exit 1); exit 1; }; }
1361 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1362 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1363 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1365 # Find a good install program. We prefer a C program (faster),
1366 # so one script is as good as another. But avoid the broken or
1367 # incompatible versions:
1368 # SysV /etc/install, /usr/sbin/install
1369 # SunOS /usr/etc/install
1370 # IRIX /sbin/install
1371 # AIX /bin/install
1372 # AmigaOS /C/install, which installs bootblocks on floppy discs
1373 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1374 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1375 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1376 # OS/2's system install, which has a completely different semantic
1377 # ./install, which can be erroneously created by make from ./install.sh.
1378 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1379 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1380 if test -z "$INSTALL"; then
1381 if test "${ac_cv_path_install+set}" = set; then
1382 echo $ECHO_N "(cached) $ECHO_C" >&6
1383 else
1384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1385 for as_dir in $PATH
1387 IFS=$as_save_IFS
1388 test -z "$as_dir" && as_dir=.
1389 # Account for people who put trailing slashes in PATH elements.
1390 case $as_dir/ in
1391 ./ | .// | /cC/* | \
1392 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1393 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1394 /usr/ucb/* ) ;;
1396 # OSF1 and SCO ODT 3.0 have their own names for install.
1397 # Don't use installbsd from OSF since it installs stuff as root
1398 # by default.
1399 for ac_prog in ginstall scoinst install; do
1400 for ac_exec_ext in '' $ac_executable_extensions; do
1401 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1402 if test $ac_prog = install &&
1403 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1404 # AIX install. It has an incompatible calling convention.
1406 elif test $ac_prog = install &&
1407 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1408 # program-specific install script used by HP pwplus--don't use.
1410 else
1411 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1412 break 3
1415 done
1416 done
1418 esac
1419 done
1423 if test "${ac_cv_path_install+set}" = set; then
1424 INSTALL=$ac_cv_path_install
1425 else
1426 # As a last resort, use the slow shell script. We don't cache a
1427 # path for INSTALL within a source directory, because that will
1428 # break other packages using the cache if that directory is
1429 # removed, or if the path is relative.
1430 INSTALL=$ac_install_sh
1433 echo "$as_me:$LINENO: result: $INSTALL" >&5
1434 echo "${ECHO_T}$INSTALL" >&6
1436 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1437 # It thinks the first close brace ends the variable substitution.
1438 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1440 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1442 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1444 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1445 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1446 # Just in case
1447 sleep 1
1448 echo timestamp > conftest.file
1449 # Do `set' in a subshell so we don't clobber the current shell's
1450 # arguments. Must try -L first in case configure is actually a
1451 # symlink; some systems play weird games with the mod time of symlinks
1452 # (eg FreeBSD returns the mod time of the symlink's containing
1453 # directory).
1454 if (
1455 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1456 if test "$*" = "X"; then
1457 # -L didn't work.
1458 set X `ls -t $srcdir/configure conftest.file`
1460 rm -f conftest.file
1461 if test "$*" != "X $srcdir/configure conftest.file" \
1462 && test "$*" != "X conftest.file $srcdir/configure"; then
1464 # If neither matched, then we have a broken ls. This can happen
1465 # if, for instance, CONFIG_SHELL is bash and it inherits a
1466 # broken ls alias from the environment. This has actually
1467 # happened. Such a system could not be considered "sane".
1468 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1469 alias in your environment" >&5
1470 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1471 alias in your environment" >&2;}
1472 { (exit 1); exit 1; }; }
1475 test "$2" = conftest.file
1477 then
1478 # Ok.
1480 else
1481 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1482 Check your system clock" >&5
1483 echo "$as_me: error: newly created file is older than distributed files!
1484 Check your system clock" >&2;}
1485 { (exit 1); exit 1; }; }
1487 echo "$as_me:$LINENO: result: yes" >&5
1488 echo "${ECHO_T}yes" >&6
1489 test "$program_prefix" != NONE &&
1490 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1491 # Use a double $ so make ignores it.
1492 test "$program_suffix" != NONE &&
1493 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1494 # Double any \ or $. echo might interpret backslashes.
1495 # By default was `s,x,x', remove it if useless.
1496 cat <<\_ACEOF >conftest.sed
1497 s/[\\$]/&&/g;s/;s,x,x,$//
1498 _ACEOF
1499 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1500 rm conftest.sed
1502 # expand $ac_aux_dir to an absolute path
1503 am_aux_dir=`cd $ac_aux_dir && pwd`
1505 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1506 # Use eval to expand $SHELL
1507 if eval "$MISSING --run true"; then
1508 am_missing_run="$MISSING --run "
1509 else
1510 am_missing_run=
1511 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1512 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1515 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1516 # We used to keeping the `.' as first argument, in order to
1517 # allow $(mkdir_p) to be used without argument. As in
1518 # $(mkdir_p) $(somedir)
1519 # where $(somedir) is conditionally defined. However this is wrong
1520 # for two reasons:
1521 # 1. if the package is installed by a user who cannot write `.'
1522 # make install will fail,
1523 # 2. the above comment should most certainly read
1524 # $(mkdir_p) $(DESTDIR)$(somedir)
1525 # so it does not work when $(somedir) is undefined and
1526 # $(DESTDIR) is not.
1527 # To support the latter case, we have to write
1528 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1529 # so the `.' trick is pointless.
1530 mkdir_p='mkdir -p --'
1531 else
1532 # On NextStep and OpenStep, the `mkdir' command does not
1533 # recognize any option. It will interpret all options as
1534 # directories to create, and then abort because `.' already
1535 # exists.
1536 for d in ./-p ./--version;
1538 test -d $d && rmdir $d
1539 done
1540 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1541 if test -f "$ac_aux_dir/mkinstalldirs"; then
1542 mkdir_p='$(mkinstalldirs)'
1543 else
1544 mkdir_p='$(install_sh) -d'
1548 for ac_prog in gawk mawk nawk awk
1550 # Extract the first word of "$ac_prog", so it can be a program name with args.
1551 set dummy $ac_prog; ac_word=$2
1552 echo "$as_me:$LINENO: checking for $ac_word" >&5
1553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1554 if test "${ac_cv_prog_AWK+set}" = set; then
1555 echo $ECHO_N "(cached) $ECHO_C" >&6
1556 else
1557 if test -n "$AWK"; then
1558 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1559 else
1560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1561 for as_dir in $PATH
1563 IFS=$as_save_IFS
1564 test -z "$as_dir" && as_dir=.
1565 for ac_exec_ext in '' $ac_executable_extensions; do
1566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1567 ac_cv_prog_AWK="$ac_prog"
1568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1569 break 2
1571 done
1572 done
1576 AWK=$ac_cv_prog_AWK
1577 if test -n "$AWK"; then
1578 echo "$as_me:$LINENO: result: $AWK" >&5
1579 echo "${ECHO_T}$AWK" >&6
1580 else
1581 echo "$as_me:$LINENO: result: no" >&5
1582 echo "${ECHO_T}no" >&6
1585 test -n "$AWK" && break
1586 done
1588 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1589 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1590 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1591 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1592 echo $ECHO_N "(cached) $ECHO_C" >&6
1593 else
1594 cat >conftest.make <<\_ACEOF
1595 all:
1596 @echo 'ac_maketemp="$(MAKE)"'
1597 _ACEOF
1598 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1599 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1600 if test -n "$ac_maketemp"; then
1601 eval ac_cv_prog_make_${ac_make}_set=yes
1602 else
1603 eval ac_cv_prog_make_${ac_make}_set=no
1605 rm -f conftest.make
1607 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1608 echo "$as_me:$LINENO: result: yes" >&5
1609 echo "${ECHO_T}yes" >&6
1610 SET_MAKE=
1611 else
1612 echo "$as_me:$LINENO: result: no" >&5
1613 echo "${ECHO_T}no" >&6
1614 SET_MAKE="MAKE=${MAKE-make}"
1617 rm -rf .tst 2>/dev/null
1618 mkdir .tst 2>/dev/null
1619 if test -d .tst; then
1620 am__leading_dot=.
1621 else
1622 am__leading_dot=_
1624 rmdir .tst 2>/dev/null
1626 # test to see if srcdir already configured
1627 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1628 test -f $srcdir/config.status; then
1629 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1630 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1631 { (exit 1); exit 1; }; }
1634 # test whether we have cygpath
1635 if test -z "$CYGPATH_W"; then
1636 if (cygpath --version) >/dev/null 2>/dev/null; then
1637 CYGPATH_W='cygpath -w'
1638 else
1639 CYGPATH_W=echo
1644 # Define the identity of the package.
1645 PACKAGE='flex'
1646 VERSION='2.5.35'
1649 cat >>confdefs.h <<_ACEOF
1650 #define PACKAGE "$PACKAGE"
1651 _ACEOF
1654 cat >>confdefs.h <<_ACEOF
1655 #define VERSION "$VERSION"
1656 _ACEOF
1658 # Some tools Automake needs.
1660 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1663 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1666 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1669 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1672 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1674 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1676 # Installed binaries are usually stripped using `strip' when the user
1677 # run `make install-strip'. However `strip' might not be the right
1678 # tool to use in cross-compilation environments, therefore Automake
1679 # will honor the `STRIP' environment variable to overrule this program.
1680 if test "$cross_compiling" != no; then
1681 if test -n "$ac_tool_prefix"; then
1682 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1683 set dummy ${ac_tool_prefix}strip; ac_word=$2
1684 echo "$as_me:$LINENO: checking for $ac_word" >&5
1685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1686 if test "${ac_cv_prog_STRIP+set}" = set; then
1687 echo $ECHO_N "(cached) $ECHO_C" >&6
1688 else
1689 if test -n "$STRIP"; then
1690 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1691 else
1692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1693 for as_dir in $PATH
1695 IFS=$as_save_IFS
1696 test -z "$as_dir" && as_dir=.
1697 for ac_exec_ext in '' $ac_executable_extensions; do
1698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1699 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1701 break 2
1703 done
1704 done
1708 STRIP=$ac_cv_prog_STRIP
1709 if test -n "$STRIP"; then
1710 echo "$as_me:$LINENO: result: $STRIP" >&5
1711 echo "${ECHO_T}$STRIP" >&6
1712 else
1713 echo "$as_me:$LINENO: result: no" >&5
1714 echo "${ECHO_T}no" >&6
1718 if test -z "$ac_cv_prog_STRIP"; then
1719 ac_ct_STRIP=$STRIP
1720 # Extract the first word of "strip", so it can be a program name with args.
1721 set dummy strip; ac_word=$2
1722 echo "$as_me:$LINENO: checking for $ac_word" >&5
1723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1724 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1725 echo $ECHO_N "(cached) $ECHO_C" >&6
1726 else
1727 if test -n "$ac_ct_STRIP"; then
1728 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1729 else
1730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1731 for as_dir in $PATH
1733 IFS=$as_save_IFS
1734 test -z "$as_dir" && as_dir=.
1735 for ac_exec_ext in '' $ac_executable_extensions; do
1736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1737 ac_cv_prog_ac_ct_STRIP="strip"
1738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1739 break 2
1741 done
1742 done
1744 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1747 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1748 if test -n "$ac_ct_STRIP"; then
1749 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1750 echo "${ECHO_T}$ac_ct_STRIP" >&6
1751 else
1752 echo "$as_me:$LINENO: result: no" >&5
1753 echo "${ECHO_T}no" >&6
1756 STRIP=$ac_ct_STRIP
1757 else
1758 STRIP="$ac_cv_prog_STRIP"
1762 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1764 # We need awk for the "check" target. The system "awk" is bad on
1765 # some platforms.
1766 # Always define AMTAR for backward compatibility.
1768 AMTAR=${AMTAR-"${am_missing_run}tar"}
1770 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1776 ac_config_headers="$ac_config_headers config.h:conf.in"
1779 # checks for programs
1782 MKINSTALLDIRS=
1783 if test -n "$ac_aux_dir"; then
1784 case "$ac_aux_dir" in
1785 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
1786 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
1787 esac
1789 if test -z "$MKINSTALLDIRS"; then
1790 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
1795 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
1796 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
1797 # Check whether --enable-nls or --disable-nls was given.
1798 if test "${enable_nls+set}" = set; then
1799 enableval="$enable_nls"
1800 USE_NLS=$enableval
1801 else
1802 USE_NLS=yes
1804 echo "$as_me:$LINENO: result: $USE_NLS" >&5
1805 echo "${ECHO_T}$USE_NLS" >&6
1812 # Prepare PATH_SEPARATOR.
1813 # The user is always right.
1814 if test "${PATH_SEPARATOR+set}" != set; then
1815 echo "#! /bin/sh" >conf$$.sh
1816 echo "exit 0" >>conf$$.sh
1817 chmod +x conf$$.sh
1818 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
1819 PATH_SEPARATOR=';'
1820 else
1821 PATH_SEPARATOR=:
1823 rm -f conf$$.sh
1826 # Find out how to test for executable files. Don't use a zero-byte file,
1827 # as systems may use methods other than mode bits to determine executability.
1828 cat >conf$$.file <<_ASEOF
1829 #! /bin/sh
1830 exit 0
1831 _ASEOF
1832 chmod +x conf$$.file
1833 if test -x conf$$.file >/dev/null 2>&1; then
1834 ac_executable_p="test -x"
1835 else
1836 ac_executable_p="test -f"
1838 rm -f conf$$.file
1840 # Extract the first word of "msgfmt", so it can be a program name with args.
1841 set dummy msgfmt; ac_word=$2
1842 echo "$as_me:$LINENO: checking for $ac_word" >&5
1843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1844 if test "${ac_cv_path_MSGFMT+set}" = set; then
1845 echo $ECHO_N "(cached) $ECHO_C" >&6
1846 else
1847 case "$MSGFMT" in
1848 [\\/]* | ?:[\\/]*)
1849 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
1852 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
1853 for ac_dir in $PATH; do
1854 IFS="$ac_save_IFS"
1855 test -z "$ac_dir" && ac_dir=.
1856 for ac_exec_ext in '' $ac_executable_extensions; do
1857 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
1858 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
1859 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
1860 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
1861 break 2
1864 done
1865 done
1866 IFS="$ac_save_IFS"
1867 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
1869 esac
1871 MSGFMT="$ac_cv_path_MSGFMT"
1872 if test "$MSGFMT" != ":"; then
1873 echo "$as_me:$LINENO: result: $MSGFMT" >&5
1874 echo "${ECHO_T}$MSGFMT" >&6
1875 else
1876 echo "$as_me:$LINENO: result: no" >&5
1877 echo "${ECHO_T}no" >&6
1880 # Extract the first word of "gmsgfmt", so it can be a program name with args.
1881 set dummy gmsgfmt; ac_word=$2
1882 echo "$as_me:$LINENO: checking for $ac_word" >&5
1883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1884 if test "${ac_cv_path_GMSGFMT+set}" = set; then
1885 echo $ECHO_N "(cached) $ECHO_C" >&6
1886 else
1887 case $GMSGFMT in
1888 [\\/]* | ?:[\\/]*)
1889 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
1892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893 for as_dir in $PATH
1895 IFS=$as_save_IFS
1896 test -z "$as_dir" && as_dir=.
1897 for ac_exec_ext in '' $ac_executable_extensions; do
1898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1899 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
1900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1901 break 2
1903 done
1904 done
1906 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
1908 esac
1910 GMSGFMT=$ac_cv_path_GMSGFMT
1912 if test -n "$GMSGFMT"; then
1913 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
1914 echo "${ECHO_T}$GMSGFMT" >&6
1915 else
1916 echo "$as_me:$LINENO: result: no" >&5
1917 echo "${ECHO_T}no" >&6
1922 # Prepare PATH_SEPARATOR.
1923 # The user is always right.
1924 if test "${PATH_SEPARATOR+set}" != set; then
1925 echo "#! /bin/sh" >conf$$.sh
1926 echo "exit 0" >>conf$$.sh
1927 chmod +x conf$$.sh
1928 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
1929 PATH_SEPARATOR=';'
1930 else
1931 PATH_SEPARATOR=:
1933 rm -f conf$$.sh
1936 # Find out how to test for executable files. Don't use a zero-byte file,
1937 # as systems may use methods other than mode bits to determine executability.
1938 cat >conf$$.file <<_ASEOF
1939 #! /bin/sh
1940 exit 0
1941 _ASEOF
1942 chmod +x conf$$.file
1943 if test -x conf$$.file >/dev/null 2>&1; then
1944 ac_executable_p="test -x"
1945 else
1946 ac_executable_p="test -f"
1948 rm -f conf$$.file
1950 # Extract the first word of "xgettext", so it can be a program name with args.
1951 set dummy xgettext; ac_word=$2
1952 echo "$as_me:$LINENO: checking for $ac_word" >&5
1953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1954 if test "${ac_cv_path_XGETTEXT+set}" = set; then
1955 echo $ECHO_N "(cached) $ECHO_C" >&6
1956 else
1957 case "$XGETTEXT" in
1958 [\\/]* | ?:[\\/]*)
1959 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
1962 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
1963 for ac_dir in $PATH; do
1964 IFS="$ac_save_IFS"
1965 test -z "$ac_dir" && ac_dir=.
1966 for ac_exec_ext in '' $ac_executable_extensions; do
1967 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
1968 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
1969 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
1970 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
1971 break 2
1974 done
1975 done
1976 IFS="$ac_save_IFS"
1977 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
1979 esac
1981 XGETTEXT="$ac_cv_path_XGETTEXT"
1982 if test "$XGETTEXT" != ":"; then
1983 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
1984 echo "${ECHO_T}$XGETTEXT" >&6
1985 else
1986 echo "$as_me:$LINENO: result: no" >&5
1987 echo "${ECHO_T}no" >&6
1990 rm -f messages.po
1993 # Prepare PATH_SEPARATOR.
1994 # The user is always right.
1995 if test "${PATH_SEPARATOR+set}" != set; then
1996 echo "#! /bin/sh" >conf$$.sh
1997 echo "exit 0" >>conf$$.sh
1998 chmod +x conf$$.sh
1999 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2000 PATH_SEPARATOR=';'
2001 else
2002 PATH_SEPARATOR=:
2004 rm -f conf$$.sh
2007 # Find out how to test for executable files. Don't use a zero-byte file,
2008 # as systems may use methods other than mode bits to determine executability.
2009 cat >conf$$.file <<_ASEOF
2010 #! /bin/sh
2011 exit 0
2012 _ASEOF
2013 chmod +x conf$$.file
2014 if test -x conf$$.file >/dev/null 2>&1; then
2015 ac_executable_p="test -x"
2016 else
2017 ac_executable_p="test -f"
2019 rm -f conf$$.file
2021 # Extract the first word of "msgmerge", so it can be a program name with args.
2022 set dummy msgmerge; ac_word=$2
2023 echo "$as_me:$LINENO: checking for $ac_word" >&5
2024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2025 if test "${ac_cv_path_MSGMERGE+set}" = set; then
2026 echo $ECHO_N "(cached) $ECHO_C" >&6
2027 else
2028 case "$MSGMERGE" in
2029 [\\/]* | ?:[\\/]*)
2030 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
2033 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2034 for ac_dir in $PATH; do
2035 IFS="$ac_save_IFS"
2036 test -z "$ac_dir" && ac_dir=.
2037 for ac_exec_ext in '' $ac_executable_extensions; do
2038 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2039 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
2040 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
2041 break 2
2044 done
2045 done
2046 IFS="$ac_save_IFS"
2047 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
2049 esac
2051 MSGMERGE="$ac_cv_path_MSGMERGE"
2052 if test "$MSGMERGE" != ":"; then
2053 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
2054 echo "${ECHO_T}$MSGMERGE" >&6
2055 else
2056 echo "$as_me:$LINENO: result: no" >&5
2057 echo "${ECHO_T}no" >&6
2061 if test "$GMSGFMT" != ":"; then
2062 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
2063 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2065 else
2066 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
2067 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
2068 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
2069 GMSGFMT=":"
2073 if test "$XGETTEXT" != ":"; then
2074 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
2075 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2077 else
2078 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
2079 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
2080 XGETTEXT=":"
2082 rm -f messages.po
2085 ac_config_commands="$ac_config_commands default-1"
2089 if test "X$prefix" = "XNONE"; then
2090 acl_final_prefix="$ac_default_prefix"
2091 else
2092 acl_final_prefix="$prefix"
2094 if test "X$exec_prefix" = "XNONE"; then
2095 acl_final_exec_prefix='${prefix}'
2096 else
2097 acl_final_exec_prefix="$exec_prefix"
2099 acl_save_prefix="$prefix"
2100 prefix="$acl_final_prefix"
2101 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
2102 prefix="$acl_save_prefix"
2104 DEPDIR="${am__leading_dot}deps"
2106 ac_config_commands="$ac_config_commands depfiles"
2109 am_make=${MAKE-make}
2110 cat > confinc << 'END'
2111 am__doit:
2112 @echo done
2113 .PHONY: am__doit
2115 # If we don't find an include directive, just comment out the code.
2116 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2117 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2118 am__include="#"
2119 am__quote=
2120 _am_result=none
2121 # First try GNU make style include.
2122 echo "include confinc" > confmf
2123 # We grep out `Entering directory' and `Leaving directory'
2124 # messages which can occur if `w' ends up in MAKEFLAGS.
2125 # In particular we don't look at `^make:' because GNU make might
2126 # be invoked under some other name (usually "gmake"), in which
2127 # case it prints its new name instead of `make'.
2128 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2129 am__include=include
2130 am__quote=
2131 _am_result=GNU
2133 # Now try BSD make style include.
2134 if test "$am__include" = "#"; then
2135 echo '.include "confinc"' > confmf
2136 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2137 am__include=.include
2138 am__quote="\""
2139 _am_result=BSD
2144 echo "$as_me:$LINENO: result: $_am_result" >&5
2145 echo "${ECHO_T}$_am_result" >&6
2146 rm -f confinc confmf
2148 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2149 if test "${enable_dependency_tracking+set}" = set; then
2150 enableval="$enable_dependency_tracking"
2153 if test "x$enable_dependency_tracking" != xno; then
2154 am_depcomp="$ac_aux_dir/depcomp"
2155 AMDEPBACKSLASH='\'
2159 if test "x$enable_dependency_tracking" != xno; then
2160 AMDEP_TRUE=
2161 AMDEP_FALSE='#'
2162 else
2163 AMDEP_TRUE='#'
2164 AMDEP_FALSE=
2169 ac_ext=c
2170 ac_cpp='$CPP $CPPFLAGS'
2171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2174 if test -n "$ac_tool_prefix"; then
2175 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2176 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2177 echo "$as_me:$LINENO: checking for $ac_word" >&5
2178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2179 if test "${ac_cv_prog_CC+set}" = set; then
2180 echo $ECHO_N "(cached) $ECHO_C" >&6
2181 else
2182 if test -n "$CC"; then
2183 ac_cv_prog_CC="$CC" # Let the user override the test.
2184 else
2185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2186 for as_dir in $PATH
2188 IFS=$as_save_IFS
2189 test -z "$as_dir" && as_dir=.
2190 for ac_exec_ext in '' $ac_executable_extensions; do
2191 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2192 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2194 break 2
2196 done
2197 done
2201 CC=$ac_cv_prog_CC
2202 if test -n "$CC"; then
2203 echo "$as_me:$LINENO: result: $CC" >&5
2204 echo "${ECHO_T}$CC" >&6
2205 else
2206 echo "$as_me:$LINENO: result: no" >&5
2207 echo "${ECHO_T}no" >&6
2211 if test -z "$ac_cv_prog_CC"; then
2212 ac_ct_CC=$CC
2213 # Extract the first word of "gcc", so it can be a program name with args.
2214 set dummy gcc; ac_word=$2
2215 echo "$as_me:$LINENO: checking for $ac_word" >&5
2216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2217 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2218 echo $ECHO_N "(cached) $ECHO_C" >&6
2219 else
2220 if test -n "$ac_ct_CC"; then
2221 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2222 else
2223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2224 for as_dir in $PATH
2226 IFS=$as_save_IFS
2227 test -z "$as_dir" && as_dir=.
2228 for ac_exec_ext in '' $ac_executable_extensions; do
2229 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2230 ac_cv_prog_ac_ct_CC="gcc"
2231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2232 break 2
2234 done
2235 done
2239 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2240 if test -n "$ac_ct_CC"; then
2241 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2242 echo "${ECHO_T}$ac_ct_CC" >&6
2243 else
2244 echo "$as_me:$LINENO: result: no" >&5
2245 echo "${ECHO_T}no" >&6
2248 CC=$ac_ct_CC
2249 else
2250 CC="$ac_cv_prog_CC"
2253 if test -z "$CC"; then
2254 if test -n "$ac_tool_prefix"; then
2255 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2256 set dummy ${ac_tool_prefix}cc; ac_word=$2
2257 echo "$as_me:$LINENO: checking for $ac_word" >&5
2258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2259 if test "${ac_cv_prog_CC+set}" = set; then
2260 echo $ECHO_N "(cached) $ECHO_C" >&6
2261 else
2262 if test -n "$CC"; then
2263 ac_cv_prog_CC="$CC" # Let the user override the test.
2264 else
2265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2266 for as_dir in $PATH
2268 IFS=$as_save_IFS
2269 test -z "$as_dir" && as_dir=.
2270 for ac_exec_ext in '' $ac_executable_extensions; do
2271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2272 ac_cv_prog_CC="${ac_tool_prefix}cc"
2273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2274 break 2
2276 done
2277 done
2281 CC=$ac_cv_prog_CC
2282 if test -n "$CC"; then
2283 echo "$as_me:$LINENO: result: $CC" >&5
2284 echo "${ECHO_T}$CC" >&6
2285 else
2286 echo "$as_me:$LINENO: result: no" >&5
2287 echo "${ECHO_T}no" >&6
2291 if test -z "$ac_cv_prog_CC"; then
2292 ac_ct_CC=$CC
2293 # Extract the first word of "cc", so it can be a program name with args.
2294 set dummy cc; ac_word=$2
2295 echo "$as_me:$LINENO: checking for $ac_word" >&5
2296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2297 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2298 echo $ECHO_N "(cached) $ECHO_C" >&6
2299 else
2300 if test -n "$ac_ct_CC"; then
2301 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2302 else
2303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2304 for as_dir in $PATH
2306 IFS=$as_save_IFS
2307 test -z "$as_dir" && as_dir=.
2308 for ac_exec_ext in '' $ac_executable_extensions; do
2309 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2310 ac_cv_prog_ac_ct_CC="cc"
2311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2312 break 2
2314 done
2315 done
2319 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2320 if test -n "$ac_ct_CC"; then
2321 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2322 echo "${ECHO_T}$ac_ct_CC" >&6
2323 else
2324 echo "$as_me:$LINENO: result: no" >&5
2325 echo "${ECHO_T}no" >&6
2328 CC=$ac_ct_CC
2329 else
2330 CC="$ac_cv_prog_CC"
2334 if test -z "$CC"; then
2335 # Extract the first word of "cc", so it can be a program name with args.
2336 set dummy cc; ac_word=$2
2337 echo "$as_me:$LINENO: checking for $ac_word" >&5
2338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2339 if test "${ac_cv_prog_CC+set}" = set; then
2340 echo $ECHO_N "(cached) $ECHO_C" >&6
2341 else
2342 if test -n "$CC"; then
2343 ac_cv_prog_CC="$CC" # Let the user override the test.
2344 else
2345 ac_prog_rejected=no
2346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347 for as_dir in $PATH
2349 IFS=$as_save_IFS
2350 test -z "$as_dir" && as_dir=.
2351 for ac_exec_ext in '' $ac_executable_extensions; do
2352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2353 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2354 ac_prog_rejected=yes
2355 continue
2357 ac_cv_prog_CC="cc"
2358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2359 break 2
2361 done
2362 done
2364 if test $ac_prog_rejected = yes; then
2365 # We found a bogon in the path, so make sure we never use it.
2366 set dummy $ac_cv_prog_CC
2367 shift
2368 if test $# != 0; then
2369 # We chose a different compiler from the bogus one.
2370 # However, it has the same basename, so the bogon will be chosen
2371 # first if we set CC to just the basename; use the full file name.
2372 shift
2373 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2378 CC=$ac_cv_prog_CC
2379 if test -n "$CC"; then
2380 echo "$as_me:$LINENO: result: $CC" >&5
2381 echo "${ECHO_T}$CC" >&6
2382 else
2383 echo "$as_me:$LINENO: result: no" >&5
2384 echo "${ECHO_T}no" >&6
2388 if test -z "$CC"; then
2389 if test -n "$ac_tool_prefix"; then
2390 for ac_prog in cl
2392 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2393 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2394 echo "$as_me:$LINENO: checking for $ac_word" >&5
2395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2396 if test "${ac_cv_prog_CC+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
2398 else
2399 if test -n "$CC"; then
2400 ac_cv_prog_CC="$CC" # Let the user override the test.
2401 else
2402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403 for as_dir in $PATH
2405 IFS=$as_save_IFS
2406 test -z "$as_dir" && as_dir=.
2407 for ac_exec_ext in '' $ac_executable_extensions; do
2408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2409 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2411 break 2
2413 done
2414 done
2418 CC=$ac_cv_prog_CC
2419 if test -n "$CC"; then
2420 echo "$as_me:$LINENO: result: $CC" >&5
2421 echo "${ECHO_T}$CC" >&6
2422 else
2423 echo "$as_me:$LINENO: result: no" >&5
2424 echo "${ECHO_T}no" >&6
2427 test -n "$CC" && break
2428 done
2430 if test -z "$CC"; then
2431 ac_ct_CC=$CC
2432 for ac_prog in cl
2434 # Extract the first word of "$ac_prog", so it can be a program name with args.
2435 set dummy $ac_prog; ac_word=$2
2436 echo "$as_me:$LINENO: checking for $ac_word" >&5
2437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2438 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2439 echo $ECHO_N "(cached) $ECHO_C" >&6
2440 else
2441 if test -n "$ac_ct_CC"; then
2442 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2443 else
2444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445 for as_dir in $PATH
2447 IFS=$as_save_IFS
2448 test -z "$as_dir" && as_dir=.
2449 for ac_exec_ext in '' $ac_executable_extensions; do
2450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2451 ac_cv_prog_ac_ct_CC="$ac_prog"
2452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2453 break 2
2455 done
2456 done
2460 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2461 if test -n "$ac_ct_CC"; then
2462 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2463 echo "${ECHO_T}$ac_ct_CC" >&6
2464 else
2465 echo "$as_me:$LINENO: result: no" >&5
2466 echo "${ECHO_T}no" >&6
2469 test -n "$ac_ct_CC" && break
2470 done
2472 CC=$ac_ct_CC
2478 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2479 See \`config.log' for more details." >&5
2480 echo "$as_me: error: no acceptable C compiler found in \$PATH
2481 See \`config.log' for more details." >&2;}
2482 { (exit 1); exit 1; }; }
2484 # Provide some information about the compiler.
2485 echo "$as_me:$LINENO:" \
2486 "checking for C compiler version" >&5
2487 ac_compiler=`set X $ac_compile; echo $2`
2488 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2489 (eval $ac_compiler --version </dev/null >&5) 2>&5
2490 ac_status=$?
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); }
2493 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2494 (eval $ac_compiler -v </dev/null >&5) 2>&5
2495 ac_status=$?
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); }
2498 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2499 (eval $ac_compiler -V </dev/null >&5) 2>&5
2500 ac_status=$?
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); }
2504 cat >conftest.$ac_ext <<_ACEOF
2505 /* confdefs.h. */
2506 _ACEOF
2507 cat confdefs.h >>conftest.$ac_ext
2508 cat >>conftest.$ac_ext <<_ACEOF
2509 /* end confdefs.h. */
2512 main ()
2516 return 0;
2518 _ACEOF
2519 ac_clean_files_save=$ac_clean_files
2520 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2521 # Try to create an executable without -o first, disregard a.out.
2522 # It will help us diagnose broken compilers, and finding out an intuition
2523 # of exeext.
2524 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2525 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2526 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2527 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2528 (eval $ac_link_default) 2>&5
2529 ac_status=$?
2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531 (exit $ac_status); }; then
2532 # Find the output, starting from the most likely. This scheme is
2533 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2534 # resort.
2536 # Be careful to initialize this variable, since it used to be cached.
2537 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2538 ac_cv_exeext=
2539 # b.out is created by i960 compilers.
2540 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2542 test -f "$ac_file" || continue
2543 case $ac_file in
2544 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2546 conftest.$ac_ext )
2547 # This is the source file.
2549 [ab].out )
2550 # We found the default executable, but exeext='' is most
2551 # certainly right.
2552 break;;
2553 *.* )
2554 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2555 # FIXME: I believe we export ac_cv_exeext for Libtool,
2556 # but it would be cool to find out if it's true. Does anybody
2557 # maintain Libtool? --akim.
2558 export ac_cv_exeext
2559 break;;
2561 break;;
2562 esac
2563 done
2564 else
2565 echo "$as_me: failed program was:" >&5
2566 sed 's/^/| /' conftest.$ac_ext >&5
2568 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2569 See \`config.log' for more details." >&5
2570 echo "$as_me: error: C compiler cannot create executables
2571 See \`config.log' for more details." >&2;}
2572 { (exit 77); exit 77; }; }
2575 ac_exeext=$ac_cv_exeext
2576 echo "$as_me:$LINENO: result: $ac_file" >&5
2577 echo "${ECHO_T}$ac_file" >&6
2579 # Check the compiler produces executables we can run. If not, either
2580 # the compiler is broken, or we cross compile.
2581 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2582 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2583 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2584 # If not cross compiling, check that we can run a simple program.
2585 if test "$cross_compiling" != yes; then
2586 if { ac_try='./$ac_file'
2587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2588 (eval $ac_try) 2>&5
2589 ac_status=$?
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }; }; then
2592 cross_compiling=no
2593 else
2594 if test "$cross_compiling" = maybe; then
2595 cross_compiling=yes
2596 else
2597 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2598 If you meant to cross compile, use \`--host'.
2599 See \`config.log' for more details." >&5
2600 echo "$as_me: error: cannot run C compiled programs.
2601 If you meant to cross compile, use \`--host'.
2602 See \`config.log' for more details." >&2;}
2603 { (exit 1); exit 1; }; }
2607 echo "$as_me:$LINENO: result: yes" >&5
2608 echo "${ECHO_T}yes" >&6
2610 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2611 ac_clean_files=$ac_clean_files_save
2612 # Check the compiler produces executables we can run. If not, either
2613 # the compiler is broken, or we cross compile.
2614 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2615 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2616 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2617 echo "${ECHO_T}$cross_compiling" >&6
2619 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2620 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2622 (eval $ac_link) 2>&5
2623 ac_status=$?
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; then
2626 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2627 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2628 # work properly (i.e., refer to `conftest.exe'), while it won't with
2629 # `rm'.
2630 for ac_file in conftest.exe conftest conftest.*; do
2631 test -f "$ac_file" || continue
2632 case $ac_file in
2633 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2634 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2635 export ac_cv_exeext
2636 break;;
2637 * ) break;;
2638 esac
2639 done
2640 else
2641 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2642 See \`config.log' for more details." >&5
2643 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2644 See \`config.log' for more details." >&2;}
2645 { (exit 1); exit 1; }; }
2648 rm -f conftest$ac_cv_exeext
2649 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2650 echo "${ECHO_T}$ac_cv_exeext" >&6
2652 rm -f conftest.$ac_ext
2653 EXEEXT=$ac_cv_exeext
2654 ac_exeext=$EXEEXT
2655 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2656 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2657 if test "${ac_cv_objext+set}" = set; then
2658 echo $ECHO_N "(cached) $ECHO_C" >&6
2659 else
2660 cat >conftest.$ac_ext <<_ACEOF
2661 /* confdefs.h. */
2662 _ACEOF
2663 cat confdefs.h >>conftest.$ac_ext
2664 cat >>conftest.$ac_ext <<_ACEOF
2665 /* end confdefs.h. */
2668 main ()
2672 return 0;
2674 _ACEOF
2675 rm -f conftest.o conftest.obj
2676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2677 (eval $ac_compile) 2>&5
2678 ac_status=$?
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); }; then
2681 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2682 case $ac_file in
2683 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2684 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2685 break;;
2686 esac
2687 done
2688 else
2689 echo "$as_me: failed program was:" >&5
2690 sed 's/^/| /' conftest.$ac_ext >&5
2692 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2693 See \`config.log' for more details." >&5
2694 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2695 See \`config.log' for more details." >&2;}
2696 { (exit 1); exit 1; }; }
2699 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2701 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2702 echo "${ECHO_T}$ac_cv_objext" >&6
2703 OBJEXT=$ac_cv_objext
2704 ac_objext=$OBJEXT
2705 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2706 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2707 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2708 echo $ECHO_N "(cached) $ECHO_C" >&6
2709 else
2710 cat >conftest.$ac_ext <<_ACEOF
2711 /* confdefs.h. */
2712 _ACEOF
2713 cat confdefs.h >>conftest.$ac_ext
2714 cat >>conftest.$ac_ext <<_ACEOF
2715 /* end confdefs.h. */
2718 main ()
2720 #ifndef __GNUC__
2721 choke me
2722 #endif
2725 return 0;
2727 _ACEOF
2728 rm -f conftest.$ac_objext
2729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2730 (eval $ac_compile) 2>conftest.er1
2731 ac_status=$?
2732 grep -v '^ *+' conftest.er1 >conftest.err
2733 rm -f conftest.er1
2734 cat conftest.err >&5
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); } &&
2737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2739 (eval $ac_try) 2>&5
2740 ac_status=$?
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); }; } &&
2743 { ac_try='test -s conftest.$ac_objext'
2744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745 (eval $ac_try) 2>&5
2746 ac_status=$?
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); }; }; then
2749 ac_compiler_gnu=yes
2750 else
2751 echo "$as_me: failed program was:" >&5
2752 sed 's/^/| /' conftest.$ac_ext >&5
2754 ac_compiler_gnu=no
2756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2757 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2760 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2761 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2762 GCC=`test $ac_compiler_gnu = yes && echo yes`
2763 ac_test_CFLAGS=${CFLAGS+set}
2764 ac_save_CFLAGS=$CFLAGS
2765 CFLAGS="-g"
2766 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2767 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2768 if test "${ac_cv_prog_cc_g+set}" = set; then
2769 echo $ECHO_N "(cached) $ECHO_C" >&6
2770 else
2771 cat >conftest.$ac_ext <<_ACEOF
2772 /* confdefs.h. */
2773 _ACEOF
2774 cat confdefs.h >>conftest.$ac_ext
2775 cat >>conftest.$ac_ext <<_ACEOF
2776 /* end confdefs.h. */
2779 main ()
2783 return 0;
2785 _ACEOF
2786 rm -f conftest.$ac_objext
2787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2788 (eval $ac_compile) 2>conftest.er1
2789 ac_status=$?
2790 grep -v '^ *+' conftest.er1 >conftest.err
2791 rm -f conftest.er1
2792 cat conftest.err >&5
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); } &&
2795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797 (eval $ac_try) 2>&5
2798 ac_status=$?
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); }; } &&
2801 { ac_try='test -s conftest.$ac_objext'
2802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2803 (eval $ac_try) 2>&5
2804 ac_status=$?
2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); }; }; then
2807 ac_cv_prog_cc_g=yes
2808 else
2809 echo "$as_me: failed program was:" >&5
2810 sed 's/^/| /' conftest.$ac_ext >&5
2812 ac_cv_prog_cc_g=no
2814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2816 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2817 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2818 if test "$ac_test_CFLAGS" = set; then
2819 CFLAGS=$ac_save_CFLAGS
2820 elif test $ac_cv_prog_cc_g = yes; then
2821 if test "$GCC" = yes; then
2822 CFLAGS="-g -O2"
2823 else
2824 CFLAGS="-g"
2826 else
2827 if test "$GCC" = yes; then
2828 CFLAGS="-O2"
2829 else
2830 CFLAGS=
2833 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2834 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2835 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2836 echo $ECHO_N "(cached) $ECHO_C" >&6
2837 else
2838 ac_cv_prog_cc_stdc=no
2839 ac_save_CC=$CC
2840 cat >conftest.$ac_ext <<_ACEOF
2841 /* confdefs.h. */
2842 _ACEOF
2843 cat confdefs.h >>conftest.$ac_ext
2844 cat >>conftest.$ac_ext <<_ACEOF
2845 /* end confdefs.h. */
2846 #include <stdarg.h>
2847 #include <stdio.h>
2848 #include <sys/types.h>
2849 #include <sys/stat.h>
2850 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2851 struct buf { int x; };
2852 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2853 static char *e (p, i)
2854 char **p;
2855 int i;
2857 return p[i];
2859 static char *f (char * (*g) (char **, int), char **p, ...)
2861 char *s;
2862 va_list v;
2863 va_start (v,p);
2864 s = g (p, va_arg (v,int));
2865 va_end (v);
2866 return s;
2869 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2870 function prototypes and stuff, but not '\xHH' hex character constants.
2871 These don't provoke an error unfortunately, instead are silently treated
2872 as 'x'. The following induces an error, until -std1 is added to get
2873 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2874 array size at least. It's necessary to write '\x00'==0 to get something
2875 that's true only with -std1. */
2876 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2878 int test (int i, double x);
2879 struct s1 {int (*f) (int a);};
2880 struct s2 {int (*f) (double a);};
2881 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2882 int argc;
2883 char **argv;
2885 main ()
2887 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2889 return 0;
2891 _ACEOF
2892 # Don't try gcc -ansi; that turns off useful extensions and
2893 # breaks some systems' header files.
2894 # AIX -qlanglvl=ansi
2895 # Ultrix and OSF/1 -std1
2896 # HP-UX 10.20 and later -Ae
2897 # HP-UX older versions -Aa -D_HPUX_SOURCE
2898 # SVR4 -Xc -D__EXTENSIONS__
2899 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2901 CC="$ac_save_CC $ac_arg"
2902 rm -f conftest.$ac_objext
2903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2904 (eval $ac_compile) 2>conftest.er1
2905 ac_status=$?
2906 grep -v '^ *+' conftest.er1 >conftest.err
2907 rm -f conftest.er1
2908 cat conftest.err >&5
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); } &&
2911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2913 (eval $ac_try) 2>&5
2914 ac_status=$?
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); }; } &&
2917 { ac_try='test -s conftest.$ac_objext'
2918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2919 (eval $ac_try) 2>&5
2920 ac_status=$?
2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); }; }; then
2923 ac_cv_prog_cc_stdc=$ac_arg
2924 break
2925 else
2926 echo "$as_me: failed program was:" >&5
2927 sed 's/^/| /' conftest.$ac_ext >&5
2930 rm -f conftest.err conftest.$ac_objext
2931 done
2932 rm -f conftest.$ac_ext conftest.$ac_objext
2933 CC=$ac_save_CC
2937 case "x$ac_cv_prog_cc_stdc" in
2938 x|xno)
2939 echo "$as_me:$LINENO: result: none needed" >&5
2940 echo "${ECHO_T}none needed" >&6 ;;
2942 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2943 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2944 CC="$CC $ac_cv_prog_cc_stdc" ;;
2945 esac
2947 # Some people use a C++ compiler to compile C. Since we use `exit',
2948 # in C++ we need to declare it. In case someone uses the same compiler
2949 # for both compiling C and C++ we need to have the C++ compiler decide
2950 # the declaration of exit, since it's the most demanding environment.
2951 cat >conftest.$ac_ext <<_ACEOF
2952 #ifndef __cplusplus
2953 choke me
2954 #endif
2955 _ACEOF
2956 rm -f conftest.$ac_objext
2957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2958 (eval $ac_compile) 2>conftest.er1
2959 ac_status=$?
2960 grep -v '^ *+' conftest.er1 >conftest.err
2961 rm -f conftest.er1
2962 cat conftest.err >&5
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); } &&
2965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2967 (eval $ac_try) 2>&5
2968 ac_status=$?
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); }; } &&
2971 { ac_try='test -s conftest.$ac_objext'
2972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2973 (eval $ac_try) 2>&5
2974 ac_status=$?
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); }; }; then
2977 for ac_declaration in \
2978 '' \
2979 'extern "C" void std::exit (int) throw (); using std::exit;' \
2980 'extern "C" void std::exit (int); using std::exit;' \
2981 'extern "C" void exit (int) throw ();' \
2982 'extern "C" void exit (int);' \
2983 'void exit (int);'
2985 cat >conftest.$ac_ext <<_ACEOF
2986 /* confdefs.h. */
2987 _ACEOF
2988 cat confdefs.h >>conftest.$ac_ext
2989 cat >>conftest.$ac_ext <<_ACEOF
2990 /* end confdefs.h. */
2991 $ac_declaration
2992 #include <stdlib.h>
2994 main ()
2996 exit (42);
2998 return 0;
3000 _ACEOF
3001 rm -f conftest.$ac_objext
3002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3003 (eval $ac_compile) 2>conftest.er1
3004 ac_status=$?
3005 grep -v '^ *+' conftest.er1 >conftest.err
3006 rm -f conftest.er1
3007 cat conftest.err >&5
3008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 (exit $ac_status); } &&
3010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3012 (eval $ac_try) 2>&5
3013 ac_status=$?
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); }; } &&
3016 { ac_try='test -s conftest.$ac_objext'
3017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3018 (eval $ac_try) 2>&5
3019 ac_status=$?
3020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021 (exit $ac_status); }; }; then
3023 else
3024 echo "$as_me: failed program was:" >&5
3025 sed 's/^/| /' conftest.$ac_ext >&5
3027 continue
3029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3030 cat >conftest.$ac_ext <<_ACEOF
3031 /* confdefs.h. */
3032 _ACEOF
3033 cat confdefs.h >>conftest.$ac_ext
3034 cat >>conftest.$ac_ext <<_ACEOF
3035 /* end confdefs.h. */
3036 $ac_declaration
3038 main ()
3040 exit (42);
3042 return 0;
3044 _ACEOF
3045 rm -f conftest.$ac_objext
3046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3047 (eval $ac_compile) 2>conftest.er1
3048 ac_status=$?
3049 grep -v '^ *+' conftest.er1 >conftest.err
3050 rm -f conftest.er1
3051 cat conftest.err >&5
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); } &&
3054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3056 (eval $ac_try) 2>&5
3057 ac_status=$?
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); }; } &&
3060 { ac_try='test -s conftest.$ac_objext'
3061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3062 (eval $ac_try) 2>&5
3063 ac_status=$?
3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 (exit $ac_status); }; }; then
3066 break
3067 else
3068 echo "$as_me: failed program was:" >&5
3069 sed 's/^/| /' conftest.$ac_ext >&5
3072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3073 done
3074 rm -f conftest*
3075 if test -n "$ac_declaration"; then
3076 echo '#ifdef __cplusplus' >>confdefs.h
3077 echo $ac_declaration >>confdefs.h
3078 echo '#endif' >>confdefs.h
3081 else
3082 echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3087 ac_ext=c
3088 ac_cpp='$CPP $CPPFLAGS'
3089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3093 depcc="$CC" am_compiler_list=
3095 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3096 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3097 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3098 echo $ECHO_N "(cached) $ECHO_C" >&6
3099 else
3100 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3101 # We make a subdir and do the tests there. Otherwise we can end up
3102 # making bogus files that we don't know about and never remove. For
3103 # instance it was reported that on HP-UX the gcc test will end up
3104 # making a dummy file named `D' -- because `-MD' means `put the output
3105 # in D'.
3106 mkdir conftest.dir
3107 # Copy depcomp to subdir because otherwise we won't find it if we're
3108 # using a relative directory.
3109 cp "$am_depcomp" conftest.dir
3110 cd conftest.dir
3111 # We will build objects and dependencies in a subdirectory because
3112 # it helps to detect inapplicable dependency modes. For instance
3113 # both Tru64's cc and ICC support -MD to output dependencies as a
3114 # side effect of compilation, but ICC will put the dependencies in
3115 # the current directory while Tru64 will put them in the object
3116 # directory.
3117 mkdir sub
3119 am_cv_CC_dependencies_compiler_type=none
3120 if test "$am_compiler_list" = ""; then
3121 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3123 for depmode in $am_compiler_list; do
3124 # Setup a source with many dependencies, because some compilers
3125 # like to wrap large dependency lists on column 80 (with \), and
3126 # we should not choose a depcomp mode which is confused by this.
3128 # We need to recreate these files for each test, as the compiler may
3129 # overwrite some of them when testing with obscure command lines.
3130 # This happens at least with the AIX C compiler.
3131 : > sub/conftest.c
3132 for i in 1 2 3 4 5 6; do
3133 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3134 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3135 # Solaris 8's {/usr,}/bin/sh.
3136 touch sub/conftst$i.h
3137 done
3138 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3140 case $depmode in
3141 nosideeffect)
3142 # after this tag, mechanisms are not by side-effect, so they'll
3143 # only be used when explicitly requested
3144 if test "x$enable_dependency_tracking" = xyes; then
3145 continue
3146 else
3147 break
3150 none) break ;;
3151 esac
3152 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3153 # mode. It turns out that the SunPro C++ compiler does not properly
3154 # handle `-M -o', and we need to detect this.
3155 if depmode=$depmode \
3156 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3157 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3158 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3159 >/dev/null 2>conftest.err &&
3160 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3161 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3162 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3163 # icc doesn't choke on unknown options, it will just issue warnings
3164 # or remarks (even with -Werror). So we grep stderr for any message
3165 # that says an option was ignored or not supported.
3166 # When given -MP, icc 7.0 and 7.1 complain thusly:
3167 # icc: Command line warning: ignoring option '-M'; no argument required
3168 # The diagnosis changed in icc 8.0:
3169 # icc: Command line remark: option '-MP' not supported
3170 if (grep 'ignoring option' conftest.err ||
3171 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3172 am_cv_CC_dependencies_compiler_type=$depmode
3173 break
3176 done
3178 cd ..
3179 rm -rf conftest.dir
3180 else
3181 am_cv_CC_dependencies_compiler_type=none
3185 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3186 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3187 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3192 test "x$enable_dependency_tracking" != xno \
3193 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3194 am__fastdepCC_TRUE=
3195 am__fastdepCC_FALSE='#'
3196 else
3197 am__fastdepCC_TRUE='#'
3198 am__fastdepCC_FALSE=
3202 # Make sure we can run config.sub.
3203 $ac_config_sub sun4 >/dev/null 2>&1 ||
3204 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3205 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3206 { (exit 1); exit 1; }; }
3208 echo "$as_me:$LINENO: checking build system type" >&5
3209 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3210 if test "${ac_cv_build+set}" = set; then
3211 echo $ECHO_N "(cached) $ECHO_C" >&6
3212 else
3213 ac_cv_build_alias=$build_alias
3214 test -z "$ac_cv_build_alias" &&
3215 ac_cv_build_alias=`$ac_config_guess`
3216 test -z "$ac_cv_build_alias" &&
3217 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3218 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3219 { (exit 1); exit 1; }; }
3220 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3221 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3222 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3223 { (exit 1); exit 1; }; }
3226 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3227 echo "${ECHO_T}$ac_cv_build" >&6
3228 build=$ac_cv_build
3229 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3230 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3231 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3234 echo "$as_me:$LINENO: checking host system type" >&5
3235 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3236 if test "${ac_cv_host+set}" = set; then
3237 echo $ECHO_N "(cached) $ECHO_C" >&6
3238 else
3239 ac_cv_host_alias=$host_alias
3240 test -z "$ac_cv_host_alias" &&
3241 ac_cv_host_alias=$ac_cv_build_alias
3242 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3243 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3244 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3245 { (exit 1); exit 1; }; }
3248 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3249 echo "${ECHO_T}$ac_cv_host" >&6
3250 host=$ac_cv_host
3251 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3252 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3253 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3257 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3258 if test "${with_gnu_ld+set}" = set; then
3259 withval="$with_gnu_ld"
3260 test "$withval" = no || with_gnu_ld=yes
3261 else
3262 with_gnu_ld=no
3264 # Prepare PATH_SEPARATOR.
3265 # The user is always right.
3266 if test "${PATH_SEPARATOR+set}" != set; then
3267 echo "#! /bin/sh" >conf$$.sh
3268 echo "exit 0" >>conf$$.sh
3269 chmod +x conf$$.sh
3270 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3271 PATH_SEPARATOR=';'
3272 else
3273 PATH_SEPARATOR=:
3275 rm -f conf$$.sh
3277 ac_prog=ld
3278 if test "$GCC" = yes; then
3279 # Check if gcc -print-prog-name=ld gives a path.
3280 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3281 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3282 case $host in
3283 *-*-mingw*)
3284 # gcc leaves a trailing carriage return which upsets mingw
3285 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3287 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3288 esac
3289 case $ac_prog in
3290 # Accept absolute paths.
3291 [\\/]* | [A-Za-z]:[\\/]*)
3292 re_direlt='/[^/][^/]*/\.\./'
3293 # Canonicalize the path of ld
3294 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3295 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3296 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3297 done
3298 test -z "$LD" && LD="$ac_prog"
3301 # If it fails, then pretend we aren't using GCC.
3302 ac_prog=ld
3305 # If it is relative, then search for the first ld in PATH.
3306 with_gnu_ld=unknown
3308 esac
3309 elif test "$with_gnu_ld" = yes; then
3310 echo "$as_me:$LINENO: checking for GNU ld" >&5
3311 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3312 else
3313 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3314 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3316 if test "${acl_cv_path_LD+set}" = set; then
3317 echo $ECHO_N "(cached) $ECHO_C" >&6
3318 else
3319 if test -z "$LD"; then
3320 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3321 for ac_dir in $PATH; do
3322 test -z "$ac_dir" && ac_dir=.
3323 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3324 acl_cv_path_LD="$ac_dir/$ac_prog"
3325 # Check to see if the program is GNU ld. I'd rather use --version,
3326 # but apparently some GNU ld's only accept -v.
3327 # Break only if it was the GNU/non-GNU ld that we prefer.
3328 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3329 test "$with_gnu_ld" != no && break
3330 else
3331 test "$with_gnu_ld" != yes && break
3334 done
3335 IFS="$ac_save_ifs"
3336 else
3337 acl_cv_path_LD="$LD" # Let the user override the test with a path.
3341 LD="$acl_cv_path_LD"
3342 if test -n "$LD"; then
3343 echo "$as_me:$LINENO: result: $LD" >&5
3344 echo "${ECHO_T}$LD" >&6
3345 else
3346 echo "$as_me:$LINENO: result: no" >&5
3347 echo "${ECHO_T}no" >&6
3349 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3350 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3351 { (exit 1); exit 1; }; }
3352 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3353 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3354 if test "${acl_cv_prog_gnu_ld+set}" = set; then
3355 echo $ECHO_N "(cached) $ECHO_C" >&6
3356 else
3357 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3358 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3359 acl_cv_prog_gnu_ld=yes
3360 else
3361 acl_cv_prog_gnu_ld=no
3364 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
3365 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
3366 with_gnu_ld=$acl_cv_prog_gnu_ld
3370 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
3371 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
3372 if test "${acl_cv_rpath+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3374 else
3376 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
3377 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
3378 . ./conftest.sh
3379 rm -f ./conftest.sh
3380 acl_cv_rpath=done
3383 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
3384 echo "${ECHO_T}$acl_cv_rpath" >&6
3385 wl="$acl_cv_wl"
3386 libext="$acl_cv_libext"
3387 shlibext="$acl_cv_shlibext"
3388 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
3389 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
3390 hardcode_direct="$acl_cv_hardcode_direct"
3391 hardcode_minus_L="$acl_cv_hardcode_minus_L"
3392 # Check whether --enable-rpath or --disable-rpath was given.
3393 if test "${enable_rpath+set}" = set; then
3394 enableval="$enable_rpath"
3396 else
3397 enable_rpath=yes
3406 use_additional=yes
3408 acl_save_prefix="$prefix"
3409 prefix="$acl_final_prefix"
3410 acl_save_exec_prefix="$exec_prefix"
3411 exec_prefix="$acl_final_exec_prefix"
3413 eval additional_includedir=\"$includedir\"
3414 eval additional_libdir=\"$libdir\"
3416 exec_prefix="$acl_save_exec_prefix"
3417 prefix="$acl_save_prefix"
3420 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
3421 if test "${with_libiconv_prefix+set}" = set; then
3422 withval="$with_libiconv_prefix"
3424 if test "X$withval" = "Xno"; then
3425 use_additional=no
3426 else
3427 if test "X$withval" = "X"; then
3429 acl_save_prefix="$prefix"
3430 prefix="$acl_final_prefix"
3431 acl_save_exec_prefix="$exec_prefix"
3432 exec_prefix="$acl_final_exec_prefix"
3434 eval additional_includedir=\"$includedir\"
3435 eval additional_libdir=\"$libdir\"
3437 exec_prefix="$acl_save_exec_prefix"
3438 prefix="$acl_save_prefix"
3440 else
3441 additional_includedir="$withval/include"
3442 additional_libdir="$withval/lib"
3447 LIBICONV=
3448 LTLIBICONV=
3449 INCICONV=
3450 rpathdirs=
3451 ltrpathdirs=
3452 names_already_handled=
3453 names_next_round='iconv '
3454 while test -n "$names_next_round"; do
3455 names_this_round="$names_next_round"
3456 names_next_round=
3457 for name in $names_this_round; do
3458 already_handled=
3459 for n in $names_already_handled; do
3460 if test "$n" = "$name"; then
3461 already_handled=yes
3462 break
3464 done
3465 if test -z "$already_handled"; then
3466 names_already_handled="$names_already_handled $name"
3467 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
3468 eval value=\"\$HAVE_LIB$uppername\"
3469 if test -n "$value"; then
3470 if test "$value" = yes; then
3471 eval value=\"\$LIB$uppername\"
3472 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
3473 eval value=\"\$LTLIB$uppername\"
3474 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
3475 else
3478 else
3479 found_dir=
3480 found_la=
3481 found_so=
3482 found_a=
3483 if test $use_additional = yes; then
3484 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
3485 found_dir="$additional_libdir"
3486 found_so="$additional_libdir/lib$name.$shlibext"
3487 if test -f "$additional_libdir/lib$name.la"; then
3488 found_la="$additional_libdir/lib$name.la"
3490 else
3491 if test -f "$additional_libdir/lib$name.$libext"; then
3492 found_dir="$additional_libdir"
3493 found_a="$additional_libdir/lib$name.$libext"
3494 if test -f "$additional_libdir/lib$name.la"; then
3495 found_la="$additional_libdir/lib$name.la"
3500 if test "X$found_dir" = "X"; then
3501 for x in $LDFLAGS $LTLIBICONV; do
3503 acl_save_prefix="$prefix"
3504 prefix="$acl_final_prefix"
3505 acl_save_exec_prefix="$exec_prefix"
3506 exec_prefix="$acl_final_exec_prefix"
3507 eval x=\"$x\"
3508 exec_prefix="$acl_save_exec_prefix"
3509 prefix="$acl_save_prefix"
3511 case "$x" in
3512 -L*)
3513 dir=`echo "X$x" | sed -e 's/^X-L//'`
3514 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
3515 found_dir="$dir"
3516 found_so="$dir/lib$name.$shlibext"
3517 if test -f "$dir/lib$name.la"; then
3518 found_la="$dir/lib$name.la"
3520 else
3521 if test -f "$dir/lib$name.$libext"; then
3522 found_dir="$dir"
3523 found_a="$dir/lib$name.$libext"
3524 if test -f "$dir/lib$name.la"; then
3525 found_la="$dir/lib$name.la"
3530 esac
3531 if test "X$found_dir" != "X"; then
3532 break
3534 done
3536 if test "X$found_dir" != "X"; then
3537 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
3538 if test "X$found_so" != "X"; then
3539 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
3540 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3541 else
3542 haveit=
3543 for x in $ltrpathdirs; do
3544 if test "X$x" = "X$found_dir"; then
3545 haveit=yes
3546 break
3548 done
3549 if test -z "$haveit"; then
3550 ltrpathdirs="$ltrpathdirs $found_dir"
3552 if test "$hardcode_direct" = yes; then
3553 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3554 else
3555 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
3556 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3557 haveit=
3558 for x in $rpathdirs; do
3559 if test "X$x" = "X$found_dir"; then
3560 haveit=yes
3561 break
3563 done
3564 if test -z "$haveit"; then
3565 rpathdirs="$rpathdirs $found_dir"
3567 else
3568 haveit=
3569 for x in $LDFLAGS $LIBICONV; do
3571 acl_save_prefix="$prefix"
3572 prefix="$acl_final_prefix"
3573 acl_save_exec_prefix="$exec_prefix"
3574 exec_prefix="$acl_final_exec_prefix"
3575 eval x=\"$x\"
3576 exec_prefix="$acl_save_exec_prefix"
3577 prefix="$acl_save_prefix"
3579 if test "X$x" = "X-L$found_dir"; then
3580 haveit=yes
3581 break
3583 done
3584 if test -z "$haveit"; then
3585 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
3587 if test "$hardcode_minus_L" != no; then
3588 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3589 else
3590 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
3595 else
3596 if test "X$found_a" != "X"; then
3597 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
3598 else
3599 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
3602 additional_includedir=
3603 case "$found_dir" in
3604 */lib | */lib/)
3605 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
3606 additional_includedir="$basedir/include"
3608 esac
3609 if test "X$additional_includedir" != "X"; then
3610 if test "X$additional_includedir" != "X/usr/include"; then
3611 haveit=
3612 if test "X$additional_includedir" = "X/usr/local/include"; then
3613 if test -n "$GCC"; then
3614 case $host_os in
3615 linux*) haveit=yes;;
3616 esac
3619 if test -z "$haveit"; then
3620 for x in $CPPFLAGS $INCICONV; do
3622 acl_save_prefix="$prefix"
3623 prefix="$acl_final_prefix"
3624 acl_save_exec_prefix="$exec_prefix"
3625 exec_prefix="$acl_final_exec_prefix"
3626 eval x=\"$x\"
3627 exec_prefix="$acl_save_exec_prefix"
3628 prefix="$acl_save_prefix"
3630 if test "X$x" = "X-I$additional_includedir"; then
3631 haveit=yes
3632 break
3634 done
3635 if test -z "$haveit"; then
3636 if test -d "$additional_includedir"; then
3637 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
3643 if test -n "$found_la"; then
3644 save_libdir="$libdir"
3645 case "$found_la" in
3646 */* | *\\*) . "$found_la" ;;
3647 *) . "./$found_la" ;;
3648 esac
3649 libdir="$save_libdir"
3650 for dep in $dependency_libs; do
3651 case "$dep" in
3652 -L*)
3653 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
3654 if test "X$additional_libdir" != "X/usr/lib"; then
3655 haveit=
3656 if test "X$additional_libdir" = "X/usr/local/lib"; then
3657 if test -n "$GCC"; then
3658 case $host_os in
3659 linux*) haveit=yes;;
3660 esac
3663 if test -z "$haveit"; then
3664 haveit=
3665 for x in $LDFLAGS $LIBICONV; do
3667 acl_save_prefix="$prefix"
3668 prefix="$acl_final_prefix"
3669 acl_save_exec_prefix="$exec_prefix"
3670 exec_prefix="$acl_final_exec_prefix"
3671 eval x=\"$x\"
3672 exec_prefix="$acl_save_exec_prefix"
3673 prefix="$acl_save_prefix"
3675 if test "X$x" = "X-L$additional_libdir"; then
3676 haveit=yes
3677 break
3679 done
3680 if test -z "$haveit"; then
3681 if test -d "$additional_libdir"; then
3682 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
3685 haveit=
3686 for x in $LDFLAGS $LTLIBICONV; do
3688 acl_save_prefix="$prefix"
3689 prefix="$acl_final_prefix"
3690 acl_save_exec_prefix="$exec_prefix"
3691 exec_prefix="$acl_final_exec_prefix"
3692 eval x=\"$x\"
3693 exec_prefix="$acl_save_exec_prefix"
3694 prefix="$acl_save_prefix"
3696 if test "X$x" = "X-L$additional_libdir"; then
3697 haveit=yes
3698 break
3700 done
3701 if test -z "$haveit"; then
3702 if test -d "$additional_libdir"; then
3703 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
3709 -R*)
3710 dir=`echo "X$dep" | sed -e 's/^X-R//'`
3711 if test "$enable_rpath" != no; then
3712 haveit=
3713 for x in $rpathdirs; do
3714 if test "X$x" = "X$dir"; then
3715 haveit=yes
3716 break
3718 done
3719 if test -z "$haveit"; then
3720 rpathdirs="$rpathdirs $dir"
3722 haveit=
3723 for x in $ltrpathdirs; do
3724 if test "X$x" = "X$dir"; then
3725 haveit=yes
3726 break
3728 done
3729 if test -z "$haveit"; then
3730 ltrpathdirs="$ltrpathdirs $dir"
3734 -l*)
3735 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
3737 *.la)
3738 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
3741 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
3742 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
3744 esac
3745 done
3747 else
3748 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
3749 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
3753 done
3754 done
3755 if test "X$rpathdirs" != "X"; then
3756 if test -n "$hardcode_libdir_separator"; then
3757 alldirs=
3758 for found_dir in $rpathdirs; do
3759 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
3760 done
3761 acl_save_libdir="$libdir"
3762 libdir="$alldirs"
3763 eval flag=\"$hardcode_libdir_flag_spec\"
3764 libdir="$acl_save_libdir"
3765 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
3766 else
3767 for found_dir in $rpathdirs; do
3768 acl_save_libdir="$libdir"
3769 libdir="$found_dir"
3770 eval flag=\"$hardcode_libdir_flag_spec\"
3771 libdir="$acl_save_libdir"
3772 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
3773 done
3776 if test "X$ltrpathdirs" != "X"; then
3777 for found_dir in $ltrpathdirs; do
3778 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
3779 done
3800 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3801 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3802 # Check whether --enable-nls or --disable-nls was given.
3803 if test "${enable_nls+set}" = set; then
3804 enableval="$enable_nls"
3805 USE_NLS=$enableval
3806 else
3807 USE_NLS=yes
3809 echo "$as_me:$LINENO: result: $USE_NLS" >&5
3810 echo "${ECHO_T}$USE_NLS" >&6
3815 LIBINTL=
3816 LTLIBINTL=
3817 POSUB=
3819 if test "$USE_NLS" = "yes"; then
3820 gt_use_preinstalled_gnugettext=no
3827 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
3828 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
3829 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
3830 echo $ECHO_N "(cached) $ECHO_C" >&6
3831 else
3832 cat >conftest.$ac_ext <<_ACEOF
3833 /* confdefs.h. */
3834 _ACEOF
3835 cat confdefs.h >>conftest.$ac_ext
3836 cat >>conftest.$ac_ext <<_ACEOF
3837 /* end confdefs.h. */
3838 #include <libintl.h>
3839 extern int _nl_msg_cat_cntr;
3840 extern int *_nl_domain_bindings;
3842 main ()
3844 bindtextdomain ("", "");
3845 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
3847 return 0;
3849 _ACEOF
3850 rm -f conftest.$ac_objext conftest$ac_exeext
3851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3852 (eval $ac_link) 2>conftest.er1
3853 ac_status=$?
3854 grep -v '^ *+' conftest.er1 >conftest.err
3855 rm -f conftest.er1
3856 cat conftest.err >&5
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); } &&
3859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3861 (eval $ac_try) 2>&5
3862 ac_status=$?
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); }; } &&
3865 { ac_try='test -s conftest$ac_exeext'
3866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3867 (eval $ac_try) 2>&5
3868 ac_status=$?
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); }; }; then
3871 gt_cv_func_gnugettext1_libc=yes
3872 else
3873 echo "$as_me: failed program was:" >&5
3874 sed 's/^/| /' conftest.$ac_ext >&5
3876 gt_cv_func_gnugettext1_libc=no
3878 rm -f conftest.err conftest.$ac_objext \
3879 conftest$ac_exeext conftest.$ac_ext
3881 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
3882 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
3884 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
3890 am_save_CPPFLAGS="$CPPFLAGS"
3892 for element in $INCICONV; do
3893 haveit=
3894 for x in $CPPFLAGS; do
3896 acl_save_prefix="$prefix"
3897 prefix="$acl_final_prefix"
3898 acl_save_exec_prefix="$exec_prefix"
3899 exec_prefix="$acl_final_exec_prefix"
3900 eval x=\"$x\"
3901 exec_prefix="$acl_save_exec_prefix"
3902 prefix="$acl_save_prefix"
3904 if test "X$x" = "X$element"; then
3905 haveit=yes
3906 break
3908 done
3909 if test -z "$haveit"; then
3910 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
3912 done
3915 echo "$as_me:$LINENO: checking for iconv" >&5
3916 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
3917 if test "${am_cv_func_iconv+set}" = set; then
3918 echo $ECHO_N "(cached) $ECHO_C" >&6
3919 else
3921 am_cv_func_iconv="no, consider installing GNU libiconv"
3922 am_cv_lib_iconv=no
3923 cat >conftest.$ac_ext <<_ACEOF
3924 /* confdefs.h. */
3925 _ACEOF
3926 cat confdefs.h >>conftest.$ac_ext
3927 cat >>conftest.$ac_ext <<_ACEOF
3928 /* end confdefs.h. */
3929 #include <stdlib.h>
3930 #include <iconv.h>
3932 main ()
3934 iconv_t cd = iconv_open("","");
3935 iconv(cd,NULL,NULL,NULL,NULL);
3936 iconv_close(cd);
3938 return 0;
3940 _ACEOF
3941 rm -f conftest.$ac_objext conftest$ac_exeext
3942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3943 (eval $ac_link) 2>conftest.er1
3944 ac_status=$?
3945 grep -v '^ *+' conftest.er1 >conftest.err
3946 rm -f conftest.er1
3947 cat conftest.err >&5
3948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949 (exit $ac_status); } &&
3950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3952 (eval $ac_try) 2>&5
3953 ac_status=$?
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); }; } &&
3956 { ac_try='test -s conftest$ac_exeext'
3957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3958 (eval $ac_try) 2>&5
3959 ac_status=$?
3960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 (exit $ac_status); }; }; then
3962 am_cv_func_iconv=yes
3963 else
3964 echo "$as_me: failed program was:" >&5
3965 sed 's/^/| /' conftest.$ac_ext >&5
3968 rm -f conftest.err conftest.$ac_objext \
3969 conftest$ac_exeext conftest.$ac_ext
3970 if test "$am_cv_func_iconv" != yes; then
3971 am_save_LIBS="$LIBS"
3972 LIBS="$LIBS $LIBICONV"
3973 cat >conftest.$ac_ext <<_ACEOF
3974 /* confdefs.h. */
3975 _ACEOF
3976 cat confdefs.h >>conftest.$ac_ext
3977 cat >>conftest.$ac_ext <<_ACEOF
3978 /* end confdefs.h. */
3979 #include <stdlib.h>
3980 #include <iconv.h>
3982 main ()
3984 iconv_t cd = iconv_open("","");
3985 iconv(cd,NULL,NULL,NULL,NULL);
3986 iconv_close(cd);
3988 return 0;
3990 _ACEOF
3991 rm -f conftest.$ac_objext conftest$ac_exeext
3992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3993 (eval $ac_link) 2>conftest.er1
3994 ac_status=$?
3995 grep -v '^ *+' conftest.er1 >conftest.err
3996 rm -f conftest.er1
3997 cat conftest.err >&5
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); } &&
4000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4002 (eval $ac_try) 2>&5
4003 ac_status=$?
4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); }; } &&
4006 { ac_try='test -s conftest$ac_exeext'
4007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4008 (eval $ac_try) 2>&5
4009 ac_status=$?
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 (exit $ac_status); }; }; then
4012 am_cv_lib_iconv=yes
4013 am_cv_func_iconv=yes
4014 else
4015 echo "$as_me: failed program was:" >&5
4016 sed 's/^/| /' conftest.$ac_ext >&5
4019 rm -f conftest.err conftest.$ac_objext \
4020 conftest$ac_exeext conftest.$ac_ext
4021 LIBS="$am_save_LIBS"
4025 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
4026 echo "${ECHO_T}$am_cv_func_iconv" >&6
4027 if test "$am_cv_func_iconv" = yes; then
4029 cat >>confdefs.h <<\_ACEOF
4030 #define HAVE_ICONV 1
4031 _ACEOF
4034 if test "$am_cv_lib_iconv" = yes; then
4035 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
4036 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
4037 echo "$as_me:$LINENO: result: $LIBICONV" >&5
4038 echo "${ECHO_T}$LIBICONV" >&6
4039 else
4040 CPPFLAGS="$am_save_CPPFLAGS"
4041 LIBICONV=
4042 LTLIBICONV=
4050 use_additional=yes
4052 acl_save_prefix="$prefix"
4053 prefix="$acl_final_prefix"
4054 acl_save_exec_prefix="$exec_prefix"
4055 exec_prefix="$acl_final_exec_prefix"
4057 eval additional_includedir=\"$includedir\"
4058 eval additional_libdir=\"$libdir\"
4060 exec_prefix="$acl_save_exec_prefix"
4061 prefix="$acl_save_prefix"
4064 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
4065 if test "${with_libintl_prefix+set}" = set; then
4066 withval="$with_libintl_prefix"
4068 if test "X$withval" = "Xno"; then
4069 use_additional=no
4070 else
4071 if test "X$withval" = "X"; then
4073 acl_save_prefix="$prefix"
4074 prefix="$acl_final_prefix"
4075 acl_save_exec_prefix="$exec_prefix"
4076 exec_prefix="$acl_final_exec_prefix"
4078 eval additional_includedir=\"$includedir\"
4079 eval additional_libdir=\"$libdir\"
4081 exec_prefix="$acl_save_exec_prefix"
4082 prefix="$acl_save_prefix"
4084 else
4085 additional_includedir="$withval/include"
4086 additional_libdir="$withval/lib"
4091 LIBINTL=
4092 LTLIBINTL=
4093 INCINTL=
4094 rpathdirs=
4095 ltrpathdirs=
4096 names_already_handled=
4097 names_next_round='intl '
4098 while test -n "$names_next_round"; do
4099 names_this_round="$names_next_round"
4100 names_next_round=
4101 for name in $names_this_round; do
4102 already_handled=
4103 for n in $names_already_handled; do
4104 if test "$n" = "$name"; then
4105 already_handled=yes
4106 break
4108 done
4109 if test -z "$already_handled"; then
4110 names_already_handled="$names_already_handled $name"
4111 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4112 eval value=\"\$HAVE_LIB$uppername\"
4113 if test -n "$value"; then
4114 if test "$value" = yes; then
4115 eval value=\"\$LIB$uppername\"
4116 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
4117 eval value=\"\$LTLIB$uppername\"
4118 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
4119 else
4122 else
4123 found_dir=
4124 found_la=
4125 found_so=
4126 found_a=
4127 if test $use_additional = yes; then
4128 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
4129 found_dir="$additional_libdir"
4130 found_so="$additional_libdir/lib$name.$shlibext"
4131 if test -f "$additional_libdir/lib$name.la"; then
4132 found_la="$additional_libdir/lib$name.la"
4134 else
4135 if test -f "$additional_libdir/lib$name.$libext"; then
4136 found_dir="$additional_libdir"
4137 found_a="$additional_libdir/lib$name.$libext"
4138 if test -f "$additional_libdir/lib$name.la"; then
4139 found_la="$additional_libdir/lib$name.la"
4144 if test "X$found_dir" = "X"; then
4145 for x in $LDFLAGS $LTLIBINTL; do
4147 acl_save_prefix="$prefix"
4148 prefix="$acl_final_prefix"
4149 acl_save_exec_prefix="$exec_prefix"
4150 exec_prefix="$acl_final_exec_prefix"
4151 eval x=\"$x\"
4152 exec_prefix="$acl_save_exec_prefix"
4153 prefix="$acl_save_prefix"
4155 case "$x" in
4156 -L*)
4157 dir=`echo "X$x" | sed -e 's/^X-L//'`
4158 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
4159 found_dir="$dir"
4160 found_so="$dir/lib$name.$shlibext"
4161 if test -f "$dir/lib$name.la"; then
4162 found_la="$dir/lib$name.la"
4164 else
4165 if test -f "$dir/lib$name.$libext"; then
4166 found_dir="$dir"
4167 found_a="$dir/lib$name.$libext"
4168 if test -f "$dir/lib$name.la"; then
4169 found_la="$dir/lib$name.la"
4174 esac
4175 if test "X$found_dir" != "X"; then
4176 break
4178 done
4180 if test "X$found_dir" != "X"; then
4181 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
4182 if test "X$found_so" != "X"; then
4183 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
4184 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4185 else
4186 haveit=
4187 for x in $ltrpathdirs; do
4188 if test "X$x" = "X$found_dir"; then
4189 haveit=yes
4190 break
4192 done
4193 if test -z "$haveit"; then
4194 ltrpathdirs="$ltrpathdirs $found_dir"
4196 if test "$hardcode_direct" = yes; then
4197 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4198 else
4199 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
4200 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4201 haveit=
4202 for x in $rpathdirs; do
4203 if test "X$x" = "X$found_dir"; then
4204 haveit=yes
4205 break
4207 done
4208 if test -z "$haveit"; then
4209 rpathdirs="$rpathdirs $found_dir"
4211 else
4212 haveit=
4213 for x in $LDFLAGS $LIBINTL; do
4215 acl_save_prefix="$prefix"
4216 prefix="$acl_final_prefix"
4217 acl_save_exec_prefix="$exec_prefix"
4218 exec_prefix="$acl_final_exec_prefix"
4219 eval x=\"$x\"
4220 exec_prefix="$acl_save_exec_prefix"
4221 prefix="$acl_save_prefix"
4223 if test "X$x" = "X-L$found_dir"; then
4224 haveit=yes
4225 break
4227 done
4228 if test -z "$haveit"; then
4229 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
4231 if test "$hardcode_minus_L" != no; then
4232 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4233 else
4234 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
4239 else
4240 if test "X$found_a" != "X"; then
4241 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
4242 else
4243 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
4246 additional_includedir=
4247 case "$found_dir" in
4248 */lib | */lib/)
4249 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
4250 additional_includedir="$basedir/include"
4252 esac
4253 if test "X$additional_includedir" != "X"; then
4254 if test "X$additional_includedir" != "X/usr/include"; then
4255 haveit=
4256 if test "X$additional_includedir" = "X/usr/local/include"; then
4257 if test -n "$GCC"; then
4258 case $host_os in
4259 linux*) haveit=yes;;
4260 esac
4263 if test -z "$haveit"; then
4264 for x in $CPPFLAGS $INCINTL; do
4266 acl_save_prefix="$prefix"
4267 prefix="$acl_final_prefix"
4268 acl_save_exec_prefix="$exec_prefix"
4269 exec_prefix="$acl_final_exec_prefix"
4270 eval x=\"$x\"
4271 exec_prefix="$acl_save_exec_prefix"
4272 prefix="$acl_save_prefix"
4274 if test "X$x" = "X-I$additional_includedir"; then
4275 haveit=yes
4276 break
4278 done
4279 if test -z "$haveit"; then
4280 if test -d "$additional_includedir"; then
4281 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
4287 if test -n "$found_la"; then
4288 save_libdir="$libdir"
4289 case "$found_la" in
4290 */* | *\\*) . "$found_la" ;;
4291 *) . "./$found_la" ;;
4292 esac
4293 libdir="$save_libdir"
4294 for dep in $dependency_libs; do
4295 case "$dep" in
4296 -L*)
4297 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
4298 if test "X$additional_libdir" != "X/usr/lib"; then
4299 haveit=
4300 if test "X$additional_libdir" = "X/usr/local/lib"; then
4301 if test -n "$GCC"; then
4302 case $host_os in
4303 linux*) haveit=yes;;
4304 esac
4307 if test -z "$haveit"; then
4308 haveit=
4309 for x in $LDFLAGS $LIBINTL; do
4311 acl_save_prefix="$prefix"
4312 prefix="$acl_final_prefix"
4313 acl_save_exec_prefix="$exec_prefix"
4314 exec_prefix="$acl_final_exec_prefix"
4315 eval x=\"$x\"
4316 exec_prefix="$acl_save_exec_prefix"
4317 prefix="$acl_save_prefix"
4319 if test "X$x" = "X-L$additional_libdir"; then
4320 haveit=yes
4321 break
4323 done
4324 if test -z "$haveit"; then
4325 if test -d "$additional_libdir"; then
4326 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
4329 haveit=
4330 for x in $LDFLAGS $LTLIBINTL; do
4332 acl_save_prefix="$prefix"
4333 prefix="$acl_final_prefix"
4334 acl_save_exec_prefix="$exec_prefix"
4335 exec_prefix="$acl_final_exec_prefix"
4336 eval x=\"$x\"
4337 exec_prefix="$acl_save_exec_prefix"
4338 prefix="$acl_save_prefix"
4340 if test "X$x" = "X-L$additional_libdir"; then
4341 haveit=yes
4342 break
4344 done
4345 if test -z "$haveit"; then
4346 if test -d "$additional_libdir"; then
4347 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
4353 -R*)
4354 dir=`echo "X$dep" | sed -e 's/^X-R//'`
4355 if test "$enable_rpath" != no; then
4356 haveit=
4357 for x in $rpathdirs; do
4358 if test "X$x" = "X$dir"; then
4359 haveit=yes
4360 break
4362 done
4363 if test -z "$haveit"; then
4364 rpathdirs="$rpathdirs $dir"
4366 haveit=
4367 for x in $ltrpathdirs; do
4368 if test "X$x" = "X$dir"; then
4369 haveit=yes
4370 break
4372 done
4373 if test -z "$haveit"; then
4374 ltrpathdirs="$ltrpathdirs $dir"
4378 -l*)
4379 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
4381 *.la)
4382 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
4385 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
4386 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
4388 esac
4389 done
4391 else
4392 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
4393 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
4397 done
4398 done
4399 if test "X$rpathdirs" != "X"; then
4400 if test -n "$hardcode_libdir_separator"; then
4401 alldirs=
4402 for found_dir in $rpathdirs; do
4403 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
4404 done
4405 acl_save_libdir="$libdir"
4406 libdir="$alldirs"
4407 eval flag=\"$hardcode_libdir_flag_spec\"
4408 libdir="$acl_save_libdir"
4409 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
4410 else
4411 for found_dir in $rpathdirs; do
4412 acl_save_libdir="$libdir"
4413 libdir="$found_dir"
4414 eval flag=\"$hardcode_libdir_flag_spec\"
4415 libdir="$acl_save_libdir"
4416 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
4417 done
4420 if test "X$ltrpathdirs" != "X"; then
4421 for found_dir in $ltrpathdirs; do
4422 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
4423 done
4426 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
4427 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
4428 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
4429 echo $ECHO_N "(cached) $ECHO_C" >&6
4430 else
4431 gt_save_CPPFLAGS="$CPPFLAGS"
4432 CPPFLAGS="$CPPFLAGS $INCINTL"
4433 gt_save_LIBS="$LIBS"
4434 LIBS="$LIBS $LIBINTL"
4435 cat >conftest.$ac_ext <<_ACEOF
4436 /* confdefs.h. */
4437 _ACEOF
4438 cat confdefs.h >>conftest.$ac_ext
4439 cat >>conftest.$ac_ext <<_ACEOF
4440 /* end confdefs.h. */
4441 #include <libintl.h>
4442 extern int _nl_msg_cat_cntr;
4443 extern
4444 #ifdef __cplusplus
4446 #endif
4447 const char *_nl_expand_alias ();
4449 main ()
4451 bindtextdomain ("", "");
4452 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
4454 return 0;
4456 _ACEOF
4457 rm -f conftest.$ac_objext conftest$ac_exeext
4458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4459 (eval $ac_link) 2>conftest.er1
4460 ac_status=$?
4461 grep -v '^ *+' conftest.er1 >conftest.err
4462 rm -f conftest.er1
4463 cat conftest.err >&5
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); } &&
4466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4468 (eval $ac_try) 2>&5
4469 ac_status=$?
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); }; } &&
4472 { ac_try='test -s conftest$ac_exeext'
4473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4474 (eval $ac_try) 2>&5
4475 ac_status=$?
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); }; }; then
4478 gt_cv_func_gnugettext1_libintl=yes
4479 else
4480 echo "$as_me: failed program was:" >&5
4481 sed 's/^/| /' conftest.$ac_ext >&5
4483 gt_cv_func_gnugettext1_libintl=no
4485 rm -f conftest.err conftest.$ac_objext \
4486 conftest$ac_exeext conftest.$ac_ext
4487 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
4488 LIBS="$LIBS $LIBICONV"
4489 cat >conftest.$ac_ext <<_ACEOF
4490 /* confdefs.h. */
4491 _ACEOF
4492 cat confdefs.h >>conftest.$ac_ext
4493 cat >>conftest.$ac_ext <<_ACEOF
4494 /* end confdefs.h. */
4495 #include <libintl.h>
4496 extern int _nl_msg_cat_cntr;
4497 extern
4498 #ifdef __cplusplus
4500 #endif
4501 const char *_nl_expand_alias ();
4503 main ()
4505 bindtextdomain ("", "");
4506 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
4508 return 0;
4510 _ACEOF
4511 rm -f conftest.$ac_objext conftest$ac_exeext
4512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4513 (eval $ac_link) 2>conftest.er1
4514 ac_status=$?
4515 grep -v '^ *+' conftest.er1 >conftest.err
4516 rm -f conftest.er1
4517 cat conftest.err >&5
4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 (exit $ac_status); } &&
4520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4522 (eval $ac_try) 2>&5
4523 ac_status=$?
4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); }; } &&
4526 { ac_try='test -s conftest$ac_exeext'
4527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4528 (eval $ac_try) 2>&5
4529 ac_status=$?
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); }; }; then
4532 LIBINTL="$LIBINTL $LIBICONV"
4533 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
4534 gt_cv_func_gnugettext1_libintl=yes
4536 else
4537 echo "$as_me: failed program was:" >&5
4538 sed 's/^/| /' conftest.$ac_ext >&5
4541 rm -f conftest.err conftest.$ac_objext \
4542 conftest$ac_exeext conftest.$ac_ext
4544 CPPFLAGS="$gt_save_CPPFLAGS"
4545 LIBS="$gt_save_LIBS"
4547 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
4548 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
4551 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
4552 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
4553 && test "$PACKAGE" != gettext-runtime \
4554 && test "$PACKAGE" != gettext-tools; }; then
4555 gt_use_preinstalled_gnugettext=yes
4556 else
4557 LIBINTL=
4558 LTLIBINTL=
4559 INCINTL=
4564 if test "$gt_use_preinstalled_gnugettext" = "yes" \
4565 || test "$nls_cv_use_gnu_gettext" = "yes"; then
4567 cat >>confdefs.h <<\_ACEOF
4568 #define ENABLE_NLS 1
4569 _ACEOF
4571 else
4572 USE_NLS=no
4576 echo "$as_me:$LINENO: checking whether to use NLS" >&5
4577 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
4578 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4579 echo "${ECHO_T}$USE_NLS" >&6
4580 if test "$USE_NLS" = "yes"; then
4581 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
4582 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
4583 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
4584 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
4585 gt_source="external libintl"
4586 else
4587 gt_source="libc"
4589 else
4590 gt_source="included intl directory"
4592 echo "$as_me:$LINENO: result: $gt_source" >&5
4593 echo "${ECHO_T}$gt_source" >&6
4596 if test "$USE_NLS" = "yes"; then
4598 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
4599 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
4600 echo "$as_me:$LINENO: checking how to link with libintl" >&5
4601 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
4602 echo "$as_me:$LINENO: result: $LIBINTL" >&5
4603 echo "${ECHO_T}$LIBINTL" >&6
4605 for element in $INCINTL; do
4606 haveit=
4607 for x in $CPPFLAGS; do
4609 acl_save_prefix="$prefix"
4610 prefix="$acl_final_prefix"
4611 acl_save_exec_prefix="$exec_prefix"
4612 exec_prefix="$acl_final_exec_prefix"
4613 eval x=\"$x\"
4614 exec_prefix="$acl_save_exec_prefix"
4615 prefix="$acl_save_prefix"
4617 if test "X$x" = "X$element"; then
4618 haveit=yes
4619 break
4621 done
4622 if test -z "$haveit"; then
4623 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
4625 done
4630 cat >>confdefs.h <<\_ACEOF
4631 #define HAVE_GETTEXT 1
4632 _ACEOF
4635 cat >>confdefs.h <<\_ACEOF
4636 #define HAVE_DCGETTEXT 1
4637 _ACEOF
4641 POSUB=po
4646 INTLLIBS="$LIBINTL"
4655 for ac_prog in 'bison -y' byacc
4657 # Extract the first word of "$ac_prog", so it can be a program name with args.
4658 set dummy $ac_prog; ac_word=$2
4659 echo "$as_me:$LINENO: checking for $ac_word" >&5
4660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4661 if test "${ac_cv_prog_YACC+set}" = set; then
4662 echo $ECHO_N "(cached) $ECHO_C" >&6
4663 else
4664 if test -n "$YACC"; then
4665 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4666 else
4667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668 for as_dir in $PATH
4670 IFS=$as_save_IFS
4671 test -z "$as_dir" && as_dir=.
4672 for ac_exec_ext in '' $ac_executable_extensions; do
4673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4674 ac_cv_prog_YACC="$ac_prog"
4675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4676 break 2
4678 done
4679 done
4683 YACC=$ac_cv_prog_YACC
4684 if test -n "$YACC"; then
4685 echo "$as_me:$LINENO: result: $YACC" >&5
4686 echo "${ECHO_T}$YACC" >&6
4687 else
4688 echo "$as_me:$LINENO: result: no" >&5
4689 echo "${ECHO_T}no" >&6
4692 test -n "$YACC" && break
4693 done
4694 test -n "$YACC" || YACC="yacc"
4696 for ac_prog in flex lex
4698 # Extract the first word of "$ac_prog", so it can be a program name with args.
4699 set dummy $ac_prog; ac_word=$2
4700 echo "$as_me:$LINENO: checking for $ac_word" >&5
4701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4702 if test "${ac_cv_prog_LEX+set}" = set; then
4703 echo $ECHO_N "(cached) $ECHO_C" >&6
4704 else
4705 if test -n "$LEX"; then
4706 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4707 else
4708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709 for as_dir in $PATH
4711 IFS=$as_save_IFS
4712 test -z "$as_dir" && as_dir=.
4713 for ac_exec_ext in '' $ac_executable_extensions; do
4714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4715 ac_cv_prog_LEX="$ac_prog"
4716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4717 break 2
4719 done
4720 done
4724 LEX=$ac_cv_prog_LEX
4725 if test -n "$LEX"; then
4726 echo "$as_me:$LINENO: result: $LEX" >&5
4727 echo "${ECHO_T}$LEX" >&6
4728 else
4729 echo "$as_me:$LINENO: result: no" >&5
4730 echo "${ECHO_T}no" >&6
4733 test -n "$LEX" && break
4734 done
4735 test -n "$LEX" || LEX=":"
4737 if test -z "$LEXLIB"
4738 then
4739 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4740 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4741 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4742 echo $ECHO_N "(cached) $ECHO_C" >&6
4743 else
4744 ac_check_lib_save_LIBS=$LIBS
4745 LIBS="-lfl $LIBS"
4746 cat >conftest.$ac_ext <<_ACEOF
4747 /* confdefs.h. */
4748 _ACEOF
4749 cat confdefs.h >>conftest.$ac_ext
4750 cat >>conftest.$ac_ext <<_ACEOF
4751 /* end confdefs.h. */
4753 /* Override any gcc2 internal prototype to avoid an error. */
4754 #ifdef __cplusplus
4755 extern "C"
4756 #endif
4757 /* We use char because int might match the return type of a gcc2
4758 builtin and then its argument prototype would still apply. */
4759 char yywrap ();
4761 main ()
4763 yywrap ();
4765 return 0;
4767 _ACEOF
4768 rm -f conftest.$ac_objext conftest$ac_exeext
4769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4770 (eval $ac_link) 2>conftest.er1
4771 ac_status=$?
4772 grep -v '^ *+' conftest.er1 >conftest.err
4773 rm -f conftest.er1
4774 cat conftest.err >&5
4775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776 (exit $ac_status); } &&
4777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4779 (eval $ac_try) 2>&5
4780 ac_status=$?
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); }; } &&
4783 { ac_try='test -s conftest$ac_exeext'
4784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4785 (eval $ac_try) 2>&5
4786 ac_status=$?
4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); }; }; then
4789 ac_cv_lib_fl_yywrap=yes
4790 else
4791 echo "$as_me: failed program was:" >&5
4792 sed 's/^/| /' conftest.$ac_ext >&5
4794 ac_cv_lib_fl_yywrap=no
4796 rm -f conftest.err conftest.$ac_objext \
4797 conftest$ac_exeext conftest.$ac_ext
4798 LIBS=$ac_check_lib_save_LIBS
4800 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4801 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4802 if test $ac_cv_lib_fl_yywrap = yes; then
4803 LEXLIB="-lfl"
4804 else
4805 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4806 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4807 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4808 echo $ECHO_N "(cached) $ECHO_C" >&6
4809 else
4810 ac_check_lib_save_LIBS=$LIBS
4811 LIBS="-ll $LIBS"
4812 cat >conftest.$ac_ext <<_ACEOF
4813 /* confdefs.h. */
4814 _ACEOF
4815 cat confdefs.h >>conftest.$ac_ext
4816 cat >>conftest.$ac_ext <<_ACEOF
4817 /* end confdefs.h. */
4819 /* Override any gcc2 internal prototype to avoid an error. */
4820 #ifdef __cplusplus
4821 extern "C"
4822 #endif
4823 /* We use char because int might match the return type of a gcc2
4824 builtin and then its argument prototype would still apply. */
4825 char yywrap ();
4827 main ()
4829 yywrap ();
4831 return 0;
4833 _ACEOF
4834 rm -f conftest.$ac_objext conftest$ac_exeext
4835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4836 (eval $ac_link) 2>conftest.er1
4837 ac_status=$?
4838 grep -v '^ *+' conftest.er1 >conftest.err
4839 rm -f conftest.er1
4840 cat conftest.err >&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); } &&
4843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4845 (eval $ac_try) 2>&5
4846 ac_status=$?
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); }; } &&
4849 { ac_try='test -s conftest$ac_exeext'
4850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4851 (eval $ac_try) 2>&5
4852 ac_status=$?
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); }; }; then
4855 ac_cv_lib_l_yywrap=yes
4856 else
4857 echo "$as_me: failed program was:" >&5
4858 sed 's/^/| /' conftest.$ac_ext >&5
4860 ac_cv_lib_l_yywrap=no
4862 rm -f conftest.err conftest.$ac_objext \
4863 conftest$ac_exeext conftest.$ac_ext
4864 LIBS=$ac_check_lib_save_LIBS
4866 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4867 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4868 if test $ac_cv_lib_l_yywrap = yes; then
4869 LEXLIB="-ll"
4876 if test "x$LEX" != "x:"; then
4877 echo "$as_me:$LINENO: checking lex output file root" >&5
4878 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4879 if test "${ac_cv_prog_lex_root+set}" = set; then
4880 echo $ECHO_N "(cached) $ECHO_C" >&6
4881 else
4882 # The minimal lex program is just a single line: %%. But some broken lexes
4883 # (Solaris, I think it was) want two %% lines, so accommodate them.
4884 cat >conftest.l <<_ACEOF
4887 _ACEOF
4888 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4889 (eval $LEX conftest.l) 2>&5
4890 ac_status=$?
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); }
4893 if test -f lex.yy.c; then
4894 ac_cv_prog_lex_root=lex.yy
4895 elif test -f lexyy.c; then
4896 ac_cv_prog_lex_root=lexyy
4897 else
4898 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4899 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4900 { (exit 1); exit 1; }; }
4903 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4904 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4905 rm -f conftest.l
4906 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4908 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4909 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4910 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4911 echo $ECHO_N "(cached) $ECHO_C" >&6
4912 else
4913 # POSIX says lex can declare yytext either as a pointer or an array; the
4914 # default is implementation-dependent. Figure out which it is, since
4915 # not all implementations provide the %pointer and %array declarations.
4916 ac_cv_prog_lex_yytext_pointer=no
4917 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4918 ac_save_LIBS=$LIBS
4919 LIBS="$LIBS $LEXLIB"
4920 cat >conftest.$ac_ext <<_ACEOF
4921 `cat $LEX_OUTPUT_ROOT.c`
4922 _ACEOF
4923 rm -f conftest.$ac_objext conftest$ac_exeext
4924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4925 (eval $ac_link) 2>conftest.er1
4926 ac_status=$?
4927 grep -v '^ *+' conftest.er1 >conftest.err
4928 rm -f conftest.er1
4929 cat conftest.err >&5
4930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931 (exit $ac_status); } &&
4932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4934 (eval $ac_try) 2>&5
4935 ac_status=$?
4936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937 (exit $ac_status); }; } &&
4938 { ac_try='test -s conftest$ac_exeext'
4939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4940 (eval $ac_try) 2>&5
4941 ac_status=$?
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); }; }; then
4944 ac_cv_prog_lex_yytext_pointer=yes
4945 else
4946 echo "$as_me: failed program was:" >&5
4947 sed 's/^/| /' conftest.$ac_ext >&5
4950 rm -f conftest.err conftest.$ac_objext \
4951 conftest$ac_exeext conftest.$ac_ext
4952 LIBS=$ac_save_LIBS
4953 rm -f "${LEX_OUTPUT_ROOT}.c"
4956 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4957 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4958 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4960 cat >>confdefs.h <<\_ACEOF
4961 #define YYTEXT_POINTER 1
4962 _ACEOF
4967 if test "$LEX" = :; then
4968 LEX=${am_missing_run}flex
4970 ac_ext=c
4971 ac_cpp='$CPP $CPPFLAGS'
4972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4975 if test -n "$ac_tool_prefix"; then
4976 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4977 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4978 echo "$as_me:$LINENO: checking for $ac_word" >&5
4979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4980 if test "${ac_cv_prog_CC+set}" = set; then
4981 echo $ECHO_N "(cached) $ECHO_C" >&6
4982 else
4983 if test -n "$CC"; then
4984 ac_cv_prog_CC="$CC" # Let the user override the test.
4985 else
4986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4987 for as_dir in $PATH
4989 IFS=$as_save_IFS
4990 test -z "$as_dir" && as_dir=.
4991 for ac_exec_ext in '' $ac_executable_extensions; do
4992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4993 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4995 break 2
4997 done
4998 done
5002 CC=$ac_cv_prog_CC
5003 if test -n "$CC"; then
5004 echo "$as_me:$LINENO: result: $CC" >&5
5005 echo "${ECHO_T}$CC" >&6
5006 else
5007 echo "$as_me:$LINENO: result: no" >&5
5008 echo "${ECHO_T}no" >&6
5012 if test -z "$ac_cv_prog_CC"; then
5013 ac_ct_CC=$CC
5014 # Extract the first word of "gcc", so it can be a program name with args.
5015 set dummy gcc; ac_word=$2
5016 echo "$as_me:$LINENO: checking for $ac_word" >&5
5017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5018 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5019 echo $ECHO_N "(cached) $ECHO_C" >&6
5020 else
5021 if test -n "$ac_ct_CC"; then
5022 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5023 else
5024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5025 for as_dir in $PATH
5027 IFS=$as_save_IFS
5028 test -z "$as_dir" && as_dir=.
5029 for ac_exec_ext in '' $ac_executable_extensions; do
5030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5031 ac_cv_prog_ac_ct_CC="gcc"
5032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5033 break 2
5035 done
5036 done
5040 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5041 if test -n "$ac_ct_CC"; then
5042 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5043 echo "${ECHO_T}$ac_ct_CC" >&6
5044 else
5045 echo "$as_me:$LINENO: result: no" >&5
5046 echo "${ECHO_T}no" >&6
5049 CC=$ac_ct_CC
5050 else
5051 CC="$ac_cv_prog_CC"
5054 if test -z "$CC"; then
5055 if test -n "$ac_tool_prefix"; then
5056 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5057 set dummy ${ac_tool_prefix}cc; ac_word=$2
5058 echo "$as_me:$LINENO: checking for $ac_word" >&5
5059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5060 if test "${ac_cv_prog_CC+set}" = set; then
5061 echo $ECHO_N "(cached) $ECHO_C" >&6
5062 else
5063 if test -n "$CC"; then
5064 ac_cv_prog_CC="$CC" # Let the user override the test.
5065 else
5066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067 for as_dir in $PATH
5069 IFS=$as_save_IFS
5070 test -z "$as_dir" && as_dir=.
5071 for ac_exec_ext in '' $ac_executable_extensions; do
5072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5073 ac_cv_prog_CC="${ac_tool_prefix}cc"
5074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5075 break 2
5077 done
5078 done
5082 CC=$ac_cv_prog_CC
5083 if test -n "$CC"; then
5084 echo "$as_me:$LINENO: result: $CC" >&5
5085 echo "${ECHO_T}$CC" >&6
5086 else
5087 echo "$as_me:$LINENO: result: no" >&5
5088 echo "${ECHO_T}no" >&6
5092 if test -z "$ac_cv_prog_CC"; then
5093 ac_ct_CC=$CC
5094 # Extract the first word of "cc", so it can be a program name with args.
5095 set dummy cc; ac_word=$2
5096 echo "$as_me:$LINENO: checking for $ac_word" >&5
5097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5098 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5099 echo $ECHO_N "(cached) $ECHO_C" >&6
5100 else
5101 if test -n "$ac_ct_CC"; then
5102 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5103 else
5104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105 for as_dir in $PATH
5107 IFS=$as_save_IFS
5108 test -z "$as_dir" && as_dir=.
5109 for ac_exec_ext in '' $ac_executable_extensions; do
5110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5111 ac_cv_prog_ac_ct_CC="cc"
5112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5113 break 2
5115 done
5116 done
5120 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5121 if test -n "$ac_ct_CC"; then
5122 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5123 echo "${ECHO_T}$ac_ct_CC" >&6
5124 else
5125 echo "$as_me:$LINENO: result: no" >&5
5126 echo "${ECHO_T}no" >&6
5129 CC=$ac_ct_CC
5130 else
5131 CC="$ac_cv_prog_CC"
5135 if test -z "$CC"; then
5136 # Extract the first word of "cc", so it can be a program name with args.
5137 set dummy cc; ac_word=$2
5138 echo "$as_me:$LINENO: checking for $ac_word" >&5
5139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5140 if test "${ac_cv_prog_CC+set}" = set; then
5141 echo $ECHO_N "(cached) $ECHO_C" >&6
5142 else
5143 if test -n "$CC"; then
5144 ac_cv_prog_CC="$CC" # Let the user override the test.
5145 else
5146 ac_prog_rejected=no
5147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148 for as_dir in $PATH
5150 IFS=$as_save_IFS
5151 test -z "$as_dir" && as_dir=.
5152 for ac_exec_ext in '' $ac_executable_extensions; do
5153 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5154 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5155 ac_prog_rejected=yes
5156 continue
5158 ac_cv_prog_CC="cc"
5159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5160 break 2
5162 done
5163 done
5165 if test $ac_prog_rejected = yes; then
5166 # We found a bogon in the path, so make sure we never use it.
5167 set dummy $ac_cv_prog_CC
5168 shift
5169 if test $# != 0; then
5170 # We chose a different compiler from the bogus one.
5171 # However, it has the same basename, so the bogon will be chosen
5172 # first if we set CC to just the basename; use the full file name.
5173 shift
5174 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5179 CC=$ac_cv_prog_CC
5180 if test -n "$CC"; then
5181 echo "$as_me:$LINENO: result: $CC" >&5
5182 echo "${ECHO_T}$CC" >&6
5183 else
5184 echo "$as_me:$LINENO: result: no" >&5
5185 echo "${ECHO_T}no" >&6
5189 if test -z "$CC"; then
5190 if test -n "$ac_tool_prefix"; then
5191 for ac_prog in cl
5193 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5194 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5195 echo "$as_me:$LINENO: checking for $ac_word" >&5
5196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5197 if test "${ac_cv_prog_CC+set}" = set; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5199 else
5200 if test -n "$CC"; then
5201 ac_cv_prog_CC="$CC" # Let the user override the test.
5202 else
5203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204 for as_dir in $PATH
5206 IFS=$as_save_IFS
5207 test -z "$as_dir" && as_dir=.
5208 for ac_exec_ext in '' $ac_executable_extensions; do
5209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5210 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5212 break 2
5214 done
5215 done
5219 CC=$ac_cv_prog_CC
5220 if test -n "$CC"; then
5221 echo "$as_me:$LINENO: result: $CC" >&5
5222 echo "${ECHO_T}$CC" >&6
5223 else
5224 echo "$as_me:$LINENO: result: no" >&5
5225 echo "${ECHO_T}no" >&6
5228 test -n "$CC" && break
5229 done
5231 if test -z "$CC"; then
5232 ac_ct_CC=$CC
5233 for ac_prog in cl
5235 # Extract the first word of "$ac_prog", so it can be a program name with args.
5236 set dummy $ac_prog; ac_word=$2
5237 echo "$as_me:$LINENO: checking for $ac_word" >&5
5238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5239 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5240 echo $ECHO_N "(cached) $ECHO_C" >&6
5241 else
5242 if test -n "$ac_ct_CC"; then
5243 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5244 else
5245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246 for as_dir in $PATH
5248 IFS=$as_save_IFS
5249 test -z "$as_dir" && as_dir=.
5250 for ac_exec_ext in '' $ac_executable_extensions; do
5251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5252 ac_cv_prog_ac_ct_CC="$ac_prog"
5253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5254 break 2
5256 done
5257 done
5261 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5262 if test -n "$ac_ct_CC"; then
5263 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5264 echo "${ECHO_T}$ac_ct_CC" >&6
5265 else
5266 echo "$as_me:$LINENO: result: no" >&5
5267 echo "${ECHO_T}no" >&6
5270 test -n "$ac_ct_CC" && break
5271 done
5273 CC=$ac_ct_CC
5279 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5280 See \`config.log' for more details." >&5
5281 echo "$as_me: error: no acceptable C compiler found in \$PATH
5282 See \`config.log' for more details." >&2;}
5283 { (exit 1); exit 1; }; }
5285 # Provide some information about the compiler.
5286 echo "$as_me:$LINENO:" \
5287 "checking for C compiler version" >&5
5288 ac_compiler=`set X $ac_compile; echo $2`
5289 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5290 (eval $ac_compiler --version </dev/null >&5) 2>&5
5291 ac_status=$?
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); }
5294 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5295 (eval $ac_compiler -v </dev/null >&5) 2>&5
5296 ac_status=$?
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); }
5299 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5300 (eval $ac_compiler -V </dev/null >&5) 2>&5
5301 ac_status=$?
5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303 (exit $ac_status); }
5305 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5306 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
5307 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5308 echo $ECHO_N "(cached) $ECHO_C" >&6
5309 else
5310 cat >conftest.$ac_ext <<_ACEOF
5311 /* confdefs.h. */
5312 _ACEOF
5313 cat confdefs.h >>conftest.$ac_ext
5314 cat >>conftest.$ac_ext <<_ACEOF
5315 /* end confdefs.h. */
5318 main ()
5320 #ifndef __GNUC__
5321 choke me
5322 #endif
5325 return 0;
5327 _ACEOF
5328 rm -f conftest.$ac_objext
5329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5330 (eval $ac_compile) 2>conftest.er1
5331 ac_status=$?
5332 grep -v '^ *+' conftest.er1 >conftest.err
5333 rm -f conftest.er1
5334 cat conftest.err >&5
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); } &&
5337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5339 (eval $ac_try) 2>&5
5340 ac_status=$?
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); }; } &&
5343 { ac_try='test -s conftest.$ac_objext'
5344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5345 (eval $ac_try) 2>&5
5346 ac_status=$?
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); }; }; then
5349 ac_compiler_gnu=yes
5350 else
5351 echo "$as_me: failed program was:" >&5
5352 sed 's/^/| /' conftest.$ac_ext >&5
5354 ac_compiler_gnu=no
5356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5357 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5360 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5361 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
5362 GCC=`test $ac_compiler_gnu = yes && echo yes`
5363 ac_test_CFLAGS=${CFLAGS+set}
5364 ac_save_CFLAGS=$CFLAGS
5365 CFLAGS="-g"
5366 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5367 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
5368 if test "${ac_cv_prog_cc_g+set}" = set; then
5369 echo $ECHO_N "(cached) $ECHO_C" >&6
5370 else
5371 cat >conftest.$ac_ext <<_ACEOF
5372 /* confdefs.h. */
5373 _ACEOF
5374 cat confdefs.h >>conftest.$ac_ext
5375 cat >>conftest.$ac_ext <<_ACEOF
5376 /* end confdefs.h. */
5379 main ()
5383 return 0;
5385 _ACEOF
5386 rm -f conftest.$ac_objext
5387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5388 (eval $ac_compile) 2>conftest.er1
5389 ac_status=$?
5390 grep -v '^ *+' conftest.er1 >conftest.err
5391 rm -f conftest.er1
5392 cat conftest.err >&5
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); } &&
5395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5397 (eval $ac_try) 2>&5
5398 ac_status=$?
5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400 (exit $ac_status); }; } &&
5401 { ac_try='test -s conftest.$ac_objext'
5402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5403 (eval $ac_try) 2>&5
5404 ac_status=$?
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); }; }; then
5407 ac_cv_prog_cc_g=yes
5408 else
5409 echo "$as_me: failed program was:" >&5
5410 sed 's/^/| /' conftest.$ac_ext >&5
5412 ac_cv_prog_cc_g=no
5414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5416 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5417 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
5418 if test "$ac_test_CFLAGS" = set; then
5419 CFLAGS=$ac_save_CFLAGS
5420 elif test $ac_cv_prog_cc_g = yes; then
5421 if test "$GCC" = yes; then
5422 CFLAGS="-g -O2"
5423 else
5424 CFLAGS="-g"
5426 else
5427 if test "$GCC" = yes; then
5428 CFLAGS="-O2"
5429 else
5430 CFLAGS=
5433 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
5434 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5435 if test "${ac_cv_prog_cc_stdc+set}" = set; then
5436 echo $ECHO_N "(cached) $ECHO_C" >&6
5437 else
5438 ac_cv_prog_cc_stdc=no
5439 ac_save_CC=$CC
5440 cat >conftest.$ac_ext <<_ACEOF
5441 /* confdefs.h. */
5442 _ACEOF
5443 cat confdefs.h >>conftest.$ac_ext
5444 cat >>conftest.$ac_ext <<_ACEOF
5445 /* end confdefs.h. */
5446 #include <stdarg.h>
5447 #include <stdio.h>
5448 #include <sys/types.h>
5449 #include <sys/stat.h>
5450 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5451 struct buf { int x; };
5452 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5453 static char *e (p, i)
5454 char **p;
5455 int i;
5457 return p[i];
5459 static char *f (char * (*g) (char **, int), char **p, ...)
5461 char *s;
5462 va_list v;
5463 va_start (v,p);
5464 s = g (p, va_arg (v,int));
5465 va_end (v);
5466 return s;
5469 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5470 function prototypes and stuff, but not '\xHH' hex character constants.
5471 These don't provoke an error unfortunately, instead are silently treated
5472 as 'x'. The following induces an error, until -std1 is added to get
5473 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5474 array size at least. It's necessary to write '\x00'==0 to get something
5475 that's true only with -std1. */
5476 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5478 int test (int i, double x);
5479 struct s1 {int (*f) (int a);};
5480 struct s2 {int (*f) (double a);};
5481 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5482 int argc;
5483 char **argv;
5485 main ()
5487 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5489 return 0;
5491 _ACEOF
5492 # Don't try gcc -ansi; that turns off useful extensions and
5493 # breaks some systems' header files.
5494 # AIX -qlanglvl=ansi
5495 # Ultrix and OSF/1 -std1
5496 # HP-UX 10.20 and later -Ae
5497 # HP-UX older versions -Aa -D_HPUX_SOURCE
5498 # SVR4 -Xc -D__EXTENSIONS__
5499 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5501 CC="$ac_save_CC $ac_arg"
5502 rm -f conftest.$ac_objext
5503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5504 (eval $ac_compile) 2>conftest.er1
5505 ac_status=$?
5506 grep -v '^ *+' conftest.er1 >conftest.err
5507 rm -f conftest.er1
5508 cat conftest.err >&5
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); } &&
5511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5513 (eval $ac_try) 2>&5
5514 ac_status=$?
5515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516 (exit $ac_status); }; } &&
5517 { ac_try='test -s conftest.$ac_objext'
5518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5519 (eval $ac_try) 2>&5
5520 ac_status=$?
5521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5522 (exit $ac_status); }; }; then
5523 ac_cv_prog_cc_stdc=$ac_arg
5524 break
5525 else
5526 echo "$as_me: failed program was:" >&5
5527 sed 's/^/| /' conftest.$ac_ext >&5
5530 rm -f conftest.err conftest.$ac_objext
5531 done
5532 rm -f conftest.$ac_ext conftest.$ac_objext
5533 CC=$ac_save_CC
5537 case "x$ac_cv_prog_cc_stdc" in
5538 x|xno)
5539 echo "$as_me:$LINENO: result: none needed" >&5
5540 echo "${ECHO_T}none needed" >&6 ;;
5542 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5543 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5544 CC="$CC $ac_cv_prog_cc_stdc" ;;
5545 esac
5547 # Some people use a C++ compiler to compile C. Since we use `exit',
5548 # in C++ we need to declare it. In case someone uses the same compiler
5549 # for both compiling C and C++ we need to have the C++ compiler decide
5550 # the declaration of exit, since it's the most demanding environment.
5551 cat >conftest.$ac_ext <<_ACEOF
5552 #ifndef __cplusplus
5553 choke me
5554 #endif
5555 _ACEOF
5556 rm -f conftest.$ac_objext
5557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5558 (eval $ac_compile) 2>conftest.er1
5559 ac_status=$?
5560 grep -v '^ *+' conftest.er1 >conftest.err
5561 rm -f conftest.er1
5562 cat conftest.err >&5
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); } &&
5565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5567 (eval $ac_try) 2>&5
5568 ac_status=$?
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); }; } &&
5571 { ac_try='test -s conftest.$ac_objext'
5572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5573 (eval $ac_try) 2>&5
5574 ac_status=$?
5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); }; }; then
5577 for ac_declaration in \
5578 '' \
5579 'extern "C" void std::exit (int) throw (); using std::exit;' \
5580 'extern "C" void std::exit (int); using std::exit;' \
5581 'extern "C" void exit (int) throw ();' \
5582 'extern "C" void exit (int);' \
5583 'void exit (int);'
5585 cat >conftest.$ac_ext <<_ACEOF
5586 /* confdefs.h. */
5587 _ACEOF
5588 cat confdefs.h >>conftest.$ac_ext
5589 cat >>conftest.$ac_ext <<_ACEOF
5590 /* end confdefs.h. */
5591 $ac_declaration
5592 #include <stdlib.h>
5594 main ()
5596 exit (42);
5598 return 0;
5600 _ACEOF
5601 rm -f conftest.$ac_objext
5602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5603 (eval $ac_compile) 2>conftest.er1
5604 ac_status=$?
5605 grep -v '^ *+' conftest.er1 >conftest.err
5606 rm -f conftest.er1
5607 cat conftest.err >&5
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); } &&
5610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5612 (eval $ac_try) 2>&5
5613 ac_status=$?
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); }; } &&
5616 { ac_try='test -s conftest.$ac_objext'
5617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5618 (eval $ac_try) 2>&5
5619 ac_status=$?
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); }; }; then
5623 else
5624 echo "$as_me: failed program was:" >&5
5625 sed 's/^/| /' conftest.$ac_ext >&5
5627 continue
5629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5630 cat >conftest.$ac_ext <<_ACEOF
5631 /* confdefs.h. */
5632 _ACEOF
5633 cat confdefs.h >>conftest.$ac_ext
5634 cat >>conftest.$ac_ext <<_ACEOF
5635 /* end confdefs.h. */
5636 $ac_declaration
5638 main ()
5640 exit (42);
5642 return 0;
5644 _ACEOF
5645 rm -f conftest.$ac_objext
5646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5647 (eval $ac_compile) 2>conftest.er1
5648 ac_status=$?
5649 grep -v '^ *+' conftest.er1 >conftest.err
5650 rm -f conftest.er1
5651 cat conftest.err >&5
5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653 (exit $ac_status); } &&
5654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5656 (eval $ac_try) 2>&5
5657 ac_status=$?
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); }; } &&
5660 { ac_try='test -s conftest.$ac_objext'
5661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5662 (eval $ac_try) 2>&5
5663 ac_status=$?
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); }; }; then
5666 break
5667 else
5668 echo "$as_me: failed program was:" >&5
5669 sed 's/^/| /' conftest.$ac_ext >&5
5672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5673 done
5674 rm -f conftest*
5675 if test -n "$ac_declaration"; then
5676 echo '#ifdef __cplusplus' >>confdefs.h
5677 echo $ac_declaration >>confdefs.h
5678 echo '#endif' >>confdefs.h
5681 else
5682 echo "$as_me: failed program was:" >&5
5683 sed 's/^/| /' conftest.$ac_ext >&5
5686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5687 ac_ext=c
5688 ac_cpp='$CPP $CPPFLAGS'
5689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5693 depcc="$CC" am_compiler_list=
5695 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5696 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5697 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5698 echo $ECHO_N "(cached) $ECHO_C" >&6
5699 else
5700 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5701 # We make a subdir and do the tests there. Otherwise we can end up
5702 # making bogus files that we don't know about and never remove. For
5703 # instance it was reported that on HP-UX the gcc test will end up
5704 # making a dummy file named `D' -- because `-MD' means `put the output
5705 # in D'.
5706 mkdir conftest.dir
5707 # Copy depcomp to subdir because otherwise we won't find it if we're
5708 # using a relative directory.
5709 cp "$am_depcomp" conftest.dir
5710 cd conftest.dir
5711 # We will build objects and dependencies in a subdirectory because
5712 # it helps to detect inapplicable dependency modes. For instance
5713 # both Tru64's cc and ICC support -MD to output dependencies as a
5714 # side effect of compilation, but ICC will put the dependencies in
5715 # the current directory while Tru64 will put them in the object
5716 # directory.
5717 mkdir sub
5719 am_cv_CC_dependencies_compiler_type=none
5720 if test "$am_compiler_list" = ""; then
5721 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5723 for depmode in $am_compiler_list; do
5724 # Setup a source with many dependencies, because some compilers
5725 # like to wrap large dependency lists on column 80 (with \), and
5726 # we should not choose a depcomp mode which is confused by this.
5728 # We need to recreate these files for each test, as the compiler may
5729 # overwrite some of them when testing with obscure command lines.
5730 # This happens at least with the AIX C compiler.
5731 : > sub/conftest.c
5732 for i in 1 2 3 4 5 6; do
5733 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5734 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5735 # Solaris 8's {/usr,}/bin/sh.
5736 touch sub/conftst$i.h
5737 done
5738 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5740 case $depmode in
5741 nosideeffect)
5742 # after this tag, mechanisms are not by side-effect, so they'll
5743 # only be used when explicitly requested
5744 if test "x$enable_dependency_tracking" = xyes; then
5745 continue
5746 else
5747 break
5750 none) break ;;
5751 esac
5752 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5753 # mode. It turns out that the SunPro C++ compiler does not properly
5754 # handle `-M -o', and we need to detect this.
5755 if depmode=$depmode \
5756 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5757 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5758 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5759 >/dev/null 2>conftest.err &&
5760 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5761 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5762 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5763 # icc doesn't choke on unknown options, it will just issue warnings
5764 # or remarks (even with -Werror). So we grep stderr for any message
5765 # that says an option was ignored or not supported.
5766 # When given -MP, icc 7.0 and 7.1 complain thusly:
5767 # icc: Command line warning: ignoring option '-M'; no argument required
5768 # The diagnosis changed in icc 8.0:
5769 # icc: Command line remark: option '-MP' not supported
5770 if (grep 'ignoring option' conftest.err ||
5771 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5772 am_cv_CC_dependencies_compiler_type=$depmode
5773 break
5776 done
5778 cd ..
5779 rm -rf conftest.dir
5780 else
5781 am_cv_CC_dependencies_compiler_type=none
5785 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5786 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5787 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5792 test "x$enable_dependency_tracking" != xno \
5793 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5794 am__fastdepCC_TRUE=
5795 am__fastdepCC_FALSE='#'
5796 else
5797 am__fastdepCC_TRUE='#'
5798 am__fastdepCC_FALSE=
5802 ac_ext=cc
5803 ac_cpp='$CXXCPP $CPPFLAGS'
5804 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5805 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5806 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5807 if test -n "$ac_tool_prefix"; then
5808 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5810 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5811 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5812 echo "$as_me:$LINENO: checking for $ac_word" >&5
5813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5814 if test "${ac_cv_prog_CXX+set}" = set; then
5815 echo $ECHO_N "(cached) $ECHO_C" >&6
5816 else
5817 if test -n "$CXX"; then
5818 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5819 else
5820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821 for as_dir in $PATH
5823 IFS=$as_save_IFS
5824 test -z "$as_dir" && as_dir=.
5825 for ac_exec_ext in '' $ac_executable_extensions; do
5826 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5827 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5829 break 2
5831 done
5832 done
5836 CXX=$ac_cv_prog_CXX
5837 if test -n "$CXX"; then
5838 echo "$as_me:$LINENO: result: $CXX" >&5
5839 echo "${ECHO_T}$CXX" >&6
5840 else
5841 echo "$as_me:$LINENO: result: no" >&5
5842 echo "${ECHO_T}no" >&6
5845 test -n "$CXX" && break
5846 done
5848 if test -z "$CXX"; then
5849 ac_ct_CXX=$CXX
5850 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5852 # Extract the first word of "$ac_prog", so it can be a program name with args.
5853 set dummy $ac_prog; ac_word=$2
5854 echo "$as_me:$LINENO: checking for $ac_word" >&5
5855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5856 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5857 echo $ECHO_N "(cached) $ECHO_C" >&6
5858 else
5859 if test -n "$ac_ct_CXX"; then
5860 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5861 else
5862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5863 for as_dir in $PATH
5865 IFS=$as_save_IFS
5866 test -z "$as_dir" && as_dir=.
5867 for ac_exec_ext in '' $ac_executable_extensions; do
5868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5869 ac_cv_prog_ac_ct_CXX="$ac_prog"
5870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5871 break 2
5873 done
5874 done
5878 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5879 if test -n "$ac_ct_CXX"; then
5880 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5881 echo "${ECHO_T}$ac_ct_CXX" >&6
5882 else
5883 echo "$as_me:$LINENO: result: no" >&5
5884 echo "${ECHO_T}no" >&6
5887 test -n "$ac_ct_CXX" && break
5888 done
5889 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5891 CXX=$ac_ct_CXX
5895 # Provide some information about the compiler.
5896 echo "$as_me:$LINENO:" \
5897 "checking for C++ compiler version" >&5
5898 ac_compiler=`set X $ac_compile; echo $2`
5899 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5900 (eval $ac_compiler --version </dev/null >&5) 2>&5
5901 ac_status=$?
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); }
5904 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5905 (eval $ac_compiler -v </dev/null >&5) 2>&5
5906 ac_status=$?
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); }
5909 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5910 (eval $ac_compiler -V </dev/null >&5) 2>&5
5911 ac_status=$?
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); }
5915 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5916 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5917 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5918 echo $ECHO_N "(cached) $ECHO_C" >&6
5919 else
5920 cat >conftest.$ac_ext <<_ACEOF
5921 /* confdefs.h. */
5922 _ACEOF
5923 cat confdefs.h >>conftest.$ac_ext
5924 cat >>conftest.$ac_ext <<_ACEOF
5925 /* end confdefs.h. */
5928 main ()
5930 #ifndef __GNUC__
5931 choke me
5932 #endif
5935 return 0;
5937 _ACEOF
5938 rm -f conftest.$ac_objext
5939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5940 (eval $ac_compile) 2>conftest.er1
5941 ac_status=$?
5942 grep -v '^ *+' conftest.er1 >conftest.err
5943 rm -f conftest.er1
5944 cat conftest.err >&5
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); } &&
5947 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5949 (eval $ac_try) 2>&5
5950 ac_status=$?
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); }; } &&
5953 { ac_try='test -s conftest.$ac_objext'
5954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5955 (eval $ac_try) 2>&5
5956 ac_status=$?
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); }; }; then
5959 ac_compiler_gnu=yes
5960 else
5961 echo "$as_me: failed program was:" >&5
5962 sed 's/^/| /' conftest.$ac_ext >&5
5964 ac_compiler_gnu=no
5966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5967 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5970 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5971 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5972 GXX=`test $ac_compiler_gnu = yes && echo yes`
5973 ac_test_CXXFLAGS=${CXXFLAGS+set}
5974 ac_save_CXXFLAGS=$CXXFLAGS
5975 CXXFLAGS="-g"
5976 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5977 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5978 if test "${ac_cv_prog_cxx_g+set}" = set; then
5979 echo $ECHO_N "(cached) $ECHO_C" >&6
5980 else
5981 cat >conftest.$ac_ext <<_ACEOF
5982 /* confdefs.h. */
5983 _ACEOF
5984 cat confdefs.h >>conftest.$ac_ext
5985 cat >>conftest.$ac_ext <<_ACEOF
5986 /* end confdefs.h. */
5989 main ()
5993 return 0;
5995 _ACEOF
5996 rm -f conftest.$ac_objext
5997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5998 (eval $ac_compile) 2>conftest.er1
5999 ac_status=$?
6000 grep -v '^ *+' conftest.er1 >conftest.err
6001 rm -f conftest.er1
6002 cat conftest.err >&5
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); } &&
6005 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6007 (eval $ac_try) 2>&5
6008 ac_status=$?
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); }; } &&
6011 { ac_try='test -s conftest.$ac_objext'
6012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6013 (eval $ac_try) 2>&5
6014 ac_status=$?
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); }; }; then
6017 ac_cv_prog_cxx_g=yes
6018 else
6019 echo "$as_me: failed program was:" >&5
6020 sed 's/^/| /' conftest.$ac_ext >&5
6022 ac_cv_prog_cxx_g=no
6024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6026 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6027 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6028 if test "$ac_test_CXXFLAGS" = set; then
6029 CXXFLAGS=$ac_save_CXXFLAGS
6030 elif test $ac_cv_prog_cxx_g = yes; then
6031 if test "$GXX" = yes; then
6032 CXXFLAGS="-g -O2"
6033 else
6034 CXXFLAGS="-g"
6036 else
6037 if test "$GXX" = yes; then
6038 CXXFLAGS="-O2"
6039 else
6040 CXXFLAGS=
6043 for ac_declaration in \
6044 '' \
6045 'extern "C" void std::exit (int) throw (); using std::exit;' \
6046 'extern "C" void std::exit (int); using std::exit;' \
6047 'extern "C" void exit (int) throw ();' \
6048 'extern "C" void exit (int);' \
6049 'void exit (int);'
6051 cat >conftest.$ac_ext <<_ACEOF
6052 /* confdefs.h. */
6053 _ACEOF
6054 cat confdefs.h >>conftest.$ac_ext
6055 cat >>conftest.$ac_ext <<_ACEOF
6056 /* end confdefs.h. */
6057 $ac_declaration
6058 #include <stdlib.h>
6060 main ()
6062 exit (42);
6064 return 0;
6066 _ACEOF
6067 rm -f conftest.$ac_objext
6068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6069 (eval $ac_compile) 2>conftest.er1
6070 ac_status=$?
6071 grep -v '^ *+' conftest.er1 >conftest.err
6072 rm -f conftest.er1
6073 cat conftest.err >&5
6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); } &&
6076 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6078 (eval $ac_try) 2>&5
6079 ac_status=$?
6080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081 (exit $ac_status); }; } &&
6082 { ac_try='test -s conftest.$ac_objext'
6083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6084 (eval $ac_try) 2>&5
6085 ac_status=$?
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); }; }; then
6089 else
6090 echo "$as_me: failed program was:" >&5
6091 sed 's/^/| /' conftest.$ac_ext >&5
6093 continue
6095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6096 cat >conftest.$ac_ext <<_ACEOF
6097 /* confdefs.h. */
6098 _ACEOF
6099 cat confdefs.h >>conftest.$ac_ext
6100 cat >>conftest.$ac_ext <<_ACEOF
6101 /* end confdefs.h. */
6102 $ac_declaration
6104 main ()
6106 exit (42);
6108 return 0;
6110 _ACEOF
6111 rm -f conftest.$ac_objext
6112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6113 (eval $ac_compile) 2>conftest.er1
6114 ac_status=$?
6115 grep -v '^ *+' conftest.er1 >conftest.err
6116 rm -f conftest.er1
6117 cat conftest.err >&5
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); } &&
6120 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6122 (eval $ac_try) 2>&5
6123 ac_status=$?
6124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125 (exit $ac_status); }; } &&
6126 { ac_try='test -s conftest.$ac_objext'
6127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6128 (eval $ac_try) 2>&5
6129 ac_status=$?
6130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131 (exit $ac_status); }; }; then
6132 break
6133 else
6134 echo "$as_me: failed program was:" >&5
6135 sed 's/^/| /' conftest.$ac_ext >&5
6138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6139 done
6140 rm -f conftest*
6141 if test -n "$ac_declaration"; then
6142 echo '#ifdef __cplusplus' >>confdefs.h
6143 echo $ac_declaration >>confdefs.h
6144 echo '#endif' >>confdefs.h
6147 ac_ext=c
6148 ac_cpp='$CPP $CPPFLAGS'
6149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6153 depcc="$CXX" am_compiler_list=
6155 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6156 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6157 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6158 echo $ECHO_N "(cached) $ECHO_C" >&6
6159 else
6160 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6161 # We make a subdir and do the tests there. Otherwise we can end up
6162 # making bogus files that we don't know about and never remove. For
6163 # instance it was reported that on HP-UX the gcc test will end up
6164 # making a dummy file named `D' -- because `-MD' means `put the output
6165 # in D'.
6166 mkdir conftest.dir
6167 # Copy depcomp to subdir because otherwise we won't find it if we're
6168 # using a relative directory.
6169 cp "$am_depcomp" conftest.dir
6170 cd conftest.dir
6171 # We will build objects and dependencies in a subdirectory because
6172 # it helps to detect inapplicable dependency modes. For instance
6173 # both Tru64's cc and ICC support -MD to output dependencies as a
6174 # side effect of compilation, but ICC will put the dependencies in
6175 # the current directory while Tru64 will put them in the object
6176 # directory.
6177 mkdir sub
6179 am_cv_CXX_dependencies_compiler_type=none
6180 if test "$am_compiler_list" = ""; then
6181 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6183 for depmode in $am_compiler_list; do
6184 # Setup a source with many dependencies, because some compilers
6185 # like to wrap large dependency lists on column 80 (with \), and
6186 # we should not choose a depcomp mode which is confused by this.
6188 # We need to recreate these files for each test, as the compiler may
6189 # overwrite some of them when testing with obscure command lines.
6190 # This happens at least with the AIX C compiler.
6191 : > sub/conftest.c
6192 for i in 1 2 3 4 5 6; do
6193 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6194 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6195 # Solaris 8's {/usr,}/bin/sh.
6196 touch sub/conftst$i.h
6197 done
6198 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6200 case $depmode in
6201 nosideeffect)
6202 # after this tag, mechanisms are not by side-effect, so they'll
6203 # only be used when explicitly requested
6204 if test "x$enable_dependency_tracking" = xyes; then
6205 continue
6206 else
6207 break
6210 none) break ;;
6211 esac
6212 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6213 # mode. It turns out that the SunPro C++ compiler does not properly
6214 # handle `-M -o', and we need to detect this.
6215 if depmode=$depmode \
6216 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6217 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6218 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6219 >/dev/null 2>conftest.err &&
6220 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6221 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6222 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6223 # icc doesn't choke on unknown options, it will just issue warnings
6224 # or remarks (even with -Werror). So we grep stderr for any message
6225 # that says an option was ignored or not supported.
6226 # When given -MP, icc 7.0 and 7.1 complain thusly:
6227 # icc: Command line warning: ignoring option '-M'; no argument required
6228 # The diagnosis changed in icc 8.0:
6229 # icc: Command line remark: option '-MP' not supported
6230 if (grep 'ignoring option' conftest.err ||
6231 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6232 am_cv_CXX_dependencies_compiler_type=$depmode
6233 break
6236 done
6238 cd ..
6239 rm -rf conftest.dir
6240 else
6241 am_cv_CXX_dependencies_compiler_type=none
6245 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6246 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6247 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6252 test "x$enable_dependency_tracking" != xno \
6253 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6254 am__fastdepCXX_TRUE=
6255 am__fastdepCXX_FALSE='#'
6256 else
6257 am__fastdepCXX_TRUE='#'
6258 am__fastdepCXX_FALSE=
6262 echo "$as_me:$LINENO: checking whether ln -s works" >&5
6263 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6264 LN_S=$as_ln_s
6265 if test "$LN_S" = "ln -s"; then
6266 echo "$as_me:$LINENO: result: yes" >&5
6267 echo "${ECHO_T}yes" >&6
6268 else
6269 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6270 echo "${ECHO_T}no, using $LN_S" >&6
6273 if test -n "$ac_tool_prefix"; then
6274 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6275 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6276 echo "$as_me:$LINENO: checking for $ac_word" >&5
6277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6278 if test "${ac_cv_prog_RANLIB+set}" = set; then
6279 echo $ECHO_N "(cached) $ECHO_C" >&6
6280 else
6281 if test -n "$RANLIB"; then
6282 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6283 else
6284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285 for as_dir in $PATH
6287 IFS=$as_save_IFS
6288 test -z "$as_dir" && as_dir=.
6289 for ac_exec_ext in '' $ac_executable_extensions; do
6290 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6291 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6293 break 2
6295 done
6296 done
6300 RANLIB=$ac_cv_prog_RANLIB
6301 if test -n "$RANLIB"; then
6302 echo "$as_me:$LINENO: result: $RANLIB" >&5
6303 echo "${ECHO_T}$RANLIB" >&6
6304 else
6305 echo "$as_me:$LINENO: result: no" >&5
6306 echo "${ECHO_T}no" >&6
6310 if test -z "$ac_cv_prog_RANLIB"; then
6311 ac_ct_RANLIB=$RANLIB
6312 # Extract the first word of "ranlib", so it can be a program name with args.
6313 set dummy ranlib; ac_word=$2
6314 echo "$as_me:$LINENO: checking for $ac_word" >&5
6315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6316 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6317 echo $ECHO_N "(cached) $ECHO_C" >&6
6318 else
6319 if test -n "$ac_ct_RANLIB"; then
6320 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6321 else
6322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323 for as_dir in $PATH
6325 IFS=$as_save_IFS
6326 test -z "$as_dir" && as_dir=.
6327 for ac_exec_ext in '' $ac_executable_extensions; do
6328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6329 ac_cv_prog_ac_ct_RANLIB="ranlib"
6330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6331 break 2
6333 done
6334 done
6336 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6339 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6340 if test -n "$ac_ct_RANLIB"; then
6341 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6342 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6343 else
6344 echo "$as_me:$LINENO: result: no" >&5
6345 echo "${ECHO_T}no" >&6
6348 RANLIB=$ac_ct_RANLIB
6349 else
6350 RANLIB="$ac_cv_prog_RANLIB"
6353 for ac_prog in gawk mawk nawk awk
6355 # Extract the first word of "$ac_prog", so it can be a program name with args.
6356 set dummy $ac_prog; ac_word=$2
6357 echo "$as_me:$LINENO: checking for $ac_word" >&5
6358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6359 if test "${ac_cv_prog_AWK+set}" = set; then
6360 echo $ECHO_N "(cached) $ECHO_C" >&6
6361 else
6362 if test -n "$AWK"; then
6363 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6364 else
6365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6366 for as_dir in $PATH
6368 IFS=$as_save_IFS
6369 test -z "$as_dir" && as_dir=.
6370 for ac_exec_ext in '' $ac_executable_extensions; do
6371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6372 ac_cv_prog_AWK="$ac_prog"
6373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6374 break 2
6376 done
6377 done
6381 AWK=$ac_cv_prog_AWK
6382 if test -n "$AWK"; then
6383 echo "$as_me:$LINENO: result: $AWK" >&5
6384 echo "${ECHO_T}$AWK" >&6
6385 else
6386 echo "$as_me:$LINENO: result: no" >&5
6387 echo "${ECHO_T}no" >&6
6390 test -n "$AWK" && break
6391 done
6393 # Find a good install program. We prefer a C program (faster),
6394 # so one script is as good as another. But avoid the broken or
6395 # incompatible versions:
6396 # SysV /etc/install, /usr/sbin/install
6397 # SunOS /usr/etc/install
6398 # IRIX /sbin/install
6399 # AIX /bin/install
6400 # AmigaOS /C/install, which installs bootblocks on floppy discs
6401 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6402 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6403 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6404 # OS/2's system install, which has a completely different semantic
6405 # ./install, which can be erroneously created by make from ./install.sh.
6406 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6407 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6408 if test -z "$INSTALL"; then
6409 if test "${ac_cv_path_install+set}" = set; then
6410 echo $ECHO_N "(cached) $ECHO_C" >&6
6411 else
6412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6413 for as_dir in $PATH
6415 IFS=$as_save_IFS
6416 test -z "$as_dir" && as_dir=.
6417 # Account for people who put trailing slashes in PATH elements.
6418 case $as_dir/ in
6419 ./ | .// | /cC/* | \
6420 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6421 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6422 /usr/ucb/* ) ;;
6424 # OSF1 and SCO ODT 3.0 have their own names for install.
6425 # Don't use installbsd from OSF since it installs stuff as root
6426 # by default.
6427 for ac_prog in ginstall scoinst install; do
6428 for ac_exec_ext in '' $ac_executable_extensions; do
6429 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6430 if test $ac_prog = install &&
6431 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6432 # AIX install. It has an incompatible calling convention.
6434 elif test $ac_prog = install &&
6435 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6436 # program-specific install script used by HP pwplus--don't use.
6438 else
6439 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6440 break 3
6443 done
6444 done
6446 esac
6447 done
6451 if test "${ac_cv_path_install+set}" = set; then
6452 INSTALL=$ac_cv_path_install
6453 else
6454 # As a last resort, use the slow shell script. We don't cache a
6455 # path for INSTALL within a source directory, because that will
6456 # break other packages using the cache if that directory is
6457 # removed, or if the path is relative.
6458 INSTALL=$ac_install_sh
6461 echo "$as_me:$LINENO: result: $INSTALL" >&5
6462 echo "${ECHO_T}$INSTALL" >&6
6464 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6465 # It thinks the first close brace ends the variable substitution.
6466 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6468 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6470 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6473 # Extract the first word of "bison", so it can be a program name with args.
6474 set dummy bison; ac_word=$2
6475 echo "$as_me:$LINENO: checking for $ac_word" >&5
6476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6477 if test "${ac_cv_path_BISON+set}" = set; then
6478 echo $ECHO_N "(cached) $ECHO_C" >&6
6479 else
6480 case $BISON in
6481 [\\/]* | ?:[\\/]*)
6482 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
6485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6486 for as_dir in $PATH
6488 IFS=$as_save_IFS
6489 test -z "$as_dir" && as_dir=.
6490 for ac_exec_ext in '' $ac_executable_extensions; do
6491 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6492 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
6493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6494 break 2
6496 done
6497 done
6499 test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="bison"
6501 esac
6503 BISON=$ac_cv_path_BISON
6505 if test -n "$BISON"; then
6506 echo "$as_me:$LINENO: result: $BISON" >&5
6507 echo "${ECHO_T}$BISON" >&6
6508 else
6509 echo "$as_me:$LINENO: result: no" >&5
6510 echo "${ECHO_T}no" >&6
6513 # Extract the first word of "help2man", so it can be a program name with args.
6514 set dummy help2man; ac_word=$2
6515 echo "$as_me:$LINENO: checking for $ac_word" >&5
6516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6517 if test "${ac_cv_path_HELP2MAN+set}" = set; then
6518 echo $ECHO_N "(cached) $ECHO_C" >&6
6519 else
6520 case $HELP2MAN in
6521 [\\/]* | ?:[\\/]*)
6522 ac_cv_path_HELP2MAN="$HELP2MAN" # Let the user override the test with a path.
6525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526 for as_dir in $PATH
6528 IFS=$as_save_IFS
6529 test -z "$as_dir" && as_dir=.
6530 for ac_exec_ext in '' $ac_executable_extensions; do
6531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6532 ac_cv_path_HELP2MAN="$as_dir/$ac_word$ac_exec_ext"
6533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6534 break 2
6536 done
6537 done
6539 test -z "$ac_cv_path_HELP2MAN" && ac_cv_path_HELP2MAN="help2man"
6541 esac
6543 HELP2MAN=$ac_cv_path_HELP2MAN
6545 if test -n "$HELP2MAN"; then
6546 echo "$as_me:$LINENO: result: $HELP2MAN" >&5
6547 echo "${ECHO_T}$HELP2MAN" >&6
6548 else
6549 echo "$as_me:$LINENO: result: no" >&5
6550 echo "${ECHO_T}no" >&6
6554 # Check for a GNU m4 that supports --prefix-builtins
6556 for ac_prog in gm4 gnum4 m4
6558 # Extract the first word of "$ac_prog", so it can be a program name with args.
6559 set dummy $ac_prog; ac_word=$2
6560 echo "$as_me:$LINENO: checking for $ac_word" >&5
6561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6562 if test "${ac_cv_path_M4+set}" = set; then
6563 echo $ECHO_N "(cached) $ECHO_C" >&6
6564 else
6565 case $M4 in
6566 [\\/]* | ?:[\\/]*)
6567 ac_cv_path_M4="$M4" # Let the user override the test with a path.
6570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6571 for as_dir in $PATH
6573 IFS=$as_save_IFS
6574 test -z "$as_dir" && as_dir=.
6575 for ac_exec_ext in '' $ac_executable_extensions; do
6576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6577 ac_cv_path_M4="$as_dir/$ac_word$ac_exec_ext"
6578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6579 break 2
6581 done
6582 done
6585 esac
6587 M4=$ac_cv_path_M4
6589 if test -n "$M4"; then
6590 echo "$as_me:$LINENO: result: $M4" >&5
6591 echo "${ECHO_T}$M4" >&6
6592 else
6593 echo "$as_me:$LINENO: result: no" >&5
6594 echo "${ECHO_T}no" >&6
6597 test -n "$M4" && break
6598 done
6599 test -n "$M4" || M4="m4"
6602 if test x"$M4" != x; then
6603 echo "$as_me:$LINENO: checking for GNU m4" >&5
6604 echo $ECHO_N "checking for GNU m4... $ECHO_C" >&6
6605 case `$M4 --help < /dev/null 2>&1` in
6606 *prefix-builtins*) echo "$as_me:$LINENO: result: yes" >&5
6607 echo "${ECHO_T}yes" >&6 ;;
6608 *) echo "$as_me:$LINENO: result: no" >&5
6609 echo "${ECHO_T}no" >&6 ;
6610 { { echo "$as_me:$LINENO: error: GNU M4 1.4 is required" >&5
6611 echo "$as_me: error: GNU M4 1.4 is required" >&2;}
6612 { (exit 1); exit 1; }; } ;;
6613 esac
6614 else
6615 { { echo "$as_me:$LINENO: error: GNU M4 1.4 is required" >&5
6616 echo "$as_me: error: GNU M4 1.4 is required" >&2;}
6617 { (exit 1); exit 1; }; } ;
6621 cat >>confdefs.h <<_ACEOF
6622 #define M4 "$M4"
6623 _ACEOF
6626 # Extract the first word of "indent", so it can be a program name with args.
6627 set dummy indent; ac_word=$2
6628 echo "$as_me:$LINENO: checking for $ac_word" >&5
6629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6630 if test "${ac_cv_path_INDENT+set}" = set; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
6632 else
6633 case $INDENT in
6634 [\\/]* | ?:[\\/]*)
6635 ac_cv_path_INDENT="$INDENT" # Let the user override the test with a path.
6638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639 for as_dir in $PATH
6641 IFS=$as_save_IFS
6642 test -z "$as_dir" && as_dir=.
6643 for ac_exec_ext in '' $ac_executable_extensions; do
6644 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6645 ac_cv_path_INDENT="$as_dir/$ac_word$ac_exec_ext"
6646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6647 break 2
6649 done
6650 done
6652 test -z "$ac_cv_path_INDENT" && ac_cv_path_INDENT="indent"
6654 esac
6656 INDENT=$ac_cv_path_INDENT
6658 if test -n "$INDENT"; then
6659 echo "$as_me:$LINENO: result: $INDENT" >&5
6660 echo "${ECHO_T}$INDENT" >&6
6661 else
6662 echo "$as_me:$LINENO: result: no" >&5
6663 echo "${ECHO_T}no" >&6
6666 # if INDENT is set to 'indent' then we didn't find indent
6667 if test "$INDENT" != indent ; then
6668 echo "$as_me:$LINENO: checking if $INDENT is GNU indent" >&5
6669 echo $ECHO_N "checking if $INDENT is GNU indent... $ECHO_C" >&6
6670 if $INDENT --version 2>/dev/null | head -n 1|grep "GNU indent" > /dev/null ; then
6671 echo "$as_me:$LINENO: result: yes" >&5
6672 echo "${ECHO_T}yes" >&6
6673 else
6674 echo "$as_me:$LINENO: result: no" >&5
6675 echo "${ECHO_T}no" >&6
6676 { echo "$as_me:$LINENO: WARNING: $INDENT does not appear to be GNU indent." >&5
6677 echo "$as_me: WARNING: $INDENT does not appear to be GNU indent." >&2;}
6679 else
6680 { echo "$as_me:$LINENO: WARNING: no indent program found: make indent target will not function" >&5
6681 echo "$as_me: WARNING: no indent program found: make indent target will not function" >&2;}
6684 # checks for libraries
6686 ac_ext=c
6687 ac_cpp='$CPP $CPPFLAGS'
6688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6691 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6692 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6693 # On Suns, sometimes $CPP names a directory.
6694 if test -n "$CPP" && test -d "$CPP"; then
6695 CPP=
6697 if test -z "$CPP"; then
6698 if test "${ac_cv_prog_CPP+set}" = set; then
6699 echo $ECHO_N "(cached) $ECHO_C" >&6
6700 else
6701 # Double quotes because CPP needs to be expanded
6702 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6704 ac_preproc_ok=false
6705 for ac_c_preproc_warn_flag in '' yes
6707 # Use a header file that comes with gcc, so configuring glibc
6708 # with a fresh cross-compiler works.
6709 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6710 # <limits.h> exists even on freestanding compilers.
6711 # On the NeXT, cc -E runs the code through the compiler's parser,
6712 # not just through cpp. "Syntax error" is here to catch this case.
6713 cat >conftest.$ac_ext <<_ACEOF
6714 /* confdefs.h. */
6715 _ACEOF
6716 cat confdefs.h >>conftest.$ac_ext
6717 cat >>conftest.$ac_ext <<_ACEOF
6718 /* end confdefs.h. */
6719 #ifdef __STDC__
6720 # include <limits.h>
6721 #else
6722 # include <assert.h>
6723 #endif
6724 Syntax error
6725 _ACEOF
6726 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6727 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6728 ac_status=$?
6729 grep -v '^ *+' conftest.er1 >conftest.err
6730 rm -f conftest.er1
6731 cat conftest.err >&5
6732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733 (exit $ac_status); } >/dev/null; then
6734 if test -s conftest.err; then
6735 ac_cpp_err=$ac_c_preproc_warn_flag
6736 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6737 else
6738 ac_cpp_err=
6740 else
6741 ac_cpp_err=yes
6743 if test -z "$ac_cpp_err"; then
6745 else
6746 echo "$as_me: failed program was:" >&5
6747 sed 's/^/| /' conftest.$ac_ext >&5
6749 # Broken: fails on valid input.
6750 continue
6752 rm -f conftest.err conftest.$ac_ext
6754 # OK, works on sane cases. Now check whether non-existent headers
6755 # can be detected and how.
6756 cat >conftest.$ac_ext <<_ACEOF
6757 /* confdefs.h. */
6758 _ACEOF
6759 cat confdefs.h >>conftest.$ac_ext
6760 cat >>conftest.$ac_ext <<_ACEOF
6761 /* end confdefs.h. */
6762 #include <ac_nonexistent.h>
6763 _ACEOF
6764 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6765 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6766 ac_status=$?
6767 grep -v '^ *+' conftest.er1 >conftest.err
6768 rm -f conftest.er1
6769 cat conftest.err >&5
6770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771 (exit $ac_status); } >/dev/null; then
6772 if test -s conftest.err; then
6773 ac_cpp_err=$ac_c_preproc_warn_flag
6774 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6775 else
6776 ac_cpp_err=
6778 else
6779 ac_cpp_err=yes
6781 if test -z "$ac_cpp_err"; then
6782 # Broken: success on invalid input.
6783 continue
6784 else
6785 echo "$as_me: failed program was:" >&5
6786 sed 's/^/| /' conftest.$ac_ext >&5
6788 # Passes both tests.
6789 ac_preproc_ok=:
6790 break
6792 rm -f conftest.err conftest.$ac_ext
6794 done
6795 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6796 rm -f conftest.err conftest.$ac_ext
6797 if $ac_preproc_ok; then
6798 break
6801 done
6802 ac_cv_prog_CPP=$CPP
6805 CPP=$ac_cv_prog_CPP
6806 else
6807 ac_cv_prog_CPP=$CPP
6809 echo "$as_me:$LINENO: result: $CPP" >&5
6810 echo "${ECHO_T}$CPP" >&6
6811 ac_preproc_ok=false
6812 for ac_c_preproc_warn_flag in '' yes
6814 # Use a header file that comes with gcc, so configuring glibc
6815 # with a fresh cross-compiler works.
6816 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6817 # <limits.h> exists even on freestanding compilers.
6818 # On the NeXT, cc -E runs the code through the compiler's parser,
6819 # not just through cpp. "Syntax error" is here to catch this case.
6820 cat >conftest.$ac_ext <<_ACEOF
6821 /* confdefs.h. */
6822 _ACEOF
6823 cat confdefs.h >>conftest.$ac_ext
6824 cat >>conftest.$ac_ext <<_ACEOF
6825 /* end confdefs.h. */
6826 #ifdef __STDC__
6827 # include <limits.h>
6828 #else
6829 # include <assert.h>
6830 #endif
6831 Syntax error
6832 _ACEOF
6833 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6834 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6835 ac_status=$?
6836 grep -v '^ *+' conftest.er1 >conftest.err
6837 rm -f conftest.er1
6838 cat conftest.err >&5
6839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840 (exit $ac_status); } >/dev/null; then
6841 if test -s conftest.err; then
6842 ac_cpp_err=$ac_c_preproc_warn_flag
6843 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6844 else
6845 ac_cpp_err=
6847 else
6848 ac_cpp_err=yes
6850 if test -z "$ac_cpp_err"; then
6852 else
6853 echo "$as_me: failed program was:" >&5
6854 sed 's/^/| /' conftest.$ac_ext >&5
6856 # Broken: fails on valid input.
6857 continue
6859 rm -f conftest.err conftest.$ac_ext
6861 # OK, works on sane cases. Now check whether non-existent headers
6862 # can be detected and how.
6863 cat >conftest.$ac_ext <<_ACEOF
6864 /* confdefs.h. */
6865 _ACEOF
6866 cat confdefs.h >>conftest.$ac_ext
6867 cat >>conftest.$ac_ext <<_ACEOF
6868 /* end confdefs.h. */
6869 #include <ac_nonexistent.h>
6870 _ACEOF
6871 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6872 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6873 ac_status=$?
6874 grep -v '^ *+' conftest.er1 >conftest.err
6875 rm -f conftest.er1
6876 cat conftest.err >&5
6877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878 (exit $ac_status); } >/dev/null; then
6879 if test -s conftest.err; then
6880 ac_cpp_err=$ac_c_preproc_warn_flag
6881 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6882 else
6883 ac_cpp_err=
6885 else
6886 ac_cpp_err=yes
6888 if test -z "$ac_cpp_err"; then
6889 # Broken: success on invalid input.
6890 continue
6891 else
6892 echo "$as_me: failed program was:" >&5
6893 sed 's/^/| /' conftest.$ac_ext >&5
6895 # Passes both tests.
6896 ac_preproc_ok=:
6897 break
6899 rm -f conftest.err conftest.$ac_ext
6901 done
6902 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6903 rm -f conftest.err conftest.$ac_ext
6904 if $ac_preproc_ok; then
6906 else
6907 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6908 See \`config.log' for more details." >&5
6909 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6910 See \`config.log' for more details." >&2;}
6911 { (exit 1); exit 1; }; }
6914 ac_ext=c
6915 ac_cpp='$CPP $CPPFLAGS'
6916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6921 echo "$as_me:$LINENO: checking for egrep" >&5
6922 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6923 if test "${ac_cv_prog_egrep+set}" = set; then
6924 echo $ECHO_N "(cached) $ECHO_C" >&6
6925 else
6926 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6927 then ac_cv_prog_egrep='grep -E'
6928 else ac_cv_prog_egrep='egrep'
6931 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6932 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6933 EGREP=$ac_cv_prog_egrep
6936 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6937 # for constant arguments. Useless!
6938 echo "$as_me:$LINENO: checking for working alloca.h" >&5
6939 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6940 if test "${ac_cv_working_alloca_h+set}" = set; then
6941 echo $ECHO_N "(cached) $ECHO_C" >&6
6942 else
6943 cat >conftest.$ac_ext <<_ACEOF
6944 /* confdefs.h. */
6945 _ACEOF
6946 cat confdefs.h >>conftest.$ac_ext
6947 cat >>conftest.$ac_ext <<_ACEOF
6948 /* end confdefs.h. */
6949 #include <alloca.h>
6951 main ()
6953 char *p = (char *) alloca (2 * sizeof (int));
6955 return 0;
6957 _ACEOF
6958 rm -f conftest.$ac_objext conftest$ac_exeext
6959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6960 (eval $ac_link) 2>conftest.er1
6961 ac_status=$?
6962 grep -v '^ *+' conftest.er1 >conftest.err
6963 rm -f conftest.er1
6964 cat conftest.err >&5
6965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966 (exit $ac_status); } &&
6967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6969 (eval $ac_try) 2>&5
6970 ac_status=$?
6971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6972 (exit $ac_status); }; } &&
6973 { ac_try='test -s conftest$ac_exeext'
6974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6975 (eval $ac_try) 2>&5
6976 ac_status=$?
6977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978 (exit $ac_status); }; }; then
6979 ac_cv_working_alloca_h=yes
6980 else
6981 echo "$as_me: failed program was:" >&5
6982 sed 's/^/| /' conftest.$ac_ext >&5
6984 ac_cv_working_alloca_h=no
6986 rm -f conftest.err conftest.$ac_objext \
6987 conftest$ac_exeext conftest.$ac_ext
6989 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6990 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6991 if test $ac_cv_working_alloca_h = yes; then
6993 cat >>confdefs.h <<\_ACEOF
6994 #define HAVE_ALLOCA_H 1
6995 _ACEOF
6999 echo "$as_me:$LINENO: checking for alloca" >&5
7000 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7001 if test "${ac_cv_func_alloca_works+set}" = set; then
7002 echo $ECHO_N "(cached) $ECHO_C" >&6
7003 else
7004 cat >conftest.$ac_ext <<_ACEOF
7005 /* confdefs.h. */
7006 _ACEOF
7007 cat confdefs.h >>conftest.$ac_ext
7008 cat >>conftest.$ac_ext <<_ACEOF
7009 /* end confdefs.h. */
7010 #ifdef __GNUC__
7011 # define alloca __builtin_alloca
7012 #else
7013 # ifdef _MSC_VER
7014 # include <malloc.h>
7015 # define alloca _alloca
7016 # else
7017 # if HAVE_ALLOCA_H
7018 # include <alloca.h>
7019 # else
7020 # ifdef _AIX
7021 #pragma alloca
7022 # else
7023 # ifndef alloca /* predefined by HP cc +Olibcalls */
7024 char *alloca ();
7025 # endif
7026 # endif
7027 # endif
7028 # endif
7029 #endif
7032 main ()
7034 char *p = (char *) alloca (1);
7036 return 0;
7038 _ACEOF
7039 rm -f conftest.$ac_objext conftest$ac_exeext
7040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7041 (eval $ac_link) 2>conftest.er1
7042 ac_status=$?
7043 grep -v '^ *+' conftest.er1 >conftest.err
7044 rm -f conftest.er1
7045 cat conftest.err >&5
7046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047 (exit $ac_status); } &&
7048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7050 (eval $ac_try) 2>&5
7051 ac_status=$?
7052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053 (exit $ac_status); }; } &&
7054 { ac_try='test -s conftest$ac_exeext'
7055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7056 (eval $ac_try) 2>&5
7057 ac_status=$?
7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); }; }; then
7060 ac_cv_func_alloca_works=yes
7061 else
7062 echo "$as_me: failed program was:" >&5
7063 sed 's/^/| /' conftest.$ac_ext >&5
7065 ac_cv_func_alloca_works=no
7067 rm -f conftest.err conftest.$ac_objext \
7068 conftest$ac_exeext conftest.$ac_ext
7070 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7071 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
7073 if test $ac_cv_func_alloca_works = yes; then
7075 cat >>confdefs.h <<\_ACEOF
7076 #define HAVE_ALLOCA 1
7077 _ACEOF
7079 else
7080 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7081 # that cause trouble. Some versions do not even contain alloca or
7082 # contain a buggy version. If you still want to use their alloca,
7083 # use ar to extract alloca.o from them instead of compiling alloca.c.
7085 ALLOCA=alloca.$ac_objext
7087 cat >>confdefs.h <<\_ACEOF
7088 #define C_ALLOCA 1
7089 _ACEOF
7092 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7093 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
7094 if test "${ac_cv_os_cray+set}" = set; then
7095 echo $ECHO_N "(cached) $ECHO_C" >&6
7096 else
7097 cat >conftest.$ac_ext <<_ACEOF
7098 /* confdefs.h. */
7099 _ACEOF
7100 cat confdefs.h >>conftest.$ac_ext
7101 cat >>conftest.$ac_ext <<_ACEOF
7102 /* end confdefs.h. */
7103 #if defined(CRAY) && ! defined(CRAY2)
7104 webecray
7105 #else
7106 wenotbecray
7107 #endif
7109 _ACEOF
7110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7111 $EGREP "webecray" >/dev/null 2>&1; then
7112 ac_cv_os_cray=yes
7113 else
7114 ac_cv_os_cray=no
7116 rm -f conftest*
7119 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7120 echo "${ECHO_T}$ac_cv_os_cray" >&6
7121 if test $ac_cv_os_cray = yes; then
7122 for ac_func in _getb67 GETB67 getb67; do
7123 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7124 echo "$as_me:$LINENO: checking for $ac_func" >&5
7125 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7126 if eval "test \"\${$as_ac_var+set}\" = set"; then
7127 echo $ECHO_N "(cached) $ECHO_C" >&6
7128 else
7129 cat >conftest.$ac_ext <<_ACEOF
7130 /* confdefs.h. */
7131 _ACEOF
7132 cat confdefs.h >>conftest.$ac_ext
7133 cat >>conftest.$ac_ext <<_ACEOF
7134 /* end confdefs.h. */
7135 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7136 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7137 #define $ac_func innocuous_$ac_func
7139 /* System header to define __stub macros and hopefully few prototypes,
7140 which can conflict with char $ac_func (); below.
7141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7142 <limits.h> exists even on freestanding compilers. */
7144 #ifdef __STDC__
7145 # include <limits.h>
7146 #else
7147 # include <assert.h>
7148 #endif
7150 #undef $ac_func
7152 /* Override any gcc2 internal prototype to avoid an error. */
7153 #ifdef __cplusplus
7154 extern "C"
7156 #endif
7157 /* We use char because int might match the return type of a gcc2
7158 builtin and then its argument prototype would still apply. */
7159 char $ac_func ();
7160 /* The GNU C library defines this for functions which it implements
7161 to always fail with ENOSYS. Some functions are actually named
7162 something starting with __ and the normal name is an alias. */
7163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7164 choke me
7165 #else
7166 char (*f) () = $ac_func;
7167 #endif
7168 #ifdef __cplusplus
7170 #endif
7173 main ()
7175 return f != $ac_func;
7177 return 0;
7179 _ACEOF
7180 rm -f conftest.$ac_objext conftest$ac_exeext
7181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7182 (eval $ac_link) 2>conftest.er1
7183 ac_status=$?
7184 grep -v '^ *+' conftest.er1 >conftest.err
7185 rm -f conftest.er1
7186 cat conftest.err >&5
7187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188 (exit $ac_status); } &&
7189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7191 (eval $ac_try) 2>&5
7192 ac_status=$?
7193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); }; } &&
7195 { ac_try='test -s conftest$ac_exeext'
7196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7197 (eval $ac_try) 2>&5
7198 ac_status=$?
7199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200 (exit $ac_status); }; }; then
7201 eval "$as_ac_var=yes"
7202 else
7203 echo "$as_me: failed program was:" >&5
7204 sed 's/^/| /' conftest.$ac_ext >&5
7206 eval "$as_ac_var=no"
7208 rm -f conftest.err conftest.$ac_objext \
7209 conftest$ac_exeext conftest.$ac_ext
7211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7212 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7213 if test `eval echo '${'$as_ac_var'}'` = yes; then
7215 cat >>confdefs.h <<_ACEOF
7216 #define CRAY_STACKSEG_END $ac_func
7217 _ACEOF
7219 break
7222 done
7225 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7226 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7227 if test "${ac_cv_c_stack_direction+set}" = set; then
7228 echo $ECHO_N "(cached) $ECHO_C" >&6
7229 else
7230 if test "$cross_compiling" = yes; then
7231 ac_cv_c_stack_direction=0
7232 else
7233 cat >conftest.$ac_ext <<_ACEOF
7234 /* confdefs.h. */
7235 _ACEOF
7236 cat confdefs.h >>conftest.$ac_ext
7237 cat >>conftest.$ac_ext <<_ACEOF
7238 /* end confdefs.h. */
7240 find_stack_direction ()
7242 static char *addr = 0;
7243 auto char dummy;
7244 if (addr == 0)
7246 addr = &dummy;
7247 return find_stack_direction ();
7249 else
7250 return (&dummy > addr) ? 1 : -1;
7254 main ()
7256 exit (find_stack_direction () < 0);
7258 _ACEOF
7259 rm -f conftest$ac_exeext
7260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7261 (eval $ac_link) 2>&5
7262 ac_status=$?
7263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7266 (eval $ac_try) 2>&5
7267 ac_status=$?
7268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269 (exit $ac_status); }; }; then
7270 ac_cv_c_stack_direction=1
7271 else
7272 echo "$as_me: program exited with status $ac_status" >&5
7273 echo "$as_me: failed program was:" >&5
7274 sed 's/^/| /' conftest.$ac_ext >&5
7276 ( exit $ac_status )
7277 ac_cv_c_stack_direction=-1
7279 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7282 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7283 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7285 cat >>confdefs.h <<_ACEOF
7286 #define STACK_DIRECTION $ac_cv_c_stack_direction
7287 _ACEOF
7292 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7293 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7294 if test "${ac_cv_header_stdc+set}" = set; then
7295 echo $ECHO_N "(cached) $ECHO_C" >&6
7296 else
7297 cat >conftest.$ac_ext <<_ACEOF
7298 /* confdefs.h. */
7299 _ACEOF
7300 cat confdefs.h >>conftest.$ac_ext
7301 cat >>conftest.$ac_ext <<_ACEOF
7302 /* end confdefs.h. */
7303 #include <stdlib.h>
7304 #include <stdarg.h>
7305 #include <string.h>
7306 #include <float.h>
7309 main ()
7313 return 0;
7315 _ACEOF
7316 rm -f conftest.$ac_objext
7317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7318 (eval $ac_compile) 2>conftest.er1
7319 ac_status=$?
7320 grep -v '^ *+' conftest.er1 >conftest.err
7321 rm -f conftest.er1
7322 cat conftest.err >&5
7323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324 (exit $ac_status); } &&
7325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7327 (eval $ac_try) 2>&5
7328 ac_status=$?
7329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330 (exit $ac_status); }; } &&
7331 { ac_try='test -s conftest.$ac_objext'
7332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7333 (eval $ac_try) 2>&5
7334 ac_status=$?
7335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336 (exit $ac_status); }; }; then
7337 ac_cv_header_stdc=yes
7338 else
7339 echo "$as_me: failed program was:" >&5
7340 sed 's/^/| /' conftest.$ac_ext >&5
7342 ac_cv_header_stdc=no
7344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7346 if test $ac_cv_header_stdc = yes; then
7347 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7348 cat >conftest.$ac_ext <<_ACEOF
7349 /* confdefs.h. */
7350 _ACEOF
7351 cat confdefs.h >>conftest.$ac_ext
7352 cat >>conftest.$ac_ext <<_ACEOF
7353 /* end confdefs.h. */
7354 #include <string.h>
7356 _ACEOF
7357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7358 $EGREP "memchr" >/dev/null 2>&1; then
7360 else
7361 ac_cv_header_stdc=no
7363 rm -f conftest*
7367 if test $ac_cv_header_stdc = yes; then
7368 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7369 cat >conftest.$ac_ext <<_ACEOF
7370 /* confdefs.h. */
7371 _ACEOF
7372 cat confdefs.h >>conftest.$ac_ext
7373 cat >>conftest.$ac_ext <<_ACEOF
7374 /* end confdefs.h. */
7375 #include <stdlib.h>
7377 _ACEOF
7378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7379 $EGREP "free" >/dev/null 2>&1; then
7381 else
7382 ac_cv_header_stdc=no
7384 rm -f conftest*
7388 if test $ac_cv_header_stdc = yes; then
7389 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7390 if test "$cross_compiling" = yes; then
7392 else
7393 cat >conftest.$ac_ext <<_ACEOF
7394 /* confdefs.h. */
7395 _ACEOF
7396 cat confdefs.h >>conftest.$ac_ext
7397 cat >>conftest.$ac_ext <<_ACEOF
7398 /* end confdefs.h. */
7399 #include <ctype.h>
7400 #if ((' ' & 0x0FF) == 0x020)
7401 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7402 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7403 #else
7404 # define ISLOWER(c) \
7405 (('a' <= (c) && (c) <= 'i') \
7406 || ('j' <= (c) && (c) <= 'r') \
7407 || ('s' <= (c) && (c) <= 'z'))
7408 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7409 #endif
7411 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7413 main ()
7415 int i;
7416 for (i = 0; i < 256; i++)
7417 if (XOR (islower (i), ISLOWER (i))
7418 || toupper (i) != TOUPPER (i))
7419 exit(2);
7420 exit (0);
7422 _ACEOF
7423 rm -f conftest$ac_exeext
7424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7425 (eval $ac_link) 2>&5
7426 ac_status=$?
7427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7430 (eval $ac_try) 2>&5
7431 ac_status=$?
7432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433 (exit $ac_status); }; }; then
7435 else
7436 echo "$as_me: program exited with status $ac_status" >&5
7437 echo "$as_me: failed program was:" >&5
7438 sed 's/^/| /' conftest.$ac_ext >&5
7440 ( exit $ac_status )
7441 ac_cv_header_stdc=no
7443 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7447 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7448 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7449 if test $ac_cv_header_stdc = yes; then
7451 cat >>confdefs.h <<\_ACEOF
7452 #define STDC_HEADERS 1
7453 _ACEOF
7457 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7458 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7459 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7460 echo $ECHO_N "(cached) $ECHO_C" >&6
7461 else
7462 cat >conftest.$ac_ext <<_ACEOF
7463 /* confdefs.h. */
7464 _ACEOF
7465 cat confdefs.h >>conftest.$ac_ext
7466 cat >>conftest.$ac_ext <<_ACEOF
7467 /* end confdefs.h. */
7468 #include <sys/types.h>
7469 #include <sys/wait.h>
7470 #ifndef WEXITSTATUS
7471 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7472 #endif
7473 #ifndef WIFEXITED
7474 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7475 #endif
7478 main ()
7480 int s;
7481 wait (&s);
7482 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7484 return 0;
7486 _ACEOF
7487 rm -f conftest.$ac_objext
7488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7489 (eval $ac_compile) 2>conftest.er1
7490 ac_status=$?
7491 grep -v '^ *+' conftest.er1 >conftest.err
7492 rm -f conftest.er1
7493 cat conftest.err >&5
7494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495 (exit $ac_status); } &&
7496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7498 (eval $ac_try) 2>&5
7499 ac_status=$?
7500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501 (exit $ac_status); }; } &&
7502 { ac_try='test -s conftest.$ac_objext'
7503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7504 (eval $ac_try) 2>&5
7505 ac_status=$?
7506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507 (exit $ac_status); }; }; then
7508 ac_cv_header_sys_wait_h=yes
7509 else
7510 echo "$as_me: failed program was:" >&5
7511 sed 's/^/| /' conftest.$ac_ext >&5
7513 ac_cv_header_sys_wait_h=no
7515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7517 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7518 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7519 if test $ac_cv_header_sys_wait_h = yes; then
7521 cat >>confdefs.h <<\_ACEOF
7522 #define HAVE_SYS_WAIT_H 1
7523 _ACEOF
7527 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7537 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7538 inttypes.h stdint.h unistd.h
7540 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7541 echo "$as_me:$LINENO: checking for $ac_header" >&5
7542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7544 echo $ECHO_N "(cached) $ECHO_C" >&6
7545 else
7546 cat >conftest.$ac_ext <<_ACEOF
7547 /* confdefs.h. */
7548 _ACEOF
7549 cat confdefs.h >>conftest.$ac_ext
7550 cat >>conftest.$ac_ext <<_ACEOF
7551 /* end confdefs.h. */
7552 $ac_includes_default
7554 #include <$ac_header>
7555 _ACEOF
7556 rm -f conftest.$ac_objext
7557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7558 (eval $ac_compile) 2>conftest.er1
7559 ac_status=$?
7560 grep -v '^ *+' conftest.er1 >conftest.err
7561 rm -f conftest.er1
7562 cat conftest.err >&5
7563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564 (exit $ac_status); } &&
7565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7567 (eval $ac_try) 2>&5
7568 ac_status=$?
7569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570 (exit $ac_status); }; } &&
7571 { ac_try='test -s conftest.$ac_objext'
7572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7573 (eval $ac_try) 2>&5
7574 ac_status=$?
7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); }; }; then
7577 eval "$as_ac_Header=yes"
7578 else
7579 echo "$as_me: failed program was:" >&5
7580 sed 's/^/| /' conftest.$ac_ext >&5
7582 eval "$as_ac_Header=no"
7584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7587 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7589 cat >>confdefs.h <<_ACEOF
7590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7591 _ACEOF
7595 done
7609 for ac_header in inttypes.h libintl.h limits.h locale.h malloc.h netinet/in.h stddef.h stdlib.h string.h strings.h unistd.h
7611 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7613 echo "$as_me:$LINENO: checking for $ac_header" >&5
7614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7616 echo $ECHO_N "(cached) $ECHO_C" >&6
7618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7619 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7620 else
7621 # Is the header compilable?
7622 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7623 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7624 cat >conftest.$ac_ext <<_ACEOF
7625 /* confdefs.h. */
7626 _ACEOF
7627 cat confdefs.h >>conftest.$ac_ext
7628 cat >>conftest.$ac_ext <<_ACEOF
7629 /* end confdefs.h. */
7630 $ac_includes_default
7631 #include <$ac_header>
7632 _ACEOF
7633 rm -f conftest.$ac_objext
7634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7635 (eval $ac_compile) 2>conftest.er1
7636 ac_status=$?
7637 grep -v '^ *+' conftest.er1 >conftest.err
7638 rm -f conftest.er1
7639 cat conftest.err >&5
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); } &&
7642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7644 (eval $ac_try) 2>&5
7645 ac_status=$?
7646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647 (exit $ac_status); }; } &&
7648 { ac_try='test -s conftest.$ac_objext'
7649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7650 (eval $ac_try) 2>&5
7651 ac_status=$?
7652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653 (exit $ac_status); }; }; then
7654 ac_header_compiler=yes
7655 else
7656 echo "$as_me: failed program was:" >&5
7657 sed 's/^/| /' conftest.$ac_ext >&5
7659 ac_header_compiler=no
7661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7662 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7663 echo "${ECHO_T}$ac_header_compiler" >&6
7665 # Is the header present?
7666 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7667 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7668 cat >conftest.$ac_ext <<_ACEOF
7669 /* confdefs.h. */
7670 _ACEOF
7671 cat confdefs.h >>conftest.$ac_ext
7672 cat >>conftest.$ac_ext <<_ACEOF
7673 /* end confdefs.h. */
7674 #include <$ac_header>
7675 _ACEOF
7676 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7677 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7678 ac_status=$?
7679 grep -v '^ *+' conftest.er1 >conftest.err
7680 rm -f conftest.er1
7681 cat conftest.err >&5
7682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683 (exit $ac_status); } >/dev/null; then
7684 if test -s conftest.err; then
7685 ac_cpp_err=$ac_c_preproc_warn_flag
7686 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7687 else
7688 ac_cpp_err=
7690 else
7691 ac_cpp_err=yes
7693 if test -z "$ac_cpp_err"; then
7694 ac_header_preproc=yes
7695 else
7696 echo "$as_me: failed program was:" >&5
7697 sed 's/^/| /' conftest.$ac_ext >&5
7699 ac_header_preproc=no
7701 rm -f conftest.err conftest.$ac_ext
7702 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7703 echo "${ECHO_T}$ac_header_preproc" >&6
7705 # So? What about this header?
7706 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7707 yes:no: )
7708 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7709 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7711 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7712 ac_header_preproc=yes
7714 no:yes:* )
7715 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7716 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7717 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7718 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7719 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7720 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7721 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7722 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7724 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7725 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7726 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7728 cat <<\_ASBOX
7729 ## ---------------------------------------------- ##
7730 ## Report this to flex-help@lists.sourceforge.net ##
7731 ## ---------------------------------------------- ##
7732 _ASBOX
7734 sed "s/^/$as_me: WARNING: /" >&2
7736 esac
7737 echo "$as_me:$LINENO: checking for $ac_header" >&5
7738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7740 echo $ECHO_N "(cached) $ECHO_C" >&6
7741 else
7742 eval "$as_ac_Header=\$ac_header_preproc"
7744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7745 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7748 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7749 cat >>confdefs.h <<_ACEOF
7750 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7751 _ACEOF
7755 done
7758 echo "$as_me:$LINENO: checking for log10 in -lm" >&5
7759 echo $ECHO_N "checking for log10 in -lm... $ECHO_C" >&6
7760 if test "${ac_cv_lib_m_log10+set}" = set; then
7761 echo $ECHO_N "(cached) $ECHO_C" >&6
7762 else
7763 ac_check_lib_save_LIBS=$LIBS
7764 LIBS="-lm $LIBS"
7765 cat >conftest.$ac_ext <<_ACEOF
7766 /* confdefs.h. */
7767 _ACEOF
7768 cat confdefs.h >>conftest.$ac_ext
7769 cat >>conftest.$ac_ext <<_ACEOF
7770 /* end confdefs.h. */
7772 /* Override any gcc2 internal prototype to avoid an error. */
7773 #ifdef __cplusplus
7774 extern "C"
7775 #endif
7776 /* We use char because int might match the return type of a gcc2
7777 builtin and then its argument prototype would still apply. */
7778 char log10 ();
7780 main ()
7782 log10 ();
7784 return 0;
7786 _ACEOF
7787 rm -f conftest.$ac_objext conftest$ac_exeext
7788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7789 (eval $ac_link) 2>conftest.er1
7790 ac_status=$?
7791 grep -v '^ *+' conftest.er1 >conftest.err
7792 rm -f conftest.er1
7793 cat conftest.err >&5
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); } &&
7796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7798 (eval $ac_try) 2>&5
7799 ac_status=$?
7800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801 (exit $ac_status); }; } &&
7802 { ac_try='test -s conftest$ac_exeext'
7803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7804 (eval $ac_try) 2>&5
7805 ac_status=$?
7806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807 (exit $ac_status); }; }; then
7808 ac_cv_lib_m_log10=yes
7809 else
7810 echo "$as_me: failed program was:" >&5
7811 sed 's/^/| /' conftest.$ac_ext >&5
7813 ac_cv_lib_m_log10=no
7815 rm -f conftest.err conftest.$ac_objext \
7816 conftest$ac_exeext conftest.$ac_ext
7817 LIBS=$ac_check_lib_save_LIBS
7819 echo "$as_me:$LINENO: result: $ac_cv_lib_m_log10" >&5
7820 echo "${ECHO_T}$ac_cv_lib_m_log10" >&6
7821 if test $ac_cv_lib_m_log10 = yes; then
7822 cat >>confdefs.h <<_ACEOF
7823 #define HAVE_LIBM 1
7824 _ACEOF
7826 LIBS="-lm $LIBS"
7831 # The test test-pthread uses libpthread, so we check for it here, but
7832 # all we need is the preprocessor symbol defined since we don't need
7833 # LIBS to include libpthread for building flex.
7835 echo "$as_me:$LINENO: checking for pthread_mutex_lock in -lpthread" >&5
7836 echo $ECHO_N "checking for pthread_mutex_lock in -lpthread... $ECHO_C" >&6
7837 if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then
7838 echo $ECHO_N "(cached) $ECHO_C" >&6
7839 else
7840 ac_check_lib_save_LIBS=$LIBS
7841 LIBS="-lpthread $LIBS"
7842 cat >conftest.$ac_ext <<_ACEOF
7843 /* confdefs.h. */
7844 _ACEOF
7845 cat confdefs.h >>conftest.$ac_ext
7846 cat >>conftest.$ac_ext <<_ACEOF
7847 /* end confdefs.h. */
7849 /* Override any gcc2 internal prototype to avoid an error. */
7850 #ifdef __cplusplus
7851 extern "C"
7852 #endif
7853 /* We use char because int might match the return type of a gcc2
7854 builtin and then its argument prototype would still apply. */
7855 char pthread_mutex_lock ();
7857 main ()
7859 pthread_mutex_lock ();
7861 return 0;
7863 _ACEOF
7864 rm -f conftest.$ac_objext conftest$ac_exeext
7865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7866 (eval $ac_link) 2>conftest.er1
7867 ac_status=$?
7868 grep -v '^ *+' conftest.er1 >conftest.err
7869 rm -f conftest.er1
7870 cat conftest.err >&5
7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 (exit $ac_status); } &&
7873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7875 (eval $ac_try) 2>&5
7876 ac_status=$?
7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 (exit $ac_status); }; } &&
7879 { ac_try='test -s conftest$ac_exeext'
7880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7881 (eval $ac_try) 2>&5
7882 ac_status=$?
7883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884 (exit $ac_status); }; }; then
7885 ac_cv_lib_pthread_pthread_mutex_lock=yes
7886 else
7887 echo "$as_me: failed program was:" >&5
7888 sed 's/^/| /' conftest.$ac_ext >&5
7890 ac_cv_lib_pthread_pthread_mutex_lock=no
7892 rm -f conftest.err conftest.$ac_objext \
7893 conftest$ac_exeext conftest.$ac_ext
7894 LIBS=$ac_check_lib_save_LIBS
7896 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
7897 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_lock" >&6
7898 if test $ac_cv_lib_pthread_pthread_mutex_lock = yes; then
7900 cat >>confdefs.h <<\_ACEOF
7901 #define HAVE_LIBPTHREAD 1
7902 _ACEOF
7904 else
7906 cat >>confdefs.h <<\_ACEOF
7907 #define HAVE_LIBPTHREAD 0
7908 _ACEOF
7914 for ac_header in pthread.h
7916 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7918 echo "$as_me:$LINENO: checking for $ac_header" >&5
7919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7921 echo $ECHO_N "(cached) $ECHO_C" >&6
7923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7924 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7925 else
7926 # Is the header compilable?
7927 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7928 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7929 cat >conftest.$ac_ext <<_ACEOF
7930 /* confdefs.h. */
7931 _ACEOF
7932 cat confdefs.h >>conftest.$ac_ext
7933 cat >>conftest.$ac_ext <<_ACEOF
7934 /* end confdefs.h. */
7935 $ac_includes_default
7936 #include <$ac_header>
7937 _ACEOF
7938 rm -f conftest.$ac_objext
7939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7940 (eval $ac_compile) 2>conftest.er1
7941 ac_status=$?
7942 grep -v '^ *+' conftest.er1 >conftest.err
7943 rm -f conftest.er1
7944 cat conftest.err >&5
7945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946 (exit $ac_status); } &&
7947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7949 (eval $ac_try) 2>&5
7950 ac_status=$?
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); }; } &&
7953 { ac_try='test -s conftest.$ac_objext'
7954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7955 (eval $ac_try) 2>&5
7956 ac_status=$?
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); }; }; then
7959 ac_header_compiler=yes
7960 else
7961 echo "$as_me: failed program was:" >&5
7962 sed 's/^/| /' conftest.$ac_ext >&5
7964 ac_header_compiler=no
7966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7967 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7968 echo "${ECHO_T}$ac_header_compiler" >&6
7970 # Is the header present?
7971 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7972 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7973 cat >conftest.$ac_ext <<_ACEOF
7974 /* confdefs.h. */
7975 _ACEOF
7976 cat confdefs.h >>conftest.$ac_ext
7977 cat >>conftest.$ac_ext <<_ACEOF
7978 /* end confdefs.h. */
7979 #include <$ac_header>
7980 _ACEOF
7981 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7982 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7983 ac_status=$?
7984 grep -v '^ *+' conftest.er1 >conftest.err
7985 rm -f conftest.er1
7986 cat conftest.err >&5
7987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988 (exit $ac_status); } >/dev/null; then
7989 if test -s conftest.err; then
7990 ac_cpp_err=$ac_c_preproc_warn_flag
7991 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7992 else
7993 ac_cpp_err=
7995 else
7996 ac_cpp_err=yes
7998 if test -z "$ac_cpp_err"; then
7999 ac_header_preproc=yes
8000 else
8001 echo "$as_me: failed program was:" >&5
8002 sed 's/^/| /' conftest.$ac_ext >&5
8004 ac_header_preproc=no
8006 rm -f conftest.err conftest.$ac_ext
8007 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8008 echo "${ECHO_T}$ac_header_preproc" >&6
8010 # So? What about this header?
8011 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8012 yes:no: )
8013 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8014 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8015 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8016 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8017 ac_header_preproc=yes
8019 no:yes:* )
8020 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8021 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8022 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8023 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8024 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8025 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8026 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8027 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8029 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8030 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8031 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8033 cat <<\_ASBOX
8034 ## ---------------------------------------------- ##
8035 ## Report this to flex-help@lists.sourceforge.net ##
8036 ## ---------------------------------------------- ##
8037 _ASBOX
8039 sed "s/^/$as_me: WARNING: /" >&2
8041 esac
8042 echo "$as_me:$LINENO: checking for $ac_header" >&5
8043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8045 echo $ECHO_N "(cached) $ECHO_C" >&6
8046 else
8047 eval "$as_ac_Header=\$ac_header_preproc"
8049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8050 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8053 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8054 cat >>confdefs.h <<_ACEOF
8055 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8056 _ACEOF
8060 done
8063 # Checks for typedefs, structures, and compiler characteristics.
8065 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
8066 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
8067 if test "${ac_cv_header_stdbool_h+set}" = set; then
8068 echo $ECHO_N "(cached) $ECHO_C" >&6
8069 else
8070 cat >conftest.$ac_ext <<_ACEOF
8071 /* confdefs.h. */
8072 _ACEOF
8073 cat confdefs.h >>conftest.$ac_ext
8074 cat >>conftest.$ac_ext <<_ACEOF
8075 /* end confdefs.h. */
8077 #include <stdbool.h>
8078 #ifndef bool
8079 # error bool is not defined
8080 #endif
8081 #ifndef false
8082 # error false is not defined
8083 #endif
8084 #if false
8085 # error false is not 0
8086 #endif
8087 #ifndef true
8088 # error true is not defined
8089 #endif
8090 #if true != 1
8091 # error true is not 1
8092 #endif
8093 #ifndef __bool_true_false_are_defined
8094 # error __bool_true_false_are_defined is not defined
8095 #endif
8097 struct s { _Bool s: 1; _Bool t; } s;
8099 char a[true == 1 ? 1 : -1];
8100 char b[false == 0 ? 1 : -1];
8101 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
8102 char d[(bool) -0.5 == true ? 1 : -1];
8103 bool e = &s;
8104 char f[(_Bool) -0.0 == false ? 1 : -1];
8105 char g[true];
8106 char h[sizeof (_Bool)];
8107 char i[sizeof s.t];
8110 main ()
8112 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
8114 return 0;
8116 _ACEOF
8117 rm -f conftest.$ac_objext
8118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8119 (eval $ac_compile) 2>conftest.er1
8120 ac_status=$?
8121 grep -v '^ *+' conftest.er1 >conftest.err
8122 rm -f conftest.er1
8123 cat conftest.err >&5
8124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125 (exit $ac_status); } &&
8126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8128 (eval $ac_try) 2>&5
8129 ac_status=$?
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 (exit $ac_status); }; } &&
8132 { ac_try='test -s conftest.$ac_objext'
8133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8134 (eval $ac_try) 2>&5
8135 ac_status=$?
8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); }; }; then
8138 ac_cv_header_stdbool_h=yes
8139 else
8140 echo "$as_me: failed program was:" >&5
8141 sed 's/^/| /' conftest.$ac_ext >&5
8143 ac_cv_header_stdbool_h=no
8145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8147 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
8148 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
8149 echo "$as_me:$LINENO: checking for _Bool" >&5
8150 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
8151 if test "${ac_cv_type__Bool+set}" = set; then
8152 echo $ECHO_N "(cached) $ECHO_C" >&6
8153 else
8154 cat >conftest.$ac_ext <<_ACEOF
8155 /* confdefs.h. */
8156 _ACEOF
8157 cat confdefs.h >>conftest.$ac_ext
8158 cat >>conftest.$ac_ext <<_ACEOF
8159 /* end confdefs.h. */
8160 $ac_includes_default
8162 main ()
8164 if ((_Bool *) 0)
8165 return 0;
8166 if (sizeof (_Bool))
8167 return 0;
8169 return 0;
8171 _ACEOF
8172 rm -f conftest.$ac_objext
8173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8174 (eval $ac_compile) 2>conftest.er1
8175 ac_status=$?
8176 grep -v '^ *+' conftest.er1 >conftest.err
8177 rm -f conftest.er1
8178 cat conftest.err >&5
8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180 (exit $ac_status); } &&
8181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8183 (eval $ac_try) 2>&5
8184 ac_status=$?
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); }; } &&
8187 { ac_try='test -s conftest.$ac_objext'
8188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8189 (eval $ac_try) 2>&5
8190 ac_status=$?
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); }; }; then
8193 ac_cv_type__Bool=yes
8194 else
8195 echo "$as_me: failed program was:" >&5
8196 sed 's/^/| /' conftest.$ac_ext >&5
8198 ac_cv_type__Bool=no
8200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8202 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
8203 echo "${ECHO_T}$ac_cv_type__Bool" >&6
8204 if test $ac_cv_type__Bool = yes; then
8206 cat >>confdefs.h <<_ACEOF
8207 #define HAVE__BOOL 1
8208 _ACEOF
8213 if test $ac_cv_header_stdbool_h = yes; then
8215 cat >>confdefs.h <<\_ACEOF
8216 #define HAVE_STDBOOL_H 1
8217 _ACEOF
8221 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8222 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8223 if test "${ac_cv_c_const+set}" = set; then
8224 echo $ECHO_N "(cached) $ECHO_C" >&6
8225 else
8226 cat >conftest.$ac_ext <<_ACEOF
8227 /* confdefs.h. */
8228 _ACEOF
8229 cat confdefs.h >>conftest.$ac_ext
8230 cat >>conftest.$ac_ext <<_ACEOF
8231 /* end confdefs.h. */
8234 main ()
8236 /* FIXME: Include the comments suggested by Paul. */
8237 #ifndef __cplusplus
8238 /* Ultrix mips cc rejects this. */
8239 typedef int charset[2];
8240 const charset x;
8241 /* SunOS 4.1.1 cc rejects this. */
8242 char const *const *ccp;
8243 char **p;
8244 /* NEC SVR4.0.2 mips cc rejects this. */
8245 struct point {int x, y;};
8246 static struct point const zero = {0,0};
8247 /* AIX XL C 1.02.0.0 rejects this.
8248 It does not let you subtract one const X* pointer from another in
8249 an arm of an if-expression whose if-part is not a constant
8250 expression */
8251 const char *g = "string";
8252 ccp = &g + (g ? g-g : 0);
8253 /* HPUX 7.0 cc rejects these. */
8254 ++ccp;
8255 p = (char**) ccp;
8256 ccp = (char const *const *) p;
8257 { /* SCO 3.2v4 cc rejects this. */
8258 char *t;
8259 char const *s = 0 ? (char *) 0 : (char const *) 0;
8261 *t++ = 0;
8263 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8264 int x[] = {25, 17};
8265 const int *foo = &x[0];
8266 ++foo;
8268 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8269 typedef const int *iptr;
8270 iptr p = 0;
8271 ++p;
8273 { /* AIX XL C 1.02.0.0 rejects this saying
8274 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8275 struct s { int j; const int *ap[3]; };
8276 struct s *b; b->j = 5;
8278 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8279 const int foo = 10;
8281 #endif
8284 return 0;
8286 _ACEOF
8287 rm -f conftest.$ac_objext
8288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8289 (eval $ac_compile) 2>conftest.er1
8290 ac_status=$?
8291 grep -v '^ *+' conftest.er1 >conftest.err
8292 rm -f conftest.er1
8293 cat conftest.err >&5
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); } &&
8296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8298 (eval $ac_try) 2>&5
8299 ac_status=$?
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); }; } &&
8302 { ac_try='test -s conftest.$ac_objext'
8303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8304 (eval $ac_try) 2>&5
8305 ac_status=$?
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); }; }; then
8308 ac_cv_c_const=yes
8309 else
8310 echo "$as_me: failed program was:" >&5
8311 sed 's/^/| /' conftest.$ac_ext >&5
8313 ac_cv_c_const=no
8315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8317 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8318 echo "${ECHO_T}$ac_cv_c_const" >&6
8319 if test $ac_cv_c_const = no; then
8321 cat >>confdefs.h <<\_ACEOF
8322 #define const
8323 _ACEOF
8327 echo "$as_me:$LINENO: checking for size_t" >&5
8328 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8329 if test "${ac_cv_type_size_t+set}" = set; then
8330 echo $ECHO_N "(cached) $ECHO_C" >&6
8331 else
8332 cat >conftest.$ac_ext <<_ACEOF
8333 /* confdefs.h. */
8334 _ACEOF
8335 cat confdefs.h >>conftest.$ac_ext
8336 cat >>conftest.$ac_ext <<_ACEOF
8337 /* end confdefs.h. */
8338 $ac_includes_default
8340 main ()
8342 if ((size_t *) 0)
8343 return 0;
8344 if (sizeof (size_t))
8345 return 0;
8347 return 0;
8349 _ACEOF
8350 rm -f conftest.$ac_objext
8351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8352 (eval $ac_compile) 2>conftest.er1
8353 ac_status=$?
8354 grep -v '^ *+' conftest.er1 >conftest.err
8355 rm -f conftest.er1
8356 cat conftest.err >&5
8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358 (exit $ac_status); } &&
8359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8361 (eval $ac_try) 2>&5
8362 ac_status=$?
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); }; } &&
8365 { ac_try='test -s conftest.$ac_objext'
8366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8367 (eval $ac_try) 2>&5
8368 ac_status=$?
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); }; }; then
8371 ac_cv_type_size_t=yes
8372 else
8373 echo "$as_me: failed program was:" >&5
8374 sed 's/^/| /' conftest.$ac_ext >&5
8376 ac_cv_type_size_t=no
8378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8380 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8381 echo "${ECHO_T}$ac_cv_type_size_t" >&6
8382 if test $ac_cv_type_size_t = yes; then
8384 else
8386 cat >>confdefs.h <<_ACEOF
8387 #define size_t unsigned
8388 _ACEOF
8393 # Checks for library functions.
8395 echo "$as_me:$LINENO: checking for pid_t" >&5
8396 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8397 if test "${ac_cv_type_pid_t+set}" = set; then
8398 echo $ECHO_N "(cached) $ECHO_C" >&6
8399 else
8400 cat >conftest.$ac_ext <<_ACEOF
8401 /* confdefs.h. */
8402 _ACEOF
8403 cat confdefs.h >>conftest.$ac_ext
8404 cat >>conftest.$ac_ext <<_ACEOF
8405 /* end confdefs.h. */
8406 $ac_includes_default
8408 main ()
8410 if ((pid_t *) 0)
8411 return 0;
8412 if (sizeof (pid_t))
8413 return 0;
8415 return 0;
8417 _ACEOF
8418 rm -f conftest.$ac_objext
8419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8420 (eval $ac_compile) 2>conftest.er1
8421 ac_status=$?
8422 grep -v '^ *+' conftest.er1 >conftest.err
8423 rm -f conftest.er1
8424 cat conftest.err >&5
8425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426 (exit $ac_status); } &&
8427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8429 (eval $ac_try) 2>&5
8430 ac_status=$?
8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432 (exit $ac_status); }; } &&
8433 { ac_try='test -s conftest.$ac_objext'
8434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8435 (eval $ac_try) 2>&5
8436 ac_status=$?
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 (exit $ac_status); }; }; then
8439 ac_cv_type_pid_t=yes
8440 else
8441 echo "$as_me: failed program was:" >&5
8442 sed 's/^/| /' conftest.$ac_ext >&5
8444 ac_cv_type_pid_t=no
8446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8448 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8449 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8450 if test $ac_cv_type_pid_t = yes; then
8452 else
8454 cat >>confdefs.h <<_ACEOF
8455 #define pid_t int
8456 _ACEOF
8462 for ac_header in unistd.h vfork.h
8464 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8466 echo "$as_me:$LINENO: checking for $ac_header" >&5
8467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8469 echo $ECHO_N "(cached) $ECHO_C" >&6
8471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8472 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8473 else
8474 # Is the header compilable?
8475 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8476 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8477 cat >conftest.$ac_ext <<_ACEOF
8478 /* confdefs.h. */
8479 _ACEOF
8480 cat confdefs.h >>conftest.$ac_ext
8481 cat >>conftest.$ac_ext <<_ACEOF
8482 /* end confdefs.h. */
8483 $ac_includes_default
8484 #include <$ac_header>
8485 _ACEOF
8486 rm -f conftest.$ac_objext
8487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8488 (eval $ac_compile) 2>conftest.er1
8489 ac_status=$?
8490 grep -v '^ *+' conftest.er1 >conftest.err
8491 rm -f conftest.er1
8492 cat conftest.err >&5
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); } &&
8495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8497 (eval $ac_try) 2>&5
8498 ac_status=$?
8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500 (exit $ac_status); }; } &&
8501 { ac_try='test -s conftest.$ac_objext'
8502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8503 (eval $ac_try) 2>&5
8504 ac_status=$?
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); }; }; then
8507 ac_header_compiler=yes
8508 else
8509 echo "$as_me: failed program was:" >&5
8510 sed 's/^/| /' conftest.$ac_ext >&5
8512 ac_header_compiler=no
8514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8515 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8516 echo "${ECHO_T}$ac_header_compiler" >&6
8518 # Is the header present?
8519 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8520 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8521 cat >conftest.$ac_ext <<_ACEOF
8522 /* confdefs.h. */
8523 _ACEOF
8524 cat confdefs.h >>conftest.$ac_ext
8525 cat >>conftest.$ac_ext <<_ACEOF
8526 /* end confdefs.h. */
8527 #include <$ac_header>
8528 _ACEOF
8529 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8530 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8531 ac_status=$?
8532 grep -v '^ *+' conftest.er1 >conftest.err
8533 rm -f conftest.er1
8534 cat conftest.err >&5
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); } >/dev/null; then
8537 if test -s conftest.err; then
8538 ac_cpp_err=$ac_c_preproc_warn_flag
8539 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8540 else
8541 ac_cpp_err=
8543 else
8544 ac_cpp_err=yes
8546 if test -z "$ac_cpp_err"; then
8547 ac_header_preproc=yes
8548 else
8549 echo "$as_me: failed program was:" >&5
8550 sed 's/^/| /' conftest.$ac_ext >&5
8552 ac_header_preproc=no
8554 rm -f conftest.err conftest.$ac_ext
8555 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8556 echo "${ECHO_T}$ac_header_preproc" >&6
8558 # So? What about this header?
8559 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8560 yes:no: )
8561 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8562 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8564 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8565 ac_header_preproc=yes
8567 no:yes:* )
8568 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8569 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8570 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8571 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8572 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8573 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8574 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8575 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8577 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8578 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8579 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8581 cat <<\_ASBOX
8582 ## ---------------------------------------------- ##
8583 ## Report this to flex-help@lists.sourceforge.net ##
8584 ## ---------------------------------------------- ##
8585 _ASBOX
8587 sed "s/^/$as_me: WARNING: /" >&2
8589 esac
8590 echo "$as_me:$LINENO: checking for $ac_header" >&5
8591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8592 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8593 echo $ECHO_N "(cached) $ECHO_C" >&6
8594 else
8595 eval "$as_ac_Header=\$ac_header_preproc"
8597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8598 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8601 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8602 cat >>confdefs.h <<_ACEOF
8603 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8604 _ACEOF
8608 done
8612 for ac_func in fork vfork
8614 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8615 echo "$as_me:$LINENO: checking for $ac_func" >&5
8616 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8617 if eval "test \"\${$as_ac_var+set}\" = set"; then
8618 echo $ECHO_N "(cached) $ECHO_C" >&6
8619 else
8620 cat >conftest.$ac_ext <<_ACEOF
8621 /* confdefs.h. */
8622 _ACEOF
8623 cat confdefs.h >>conftest.$ac_ext
8624 cat >>conftest.$ac_ext <<_ACEOF
8625 /* end confdefs.h. */
8626 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8628 #define $ac_func innocuous_$ac_func
8630 /* System header to define __stub macros and hopefully few prototypes,
8631 which can conflict with char $ac_func (); below.
8632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8633 <limits.h> exists even on freestanding compilers. */
8635 #ifdef __STDC__
8636 # include <limits.h>
8637 #else
8638 # include <assert.h>
8639 #endif
8641 #undef $ac_func
8643 /* Override any gcc2 internal prototype to avoid an error. */
8644 #ifdef __cplusplus
8645 extern "C"
8647 #endif
8648 /* We use char because int might match the return type of a gcc2
8649 builtin and then its argument prototype would still apply. */
8650 char $ac_func ();
8651 /* The GNU C library defines this for functions which it implements
8652 to always fail with ENOSYS. Some functions are actually named
8653 something starting with __ and the normal name is an alias. */
8654 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8655 choke me
8656 #else
8657 char (*f) () = $ac_func;
8658 #endif
8659 #ifdef __cplusplus
8661 #endif
8664 main ()
8666 return f != $ac_func;
8668 return 0;
8670 _ACEOF
8671 rm -f conftest.$ac_objext conftest$ac_exeext
8672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8673 (eval $ac_link) 2>conftest.er1
8674 ac_status=$?
8675 grep -v '^ *+' conftest.er1 >conftest.err
8676 rm -f conftest.er1
8677 cat conftest.err >&5
8678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679 (exit $ac_status); } &&
8680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8682 (eval $ac_try) 2>&5
8683 ac_status=$?
8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); }; } &&
8686 { ac_try='test -s conftest$ac_exeext'
8687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8688 (eval $ac_try) 2>&5
8689 ac_status=$?
8690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691 (exit $ac_status); }; }; then
8692 eval "$as_ac_var=yes"
8693 else
8694 echo "$as_me: failed program was:" >&5
8695 sed 's/^/| /' conftest.$ac_ext >&5
8697 eval "$as_ac_var=no"
8699 rm -f conftest.err conftest.$ac_objext \
8700 conftest$ac_exeext conftest.$ac_ext
8702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8703 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8704 if test `eval echo '${'$as_ac_var'}'` = yes; then
8705 cat >>confdefs.h <<_ACEOF
8706 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8707 _ACEOF
8710 done
8712 if test "x$ac_cv_func_fork" = xyes; then
8713 echo "$as_me:$LINENO: checking for working fork" >&5
8714 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
8715 if test "${ac_cv_func_fork_works+set}" = set; then
8716 echo $ECHO_N "(cached) $ECHO_C" >&6
8717 else
8718 if test "$cross_compiling" = yes; then
8719 ac_cv_func_fork_works=cross
8720 else
8721 cat >conftest.$ac_ext <<_ACEOF
8722 /* confdefs.h. */
8723 _ACEOF
8724 cat confdefs.h >>conftest.$ac_ext
8725 cat >>conftest.$ac_ext <<_ACEOF
8726 /* end confdefs.h. */
8727 $ac_includes_default
8729 main ()
8732 /* By Ruediger Kuhlmann. */
8733 if (fork() < 0)
8734 exit (1);
8735 exit (0);
8738 return 0;
8740 _ACEOF
8741 rm -f conftest$ac_exeext
8742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8743 (eval $ac_link) 2>&5
8744 ac_status=$?
8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8748 (eval $ac_try) 2>&5
8749 ac_status=$?
8750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751 (exit $ac_status); }; }; then
8752 ac_cv_func_fork_works=yes
8753 else
8754 echo "$as_me: program exited with status $ac_status" >&5
8755 echo "$as_me: failed program was:" >&5
8756 sed 's/^/| /' conftest.$ac_ext >&5
8758 ( exit $ac_status )
8759 ac_cv_func_fork_works=no
8761 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8764 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
8765 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
8767 else
8768 ac_cv_func_fork_works=$ac_cv_func_fork
8770 if test "x$ac_cv_func_fork_works" = xcross; then
8771 case $host in
8772 *-*-amigaos* | *-*-msdosdjgpp*)
8773 # Override, as these systems have only a dummy fork() stub
8774 ac_cv_func_fork_works=no
8777 ac_cv_func_fork_works=yes
8779 esac
8780 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8781 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8783 ac_cv_func_vfork_works=$ac_cv_func_vfork
8784 if test "x$ac_cv_func_vfork" = xyes; then
8785 echo "$as_me:$LINENO: checking for working vfork" >&5
8786 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
8787 if test "${ac_cv_func_vfork_works+set}" = set; then
8788 echo $ECHO_N "(cached) $ECHO_C" >&6
8789 else
8790 if test "$cross_compiling" = yes; then
8791 ac_cv_func_vfork_works=cross
8792 else
8793 cat >conftest.$ac_ext <<_ACEOF
8794 /* confdefs.h. */
8795 _ACEOF
8796 cat confdefs.h >>conftest.$ac_ext
8797 cat >>conftest.$ac_ext <<_ACEOF
8798 /* end confdefs.h. */
8799 /* Thanks to Paul Eggert for this test. */
8800 #include <stdio.h>
8801 #include <stdlib.h>
8802 #include <sys/types.h>
8803 #include <sys/stat.h>
8804 #include <sys/wait.h>
8805 #if HAVE_UNISTD_H
8806 # include <unistd.h>
8807 #endif
8808 #if HAVE_VFORK_H
8809 # include <vfork.h>
8810 #endif
8811 /* On some sparc systems, changes by the child to local and incoming
8812 argument registers are propagated back to the parent. The compiler
8813 is told about this with #include <vfork.h>, but some compilers
8814 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8815 static variable whose address is put into a register that is
8816 clobbered by the vfork. */
8817 static void
8818 #ifdef __cplusplus
8819 sparc_address_test (int arg)
8820 # else
8821 sparc_address_test (arg) int arg;
8822 #endif
8824 static pid_t child;
8825 if (!child) {
8826 child = vfork ();
8827 if (child < 0) {
8828 perror ("vfork");
8829 _exit(2);
8831 if (!child) {
8832 arg = getpid();
8833 write(-1, "", 0);
8834 _exit (arg);
8840 main ()
8842 pid_t parent = getpid ();
8843 pid_t child;
8845 sparc_address_test (0);
8847 child = vfork ();
8849 if (child == 0) {
8850 /* Here is another test for sparc vfork register problems. This
8851 test uses lots of local variables, at least as many local
8852 variables as main has allocated so far including compiler
8853 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8854 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8855 reuse the register of parent for one of the local variables,
8856 since it will think that parent can't possibly be used any more
8857 in this routine. Assigning to the local variable will thus
8858 munge parent in the parent process. */
8859 pid_t
8860 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8861 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8862 /* Convince the compiler that p..p7 are live; otherwise, it might
8863 use the same hardware register for all 8 local variables. */
8864 if (p != p1 || p != p2 || p != p3 || p != p4
8865 || p != p5 || p != p6 || p != p7)
8866 _exit(1);
8868 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8869 from child file descriptors. If the child closes a descriptor
8870 before it execs or exits, this munges the parent's descriptor
8871 as well. Test for this by closing stdout in the child. */
8872 _exit(close(fileno(stdout)) != 0);
8873 } else {
8874 int status;
8875 struct stat st;
8877 while (wait(&status) != child)
8879 exit(
8880 /* Was there some problem with vforking? */
8881 child < 0
8883 /* Did the child fail? (This shouldn't happen.) */
8884 || status
8886 /* Did the vfork/compiler bug occur? */
8887 || parent != getpid()
8889 /* Did the file descriptor bug occur? */
8890 || fstat(fileno(stdout), &st) != 0
8894 _ACEOF
8895 rm -f conftest$ac_exeext
8896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8897 (eval $ac_link) 2>&5
8898 ac_status=$?
8899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8902 (eval $ac_try) 2>&5
8903 ac_status=$?
8904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905 (exit $ac_status); }; }; then
8906 ac_cv_func_vfork_works=yes
8907 else
8908 echo "$as_me: program exited with status $ac_status" >&5
8909 echo "$as_me: failed program was:" >&5
8910 sed 's/^/| /' conftest.$ac_ext >&5
8912 ( exit $ac_status )
8913 ac_cv_func_vfork_works=no
8915 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8918 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
8919 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
8922 if test "x$ac_cv_func_fork_works" = xcross; then
8923 ac_cv_func_vfork_works=$ac_cv_func_vfork
8924 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8925 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8928 if test "x$ac_cv_func_vfork_works" = xyes; then
8930 cat >>confdefs.h <<\_ACEOF
8931 #define HAVE_WORKING_VFORK 1
8932 _ACEOF
8934 else
8936 cat >>confdefs.h <<\_ACEOF
8937 #define vfork fork
8938 _ACEOF
8941 if test "x$ac_cv_func_fork_works" = xyes; then
8943 cat >>confdefs.h <<\_ACEOF
8944 #define HAVE_WORKING_FORK 1
8945 _ACEOF
8950 for ac_header in stdlib.h
8952 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8954 echo "$as_me:$LINENO: checking for $ac_header" >&5
8955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8957 echo $ECHO_N "(cached) $ECHO_C" >&6
8959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8960 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8961 else
8962 # Is the header compilable?
8963 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8964 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8965 cat >conftest.$ac_ext <<_ACEOF
8966 /* confdefs.h. */
8967 _ACEOF
8968 cat confdefs.h >>conftest.$ac_ext
8969 cat >>conftest.$ac_ext <<_ACEOF
8970 /* end confdefs.h. */
8971 $ac_includes_default
8972 #include <$ac_header>
8973 _ACEOF
8974 rm -f conftest.$ac_objext
8975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8976 (eval $ac_compile) 2>conftest.er1
8977 ac_status=$?
8978 grep -v '^ *+' conftest.er1 >conftest.err
8979 rm -f conftest.er1
8980 cat conftest.err >&5
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 (exit $ac_status); } &&
8983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8985 (eval $ac_try) 2>&5
8986 ac_status=$?
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); }; } &&
8989 { ac_try='test -s conftest.$ac_objext'
8990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8991 (eval $ac_try) 2>&5
8992 ac_status=$?
8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 (exit $ac_status); }; }; then
8995 ac_header_compiler=yes
8996 else
8997 echo "$as_me: failed program was:" >&5
8998 sed 's/^/| /' conftest.$ac_ext >&5
9000 ac_header_compiler=no
9002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9003 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9004 echo "${ECHO_T}$ac_header_compiler" >&6
9006 # Is the header present?
9007 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9008 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9009 cat >conftest.$ac_ext <<_ACEOF
9010 /* confdefs.h. */
9011 _ACEOF
9012 cat confdefs.h >>conftest.$ac_ext
9013 cat >>conftest.$ac_ext <<_ACEOF
9014 /* end confdefs.h. */
9015 #include <$ac_header>
9016 _ACEOF
9017 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9018 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9019 ac_status=$?
9020 grep -v '^ *+' conftest.er1 >conftest.err
9021 rm -f conftest.er1
9022 cat conftest.err >&5
9023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024 (exit $ac_status); } >/dev/null; then
9025 if test -s conftest.err; then
9026 ac_cpp_err=$ac_c_preproc_warn_flag
9027 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9028 else
9029 ac_cpp_err=
9031 else
9032 ac_cpp_err=yes
9034 if test -z "$ac_cpp_err"; then
9035 ac_header_preproc=yes
9036 else
9037 echo "$as_me: failed program was:" >&5
9038 sed 's/^/| /' conftest.$ac_ext >&5
9040 ac_header_preproc=no
9042 rm -f conftest.err conftest.$ac_ext
9043 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9044 echo "${ECHO_T}$ac_header_preproc" >&6
9046 # So? What about this header?
9047 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9048 yes:no: )
9049 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9050 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9052 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9053 ac_header_preproc=yes
9055 no:yes:* )
9056 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9057 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9058 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9059 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9060 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9061 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9062 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9063 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9065 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9066 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9067 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9069 cat <<\_ASBOX
9070 ## ---------------------------------------------- ##
9071 ## Report this to flex-help@lists.sourceforge.net ##
9072 ## ---------------------------------------------- ##
9073 _ASBOX
9075 sed "s/^/$as_me: WARNING: /" >&2
9077 esac
9078 echo "$as_me:$LINENO: checking for $ac_header" >&5
9079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9081 echo $ECHO_N "(cached) $ECHO_C" >&6
9082 else
9083 eval "$as_ac_Header=\$ac_header_preproc"
9085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9086 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9089 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9090 cat >>confdefs.h <<_ACEOF
9091 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9092 _ACEOF
9096 done
9098 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
9099 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
9100 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
9101 echo $ECHO_N "(cached) $ECHO_C" >&6
9102 else
9103 if test "$cross_compiling" = yes; then
9104 ac_cv_func_malloc_0_nonnull=no
9105 else
9106 cat >conftest.$ac_ext <<_ACEOF
9107 /* confdefs.h. */
9108 _ACEOF
9109 cat confdefs.h >>conftest.$ac_ext
9110 cat >>conftest.$ac_ext <<_ACEOF
9111 /* end confdefs.h. */
9112 #if STDC_HEADERS || HAVE_STDLIB_H
9113 # include <stdlib.h>
9114 #else
9115 char *malloc ();
9116 #endif
9119 main ()
9121 exit (malloc (0) ? 0 : 1);
9123 return 0;
9125 _ACEOF
9126 rm -f conftest$ac_exeext
9127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9128 (eval $ac_link) 2>&5
9129 ac_status=$?
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9133 (eval $ac_try) 2>&5
9134 ac_status=$?
9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); }; }; then
9137 ac_cv_func_malloc_0_nonnull=yes
9138 else
9139 echo "$as_me: program exited with status $ac_status" >&5
9140 echo "$as_me: failed program was:" >&5
9141 sed 's/^/| /' conftest.$ac_ext >&5
9143 ( exit $ac_status )
9144 ac_cv_func_malloc_0_nonnull=no
9146 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9149 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
9150 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
9151 if test $ac_cv_func_malloc_0_nonnull = yes; then
9153 cat >>confdefs.h <<\_ACEOF
9154 #define HAVE_MALLOC 1
9155 _ACEOF
9157 else
9158 cat >>confdefs.h <<\_ACEOF
9159 #define HAVE_MALLOC 0
9160 _ACEOF
9162 case $LIBOBJS in
9163 "malloc.$ac_objext" | \
9164 *" malloc.$ac_objext" | \
9165 "malloc.$ac_objext "* | \
9166 *" malloc.$ac_objext "* ) ;;
9167 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
9168 esac
9171 cat >>confdefs.h <<\_ACEOF
9172 #define malloc rpl_malloc
9173 _ACEOF
9180 for ac_header in stdlib.h
9182 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9184 echo "$as_me:$LINENO: checking for $ac_header" >&5
9185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9187 echo $ECHO_N "(cached) $ECHO_C" >&6
9189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9190 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9191 else
9192 # Is the header compilable?
9193 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9194 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9195 cat >conftest.$ac_ext <<_ACEOF
9196 /* confdefs.h. */
9197 _ACEOF
9198 cat confdefs.h >>conftest.$ac_ext
9199 cat >>conftest.$ac_ext <<_ACEOF
9200 /* end confdefs.h. */
9201 $ac_includes_default
9202 #include <$ac_header>
9203 _ACEOF
9204 rm -f conftest.$ac_objext
9205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9206 (eval $ac_compile) 2>conftest.er1
9207 ac_status=$?
9208 grep -v '^ *+' conftest.er1 >conftest.err
9209 rm -f conftest.er1
9210 cat conftest.err >&5
9211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212 (exit $ac_status); } &&
9213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9215 (eval $ac_try) 2>&5
9216 ac_status=$?
9217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218 (exit $ac_status); }; } &&
9219 { ac_try='test -s conftest.$ac_objext'
9220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9221 (eval $ac_try) 2>&5
9222 ac_status=$?
9223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224 (exit $ac_status); }; }; then
9225 ac_header_compiler=yes
9226 else
9227 echo "$as_me: failed program was:" >&5
9228 sed 's/^/| /' conftest.$ac_ext >&5
9230 ac_header_compiler=no
9232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9233 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9234 echo "${ECHO_T}$ac_header_compiler" >&6
9236 # Is the header present?
9237 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9238 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9239 cat >conftest.$ac_ext <<_ACEOF
9240 /* confdefs.h. */
9241 _ACEOF
9242 cat confdefs.h >>conftest.$ac_ext
9243 cat >>conftest.$ac_ext <<_ACEOF
9244 /* end confdefs.h. */
9245 #include <$ac_header>
9246 _ACEOF
9247 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9248 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9249 ac_status=$?
9250 grep -v '^ *+' conftest.er1 >conftest.err
9251 rm -f conftest.er1
9252 cat conftest.err >&5
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); } >/dev/null; then
9255 if test -s conftest.err; then
9256 ac_cpp_err=$ac_c_preproc_warn_flag
9257 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9258 else
9259 ac_cpp_err=
9261 else
9262 ac_cpp_err=yes
9264 if test -z "$ac_cpp_err"; then
9265 ac_header_preproc=yes
9266 else
9267 echo "$as_me: failed program was:" >&5
9268 sed 's/^/| /' conftest.$ac_ext >&5
9270 ac_header_preproc=no
9272 rm -f conftest.err conftest.$ac_ext
9273 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9274 echo "${ECHO_T}$ac_header_preproc" >&6
9276 # So? What about this header?
9277 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9278 yes:no: )
9279 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9280 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9282 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9283 ac_header_preproc=yes
9285 no:yes:* )
9286 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9287 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9288 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9289 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9290 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9291 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9292 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9293 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9295 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9296 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9297 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9299 cat <<\_ASBOX
9300 ## ---------------------------------------------- ##
9301 ## Report this to flex-help@lists.sourceforge.net ##
9302 ## ---------------------------------------------- ##
9303 _ASBOX
9305 sed "s/^/$as_me: WARNING: /" >&2
9307 esac
9308 echo "$as_me:$LINENO: checking for $ac_header" >&5
9309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9311 echo $ECHO_N "(cached) $ECHO_C" >&6
9312 else
9313 eval "$as_ac_Header=\$ac_header_preproc"
9315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9316 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9320 cat >>confdefs.h <<_ACEOF
9321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9322 _ACEOF
9326 done
9328 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
9329 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
9330 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
9331 echo $ECHO_N "(cached) $ECHO_C" >&6
9332 else
9333 if test "$cross_compiling" = yes; then
9334 ac_cv_func_realloc_0_nonnull=no
9335 else
9336 cat >conftest.$ac_ext <<_ACEOF
9337 /* confdefs.h. */
9338 _ACEOF
9339 cat confdefs.h >>conftest.$ac_ext
9340 cat >>conftest.$ac_ext <<_ACEOF
9341 /* end confdefs.h. */
9342 #if STDC_HEADERS || HAVE_STDLIB_H
9343 # include <stdlib.h>
9344 #else
9345 char *realloc ();
9346 #endif
9349 main ()
9351 exit (realloc (0, 0) ? 0 : 1);
9353 return 0;
9355 _ACEOF
9356 rm -f conftest$ac_exeext
9357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9358 (eval $ac_link) 2>&5
9359 ac_status=$?
9360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9363 (eval $ac_try) 2>&5
9364 ac_status=$?
9365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366 (exit $ac_status); }; }; then
9367 ac_cv_func_realloc_0_nonnull=yes
9368 else
9369 echo "$as_me: program exited with status $ac_status" >&5
9370 echo "$as_me: failed program was:" >&5
9371 sed 's/^/| /' conftest.$ac_ext >&5
9373 ( exit $ac_status )
9374 ac_cv_func_realloc_0_nonnull=no
9376 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9379 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
9380 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
9381 if test $ac_cv_func_realloc_0_nonnull = yes; then
9383 cat >>confdefs.h <<\_ACEOF
9384 #define HAVE_REALLOC 1
9385 _ACEOF
9387 else
9388 cat >>confdefs.h <<\_ACEOF
9389 #define HAVE_REALLOC 0
9390 _ACEOF
9392 case $LIBOBJS in
9393 "realloc.$ac_objext" | \
9394 *" realloc.$ac_objext" | \
9395 "realloc.$ac_objext "* | \
9396 *" realloc.$ac_objext "* ) ;;
9397 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
9398 esac
9401 cat >>confdefs.h <<\_ACEOF
9402 #define realloc rpl_realloc
9403 _ACEOF
9417 for ac_func in dup2 isascii memset pow regcomp setlocale strchr strtol
9419 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9420 echo "$as_me:$LINENO: checking for $ac_func" >&5
9421 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9422 if eval "test \"\${$as_ac_var+set}\" = set"; then
9423 echo $ECHO_N "(cached) $ECHO_C" >&6
9424 else
9425 cat >conftest.$ac_ext <<_ACEOF
9426 /* confdefs.h. */
9427 _ACEOF
9428 cat confdefs.h >>conftest.$ac_ext
9429 cat >>conftest.$ac_ext <<_ACEOF
9430 /* end confdefs.h. */
9431 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9433 #define $ac_func innocuous_$ac_func
9435 /* System header to define __stub macros and hopefully few prototypes,
9436 which can conflict with char $ac_func (); below.
9437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9438 <limits.h> exists even on freestanding compilers. */
9440 #ifdef __STDC__
9441 # include <limits.h>
9442 #else
9443 # include <assert.h>
9444 #endif
9446 #undef $ac_func
9448 /* Override any gcc2 internal prototype to avoid an error. */
9449 #ifdef __cplusplus
9450 extern "C"
9452 #endif
9453 /* We use char because int might match the return type of a gcc2
9454 builtin and then its argument prototype would still apply. */
9455 char $ac_func ();
9456 /* The GNU C library defines this for functions which it implements
9457 to always fail with ENOSYS. Some functions are actually named
9458 something starting with __ and the normal name is an alias. */
9459 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9460 choke me
9461 #else
9462 char (*f) () = $ac_func;
9463 #endif
9464 #ifdef __cplusplus
9466 #endif
9469 main ()
9471 return f != $ac_func;
9473 return 0;
9475 _ACEOF
9476 rm -f conftest.$ac_objext conftest$ac_exeext
9477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9478 (eval $ac_link) 2>conftest.er1
9479 ac_status=$?
9480 grep -v '^ *+' conftest.er1 >conftest.err
9481 rm -f conftest.er1
9482 cat conftest.err >&5
9483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484 (exit $ac_status); } &&
9485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9487 (eval $ac_try) 2>&5
9488 ac_status=$?
9489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490 (exit $ac_status); }; } &&
9491 { ac_try='test -s conftest$ac_exeext'
9492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9493 (eval $ac_try) 2>&5
9494 ac_status=$?
9495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496 (exit $ac_status); }; }; then
9497 eval "$as_ac_var=yes"
9498 else
9499 echo "$as_me: failed program was:" >&5
9500 sed 's/^/| /' conftest.$ac_ext >&5
9502 eval "$as_ac_var=no"
9504 rm -f conftest.err conftest.$ac_objext \
9505 conftest$ac_exeext conftest.$ac_ext
9507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9508 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9509 if test `eval echo '${'$as_ac_var'}'` = yes; then
9510 cat >>confdefs.h <<_ACEOF
9511 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9512 _ACEOF
9515 done
9518 ac_config_files="$ac_config_files Makefile doc/Makefile examples/Makefile examples/fastwc/Makefile examples/manual/Makefile m4/Makefile po/Makefile.in tools/Makefile tests/Makefile tests/TEMPLATE/Makefile tests/test-array-nr/Makefile tests/test-array-r/Makefile tests/test-basic-nr/Makefile tests/test-basic-r/Makefile tests/test-bison-yylloc/Makefile tests/test-bison-yylval/Makefile tests/test-c-cpp-nr/Makefile tests/test-c-cpp-r/Makefile tests/test-header-nr/Makefile tests/test-header-r/Makefile tests/test-include-by-buffer/Makefile tests/test-include-by-push/Makefile tests/test-include-by-reentrant/Makefile tests/test-multiple-scanners-nr/Makefile tests/test-multiple-scanners-r/Makefile tests/test-noansi-nr/Makefile tests/test-noansi-r/Makefile tests/test-prefix-nr/Makefile tests/test-prefix-r/Makefile tests/test-pthread/Makefile tests/test-string-nr/Makefile tests/test-string-r/Makefile tests/test-yyextra/Makefile tests/test-alloc-extra/Makefile tests/test-lineno-nr/Makefile tests/test-lineno-r/Makefile tests/test-linedir-r/Makefile tests/test-debug-r/Makefile tests/test-debug-nr/Makefile tests/test-mem-nr/Makefile tests/test-mem-r/Makefile tests/test-posix/Makefile tests/test-posixly-correct/Makefile tests/test-table-opts/Makefile tests/test-c++-basic/Makefile tests/test-bison-nr/Makefile tests/test-reject/Makefile tests/test-c++-multiple-scanners/Makefile tests/test-top/Makefile tests/test-rescan-nr/Makefile tests/test-rescan-r/Makefile tests/test-quotes/Makefile tests/test-ccl/Makefile tests/test-extended/Makefile tests/test-c++-yywrap/Makefile tests/test-concatenated-options/Makefile"
9521 cat >confcache <<\_ACEOF
9522 # This file is a shell script that caches the results of configure
9523 # tests run on this system so they can be shared between configure
9524 # scripts and configure runs, see configure's option --config-cache.
9525 # It is not useful on other systems. If it contains results you don't
9526 # want to keep, you may remove or edit it.
9528 # config.status only pays attention to the cache file if you give it
9529 # the --recheck option to rerun configure.
9531 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9532 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9533 # following values.
9535 _ACEOF
9537 # The following way of writing the cache mishandles newlines in values,
9538 # but we know of no workaround that is simple, portable, and efficient.
9539 # So, don't put newlines in cache variables' values.
9540 # Ultrix sh set writes to stderr and can't be redirected directly,
9541 # and sets the high bit in the cache file unless we assign to the vars.
9543 (set) 2>&1 |
9544 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9545 *ac_space=\ *)
9546 # `set' does not quote correctly, so add quotes (double-quote
9547 # substitution turns \\\\ into \\, and sed turns \\ into \).
9548 sed -n \
9549 "s/'/'\\\\''/g;
9550 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9553 # `set' quotes correctly as required by POSIX, so do not add quotes.
9554 sed -n \
9555 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9557 esac;
9559 sed '
9560 t clear
9561 : clear
9562 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9563 t end
9564 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9565 : end' >>confcache
9566 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9567 if test -w $cache_file; then
9568 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9569 cat confcache >$cache_file
9570 else
9571 echo "not updating unwritable cache $cache_file"
9574 rm -f confcache
9576 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9577 # Let make expand exec_prefix.
9578 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9580 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9581 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9582 # trailing colons and then remove the whole line if VPATH becomes empty
9583 # (actually we leave an empty line to preserve line numbers).
9584 if test "x$srcdir" = x.; then
9585 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9586 s/:*\$(srcdir):*/:/;
9587 s/:*\${srcdir}:*/:/;
9588 s/:*@srcdir@:*/:/;
9589 s/^\([^=]*=[ ]*\):*/\1/;
9590 s/:*$//;
9591 s/^[^=]*=[ ]*$//;
9595 DEFS=-DHAVE_CONFIG_H
9597 ac_libobjs=
9598 ac_ltlibobjs=
9599 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9600 # 1. Remove the extension, and $U if already installed.
9601 ac_i=`echo "$ac_i" |
9602 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9603 # 2. Add them.
9604 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9605 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9606 done
9607 LIBOBJS=$ac_libobjs
9609 LTLIBOBJS=$ac_ltlibobjs
9612 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9613 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9614 Usually this means the macro was only invoked conditionally." >&5
9615 echo "$as_me: error: conditional \"AMDEP\" was never defined.
9616 Usually this means the macro was only invoked conditionally." >&2;}
9617 { (exit 1); exit 1; }; }
9619 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9620 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9621 Usually this means the macro was only invoked conditionally." >&5
9622 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9623 Usually this means the macro was only invoked conditionally." >&2;}
9624 { (exit 1); exit 1; }; }
9626 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9627 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9628 Usually this means the macro was only invoked conditionally." >&5
9629 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9630 Usually this means the macro was only invoked conditionally." >&2;}
9631 { (exit 1); exit 1; }; }
9633 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
9634 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
9635 Usually this means the macro was only invoked conditionally." >&5
9636 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
9637 Usually this means the macro was only invoked conditionally." >&2;}
9638 { (exit 1); exit 1; }; }
9641 : ${CONFIG_STATUS=./config.status}
9642 ac_clean_files_save=$ac_clean_files
9643 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9644 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9645 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9646 cat >$CONFIG_STATUS <<_ACEOF
9647 #! $SHELL
9648 # Generated by $as_me.
9649 # Run this file to recreate the current configuration.
9650 # Compiler output produced by configure, useful for debugging
9651 # configure, is in config.log if it exists.
9653 debug=false
9654 ac_cs_recheck=false
9655 ac_cs_silent=false
9656 SHELL=\${CONFIG_SHELL-$SHELL}
9657 _ACEOF
9659 cat >>$CONFIG_STATUS <<\_ACEOF
9660 ## --------------------- ##
9661 ## M4sh Initialization. ##
9662 ## --------------------- ##
9664 # Be Bourne compatible
9665 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9666 emulate sh
9667 NULLCMD=:
9668 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9669 # is contrary to our usage. Disable this feature.
9670 alias -g '${1+"$@"}'='"$@"'
9671 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9672 set -o posix
9674 DUALCASE=1; export DUALCASE # for MKS sh
9676 # Support unset when possible.
9677 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9678 as_unset=unset
9679 else
9680 as_unset=false
9684 # Work around bugs in pre-3.0 UWIN ksh.
9685 $as_unset ENV MAIL MAILPATH
9686 PS1='$ '
9687 PS2='> '
9688 PS4='+ '
9690 # NLS nuisances.
9691 for as_var in \
9692 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9693 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9694 LC_TELEPHONE LC_TIME
9696 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9697 eval $as_var=C; export $as_var
9698 else
9699 $as_unset $as_var
9701 done
9703 # Required to use basename.
9704 if expr a : '\(a\)' >/dev/null 2>&1; then
9705 as_expr=expr
9706 else
9707 as_expr=false
9710 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9711 as_basename=basename
9712 else
9713 as_basename=false
9717 # Name of the executable.
9718 as_me=`$as_basename "$0" ||
9719 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9720 X"$0" : 'X\(//\)$' \| \
9721 X"$0" : 'X\(/\)$' \| \
9722 . : '\(.\)' 2>/dev/null ||
9723 echo X/"$0" |
9724 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9725 /^X\/\(\/\/\)$/{ s//\1/; q; }
9726 /^X\/\(\/\).*/{ s//\1/; q; }
9727 s/.*/./; q'`
9730 # PATH needs CR, and LINENO needs CR and PATH.
9731 # Avoid depending upon Character Ranges.
9732 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9733 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9734 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9735 as_cr_digits='0123456789'
9736 as_cr_alnum=$as_cr_Letters$as_cr_digits
9738 # The user is always right.
9739 if test "${PATH_SEPARATOR+set}" != set; then
9740 echo "#! /bin/sh" >conf$$.sh
9741 echo "exit 0" >>conf$$.sh
9742 chmod +x conf$$.sh
9743 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9744 PATH_SEPARATOR=';'
9745 else
9746 PATH_SEPARATOR=:
9748 rm -f conf$$.sh
9752 as_lineno_1=$LINENO
9753 as_lineno_2=$LINENO
9754 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9755 test "x$as_lineno_1" != "x$as_lineno_2" &&
9756 test "x$as_lineno_3" = "x$as_lineno_2" || {
9757 # Find who we are. Look in the path if we contain no path at all
9758 # relative or not.
9759 case $0 in
9760 *[\\/]* ) as_myself=$0 ;;
9761 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9762 for as_dir in $PATH
9764 IFS=$as_save_IFS
9765 test -z "$as_dir" && as_dir=.
9766 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9767 done
9770 esac
9771 # We did not find ourselves, most probably we were run as `sh COMMAND'
9772 # in which case we are not to be found in the path.
9773 if test "x$as_myself" = x; then
9774 as_myself=$0
9776 if test ! -f "$as_myself"; then
9777 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9778 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9779 { (exit 1); exit 1; }; }
9781 case $CONFIG_SHELL in
9783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9784 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9786 IFS=$as_save_IFS
9787 test -z "$as_dir" && as_dir=.
9788 for as_base in sh bash ksh sh5; do
9789 case $as_dir in
9791 if ("$as_dir/$as_base" -c '
9792 as_lineno_1=$LINENO
9793 as_lineno_2=$LINENO
9794 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9795 test "x$as_lineno_1" != "x$as_lineno_2" &&
9796 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9797 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9798 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9799 CONFIG_SHELL=$as_dir/$as_base
9800 export CONFIG_SHELL
9801 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9802 fi;;
9803 esac
9804 done
9805 done
9807 esac
9809 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9810 # uniformly replaced by the line number. The first 'sed' inserts a
9811 # line-number line before each line; the second 'sed' does the real
9812 # work. The second script uses 'N' to pair each line-number line
9813 # with the numbered line, and appends trailing '-' during
9814 # substitution so that $LINENO is not a special case at line end.
9815 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9816 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9817 sed '=' <$as_myself |
9818 sed '
9820 s,$,-,
9821 : loop
9822 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9823 t loop
9824 s,-$,,
9825 s,^['$as_cr_digits']*\n,,
9826 ' >$as_me.lineno &&
9827 chmod +x $as_me.lineno ||
9828 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9829 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9830 { (exit 1); exit 1; }; }
9832 # Don't try to exec as it changes $[0], causing all sort of problems
9833 # (the dirname of $[0] is not the place where we might find the
9834 # original and so on. Autoconf is especially sensible to this).
9835 . ./$as_me.lineno
9836 # Exit status is that of the last command.
9837 exit
9841 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9842 *c*,-n*) ECHO_N= ECHO_C='
9843 ' ECHO_T=' ' ;;
9844 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9845 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9846 esac
9848 if expr a : '\(a\)' >/dev/null 2>&1; then
9849 as_expr=expr
9850 else
9851 as_expr=false
9854 rm -f conf$$ conf$$.exe conf$$.file
9855 echo >conf$$.file
9856 if ln -s conf$$.file conf$$ 2>/dev/null; then
9857 # We could just check for DJGPP; but this test a) works b) is more generic
9858 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9859 if test -f conf$$.exe; then
9860 # Don't use ln at all; we don't have any links
9861 as_ln_s='cp -p'
9862 else
9863 as_ln_s='ln -s'
9865 elif ln conf$$.file conf$$ 2>/dev/null; then
9866 as_ln_s=ln
9867 else
9868 as_ln_s='cp -p'
9870 rm -f conf$$ conf$$.exe conf$$.file
9872 if mkdir -p . 2>/dev/null; then
9873 as_mkdir_p=:
9874 else
9875 test -d ./-p && rmdir ./-p
9876 as_mkdir_p=false
9879 as_executable_p="test -f"
9881 # Sed expression to map a string onto a valid CPP name.
9882 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9884 # Sed expression to map a string onto a valid variable name.
9885 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9888 # IFS
9889 # We need space, tab and new line, in precisely that order.
9890 as_nl='
9892 IFS=" $as_nl"
9894 # CDPATH.
9895 $as_unset CDPATH
9897 exec 6>&1
9899 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9900 # report actual input values of CONFIG_FILES etc. instead of their
9901 # values after options handling. Logging --version etc. is OK.
9902 exec 5>>config.log
9904 echo
9905 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9906 ## Running $as_me. ##
9907 _ASBOX
9908 } >&5
9909 cat >&5 <<_CSEOF
9911 This file was extended by the fast lexical analyser generator $as_me 2.5.35, which was
9912 generated by GNU Autoconf 2.59. Invocation command line was
9914 CONFIG_FILES = $CONFIG_FILES
9915 CONFIG_HEADERS = $CONFIG_HEADERS
9916 CONFIG_LINKS = $CONFIG_LINKS
9917 CONFIG_COMMANDS = $CONFIG_COMMANDS
9918 $ $0 $@
9920 _CSEOF
9921 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9922 echo >&5
9923 _ACEOF
9925 # Files that config.status was made for.
9926 if test -n "$ac_config_files"; then
9927 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9930 if test -n "$ac_config_headers"; then
9931 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9934 if test -n "$ac_config_links"; then
9935 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9938 if test -n "$ac_config_commands"; then
9939 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9942 cat >>$CONFIG_STATUS <<\_ACEOF
9944 ac_cs_usage="\
9945 \`$as_me' instantiates files from templates according to the
9946 current configuration.
9948 Usage: $0 [OPTIONS] [FILE]...
9950 -h, --help print this help, then exit
9951 -V, --version print version number, then exit
9952 -q, --quiet do not print progress messages
9953 -d, --debug don't remove temporary files
9954 --recheck update $as_me by reconfiguring in the same conditions
9955 --file=FILE[:TEMPLATE]
9956 instantiate the configuration file FILE
9957 --header=FILE[:TEMPLATE]
9958 instantiate the configuration header FILE
9960 Configuration files:
9961 $config_files
9963 Configuration headers:
9964 $config_headers
9966 Configuration commands:
9967 $config_commands
9969 Report bugs to <bug-autoconf@gnu.org>."
9970 _ACEOF
9972 cat >>$CONFIG_STATUS <<_ACEOF
9973 ac_cs_version="\\
9974 the fast lexical analyser generator config.status 2.5.35
9975 configured by $0, generated by GNU Autoconf 2.59,
9976 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9978 Copyright (C) 2003 Free Software Foundation, Inc.
9979 This config.status script is free software; the Free Software Foundation
9980 gives unlimited permission to copy, distribute and modify it."
9981 srcdir=$srcdir
9982 INSTALL="$INSTALL"
9983 _ACEOF
9985 cat >>$CONFIG_STATUS <<\_ACEOF
9986 # If no file are specified by the user, then we need to provide default
9987 # value. By we need to know if files were specified by the user.
9988 ac_need_defaults=:
9989 while test $# != 0
9991 case $1 in
9992 --*=*)
9993 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9994 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9995 ac_shift=:
9998 ac_option=$1
9999 ac_optarg=$2
10000 ac_shift=shift
10002 *) # This is not an option, so the user has probably given explicit
10003 # arguments.
10004 ac_option=$1
10005 ac_need_defaults=false;;
10006 esac
10008 case $ac_option in
10009 # Handling of the options.
10010 _ACEOF
10011 cat >>$CONFIG_STATUS <<\_ACEOF
10012 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10013 ac_cs_recheck=: ;;
10014 --version | --vers* | -V )
10015 echo "$ac_cs_version"; exit 0 ;;
10016 --he | --h)
10017 # Conflict between --help and --header
10018 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10019 Try \`$0 --help' for more information." >&5
10020 echo "$as_me: error: ambiguous option: $1
10021 Try \`$0 --help' for more information." >&2;}
10022 { (exit 1); exit 1; }; };;
10023 --help | --hel | -h )
10024 echo "$ac_cs_usage"; exit 0 ;;
10025 --debug | --d* | -d )
10026 debug=: ;;
10027 --file | --fil | --fi | --f )
10028 $ac_shift
10029 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10030 ac_need_defaults=false;;
10031 --header | --heade | --head | --hea )
10032 $ac_shift
10033 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10034 ac_need_defaults=false;;
10035 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10036 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10037 ac_cs_silent=: ;;
10039 # This is an error.
10040 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10041 Try \`$0 --help' for more information." >&5
10042 echo "$as_me: error: unrecognized option: $1
10043 Try \`$0 --help' for more information." >&2;}
10044 { (exit 1); exit 1; }; } ;;
10046 *) ac_config_targets="$ac_config_targets $1" ;;
10048 esac
10049 shift
10050 done
10052 ac_configure_extra_args=
10054 if $ac_cs_silent; then
10055 exec 6>/dev/null
10056 ac_configure_extra_args="$ac_configure_extra_args --silent"
10059 _ACEOF
10060 cat >>$CONFIG_STATUS <<_ACEOF
10061 if \$ac_cs_recheck; then
10062 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10063 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10066 _ACEOF
10068 cat >>$CONFIG_STATUS <<_ACEOF
10070 # INIT-COMMANDS section.
10073 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
10074 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
10075 # from automake.
10076 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
10077 # Capture the value of LINGUAS because we need it to compute CATALOGS.
10078 LINGUAS="${LINGUAS-%UNSET%}"
10080 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10082 _ACEOF
10086 cat >>$CONFIG_STATUS <<\_ACEOF
10087 for ac_config_target in $ac_config_targets
10089 case "$ac_config_target" in
10090 # Handling of arguments.
10091 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10092 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10093 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
10094 "examples/fastwc/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/fastwc/Makefile" ;;
10095 "examples/manual/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/manual/Makefile" ;;
10096 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
10097 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
10098 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
10099 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
10100 "tests/TEMPLATE/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/TEMPLATE/Makefile" ;;
10101 "tests/test-array-nr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-array-nr/Makefile" ;;
10102 "tests/test-array-r/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-array-r/Makefile" ;;
10103 "tests/test-basic-nr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-basic-nr/Makefile" ;;
10104 "tests/test-basic-r/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-basic-r/Makefile" ;;
10105 "tests/test-bison-yylloc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-bison-yylloc/Makefile" ;;
10106 "tests/test-bison-yylval/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-bison-yylval/Makefile" ;;
10107 "tests/test-c-cpp-nr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-c-cpp-nr/Makefile" ;;
10108 "tests/test-c-cpp-r/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-c-cpp-r/Makefile" ;;
10109 "tests/test-header-nr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-header-nr/Makefile" ;;
10110 "tests/test-header-r/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-header-r/Makefile" ;;
10111 "tests/test-include-by-buffer/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-include-by-buffer/Makefile" ;;
10112 "tests/test-include-by-push/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-include-by-push/Makefile" ;;
10113 "tests/test-include-by-reentrant/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-include-by-reentrant/Makefile" ;;
10114 "tests/test-multiple-scanners-nr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-multiple-scanners-nr/Makefile" ;;
10115 "tests/test-multiple-scanners-r/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-multiple-scanners-r/Makefile" ;;
10116 "tests/test-noansi-nr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-noansi-nr/Makefile" ;;
10117 "tests/test-noansi-r/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-noansi-r/Makefile" ;;
10118 "tests/test-prefix-nr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-prefix-nr/Makefile" ;;
10119 "tests/test-prefix-r/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-prefix-r/Makefile" ;;
10120 "tests/test-pthread/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-pthread/Makefile" ;;
10121 "tests/test-string-nr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-string-nr/Makefile" ;;
10122 "tests/test-string-r/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-string-r/Makefile" ;;
10123 "tests/test-yyextra/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-yyextra/Makefile" ;;
10124 "tests/test-alloc-extra/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-alloc-extra/Makefile" ;;
10125 "tests/test-lineno-nr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-lineno-nr/Makefile" ;;
10126 "tests/test-lineno-r/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-lineno-r/Makefile" ;;
10127 "tests/test-linedir-r/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-linedir-r/Makefile" ;;
10128 "tests/test-debug-r/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-debug-r/Makefile" ;;
10129 "tests/test-debug-nr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-debug-nr/Makefile" ;;
10130 "tests/test-mem-nr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-mem-nr/Makefile" ;;
10131 "tests/test-mem-r/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-mem-r/Makefile" ;;
10132 "tests/test-posix/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-posix/Makefile" ;;
10133 "tests/test-posixly-correct/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-posixly-correct/Makefile" ;;
10134 "tests/test-table-opts/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-table-opts/Makefile" ;;
10135 "tests/test-c++-basic/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-c++-basic/Makefile" ;;
10136 "tests/test-bison-nr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-bison-nr/Makefile" ;;
10137 "tests/test-reject/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-reject/Makefile" ;;
10138 "tests/test-c++-multiple-scanners/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-c++-multiple-scanners/Makefile" ;;
10139 "tests/test-top/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-top/Makefile" ;;
10140 "tests/test-rescan-nr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-rescan-nr/Makefile" ;;
10141 "tests/test-rescan-r/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-rescan-r/Makefile" ;;
10142 "tests/test-quotes/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-quotes/Makefile" ;;
10143 "tests/test-ccl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-ccl/Makefile" ;;
10144 "tests/test-extended/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-extended/Makefile" ;;
10145 "tests/test-c++-yywrap/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-c++-yywrap/Makefile" ;;
10146 "tests/test-concatenated-options/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-concatenated-options/Makefile" ;;
10147 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
10148 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10149 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:conf.in" ;;
10150 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10151 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10152 { (exit 1); exit 1; }; };;
10153 esac
10154 done
10156 # If the user did not use the arguments to specify the items to instantiate,
10157 # then the envvar interface is used. Set only those that are not.
10158 # We use the long form for the default assignment because of an extremely
10159 # bizarre bug on SunOS 4.1.3.
10160 if $ac_need_defaults; then
10161 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10162 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10163 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10166 # Have a temporary directory for convenience. Make it in the build tree
10167 # simply because there is no reason to put it here, and in addition,
10168 # creating and moving files from /tmp can sometimes cause problems.
10169 # Create a temporary directory, and hook for its removal unless debugging.
10170 $debug ||
10172 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10173 trap '{ (exit 1); exit 1; }' 1 2 13 15
10176 # Create a (secure) tmp directory for tmp files.
10179 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10180 test -n "$tmp" && test -d "$tmp"
10181 } ||
10183 tmp=./confstat$$-$RANDOM
10184 (umask 077 && mkdir $tmp)
10185 } ||
10187 echo "$me: cannot create a temporary directory in ." >&2
10188 { (exit 1); exit 1; }
10191 _ACEOF
10193 cat >>$CONFIG_STATUS <<_ACEOF
10196 # CONFIG_FILES section.
10199 # No need to generate the scripts if there are no CONFIG_FILES.
10200 # This happens for instance when ./config.status config.h
10201 if test -n "\$CONFIG_FILES"; then
10202 # Protect against being on the right side of a sed subst in config.status.
10203 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10204 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10205 s,@SHELL@,$SHELL,;t t
10206 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10207 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10208 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10209 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10210 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10211 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10212 s,@exec_prefix@,$exec_prefix,;t t
10213 s,@prefix@,$prefix,;t t
10214 s,@program_transform_name@,$program_transform_name,;t t
10215 s,@bindir@,$bindir,;t t
10216 s,@sbindir@,$sbindir,;t t
10217 s,@libexecdir@,$libexecdir,;t t
10218 s,@datadir@,$datadir,;t t
10219 s,@sysconfdir@,$sysconfdir,;t t
10220 s,@sharedstatedir@,$sharedstatedir,;t t
10221 s,@localstatedir@,$localstatedir,;t t
10222 s,@libdir@,$libdir,;t t
10223 s,@includedir@,$includedir,;t t
10224 s,@oldincludedir@,$oldincludedir,;t t
10225 s,@infodir@,$infodir,;t t
10226 s,@mandir@,$mandir,;t t
10227 s,@build_alias@,$build_alias,;t t
10228 s,@host_alias@,$host_alias,;t t
10229 s,@target_alias@,$target_alias,;t t
10230 s,@DEFS@,$DEFS,;t t
10231 s,@ECHO_C@,$ECHO_C,;t t
10232 s,@ECHO_N@,$ECHO_N,;t t
10233 s,@ECHO_T@,$ECHO_T,;t t
10234 s,@LIBS@,$LIBS,;t t
10235 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10236 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10237 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10238 s,@CYGPATH_W@,$CYGPATH_W,;t t
10239 s,@PACKAGE@,$PACKAGE,;t t
10240 s,@VERSION@,$VERSION,;t t
10241 s,@ACLOCAL@,$ACLOCAL,;t t
10242 s,@AUTOCONF@,$AUTOCONF,;t t
10243 s,@AUTOMAKE@,$AUTOMAKE,;t t
10244 s,@AUTOHEADER@,$AUTOHEADER,;t t
10245 s,@MAKEINFO@,$MAKEINFO,;t t
10246 s,@install_sh@,$install_sh,;t t
10247 s,@STRIP@,$STRIP,;t t
10248 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10249 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
10250 s,@mkdir_p@,$mkdir_p,;t t
10251 s,@AWK@,$AWK,;t t
10252 s,@SET_MAKE@,$SET_MAKE,;t t
10253 s,@am__leading_dot@,$am__leading_dot,;t t
10254 s,@AMTAR@,$AMTAR,;t t
10255 s,@am__tar@,$am__tar,;t t
10256 s,@am__untar@,$am__untar,;t t
10257 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
10258 s,@USE_NLS@,$USE_NLS,;t t
10259 s,@MSGFMT@,$MSGFMT,;t t
10260 s,@GMSGFMT@,$GMSGFMT,;t t
10261 s,@XGETTEXT@,$XGETTEXT,;t t
10262 s,@MSGMERGE@,$MSGMERGE,;t t
10263 s,@CC@,$CC,;t t
10264 s,@CFLAGS@,$CFLAGS,;t t
10265 s,@LDFLAGS@,$LDFLAGS,;t t
10266 s,@CPPFLAGS@,$CPPFLAGS,;t t
10267 s,@ac_ct_CC@,$ac_ct_CC,;t t
10268 s,@EXEEXT@,$EXEEXT,;t t
10269 s,@OBJEXT@,$OBJEXT,;t t
10270 s,@DEPDIR@,$DEPDIR,;t t
10271 s,@am__include@,$am__include,;t t
10272 s,@am__quote@,$am__quote,;t t
10273 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
10274 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
10275 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
10276 s,@CCDEPMODE@,$CCDEPMODE,;t t
10277 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
10278 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
10279 s,@build@,$build,;t t
10280 s,@build_cpu@,$build_cpu,;t t
10281 s,@build_vendor@,$build_vendor,;t t
10282 s,@build_os@,$build_os,;t t
10283 s,@host@,$host,;t t
10284 s,@host_cpu@,$host_cpu,;t t
10285 s,@host_vendor@,$host_vendor,;t t
10286 s,@host_os@,$host_os,;t t
10287 s,@LIBICONV@,$LIBICONV,;t t
10288 s,@LTLIBICONV@,$LTLIBICONV,;t t
10289 s,@INTLLIBS@,$INTLLIBS,;t t
10290 s,@LIBINTL@,$LIBINTL,;t t
10291 s,@LTLIBINTL@,$LTLIBINTL,;t t
10292 s,@POSUB@,$POSUB,;t t
10293 s,@YACC@,$YACC,;t t
10294 s,@LEX@,$LEX,;t t
10295 s,@LEXLIB@,$LEXLIB,;t t
10296 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
10297 s,@CXX@,$CXX,;t t
10298 s,@CXXFLAGS@,$CXXFLAGS,;t t
10299 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
10300 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
10301 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
10302 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
10303 s,@LN_S@,$LN_S,;t t
10304 s,@RANLIB@,$RANLIB,;t t
10305 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10306 s,@BISON@,$BISON,;t t
10307 s,@HELP2MAN@,$HELP2MAN,;t t
10308 s,@M4@,$M4,;t t
10309 s,@INDENT@,$INDENT,;t t
10310 s,@ALLOCA@,$ALLOCA,;t t
10311 s,@CPP@,$CPP,;t t
10312 s,@EGREP@,$EGREP,;t t
10313 s,@LIBOBJS@,$LIBOBJS,;t t
10314 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10315 CEOF
10317 _ACEOF
10319 cat >>$CONFIG_STATUS <<\_ACEOF
10320 # Split the substitutions into bite-sized pieces for seds with
10321 # small command number limits, like on Digital OSF/1 and HP-UX.
10322 ac_max_sed_lines=48
10323 ac_sed_frag=1 # Number of current file.
10324 ac_beg=1 # First line for current file.
10325 ac_end=$ac_max_sed_lines # Line after last line for current file.
10326 ac_more_lines=:
10327 ac_sed_cmds=
10328 while $ac_more_lines; do
10329 if test $ac_beg -gt 1; then
10330 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10331 else
10332 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10334 if test ! -s $tmp/subs.frag; then
10335 ac_more_lines=false
10336 else
10337 # The purpose of the label and of the branching condition is to
10338 # speed up the sed processing (if there are no `@' at all, there
10339 # is no need to browse any of the substitutions).
10340 # These are the two extra sed commands mentioned above.
10341 (echo ':t
10342 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10343 if test -z "$ac_sed_cmds"; then
10344 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10345 else
10346 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10348 ac_sed_frag=`expr $ac_sed_frag + 1`
10349 ac_beg=$ac_end
10350 ac_end=`expr $ac_end + $ac_max_sed_lines`
10352 done
10353 if test -z "$ac_sed_cmds"; then
10354 ac_sed_cmds=cat
10356 fi # test -n "$CONFIG_FILES"
10358 _ACEOF
10359 cat >>$CONFIG_STATUS <<\_ACEOF
10360 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10361 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10362 case $ac_file in
10363 - | *:- | *:-:* ) # input from stdin
10364 cat >$tmp/stdin
10365 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10366 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10367 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10368 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10369 * ) ac_file_in=$ac_file.in ;;
10370 esac
10372 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10373 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10374 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10375 X"$ac_file" : 'X\(//\)[^/]' \| \
10376 X"$ac_file" : 'X\(//\)$' \| \
10377 X"$ac_file" : 'X\(/\)' \| \
10378 . : '\(.\)' 2>/dev/null ||
10379 echo X"$ac_file" |
10380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10381 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10382 /^X\(\/\/\)$/{ s//\1/; q; }
10383 /^X\(\/\).*/{ s//\1/; q; }
10384 s/.*/./; q'`
10385 { if $as_mkdir_p; then
10386 mkdir -p "$ac_dir"
10387 else
10388 as_dir="$ac_dir"
10389 as_dirs=
10390 while test ! -d "$as_dir"; do
10391 as_dirs="$as_dir $as_dirs"
10392 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10393 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10394 X"$as_dir" : 'X\(//\)[^/]' \| \
10395 X"$as_dir" : 'X\(//\)$' \| \
10396 X"$as_dir" : 'X\(/\)' \| \
10397 . : '\(.\)' 2>/dev/null ||
10398 echo X"$as_dir" |
10399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10400 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10401 /^X\(\/\/\)$/{ s//\1/; q; }
10402 /^X\(\/\).*/{ s//\1/; q; }
10403 s/.*/./; q'`
10404 done
10405 test ! -n "$as_dirs" || mkdir $as_dirs
10406 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10407 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10408 { (exit 1); exit 1; }; }; }
10410 ac_builddir=.
10412 if test "$ac_dir" != .; then
10413 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10414 # A "../" for each directory in $ac_dir_suffix.
10415 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10416 else
10417 ac_dir_suffix= ac_top_builddir=
10420 case $srcdir in
10421 .) # No --srcdir option. We are building in place.
10422 ac_srcdir=.
10423 if test -z "$ac_top_builddir"; then
10424 ac_top_srcdir=.
10425 else
10426 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10427 fi ;;
10428 [\\/]* | ?:[\\/]* ) # Absolute path.
10429 ac_srcdir=$srcdir$ac_dir_suffix;
10430 ac_top_srcdir=$srcdir ;;
10431 *) # Relative path.
10432 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10433 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10434 esac
10436 # Do not use `cd foo && pwd` to compute absolute paths, because
10437 # the directories may not exist.
10438 case `pwd` in
10439 .) ac_abs_builddir="$ac_dir";;
10441 case "$ac_dir" in
10442 .) ac_abs_builddir=`pwd`;;
10443 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10444 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10445 esac;;
10446 esac
10447 case $ac_abs_builddir in
10448 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10450 case ${ac_top_builddir}. in
10451 .) ac_abs_top_builddir=$ac_abs_builddir;;
10452 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10453 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10454 esac;;
10455 esac
10456 case $ac_abs_builddir in
10457 .) ac_abs_srcdir=$ac_srcdir;;
10459 case $ac_srcdir in
10460 .) ac_abs_srcdir=$ac_abs_builddir;;
10461 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10462 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10463 esac;;
10464 esac
10465 case $ac_abs_builddir in
10466 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10468 case $ac_top_srcdir in
10469 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10470 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10471 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10472 esac;;
10473 esac
10476 case $INSTALL in
10477 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10478 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10479 esac
10481 # Let's still pretend it is `configure' which instantiates (i.e., don't
10482 # use $as_me), people would be surprised to read:
10483 # /* config.h. Generated by config.status. */
10484 if test x"$ac_file" = x-; then
10485 configure_input=
10486 else
10487 configure_input="$ac_file. "
10489 configure_input=$configure_input"Generated from `echo $ac_file_in |
10490 sed 's,.*/,,'` by configure."
10492 # First look for the input files in the build tree, otherwise in the
10493 # src tree.
10494 ac_file_inputs=`IFS=:
10495 for f in $ac_file_in; do
10496 case $f in
10497 -) echo $tmp/stdin ;;
10498 [\\/$]*)
10499 # Absolute (can't be DOS-style, as IFS=:)
10500 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10501 echo "$as_me: error: cannot find input file: $f" >&2;}
10502 { (exit 1); exit 1; }; }
10503 echo "$f";;
10504 *) # Relative
10505 if test -f "$f"; then
10506 # Build tree
10507 echo "$f"
10508 elif test -f "$srcdir/$f"; then
10509 # Source tree
10510 echo "$srcdir/$f"
10511 else
10512 # /dev/null tree
10513 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10514 echo "$as_me: error: cannot find input file: $f" >&2;}
10515 { (exit 1); exit 1; }; }
10516 fi;;
10517 esac
10518 done` || { (exit 1); exit 1; }
10520 if test x"$ac_file" != x-; then
10521 { echo "$as_me:$LINENO: creating $ac_file" >&5
10522 echo "$as_me: creating $ac_file" >&6;}
10523 rm -f "$ac_file"
10525 _ACEOF
10526 cat >>$CONFIG_STATUS <<_ACEOF
10527 sed "$ac_vpsub
10528 $extrasub
10529 _ACEOF
10530 cat >>$CONFIG_STATUS <<\_ACEOF
10532 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10533 s,@configure_input@,$configure_input,;t t
10534 s,@srcdir@,$ac_srcdir,;t t
10535 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10536 s,@top_srcdir@,$ac_top_srcdir,;t t
10537 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10538 s,@builddir@,$ac_builddir,;t t
10539 s,@abs_builddir@,$ac_abs_builddir,;t t
10540 s,@top_builddir@,$ac_top_builddir,;t t
10541 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10542 s,@INSTALL@,$ac_INSTALL,;t t
10543 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10544 rm -f $tmp/stdin
10545 if test x"$ac_file" != x-; then
10546 mv $tmp/out $ac_file
10547 else
10548 cat $tmp/out
10549 rm -f $tmp/out
10552 done
10553 _ACEOF
10554 cat >>$CONFIG_STATUS <<\_ACEOF
10557 # CONFIG_HEADER section.
10560 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10561 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10563 # ac_d sets the value in "#define NAME VALUE" lines.
10564 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10565 ac_dB='[ ].*$,\1#\2'
10566 ac_dC=' '
10567 ac_dD=',;t'
10568 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10569 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10570 ac_uB='$,\1#\2define\3'
10571 ac_uC=' '
10572 ac_uD=',;t'
10574 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10575 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10576 case $ac_file in
10577 - | *:- | *:-:* ) # input from stdin
10578 cat >$tmp/stdin
10579 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10580 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10581 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10582 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10583 * ) ac_file_in=$ac_file.in ;;
10584 esac
10586 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10587 echo "$as_me: creating $ac_file" >&6;}
10589 # First look for the input files in the build tree, otherwise in the
10590 # src tree.
10591 ac_file_inputs=`IFS=:
10592 for f in $ac_file_in; do
10593 case $f in
10594 -) echo $tmp/stdin ;;
10595 [\\/$]*)
10596 # Absolute (can't be DOS-style, as IFS=:)
10597 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10598 echo "$as_me: error: cannot find input file: $f" >&2;}
10599 { (exit 1); exit 1; }; }
10600 # Do quote $f, to prevent DOS paths from being IFS'd.
10601 echo "$f";;
10602 *) # Relative
10603 if test -f "$f"; then
10604 # Build tree
10605 echo "$f"
10606 elif test -f "$srcdir/$f"; then
10607 # Source tree
10608 echo "$srcdir/$f"
10609 else
10610 # /dev/null tree
10611 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10612 echo "$as_me: error: cannot find input file: $f" >&2;}
10613 { (exit 1); exit 1; }; }
10614 fi;;
10615 esac
10616 done` || { (exit 1); exit 1; }
10617 # Remove the trailing spaces.
10618 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10620 _ACEOF
10622 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10623 # `conftest.undefs', that substitutes the proper values into
10624 # config.h.in to produce config.h. The first handles `#define'
10625 # templates, and the second `#undef' templates.
10626 # And first: Protect against being on the right side of a sed subst in
10627 # config.status. Protect against being in an unquoted here document
10628 # in config.status.
10629 rm -f conftest.defines conftest.undefs
10630 # Using a here document instead of a string reduces the quoting nightmare.
10631 # Putting comments in sed scripts is not portable.
10633 # `end' is used to avoid that the second main sed command (meant for
10634 # 0-ary CPP macros) applies to n-ary macro definitions.
10635 # See the Autoconf documentation for `clear'.
10636 cat >confdef2sed.sed <<\_ACEOF
10637 s/[\\&,]/\\&/g
10638 s,[\\$`],\\&,g
10639 t clear
10640 : clear
10641 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10642 t end
10643 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10644 : end
10645 _ACEOF
10646 # If some macros were called several times there might be several times
10647 # the same #defines, which is useless. Nevertheless, we may not want to
10648 # sort them, since we want the *last* AC-DEFINE to be honored.
10649 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10650 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10651 rm -f confdef2sed.sed
10653 # This sed command replaces #undef with comments. This is necessary, for
10654 # example, in the case of _POSIX_SOURCE, which is predefined and required
10655 # on some systems where configure will not decide to define it.
10656 cat >>conftest.undefs <<\_ACEOF
10657 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10658 _ACEOF
10660 # Break up conftest.defines because some shells have a limit on the size
10661 # of here documents, and old seds have small limits too (100 cmds).
10662 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10663 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10664 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10665 echo ' :' >>$CONFIG_STATUS
10666 rm -f conftest.tail
10667 while grep . conftest.defines >/dev/null
10669 # Write a limited-size here document to $tmp/defines.sed.
10670 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10671 # Speed up: don't consider the non `#define' lines.
10672 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10673 # Work around the forget-to-reset-the-flag bug.
10674 echo 't clr' >>$CONFIG_STATUS
10675 echo ': clr' >>$CONFIG_STATUS
10676 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10677 echo 'CEOF
10678 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10679 rm -f $tmp/in
10680 mv $tmp/out $tmp/in
10681 ' >>$CONFIG_STATUS
10682 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10683 rm -f conftest.defines
10684 mv conftest.tail conftest.defines
10685 done
10686 rm -f conftest.defines
10687 echo ' fi # grep' >>$CONFIG_STATUS
10688 echo >>$CONFIG_STATUS
10690 # Break up conftest.undefs because some shells have a limit on the size
10691 # of here documents, and old seds have small limits too (100 cmds).
10692 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10693 rm -f conftest.tail
10694 while grep . conftest.undefs >/dev/null
10696 # Write a limited-size here document to $tmp/undefs.sed.
10697 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10698 # Speed up: don't consider the non `#undef'
10699 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10700 # Work around the forget-to-reset-the-flag bug.
10701 echo 't clr' >>$CONFIG_STATUS
10702 echo ': clr' >>$CONFIG_STATUS
10703 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10704 echo 'CEOF
10705 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10706 rm -f $tmp/in
10707 mv $tmp/out $tmp/in
10708 ' >>$CONFIG_STATUS
10709 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10710 rm -f conftest.undefs
10711 mv conftest.tail conftest.undefs
10712 done
10713 rm -f conftest.undefs
10715 cat >>$CONFIG_STATUS <<\_ACEOF
10716 # Let's still pretend it is `configure' which instantiates (i.e., don't
10717 # use $as_me), people would be surprised to read:
10718 # /* config.h. Generated by config.status. */
10719 if test x"$ac_file" = x-; then
10720 echo "/* Generated by configure. */" >$tmp/config.h
10721 else
10722 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10724 cat $tmp/in >>$tmp/config.h
10725 rm -f $tmp/in
10726 if test x"$ac_file" != x-; then
10727 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10728 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10729 echo "$as_me: $ac_file is unchanged" >&6;}
10730 else
10731 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10732 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10733 X"$ac_file" : 'X\(//\)[^/]' \| \
10734 X"$ac_file" : 'X\(//\)$' \| \
10735 X"$ac_file" : 'X\(/\)' \| \
10736 . : '\(.\)' 2>/dev/null ||
10737 echo X"$ac_file" |
10738 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10739 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10740 /^X\(\/\/\)$/{ s//\1/; q; }
10741 /^X\(\/\).*/{ s//\1/; q; }
10742 s/.*/./; q'`
10743 { if $as_mkdir_p; then
10744 mkdir -p "$ac_dir"
10745 else
10746 as_dir="$ac_dir"
10747 as_dirs=
10748 while test ! -d "$as_dir"; do
10749 as_dirs="$as_dir $as_dirs"
10750 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10751 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10752 X"$as_dir" : 'X\(//\)[^/]' \| \
10753 X"$as_dir" : 'X\(//\)$' \| \
10754 X"$as_dir" : 'X\(/\)' \| \
10755 . : '\(.\)' 2>/dev/null ||
10756 echo X"$as_dir" |
10757 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10758 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10759 /^X\(\/\/\)$/{ s//\1/; q; }
10760 /^X\(\/\).*/{ s//\1/; q; }
10761 s/.*/./; q'`
10762 done
10763 test ! -n "$as_dirs" || mkdir $as_dirs
10764 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10765 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10766 { (exit 1); exit 1; }; }; }
10768 rm -f $ac_file
10769 mv $tmp/config.h $ac_file
10771 else
10772 cat $tmp/config.h
10773 rm -f $tmp/config.h
10775 # Compute $ac_file's index in $config_headers.
10776 _am_stamp_count=1
10777 for _am_header in $config_headers :; do
10778 case $_am_header in
10779 $ac_file | $ac_file:* )
10780 break ;;
10782 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10783 esac
10784 done
10785 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
10786 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10787 X$ac_file : 'X\(//\)[^/]' \| \
10788 X$ac_file : 'X\(//\)$' \| \
10789 X$ac_file : 'X\(/\)' \| \
10790 . : '\(.\)' 2>/dev/null ||
10791 echo X$ac_file |
10792 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10793 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10794 /^X\(\/\/\)$/{ s//\1/; q; }
10795 /^X\(\/\).*/{ s//\1/; q; }
10796 s/.*/./; q'`/stamp-h$_am_stamp_count
10797 done
10798 _ACEOF
10799 cat >>$CONFIG_STATUS <<\_ACEOF
10802 # CONFIG_COMMANDS section.
10804 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10805 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10806 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10807 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10808 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10809 X"$ac_dest" : 'X\(//\)[^/]' \| \
10810 X"$ac_dest" : 'X\(//\)$' \| \
10811 X"$ac_dest" : 'X\(/\)' \| \
10812 . : '\(.\)' 2>/dev/null ||
10813 echo X"$ac_dest" |
10814 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10815 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10816 /^X\(\/\/\)$/{ s//\1/; q; }
10817 /^X\(\/\).*/{ s//\1/; q; }
10818 s/.*/./; q'`
10819 { if $as_mkdir_p; then
10820 mkdir -p "$ac_dir"
10821 else
10822 as_dir="$ac_dir"
10823 as_dirs=
10824 while test ! -d "$as_dir"; do
10825 as_dirs="$as_dir $as_dirs"
10826 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10827 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10828 X"$as_dir" : 'X\(//\)[^/]' \| \
10829 X"$as_dir" : 'X\(//\)$' \| \
10830 X"$as_dir" : 'X\(/\)' \| \
10831 . : '\(.\)' 2>/dev/null ||
10832 echo X"$as_dir" |
10833 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10834 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10835 /^X\(\/\/\)$/{ s//\1/; q; }
10836 /^X\(\/\).*/{ s//\1/; q; }
10837 s/.*/./; q'`
10838 done
10839 test ! -n "$as_dirs" || mkdir $as_dirs
10840 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10841 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10842 { (exit 1); exit 1; }; }; }
10844 ac_builddir=.
10846 if test "$ac_dir" != .; then
10847 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10848 # A "../" for each directory in $ac_dir_suffix.
10849 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10850 else
10851 ac_dir_suffix= ac_top_builddir=
10854 case $srcdir in
10855 .) # No --srcdir option. We are building in place.
10856 ac_srcdir=.
10857 if test -z "$ac_top_builddir"; then
10858 ac_top_srcdir=.
10859 else
10860 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10861 fi ;;
10862 [\\/]* | ?:[\\/]* ) # Absolute path.
10863 ac_srcdir=$srcdir$ac_dir_suffix;
10864 ac_top_srcdir=$srcdir ;;
10865 *) # Relative path.
10866 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10867 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10868 esac
10870 # Do not use `cd foo && pwd` to compute absolute paths, because
10871 # the directories may not exist.
10872 case `pwd` in
10873 .) ac_abs_builddir="$ac_dir";;
10875 case "$ac_dir" in
10876 .) ac_abs_builddir=`pwd`;;
10877 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10878 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10879 esac;;
10880 esac
10881 case $ac_abs_builddir in
10882 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10884 case ${ac_top_builddir}. in
10885 .) ac_abs_top_builddir=$ac_abs_builddir;;
10886 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10887 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10888 esac;;
10889 esac
10890 case $ac_abs_builddir in
10891 .) ac_abs_srcdir=$ac_srcdir;;
10893 case $ac_srcdir in
10894 .) ac_abs_srcdir=$ac_abs_builddir;;
10895 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10896 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10897 esac;;
10898 esac
10899 case $ac_abs_builddir in
10900 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10902 case $ac_top_srcdir in
10903 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10904 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10905 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10906 esac;;
10907 esac
10910 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10911 echo "$as_me: executing $ac_dest commands" >&6;}
10912 case $ac_dest in
10913 default-1 )
10914 for ac_file in $CONFIG_FILES; do
10915 # Support "outfile[:infile[:infile...]]"
10916 case "$ac_file" in
10917 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10918 esac
10919 # PO directories have a Makefile.in generated from Makefile.in.in.
10920 case "$ac_file" in */Makefile.in)
10921 # Adjust a relative srcdir.
10922 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10923 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
10924 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10925 # In autoconf-2.13 it is called $ac_given_srcdir.
10926 # In autoconf-2.50 it is called $srcdir.
10927 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10928 case "$ac_given_srcdir" in
10929 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10930 /*) top_srcdir="$ac_given_srcdir" ;;
10931 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
10932 esac
10933 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10934 rm -f "$ac_dir/POTFILES"
10935 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10936 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
10937 POMAKEFILEDEPS="POTFILES.in"
10938 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
10939 # on $ac_dir but don't depend on user-specified configuration
10940 # parameters.
10941 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
10942 # The LINGUAS file contains the set of available languages.
10943 if test -n "$OBSOLETE_ALL_LINGUAS"; then
10944 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
10946 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
10947 # Hide the ALL_LINGUAS assigment from automake.
10948 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
10949 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
10950 else
10951 # The set of available languages was given in configure.in.
10952 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
10954 case "$ac_given_srcdir" in
10955 .) srcdirpre= ;;
10956 *) srcdirpre='$(srcdir)/' ;;
10957 esac
10958 POFILES=
10959 GMOFILES=
10960 UPDATEPOFILES=
10961 DUMMYPOFILES=
10962 for lang in $ALL_LINGUAS; do
10963 POFILES="$POFILES $srcdirpre$lang.po"
10964 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
10965 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
10966 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
10967 done
10968 # CATALOGS depends on both $ac_dir and the user's LINGUAS
10969 # environment variable.
10970 INST_LINGUAS=
10971 if test -n "$ALL_LINGUAS"; then
10972 for presentlang in $ALL_LINGUAS; do
10973 useit=no
10974 if test "%UNSET%" != "$LINGUAS"; then
10975 desiredlanguages="$LINGUAS"
10976 else
10977 desiredlanguages="$ALL_LINGUAS"
10979 for desiredlang in $desiredlanguages; do
10980 # Use the presentlang catalog if desiredlang is
10981 # a. equal to presentlang, or
10982 # b. a variant of presentlang (because in this case,
10983 # presentlang can be used as a fallback for messages
10984 # which are not translated in the desiredlang catalog).
10985 case "$desiredlang" in
10986 "$presentlang"*) useit=yes;;
10987 esac
10988 done
10989 if test $useit = yes; then
10990 INST_LINGUAS="$INST_LINGUAS $presentlang"
10992 done
10994 CATALOGS=
10995 if test -n "$INST_LINGUAS"; then
10996 for lang in $INST_LINGUAS; do
10997 CATALOGS="$CATALOGS $lang.gmo"
10998 done
11000 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
11001 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
11002 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
11003 if test -f "$f"; then
11004 case "$f" in
11005 *.orig | *.bak | *~) ;;
11006 *) cat "$f" >> "$ac_dir/Makefile" ;;
11007 esac
11009 done
11012 esac
11013 done ;;
11014 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11015 # Strip MF so we end up with the name of the file.
11016 mf=`echo "$mf" | sed -e 's/:.*$//'`
11017 # Check whether this is an Automake generated Makefile or not.
11018 # We used to match only the files named `Makefile.in', but
11019 # some people rename them; so instead we look at the file content.
11020 # Grep'ing the first line is not enough: some people post-process
11021 # each Makefile.in and add a new line on top of each file to say so.
11022 # So let's grep whole file.
11023 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11024 dirpart=`(dirname "$mf") 2>/dev/null ||
11025 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11026 X"$mf" : 'X\(//\)[^/]' \| \
11027 X"$mf" : 'X\(//\)$' \| \
11028 X"$mf" : 'X\(/\)' \| \
11029 . : '\(.\)' 2>/dev/null ||
11030 echo X"$mf" |
11031 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11032 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11033 /^X\(\/\/\)$/{ s//\1/; q; }
11034 /^X\(\/\).*/{ s//\1/; q; }
11035 s/.*/./; q'`
11036 else
11037 continue
11039 # Extract the definition of DEPDIR, am__include, and am__quote
11040 # from the Makefile without running `make'.
11041 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11042 test -z "$DEPDIR" && continue
11043 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11044 test -z "am__include" && continue
11045 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11046 # When using ansi2knr, U may be empty or an underscore; expand it
11047 U=`sed -n 's/^U = //p' < "$mf"`
11048 # Find all dependency output files, they are included files with
11049 # $(DEPDIR) in their names. We invoke sed twice because it is the
11050 # simplest approach to changing $(DEPDIR) to its actual value in the
11051 # expansion.
11052 for file in `sed -n "
11053 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11054 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11055 # Make sure the directory exists.
11056 test -f "$dirpart/$file" && continue
11057 fdir=`(dirname "$file") 2>/dev/null ||
11058 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11059 X"$file" : 'X\(//\)[^/]' \| \
11060 X"$file" : 'X\(//\)$' \| \
11061 X"$file" : 'X\(/\)' \| \
11062 . : '\(.\)' 2>/dev/null ||
11063 echo X"$file" |
11064 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11065 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11066 /^X\(\/\/\)$/{ s//\1/; q; }
11067 /^X\(\/\).*/{ s//\1/; q; }
11068 s/.*/./; q'`
11069 { if $as_mkdir_p; then
11070 mkdir -p $dirpart/$fdir
11071 else
11072 as_dir=$dirpart/$fdir
11073 as_dirs=
11074 while test ! -d "$as_dir"; do
11075 as_dirs="$as_dir $as_dirs"
11076 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11077 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11078 X"$as_dir" : 'X\(//\)[^/]' \| \
11079 X"$as_dir" : 'X\(//\)$' \| \
11080 X"$as_dir" : 'X\(/\)' \| \
11081 . : '\(.\)' 2>/dev/null ||
11082 echo X"$as_dir" |
11083 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11084 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11085 /^X\(\/\/\)$/{ s//\1/; q; }
11086 /^X\(\/\).*/{ s//\1/; q; }
11087 s/.*/./; q'`
11088 done
11089 test ! -n "$as_dirs" || mkdir $as_dirs
11090 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
11091 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
11092 { (exit 1); exit 1; }; }; }
11094 # echo "creating $dirpart/$file"
11095 echo '# dummy' > "$dirpart/$file"
11096 done
11097 done
11099 esac
11100 done
11101 _ACEOF
11103 cat >>$CONFIG_STATUS <<\_ACEOF
11105 { (exit 0); exit 0; }
11106 _ACEOF
11107 chmod +x $CONFIG_STATUS
11108 ac_clean_files=$ac_clean_files_save
11111 # configure is writing to config.log, and then calls config.status.
11112 # config.status does its own redirection, appending to config.log.
11113 # Unfortunately, on DOS this fails, as config.log is still kept open
11114 # by configure, so config.status won't be able to write to it; its
11115 # output is simply discarded. So we exec the FD to /dev/null,
11116 # effectively closing config.log, so it can be properly (re)opened and
11117 # appended to by config.status. When coming back to configure, we
11118 # need to make the FD available again.
11119 if test "$no_create" != yes; then
11120 ac_cs_success=:
11121 ac_config_status_args=
11122 test "$silent" = yes &&
11123 ac_config_status_args="$ac_config_status_args --quiet"
11124 exec 5>/dev/null
11125 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11126 exec 5>>config.log
11127 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11128 # would make configure fail if this is the last instruction.
11129 $ac_cs_success || { (exit 1); exit 1; }