2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="mtx.c"
275 ac_default_prefix=/usr/local
276 # Factoring default headers for most tests.
277 ac_includes_default="\
280 # include <sys/types.h>
283 # include <sys/stat.h>
294 # if !STDC_HEADERS && HAVE_MEMORY_H
300 # include <strings.h>
303 # include <inttypes.h>
313 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os TARGET CPU CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA USE_OBJCOPY CPP EGREP LIBOBJS LTLIBOBJS'
316 # Initialize some variables set by options.
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name=s,x,x,
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
431 -help | --help | --hel | --he | -h)
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 # Obsolete; use --without-fp.
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
561 -site=* | --site=* | --sit=*)
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 -version | --version | --versio | --versi | --vers | -V)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
610 # Obsolete; use --with-x.
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
782 \`configure' configures this package to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
836 --build=BUILD configure for building on BUILD [guessed]
837 --host=HOST cross-compile to build programs to run on HOST [BUILD]
838 --target=TARGET configure for building compilers for TARGET [HOST]
842 if test -n "$ac_init_help"; then
846 Some influential environment variables:
847 CC C compiler command
848 CFLAGS C compiler flags
849 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
850 nonstandard directory <lib dir>
851 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
852 headers in a nonstandard directory <include dir>
855 Use these variables to override the choices made by `configure' or to help
856 it to find libraries and programs with nonstandard names/locations.
861 if test "$ac_init_help" = "recursive"; then
862 # If there are subdirs, report their specific --help.
864 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
865 test -d $ac_dir || continue
868 if test "$ac_dir" != .; then
869 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
870 # A "../" for each directory in $ac_dir_suffix.
871 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
873 ac_dir_suffix= ac_top_builddir=
877 .) # No --srcdir option. We are building in place.
879 if test -z "$ac_top_builddir"; then
882 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
884 [\\/]* | ?:[\\/]* ) # Absolute path.
885 ac_srcdir=$srcdir$ac_dir_suffix;
886 ac_top_srcdir=$srcdir ;;
888 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
889 ac_top_srcdir=$ac_top_builddir$srcdir ;;
892 # Do not use `cd foo && pwd` to compute absolute paths, because
893 # the directories may not exist.
895 .) ac_abs_builddir="$ac_dir";;
898 .) ac_abs_builddir=`pwd`;;
899 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
900 *) ac_abs_builddir=`pwd`/"$ac_dir";;
903 case $ac_abs_builddir in
904 .) ac_abs_top_builddir=${ac_top_builddir}.;;
906 case ${ac_top_builddir}. in
907 .) ac_abs_top_builddir=$ac_abs_builddir;;
908 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
909 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
912 case $ac_abs_builddir in
913 .) ac_abs_srcdir=$ac_srcdir;;
916 .) ac_abs_srcdir=$ac_abs_builddir;;
917 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
918 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
921 case $ac_abs_builddir in
922 .) ac_abs_top_srcdir=$ac_top_srcdir;;
924 case $ac_top_srcdir in
925 .) ac_abs_top_srcdir=$ac_abs_builddir;;
926 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
927 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
932 # Check for guested configure; otherwise get Cygnus style configure.
933 if test -f $ac_srcdir/configure.gnu; then
935 $SHELL $ac_srcdir/configure.gnu --help=recursive
936 elif test -f $ac_srcdir/configure; then
938 $SHELL $ac_srcdir/configure --help=recursive
939 elif test -f $ac_srcdir/configure.ac ||
940 test -f $ac_srcdir/configure.in; then
944 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
950 test -n "$ac_init_help" && exit 0
951 if $ac_init_version; then
954 Copyright (C) 2003 Free Software Foundation, Inc.
955 This configure script is free software; the Free Software Foundation
956 gives unlimited permission to copy, distribute and modify it.
962 This file contains any messages produced by compilers while
963 running configure, to aid debugging if configure makes a mistake.
965 It was created by $as_me, which was
966 generated by GNU Autoconf 2.59. Invocation command line was
977 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
978 uname -m = `(uname -m) 2>/dev/null || echo unknown`
979 uname -r = `(uname -r) 2>/dev/null || echo unknown`
980 uname -s = `(uname -s) 2>/dev/null || echo unknown`
981 uname -v = `(uname -v) 2>/dev/null || echo unknown`
983 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
984 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
986 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
987 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
988 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
989 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
990 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
991 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
992 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1000 test -z "$as_dir" && as_dir=.
1001 echo "PATH: $as_dir"
1016 # Keep a trace of the command line.
1017 # Strip out --no-create and --no-recursion so they do not pile up.
1018 # Strip out --silent because we don't want to record it for future runs.
1019 # Also quote any args containing shell meta-characters.
1020 # Make two passes to allow for proper duplicate-argument suppression.
1025 ac_must_keep_next=false
1031 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1032 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1033 | -silent | --silent | --silen | --sile | --sil)
1035 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1036 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1039 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1041 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1042 if test $ac_must_keep_next = true; then
1043 ac_must_keep_next=false # Got value, back to normal.
1046 *=* | --config-cache | -C | -disable-* | --disable-* \
1047 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1048 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1049 | -with-* | --with-* | -without-* | --without-* | --x)
1050 case "$ac_configure_args0 " in
1051 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1054 -* ) ac_must_keep_next=true ;;
1057 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1058 # Get rid of the leading space.
1064 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1065 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1067 # When interrupted or exit'd, cleanup temporary files, and complete
1068 # config.log. We remove comments because anyway the quotes in there
1069 # would cause problems or look ugly.
1070 # WARNING: Be sure not to use single quotes in there, as some shells,
1071 # such as our DU 5.0 friend, will then `close' the trap.
1072 trap 'exit_status=$?
1073 # Save into config.log some information that might help in debugging.
1078 ## ---------------- ##
1079 ## Cache variables. ##
1080 ## ---------------- ##
1083 # The following way of writing the cache mishandles newlines in values,
1086 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1089 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1090 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1094 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1101 ## ----------------- ##
1102 ## Output variables. ##
1103 ## ----------------- ##
1106 for ac_var in $ac_subst_vars
1108 eval ac_val=$`echo $ac_var`
1109 echo "$ac_var='"'"'$ac_val'"'"'"
1113 if test -n "$ac_subst_files"; then
1120 for ac_var in $ac_subst_files
1122 eval ac_val=$`echo $ac_var`
1123 echo "$ac_var='"'"'$ac_val'"'"'"
1128 if test -s confdefs.h; then
1135 sed "/^$/d" confdefs.h | sort
1138 test "$ac_signal" != 0 &&
1139 echo "$as_me: caught signal $ac_signal"
1140 echo "$as_me: exit $exit_status"
1142 rm -f core *.core &&
1143 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1146 for ac_signal in 1 2 13 15; do
1147 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1151 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1152 rm -rf conftest* confdefs.h
1153 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1156 # Predefined preprocessor variables.
1158 cat >>confdefs.h <<_ACEOF
1159 #define PACKAGE_NAME "$PACKAGE_NAME"
1163 cat >>confdefs.h <<_ACEOF
1164 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1168 cat >>confdefs.h <<_ACEOF
1169 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1173 cat >>confdefs.h <<_ACEOF
1174 #define PACKAGE_STRING "$PACKAGE_STRING"
1178 cat >>confdefs.h <<_ACEOF
1179 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1183 # Let the site file select an alternate cache file if it wants to.
1184 # Prefer explicitly selected file to automatically selected ones.
1185 if test -z "$CONFIG_SITE"; then
1186 if test "x$prefix" != xNONE; then
1187 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1189 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1192 for ac_site_file in $CONFIG_SITE; do
1193 if test -r "$ac_site_file"; then
1194 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1195 echo "$as_me: loading site script $ac_site_file" >&6;}
1196 sed 's/^/| /' "$ac_site_file" >&5
1201 if test -r "$cache_file"; then
1202 # Some versions of bash will fail to source /dev/null (special
1203 # files actually), so we avoid doing that.
1204 if test -f "$cache_file"; then
1205 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1206 echo "$as_me: loading cache $cache_file" >&6;}
1208 [\\/]* | ?:[\\/]* ) . $cache_file;;
1209 *) . ./$cache_file;;
1213 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1214 echo "$as_me: creating cache $cache_file" >&6;}
1218 # Check that the precious variables saved in the cache have kept the same
1220 ac_cache_corrupted=false
1221 for ac_var in `(set) 2>&1 |
1222 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1223 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1224 eval ac_new_set=\$ac_env_${ac_var}_set
1225 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1226 eval ac_new_val="\$ac_env_${ac_var}_value"
1227 case $ac_old_set,$ac_new_set in
1229 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1230 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1231 ac_cache_corrupted=: ;;
1233 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1234 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1235 ac_cache_corrupted=: ;;
1238 if test "x$ac_old_val" != "x$ac_new_val"; then
1239 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1240 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1241 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1242 echo "$as_me: former value: $ac_old_val" >&2;}
1243 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1244 echo "$as_me: current value: $ac_new_val" >&2;}
1245 ac_cache_corrupted=:
1248 # Pass precious variables to config.status.
1249 if test "$ac_new_set" = set; then
1251 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1252 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1253 *) ac_arg=$ac_var=$ac_new_val ;;
1255 case " $ac_configure_args " in
1256 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1257 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1261 if $ac_cache_corrupted; then
1262 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1263 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1264 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1265 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1266 { (exit 1); exit 1; }; }
1270 ac_cpp='$CPP $CPPFLAGS'
1271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1293 ac_config_headers="$ac_config_headers config.h"
1297 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1298 if test -f $ac_dir/install-sh; then
1300 ac_install_sh="$ac_aux_dir/install-sh -c"
1302 elif test -f $ac_dir/install.sh; then
1304 ac_install_sh="$ac_aux_dir/install.sh -c"
1306 elif test -f $ac_dir/shtool; then
1308 ac_install_sh="$ac_aux_dir/shtool install -c"
1312 if test -z "$ac_aux_dir"; then
1313 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1314 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1315 { (exit 1); exit 1; }; }
1317 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1318 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1319 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1321 # Make sure we can run config.sub.
1322 $ac_config_sub sun4 >/dev/null 2>&1 ||
1323 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1324 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1325 { (exit 1); exit 1; }; }
1327 echo "$as_me:$LINENO: checking build system type" >&5
1328 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1329 if test "${ac_cv_build+set}" = set; then
1330 echo $ECHO_N "(cached) $ECHO_C" >&6
1332 ac_cv_build_alias=$build_alias
1333 test -z "$ac_cv_build_alias" &&
1334 ac_cv_build_alias=`$ac_config_guess`
1335 test -z "$ac_cv_build_alias" &&
1336 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1337 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1338 { (exit 1); exit 1; }; }
1339 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1340 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1341 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1342 { (exit 1); exit 1; }; }
1345 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1346 echo "${ECHO_T}$ac_cv_build" >&6
1348 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1349 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1350 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1353 echo "$as_me:$LINENO: checking host system type" >&5
1354 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1355 if test "${ac_cv_host+set}" = set; then
1356 echo $ECHO_N "(cached) $ECHO_C" >&6
1358 ac_cv_host_alias=$host_alias
1359 test -z "$ac_cv_host_alias" &&
1360 ac_cv_host_alias=$ac_cv_build_alias
1361 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1362 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1363 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1364 { (exit 1); exit 1; }; }
1367 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1368 echo "${ECHO_T}$ac_cv_host" >&6
1370 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1371 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1372 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1375 echo "$as_me:$LINENO: checking target system type" >&5
1376 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1377 if test "${ac_cv_target+set}" = set; then
1378 echo $ECHO_N "(cached) $ECHO_C" >&6
1380 ac_cv_target_alias=$target_alias
1381 test "x$ac_cv_target_alias" = "x" &&
1382 ac_cv_target_alias=$ac_cv_host_alias
1383 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1384 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1385 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1386 { (exit 1); exit 1; }; }
1389 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1390 echo "${ECHO_T}$ac_cv_target" >&6
1391 target=$ac_cv_target
1392 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1393 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1394 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1397 # The aliases save the names the user supplied, while $host etc.
1398 # will get canonicalized.
1399 test -n "$target_alias" &&
1400 test "$program_prefix$program_suffix$program_transform_name" = \
1402 program_prefix=${target_alias}-
1406 *linux*) cat >>confdefs.h <<\_ACEOF
1412 *solaris*) cat >>confdefs.h <<\_ACEOF
1418 *sunos*) TARGET=solarissparc
1420 *freebsd*) TARGET=freebsd86
1430 *sequent*) cat >>confdefs.h <<\_ACEOF
1435 *MINGW*) TARGET=mingw
1437 *MinGW*) TARGET=mingw
1439 *mingw*) TARGET=mingw
1446 # force us down to '386 if we're on some other machine.
1447 *?86*) host_cpu='i386'
1458 ac_cpp='$CPP $CPPFLAGS'
1459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1462 if test -n "$ac_tool_prefix"; then
1463 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1464 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1465 echo "$as_me:$LINENO: checking for $ac_word" >&5
1466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1467 if test "${ac_cv_prog_CC+set}" = set; then
1468 echo $ECHO_N "(cached) $ECHO_C" >&6
1470 if test -n "$CC"; then
1471 ac_cv_prog_CC="$CC" # Let the user override the test.
1473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1477 test -z "$as_dir" && as_dir=.
1478 for ac_exec_ext in '' $ac_executable_extensions; do
1479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1480 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1490 if test -n "$CC"; then
1491 echo "$as_me:$LINENO: result: $CC" >&5
1492 echo "${ECHO_T}$CC" >&6
1494 echo "$as_me:$LINENO: result: no" >&5
1495 echo "${ECHO_T}no" >&6
1499 if test -z "$ac_cv_prog_CC"; then
1501 # Extract the first word of "gcc", so it can be a program name with args.
1502 set dummy gcc; ac_word=$2
1503 echo "$as_me:$LINENO: checking for $ac_word" >&5
1504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1505 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1506 echo $ECHO_N "(cached) $ECHO_C" >&6
1508 if test -n "$ac_ct_CC"; then
1509 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1515 test -z "$as_dir" && as_dir=.
1516 for ac_exec_ext in '' $ac_executable_extensions; do
1517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1518 ac_cv_prog_ac_ct_CC="gcc"
1519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1527 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1528 if test -n "$ac_ct_CC"; then
1529 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1530 echo "${ECHO_T}$ac_ct_CC" >&6
1532 echo "$as_me:$LINENO: result: no" >&5
1533 echo "${ECHO_T}no" >&6
1541 if test -z "$CC"; then
1542 if test -n "$ac_tool_prefix"; then
1543 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1544 set dummy ${ac_tool_prefix}cc; ac_word=$2
1545 echo "$as_me:$LINENO: checking for $ac_word" >&5
1546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1547 if test "${ac_cv_prog_CC+set}" = set; then
1548 echo $ECHO_N "(cached) $ECHO_C" >&6
1550 if test -n "$CC"; then
1551 ac_cv_prog_CC="$CC" # Let the user override the test.
1553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1557 test -z "$as_dir" && as_dir=.
1558 for ac_exec_ext in '' $ac_executable_extensions; do
1559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1560 ac_cv_prog_CC="${ac_tool_prefix}cc"
1561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1570 if test -n "$CC"; then
1571 echo "$as_me:$LINENO: result: $CC" >&5
1572 echo "${ECHO_T}$CC" >&6
1574 echo "$as_me:$LINENO: result: no" >&5
1575 echo "${ECHO_T}no" >&6
1579 if test -z "$ac_cv_prog_CC"; then
1581 # Extract the first word of "cc", so it can be a program name with args.
1582 set dummy cc; ac_word=$2
1583 echo "$as_me:$LINENO: checking for $ac_word" >&5
1584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1585 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1586 echo $ECHO_N "(cached) $ECHO_C" >&6
1588 if test -n "$ac_ct_CC"; then
1589 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1595 test -z "$as_dir" && as_dir=.
1596 for ac_exec_ext in '' $ac_executable_extensions; do
1597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1598 ac_cv_prog_ac_ct_CC="cc"
1599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1607 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1608 if test -n "$ac_ct_CC"; then
1609 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1610 echo "${ECHO_T}$ac_ct_CC" >&6
1612 echo "$as_me:$LINENO: result: no" >&5
1613 echo "${ECHO_T}no" >&6
1622 if test -z "$CC"; then
1623 # Extract the first word of "cc", so it can be a program name with args.
1624 set dummy cc; ac_word=$2
1625 echo "$as_me:$LINENO: checking for $ac_word" >&5
1626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1627 if test "${ac_cv_prog_CC+set}" = set; then
1628 echo $ECHO_N "(cached) $ECHO_C" >&6
1630 if test -n "$CC"; then
1631 ac_cv_prog_CC="$CC" # Let the user override the test.
1634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1638 test -z "$as_dir" && as_dir=.
1639 for ac_exec_ext in '' $ac_executable_extensions; do
1640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1641 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1642 ac_prog_rejected=yes
1646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1652 if test $ac_prog_rejected = yes; then
1653 # We found a bogon in the path, so make sure we never use it.
1654 set dummy $ac_cv_prog_CC
1656 if test $# != 0; then
1657 # We chose a different compiler from the bogus one.
1658 # However, it has the same basename, so the bogon will be chosen
1659 # first if we set CC to just the basename; use the full file name.
1661 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1667 if test -n "$CC"; then
1668 echo "$as_me:$LINENO: result: $CC" >&5
1669 echo "${ECHO_T}$CC" >&6
1671 echo "$as_me:$LINENO: result: no" >&5
1672 echo "${ECHO_T}no" >&6
1676 if test -z "$CC"; then
1677 if test -n "$ac_tool_prefix"; then
1680 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1681 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1682 echo "$as_me:$LINENO: checking for $ac_word" >&5
1683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1684 if test "${ac_cv_prog_CC+set}" = set; then
1685 echo $ECHO_N "(cached) $ECHO_C" >&6
1687 if test -n "$CC"; then
1688 ac_cv_prog_CC="$CC" # Let the user override the test.
1690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1694 test -z "$as_dir" && as_dir=.
1695 for ac_exec_ext in '' $ac_executable_extensions; do
1696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1697 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1707 if test -n "$CC"; then
1708 echo "$as_me:$LINENO: result: $CC" >&5
1709 echo "${ECHO_T}$CC" >&6
1711 echo "$as_me:$LINENO: result: no" >&5
1712 echo "${ECHO_T}no" >&6
1715 test -n "$CC" && break
1718 if test -z "$CC"; then
1722 # Extract the first word of "$ac_prog", so it can be a program name with args.
1723 set dummy $ac_prog; ac_word=$2
1724 echo "$as_me:$LINENO: checking for $ac_word" >&5
1725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1726 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1727 echo $ECHO_N "(cached) $ECHO_C" >&6
1729 if test -n "$ac_ct_CC"; then
1730 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1736 test -z "$as_dir" && as_dir=.
1737 for ac_exec_ext in '' $ac_executable_extensions; do
1738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1739 ac_cv_prog_ac_ct_CC="$ac_prog"
1740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1748 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1749 if test -n "$ac_ct_CC"; then
1750 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1751 echo "${ECHO_T}$ac_ct_CC" >&6
1753 echo "$as_me:$LINENO: result: no" >&5
1754 echo "${ECHO_T}no" >&6
1757 test -n "$ac_ct_CC" && break
1766 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1767 See \`config.log' for more details." >&5
1768 echo "$as_me: error: no acceptable C compiler found in \$PATH
1769 See \`config.log' for more details." >&2;}
1770 { (exit 1); exit 1; }; }
1772 # Provide some information about the compiler.
1773 echo "$as_me:$LINENO:" \
1774 "checking for C compiler version" >&5
1775 ac_compiler=`set X $ac_compile; echo $2`
1776 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1777 (eval $ac_compiler --version </dev/null >&5) 2>&5
1779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1780 (exit $ac_status); }
1781 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1782 (eval $ac_compiler -v </dev/null >&5) 2>&5
1784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1785 (exit $ac_status); }
1786 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1787 (eval $ac_compiler -V </dev/null >&5) 2>&5
1789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1790 (exit $ac_status); }
1792 cat >conftest.$ac_ext <<_ACEOF
1795 cat confdefs.h >>conftest.$ac_ext
1796 cat >>conftest.$ac_ext <<_ACEOF
1797 /* end confdefs.h. */
1807 ac_clean_files_save=$ac_clean_files
1808 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1809 # Try to create an executable without -o first, disregard a.out.
1810 # It will help us diagnose broken compilers, and finding out an intuition
1812 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1813 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1814 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1815 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1816 (eval $ac_link_default) 2>&5
1818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1819 (exit $ac_status); }; then
1820 # Find the output, starting from the most likely. This scheme is
1821 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1824 # Be careful to initialize this variable, since it used to be cached.
1825 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1827 # b.out is created by i960 compilers.
1828 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1830 test -f "$ac_file" || continue
1832 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1835 # This is the source file.
1838 # We found the default executable, but exeext='' is most
1842 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1843 # FIXME: I believe we export ac_cv_exeext for Libtool,
1844 # but it would be cool to find out if it's true. Does anybody
1845 # maintain Libtool? --akim.
1853 echo "$as_me: failed program was:" >&5
1854 sed 's/^/| /' conftest.$ac_ext >&5
1856 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1857 See \`config.log' for more details." >&5
1858 echo "$as_me: error: C compiler cannot create executables
1859 See \`config.log' for more details." >&2;}
1860 { (exit 77); exit 77; }; }
1863 ac_exeext=$ac_cv_exeext
1864 echo "$as_me:$LINENO: result: $ac_file" >&5
1865 echo "${ECHO_T}$ac_file" >&6
1867 # Check the compiler produces executables we can run. If not, either
1868 # the compiler is broken, or we cross compile.
1869 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1870 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1871 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1872 # If not cross compiling, check that we can run a simple program.
1873 if test "$cross_compiling" != yes; then
1874 if { ac_try='./$ac_file'
1875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1879 (exit $ac_status); }; }; then
1882 if test "$cross_compiling" = maybe; then
1885 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1886 If you meant to cross compile, use \`--host'.
1887 See \`config.log' for more details." >&5
1888 echo "$as_me: error: cannot run C compiled programs.
1889 If you meant to cross compile, use \`--host'.
1890 See \`config.log' for more details." >&2;}
1891 { (exit 1); exit 1; }; }
1895 echo "$as_me:$LINENO: result: yes" >&5
1896 echo "${ECHO_T}yes" >&6
1898 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1899 ac_clean_files=$ac_clean_files_save
1900 # Check the compiler produces executables we can run. If not, either
1901 # the compiler is broken, or we cross compile.
1902 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1903 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1904 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1905 echo "${ECHO_T}$cross_compiling" >&6
1907 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1908 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1910 (eval $ac_link) 2>&5
1912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1913 (exit $ac_status); }; then
1914 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1915 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1916 # work properly (i.e., refer to `conftest.exe'), while it won't with
1918 for ac_file in conftest.exe conftest conftest.*; do
1919 test -f "$ac_file" || continue
1921 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1922 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1929 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1930 See \`config.log' for more details." >&5
1931 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1932 See \`config.log' for more details." >&2;}
1933 { (exit 1); exit 1; }; }
1936 rm -f conftest$ac_cv_exeext
1937 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1938 echo "${ECHO_T}$ac_cv_exeext" >&6
1940 rm -f conftest.$ac_ext
1941 EXEEXT=$ac_cv_exeext
1943 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1944 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1945 if test "${ac_cv_objext+set}" = set; then
1946 echo $ECHO_N "(cached) $ECHO_C" >&6
1948 cat >conftest.$ac_ext <<_ACEOF
1951 cat confdefs.h >>conftest.$ac_ext
1952 cat >>conftest.$ac_ext <<_ACEOF
1953 /* end confdefs.h. */
1963 rm -f conftest.o conftest.obj
1964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1965 (eval $ac_compile) 2>&5
1967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1968 (exit $ac_status); }; then
1969 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1971 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1972 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1977 echo "$as_me: failed program was:" >&5
1978 sed 's/^/| /' conftest.$ac_ext >&5
1980 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1981 See \`config.log' for more details." >&5
1982 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1983 See \`config.log' for more details." >&2;}
1984 { (exit 1); exit 1; }; }
1987 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1989 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1990 echo "${ECHO_T}$ac_cv_objext" >&6
1991 OBJEXT=$ac_cv_objext
1993 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1994 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1995 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1996 echo $ECHO_N "(cached) $ECHO_C" >&6
1998 cat >conftest.$ac_ext <<_ACEOF
2001 cat confdefs.h >>conftest.$ac_ext
2002 cat >>conftest.$ac_ext <<_ACEOF
2003 /* end confdefs.h. */
2016 rm -f conftest.$ac_objext
2017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2018 (eval $ac_compile) 2>conftest.er1
2020 grep -v '^ *+' conftest.er1 >conftest.err
2022 cat conftest.err >&5
2023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024 (exit $ac_status); } &&
2025 { ac_try='test -z "$ac_c_werror_flag"
2026 || test ! -s conftest.err'
2027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031 (exit $ac_status); }; } &&
2032 { ac_try='test -s conftest.$ac_objext'
2033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2037 (exit $ac_status); }; }; then
2040 echo "$as_me: failed program was:" >&5
2041 sed 's/^/| /' conftest.$ac_ext >&5
2045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2046 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2049 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2050 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2051 GCC=`test $ac_compiler_gnu = yes && echo yes`
2052 ac_test_CFLAGS=${CFLAGS+set}
2053 ac_save_CFLAGS=$CFLAGS
2055 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2056 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2057 if test "${ac_cv_prog_cc_g+set}" = set; then
2058 echo $ECHO_N "(cached) $ECHO_C" >&6
2060 cat >conftest.$ac_ext <<_ACEOF
2063 cat confdefs.h >>conftest.$ac_ext
2064 cat >>conftest.$ac_ext <<_ACEOF
2065 /* end confdefs.h. */
2075 rm -f conftest.$ac_objext
2076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2077 (eval $ac_compile) 2>conftest.er1
2079 grep -v '^ *+' conftest.er1 >conftest.err
2081 cat conftest.err >&5
2082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083 (exit $ac_status); } &&
2084 { ac_try='test -z "$ac_c_werror_flag"
2085 || test ! -s conftest.err'
2086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090 (exit $ac_status); }; } &&
2091 { ac_try='test -s conftest.$ac_objext'
2092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096 (exit $ac_status); }; }; then
2099 echo "$as_me: failed program was:" >&5
2100 sed 's/^/| /' conftest.$ac_ext >&5
2104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2106 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2107 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2108 if test "$ac_test_CFLAGS" = set; then
2109 CFLAGS=$ac_save_CFLAGS
2110 elif test $ac_cv_prog_cc_g = yes; then
2111 if test "$GCC" = yes; then
2117 if test "$GCC" = yes; then
2123 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2124 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2125 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2126 echo $ECHO_N "(cached) $ECHO_C" >&6
2128 ac_cv_prog_cc_stdc=no
2130 cat >conftest.$ac_ext <<_ACEOF
2133 cat confdefs.h >>conftest.$ac_ext
2134 cat >>conftest.$ac_ext <<_ACEOF
2135 /* end confdefs.h. */
2138 #include <sys/types.h>
2139 #include <sys/stat.h>
2140 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2141 struct buf { int x; };
2142 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2143 static char *e (p, i)
2149 static char *f (char * (*g) (char **, int), char **p, ...)
2154 s = g (p, va_arg (v,int));
2159 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2160 function prototypes and stuff, but not '\xHH' hex character constants.
2161 These don't provoke an error unfortunately, instead are silently treated
2162 as 'x'. The following induces an error, until -std1 is added to get
2163 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2164 array size at least. It's necessary to write '\x00'==0 to get something
2165 that's true only with -std1. */
2166 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2168 int test (int i, double x);
2169 struct s1 {int (*f) (int a);};
2170 struct s2 {int (*f) (double a);};
2171 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2177 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2182 # Don't try gcc -ansi; that turns off useful extensions and
2183 # breaks some systems' header files.
2184 # AIX -qlanglvl=ansi
2185 # Ultrix and OSF/1 -std1
2186 # HP-UX 10.20 and later -Ae
2187 # HP-UX older versions -Aa -D_HPUX_SOURCE
2188 # SVR4 -Xc -D__EXTENSIONS__
2189 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2191 CC="$ac_save_CC $ac_arg"
2192 rm -f conftest.$ac_objext
2193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2194 (eval $ac_compile) 2>conftest.er1
2196 grep -v '^ *+' conftest.er1 >conftest.err
2198 cat conftest.err >&5
2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200 (exit $ac_status); } &&
2201 { ac_try='test -z "$ac_c_werror_flag"
2202 || test ! -s conftest.err'
2203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207 (exit $ac_status); }; } &&
2208 { ac_try='test -s conftest.$ac_objext'
2209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); }; }; then
2214 ac_cv_prog_cc_stdc=$ac_arg
2217 echo "$as_me: failed program was:" >&5
2218 sed 's/^/| /' conftest.$ac_ext >&5
2221 rm -f conftest.err conftest.$ac_objext
2223 rm -f conftest.$ac_ext conftest.$ac_objext
2228 case "x$ac_cv_prog_cc_stdc" in
2230 echo "$as_me:$LINENO: result: none needed" >&5
2231 echo "${ECHO_T}none needed" >&6 ;;
2233 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2234 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2235 CC="$CC $ac_cv_prog_cc_stdc" ;;
2238 # Some people use a C++ compiler to compile C. Since we use `exit',
2239 # in C++ we need to declare it. In case someone uses the same compiler
2240 # for both compiling C and C++ we need to have the C++ compiler decide
2241 # the declaration of exit, since it's the most demanding environment.
2242 cat >conftest.$ac_ext <<_ACEOF
2247 rm -f conftest.$ac_objext
2248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2249 (eval $ac_compile) 2>conftest.er1
2251 grep -v '^ *+' conftest.er1 >conftest.err
2253 cat conftest.err >&5
2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); } &&
2256 { ac_try='test -z "$ac_c_werror_flag"
2257 || test ! -s conftest.err'
2258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); }; } &&
2263 { ac_try='test -s conftest.$ac_objext'
2264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); }; }; then
2269 for ac_declaration in \
2271 'extern "C" void std::exit (int) throw (); using std::exit;' \
2272 'extern "C" void std::exit (int); using std::exit;' \
2273 'extern "C" void exit (int) throw ();' \
2274 'extern "C" void exit (int);' \
2277 cat >conftest.$ac_ext <<_ACEOF
2280 cat confdefs.h >>conftest.$ac_ext
2281 cat >>conftest.$ac_ext <<_ACEOF
2282 /* end confdefs.h. */
2293 rm -f conftest.$ac_objext
2294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2295 (eval $ac_compile) 2>conftest.er1
2297 grep -v '^ *+' conftest.er1 >conftest.err
2299 cat conftest.err >&5
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); } &&
2302 { ac_try='test -z "$ac_c_werror_flag"
2303 || test ! -s conftest.err'
2304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308 (exit $ac_status); }; } &&
2309 { ac_try='test -s conftest.$ac_objext'
2310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314 (exit $ac_status); }; }; then
2317 echo "$as_me: failed program was:" >&5
2318 sed 's/^/| /' conftest.$ac_ext >&5
2322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2323 cat >conftest.$ac_ext <<_ACEOF
2326 cat confdefs.h >>conftest.$ac_ext
2327 cat >>conftest.$ac_ext <<_ACEOF
2328 /* end confdefs.h. */
2338 rm -f conftest.$ac_objext
2339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2340 (eval $ac_compile) 2>conftest.er1
2342 grep -v '^ *+' conftest.er1 >conftest.err
2344 cat conftest.err >&5
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); } &&
2347 { ac_try='test -z "$ac_c_werror_flag"
2348 || test ! -s conftest.err'
2349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353 (exit $ac_status); }; } &&
2354 { ac_try='test -s conftest.$ac_objext'
2355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359 (exit $ac_status); }; }; then
2362 echo "$as_me: failed program was:" >&5
2363 sed 's/^/| /' conftest.$ac_ext >&5
2366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2369 if test -n "$ac_declaration"; then
2370 echo '#ifdef __cplusplus' >>confdefs.h
2371 echo $ac_declaration >>confdefs.h
2372 echo '#endif' >>confdefs.h
2376 echo "$as_me: failed program was:" >&5
2377 sed 's/^/| /' conftest.$ac_ext >&5
2380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2382 ac_cpp='$CPP $CPPFLAGS'
2383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2387 # Find a good install program. We prefer a C program (faster),
2388 # so one script is as good as another. But avoid the broken or
2389 # incompatible versions:
2390 # SysV /etc/install, /usr/sbin/install
2391 # SunOS /usr/etc/install
2392 # IRIX /sbin/install
2394 # AmigaOS /C/install, which installs bootblocks on floppy discs
2395 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2396 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2397 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2398 # OS/2's system install, which has a completely different semantic
2399 # ./install, which can be erroneously created by make from ./install.sh.
2400 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2401 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2402 if test -z "$INSTALL"; then
2403 if test "${ac_cv_path_install+set}" = set; then
2404 echo $ECHO_N "(cached) $ECHO_C" >&6
2406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410 test -z "$as_dir" && as_dir=.
2411 # Account for people who put trailing slashes in PATH elements.
2413 ./ | .// | /cC/* | \
2414 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2415 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2418 # OSF1 and SCO ODT 3.0 have their own names for install.
2419 # Don't use installbsd from OSF since it installs stuff as root
2421 for ac_prog in ginstall scoinst install; do
2422 for ac_exec_ext in '' $ac_executable_extensions; do
2423 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2424 if test $ac_prog = install &&
2425 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2426 # AIX install. It has an incompatible calling convention.
2428 elif test $ac_prog = install &&
2429 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2430 # program-specific install script used by HP pwplus--don't use.
2433 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2445 if test "${ac_cv_path_install+set}" = set; then
2446 INSTALL=$ac_cv_path_install
2448 # As a last resort, use the slow shell script. We don't cache a
2449 # path for INSTALL within a source directory, because that will
2450 # break other packages using the cache if that directory is
2451 # removed, or if the path is relative.
2452 INSTALL=$ac_install_sh
2455 echo "$as_me:$LINENO: result: $INSTALL" >&5
2456 echo "${ECHO_T}$INSTALL" >&6
2458 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2459 # It thinks the first close brace ends the variable substitution.
2460 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2462 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2464 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2466 # Extract the first word of "objcopy", so it can be a program name with args.
2467 set dummy objcopy; ac_word=$2
2468 echo "$as_me:$LINENO: checking for $ac_word" >&5
2469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2470 if test "${ac_cv_prog_USE_OBJCOPY+set}" = set; then
2471 echo $ECHO_N "(cached) $ECHO_C" >&6
2473 if test -n "$USE_OBJCOPY"; then
2474 ac_cv_prog_USE_OBJCOPY="$USE_OBJCOPY" # Let the user override the test.
2476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480 test -z "$as_dir" && as_dir=.
2481 for ac_exec_ext in '' $ac_executable_extensions; do
2482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2483 ac_cv_prog_USE_OBJCOPY="yes"
2484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2490 test -z "$ac_cv_prog_USE_OBJCOPY" && ac_cv_prog_USE_OBJCOPY="no"
2493 USE_OBJCOPY=$ac_cv_prog_USE_OBJCOPY
2494 if test -n "$USE_OBJCOPY"; then
2495 echo "$as_me:$LINENO: result: $USE_OBJCOPY" >&5
2496 echo "${ECHO_T}$USE_OBJCOPY" >&6
2498 echo "$as_me:$LINENO: result: no" >&5
2499 echo "${ECHO_T}no" >&6
2505 ac_cpp='$CPP $CPPFLAGS'
2506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2509 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2510 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2511 # On Suns, sometimes $CPP names a directory.
2512 if test -n "$CPP" && test -d "$CPP"; then
2515 if test -z "$CPP"; then
2516 if test "${ac_cv_prog_CPP+set}" = set; then
2517 echo $ECHO_N "(cached) $ECHO_C" >&6
2519 # Double quotes because CPP needs to be expanded
2520 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2523 for ac_c_preproc_warn_flag in '' yes
2525 # Use a header file that comes with gcc, so configuring glibc
2526 # with a fresh cross-compiler works.
2527 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2528 # <limits.h> exists even on freestanding compilers.
2529 # On the NeXT, cc -E runs the code through the compiler's parser,
2530 # not just through cpp. "Syntax error" is here to catch this case.
2531 cat >conftest.$ac_ext <<_ACEOF
2534 cat confdefs.h >>conftest.$ac_ext
2535 cat >>conftest.$ac_ext <<_ACEOF
2536 /* end confdefs.h. */
2538 # include <limits.h>
2540 # include <assert.h>
2544 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2545 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2547 grep -v '^ *+' conftest.er1 >conftest.err
2549 cat conftest.err >&5
2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551 (exit $ac_status); } >/dev/null; then
2552 if test -s conftest.err; then
2553 ac_cpp_err=$ac_c_preproc_warn_flag
2554 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2561 if test -z "$ac_cpp_err"; then
2564 echo "$as_me: failed program was:" >&5
2565 sed 's/^/| /' conftest.$ac_ext >&5
2567 # Broken: fails on valid input.
2570 rm -f conftest.err conftest.$ac_ext
2572 # OK, works on sane cases. Now check whether non-existent headers
2573 # can be detected and how.
2574 cat >conftest.$ac_ext <<_ACEOF
2577 cat confdefs.h >>conftest.$ac_ext
2578 cat >>conftest.$ac_ext <<_ACEOF
2579 /* end confdefs.h. */
2580 #include <ac_nonexistent.h>
2582 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2583 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2585 grep -v '^ *+' conftest.er1 >conftest.err
2587 cat conftest.err >&5
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); } >/dev/null; then
2590 if test -s conftest.err; then
2591 ac_cpp_err=$ac_c_preproc_warn_flag
2592 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2599 if test -z "$ac_cpp_err"; then
2600 # Broken: success on invalid input.
2603 echo "$as_me: failed program was:" >&5
2604 sed 's/^/| /' conftest.$ac_ext >&5
2606 # Passes both tests.
2610 rm -f conftest.err conftest.$ac_ext
2613 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2614 rm -f conftest.err conftest.$ac_ext
2615 if $ac_preproc_ok; then
2627 echo "$as_me:$LINENO: result: $CPP" >&5
2628 echo "${ECHO_T}$CPP" >&6
2630 for ac_c_preproc_warn_flag in '' yes
2632 # Use a header file that comes with gcc, so configuring glibc
2633 # with a fresh cross-compiler works.
2634 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2635 # <limits.h> exists even on freestanding compilers.
2636 # On the NeXT, cc -E runs the code through the compiler's parser,
2637 # not just through cpp. "Syntax error" is here to catch this case.
2638 cat >conftest.$ac_ext <<_ACEOF
2641 cat confdefs.h >>conftest.$ac_ext
2642 cat >>conftest.$ac_ext <<_ACEOF
2643 /* end confdefs.h. */
2645 # include <limits.h>
2647 # include <assert.h>
2651 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2652 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2654 grep -v '^ *+' conftest.er1 >conftest.err
2656 cat conftest.err >&5
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); } >/dev/null; then
2659 if test -s conftest.err; then
2660 ac_cpp_err=$ac_c_preproc_warn_flag
2661 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2668 if test -z "$ac_cpp_err"; then
2671 echo "$as_me: failed program was:" >&5
2672 sed 's/^/| /' conftest.$ac_ext >&5
2674 # Broken: fails on valid input.
2677 rm -f conftest.err conftest.$ac_ext
2679 # OK, works on sane cases. Now check whether non-existent headers
2680 # can be detected and how.
2681 cat >conftest.$ac_ext <<_ACEOF
2684 cat confdefs.h >>conftest.$ac_ext
2685 cat >>conftest.$ac_ext <<_ACEOF
2686 /* end confdefs.h. */
2687 #include <ac_nonexistent.h>
2689 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2690 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2692 grep -v '^ *+' conftest.er1 >conftest.err
2694 cat conftest.err >&5
2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696 (exit $ac_status); } >/dev/null; then
2697 if test -s conftest.err; then
2698 ac_cpp_err=$ac_c_preproc_warn_flag
2699 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2706 if test -z "$ac_cpp_err"; then
2707 # Broken: success on invalid input.
2710 echo "$as_me: failed program was:" >&5
2711 sed 's/^/| /' conftest.$ac_ext >&5
2713 # Passes both tests.
2717 rm -f conftest.err conftest.$ac_ext
2720 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2721 rm -f conftest.err conftest.$ac_ext
2722 if $ac_preproc_ok; then
2725 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2726 See \`config.log' for more details." >&5
2727 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2728 See \`config.log' for more details." >&2;}
2729 { (exit 1); exit 1; }; }
2733 ac_cpp='$CPP $CPPFLAGS'
2734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2739 echo "$as_me:$LINENO: checking for egrep" >&5
2740 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2741 if test "${ac_cv_prog_egrep+set}" = set; then
2742 echo $ECHO_N "(cached) $ECHO_C" >&6
2744 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2745 then ac_cv_prog_egrep='grep -E'
2746 else ac_cv_prog_egrep='egrep'
2749 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2750 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2751 EGREP=$ac_cv_prog_egrep
2754 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2755 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2756 if test "${ac_cv_header_stdc+set}" = set; then
2757 echo $ECHO_N "(cached) $ECHO_C" >&6
2759 cat >conftest.$ac_ext <<_ACEOF
2762 cat confdefs.h >>conftest.$ac_ext
2763 cat >>conftest.$ac_ext <<_ACEOF
2764 /* end confdefs.h. */
2778 rm -f conftest.$ac_objext
2779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2780 (eval $ac_compile) 2>conftest.er1
2782 grep -v '^ *+' conftest.er1 >conftest.err
2784 cat conftest.err >&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); } &&
2787 { ac_try='test -z "$ac_c_werror_flag"
2788 || test ! -s conftest.err'
2789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); }; } &&
2794 { ac_try='test -s conftest.$ac_objext'
2795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); }; }; then
2800 ac_cv_header_stdc=yes
2802 echo "$as_me: failed program was:" >&5
2803 sed 's/^/| /' conftest.$ac_ext >&5
2805 ac_cv_header_stdc=no
2807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2809 if test $ac_cv_header_stdc = yes; then
2810 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2811 cat >conftest.$ac_ext <<_ACEOF
2814 cat confdefs.h >>conftest.$ac_ext
2815 cat >>conftest.$ac_ext <<_ACEOF
2816 /* end confdefs.h. */
2820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2821 $EGREP "memchr" >/dev/null 2>&1; then
2824 ac_cv_header_stdc=no
2830 if test $ac_cv_header_stdc = yes; then
2831 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2832 cat >conftest.$ac_ext <<_ACEOF
2835 cat confdefs.h >>conftest.$ac_ext
2836 cat >>conftest.$ac_ext <<_ACEOF
2837 /* end confdefs.h. */
2841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2842 $EGREP "free" >/dev/null 2>&1; then
2845 ac_cv_header_stdc=no
2851 if test $ac_cv_header_stdc = yes; then
2852 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2853 if test "$cross_compiling" = yes; then
2856 cat >conftest.$ac_ext <<_ACEOF
2859 cat confdefs.h >>conftest.$ac_ext
2860 cat >>conftest.$ac_ext <<_ACEOF
2861 /* end confdefs.h. */
2863 #if ((' ' & 0x0FF) == 0x020)
2864 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2865 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2867 # define ISLOWER(c) \
2868 (('a' <= (c) && (c) <= 'i') \
2869 || ('j' <= (c) && (c) <= 'r') \
2870 || ('s' <= (c) && (c) <= 'z'))
2871 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2874 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2879 for (i = 0; i < 256; i++)
2880 if (XOR (islower (i), ISLOWER (i))
2881 || toupper (i) != TOUPPER (i))
2886 rm -f conftest$ac_exeext
2887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2888 (eval $ac_link) 2>&5
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); }; }; then
2899 echo "$as_me: program exited with status $ac_status" >&5
2900 echo "$as_me: failed program was:" >&5
2901 sed 's/^/| /' conftest.$ac_ext >&5
2904 ac_cv_header_stdc=no
2906 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2910 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2911 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2912 if test $ac_cv_header_stdc = yes; then
2914 cat >>confdefs.h <<\_ACEOF
2915 #define STDC_HEADERS 1
2920 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2930 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2931 inttypes.h stdint.h unistd.h
2933 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2934 echo "$as_me:$LINENO: checking for $ac_header" >&5
2935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2937 echo $ECHO_N "(cached) $ECHO_C" >&6
2939 cat >conftest.$ac_ext <<_ACEOF
2942 cat confdefs.h >>conftest.$ac_ext
2943 cat >>conftest.$ac_ext <<_ACEOF
2944 /* end confdefs.h. */
2945 $ac_includes_default
2947 #include <$ac_header>
2949 rm -f conftest.$ac_objext
2950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2951 (eval $ac_compile) 2>conftest.er1
2953 grep -v '^ *+' conftest.er1 >conftest.err
2955 cat conftest.err >&5
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); } &&
2958 { ac_try='test -z "$ac_c_werror_flag"
2959 || test ! -s conftest.err'
2960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); }; } &&
2965 { ac_try='test -s conftest.$ac_objext'
2966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); }; }; then
2971 eval "$as_ac_Header=yes"
2973 echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.$ac_ext >&5
2976 eval "$as_ac_Header=no"
2978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2980 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2981 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2982 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2983 cat >>confdefs.h <<_ACEOF
2984 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3034 cam/scsi/scsi_message.h \
3042 sys/scsi/impl/uscsi.h \
3052 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3054 echo "$as_me:$LINENO: checking for $ac_header" >&5
3055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3057 echo $ECHO_N "(cached) $ECHO_C" >&6
3059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3062 # Is the header compilable?
3063 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3064 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3065 cat >conftest.$ac_ext <<_ACEOF
3068 cat confdefs.h >>conftest.$ac_ext
3069 cat >>conftest.$ac_ext <<_ACEOF
3070 /* end confdefs.h. */
3071 $ac_includes_default
3072 #include <$ac_header>
3074 rm -f conftest.$ac_objext
3075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3076 (eval $ac_compile) 2>conftest.er1
3078 grep -v '^ *+' conftest.er1 >conftest.err
3080 cat conftest.err >&5
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); } &&
3083 { ac_try='test -z "$ac_c_werror_flag"
3084 || test ! -s conftest.err'
3085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); }; } &&
3090 { ac_try='test -s conftest.$ac_objext'
3091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); }; }; then
3096 ac_header_compiler=yes
3098 echo "$as_me: failed program was:" >&5
3099 sed 's/^/| /' conftest.$ac_ext >&5
3101 ac_header_compiler=no
3103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3104 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3105 echo "${ECHO_T}$ac_header_compiler" >&6
3107 # Is the header present?
3108 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3109 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3110 cat >conftest.$ac_ext <<_ACEOF
3113 cat confdefs.h >>conftest.$ac_ext
3114 cat >>conftest.$ac_ext <<_ACEOF
3115 /* end confdefs.h. */
3116 #include <$ac_header>
3118 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3119 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3121 grep -v '^ *+' conftest.er1 >conftest.err
3123 cat conftest.err >&5
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); } >/dev/null; then
3126 if test -s conftest.err; then
3127 ac_cpp_err=$ac_c_preproc_warn_flag
3128 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3135 if test -z "$ac_cpp_err"; then
3136 ac_header_preproc=yes
3138 echo "$as_me: failed program was:" >&5
3139 sed 's/^/| /' conftest.$ac_ext >&5
3141 ac_header_preproc=no
3143 rm -f conftest.err conftest.$ac_ext
3144 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3145 echo "${ECHO_T}$ac_header_preproc" >&6
3147 # So? What about this header?
3148 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3150 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3151 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3152 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3153 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3154 ac_header_preproc=yes
3157 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3158 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3159 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3160 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3161 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3162 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3163 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3164 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3166 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3167 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3168 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3171 ## ------------------------------------------ ##
3172 ## Report this to the AC_PACKAGE_NAME lists. ##
3173 ## ------------------------------------------ ##
3176 sed "s/^/$as_me: WARNING: /" >&2
3179 echo "$as_me:$LINENO: checking for $ac_header" >&5
3180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3182 echo $ECHO_N "(cached) $ECHO_C" >&6
3184 eval "$as_ac_Header=\$ac_header_preproc"
3186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3187 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3190 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3191 cat >>confdefs.h <<_ACEOF
3192 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3200 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3201 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3202 if test "${ac_cv_c_const+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
3205 cat >conftest.$ac_ext <<_ACEOF
3208 cat confdefs.h >>conftest.$ac_ext
3209 cat >>conftest.$ac_ext <<_ACEOF
3210 /* end confdefs.h. */
3215 /* FIXME: Include the comments suggested by Paul. */
3217 /* Ultrix mips cc rejects this. */
3218 typedef int charset[2];
3220 /* SunOS 4.1.1 cc rejects this. */
3221 char const *const *ccp;
3223 /* NEC SVR4.0.2 mips cc rejects this. */
3224 struct point {int x, y;};
3225 static struct point const zero = {0,0};
3226 /* AIX XL C 1.02.0.0 rejects this.
3227 It does not let you subtract one const X* pointer from another in
3228 an arm of an if-expression whose if-part is not a constant
3230 const char *g = "string";
3231 ccp = &g + (g ? g-g : 0);
3232 /* HPUX 7.0 cc rejects these. */
3235 ccp = (char const *const *) p;
3236 { /* SCO 3.2v4 cc rejects this. */
3238 char const *s = 0 ? (char *) 0 : (char const *) 0;
3242 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3244 const int *foo = &x[0];
3247 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3248 typedef const int *iptr;
3252 { /* AIX XL C 1.02.0.0 rejects this saying
3253 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3254 struct s { int j; const int *ap[3]; };
3255 struct s *b; b->j = 5;
3257 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3266 rm -f conftest.$ac_objext
3267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3268 (eval $ac_compile) 2>conftest.er1
3270 grep -v '^ *+' conftest.er1 >conftest.err
3272 cat conftest.err >&5
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); } &&
3275 { ac_try='test -z "$ac_c_werror_flag"
3276 || test ! -s conftest.err'
3277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); }; } &&
3282 { ac_try='test -s conftest.$ac_objext'
3283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287 (exit $ac_status); }; }; then
3290 echo "$as_me: failed program was:" >&5
3291 sed 's/^/| /' conftest.$ac_ext >&5
3295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3297 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3298 echo "${ECHO_T}$ac_cv_c_const" >&6
3299 if test $ac_cv_c_const = no; then
3301 cat >>confdefs.h <<\_ACEOF
3307 echo "$as_me:$LINENO: checking for size_t" >&5
3308 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3309 if test "${ac_cv_type_size_t+set}" = set; then
3310 echo $ECHO_N "(cached) $ECHO_C" >&6
3312 cat >conftest.$ac_ext <<_ACEOF
3315 cat confdefs.h >>conftest.$ac_ext
3316 cat >>conftest.$ac_ext <<_ACEOF
3317 /* end confdefs.h. */
3318 $ac_includes_default
3324 if (sizeof (size_t))
3330 rm -f conftest.$ac_objext
3331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3332 (eval $ac_compile) 2>conftest.er1
3334 grep -v '^ *+' conftest.er1 >conftest.err
3336 cat conftest.err >&5
3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); } &&
3339 { ac_try='test -z "$ac_c_werror_flag"
3340 || test ! -s conftest.err'
3341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); }; } &&
3346 { ac_try='test -s conftest.$ac_objext'
3347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; }; then
3352 ac_cv_type_size_t=yes
3354 echo "$as_me: failed program was:" >&5
3355 sed 's/^/| /' conftest.$ac_ext >&5
3357 ac_cv_type_size_t=no
3359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3361 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3362 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3363 if test $ac_cv_type_size_t = yes; then
3367 cat >>confdefs.h <<_ACEOF
3368 #define size_t unsigned
3373 echo "$as_me:$LINENO: checking for pid_t" >&5
3374 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
3375 if test "${ac_cv_type_pid_t+set}" = set; then
3376 echo $ECHO_N "(cached) $ECHO_C" >&6
3378 cat >conftest.$ac_ext <<_ACEOF
3381 cat confdefs.h >>conftest.$ac_ext
3382 cat >>conftest.$ac_ext <<_ACEOF
3383 /* end confdefs.h. */
3384 $ac_includes_default
3396 rm -f conftest.$ac_objext
3397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3398 (eval $ac_compile) 2>conftest.er1
3400 grep -v '^ *+' conftest.er1 >conftest.err
3402 cat conftest.err >&5
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); } &&
3405 { ac_try='test -z "$ac_c_werror_flag"
3406 || test ! -s conftest.err'
3407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); }; } &&
3412 { ac_try='test -s conftest.$ac_objext'
3413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); }; }; then
3418 ac_cv_type_pid_t=yes
3420 echo "$as_me: failed program was:" >&5
3421 sed 's/^/| /' conftest.$ac_ext >&5
3425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3427 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
3428 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
3429 if test $ac_cv_type_pid_t = yes; then
3433 cat >>confdefs.h <<_ACEOF
3439 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3440 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3441 if test "${ac_cv_header_time+set}" = set; then
3442 echo $ECHO_N "(cached) $ECHO_C" >&6
3444 cat >conftest.$ac_ext <<_ACEOF
3447 cat confdefs.h >>conftest.$ac_ext
3448 cat >>conftest.$ac_ext <<_ACEOF
3449 /* end confdefs.h. */
3450 #include <sys/types.h>
3451 #include <sys/time.h>
3457 if ((struct tm *) 0)
3463 rm -f conftest.$ac_objext
3464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3465 (eval $ac_compile) 2>conftest.er1
3467 grep -v '^ *+' conftest.er1 >conftest.err
3469 cat conftest.err >&5
3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471 (exit $ac_status); } &&
3472 { ac_try='test -z "$ac_c_werror_flag"
3473 || test ! -s conftest.err'
3474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); }; } &&
3479 { ac_try='test -s conftest.$ac_objext'
3480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); }; }; then
3485 ac_cv_header_time=yes
3487 echo "$as_me: failed program was:" >&5
3488 sed 's/^/| /' conftest.$ac_ext >&5
3490 ac_cv_header_time=no
3492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3494 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3495 echo "${ECHO_T}$ac_cv_header_time" >&6
3496 if test $ac_cv_header_time = yes; then
3498 cat >>confdefs.h <<\_ACEOF
3499 #define TIME_WITH_SYS_TIME 1
3504 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
3505 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
3506 if test "${ac_cv_struct_tm+set}" = set; then
3507 echo $ECHO_N "(cached) $ECHO_C" >&6
3509 cat >conftest.$ac_ext <<_ACEOF
3512 cat confdefs.h >>conftest.$ac_ext
3513 cat >>conftest.$ac_ext <<_ACEOF
3514 /* end confdefs.h. */
3515 #include <sys/types.h>
3521 struct tm *tp; tp->tm_sec;
3526 rm -f conftest.$ac_objext
3527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3528 (eval $ac_compile) 2>conftest.er1
3530 grep -v '^ *+' conftest.er1 >conftest.err
3532 cat conftest.err >&5
3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); } &&
3535 { ac_try='test -z "$ac_c_werror_flag"
3536 || test ! -s conftest.err'
3537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); }; } &&
3542 { ac_try='test -s conftest.$ac_objext'
3543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547 (exit $ac_status); }; }; then
3548 ac_cv_struct_tm=time.h
3550 echo "$as_me: failed program was:" >&5
3551 sed 's/^/| /' conftest.$ac_ext >&5
3553 ac_cv_struct_tm=sys/time.h
3555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3557 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
3558 echo "${ECHO_T}$ac_cv_struct_tm" >&6
3559 if test $ac_cv_struct_tm = sys/time.h; then
3561 cat >>confdefs.h <<\_ACEOF
3562 #define TM_IN_SYS_TIME 1
3567 echo "$as_me:$LINENO: checking for int" >&5
3568 echo $ECHO_N "checking for int... $ECHO_C" >&6
3569 if test "${ac_cv_type_int+set}" = set; then
3570 echo $ECHO_N "(cached) $ECHO_C" >&6
3572 cat >conftest.$ac_ext <<_ACEOF
3575 cat confdefs.h >>conftest.$ac_ext
3576 cat >>conftest.$ac_ext <<_ACEOF
3577 /* end confdefs.h. */
3578 $ac_includes_default
3590 rm -f conftest.$ac_objext
3591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3592 (eval $ac_compile) 2>conftest.er1
3594 grep -v '^ *+' conftest.er1 >conftest.err
3596 cat conftest.err >&5
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); } &&
3599 { ac_try='test -z "$ac_c_werror_flag"
3600 || test ! -s conftest.err'
3601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); }; } &&
3606 { ac_try='test -s conftest.$ac_objext'
3607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); }; }; then
3614 echo "$as_me: failed program was:" >&5
3615 sed 's/^/| /' conftest.$ac_ext >&5
3619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3621 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
3622 echo "${ECHO_T}$ac_cv_type_int" >&6
3624 echo "$as_me:$LINENO: checking size of int" >&5
3625 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3626 if test "${ac_cv_sizeof_int+set}" = set; then
3627 echo $ECHO_N "(cached) $ECHO_C" >&6
3629 if test "$ac_cv_type_int" = yes; then
3630 # The cast to unsigned long works around a bug in the HP C Compiler
3631 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3632 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3633 # This bug is HP SR number 8606223364.
3634 if test "$cross_compiling" = yes; then
3635 # Depending upon the size, compute the lo and hi bounds.
3636 cat >conftest.$ac_ext <<_ACEOF
3639 cat confdefs.h >>conftest.$ac_ext
3640 cat >>conftest.$ac_ext <<_ACEOF
3641 /* end confdefs.h. */
3642 $ac_includes_default
3646 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
3653 rm -f conftest.$ac_objext
3654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3655 (eval $ac_compile) 2>conftest.er1
3657 grep -v '^ *+' conftest.er1 >conftest.err
3659 cat conftest.err >&5
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); } &&
3662 { ac_try='test -z "$ac_c_werror_flag"
3663 || test ! -s conftest.err'
3664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); }; } &&
3669 { ac_try='test -s conftest.$ac_objext'
3670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); }; }; then
3677 cat >conftest.$ac_ext <<_ACEOF
3680 cat confdefs.h >>conftest.$ac_ext
3681 cat >>conftest.$ac_ext <<_ACEOF
3682 /* end confdefs.h. */
3683 $ac_includes_default
3687 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
3694 rm -f conftest.$ac_objext
3695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3696 (eval $ac_compile) 2>conftest.er1
3698 grep -v '^ *+' conftest.er1 >conftest.err
3700 cat conftest.err >&5
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); } &&
3703 { ac_try='test -z "$ac_c_werror_flag"
3704 || test ! -s conftest.err'
3705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); }; } &&
3710 { ac_try='test -s conftest.$ac_objext'
3711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); }; }; then
3716 ac_hi=$ac_mid; break
3718 echo "$as_me: failed program was:" >&5
3719 sed 's/^/| /' conftest.$ac_ext >&5
3721 ac_lo=`expr $ac_mid + 1`
3722 if test $ac_lo -le $ac_mid; then
3726 ac_mid=`expr 2 '*' $ac_mid + 1`
3728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3731 echo "$as_me: failed program was:" >&5
3732 sed 's/^/| /' conftest.$ac_ext >&5
3734 cat >conftest.$ac_ext <<_ACEOF
3737 cat confdefs.h >>conftest.$ac_ext
3738 cat >>conftest.$ac_ext <<_ACEOF
3739 /* end confdefs.h. */
3740 $ac_includes_default
3744 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
3751 rm -f conftest.$ac_objext
3752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3753 (eval $ac_compile) 2>conftest.er1
3755 grep -v '^ *+' conftest.er1 >conftest.err
3757 cat conftest.err >&5
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); } &&
3760 { ac_try='test -z "$ac_c_werror_flag"
3761 || test ! -s conftest.err'
3762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766 (exit $ac_status); }; } &&
3767 { ac_try='test -s conftest.$ac_objext'
3768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772 (exit $ac_status); }; }; then
3775 cat >conftest.$ac_ext <<_ACEOF
3778 cat confdefs.h >>conftest.$ac_ext
3779 cat >>conftest.$ac_ext <<_ACEOF
3780 /* end confdefs.h. */
3781 $ac_includes_default
3785 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
3792 rm -f conftest.$ac_objext
3793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3794 (eval $ac_compile) 2>conftest.er1
3796 grep -v '^ *+' conftest.er1 >conftest.err
3798 cat conftest.err >&5
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); } &&
3801 { ac_try='test -z "$ac_c_werror_flag"
3802 || test ! -s conftest.err'
3803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); }; } &&
3808 { ac_try='test -s conftest.$ac_objext'
3809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); }; }; then
3814 ac_lo=$ac_mid; break
3816 echo "$as_me: failed program was:" >&5
3817 sed 's/^/| /' conftest.$ac_ext >&5
3819 ac_hi=`expr '(' $ac_mid ')' - 1`
3820 if test $ac_mid -le $ac_hi; then
3824 ac_mid=`expr 2 '*' $ac_mid`
3826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3829 echo "$as_me: failed program was:" >&5
3830 sed 's/^/| /' conftest.$ac_ext >&5
3834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3837 # Binary search between lo and hi bounds.
3838 while test "x$ac_lo" != "x$ac_hi"; do
3839 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3840 cat >conftest.$ac_ext <<_ACEOF
3843 cat confdefs.h >>conftest.$ac_ext
3844 cat >>conftest.$ac_ext <<_ACEOF
3845 /* end confdefs.h. */
3846 $ac_includes_default
3850 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
3857 rm -f conftest.$ac_objext
3858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3859 (eval $ac_compile) 2>conftest.er1
3861 grep -v '^ *+' conftest.er1 >conftest.err
3863 cat conftest.err >&5
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); } &&
3866 { ac_try='test -z "$ac_c_werror_flag"
3867 || test ! -s conftest.err'
3868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); }; } &&
3873 { ac_try='test -s conftest.$ac_objext'
3874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); }; }; then
3881 echo "$as_me: failed program was:" >&5
3882 sed 's/^/| /' conftest.$ac_ext >&5
3884 ac_lo=`expr '(' $ac_mid ')' + 1`
3886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3889 ?*) ac_cv_sizeof_int=$ac_lo;;
3890 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
3891 See \`config.log' for more details." >&5
3892 echo "$as_me: error: cannot compute sizeof (int), 77
3893 See \`config.log' for more details." >&2;}
3894 { (exit 1); exit 1; }; } ;;
3897 if test "$cross_compiling" = yes; then
3898 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3899 See \`config.log' for more details." >&5
3900 echo "$as_me: error: cannot run test program while cross compiling
3901 See \`config.log' for more details." >&2;}
3902 { (exit 1); exit 1; }; }
3904 cat >conftest.$ac_ext <<_ACEOF
3907 cat confdefs.h >>conftest.$ac_ext
3908 cat >>conftest.$ac_ext <<_ACEOF
3909 /* end confdefs.h. */
3910 $ac_includes_default
3911 long longval () { return (long) (sizeof (int)); }
3912 unsigned long ulongval () { return (long) (sizeof (int)); }
3919 FILE *f = fopen ("conftest.val", "w");
3922 if (((long) (sizeof (int))) < 0)
3924 long i = longval ();
3925 if (i != ((long) (sizeof (int))))
3927 fprintf (f, "%ld\n", i);
3931 unsigned long i = ulongval ();
3932 if (i != ((long) (sizeof (int))))
3934 fprintf (f, "%lu\n", i);
3936 exit (ferror (f) || fclose (f) != 0);
3942 rm -f conftest$ac_exeext
3943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3944 (eval $ac_link) 2>&5
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952 (exit $ac_status); }; }; then
3953 ac_cv_sizeof_int=`cat conftest.val`
3955 echo "$as_me: program exited with status $ac_status" >&5
3956 echo "$as_me: failed program was:" >&5
3957 sed 's/^/| /' conftest.$ac_ext >&5
3960 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
3961 See \`config.log' for more details." >&5
3962 echo "$as_me: error: cannot compute sizeof (int), 77
3963 See \`config.log' for more details." >&2;}
3964 { (exit 1); exit 1; }; }
3966 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3974 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3975 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3976 cat >>confdefs.h <<_ACEOF
3977 #define SIZEOF_INT $ac_cv_sizeof_int
3981 echo "$as_me:$LINENO: checking for long" >&5
3982 echo $ECHO_N "checking for long... $ECHO_C" >&6
3983 if test "${ac_cv_type_long+set}" = set; then
3984 echo $ECHO_N "(cached) $ECHO_C" >&6
3986 cat >conftest.$ac_ext <<_ACEOF
3989 cat confdefs.h >>conftest.$ac_ext
3990 cat >>conftest.$ac_ext <<_ACEOF
3991 /* end confdefs.h. */
3992 $ac_includes_default
4004 rm -f conftest.$ac_objext
4005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4006 (eval $ac_compile) 2>conftest.er1
4008 grep -v '^ *+' conftest.er1 >conftest.err
4010 cat conftest.err >&5
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); } &&
4013 { ac_try='test -z "$ac_c_werror_flag"
4014 || test ! -s conftest.err'
4015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); }; } &&
4020 { ac_try='test -s conftest.$ac_objext'
4021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); }; }; then
4028 echo "$as_me: failed program was:" >&5
4029 sed 's/^/| /' conftest.$ac_ext >&5
4033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4035 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4036 echo "${ECHO_T}$ac_cv_type_long" >&6
4038 echo "$as_me:$LINENO: checking size of long" >&5
4039 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4040 if test "${ac_cv_sizeof_long+set}" = set; then
4041 echo $ECHO_N "(cached) $ECHO_C" >&6
4043 if test "$ac_cv_type_long" = yes; then
4044 # The cast to unsigned long works around a bug in the HP C Compiler
4045 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4046 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4047 # This bug is HP SR number 8606223364.
4048 if test "$cross_compiling" = yes; then
4049 # Depending upon the size, compute the lo and hi bounds.
4050 cat >conftest.$ac_ext <<_ACEOF
4053 cat confdefs.h >>conftest.$ac_ext
4054 cat >>conftest.$ac_ext <<_ACEOF
4055 /* end confdefs.h. */
4056 $ac_includes_default
4060 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4067 rm -f conftest.$ac_objext
4068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4069 (eval $ac_compile) 2>conftest.er1
4071 grep -v '^ *+' conftest.er1 >conftest.err
4073 cat conftest.err >&5
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); } &&
4076 { ac_try='test -z "$ac_c_werror_flag"
4077 || test ! -s conftest.err'
4078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); }; } &&
4083 { ac_try='test -s conftest.$ac_objext'
4084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); }; }; then
4091 cat >conftest.$ac_ext <<_ACEOF
4094 cat confdefs.h >>conftest.$ac_ext
4095 cat >>conftest.$ac_ext <<_ACEOF
4096 /* end confdefs.h. */
4097 $ac_includes_default
4101 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4108 rm -f conftest.$ac_objext
4109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4110 (eval $ac_compile) 2>conftest.er1
4112 grep -v '^ *+' conftest.er1 >conftest.err
4114 cat conftest.err >&5
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); } &&
4117 { ac_try='test -z "$ac_c_werror_flag"
4118 || test ! -s conftest.err'
4119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); }; } &&
4124 { ac_try='test -s conftest.$ac_objext'
4125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); }; }; then
4130 ac_hi=$ac_mid; break
4132 echo "$as_me: failed program was:" >&5
4133 sed 's/^/| /' conftest.$ac_ext >&5
4135 ac_lo=`expr $ac_mid + 1`
4136 if test $ac_lo -le $ac_mid; then
4140 ac_mid=`expr 2 '*' $ac_mid + 1`
4142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4145 echo "$as_me: failed program was:" >&5
4146 sed 's/^/| /' conftest.$ac_ext >&5
4148 cat >conftest.$ac_ext <<_ACEOF
4151 cat confdefs.h >>conftest.$ac_ext
4152 cat >>conftest.$ac_ext <<_ACEOF
4153 /* end confdefs.h. */
4154 $ac_includes_default
4158 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4165 rm -f conftest.$ac_objext
4166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4167 (eval $ac_compile) 2>conftest.er1
4169 grep -v '^ *+' conftest.er1 >conftest.err
4171 cat conftest.err >&5
4172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); } &&
4174 { ac_try='test -z "$ac_c_werror_flag"
4175 || test ! -s conftest.err'
4176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); }; } &&
4181 { ac_try='test -s conftest.$ac_objext'
4182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); }; }; then
4189 cat >conftest.$ac_ext <<_ACEOF
4192 cat confdefs.h >>conftest.$ac_ext
4193 cat >>conftest.$ac_ext <<_ACEOF
4194 /* end confdefs.h. */
4195 $ac_includes_default
4199 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4206 rm -f conftest.$ac_objext
4207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4208 (eval $ac_compile) 2>conftest.er1
4210 grep -v '^ *+' conftest.er1 >conftest.err
4212 cat conftest.err >&5
4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214 (exit $ac_status); } &&
4215 { ac_try='test -z "$ac_c_werror_flag"
4216 || test ! -s conftest.err'
4217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); }; } &&
4222 { ac_try='test -s conftest.$ac_objext'
4223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); }; }; then
4228 ac_lo=$ac_mid; break
4230 echo "$as_me: failed program was:" >&5
4231 sed 's/^/| /' conftest.$ac_ext >&5
4233 ac_hi=`expr '(' $ac_mid ')' - 1`
4234 if test $ac_mid -le $ac_hi; then
4238 ac_mid=`expr 2 '*' $ac_mid`
4240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4243 echo "$as_me: failed program was:" >&5
4244 sed 's/^/| /' conftest.$ac_ext >&5
4248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4251 # Binary search between lo and hi bounds.
4252 while test "x$ac_lo" != "x$ac_hi"; do
4253 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4254 cat >conftest.$ac_ext <<_ACEOF
4257 cat confdefs.h >>conftest.$ac_ext
4258 cat >>conftest.$ac_ext <<_ACEOF
4259 /* end confdefs.h. */
4260 $ac_includes_default
4264 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4271 rm -f conftest.$ac_objext
4272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4273 (eval $ac_compile) 2>conftest.er1
4275 grep -v '^ *+' conftest.er1 >conftest.err
4277 cat conftest.err >&5
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); } &&
4280 { ac_try='test -z "$ac_c_werror_flag"
4281 || test ! -s conftest.err'
4282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); }; } &&
4287 { ac_try='test -s conftest.$ac_objext'
4288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); }; }; then
4295 echo "$as_me: failed program was:" >&5
4296 sed 's/^/| /' conftest.$ac_ext >&5
4298 ac_lo=`expr '(' $ac_mid ')' + 1`
4300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4303 ?*) ac_cv_sizeof_long=$ac_lo;;
4304 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4305 See \`config.log' for more details." >&5
4306 echo "$as_me: error: cannot compute sizeof (long), 77
4307 See \`config.log' for more details." >&2;}
4308 { (exit 1); exit 1; }; } ;;
4311 if test "$cross_compiling" = yes; then
4312 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4313 See \`config.log' for more details." >&5
4314 echo "$as_me: error: cannot run test program while cross compiling
4315 See \`config.log' for more details." >&2;}
4316 { (exit 1); exit 1; }; }
4318 cat >conftest.$ac_ext <<_ACEOF
4321 cat confdefs.h >>conftest.$ac_ext
4322 cat >>conftest.$ac_ext <<_ACEOF
4323 /* end confdefs.h. */
4324 $ac_includes_default
4325 long longval () { return (long) (sizeof (long)); }
4326 unsigned long ulongval () { return (long) (sizeof (long)); }
4333 FILE *f = fopen ("conftest.val", "w");
4336 if (((long) (sizeof (long))) < 0)
4338 long i = longval ();
4339 if (i != ((long) (sizeof (long))))
4341 fprintf (f, "%ld\n", i);
4345 unsigned long i = ulongval ();
4346 if (i != ((long) (sizeof (long))))
4348 fprintf (f, "%lu\n", i);
4350 exit (ferror (f) || fclose (f) != 0);
4356 rm -f conftest$ac_exeext
4357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4358 (eval $ac_link) 2>&5
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); }; }; then
4367 ac_cv_sizeof_long=`cat conftest.val`
4369 echo "$as_me: program exited with status $ac_status" >&5
4370 echo "$as_me: failed program was:" >&5
4371 sed 's/^/| /' conftest.$ac_ext >&5
4374 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4375 See \`config.log' for more details." >&5
4376 echo "$as_me: error: cannot compute sizeof (long), 77
4377 See \`config.log' for more details." >&2;}
4378 { (exit 1); exit 1; }; }
4380 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4388 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4389 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4390 cat >>confdefs.h <<_ACEOF
4391 #define SIZEOF_LONG $ac_cv_sizeof_long
4395 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4396 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4397 if test "${ac_cv_c_bigendian+set}" = set; then
4398 echo $ECHO_N "(cached) $ECHO_C" >&6
4400 # See if sys/param.h defines the BYTE_ORDER macro.
4401 cat >conftest.$ac_ext <<_ACEOF
4404 cat confdefs.h >>conftest.$ac_ext
4405 cat >>conftest.$ac_ext <<_ACEOF
4406 /* end confdefs.h. */
4407 #include <sys/types.h>
4408 #include <sys/param.h>
4413 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4421 rm -f conftest.$ac_objext
4422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4423 (eval $ac_compile) 2>conftest.er1
4425 grep -v '^ *+' conftest.er1 >conftest.err
4427 cat conftest.err >&5
4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); } &&
4430 { ac_try='test -z "$ac_c_werror_flag"
4431 || test ! -s conftest.err'
4432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); }; } &&
4437 { ac_try='test -s conftest.$ac_objext'
4438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); }; }; then
4443 # It does; now see whether it defined to BIG_ENDIAN or not.
4444 cat >conftest.$ac_ext <<_ACEOF
4447 cat confdefs.h >>conftest.$ac_ext
4448 cat >>conftest.$ac_ext <<_ACEOF
4449 /* end confdefs.h. */
4450 #include <sys/types.h>
4451 #include <sys/param.h>
4456 #if BYTE_ORDER != BIG_ENDIAN
4464 rm -f conftest.$ac_objext
4465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4466 (eval $ac_compile) 2>conftest.er1
4468 grep -v '^ *+' conftest.er1 >conftest.err
4470 cat conftest.err >&5
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); } &&
4473 { ac_try='test -z "$ac_c_werror_flag"
4474 || test ! -s conftest.err'
4475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); }; } &&
4480 { ac_try='test -s conftest.$ac_objext'
4481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); }; }; then
4486 ac_cv_c_bigendian=yes
4488 echo "$as_me: failed program was:" >&5
4489 sed 's/^/| /' conftest.$ac_ext >&5
4491 ac_cv_c_bigendian=no
4493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4495 echo "$as_me: failed program was:" >&5
4496 sed 's/^/| /' conftest.$ac_ext >&5
4498 # It does not; compile a test program.
4499 if test "$cross_compiling" = yes; then
4500 # try to guess the endianness by grepping values into an object file
4501 ac_cv_c_bigendian=unknown
4502 cat >conftest.$ac_ext <<_ACEOF
4505 cat confdefs.h >>conftest.$ac_ext
4506 cat >>conftest.$ac_ext <<_ACEOF
4507 /* end confdefs.h. */
4508 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4509 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4510 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4511 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4512 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4513 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4517 _ascii (); _ebcdic ();
4522 rm -f conftest.$ac_objext
4523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4524 (eval $ac_compile) 2>conftest.er1
4526 grep -v '^ *+' conftest.er1 >conftest.err
4528 cat conftest.err >&5
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); } &&
4531 { ac_try='test -z "$ac_c_werror_flag"
4532 || test ! -s conftest.err'
4533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); }; } &&
4538 { ac_try='test -s conftest.$ac_objext'
4539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); }; }; then
4544 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4545 ac_cv_c_bigendian=yes
4547 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4548 if test "$ac_cv_c_bigendian" = unknown; then
4549 ac_cv_c_bigendian=no
4551 # finding both strings is unlikely to happen, but who knows?
4552 ac_cv_c_bigendian=unknown
4556 echo "$as_me: failed program was:" >&5
4557 sed 's/^/| /' conftest.$ac_ext >&5
4560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4562 cat >conftest.$ac_ext <<_ACEOF
4565 cat confdefs.h >>conftest.$ac_ext
4566 cat >>conftest.$ac_ext <<_ACEOF
4567 /* end confdefs.h. */
4571 /* Are we little or big endian? From Harbison&Steele. */
4575 char c[sizeof (long)];
4578 exit (u.c[sizeof (long) - 1] == 1);
4581 rm -f conftest$ac_exeext
4582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4583 (eval $ac_link) 2>&5
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); }; }; then
4592 ac_cv_c_bigendian=no
4594 echo "$as_me: program exited with status $ac_status" >&5
4595 echo "$as_me: failed program was:" >&5
4596 sed 's/^/| /' conftest.$ac_ext >&5
4599 ac_cv_c_bigendian=yes
4601 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4606 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4607 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4608 case $ac_cv_c_bigendian in
4611 cat >>confdefs.h <<\_ACEOF
4612 #define WORDS_BIGENDIAN 1
4618 { { echo "$as_me:$LINENO: error: unknown endianness
4619 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4620 echo "$as_me: error: unknown endianness
4621 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4622 { (exit 1); exit 1; }; } ;;
4629 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4630 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4631 if test "${ac_cv_type_signal+set}" = set; then
4632 echo $ECHO_N "(cached) $ECHO_C" >&6
4634 cat >conftest.$ac_ext <<_ACEOF
4637 cat confdefs.h >>conftest.$ac_ext
4638 cat >>conftest.$ac_ext <<_ACEOF
4639 /* end confdefs.h. */
4640 #include <sys/types.h>
4646 extern "C" void (*signal (int, void (*)(int)))(int);
4648 void (*signal ()) ();
4659 rm -f conftest.$ac_objext
4660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4661 (eval $ac_compile) 2>conftest.er1
4663 grep -v '^ *+' conftest.er1 >conftest.err
4665 cat conftest.err >&5
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); } &&
4668 { ac_try='test -z "$ac_c_werror_flag"
4669 || test ! -s conftest.err'
4670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); }; } &&
4675 { ac_try='test -s conftest.$ac_objext'
4676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); }; }; then
4681 ac_cv_type_signal=void
4683 echo "$as_me: failed program was:" >&5
4684 sed 's/^/| /' conftest.$ac_ext >&5
4686 ac_cv_type_signal=int
4688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4690 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4691 echo "${ECHO_T}$ac_cv_type_signal" >&6
4693 cat >>confdefs.h <<_ACEOF
4694 #define RETSIGTYPE $ac_cv_type_signal
4699 for ac_func in vprintf
4701 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4702 echo "$as_me:$LINENO: checking for $ac_func" >&5
4703 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4704 if eval "test \"\${$as_ac_var+set}\" = set"; then
4705 echo $ECHO_N "(cached) $ECHO_C" >&6
4707 cat >conftest.$ac_ext <<_ACEOF
4710 cat confdefs.h >>conftest.$ac_ext
4711 cat >>conftest.$ac_ext <<_ACEOF
4712 /* end confdefs.h. */
4713 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4715 #define $ac_func innocuous_$ac_func
4717 /* System header to define __stub macros and hopefully few prototypes,
4718 which can conflict with char $ac_func (); below.
4719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4720 <limits.h> exists even on freestanding compilers. */
4723 # include <limits.h>
4725 # include <assert.h>
4730 /* Override any gcc2 internal prototype to avoid an error. */
4735 /* We use char because int might match the return type of a gcc2
4736 builtin and then its argument prototype would still apply. */
4738 /* The GNU C library defines this for functions which it implements
4739 to always fail with ENOSYS. Some functions are actually named
4740 something starting with __ and the normal name is an alias. */
4741 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4744 char (*f) () = $ac_func;
4753 return f != $ac_func;
4758 rm -f conftest.$ac_objext conftest$ac_exeext
4759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4760 (eval $ac_link) 2>conftest.er1
4762 grep -v '^ *+' conftest.er1 >conftest.err
4764 cat conftest.err >&5
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); } &&
4767 { ac_try='test -z "$ac_c_werror_flag"
4768 || test ! -s conftest.err'
4769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); }; } &&
4774 { ac_try='test -s conftest$ac_exeext'
4775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); }; }; then
4780 eval "$as_ac_var=yes"
4782 echo "$as_me: failed program was:" >&5
4783 sed 's/^/| /' conftest.$ac_ext >&5
4785 eval "$as_ac_var=no"
4787 rm -f conftest.err conftest.$ac_objext \
4788 conftest$ac_exeext conftest.$ac_ext
4790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4791 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4792 if test `eval echo '${'$as_ac_var'}'` = yes; then
4793 cat >>confdefs.h <<_ACEOF
4794 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4797 echo "$as_me:$LINENO: checking for _doprnt" >&5
4798 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
4799 if test "${ac_cv_func__doprnt+set}" = set; then
4800 echo $ECHO_N "(cached) $ECHO_C" >&6
4802 cat >conftest.$ac_ext <<_ACEOF
4805 cat confdefs.h >>conftest.$ac_ext
4806 cat >>conftest.$ac_ext <<_ACEOF
4807 /* end confdefs.h. */
4808 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
4809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4810 #define _doprnt innocuous__doprnt
4812 /* System header to define __stub macros and hopefully few prototypes,
4813 which can conflict with char _doprnt (); below.
4814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4815 <limits.h> exists even on freestanding compilers. */
4818 # include <limits.h>
4820 # include <assert.h>
4825 /* Override any gcc2 internal prototype to avoid an error. */
4830 /* We use char because int might match the return type of a gcc2
4831 builtin and then its argument prototype would still apply. */
4833 /* The GNU C library defines this for functions which it implements
4834 to always fail with ENOSYS. Some functions are actually named
4835 something starting with __ and the normal name is an alias. */
4836 #if defined (__stub__doprnt) || defined (__stub____doprnt)
4839 char (*f) () = _doprnt;
4848 return f != _doprnt;
4853 rm -f conftest.$ac_objext conftest$ac_exeext
4854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4855 (eval $ac_link) 2>conftest.er1
4857 grep -v '^ *+' conftest.er1 >conftest.err
4859 cat conftest.err >&5
4860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861 (exit $ac_status); } &&
4862 { ac_try='test -z "$ac_c_werror_flag"
4863 || test ! -s conftest.err'
4864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); }; } &&
4869 { ac_try='test -s conftest$ac_exeext'
4870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); }; }; then
4875 ac_cv_func__doprnt=yes
4877 echo "$as_me: failed program was:" >&5
4878 sed 's/^/| /' conftest.$ac_ext >&5
4880 ac_cv_func__doprnt=no
4882 rm -f conftest.err conftest.$ac_objext \
4883 conftest$ac_exeext conftest.$ac_ext
4885 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
4886 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
4887 if test $ac_cv_func__doprnt = yes; then
4889 cat >>confdefs.h <<\_ACEOF
4890 #define HAVE_DOPRNT 1
4901 ac_config_files="$ac_config_files Makefile"
4902 cat >confcache <<\_ACEOF
4903 # This file is a shell script that caches the results of configure
4904 # tests run on this system so they can be shared between configure
4905 # scripts and configure runs, see configure's option --config-cache.
4906 # It is not useful on other systems. If it contains results you don't
4907 # want to keep, you may remove or edit it.
4909 # config.status only pays attention to the cache file if you give it
4910 # the --recheck option to rerun configure.
4912 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4913 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4918 # The following way of writing the cache mishandles newlines in values,
4919 # but we know of no workaround that is simple, portable, and efficient.
4920 # So, don't put newlines in cache variables' values.
4921 # Ultrix sh set writes to stderr and can't be redirected directly,
4922 # and sets the high bit in the cache file unless we assign to the vars.
4925 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4927 # `set' does not quote correctly, so add quotes (double-quote
4928 # substitution turns \\\\ into \\, and sed turns \\ into \).
4931 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4934 # `set' quotes correctly as required by POSIX, so do not add quotes.
4936 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4943 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4945 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4947 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4948 if test -w $cache_file; then
4949 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4950 cat confcache >$cache_file
4952 echo "not updating unwritable cache $cache_file"
4957 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4958 # Let make expand exec_prefix.
4959 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4961 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4962 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4963 # trailing colons and then remove the whole line if VPATH becomes empty
4964 # (actually we leave an empty line to preserve line numbers).
4965 if test "x$srcdir" = x.; then
4966 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4967 s/:*\$(srcdir):*/:/;
4968 s/:*\${srcdir}:*/:/;
4970 s/^\([^=]*=[ ]*\):*/\1/;
4976 DEFS=-DHAVE_CONFIG_H
4980 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4981 # 1. Remove the extension, and $U if already installed.
4982 ac_i=`echo "$ac_i" |
4983 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4985 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4986 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4990 LTLIBOBJS=$ac_ltlibobjs
4994 : ${CONFIG_STATUS=./config.status}
4995 ac_clean_files_save=$ac_clean_files
4996 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4997 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4998 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4999 cat >$CONFIG_STATUS <<_ACEOF
5001 # Generated by $as_me.
5002 # Run this file to recreate the current configuration.
5003 # Compiler output produced by configure, useful for debugging
5004 # configure, is in config.log if it exists.
5009 SHELL=\${CONFIG_SHELL-$SHELL}
5012 cat >>$CONFIG_STATUS <<\_ACEOF
5013 ## --------------------- ##
5014 ## M4sh Initialization. ##
5015 ## --------------------- ##
5017 # Be Bourne compatible
5018 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5021 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5022 # is contrary to our usage. Disable this feature.
5023 alias -g '${1+"$@"}'='"$@"'
5024 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5027 DUALCASE=1; export DUALCASE # for MKS sh
5029 # Support unset when possible.
5030 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5037 # Work around bugs in pre-3.0 UWIN ksh.
5038 $as_unset ENV MAIL MAILPATH
5045 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5046 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5047 LC_TELEPHONE LC_TIME
5049 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5050 eval $as_var=C; export $as_var
5056 # Required to use basename.
5057 if expr a : '\(a\)' >/dev/null 2>&1; then
5063 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5064 as_basename=basename
5070 # Name of the executable.
5071 as_me=`$as_basename "$0" ||
5072 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5073 X"$0" : 'X\(//\)$' \| \
5074 X"$0" : 'X\(/\)$' \| \
5075 . : '\(.\)' 2>/dev/null ||
5077 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5078 /^X\/\(\/\/\)$/{ s//\1/; q; }
5079 /^X\/\(\/\).*/{ s//\1/; q; }
5083 # PATH needs CR, and LINENO needs CR and PATH.
5084 # Avoid depending upon Character Ranges.
5085 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5086 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5087 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5088 as_cr_digits='0123456789'
5089 as_cr_alnum=$as_cr_Letters$as_cr_digits
5091 # The user is always right.
5092 if test "${PATH_SEPARATOR+set}" != set; then
5093 echo "#! /bin/sh" >conf$$.sh
5094 echo "exit 0" >>conf$$.sh
5096 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5107 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5108 test "x$as_lineno_1" != "x$as_lineno_2" &&
5109 test "x$as_lineno_3" = "x$as_lineno_2" || {
5110 # Find who we are. Look in the path if we contain no path at all
5113 *[\\/]* ) as_myself=$0 ;;
5114 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5118 test -z "$as_dir" && as_dir=.
5119 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5124 # We did not find ourselves, most probably we were run as `sh COMMAND'
5125 # in which case we are not to be found in the path.
5126 if test "x$as_myself" = x; then
5129 if test ! -f "$as_myself"; then
5130 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5131 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5132 { (exit 1); exit 1; }; }
5134 case $CONFIG_SHELL in
5136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5140 test -z "$as_dir" && as_dir=.
5141 for as_base in sh bash ksh sh5; do
5144 if ("$as_dir/$as_base" -c '
5147 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5148 test "x$as_lineno_1" != "x$as_lineno_2" &&
5149 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5150 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5151 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5152 CONFIG_SHELL=$as_dir/$as_base
5154 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5162 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5163 # uniformly replaced by the line number. The first 'sed' inserts a
5164 # line-number line before each line; the second 'sed' does the real
5165 # work. The second script uses 'N' to pair each line-number line
5166 # with the numbered line, and appends trailing '-' during
5167 # substitution so that $LINENO is not a special case at line end.
5168 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5169 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5170 sed '=' <$as_myself |
5175 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5178 s,^['$as_cr_digits']*\n,,
5180 chmod +x $as_me.lineno ||
5181 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5182 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5183 { (exit 1); exit 1; }; }
5185 # Don't try to exec as it changes $[0], causing all sort of problems
5186 # (the dirname of $[0] is not the place where we might find the
5187 # original and so on. Autoconf is especially sensible to this).
5189 # Exit status is that of the last command.
5194 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5195 *c*,-n*) ECHO_N= ECHO_C='
5197 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5198 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5201 if expr a : '\(a\)' >/dev/null 2>&1; then
5207 rm -f conf$$ conf$$.exe conf$$.file
5209 if ln -s conf$$.file conf$$ 2>/dev/null; then
5210 # We could just check for DJGPP; but this test a) works b) is more generic
5211 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5212 if test -f conf$$.exe; then
5213 # Don't use ln at all; we don't have any links
5218 elif ln conf$$.file conf$$ 2>/dev/null; then
5223 rm -f conf$$ conf$$.exe conf$$.file
5225 if mkdir -p . 2>/dev/null; then
5228 test -d ./-p && rmdir ./-p
5232 as_executable_p="test -f"
5234 # Sed expression to map a string onto a valid CPP name.
5235 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5237 # Sed expression to map a string onto a valid variable name.
5238 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5242 # We need space, tab and new line, in precisely that order.
5252 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5253 # report actual input values of CONFIG_FILES etc. instead of their
5254 # values after options handling. Logging --version etc. is OK.
5258 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5259 ## Running $as_me. ##
5264 This file was extended by $as_me, which was
5265 generated by GNU Autoconf 2.59. Invocation command line was
5267 CONFIG_FILES = $CONFIG_FILES
5268 CONFIG_HEADERS = $CONFIG_HEADERS
5269 CONFIG_LINKS = $CONFIG_LINKS
5270 CONFIG_COMMANDS = $CONFIG_COMMANDS
5274 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5278 # Files that config.status was made for.
5279 if test -n "$ac_config_files"; then
5280 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5283 if test -n "$ac_config_headers"; then
5284 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5287 if test -n "$ac_config_links"; then
5288 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5291 if test -n "$ac_config_commands"; then
5292 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5295 cat >>$CONFIG_STATUS <<\_ACEOF
5298 \`$as_me' instantiates files from templates according to the
5299 current configuration.
5301 Usage: $0 [OPTIONS] [FILE]...
5303 -h, --help print this help, then exit
5304 -V, --version print version number, then exit
5305 -q, --quiet do not print progress messages
5306 -d, --debug don't remove temporary files
5307 --recheck update $as_me by reconfiguring in the same conditions
5308 --file=FILE[:TEMPLATE]
5309 instantiate the configuration file FILE
5310 --header=FILE[:TEMPLATE]
5311 instantiate the configuration header FILE
5313 Configuration files:
5316 Configuration headers:
5319 Report bugs to <bug-autoconf@gnu.org>."
5322 cat >>$CONFIG_STATUS <<_ACEOF
5325 configured by $0, generated by GNU Autoconf 2.59,
5326 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5328 Copyright (C) 2003 Free Software Foundation, Inc.
5329 This config.status script is free software; the Free Software Foundation
5330 gives unlimited permission to copy, distribute and modify it."
5335 cat >>$CONFIG_STATUS <<\_ACEOF
5336 # If no file are specified by the user, then we need to provide default
5337 # value. By we need to know if files were specified by the user.
5343 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5344 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5352 *) # This is not an option, so the user has probably given explicit
5355 ac_need_defaults=false;;
5359 # Handling of the options.
5361 cat >>$CONFIG_STATUS <<\_ACEOF
5362 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5364 --version | --vers* | -V )
5365 echo "$ac_cs_version"; exit 0 ;;
5367 # Conflict between --help and --header
5368 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5369 Try \`$0 --help' for more information." >&5
5370 echo "$as_me: error: ambiguous option: $1
5371 Try \`$0 --help' for more information." >&2;}
5372 { (exit 1); exit 1; }; };;
5373 --help | --hel | -h )
5374 echo "$ac_cs_usage"; exit 0 ;;
5375 --debug | --d* | -d )
5377 --file | --fil | --fi | --f )
5379 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5380 ac_need_defaults=false;;
5381 --header | --heade | --head | --hea )
5383 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5384 ac_need_defaults=false;;
5385 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5386 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5390 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5391 Try \`$0 --help' for more information." >&5
5392 echo "$as_me: error: unrecognized option: $1
5393 Try \`$0 --help' for more information." >&2;}
5394 { (exit 1); exit 1; }; } ;;
5396 *) ac_config_targets="$ac_config_targets $1" ;;
5402 ac_configure_extra_args=
5404 if $ac_cs_silent; then
5406 ac_configure_extra_args="$ac_configure_extra_args --silent"
5410 cat >>$CONFIG_STATUS <<_ACEOF
5411 if \$ac_cs_recheck; then
5412 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5413 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5422 cat >>$CONFIG_STATUS <<\_ACEOF
5423 for ac_config_target in $ac_config_targets
5425 case "$ac_config_target" in
5426 # Handling of arguments.
5427 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5428 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5429 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5430 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5431 { (exit 1); exit 1; }; };;
5435 # If the user did not use the arguments to specify the items to instantiate,
5436 # then the envvar interface is used. Set only those that are not.
5437 # We use the long form for the default assignment because of an extremely
5438 # bizarre bug on SunOS 4.1.3.
5439 if $ac_need_defaults; then
5440 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5441 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5444 # Have a temporary directory for convenience. Make it in the build tree
5445 # simply because there is no reason to put it here, and in addition,
5446 # creating and moving files from /tmp can sometimes cause problems.
5447 # Create a temporary directory, and hook for its removal unless debugging.
5450 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5451 trap '{ (exit 1); exit 1; }' 1 2 13 15
5454 # Create a (secure) tmp directory for tmp files.
5457 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5458 test -n "$tmp" && test -d "$tmp"
5461 tmp=./confstat$$-$RANDOM
5462 (umask 077 && mkdir $tmp)
5465 echo "$me: cannot create a temporary directory in ." >&2
5466 { (exit 1); exit 1; }
5471 cat >>$CONFIG_STATUS <<_ACEOF
5474 # CONFIG_FILES section.
5477 # No need to generate the scripts if there are no CONFIG_FILES.
5478 # This happens for instance when ./config.status config.h
5479 if test -n "\$CONFIG_FILES"; then
5480 # Protect against being on the right side of a sed subst in config.status.
5481 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5482 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5483 s,@SHELL@,$SHELL,;t t
5484 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5485 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5486 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5487 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5488 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5489 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5490 s,@exec_prefix@,$exec_prefix,;t t
5491 s,@prefix@,$prefix,;t t
5492 s,@program_transform_name@,$program_transform_name,;t t
5493 s,@bindir@,$bindir,;t t
5494 s,@sbindir@,$sbindir,;t t
5495 s,@libexecdir@,$libexecdir,;t t
5496 s,@datadir@,$datadir,;t t
5497 s,@sysconfdir@,$sysconfdir,;t t
5498 s,@sharedstatedir@,$sharedstatedir,;t t
5499 s,@localstatedir@,$localstatedir,;t t
5500 s,@libdir@,$libdir,;t t
5501 s,@includedir@,$includedir,;t t
5502 s,@oldincludedir@,$oldincludedir,;t t
5503 s,@infodir@,$infodir,;t t
5504 s,@mandir@,$mandir,;t t
5505 s,@build_alias@,$build_alias,;t t
5506 s,@host_alias@,$host_alias,;t t
5507 s,@target_alias@,$target_alias,;t t
5509 s,@ECHO_C@,$ECHO_C,;t t
5510 s,@ECHO_N@,$ECHO_N,;t t
5511 s,@ECHO_T@,$ECHO_T,;t t
5513 s,@build@,$build,;t t
5514 s,@build_cpu@,$build_cpu,;t t
5515 s,@build_vendor@,$build_vendor,;t t
5516 s,@build_os@,$build_os,;t t
5518 s,@host_cpu@,$host_cpu,;t t
5519 s,@host_vendor@,$host_vendor,;t t
5520 s,@host_os@,$host_os,;t t
5521 s,@target@,$target,;t t
5522 s,@target_cpu@,$target_cpu,;t t
5523 s,@target_vendor@,$target_vendor,;t t
5524 s,@target_os@,$target_os,;t t
5525 s,@TARGET@,$TARGET,;t t
5528 s,@CFLAGS@,$CFLAGS,;t t
5529 s,@LDFLAGS@,$LDFLAGS,;t t
5530 s,@CPPFLAGS@,$CPPFLAGS,;t t
5531 s,@ac_ct_CC@,$ac_ct_CC,;t t
5532 s,@EXEEXT@,$EXEEXT,;t t
5533 s,@OBJEXT@,$OBJEXT,;t t
5534 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5535 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5536 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5537 s,@USE_OBJCOPY@,$USE_OBJCOPY,;t t
5539 s,@EGREP@,$EGREP,;t t
5540 s,@LIBOBJS@,$LIBOBJS,;t t
5541 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5546 cat >>$CONFIG_STATUS <<\_ACEOF
5547 # Split the substitutions into bite-sized pieces for seds with
5548 # small command number limits, like on Digital OSF/1 and HP-UX.
5550 ac_sed_frag=1 # Number of current file.
5551 ac_beg=1 # First line for current file.
5552 ac_end=$ac_max_sed_lines # Line after last line for current file.
5555 while $ac_more_lines; do
5556 if test $ac_beg -gt 1; then
5557 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5559 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5561 if test ! -s $tmp/subs.frag; then
5564 # The purpose of the label and of the branching condition is to
5565 # speed up the sed processing (if there are no `@' at all, there
5566 # is no need to browse any of the substitutions).
5567 # These are the two extra sed commands mentioned above.
5569 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5570 if test -z "$ac_sed_cmds"; then
5571 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5573 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5575 ac_sed_frag=`expr $ac_sed_frag + 1`
5577 ac_end=`expr $ac_end + $ac_max_sed_lines`
5580 if test -z "$ac_sed_cmds"; then
5583 fi # test -n "$CONFIG_FILES"
5586 cat >>$CONFIG_STATUS <<\_ACEOF
5587 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5588 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5590 - | *:- | *:-:* ) # input from stdin
5592 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5593 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5594 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5595 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5596 * ) ac_file_in=$ac_file.in ;;
5599 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5600 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5601 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5602 X"$ac_file" : 'X\(//\)[^/]' \| \
5603 X"$ac_file" : 'X\(//\)$' \| \
5604 X"$ac_file" : 'X\(/\)' \| \
5605 . : '\(.\)' 2>/dev/null ||
5607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5608 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5609 /^X\(\/\/\)$/{ s//\1/; q; }
5610 /^X\(\/\).*/{ s//\1/; q; }
5612 { if $as_mkdir_p; then
5617 while test ! -d "$as_dir"; do
5618 as_dirs="$as_dir $as_dirs"
5619 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5620 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5621 X"$as_dir" : 'X\(//\)[^/]' \| \
5622 X"$as_dir" : 'X\(//\)$' \| \
5623 X"$as_dir" : 'X\(/\)' \| \
5624 . : '\(.\)' 2>/dev/null ||
5626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5627 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5628 /^X\(\/\/\)$/{ s//\1/; q; }
5629 /^X\(\/\).*/{ s//\1/; q; }
5632 test ! -n "$as_dirs" || mkdir $as_dirs
5633 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5634 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5635 { (exit 1); exit 1; }; }; }
5639 if test "$ac_dir" != .; then
5640 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5641 # A "../" for each directory in $ac_dir_suffix.
5642 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5644 ac_dir_suffix= ac_top_builddir=
5648 .) # No --srcdir option. We are building in place.
5650 if test -z "$ac_top_builddir"; then
5653 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5655 [\\/]* | ?:[\\/]* ) # Absolute path.
5656 ac_srcdir=$srcdir$ac_dir_suffix;
5657 ac_top_srcdir=$srcdir ;;
5659 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5660 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5663 # Do not use `cd foo && pwd` to compute absolute paths, because
5664 # the directories may not exist.
5666 .) ac_abs_builddir="$ac_dir";;
5669 .) ac_abs_builddir=`pwd`;;
5670 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5671 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5674 case $ac_abs_builddir in
5675 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5677 case ${ac_top_builddir}. in
5678 .) ac_abs_top_builddir=$ac_abs_builddir;;
5679 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5680 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5683 case $ac_abs_builddir in
5684 .) ac_abs_srcdir=$ac_srcdir;;
5687 .) ac_abs_srcdir=$ac_abs_builddir;;
5688 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5689 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5692 case $ac_abs_builddir in
5693 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5695 case $ac_top_srcdir in
5696 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5697 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5698 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5704 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5705 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5708 if test x"$ac_file" != x-; then
5709 { echo "$as_me:$LINENO: creating $ac_file" >&5
5710 echo "$as_me: creating $ac_file" >&6;}
5713 # Let's still pretend it is `configure' which instantiates (i.e., don't
5714 # use $as_me), people would be surprised to read:
5715 # /* config.h. Generated by config.status. */
5716 if test x"$ac_file" = x-; then
5719 configure_input="$ac_file. "
5721 configure_input=$configure_input"Generated from `echo $ac_file_in |
5722 sed 's,.*/,,'` by configure."
5724 # First look for the input files in the build tree, otherwise in the
5726 ac_file_inputs=`IFS=:
5727 for f in $ac_file_in; do
5729 -) echo $tmp/stdin ;;
5731 # Absolute (can't be DOS-style, as IFS=:)
5732 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5733 echo "$as_me: error: cannot find input file: $f" >&2;}
5734 { (exit 1); exit 1; }; }
5737 if test -f "$f"; then
5740 elif test -f "$srcdir/$f"; then
5745 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5746 echo "$as_me: error: cannot find input file: $f" >&2;}
5747 { (exit 1); exit 1; }; }
5750 done` || { (exit 1); exit 1; }
5752 cat >>$CONFIG_STATUS <<_ACEOF
5756 cat >>$CONFIG_STATUS <<\_ACEOF
5758 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5759 s,@configure_input@,$configure_input,;t t
5760 s,@srcdir@,$ac_srcdir,;t t
5761 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5762 s,@top_srcdir@,$ac_top_srcdir,;t t
5763 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5764 s,@builddir@,$ac_builddir,;t t
5765 s,@abs_builddir@,$ac_abs_builddir,;t t
5766 s,@top_builddir@,$ac_top_builddir,;t t
5767 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5768 s,@INSTALL@,$ac_INSTALL,;t t
5769 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5771 if test x"$ac_file" != x-; then
5772 mv $tmp/out $ac_file
5780 cat >>$CONFIG_STATUS <<\_ACEOF
5783 # CONFIG_HEADER section.
5786 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5787 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5789 # ac_d sets the value in "#define NAME VALUE" lines.
5790 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5791 ac_dB='[ ].*$,\1#\2'
5794 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5795 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5796 ac_uB='$,\1#\2define\3'
5800 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5801 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5803 - | *:- | *:-:* ) # input from stdin
5805 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5806 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5807 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5808 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5809 * ) ac_file_in=$ac_file.in ;;
5812 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5813 echo "$as_me: creating $ac_file" >&6;}
5815 # First look for the input files in the build tree, otherwise in the
5817 ac_file_inputs=`IFS=:
5818 for f in $ac_file_in; do
5820 -) echo $tmp/stdin ;;
5822 # Absolute (can't be DOS-style, as IFS=:)
5823 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5824 echo "$as_me: error: cannot find input file: $f" >&2;}
5825 { (exit 1); exit 1; }; }
5826 # Do quote $f, to prevent DOS paths from being IFS'd.
5829 if test -f "$f"; then
5832 elif test -f "$srcdir/$f"; then
5837 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5838 echo "$as_me: error: cannot find input file: $f" >&2;}
5839 { (exit 1); exit 1; }; }
5842 done` || { (exit 1); exit 1; }
5843 # Remove the trailing spaces.
5844 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5848 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5849 # `conftest.undefs', that substitutes the proper values into
5850 # config.h.in to produce config.h. The first handles `#define'
5851 # templates, and the second `#undef' templates.
5852 # And first: Protect against being on the right side of a sed subst in
5853 # config.status. Protect against being in an unquoted here document
5855 rm -f conftest.defines conftest.undefs
5856 # Using a here document instead of a string reduces the quoting nightmare.
5857 # Putting comments in sed scripts is not portable.
5859 # `end' is used to avoid that the second main sed command (meant for
5860 # 0-ary CPP macros) applies to n-ary macro definitions.
5861 # See the Autoconf documentation for `clear'.
5862 cat >confdef2sed.sed <<\_ACEOF
5867 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5869 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5872 # If some macros were called several times there might be several times
5873 # the same #defines, which is useless. Nevertheless, we may not want to
5874 # sort them, since we want the *last* AC-DEFINE to be honored.
5875 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5876 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5877 rm -f confdef2sed.sed
5879 # This sed command replaces #undef with comments. This is necessary, for
5880 # example, in the case of _POSIX_SOURCE, which is predefined and required
5881 # on some systems where configure will not decide to define it.
5882 cat >>conftest.undefs <<\_ACEOF
5883 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5886 # Break up conftest.defines because some shells have a limit on the size
5887 # of here documents, and old seds have small limits too (100 cmds).
5888 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5889 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5890 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5891 echo ' :' >>$CONFIG_STATUS
5893 while grep . conftest.defines >/dev/null
5895 # Write a limited-size here document to $tmp/defines.sed.
5896 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5897 # Speed up: don't consider the non `#define' lines.
5898 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5899 # Work around the forget-to-reset-the-flag bug.
5900 echo 't clr' >>$CONFIG_STATUS
5901 echo ': clr' >>$CONFIG_STATUS
5902 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5904 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5908 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5909 rm -f conftest.defines
5910 mv conftest.tail conftest.defines
5912 rm -f conftest.defines
5913 echo ' fi # grep' >>$CONFIG_STATUS
5914 echo >>$CONFIG_STATUS
5916 # Break up conftest.undefs because some shells have a limit on the size
5917 # of here documents, and old seds have small limits too (100 cmds).
5918 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5920 while grep . conftest.undefs >/dev/null
5922 # Write a limited-size here document to $tmp/undefs.sed.
5923 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5924 # Speed up: don't consider the non `#undef'
5925 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5926 # Work around the forget-to-reset-the-flag bug.
5927 echo 't clr' >>$CONFIG_STATUS
5928 echo ': clr' >>$CONFIG_STATUS
5929 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5931 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5935 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5936 rm -f conftest.undefs
5937 mv conftest.tail conftest.undefs
5939 rm -f conftest.undefs
5941 cat >>$CONFIG_STATUS <<\_ACEOF
5942 # Let's still pretend it is `configure' which instantiates (i.e., don't
5943 # use $as_me), people would be surprised to read:
5944 # /* config.h. Generated by config.status. */
5945 if test x"$ac_file" = x-; then
5946 echo "/* Generated by configure. */" >$tmp/config.h
5948 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5950 cat $tmp/in >>$tmp/config.h
5952 if test x"$ac_file" != x-; then
5953 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
5954 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5955 echo "$as_me: $ac_file is unchanged" >&6;}
5957 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5958 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5959 X"$ac_file" : 'X\(//\)[^/]' \| \
5960 X"$ac_file" : 'X\(//\)$' \| \
5961 X"$ac_file" : 'X\(/\)' \| \
5962 . : '\(.\)' 2>/dev/null ||
5964 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5965 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5966 /^X\(\/\/\)$/{ s//\1/; q; }
5967 /^X\(\/\).*/{ s//\1/; q; }
5969 { if $as_mkdir_p; then
5974 while test ! -d "$as_dir"; do
5975 as_dirs="$as_dir $as_dirs"
5976 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5977 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5978 X"$as_dir" : 'X\(//\)[^/]' \| \
5979 X"$as_dir" : 'X\(//\)$' \| \
5980 X"$as_dir" : 'X\(/\)' \| \
5981 . : '\(.\)' 2>/dev/null ||
5983 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5984 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5985 /^X\(\/\/\)$/{ s//\1/; q; }
5986 /^X\(\/\).*/{ s//\1/; q; }
5989 test ! -n "$as_dirs" || mkdir $as_dirs
5990 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5991 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5992 { (exit 1); exit 1; }; }; }
5995 mv $tmp/config.h $ac_file
6004 cat >>$CONFIG_STATUS <<\_ACEOF
6006 { (exit 0); exit 0; }
6008 chmod +x $CONFIG_STATUS
6009 ac_clean_files=$ac_clean_files_save
6012 # configure is writing to config.log, and then calls config.status.
6013 # config.status does its own redirection, appending to config.log.
6014 # Unfortunately, on DOS this fails, as config.log is still kept open
6015 # by configure, so config.status won't be able to write to it; its
6016 # output is simply discarded. So we exec the FD to /dev/null,
6017 # effectively closing config.log, so it can be properly (re)opened and
6018 # appended to by config.status. When coming back to configure, we
6019 # need to make the FD available again.
6020 if test "$no_create" != yes; then
6022 ac_config_status_args=
6023 test "$silent" = yes &&
6024 ac_config_status_args="$ac_config_status_args --quiet"
6026 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6028 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6029 # would make configure fail if this is the last instruction.
6030 $ac_cs_success || { (exit 1); exit 1; }