2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for libchise 0.1.1.
5 # Report bugs to <chise-en@m17n.org>.
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 # Support unset when possible.
27 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
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 \
46 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
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 ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; 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
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
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
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
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
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
140 if ("$as_dir/$as_base" -c '
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
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
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 |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
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).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 if expr a : '\(a\)' >/dev/null 2>&1; then
202 rm -f conf$$ conf$$.exe 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
213 elif ln conf$$.file conf$$ 2>/dev/null; then
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
226 as_executable_p="test -f"
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
236 # We need space, tab and new line, in precisely that order.
246 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
247 # so uname gets run too.
248 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
255 ac_default_prefix=/usr/local
256 ac_config_libobj_dir=.
261 SHELL=${CONFIG_SHELL-/bin/sh}
263 # Maximum number of lines to put in a shell here document.
264 # This variable seems obsolete. It should probably be removed, and
265 # only ac_max_sed_lines should be used.
266 : ${ac_max_here_lines=38}
268 # Identity of this package.
269 PACKAGE_NAME='libchise'
270 PACKAGE_TARNAME='libchise'
271 PACKAGE_VERSION='0.1.1'
272 PACKAGE_STRING='libchise 0.1.1'
273 PACKAGE_BUGREPORT='chise-en@m17n.org'
275 ac_unique_file="chise.c"
276 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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LIBTOOL ALLOCA CPP EGREP LIBOBJS LTLIBOBJS'
279 # Initialize some variables set by options.
281 ac_init_version=false
282 # The variables have the same names as the options, with
283 # dashes changed to underlines.
291 program_transform_name=s,x,x,
299 # Installation directory options.
300 # These are left unexpanded so users can "make install exec_prefix=/foo"
301 # and all the variables that are supposed to be based on exec_prefix
302 # by default will actually change.
303 # Use braces instead of parens because sh, perl, etc. also accept them.
304 bindir='${exec_prefix}/bin'
305 sbindir='${exec_prefix}/sbin'
306 libexecdir='${exec_prefix}/libexec'
307 datadir='${prefix}/share'
308 sysconfdir='${prefix}/etc'
309 sharedstatedir='${prefix}/com'
310 localstatedir='${prefix}/var'
311 libdir='${exec_prefix}/lib'
312 includedir='${prefix}/include'
313 oldincludedir='/usr/include'
314 infodir='${prefix}/info'
315 mandir='${prefix}/man'
320 # If the previous option needs an argument, assign it.
321 if test -n "$ac_prev"; then
322 eval "$ac_prev=\$ac_option"
327 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
329 # Accept the important Cygnus configure options, so we can diagnose typos.
333 -bindir | --bindir | --bindi | --bind | --bin | --bi)
335 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
338 -build | --build | --buil | --bui | --bu)
339 ac_prev=build_alias ;;
340 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
341 build_alias=$ac_optarg ;;
343 -cache-file | --cache-file | --cache-fil | --cache-fi \
344 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
345 ac_prev=cache_file ;;
346 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
347 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
348 cache_file=$ac_optarg ;;
351 cache_file=config.cache ;;
353 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
355 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
357 datadir=$ac_optarg ;;
359 -disable-* | --disable-*)
360 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
361 # Reject names that are not valid shell variable names.
362 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
363 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
364 { (exit 1); exit 1; }; }
365 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
366 eval "enable_$ac_feature=no" ;;
368 -enable-* | --enable-*)
369 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
370 # Reject names that are not valid shell variable names.
371 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
372 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
373 { (exit 1); exit 1; }; }
374 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
376 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
379 eval "enable_$ac_feature='$ac_optarg'" ;;
381 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
382 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
383 | --exec | --exe | --ex)
384 ac_prev=exec_prefix ;;
385 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
386 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
387 | --exec=* | --exe=* | --ex=*)
388 exec_prefix=$ac_optarg ;;
390 -gas | --gas | --ga | --g)
391 # Obsolete; use --with-gas.
394 -help | --help | --hel | --he | -h)
396 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
397 ac_init_help=recursive ;;
398 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
399 ac_init_help=short ;;
401 -host | --host | --hos | --ho)
402 ac_prev=host_alias ;;
403 -host=* | --host=* | --hos=* | --ho=*)
404 host_alias=$ac_optarg ;;
406 -includedir | --includedir | --includedi | --included | --include \
407 | --includ | --inclu | --incl | --inc)
408 ac_prev=includedir ;;
409 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
410 | --includ=* | --inclu=* | --incl=* | --inc=*)
411 includedir=$ac_optarg ;;
413 -infodir | --infodir | --infodi | --infod | --info | --inf)
415 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
416 infodir=$ac_optarg ;;
418 -libdir | --libdir | --libdi | --libd)
420 -libdir=* | --libdir=* | --libdi=* | --libd=*)
423 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
424 | --libexe | --libex | --libe)
425 ac_prev=libexecdir ;;
426 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
427 | --libexe=* | --libex=* | --libe=*)
428 libexecdir=$ac_optarg ;;
430 -localstatedir | --localstatedir | --localstatedi | --localstated \
431 | --localstate | --localstat | --localsta | --localst \
432 | --locals | --local | --loca | --loc | --lo)
433 ac_prev=localstatedir ;;
434 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
435 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
436 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
437 localstatedir=$ac_optarg ;;
439 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
441 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
445 # Obsolete; use --without-fp.
448 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
449 | --no-cr | --no-c | -n)
452 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
453 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
456 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
457 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
458 | --oldin | --oldi | --old | --ol | --o)
459 ac_prev=oldincludedir ;;
460 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
461 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
462 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
463 oldincludedir=$ac_optarg ;;
465 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
467 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
470 -program-prefix | --program-prefix | --program-prefi | --program-pref \
471 | --program-pre | --program-pr | --program-p)
472 ac_prev=program_prefix ;;
473 -program-prefix=* | --program-prefix=* | --program-prefi=* \
474 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
475 program_prefix=$ac_optarg ;;
477 -program-suffix | --program-suffix | --program-suffi | --program-suff \
478 | --program-suf | --program-su | --program-s)
479 ac_prev=program_suffix ;;
480 -program-suffix=* | --program-suffix=* | --program-suffi=* \
481 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
482 program_suffix=$ac_optarg ;;
484 -program-transform-name | --program-transform-name \
485 | --program-transform-nam | --program-transform-na \
486 | --program-transform-n | --program-transform- \
487 | --program-transform | --program-transfor \
488 | --program-transfo | --program-transf \
489 | --program-trans | --program-tran \
490 | --progr-tra | --program-tr | --program-t)
491 ac_prev=program_transform_name ;;
492 -program-transform-name=* | --program-transform-name=* \
493 | --program-transform-nam=* | --program-transform-na=* \
494 | --program-transform-n=* | --program-transform-=* \
495 | --program-transform=* | --program-transfor=* \
496 | --program-transfo=* | --program-transf=* \
497 | --program-trans=* | --program-tran=* \
498 | --progr-tra=* | --program-tr=* | --program-t=*)
499 program_transform_name=$ac_optarg ;;
501 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
502 | -silent | --silent | --silen | --sile | --sil)
505 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
507 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
509 sbindir=$ac_optarg ;;
511 -sharedstatedir | --sharedstatedir | --sharedstatedi \
512 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
513 | --sharedst | --shareds | --shared | --share | --shar \
515 ac_prev=sharedstatedir ;;
516 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
517 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
518 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
520 sharedstatedir=$ac_optarg ;;
522 -site | --site | --sit)
524 -site=* | --site=* | --sit=*)
527 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
529 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
532 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
533 | --syscon | --sysco | --sysc | --sys | --sy)
534 ac_prev=sysconfdir ;;
535 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
536 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
537 sysconfdir=$ac_optarg ;;
539 -target | --target | --targe | --targ | --tar | --ta | --t)
540 ac_prev=target_alias ;;
541 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
542 target_alias=$ac_optarg ;;
544 -v | -verbose | --verbose | --verbos | --verbo | --verb)
547 -version | --version | --versio | --versi | --vers | -V)
551 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid package name: $ac_package" >&2
555 { (exit 1); exit 1; }; }
556 ac_package=`echo $ac_package| sed 's/-/_/g'`
558 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
561 eval "with_$ac_package='$ac_optarg'" ;;
563 -without-* | --without-*)
564 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
565 # Reject names that are not valid shell variable names.
566 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567 { echo "$as_me: error: invalid package name: $ac_package" >&2
568 { (exit 1); exit 1; }; }
569 ac_package=`echo $ac_package | sed 's/-/_/g'`
570 eval "with_$ac_package=no" ;;
573 # Obsolete; use --with-x.
576 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
577 | --x-incl | --x-inc | --x-in | --x-i)
578 ac_prev=x_includes ;;
579 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
580 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
581 x_includes=$ac_optarg ;;
583 -x-libraries | --x-libraries | --x-librarie | --x-librari \
584 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
585 ac_prev=x_libraries ;;
586 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
587 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
588 x_libraries=$ac_optarg ;;
590 -*) { echo "$as_me: error: unrecognized option: $ac_option
591 Try \`$0 --help' for more information." >&2
592 { (exit 1); exit 1; }; }
596 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
597 # Reject names that are not valid shell variable names.
598 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
599 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
600 { (exit 1); exit 1; }; }
601 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
602 eval "$ac_envvar='$ac_optarg'"
606 # FIXME: should be removed in autoconf 3.0.
607 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
608 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
609 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
610 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
616 if test -n "$ac_prev"; then
617 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
618 { echo "$as_me: error: missing argument to $ac_option" >&2
619 { (exit 1); exit 1; }; }
622 # Be sure to have absolute paths.
623 for ac_var in exec_prefix prefix
625 eval ac_val=$`echo $ac_var`
627 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
628 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
629 { (exit 1); exit 1; }; };;
633 # Be sure to have absolute paths.
634 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
635 localstatedir libdir includedir oldincludedir infodir mandir
637 eval ac_val=$`echo $ac_var`
639 [\\/$]* | ?:[\\/]* ) ;;
640 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
641 { (exit 1); exit 1; }; };;
645 # There might be people who depend on the old broken behavior: `$host'
646 # used to hold the argument of --host etc.
647 # FIXME: To remove some day.
652 # FIXME: To remove some day.
653 if test "x$host_alias" != x; then
654 if test "x$build_alias" = x; then
655 cross_compiling=maybe
656 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
657 If a cross compiler is detected then cross compile mode will be used." >&2
658 elif test "x$build_alias" != "x$host_alias"; then
664 test -n "$host_alias" && ac_tool_prefix=$host_alias-
666 test "$silent" = yes && exec 6>/dev/null
669 # Find the source files, if location was not specified.
670 if test -z "$srcdir"; then
671 ac_srcdir_defaulted=yes
672 # Try the directory containing this script, then its parent.
673 ac_confdir=`(dirname "$0") 2>/dev/null ||
674 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
675 X"$0" : 'X\(//\)[^/]' \| \
676 X"$0" : 'X\(//\)$' \| \
677 X"$0" : 'X\(/\)' \| \
678 . : '\(.\)' 2>/dev/null ||
680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
682 /^X\(\/\/\)$/{ s//\1/; q; }
683 /^X\(\/\).*/{ s//\1/; q; }
686 if test ! -r $srcdir/$ac_unique_file; then
690 ac_srcdir_defaulted=no
692 if test ! -r $srcdir/$ac_unique_file; then
693 if test "$ac_srcdir_defaulted" = yes; then
694 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
695 { (exit 1); exit 1; }; }
697 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
698 { (exit 1); exit 1; }; }
701 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
702 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
703 { (exit 1); exit 1; }; }
704 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
705 ac_env_build_alias_set=${build_alias+set}
706 ac_env_build_alias_value=$build_alias
707 ac_cv_env_build_alias_set=${build_alias+set}
708 ac_cv_env_build_alias_value=$build_alias
709 ac_env_host_alias_set=${host_alias+set}
710 ac_env_host_alias_value=$host_alias
711 ac_cv_env_host_alias_set=${host_alias+set}
712 ac_cv_env_host_alias_value=$host_alias
713 ac_env_target_alias_set=${target_alias+set}
714 ac_env_target_alias_value=$target_alias
715 ac_cv_env_target_alias_set=${target_alias+set}
716 ac_cv_env_target_alias_value=$target_alias
717 ac_env_CC_set=${CC+set}
719 ac_cv_env_CC_set=${CC+set}
720 ac_cv_env_CC_value=$CC
721 ac_env_CFLAGS_set=${CFLAGS+set}
722 ac_env_CFLAGS_value=$CFLAGS
723 ac_cv_env_CFLAGS_set=${CFLAGS+set}
724 ac_cv_env_CFLAGS_value=$CFLAGS
725 ac_env_LDFLAGS_set=${LDFLAGS+set}
726 ac_env_LDFLAGS_value=$LDFLAGS
727 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
728 ac_cv_env_LDFLAGS_value=$LDFLAGS
729 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
730 ac_env_CPPFLAGS_value=$CPPFLAGS
731 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
732 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
733 ac_env_CPP_set=${CPP+set}
734 ac_env_CPP_value=$CPP
735 ac_cv_env_CPP_set=${CPP+set}
736 ac_cv_env_CPP_value=$CPP
739 # Report the --help message.
741 if test "$ac_init_help" = "long"; then
742 # Omit some internal or obsolete options to make the list less imposing.
743 # This message is too long to be a string in the A/UX 3.1 sh.
745 \`configure' configures libchise 0.1.1 to adapt to many kinds of systems.
747 Usage: $0 [OPTION]... [VAR=VALUE]...
749 To assign environment variables (e.g., CC, CFLAGS...), specify them as
750 VAR=VALUE. See below for descriptions of some of the useful variables.
752 Defaults for the options are specified in brackets.
755 -h, --help display this help and exit
756 --help=short display options specific to this package
757 --help=recursive display the short help of all the included packages
758 -V, --version display version information and exit
759 -q, --quiet, --silent do not print \`checking...' messages
760 --cache-file=FILE cache test results in FILE [disabled]
761 -C, --config-cache alias for \`--cache-file=config.cache'
762 -n, --no-create do not create output files
763 --srcdir=DIR find the sources in DIR [configure dir or \`..']
768 Installation directories:
769 --prefix=PREFIX install architecture-independent files in PREFIX
771 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
774 By default, \`make install' will install all the files in
775 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
776 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
777 for instance \`--prefix=\$HOME'.
779 For better control, use the options below.
781 Fine tuning of the installation directories:
782 --bindir=DIR user executables [EPREFIX/bin]
783 --sbindir=DIR system admin executables [EPREFIX/sbin]
784 --libexecdir=DIR program executables [EPREFIX/libexec]
785 --datadir=DIR read-only architecture-independent data [PREFIX/share]
786 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
787 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
788 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
789 --libdir=DIR object code libraries [EPREFIX/lib]
790 --includedir=DIR C header files [PREFIX/include]
791 --oldincludedir=DIR C header files for non-gcc [/usr/include]
792 --infodir=DIR info documentation [PREFIX/info]
793 --mandir=DIR man documentation [PREFIX/man]
800 if test -n "$ac_init_help"; then
801 case $ac_init_help in
802 short | recursive ) echo "Configuration of libchise 0.1.1:";;
806 Some influential environment variables:
807 CC C compiler command
808 CFLAGS C compiler flags
809 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
810 nonstandard directory <lib dir>
811 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
812 headers in a nonstandard directory <include dir>
815 Use these variables to override the choices made by `configure' or to help
816 it to find libraries and programs with nonstandard names/locations.
818 Report bugs to <chise-en@m17n.org>.
822 if test "$ac_init_help" = "recursive"; then
823 # If there are subdirs, report their specific --help.
825 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
826 test -d $ac_dir || continue
829 if test "$ac_dir" != .; then
830 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
831 # A "../" for each directory in $ac_dir_suffix.
832 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
834 ac_dir_suffix= ac_top_builddir=
838 .) # No --srcdir option. We are building in place.
840 if test -z "$ac_top_builddir"; then
843 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
845 [\\/]* | ?:[\\/]* ) # Absolute path.
846 ac_srcdir=$srcdir$ac_dir_suffix;
847 ac_top_srcdir=$srcdir ;;
849 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
850 ac_top_srcdir=$ac_top_builddir$srcdir ;;
852 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
854 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
855 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
856 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
857 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
860 # Check for guested configure; otherwise get Cygnus style configure.
861 if test -f $ac_srcdir/configure.gnu; then
863 $SHELL $ac_srcdir/configure.gnu --help=recursive
864 elif test -f $ac_srcdir/configure; then
866 $SHELL $ac_srcdir/configure --help=recursive
867 elif test -f $ac_srcdir/configure.ac ||
868 test -f $ac_srcdir/configure.in; then
872 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
878 test -n "$ac_init_help" && exit 0
879 if $ac_init_version; then
881 libchise configure 0.1.1
882 generated by GNU Autoconf 2.57
884 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
885 Free Software Foundation, Inc.
886 This configure script is free software; the Free Software Foundation
887 gives unlimited permission to copy, distribute and modify it.
893 This file contains any messages produced by compilers while
894 running configure, to aid debugging if configure makes a mistake.
896 It was created by libchise $as_me 0.1.1, which was
897 generated by GNU Autoconf 2.57. Invocation command line was
908 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
909 uname -m = `(uname -m) 2>/dev/null || echo unknown`
910 uname -r = `(uname -r) 2>/dev/null || echo unknown`
911 uname -s = `(uname -s) 2>/dev/null || echo unknown`
912 uname -v = `(uname -v) 2>/dev/null || echo unknown`
914 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
915 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
917 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
918 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
919 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
920 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
921 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
922 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
923 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
931 test -z "$as_dir" && as_dir=.
947 # Keep a trace of the command line.
948 # Strip out --no-create and --no-recursion so they do not pile up.
949 # Strip out --silent because we don't want to record it for future runs.
950 # Also quote any args containing shell meta-characters.
951 # Make two passes to allow for proper duplicate-argument suppression.
956 ac_must_keep_next=false
962 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
963 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
964 | -silent | --silent | --silen | --sile | --sil)
966 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
967 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
970 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
972 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
973 if test $ac_must_keep_next = true; then
974 ac_must_keep_next=false # Got value, back to normal.
977 *=* | --config-cache | -C | -disable-* | --disable-* \
978 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
979 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
980 | -with-* | --with-* | -without-* | --without-* | --x)
981 case "$ac_configure_args0 " in
982 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
985 -* ) ac_must_keep_next=true ;;
988 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
989 # Get rid of the leading space.
995 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
996 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
998 # When interrupted or exit'd, cleanup temporary files, and complete
999 # config.log. We remove comments because anyway the quotes in there
1000 # would cause problems or look ugly.
1001 # WARNING: Be sure not to use single quotes in there, as some shells,
1002 # such as our DU 5.0 friend, will then `close' the trap.
1003 trap 'exit_status=$?
1004 # Save into config.log some information that might help in debugging.
1009 ## ---------------- ##
1010 ## Cache variables. ##
1011 ## ---------------- ##
1014 # The following way of writing the cache mishandles newlines in values,
1017 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1020 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1021 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1025 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1032 ## ----------------- ##
1033 ## Output variables. ##
1034 ## ----------------- ##
1037 for ac_var in $ac_subst_vars
1039 eval ac_val=$`echo $ac_var`
1040 echo "$ac_var='"'"'$ac_val'"'"'"
1044 if test -n "$ac_subst_files"; then
1051 for ac_var in $ac_subst_files
1053 eval ac_val=$`echo $ac_var`
1054 echo "$ac_var='"'"'$ac_val'"'"'"
1059 if test -s confdefs.h; then
1066 sed "/^$/d" confdefs.h | sort
1069 test "$ac_signal" != 0 &&
1070 echo "$as_me: caught signal $ac_signal"
1071 echo "$as_me: exit $exit_status"
1073 rm -f core core.* *.core &&
1074 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1077 for ac_signal in 1 2 13 15; do
1078 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1082 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1083 rm -rf conftest* confdefs.h
1084 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1087 # Predefined preprocessor variables.
1089 cat >>confdefs.h <<_ACEOF
1090 #define PACKAGE_NAME "$PACKAGE_NAME"
1094 cat >>confdefs.h <<_ACEOF
1095 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1099 cat >>confdefs.h <<_ACEOF
1100 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1104 cat >>confdefs.h <<_ACEOF
1105 #define PACKAGE_STRING "$PACKAGE_STRING"
1109 cat >>confdefs.h <<_ACEOF
1110 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1114 # Let the site file select an alternate cache file if it wants to.
1115 # Prefer explicitly selected file to automatically selected ones.
1116 if test -z "$CONFIG_SITE"; then
1117 if test "x$prefix" != xNONE; then
1118 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1120 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1123 for ac_site_file in $CONFIG_SITE; do
1124 if test -r "$ac_site_file"; then
1125 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1126 echo "$as_me: loading site script $ac_site_file" >&6;}
1127 sed 's/^/| /' "$ac_site_file" >&5
1132 if test -r "$cache_file"; then
1133 # Some versions of bash will fail to source /dev/null (special
1134 # files actually), so we avoid doing that.
1135 if test -f "$cache_file"; then
1136 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1137 echo "$as_me: loading cache $cache_file" >&6;}
1139 [\\/]* | ?:[\\/]* ) . $cache_file;;
1140 *) . ./$cache_file;;
1144 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1145 echo "$as_me: creating cache $cache_file" >&6;}
1149 # Check that the precious variables saved in the cache have kept the same
1151 ac_cache_corrupted=false
1152 for ac_var in `(set) 2>&1 |
1153 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1154 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1155 eval ac_new_set=\$ac_env_${ac_var}_set
1156 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1157 eval ac_new_val="\$ac_env_${ac_var}_value"
1158 case $ac_old_set,$ac_new_set in
1160 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1161 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1162 ac_cache_corrupted=: ;;
1164 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1165 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1166 ac_cache_corrupted=: ;;
1169 if test "x$ac_old_val" != "x$ac_new_val"; then
1170 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1171 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1172 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1173 echo "$as_me: former value: $ac_old_val" >&2;}
1174 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1175 echo "$as_me: current value: $ac_new_val" >&2;}
1176 ac_cache_corrupted=:
1179 # Pass precious variables to config.status.
1180 if test "$ac_new_set" = set; then
1182 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1183 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1184 *) ac_arg=$ac_var=$ac_new_val ;;
1186 case " $ac_configure_args " in
1187 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1188 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1192 if $ac_cache_corrupted; then
1193 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1194 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1195 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1196 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1197 { (exit 1); exit 1; }; }
1201 ac_cpp='$CPP $CPPFLAGS'
1202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1233 ac_config_headers="$ac_config_headers config.h"
1236 # Checks for programs.
1238 ac_cpp='$CPP $CPPFLAGS'
1239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1242 if test -n "$ac_tool_prefix"; then
1243 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1244 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1245 echo "$as_me:$LINENO: checking for $ac_word" >&5
1246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1247 if test "${ac_cv_prog_CC+set}" = set; then
1248 echo $ECHO_N "(cached) $ECHO_C" >&6
1250 if test -n "$CC"; then
1251 ac_cv_prog_CC="$CC" # Let the user override the test.
1253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1257 test -z "$as_dir" && as_dir=.
1258 for ac_exec_ext in '' $ac_executable_extensions; do
1259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1260 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1270 if test -n "$CC"; then
1271 echo "$as_me:$LINENO: result: $CC" >&5
1272 echo "${ECHO_T}$CC" >&6
1274 echo "$as_me:$LINENO: result: no" >&5
1275 echo "${ECHO_T}no" >&6
1279 if test -z "$ac_cv_prog_CC"; then
1281 # Extract the first word of "gcc", so it can be a program name with args.
1282 set dummy gcc; ac_word=$2
1283 echo "$as_me:$LINENO: checking for $ac_word" >&5
1284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1285 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1286 echo $ECHO_N "(cached) $ECHO_C" >&6
1288 if test -n "$ac_ct_CC"; then
1289 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1295 test -z "$as_dir" && as_dir=.
1296 for ac_exec_ext in '' $ac_executable_extensions; do
1297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1298 ac_cv_prog_ac_ct_CC="gcc"
1299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1307 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1308 if test -n "$ac_ct_CC"; then
1309 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1310 echo "${ECHO_T}$ac_ct_CC" >&6
1312 echo "$as_me:$LINENO: result: no" >&5
1313 echo "${ECHO_T}no" >&6
1321 if test -z "$CC"; then
1322 if test -n "$ac_tool_prefix"; then
1323 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1324 set dummy ${ac_tool_prefix}cc; ac_word=$2
1325 echo "$as_me:$LINENO: checking for $ac_word" >&5
1326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1327 if test "${ac_cv_prog_CC+set}" = set; then
1328 echo $ECHO_N "(cached) $ECHO_C" >&6
1330 if test -n "$CC"; then
1331 ac_cv_prog_CC="$CC" # Let the user override the test.
1333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1337 test -z "$as_dir" && as_dir=.
1338 for ac_exec_ext in '' $ac_executable_extensions; do
1339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1340 ac_cv_prog_CC="${ac_tool_prefix}cc"
1341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1350 if test -n "$CC"; then
1351 echo "$as_me:$LINENO: result: $CC" >&5
1352 echo "${ECHO_T}$CC" >&6
1354 echo "$as_me:$LINENO: result: no" >&5
1355 echo "${ECHO_T}no" >&6
1359 if test -z "$ac_cv_prog_CC"; then
1361 # Extract the first word of "cc", so it can be a program name with args.
1362 set dummy cc; ac_word=$2
1363 echo "$as_me:$LINENO: checking for $ac_word" >&5
1364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1365 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1366 echo $ECHO_N "(cached) $ECHO_C" >&6
1368 if test -n "$ac_ct_CC"; then
1369 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1375 test -z "$as_dir" && as_dir=.
1376 for ac_exec_ext in '' $ac_executable_extensions; do
1377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1378 ac_cv_prog_ac_ct_CC="cc"
1379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1387 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1388 if test -n "$ac_ct_CC"; then
1389 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1390 echo "${ECHO_T}$ac_ct_CC" >&6
1392 echo "$as_me:$LINENO: result: no" >&5
1393 echo "${ECHO_T}no" >&6
1402 if test -z "$CC"; then
1403 # Extract the first word of "cc", so it can be a program name with args.
1404 set dummy cc; ac_word=$2
1405 echo "$as_me:$LINENO: checking for $ac_word" >&5
1406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1407 if test "${ac_cv_prog_CC+set}" = set; then
1408 echo $ECHO_N "(cached) $ECHO_C" >&6
1410 if test -n "$CC"; then
1411 ac_cv_prog_CC="$CC" # Let the user override the test.
1414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1418 test -z "$as_dir" && as_dir=.
1419 for ac_exec_ext in '' $ac_executable_extensions; do
1420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1421 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1422 ac_prog_rejected=yes
1426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1432 if test $ac_prog_rejected = yes; then
1433 # We found a bogon in the path, so make sure we never use it.
1434 set dummy $ac_cv_prog_CC
1436 if test $# != 0; then
1437 # We chose a different compiler from the bogus one.
1438 # However, it has the same basename, so the bogon will be chosen
1439 # first if we set CC to just the basename; use the full file name.
1441 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1447 if test -n "$CC"; then
1448 echo "$as_me:$LINENO: result: $CC" >&5
1449 echo "${ECHO_T}$CC" >&6
1451 echo "$as_me:$LINENO: result: no" >&5
1452 echo "${ECHO_T}no" >&6
1456 if test -z "$CC"; then
1457 if test -n "$ac_tool_prefix"; then
1460 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1461 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1462 echo "$as_me:$LINENO: checking for $ac_word" >&5
1463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1464 if test "${ac_cv_prog_CC+set}" = set; then
1465 echo $ECHO_N "(cached) $ECHO_C" >&6
1467 if test -n "$CC"; then
1468 ac_cv_prog_CC="$CC" # Let the user override the test.
1470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1474 test -z "$as_dir" && as_dir=.
1475 for ac_exec_ext in '' $ac_executable_extensions; do
1476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1477 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1487 if test -n "$CC"; then
1488 echo "$as_me:$LINENO: result: $CC" >&5
1489 echo "${ECHO_T}$CC" >&6
1491 echo "$as_me:$LINENO: result: no" >&5
1492 echo "${ECHO_T}no" >&6
1495 test -n "$CC" && break
1498 if test -z "$CC"; then
1502 # Extract the first word of "$ac_prog", so it can be a program name with args.
1503 set dummy $ac_prog; ac_word=$2
1504 echo "$as_me:$LINENO: checking for $ac_word" >&5
1505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1506 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1507 echo $ECHO_N "(cached) $ECHO_C" >&6
1509 if test -n "$ac_ct_CC"; then
1510 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1516 test -z "$as_dir" && as_dir=.
1517 for ac_exec_ext in '' $ac_executable_extensions; do
1518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1519 ac_cv_prog_ac_ct_CC="$ac_prog"
1520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1528 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1529 if test -n "$ac_ct_CC"; then
1530 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1531 echo "${ECHO_T}$ac_ct_CC" >&6
1533 echo "$as_me:$LINENO: result: no" >&5
1534 echo "${ECHO_T}no" >&6
1537 test -n "$ac_ct_CC" && break
1546 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1547 See \`config.log' for more details." >&5
1548 echo "$as_me: error: no acceptable C compiler found in \$PATH
1549 See \`config.log' for more details." >&2;}
1550 { (exit 1); exit 1; }; }
1552 # Provide some information about the compiler.
1553 echo "$as_me:$LINENO:" \
1554 "checking for C compiler version" >&5
1555 ac_compiler=`set X $ac_compile; echo $2`
1556 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1557 (eval $ac_compiler --version </dev/null >&5) 2>&5
1559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1560 (exit $ac_status); }
1561 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1562 (eval $ac_compiler -v </dev/null >&5) 2>&5
1564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1565 (exit $ac_status); }
1566 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1567 (eval $ac_compiler -V </dev/null >&5) 2>&5
1569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1570 (exit $ac_status); }
1572 cat >conftest.$ac_ext <<_ACEOF
1573 #line $LINENO "configure"
1576 cat confdefs.h >>conftest.$ac_ext
1577 cat >>conftest.$ac_ext <<_ACEOF
1578 /* end confdefs.h. */
1588 ac_clean_files_save=$ac_clean_files
1589 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1590 # Try to create an executable without -o first, disregard a.out.
1591 # It will help us diagnose broken compilers, and finding out an intuition
1593 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1594 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1595 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1596 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1597 (eval $ac_link_default) 2>&5
1599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1600 (exit $ac_status); }; then
1601 # Find the output, starting from the most likely. This scheme is
1602 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1605 # Be careful to initialize this variable, since it used to be cached.
1606 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1608 # b.out is created by i960 compilers.
1609 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1611 test -f "$ac_file" || continue
1613 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1616 # This is the source file.
1619 # We found the default executable, but exeext='' is most
1623 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1624 # FIXME: I believe we export ac_cv_exeext for Libtool,
1625 # but it would be cool to find out if it's true. Does anybody
1626 # maintain Libtool? --akim.
1634 echo "$as_me: failed program was:" >&5
1635 sed 's/^/| /' conftest.$ac_ext >&5
1637 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1638 See \`config.log' for more details." >&5
1639 echo "$as_me: error: C compiler cannot create executables
1640 See \`config.log' for more details." >&2;}
1641 { (exit 77); exit 77; }; }
1644 ac_exeext=$ac_cv_exeext
1645 echo "$as_me:$LINENO: result: $ac_file" >&5
1646 echo "${ECHO_T}$ac_file" >&6
1648 # Check the compiler produces executables we can run. If not, either
1649 # the compiler is broken, or we cross compile.
1650 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1651 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1652 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1653 # If not cross compiling, check that we can run a simple program.
1654 if test "$cross_compiling" != yes; then
1655 if { ac_try='./$ac_file'
1656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1660 (exit $ac_status); }; }; then
1663 if test "$cross_compiling" = maybe; then
1666 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1667 If you meant to cross compile, use \`--host'.
1668 See \`config.log' for more details." >&5
1669 echo "$as_me: error: cannot run C compiled programs.
1670 If you meant to cross compile, use \`--host'.
1671 See \`config.log' for more details." >&2;}
1672 { (exit 1); exit 1; }; }
1676 echo "$as_me:$LINENO: result: yes" >&5
1677 echo "${ECHO_T}yes" >&6
1679 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1680 ac_clean_files=$ac_clean_files_save
1681 # Check the compiler produces executables we can run. If not, either
1682 # the compiler is broken, or we cross compile.
1683 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1684 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1685 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1686 echo "${ECHO_T}$cross_compiling" >&6
1688 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1689 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1691 (eval $ac_link) 2>&5
1693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1694 (exit $ac_status); }; then
1695 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1696 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1697 # work properly (i.e., refer to `conftest.exe'), while it won't with
1699 for ac_file in conftest.exe conftest conftest.*; do
1700 test -f "$ac_file" || continue
1702 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1703 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1710 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1711 See \`config.log' for more details." >&5
1712 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1713 See \`config.log' for more details." >&2;}
1714 { (exit 1); exit 1; }; }
1717 rm -f conftest$ac_cv_exeext
1718 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1719 echo "${ECHO_T}$ac_cv_exeext" >&6
1721 rm -f conftest.$ac_ext
1722 EXEEXT=$ac_cv_exeext
1724 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1725 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1726 if test "${ac_cv_objext+set}" = set; then
1727 echo $ECHO_N "(cached) $ECHO_C" >&6
1729 cat >conftest.$ac_ext <<_ACEOF
1730 #line $LINENO "configure"
1733 cat confdefs.h >>conftest.$ac_ext
1734 cat >>conftest.$ac_ext <<_ACEOF
1735 /* end confdefs.h. */
1745 rm -f conftest.o conftest.obj
1746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1747 (eval $ac_compile) 2>&5
1749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1750 (exit $ac_status); }; then
1751 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1753 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1754 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1759 echo "$as_me: failed program was:" >&5
1760 sed 's/^/| /' conftest.$ac_ext >&5
1762 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1763 See \`config.log' for more details." >&5
1764 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1765 See \`config.log' for more details." >&2;}
1766 { (exit 1); exit 1; }; }
1769 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1771 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1772 echo "${ECHO_T}$ac_cv_objext" >&6
1773 OBJEXT=$ac_cv_objext
1775 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1776 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1777 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1778 echo $ECHO_N "(cached) $ECHO_C" >&6
1780 cat >conftest.$ac_ext <<_ACEOF
1781 #line $LINENO "configure"
1784 cat confdefs.h >>conftest.$ac_ext
1785 cat >>conftest.$ac_ext <<_ACEOF
1786 /* end confdefs.h. */
1799 rm -f conftest.$ac_objext
1800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1801 (eval $ac_compile) 2>&5
1803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1804 (exit $ac_status); } &&
1805 { ac_try='test -s conftest.$ac_objext'
1806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1810 (exit $ac_status); }; }; then
1813 echo "$as_me: failed program was:" >&5
1814 sed 's/^/| /' conftest.$ac_ext >&5
1818 rm -f conftest.$ac_objext conftest.$ac_ext
1819 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1822 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1823 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1824 GCC=`test $ac_compiler_gnu = yes && echo yes`
1825 ac_test_CFLAGS=${CFLAGS+set}
1826 ac_save_CFLAGS=$CFLAGS
1828 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1829 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1830 if test "${ac_cv_prog_cc_g+set}" = set; then
1831 echo $ECHO_N "(cached) $ECHO_C" >&6
1833 cat >conftest.$ac_ext <<_ACEOF
1834 #line $LINENO "configure"
1837 cat confdefs.h >>conftest.$ac_ext
1838 cat >>conftest.$ac_ext <<_ACEOF
1839 /* end confdefs.h. */
1849 rm -f conftest.$ac_objext
1850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1851 (eval $ac_compile) 2>&5
1853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1854 (exit $ac_status); } &&
1855 { ac_try='test -s conftest.$ac_objext'
1856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1860 (exit $ac_status); }; }; then
1863 echo "$as_me: failed program was:" >&5
1864 sed 's/^/| /' conftest.$ac_ext >&5
1868 rm -f conftest.$ac_objext conftest.$ac_ext
1870 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1871 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1872 if test "$ac_test_CFLAGS" = set; then
1873 CFLAGS=$ac_save_CFLAGS
1874 elif test $ac_cv_prog_cc_g = yes; then
1875 if test "$GCC" = yes; then
1881 if test "$GCC" = yes; then
1887 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1888 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1889 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1890 echo $ECHO_N "(cached) $ECHO_C" >&6
1892 ac_cv_prog_cc_stdc=no
1894 cat >conftest.$ac_ext <<_ACEOF
1895 #line $LINENO "configure"
1898 cat confdefs.h >>conftest.$ac_ext
1899 cat >>conftest.$ac_ext <<_ACEOF
1900 /* end confdefs.h. */
1903 #include <sys/types.h>
1904 #include <sys/stat.h>
1905 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1906 struct buf { int x; };
1907 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1908 static char *e (p, i)
1914 static char *f (char * (*g) (char **, int), char **p, ...)
1919 s = g (p, va_arg (v,int));
1923 int test (int i, double x);
1924 struct s1 {int (*f) (int a);};
1925 struct s2 {int (*f) (double a);};
1926 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1932 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1937 # Don't try gcc -ansi; that turns off useful extensions and
1938 # breaks some systems' header files.
1939 # AIX -qlanglvl=ansi
1940 # Ultrix and OSF/1 -std1
1941 # HP-UX 10.20 and later -Ae
1942 # HP-UX older versions -Aa -D_HPUX_SOURCE
1943 # SVR4 -Xc -D__EXTENSIONS__
1944 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1946 CC="$ac_save_CC $ac_arg"
1947 rm -f conftest.$ac_objext
1948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1949 (eval $ac_compile) 2>&5
1951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1952 (exit $ac_status); } &&
1953 { ac_try='test -s conftest.$ac_objext'
1954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1958 (exit $ac_status); }; }; then
1959 ac_cv_prog_cc_stdc=$ac_arg
1962 echo "$as_me: failed program was:" >&5
1963 sed 's/^/| /' conftest.$ac_ext >&5
1966 rm -f conftest.$ac_objext
1968 rm -f conftest.$ac_ext conftest.$ac_objext
1973 case "x$ac_cv_prog_cc_stdc" in
1975 echo "$as_me:$LINENO: result: none needed" >&5
1976 echo "${ECHO_T}none needed" >&6 ;;
1978 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
1979 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
1980 CC="$CC $ac_cv_prog_cc_stdc" ;;
1983 # Some people use a C++ compiler to compile C. Since we use `exit',
1984 # in C++ we need to declare it. In case someone uses the same compiler
1985 # for both compiling C and C++ we need to have the C++ compiler decide
1986 # the declaration of exit, since it's the most demanding environment.
1987 cat >conftest.$ac_ext <<_ACEOF
1992 rm -f conftest.$ac_objext
1993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1994 (eval $ac_compile) 2>&5
1996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1997 (exit $ac_status); } &&
1998 { ac_try='test -s conftest.$ac_objext'
1999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003 (exit $ac_status); }; }; then
2004 for ac_declaration in \
2006 'extern "C" void std::exit (int) throw (); using std::exit;' \
2007 'extern "C" void std::exit (int); using std::exit;' \
2008 'extern "C" void exit (int) throw ();' \
2009 'extern "C" void exit (int);' \
2012 cat >conftest.$ac_ext <<_ACEOF
2013 #line $LINENO "configure"
2016 cat confdefs.h >>conftest.$ac_ext
2017 cat >>conftest.$ac_ext <<_ACEOF
2018 /* end confdefs.h. */
2029 rm -f conftest.$ac_objext
2030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2031 (eval $ac_compile) 2>&5
2033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034 (exit $ac_status); } &&
2035 { ac_try='test -s conftest.$ac_objext'
2036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040 (exit $ac_status); }; }; then
2043 echo "$as_me: failed program was:" >&5
2044 sed 's/^/| /' conftest.$ac_ext >&5
2048 rm -f conftest.$ac_objext conftest.$ac_ext
2049 cat >conftest.$ac_ext <<_ACEOF
2050 #line $LINENO "configure"
2053 cat confdefs.h >>conftest.$ac_ext
2054 cat >>conftest.$ac_ext <<_ACEOF
2055 /* end confdefs.h. */
2065 rm -f conftest.$ac_objext
2066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2067 (eval $ac_compile) 2>&5
2069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2070 (exit $ac_status); } &&
2071 { ac_try='test -s conftest.$ac_objext'
2072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2076 (exit $ac_status); }; }; then
2079 echo "$as_me: failed program was:" >&5
2080 sed 's/^/| /' conftest.$ac_ext >&5
2083 rm -f conftest.$ac_objext conftest.$ac_ext
2086 if test -n "$ac_declaration"; then
2087 echo '#ifdef __cplusplus' >>confdefs.h
2088 echo $ac_declaration >>confdefs.h
2089 echo '#endif' >>confdefs.h
2093 echo "$as_me: failed program was:" >&5
2094 sed 's/^/| /' conftest.$ac_ext >&5
2097 rm -f conftest.$ac_objext conftest.$ac_ext
2099 ac_cpp='$CPP $CPPFLAGS'
2100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2104 for ac_prog in glibtool libtool
2106 # Extract the first word of "$ac_prog", so it can be a program name with args.
2107 set dummy $ac_prog; ac_word=$2
2108 echo "$as_me:$LINENO: checking for $ac_word" >&5
2109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2110 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
2111 echo $ECHO_N "(cached) $ECHO_C" >&6
2113 if test -n "$LIBTOOL"; then
2114 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
2116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2118 /usr/local/bin:/opt/bin:/sw/bin:/usr/bin:/bin"
2119 for as_dir in $as_dummy
2122 test -z "$as_dir" && as_dir=.
2123 for ac_exec_ext in '' $ac_executable_extensions; do
2124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2125 ac_cv_prog_LIBTOOL="$ac_prog"
2126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2134 LIBTOOL=$ac_cv_prog_LIBTOOL
2135 if test -n "$LIBTOOL"; then
2136 echo "$as_me:$LINENO: result: $LIBTOOL" >&5
2137 echo "${ECHO_T}$LIBTOOL" >&6
2139 echo "$as_me:$LINENO: result: no" >&5
2140 echo "${ECHO_T}no" >&6
2143 test -n "$LIBTOOL" && break
2145 test -n "$LIBTOOL" || LIBTOOL="libtool"
2148 # Checks for libraries.
2149 if test -f /sw/include/db3/db.h; then
2150 CFLAGS="-I/sw/include/db3 $CFLAGS"
2153 # Checks for header files.
2155 # Checks for typedefs, structures, and compiler characteristics.
2157 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
2158 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2159 if test "${ac_cv_c_const+set}" = set; then
2160 echo $ECHO_N "(cached) $ECHO_C" >&6
2162 cat >conftest.$ac_ext <<_ACEOF
2163 #line $LINENO "configure"
2166 cat confdefs.h >>conftest.$ac_ext
2167 cat >>conftest.$ac_ext <<_ACEOF
2168 /* end confdefs.h. */
2173 /* FIXME: Include the comments suggested by Paul. */
2175 /* Ultrix mips cc rejects this. */
2176 typedef int charset[2];
2178 /* SunOS 4.1.1 cc rejects this. */
2179 char const *const *ccp;
2181 /* NEC SVR4.0.2 mips cc rejects this. */
2182 struct point {int x, y;};
2183 static struct point const zero = {0,0};
2184 /* AIX XL C 1.02.0.0 rejects this.
2185 It does not let you subtract one const X* pointer from another in
2186 an arm of an if-expression whose if-part is not a constant
2188 const char *g = "string";
2189 ccp = &g + (g ? g-g : 0);
2190 /* HPUX 7.0 cc rejects these. */
2193 ccp = (char const *const *) p;
2194 { /* SCO 3.2v4 cc rejects this. */
2196 char const *s = 0 ? (char *) 0 : (char const *) 0;
2200 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2202 const int *foo = &x[0];
2205 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2206 typedef const int *iptr;
2210 { /* AIX XL C 1.02.0.0 rejects this saying
2211 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2212 struct s { int j; const int *ap[3]; };
2213 struct s *b; b->j = 5;
2215 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2224 rm -f conftest.$ac_objext
2225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2226 (eval $ac_compile) 2>&5
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); } &&
2230 { ac_try='test -s conftest.$ac_objext'
2231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; }; then
2238 echo "$as_me: failed program was:" >&5
2239 sed 's/^/| /' conftest.$ac_ext >&5
2243 rm -f conftest.$ac_objext conftest.$ac_ext
2245 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
2246 echo "${ECHO_T}$ac_cv_c_const" >&6
2247 if test $ac_cv_c_const = no; then
2249 cat >>confdefs.h <<\_ACEOF
2255 echo "$as_me:$LINENO: checking for inline" >&5
2256 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2257 if test "${ac_cv_c_inline+set}" = set; then
2258 echo $ECHO_N "(cached) $ECHO_C" >&6
2261 for ac_kw in inline __inline__ __inline; do
2262 cat >conftest.$ac_ext <<_ACEOF
2263 #line $LINENO "configure"
2266 cat confdefs.h >>conftest.$ac_ext
2267 cat >>conftest.$ac_ext <<_ACEOF
2268 /* end confdefs.h. */
2271 static $ac_kw foo_t static_foo () {return 0; }
2272 $ac_kw foo_t foo () {return 0; }
2276 rm -f conftest.$ac_objext
2277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2278 (eval $ac_compile) 2>&5
2280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281 (exit $ac_status); } &&
2282 { ac_try='test -s conftest.$ac_objext'
2283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); }; }; then
2288 ac_cv_c_inline=$ac_kw; break
2290 echo "$as_me: failed program was:" >&5
2291 sed 's/^/| /' conftest.$ac_ext >&5
2294 rm -f conftest.$ac_objext conftest.$ac_ext
2298 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
2299 echo "${ECHO_T}$ac_cv_c_inline" >&6
2300 case $ac_cv_c_inline in
2303 cat >>confdefs.h <<\_ACEOF
2307 *) cat >>confdefs.h <<_ACEOF
2308 #define inline $ac_cv_c_inline
2314 # Checks for library functions.
2316 ac_cpp='$CPP $CPPFLAGS'
2317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2320 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2321 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2322 # On Suns, sometimes $CPP names a directory.
2323 if test -n "$CPP" && test -d "$CPP"; then
2326 if test -z "$CPP"; then
2327 if test "${ac_cv_prog_CPP+set}" = set; then
2328 echo $ECHO_N "(cached) $ECHO_C" >&6
2330 # Double quotes because CPP needs to be expanded
2331 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2334 for ac_c_preproc_warn_flag in '' yes
2336 # Use a header file that comes with gcc, so configuring glibc
2337 # with a fresh cross-compiler works.
2338 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2339 # <limits.h> exists even on freestanding compilers.
2340 # On the NeXT, cc -E runs the code through the compiler's parser,
2341 # not just through cpp. "Syntax error" is here to catch this case.
2342 cat >conftest.$ac_ext <<_ACEOF
2343 #line $LINENO "configure"
2346 cat confdefs.h >>conftest.$ac_ext
2347 cat >>conftest.$ac_ext <<_ACEOF
2348 /* end confdefs.h. */
2350 # include <limits.h>
2352 # include <assert.h>
2356 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2357 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2359 grep -v '^ *+' conftest.er1 >conftest.err
2361 cat conftest.err >&5
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); } >/dev/null; then
2364 if test -s conftest.err; then
2365 ac_cpp_err=$ac_c_preproc_warn_flag
2372 if test -z "$ac_cpp_err"; then
2375 echo "$as_me: failed program was:" >&5
2376 sed 's/^/| /' conftest.$ac_ext >&5
2378 # Broken: fails on valid input.
2381 rm -f conftest.err conftest.$ac_ext
2383 # OK, works on sane cases. Now check whether non-existent headers
2384 # can be detected and how.
2385 cat >conftest.$ac_ext <<_ACEOF
2386 #line $LINENO "configure"
2389 cat confdefs.h >>conftest.$ac_ext
2390 cat >>conftest.$ac_ext <<_ACEOF
2391 /* end confdefs.h. */
2392 #include <ac_nonexistent.h>
2394 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2395 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2397 grep -v '^ *+' conftest.er1 >conftest.err
2399 cat conftest.err >&5
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); } >/dev/null; then
2402 if test -s conftest.err; then
2403 ac_cpp_err=$ac_c_preproc_warn_flag
2410 if test -z "$ac_cpp_err"; then
2411 # Broken: success on invalid input.
2414 echo "$as_me: failed program was:" >&5
2415 sed 's/^/| /' conftest.$ac_ext >&5
2417 # Passes both tests.
2421 rm -f conftest.err conftest.$ac_ext
2424 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2425 rm -f conftest.err conftest.$ac_ext
2426 if $ac_preproc_ok; then
2438 echo "$as_me:$LINENO: result: $CPP" >&5
2439 echo "${ECHO_T}$CPP" >&6
2441 for ac_c_preproc_warn_flag in '' yes
2443 # Use a header file that comes with gcc, so configuring glibc
2444 # with a fresh cross-compiler works.
2445 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2446 # <limits.h> exists even on freestanding compilers.
2447 # On the NeXT, cc -E runs the code through the compiler's parser,
2448 # not just through cpp. "Syntax error" is here to catch this case.
2449 cat >conftest.$ac_ext <<_ACEOF
2450 #line $LINENO "configure"
2453 cat confdefs.h >>conftest.$ac_ext
2454 cat >>conftest.$ac_ext <<_ACEOF
2455 /* end confdefs.h. */
2457 # include <limits.h>
2459 # include <assert.h>
2463 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2464 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2466 grep -v '^ *+' conftest.er1 >conftest.err
2468 cat conftest.err >&5
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); } >/dev/null; then
2471 if test -s conftest.err; then
2472 ac_cpp_err=$ac_c_preproc_warn_flag
2479 if test -z "$ac_cpp_err"; then
2482 echo "$as_me: failed program was:" >&5
2483 sed 's/^/| /' conftest.$ac_ext >&5
2485 # Broken: fails on valid input.
2488 rm -f conftest.err conftest.$ac_ext
2490 # OK, works on sane cases. Now check whether non-existent headers
2491 # can be detected and how.
2492 cat >conftest.$ac_ext <<_ACEOF
2493 #line $LINENO "configure"
2496 cat confdefs.h >>conftest.$ac_ext
2497 cat >>conftest.$ac_ext <<_ACEOF
2498 /* end confdefs.h. */
2499 #include <ac_nonexistent.h>
2501 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2502 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2504 grep -v '^ *+' conftest.er1 >conftest.err
2506 cat conftest.err >&5
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); } >/dev/null; then
2509 if test -s conftest.err; then
2510 ac_cpp_err=$ac_c_preproc_warn_flag
2517 if test -z "$ac_cpp_err"; then
2518 # Broken: success on invalid input.
2521 echo "$as_me: failed program was:" >&5
2522 sed 's/^/| /' conftest.$ac_ext >&5
2524 # Passes both tests.
2528 rm -f conftest.err conftest.$ac_ext
2531 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2532 rm -f conftest.err conftest.$ac_ext
2533 if $ac_preproc_ok; then
2536 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2537 See \`config.log' for more details." >&5
2538 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2539 See \`config.log' for more details." >&2;}
2540 { (exit 1); exit 1; }; }
2544 ac_cpp='$CPP $CPPFLAGS'
2545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2550 echo "$as_me:$LINENO: checking for egrep" >&5
2551 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2552 if test "${ac_cv_prog_egrep+set}" = set; then
2553 echo $ECHO_N "(cached) $ECHO_C" >&6
2555 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2556 then ac_cv_prog_egrep='grep -E'
2557 else ac_cv_prog_egrep='egrep'
2560 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2561 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2562 EGREP=$ac_cv_prog_egrep
2565 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2566 # for constant arguments. Useless!
2567 echo "$as_me:$LINENO: checking for working alloca.h" >&5
2568 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
2569 if test "${ac_cv_working_alloca_h+set}" = set; then
2570 echo $ECHO_N "(cached) $ECHO_C" >&6
2572 cat >conftest.$ac_ext <<_ACEOF
2573 #line $LINENO "configure"
2576 cat confdefs.h >>conftest.$ac_ext
2577 cat >>conftest.$ac_ext <<_ACEOF
2578 /* end confdefs.h. */
2583 char *p = (char *) alloca (2 * sizeof (int));
2588 rm -f conftest.$ac_objext conftest$ac_exeext
2589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2590 (eval $ac_link) 2>&5
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); } &&
2594 { ac_try='test -s conftest$ac_exeext'
2595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }; }; then
2600 ac_cv_working_alloca_h=yes
2602 echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.$ac_ext >&5
2605 ac_cv_working_alloca_h=no
2607 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2609 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
2610 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
2611 if test $ac_cv_working_alloca_h = yes; then
2613 cat >>confdefs.h <<\_ACEOF
2614 #define HAVE_ALLOCA_H 1
2619 echo "$as_me:$LINENO: checking for alloca" >&5
2620 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
2621 if test "${ac_cv_func_alloca_works+set}" = set; then
2622 echo $ECHO_N "(cached) $ECHO_C" >&6
2624 cat >conftest.$ac_ext <<_ACEOF
2625 #line $LINENO "configure"
2628 cat confdefs.h >>conftest.$ac_ext
2629 cat >>conftest.$ac_ext <<_ACEOF
2630 /* end confdefs.h. */
2632 # define alloca __builtin_alloca
2635 # include <malloc.h>
2636 # define alloca _alloca
2639 # include <alloca.h>
2644 # ifndef alloca /* predefined by HP cc +Olibcalls */
2655 char *p = (char *) alloca (1);
2660 rm -f conftest.$ac_objext conftest$ac_exeext
2661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2662 (eval $ac_link) 2>&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); } &&
2666 { ac_try='test -s conftest$ac_exeext'
2667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }; }; then
2672 ac_cv_func_alloca_works=yes
2674 echo "$as_me: failed program was:" >&5
2675 sed 's/^/| /' conftest.$ac_ext >&5
2677 ac_cv_func_alloca_works=no
2679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2681 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
2682 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
2684 if test $ac_cv_func_alloca_works = yes; then
2686 cat >>confdefs.h <<\_ACEOF
2687 #define HAVE_ALLOCA 1
2691 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2692 # that cause trouble. Some versions do not even contain alloca or
2693 # contain a buggy version. If you still want to use their alloca,
2694 # use ar to extract alloca.o from them instead of compiling alloca.c.
2696 ALLOCA=alloca.$ac_objext
2698 cat >>confdefs.h <<\_ACEOF
2703 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
2704 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
2705 if test "${ac_cv_os_cray+set}" = set; then
2706 echo $ECHO_N "(cached) $ECHO_C" >&6
2708 cat >conftest.$ac_ext <<_ACEOF
2709 #line $LINENO "configure"
2712 cat confdefs.h >>conftest.$ac_ext
2713 cat >>conftest.$ac_ext <<_ACEOF
2714 /* end confdefs.h. */
2715 #if defined(CRAY) && ! defined(CRAY2)
2722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2723 $EGREP "webecray" >/dev/null 2>&1; then
2731 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
2732 echo "${ECHO_T}$ac_cv_os_cray" >&6
2733 if test $ac_cv_os_cray = yes; then
2734 for ac_func in _getb67 GETB67 getb67; do
2735 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2736 echo "$as_me:$LINENO: checking for $ac_func" >&5
2737 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2738 if eval "test \"\${$as_ac_var+set}\" = set"; then
2739 echo $ECHO_N "(cached) $ECHO_C" >&6
2741 cat >conftest.$ac_ext <<_ACEOF
2742 #line $LINENO "configure"
2745 cat confdefs.h >>conftest.$ac_ext
2746 cat >>conftest.$ac_ext <<_ACEOF
2747 /* end confdefs.h. */
2748 /* System header to define __stub macros and hopefully few prototypes,
2749 which can conflict with char $ac_func (); below.
2750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2751 <limits.h> exists even on freestanding compilers. */
2753 # include <limits.h>
2755 # include <assert.h>
2757 /* Override any gcc2 internal prototype to avoid an error. */
2762 /* We use char because int might match the return type of a gcc2
2763 builtin and then its argument prototype would still apply. */
2765 /* The GNU C library defines this for functions which it implements
2766 to always fail with ENOSYS. Some functions are actually named
2767 something starting with __ and the normal name is an alias. */
2768 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2771 char (*f) () = $ac_func;
2780 return f != $ac_func;
2785 rm -f conftest.$ac_objext conftest$ac_exeext
2786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2787 (eval $ac_link) 2>&5
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); } &&
2791 { ac_try='test -s conftest$ac_exeext'
2792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); }; }; then
2797 eval "$as_ac_var=yes"
2799 echo "$as_me: failed program was:" >&5
2800 sed 's/^/| /' conftest.$ac_ext >&5
2802 eval "$as_ac_var=no"
2804 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2806 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
2807 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
2808 if test `eval echo '${'$as_ac_var'}'` = yes; then
2810 cat >>confdefs.h <<_ACEOF
2811 #define CRAY_STACKSEG_END $ac_func
2820 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
2821 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
2822 if test "${ac_cv_c_stack_direction+set}" = set; then
2823 echo $ECHO_N "(cached) $ECHO_C" >&6
2825 if test "$cross_compiling" = yes; then
2826 ac_cv_c_stack_direction=0
2828 cat >conftest.$ac_ext <<_ACEOF
2829 #line $LINENO "configure"
2832 cat confdefs.h >>conftest.$ac_ext
2833 cat >>conftest.$ac_ext <<_ACEOF
2834 /* end confdefs.h. */
2836 find_stack_direction ()
2838 static char *addr = 0;
2843 return find_stack_direction ();
2846 return (&dummy > addr) ? 1 : -1;
2852 exit (find_stack_direction () < 0);
2855 rm -f conftest$ac_exeext
2856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2857 (eval $ac_link) 2>&5
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865 (exit $ac_status); }; }; then
2866 ac_cv_c_stack_direction=1
2868 echo "$as_me: program exited with status $ac_status" >&5
2869 echo "$as_me: failed program was:" >&5
2870 sed 's/^/| /' conftest.$ac_ext >&5
2873 ac_cv_c_stack_direction=-1
2875 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2878 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
2879 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
2881 cat >>confdefs.h <<_ACEOF
2882 #define STACK_DIRECTION $ac_cv_c_stack_direction
2888 echo "$as_me:$LINENO: checking for working strnlen" >&5
2889 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6
2890 if test "${ac_cv_func_strnlen_working+set}" = set; then
2891 echo $ECHO_N "(cached) $ECHO_C" >&6
2893 if test "$cross_compiling" = yes; then
2894 ac_cv_func_strnlen_working=no
2896 cat >conftest.$ac_ext <<_ACEOF
2897 #line $LINENO "configure"
2900 cat confdefs.h >>conftest.$ac_ext
2901 cat >>conftest.$ac_ext <<_ACEOF
2902 /* end confdefs.h. */
2909 #define S_LEN (sizeof S - 1)
2911 /* At least one implementation is buggy: that of AIX 4.3 would
2912 give strnlen (S, 1) == 3. */
2915 for (i = 0; i < S_LEN + 1; ++i)
2917 int expected = i <= S_LEN ? i : S_LEN;
2918 if (strnlen (S, i) != expected)
2927 rm -f conftest$ac_exeext
2928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2929 (eval $ac_link) 2>&5
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); }; }; then
2938 ac_cv_func_strnlen_working=yes
2940 echo "$as_me: program exited with status $ac_status" >&5
2941 echo "$as_me: failed program was:" >&5
2942 sed 's/^/| /' conftest.$ac_ext >&5
2945 ac_cv_func_strnlen_working=no
2947 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2950 echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
2951 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6
2952 test $ac_cv_func_strnlen_working = no && LIBOBJS="$LIBOBJS strnlen.$ac_objext"
2956 for ac_func in strnlen
2958 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2959 echo "$as_me:$LINENO: checking for $ac_func" >&5
2960 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2961 if eval "test \"\${$as_ac_var+set}\" = set"; then
2962 echo $ECHO_N "(cached) $ECHO_C" >&6
2964 cat >conftest.$ac_ext <<_ACEOF
2965 #line $LINENO "configure"
2968 cat confdefs.h >>conftest.$ac_ext
2969 cat >>conftest.$ac_ext <<_ACEOF
2970 /* end confdefs.h. */
2971 /* System header to define __stub macros and hopefully few prototypes,
2972 which can conflict with char $ac_func (); below.
2973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2974 <limits.h> exists even on freestanding compilers. */
2976 # include <limits.h>
2978 # include <assert.h>
2980 /* Override any gcc2 internal prototype to avoid an error. */
2985 /* We use char because int might match the return type of a gcc2
2986 builtin and then its argument prototype would still apply. */
2988 /* The GNU C library defines this for functions which it implements
2989 to always fail with ENOSYS. Some functions are actually named
2990 something starting with __ and the normal name is an alias. */
2991 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2994 char (*f) () = $ac_func;
3003 return f != $ac_func;
3008 rm -f conftest.$ac_objext conftest$ac_exeext
3009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3010 (eval $ac_link) 2>&5
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); } &&
3014 { ac_try='test -s conftest$ac_exeext'
3015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); }; }; then
3020 eval "$as_ac_var=yes"
3022 echo "$as_me: failed program was:" >&5
3023 sed 's/^/| /' conftest.$ac_ext >&5
3025 eval "$as_ac_var=no"
3027 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3030 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3031 if test `eval echo '${'$as_ac_var'}'` = yes; then
3032 cat >>confdefs.h <<_ACEOF
3033 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3040 ac_config_files="$ac_config_files Makefile"
3042 cat >confcache <<\_ACEOF
3043 # This file is a shell script that caches the results of configure
3044 # tests run on this system so they can be shared between configure
3045 # scripts and configure runs, see configure's option --config-cache.
3046 # It is not useful on other systems. If it contains results you don't
3047 # want to keep, you may remove or edit it.
3049 # config.status only pays attention to the cache file if you give it
3050 # the --recheck option to rerun configure.
3052 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3053 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3058 # The following way of writing the cache mishandles newlines in values,
3059 # but we know of no workaround that is simple, portable, and efficient.
3060 # So, don't put newlines in cache variables' values.
3061 # Ultrix sh set writes to stderr and can't be redirected directly,
3062 # and sets the high bit in the cache file unless we assign to the vars.
3065 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3067 # `set' does not quote correctly, so add quotes (double-quote
3068 # substitution turns \\\\ into \\, and sed turns \\ into \).
3071 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3074 # `set' quotes correctly as required by POSIX, so do not add quotes.
3076 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3083 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3085 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3087 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3088 if test -w $cache_file; then
3089 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3090 cat confcache >$cache_file
3092 echo "not updating unwritable cache $cache_file"
3097 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3098 # Let make expand exec_prefix.
3099 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3101 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3102 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3103 # trailing colons and then remove the whole line if VPATH becomes empty
3104 # (actually we leave an empty line to preserve line numbers).
3105 if test "x$srcdir" = x.; then
3106 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3107 s/:*\$(srcdir):*/:/;
3108 s/:*\${srcdir}:*/:/;
3110 s/^\([^=]*=[ ]*\):*/\1/;
3116 DEFS=-DHAVE_CONFIG_H
3120 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3121 # 1. Remove the extension, and $U if already installed.
3122 ac_i=`echo "$ac_i" |
3123 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3125 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3126 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3130 LTLIBOBJS=$ac_ltlibobjs
3134 : ${CONFIG_STATUS=./config.status}
3135 ac_clean_files_save=$ac_clean_files
3136 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3137 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3138 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3139 cat >$CONFIG_STATUS <<_ACEOF
3141 # Generated by $as_me.
3142 # Run this file to recreate the current configuration.
3143 # Compiler output produced by configure, useful for debugging
3144 # configure, is in config.log if it exists.
3149 SHELL=\${CONFIG_SHELL-$SHELL}
3152 cat >>$CONFIG_STATUS <<\_ACEOF
3153 ## --------------------- ##
3154 ## M4sh Initialization. ##
3155 ## --------------------- ##
3157 # Be Bourne compatible
3158 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3161 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3162 # is contrary to our usage. Disable this feature.
3163 alias -g '${1+"$@"}'='"$@"'
3164 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3168 # Support unset when possible.
3169 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
3176 # Work around bugs in pre-3.0 UWIN ksh.
3177 $as_unset ENV MAIL MAILPATH
3184 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3185 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3186 LC_TELEPHONE LC_TIME
3188 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
3189 eval $as_var=C; export $as_var
3195 # Required to use basename.
3196 if expr a : '\(a\)' >/dev/null 2>&1; then
3202 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3203 as_basename=basename
3209 # Name of the executable.
3210 as_me=`$as_basename "$0" ||
3211 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3212 X"$0" : 'X\(//\)$' \| \
3213 X"$0" : 'X\(/\)$' \| \
3214 . : '\(.\)' 2>/dev/null ||
3216 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3217 /^X\/\(\/\/\)$/{ s//\1/; q; }
3218 /^X\/\(\/\).*/{ s//\1/; q; }
3222 # PATH needs CR, and LINENO needs CR and PATH.
3223 # Avoid depending upon Character Ranges.
3224 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3225 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3226 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3227 as_cr_digits='0123456789'
3228 as_cr_alnum=$as_cr_Letters$as_cr_digits
3230 # The user is always right.
3231 if test "${PATH_SEPARATOR+set}" != set; then
3232 echo "#! /bin/sh" >conf$$.sh
3233 echo "exit 0" >>conf$$.sh
3235 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3246 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3247 test "x$as_lineno_1" != "x$as_lineno_2" &&
3248 test "x$as_lineno_3" = "x$as_lineno_2" || {
3249 # Find who we are. Look in the path if we contain no path at all
3252 *[\\/]* ) as_myself=$0 ;;
3253 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3257 test -z "$as_dir" && as_dir=.
3258 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3263 # We did not find ourselves, most probably we were run as `sh COMMAND'
3264 # in which case we are not to be found in the path.
3265 if test "x$as_myself" = x; then
3268 if test ! -f "$as_myself"; then
3269 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3270 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3271 { (exit 1); exit 1; }; }
3273 case $CONFIG_SHELL in
3275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3276 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3279 test -z "$as_dir" && as_dir=.
3280 for as_base in sh bash ksh sh5; do
3283 if ("$as_dir/$as_base" -c '
3286 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3287 test "x$as_lineno_1" != "x$as_lineno_2" &&
3288 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
3289 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3290 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3291 CONFIG_SHELL=$as_dir/$as_base
3293 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3301 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3302 # uniformly replaced by the line number. The first 'sed' inserts a
3303 # line-number line before each line; the second 'sed' does the real
3304 # work. The second script uses 'N' to pair each line-number line
3305 # with the numbered line, and appends trailing '-' during
3306 # substitution so that $LINENO is not a special case at line end.
3307 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3308 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
3309 sed '=' <$as_myself |
3314 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3317 s,^['$as_cr_digits']*\n,,
3319 chmod +x $as_me.lineno ||
3320 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3321 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3322 { (exit 1); exit 1; }; }
3324 # Don't try to exec as it changes $[0], causing all sort of problems
3325 # (the dirname of $[0] is not the place where we might find the
3326 # original and so on. Autoconf is especially sensible to this).
3328 # Exit status is that of the last command.
3333 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3334 *c*,-n*) ECHO_N= ECHO_C='
3336 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3337 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
3340 if expr a : '\(a\)' >/dev/null 2>&1; then
3346 rm -f conf$$ conf$$.exe conf$$.file
3348 if ln -s conf$$.file conf$$ 2>/dev/null; then
3349 # We could just check for DJGPP; but this test a) works b) is more generic
3350 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3351 if test -f conf$$.exe; then
3352 # Don't use ln at all; we don't have any links
3357 elif ln conf$$.file conf$$ 2>/dev/null; then
3362 rm -f conf$$ conf$$.exe conf$$.file
3364 if mkdir -p . 2>/dev/null; then
3370 as_executable_p="test -f"
3372 # Sed expression to map a string onto a valid CPP name.
3373 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
3375 # Sed expression to map a string onto a valid variable name.
3376 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
3380 # We need space, tab and new line, in precisely that order.
3390 # Open the log real soon, to keep \$[0] and so on meaningful, and to
3391 # report actual input values of CONFIG_FILES etc. instead of their
3392 # values after options handling. Logging --version etc. is OK.
3396 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3397 ## Running $as_me. ##
3402 This file was extended by libchise $as_me 0.1.1, which was
3403 generated by GNU Autoconf 2.57. Invocation command line was
3405 CONFIG_FILES = $CONFIG_FILES
3406 CONFIG_HEADERS = $CONFIG_HEADERS
3407 CONFIG_LINKS = $CONFIG_LINKS
3408 CONFIG_COMMANDS = $CONFIG_COMMANDS
3412 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3416 # Files that config.status was made for.
3417 if test -n "$ac_config_files"; then
3418 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3421 if test -n "$ac_config_headers"; then
3422 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3425 if test -n "$ac_config_links"; then
3426 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3429 if test -n "$ac_config_commands"; then
3430 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3433 cat >>$CONFIG_STATUS <<\_ACEOF
3436 \`$as_me' instantiates files from templates according to the
3437 current configuration.
3439 Usage: $0 [OPTIONS] [FILE]...
3441 -h, --help print this help, then exit
3442 -V, --version print version number, then exit
3443 -q, --quiet do not print progress messages
3444 -d, --debug don't remove temporary files
3445 --recheck update $as_me by reconfiguring in the same conditions
3446 --file=FILE[:TEMPLATE]
3447 instantiate the configuration file FILE
3448 --header=FILE[:TEMPLATE]
3449 instantiate the configuration header FILE
3451 Configuration files:
3454 Configuration headers:
3457 Report bugs to <bug-autoconf@gnu.org>."
3460 cat >>$CONFIG_STATUS <<_ACEOF
3462 libchise config.status 0.1.1
3463 configured by $0, generated by GNU Autoconf 2.57,
3464 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3466 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
3467 Free Software Foundation, Inc.
3468 This config.status script is free software; the Free Software Foundation
3469 gives unlimited permission to copy, distribute and modify it."
3473 cat >>$CONFIG_STATUS <<\_ACEOF
3474 # If no file are specified by the user, then we need to provide default
3475 # value. By we need to know if files were specified by the user.
3481 ac_option=`expr "x$1" : 'x\([^=]*\)='`
3482 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3490 *) # This is not an option, so the user has probably given explicit
3493 ac_need_defaults=false;;
3497 # Handling of the options.
3499 cat >>$CONFIG_STATUS <<\_ACEOF
3500 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3502 --version | --vers* | -V )
3503 echo "$ac_cs_version"; exit 0 ;;
3505 # Conflict between --help and --header
3506 { { echo "$as_me:$LINENO: error: ambiguous option: $1
3507 Try \`$0 --help' for more information." >&5
3508 echo "$as_me: error: ambiguous option: $1
3509 Try \`$0 --help' for more information." >&2;}
3510 { (exit 1); exit 1; }; };;
3511 --help | --hel | -h )
3512 echo "$ac_cs_usage"; exit 0 ;;
3513 --debug | --d* | -d )
3515 --file | --fil | --fi | --f )
3517 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3518 ac_need_defaults=false;;
3519 --header | --heade | --head | --hea )
3521 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3522 ac_need_defaults=false;;
3523 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3524 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3528 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3529 Try \`$0 --help' for more information." >&5
3530 echo "$as_me: error: unrecognized option: $1
3531 Try \`$0 --help' for more information." >&2;}
3532 { (exit 1); exit 1; }; } ;;
3534 *) ac_config_targets="$ac_config_targets $1" ;;
3540 ac_configure_extra_args=
3542 if $ac_cs_silent; then
3544 ac_configure_extra_args="$ac_configure_extra_args --silent"
3548 cat >>$CONFIG_STATUS <<_ACEOF
3549 if \$ac_cs_recheck; then
3550 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3551 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3560 cat >>$CONFIG_STATUS <<\_ACEOF
3561 for ac_config_target in $ac_config_targets
3563 case "$ac_config_target" in
3564 # Handling of arguments.
3565 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3566 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
3567 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3568 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3569 { (exit 1); exit 1; }; };;
3573 # If the user did not use the arguments to specify the items to instantiate,
3574 # then the envvar interface is used. Set only those that are not.
3575 # We use the long form for the default assignment because of an extremely
3576 # bizarre bug on SunOS 4.1.3.
3577 if $ac_need_defaults; then
3578 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3579 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
3582 # Have a temporary directory for convenience. Make it in the build tree
3583 # simply because there is no reason to put it here, and in addition,
3584 # creating and moving files from /tmp can sometimes cause problems.
3585 # Create a temporary directory, and hook for its removal unless debugging.
3588 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3589 trap '{ (exit 1); exit 1; }' 1 2 13 15
3592 # Create a (secure) tmp directory for tmp files.
3595 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
3596 test -n "$tmp" && test -d "$tmp"
3599 tmp=./confstat$$-$RANDOM
3600 (umask 077 && mkdir $tmp)
3603 echo "$me: cannot create a temporary directory in ." >&2
3604 { (exit 1); exit 1; }
3609 cat >>$CONFIG_STATUS <<_ACEOF
3612 # CONFIG_FILES section.
3615 # No need to generate the scripts if there are no CONFIG_FILES.
3616 # This happens for instance when ./config.status config.h
3617 if test -n "\$CONFIG_FILES"; then
3618 # Protect against being on the right side of a sed subst in config.status.
3619 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3620 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3621 s,@SHELL@,$SHELL,;t t
3622 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3623 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3624 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3625 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3626 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3627 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3628 s,@exec_prefix@,$exec_prefix,;t t
3629 s,@prefix@,$prefix,;t t
3630 s,@program_transform_name@,$program_transform_name,;t t
3631 s,@bindir@,$bindir,;t t
3632 s,@sbindir@,$sbindir,;t t
3633 s,@libexecdir@,$libexecdir,;t t
3634 s,@datadir@,$datadir,;t t
3635 s,@sysconfdir@,$sysconfdir,;t t
3636 s,@sharedstatedir@,$sharedstatedir,;t t
3637 s,@localstatedir@,$localstatedir,;t t
3638 s,@libdir@,$libdir,;t t
3639 s,@includedir@,$includedir,;t t
3640 s,@oldincludedir@,$oldincludedir,;t t
3641 s,@infodir@,$infodir,;t t
3642 s,@mandir@,$mandir,;t t
3643 s,@build_alias@,$build_alias,;t t
3644 s,@host_alias@,$host_alias,;t t
3645 s,@target_alias@,$target_alias,;t t
3647 s,@ECHO_C@,$ECHO_C,;t t
3648 s,@ECHO_N@,$ECHO_N,;t t
3649 s,@ECHO_T@,$ECHO_T,;t t
3652 s,@CFLAGS@,$CFLAGS,;t t
3653 s,@LDFLAGS@,$LDFLAGS,;t t
3654 s,@CPPFLAGS@,$CPPFLAGS,;t t
3655 s,@ac_ct_CC@,$ac_ct_CC,;t t
3656 s,@EXEEXT@,$EXEEXT,;t t
3657 s,@OBJEXT@,$OBJEXT,;t t
3658 s,@LIBTOOL@,$LIBTOOL,;t t
3659 s,@ALLOCA@,$ALLOCA,;t t
3661 s,@EGREP@,$EGREP,;t t
3662 s,@LIBOBJS@,$LIBOBJS,;t t
3663 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
3668 cat >>$CONFIG_STATUS <<\_ACEOF
3669 # Split the substitutions into bite-sized pieces for seds with
3670 # small command number limits, like on Digital OSF/1 and HP-UX.
3672 ac_sed_frag=1 # Number of current file.
3673 ac_beg=1 # First line for current file.
3674 ac_end=$ac_max_sed_lines # Line after last line for current file.
3677 while $ac_more_lines; do
3678 if test $ac_beg -gt 1; then
3679 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3681 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3683 if test ! -s $tmp/subs.frag; then
3686 # The purpose of the label and of the branching condition is to
3687 # speed up the sed processing (if there are no `@' at all, there
3688 # is no need to browse any of the substitutions).
3689 # These are the two extra sed commands mentioned above.
3691 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3692 if test -z "$ac_sed_cmds"; then
3693 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3695 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3697 ac_sed_frag=`expr $ac_sed_frag + 1`
3699 ac_end=`expr $ac_end + $ac_max_sed_lines`
3702 if test -z "$ac_sed_cmds"; then
3705 fi # test -n "$CONFIG_FILES"
3708 cat >>$CONFIG_STATUS <<\_ACEOF
3709 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
3710 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3712 - | *:- | *:-:* ) # input from stdin
3714 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3715 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3716 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3717 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3718 * ) ac_file_in=$ac_file.in ;;
3721 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
3722 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
3723 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3724 X"$ac_file" : 'X\(//\)[^/]' \| \
3725 X"$ac_file" : 'X\(//\)$' \| \
3726 X"$ac_file" : 'X\(/\)' \| \
3727 . : '\(.\)' 2>/dev/null ||
3729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3730 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3731 /^X\(\/\/\)$/{ s//\1/; q; }
3732 /^X\(\/\).*/{ s//\1/; q; }
3734 { if $as_mkdir_p; then
3739 while test ! -d "$as_dir"; do
3740 as_dirs="$as_dir $as_dirs"
3741 as_dir=`(dirname "$as_dir") 2>/dev/null ||
3742 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3743 X"$as_dir" : 'X\(//\)[^/]' \| \
3744 X"$as_dir" : 'X\(//\)$' \| \
3745 X"$as_dir" : 'X\(/\)' \| \
3746 . : '\(.\)' 2>/dev/null ||
3748 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3749 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3750 /^X\(\/\/\)$/{ s//\1/; q; }
3751 /^X\(\/\).*/{ s//\1/; q; }
3754 test ! -n "$as_dirs" || mkdir $as_dirs
3755 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
3756 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
3757 { (exit 1); exit 1; }; }; }
3761 if test "$ac_dir" != .; then
3762 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
3763 # A "../" for each directory in $ac_dir_suffix.
3764 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
3766 ac_dir_suffix= ac_top_builddir=
3770 .) # No --srcdir option. We are building in place.
3772 if test -z "$ac_top_builddir"; then
3775 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
3777 [\\/]* | ?:[\\/]* ) # Absolute path.
3778 ac_srcdir=$srcdir$ac_dir_suffix;
3779 ac_top_srcdir=$srcdir ;;
3781 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
3782 ac_top_srcdir=$ac_top_builddir$srcdir ;;
3784 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
3786 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
3787 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
3788 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
3789 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
3793 if test x"$ac_file" != x-; then
3794 { echo "$as_me:$LINENO: creating $ac_file" >&5
3795 echo "$as_me: creating $ac_file" >&6;}
3798 # Let's still pretend it is `configure' which instantiates (i.e., don't
3799 # use $as_me), people would be surprised to read:
3800 # /* config.h. Generated by config.status. */
3801 if test x"$ac_file" = x-; then
3804 configure_input="$ac_file. "
3806 configure_input=$configure_input"Generated from `echo $ac_file_in |
3807 sed 's,.*/,,'` by configure."
3809 # First look for the input files in the build tree, otherwise in the
3811 ac_file_inputs=`IFS=:
3812 for f in $ac_file_in; do
3814 -) echo $tmp/stdin ;;
3816 # Absolute (can't be DOS-style, as IFS=:)
3817 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3818 echo "$as_me: error: cannot find input file: $f" >&2;}
3819 { (exit 1); exit 1; }; }
3822 if test -f "$f"; then
3825 elif test -f "$srcdir/$f"; then
3830 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3831 echo "$as_me: error: cannot find input file: $f" >&2;}
3832 { (exit 1); exit 1; }; }
3835 done` || { (exit 1); exit 1; }
3837 cat >>$CONFIG_STATUS <<_ACEOF
3841 cat >>$CONFIG_STATUS <<\_ACEOF
3843 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3844 s,@configure_input@,$configure_input,;t t
3845 s,@srcdir@,$ac_srcdir,;t t
3846 s,@abs_srcdir@,$ac_abs_srcdir,;t t
3847 s,@top_srcdir@,$ac_top_srcdir,;t t
3848 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
3849 s,@builddir@,$ac_builddir,;t t
3850 s,@abs_builddir@,$ac_abs_builddir,;t t
3851 s,@top_builddir@,$ac_top_builddir,;t t
3852 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
3853 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
3855 if test x"$ac_file" != x-; then
3856 mv $tmp/out $ac_file
3864 cat >>$CONFIG_STATUS <<\_ACEOF
3867 # CONFIG_HEADER section.
3870 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3871 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3873 # ac_d sets the value in "#define NAME VALUE" lines.
3874 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3875 ac_dB='[ ].*$,\1#\2'
3878 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3879 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3880 ac_uB='$,\1#\2define\3'
3884 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
3885 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3887 - | *:- | *:-:* ) # input from stdin
3889 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3890 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3891 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3892 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3893 * ) ac_file_in=$ac_file.in ;;
3896 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
3897 echo "$as_me: creating $ac_file" >&6;}
3899 # First look for the input files in the build tree, otherwise in the
3901 ac_file_inputs=`IFS=:
3902 for f in $ac_file_in; do
3904 -) echo $tmp/stdin ;;
3906 # Absolute (can't be DOS-style, as IFS=:)
3907 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3908 echo "$as_me: error: cannot find input file: $f" >&2;}
3909 { (exit 1); exit 1; }; }
3912 if test -f "$f"; then
3915 elif test -f "$srcdir/$f"; then
3920 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3921 echo "$as_me: error: cannot find input file: $f" >&2;}
3922 { (exit 1); exit 1; }; }
3925 done` || { (exit 1); exit 1; }
3926 # Remove the trailing spaces.
3927 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
3931 # Transform confdefs.h into two sed scripts, `conftest.defines' and
3932 # `conftest.undefs', that substitutes the proper values into
3933 # config.h.in to produce config.h. The first handles `#define'
3934 # templates, and the second `#undef' templates.
3935 # And first: Protect against being on the right side of a sed subst in
3936 # config.status. Protect against being in an unquoted here document
3938 rm -f conftest.defines conftest.undefs
3939 # Using a here document instead of a string reduces the quoting nightmare.
3940 # Putting comments in sed scripts is not portable.
3942 # `end' is used to avoid that the second main sed command (meant for
3943 # 0-ary CPP macros) applies to n-ary macro definitions.
3944 # See the Autoconf documentation for `clear'.
3945 cat >confdef2sed.sed <<\_ACEOF
3950 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
3952 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
3955 # If some macros were called several times there might be several times
3956 # the same #defines, which is useless. Nevertheless, we may not want to
3957 # sort them, since we want the *last* AC-DEFINE to be honored.
3958 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
3959 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
3960 rm -f confdef2sed.sed
3962 # This sed command replaces #undef with comments. This is necessary, for
3963 # example, in the case of _POSIX_SOURCE, which is predefined and required
3964 # on some systems where configure will not decide to define it.
3965 cat >>conftest.undefs <<\_ACEOF
3966 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
3969 # Break up conftest.defines because some shells have a limit on the size
3970 # of here documents, and old seds have small limits too (100 cmds).
3971 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
3972 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
3973 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
3974 echo ' :' >>$CONFIG_STATUS
3976 while grep . conftest.defines >/dev/null
3978 # Write a limited-size here document to $tmp/defines.sed.
3979 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
3980 # Speed up: don't consider the non `#define' lines.
3981 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
3982 # Work around the forget-to-reset-the-flag bug.
3983 echo 't clr' >>$CONFIG_STATUS
3984 echo ': clr' >>$CONFIG_STATUS
3985 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
3987 sed -f $tmp/defines.sed $tmp/in >$tmp/out
3991 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
3992 rm -f conftest.defines
3993 mv conftest.tail conftest.defines
3995 rm -f conftest.defines
3996 echo ' fi # grep' >>$CONFIG_STATUS
3997 echo >>$CONFIG_STATUS
3999 # Break up conftest.undefs because some shells have a limit on the size
4000 # of here documents, and old seds have small limits too (100 cmds).
4001 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
4003 while grep . conftest.undefs >/dev/null
4005 # Write a limited-size here document to $tmp/undefs.sed.
4006 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
4007 # Speed up: don't consider the non `#undef'
4008 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
4009 # Work around the forget-to-reset-the-flag bug.
4010 echo 't clr' >>$CONFIG_STATUS
4011 echo ': clr' >>$CONFIG_STATUS
4012 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4014 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4018 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4019 rm -f conftest.undefs
4020 mv conftest.tail conftest.undefs
4022 rm -f conftest.undefs
4024 cat >>$CONFIG_STATUS <<\_ACEOF
4025 # Let's still pretend it is `configure' which instantiates (i.e., don't
4026 # use $as_me), people would be surprised to read:
4027 # /* config.h. Generated by config.status. */
4028 if test x"$ac_file" = x-; then
4029 echo "/* Generated by configure. */" >$tmp/config.h
4031 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
4033 cat $tmp/in >>$tmp/config.h
4035 if test x"$ac_file" != x-; then
4036 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
4037 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
4038 echo "$as_me: $ac_file is unchanged" >&6;}
4040 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4041 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4042 X"$ac_file" : 'X\(//\)[^/]' \| \
4043 X"$ac_file" : 'X\(//\)$' \| \
4044 X"$ac_file" : 'X\(/\)' \| \
4045 . : '\(.\)' 2>/dev/null ||
4047 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4048 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4049 /^X\(\/\/\)$/{ s//\1/; q; }
4050 /^X\(\/\).*/{ s//\1/; q; }
4052 { if $as_mkdir_p; then
4057 while test ! -d "$as_dir"; do
4058 as_dirs="$as_dir $as_dirs"
4059 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4060 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4061 X"$as_dir" : 'X\(//\)[^/]' \| \
4062 X"$as_dir" : 'X\(//\)$' \| \
4063 X"$as_dir" : 'X\(/\)' \| \
4064 . : '\(.\)' 2>/dev/null ||
4066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4067 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4068 /^X\(\/\/\)$/{ s//\1/; q; }
4069 /^X\(\/\).*/{ s//\1/; q; }
4072 test ! -n "$as_dirs" || mkdir $as_dirs
4073 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4074 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4075 { (exit 1); exit 1; }; }; }
4078 mv $tmp/config.h $ac_file
4087 cat >>$CONFIG_STATUS <<\_ACEOF
4089 { (exit 0); exit 0; }
4091 chmod +x $CONFIG_STATUS
4092 ac_clean_files=$ac_clean_files_save
4095 # configure is writing to config.log, and then calls config.status.
4096 # config.status does its own redirection, appending to config.log.
4097 # Unfortunately, on DOS this fails, as config.log is still kept open
4098 # by configure, so config.status won't be able to write to it; its
4099 # output is simply discarded. So we exec the FD to /dev/null,
4100 # effectively closing config.log, so it can be properly (re)opened and
4101 # appended to by config.status. When coming back to configure, we
4102 # need to make the FD available again.
4103 if test "$no_create" != yes; then
4105 ac_config_status_args=
4106 test "$silent" = yes &&
4107 ac_config_status_args="$ac_config_status_args --quiet"
4109 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4111 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4112 # would make configure fail if this is the last instruction.
4113 $ac_cs_success || { (exit 1); exit 1; }