sync master with lastest vba changes
[ooovba.git] / dmake / configure
blobf8a1bd8229143dbee566f89a34a6ce60ef9ab2a1
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for dmake 4.12.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560 # Initializations.
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME='dmake'
574 PACKAGE_TARNAME='dmake'
575 PACKAGE_VERSION='4.12'
576 PACKAGE_STRING='dmake 4.12'
577 PACKAGE_BUGREPORT=''
579 ac_unique_file="man/dmake.tf"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
616 ac_header_list=
617 ac_subst_vars='SHELL
618 PATH_SEPARATOR
619 PACKAGE_NAME
620 PACKAGE_TARNAME
621 PACKAGE_VERSION
622 PACKAGE_STRING
623 PACKAGE_BUGREPORT
624 exec_prefix
625 prefix
626 program_transform_name
627 bindir
628 sbindir
629 libexecdir
630 datarootdir
631 datadir
632 sysconfdir
633 sharedstatedir
634 localstatedir
635 includedir
636 oldincludedir
637 docdir
638 infodir
639 htmldir
640 dvidir
641 pdfdir
642 psdir
643 libdir
644 localedir
645 mandir
646 DEFS
647 ECHO_C
648 ECHO_N
649 ECHO_T
650 LIBS
651 build_alias
652 host_alias
653 target_alias
654 build
655 build_cpu
656 build_vendor
657 build_os
658 INSTALL_PROGRAM
659 INSTALL_SCRIPT
660 INSTALL_DATA
661 CYGPATH_W
662 PACKAGE
663 VERSION
664 ACLOCAL
665 AUTOCONF
666 AUTOMAKE
667 AUTOHEADER
668 MAKEINFO
669 install_sh
670 STRIP
671 INSTALL_STRIP_PROGRAM
672 mkdir_p
674 SET_MAKE
675 am__leading_dot
676 AMTAR
677 am__tar
678 am__untar
679 MAINTAINER_MODE_TRUE
680 MAINTAINER_MODE_FALSE
681 MAINT
683 CFLAGS
684 LDFLAGS
685 CPPFLAGS
686 ac_ct_CC
687 EXEEXT
688 OBJEXT
689 DEPDIR
690 am__include
691 am__quote
692 AMDEP_TRUE
693 AMDEP_FALSE
694 AMDEPBACKSLASH
695 CCDEPMODE
696 am__fastdepCC_TRUE
697 am__fastdepCC_FALSE
699 LN_S
700 RANLIB
701 OSTYPEUNIX_TRUE
702 OSTYPEUNIX_FALSE
703 OSTYPEWIN32_TRUE
704 OSTYPEWIN32_FALSE
705 OS_TYPE
706 OS_VERSION
707 DBUG_TRUE
708 DBUG_FALSE
709 DMAKEROOT_H_LINE1
710 GREP
711 EGREP
712 LIBOBJS
713 LTLIBOBJS'
714 ac_subst_files=''
715 ac_precious_vars='build_alias
716 host_alias
717 target_alias
719 CFLAGS
720 LDFLAGS
721 LIBS
722 CPPFLAGS
723 CPP'
726 # Initialize some variables set by options.
727 ac_init_help=
728 ac_init_version=false
729 # The variables have the same names as the options, with
730 # dashes changed to underlines.
731 cache_file=/dev/null
732 exec_prefix=NONE
733 no_create=
734 no_recursion=
735 prefix=NONE
736 program_prefix=NONE
737 program_suffix=NONE
738 program_transform_name=s,x,x,
739 silent=
740 site=
741 srcdir=
742 verbose=
743 x_includes=NONE
744 x_libraries=NONE
746 # Installation directory options.
747 # These are left unexpanded so users can "make install exec_prefix=/foo"
748 # and all the variables that are supposed to be based on exec_prefix
749 # by default will actually change.
750 # Use braces instead of parens because sh, perl, etc. also accept them.
751 # (The list follows the same order as the GNU Coding Standards.)
752 bindir='${exec_prefix}/bin'
753 sbindir='${exec_prefix}/sbin'
754 libexecdir='${exec_prefix}/libexec'
755 datarootdir='${prefix}/share'
756 datadir='${datarootdir}'
757 sysconfdir='${prefix}/etc'
758 sharedstatedir='${prefix}/com'
759 localstatedir='${prefix}/var'
760 includedir='${prefix}/include'
761 oldincludedir='/usr/include'
762 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
763 infodir='${datarootdir}/info'
764 htmldir='${docdir}'
765 dvidir='${docdir}'
766 pdfdir='${docdir}'
767 psdir='${docdir}'
768 libdir='${exec_prefix}/lib'
769 localedir='${datarootdir}/locale'
770 mandir='${datarootdir}/man'
772 ac_prev=
773 ac_dashdash=
774 for ac_option
776 # If the previous option needs an argument, assign it.
777 if test -n "$ac_prev"; then
778 eval $ac_prev=\$ac_option
779 ac_prev=
780 continue
783 case $ac_option in
784 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
785 *) ac_optarg=yes ;;
786 esac
788 # Accept the important Cygnus configure options, so we can diagnose typos.
790 case $ac_dashdash$ac_option in
792 ac_dashdash=yes ;;
794 -bindir | --bindir | --bindi | --bind | --bin | --bi)
795 ac_prev=bindir ;;
796 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
797 bindir=$ac_optarg ;;
799 -build | --build | --buil | --bui | --bu)
800 ac_prev=build_alias ;;
801 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
802 build_alias=$ac_optarg ;;
804 -cache-file | --cache-file | --cache-fil | --cache-fi \
805 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
806 ac_prev=cache_file ;;
807 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
808 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
809 cache_file=$ac_optarg ;;
811 --config-cache | -C)
812 cache_file=config.cache ;;
814 -datadir | --datadir | --datadi | --datad)
815 ac_prev=datadir ;;
816 -datadir=* | --datadir=* | --datadi=* | --datad=*)
817 datadir=$ac_optarg ;;
819 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
820 | --dataroo | --dataro | --datar)
821 ac_prev=datarootdir ;;
822 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
823 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
824 datarootdir=$ac_optarg ;;
826 -disable-* | --disable-*)
827 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
828 # Reject names that are not valid shell variable names.
829 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
830 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
831 { (exit 1); exit 1; }; }
832 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
833 eval enable_$ac_feature=no ;;
835 -docdir | --docdir | --docdi | --doc | --do)
836 ac_prev=docdir ;;
837 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
838 docdir=$ac_optarg ;;
840 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
841 ac_prev=dvidir ;;
842 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
843 dvidir=$ac_optarg ;;
845 -enable-* | --enable-*)
846 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
847 # Reject names that are not valid shell variable names.
848 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
849 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
850 { (exit 1); exit 1; }; }
851 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
852 eval enable_$ac_feature=\$ac_optarg ;;
854 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
855 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
856 | --exec | --exe | --ex)
857 ac_prev=exec_prefix ;;
858 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
859 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
860 | --exec=* | --exe=* | --ex=*)
861 exec_prefix=$ac_optarg ;;
863 -gas | --gas | --ga | --g)
864 # Obsolete; use --with-gas.
865 with_gas=yes ;;
867 -help | --help | --hel | --he | -h)
868 ac_init_help=long ;;
869 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
870 ac_init_help=recursive ;;
871 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
872 ac_init_help=short ;;
874 -host | --host | --hos | --ho)
875 ac_prev=host_alias ;;
876 -host=* | --host=* | --hos=* | --ho=*)
877 host_alias=$ac_optarg ;;
879 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
880 ac_prev=htmldir ;;
881 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
882 | --ht=*)
883 htmldir=$ac_optarg ;;
885 -includedir | --includedir | --includedi | --included | --include \
886 | --includ | --inclu | --incl | --inc)
887 ac_prev=includedir ;;
888 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
889 | --includ=* | --inclu=* | --incl=* | --inc=*)
890 includedir=$ac_optarg ;;
892 -infodir | --infodir | --infodi | --infod | --info | --inf)
893 ac_prev=infodir ;;
894 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
895 infodir=$ac_optarg ;;
897 -libdir | --libdir | --libdi | --libd)
898 ac_prev=libdir ;;
899 -libdir=* | --libdir=* | --libdi=* | --libd=*)
900 libdir=$ac_optarg ;;
902 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
903 | --libexe | --libex | --libe)
904 ac_prev=libexecdir ;;
905 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
906 | --libexe=* | --libex=* | --libe=*)
907 libexecdir=$ac_optarg ;;
909 -localedir | --localedir | --localedi | --localed | --locale)
910 ac_prev=localedir ;;
911 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
912 localedir=$ac_optarg ;;
914 -localstatedir | --localstatedir | --localstatedi | --localstated \
915 | --localstate | --localstat | --localsta | --localst | --locals)
916 ac_prev=localstatedir ;;
917 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
918 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
919 localstatedir=$ac_optarg ;;
921 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
922 ac_prev=mandir ;;
923 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
924 mandir=$ac_optarg ;;
926 -nfp | --nfp | --nf)
927 # Obsolete; use --without-fp.
928 with_fp=no ;;
930 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
931 | --no-cr | --no-c | -n)
932 no_create=yes ;;
934 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
935 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
936 no_recursion=yes ;;
938 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
939 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
940 | --oldin | --oldi | --old | --ol | --o)
941 ac_prev=oldincludedir ;;
942 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
943 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
944 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
945 oldincludedir=$ac_optarg ;;
947 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
948 ac_prev=prefix ;;
949 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
950 prefix=$ac_optarg ;;
952 -program-prefix | --program-prefix | --program-prefi | --program-pref \
953 | --program-pre | --program-pr | --program-p)
954 ac_prev=program_prefix ;;
955 -program-prefix=* | --program-prefix=* | --program-prefi=* \
956 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
957 program_prefix=$ac_optarg ;;
959 -program-suffix | --program-suffix | --program-suffi | --program-suff \
960 | --program-suf | --program-su | --program-s)
961 ac_prev=program_suffix ;;
962 -program-suffix=* | --program-suffix=* | --program-suffi=* \
963 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
964 program_suffix=$ac_optarg ;;
966 -program-transform-name | --program-transform-name \
967 | --program-transform-nam | --program-transform-na \
968 | --program-transform-n | --program-transform- \
969 | --program-transform | --program-transfor \
970 | --program-transfo | --program-transf \
971 | --program-trans | --program-tran \
972 | --progr-tra | --program-tr | --program-t)
973 ac_prev=program_transform_name ;;
974 -program-transform-name=* | --program-transform-name=* \
975 | --program-transform-nam=* | --program-transform-na=* \
976 | --program-transform-n=* | --program-transform-=* \
977 | --program-transform=* | --program-transfor=* \
978 | --program-transfo=* | --program-transf=* \
979 | --program-trans=* | --program-tran=* \
980 | --progr-tra=* | --program-tr=* | --program-t=*)
981 program_transform_name=$ac_optarg ;;
983 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
984 ac_prev=pdfdir ;;
985 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
986 pdfdir=$ac_optarg ;;
988 -psdir | --psdir | --psdi | --psd | --ps)
989 ac_prev=psdir ;;
990 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
991 psdir=$ac_optarg ;;
993 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
994 | -silent | --silent | --silen | --sile | --sil)
995 silent=yes ;;
997 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
998 ac_prev=sbindir ;;
999 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1000 | --sbi=* | --sb=*)
1001 sbindir=$ac_optarg ;;
1003 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1004 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1005 | --sharedst | --shareds | --shared | --share | --shar \
1006 | --sha | --sh)
1007 ac_prev=sharedstatedir ;;
1008 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1009 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1010 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1011 | --sha=* | --sh=*)
1012 sharedstatedir=$ac_optarg ;;
1014 -site | --site | --sit)
1015 ac_prev=site ;;
1016 -site=* | --site=* | --sit=*)
1017 site=$ac_optarg ;;
1019 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1020 ac_prev=srcdir ;;
1021 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1022 srcdir=$ac_optarg ;;
1024 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1025 | --syscon | --sysco | --sysc | --sys | --sy)
1026 ac_prev=sysconfdir ;;
1027 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1028 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1029 sysconfdir=$ac_optarg ;;
1031 -target | --target | --targe | --targ | --tar | --ta | --t)
1032 ac_prev=target_alias ;;
1033 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1034 target_alias=$ac_optarg ;;
1036 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1037 verbose=yes ;;
1039 -version | --version | --versio | --versi | --vers | -V)
1040 ac_init_version=: ;;
1042 -with-* | --with-*)
1043 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1044 # Reject names that are not valid shell variable names.
1045 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1046 { echo "$as_me: error: invalid package name: $ac_package" >&2
1047 { (exit 1); exit 1; }; }
1048 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1049 eval with_$ac_package=\$ac_optarg ;;
1051 -without-* | --without-*)
1052 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1055 { echo "$as_me: error: invalid package name: $ac_package" >&2
1056 { (exit 1); exit 1; }; }
1057 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1058 eval with_$ac_package=no ;;
1060 --x)
1061 # Obsolete; use --with-x.
1062 with_x=yes ;;
1064 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1065 | --x-incl | --x-inc | --x-in | --x-i)
1066 ac_prev=x_includes ;;
1067 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1068 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1069 x_includes=$ac_optarg ;;
1071 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1072 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1073 ac_prev=x_libraries ;;
1074 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1075 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1076 x_libraries=$ac_optarg ;;
1078 -*) { echo "$as_me: error: unrecognized option: $ac_option
1079 Try \`$0 --help' for more information." >&2
1080 { (exit 1); exit 1; }; }
1083 *=*)
1084 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1085 # Reject names that are not valid shell variable names.
1086 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1087 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1088 { (exit 1); exit 1; }; }
1089 eval $ac_envvar=\$ac_optarg
1090 export $ac_envvar ;;
1093 # FIXME: should be removed in autoconf 3.0.
1094 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1095 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1096 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1097 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1100 esac
1101 done
1103 if test -n "$ac_prev"; then
1104 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1105 { echo "$as_me: error: missing argument to $ac_option" >&2
1106 { (exit 1); exit 1; }; }
1109 # Be sure to have absolute directory names.
1110 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1111 datadir sysconfdir sharedstatedir localstatedir includedir \
1112 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1113 libdir localedir mandir
1115 eval ac_val=\$$ac_var
1116 case $ac_val in
1117 [\\/$]* | ?:[\\/]* ) continue;;
1118 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1119 esac
1120 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1121 { (exit 1); exit 1; }; }
1122 done
1124 # There might be people who depend on the old broken behavior: `$host'
1125 # used to hold the argument of --host etc.
1126 # FIXME: To remove some day.
1127 build=$build_alias
1128 host=$host_alias
1129 target=$target_alias
1131 # FIXME: To remove some day.
1132 if test "x$host_alias" != x; then
1133 if test "x$build_alias" = x; then
1134 cross_compiling=maybe
1135 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1136 If a cross compiler is detected then cross compile mode will be used." >&2
1137 elif test "x$build_alias" != "x$host_alias"; then
1138 cross_compiling=yes
1142 ac_tool_prefix=
1143 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1145 test "$silent" = yes && exec 6>/dev/null
1148 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1149 ac_ls_di=`ls -di .` &&
1150 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1151 { echo "$as_me: error: Working directory cannot be determined" >&2
1152 { (exit 1); exit 1; }; }
1153 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1154 { echo "$as_me: error: pwd does not report name of working directory" >&2
1155 { (exit 1); exit 1; }; }
1158 # Find the source files, if location was not specified.
1159 if test -z "$srcdir"; then
1160 ac_srcdir_defaulted=yes
1161 # Try the directory containing this script, then the parent directory.
1162 ac_confdir=`$as_dirname -- "$0" ||
1163 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1164 X"$0" : 'X\(//\)[^/]' \| \
1165 X"$0" : 'X\(//\)$' \| \
1166 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1167 echo X"$0" |
1168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1169 s//\1/
1172 /^X\(\/\/\)[^/].*/{
1173 s//\1/
1176 /^X\(\/\/\)$/{
1177 s//\1/
1180 /^X\(\/\).*/{
1181 s//\1/
1184 s/.*/./; q'`
1185 srcdir=$ac_confdir
1186 if test ! -r "$srcdir/$ac_unique_file"; then
1187 srcdir=..
1189 else
1190 ac_srcdir_defaulted=no
1192 if test ! -r "$srcdir/$ac_unique_file"; then
1193 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1194 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1195 { (exit 1); exit 1; }; }
1197 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1198 ac_abs_confdir=`(
1199 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1200 { (exit 1); exit 1; }; }
1201 pwd)`
1202 # When building in place, set srcdir=.
1203 if test "$ac_abs_confdir" = "$ac_pwd"; then
1204 srcdir=.
1206 # Remove unnecessary trailing slashes from srcdir.
1207 # Double slashes in file names in object file debugging info
1208 # mess up M-x gdb in Emacs.
1209 case $srcdir in
1210 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1211 esac
1212 for ac_var in $ac_precious_vars; do
1213 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1214 eval ac_env_${ac_var}_value=\$${ac_var}
1215 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1216 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1217 done
1220 # Report the --help message.
1222 if test "$ac_init_help" = "long"; then
1223 # Omit some internal or obsolete options to make the list less imposing.
1224 # This message is too long to be a string in the A/UX 3.1 sh.
1225 cat <<_ACEOF
1226 \`configure' configures dmake 4.12 to adapt to many kinds of systems.
1228 Usage: $0 [OPTION]... [VAR=VALUE]...
1230 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1231 VAR=VALUE. See below for descriptions of some of the useful variables.
1233 Defaults for the options are specified in brackets.
1235 Configuration:
1236 -h, --help display this help and exit
1237 --help=short display options specific to this package
1238 --help=recursive display the short help of all the included packages
1239 -V, --version display version information and exit
1240 -q, --quiet, --silent do not print \`checking...' messages
1241 --cache-file=FILE cache test results in FILE [disabled]
1242 -C, --config-cache alias for \`--cache-file=config.cache'
1243 -n, --no-create do not create output files
1244 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1246 Installation directories:
1247 --prefix=PREFIX install architecture-independent files in PREFIX
1248 [$ac_default_prefix]
1249 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1250 [PREFIX]
1252 By default, \`make install' will install all the files in
1253 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1254 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1255 for instance \`--prefix=\$HOME'.
1257 For better control, use the options below.
1259 Fine tuning of the installation directories:
1260 --bindir=DIR user executables [EPREFIX/bin]
1261 --sbindir=DIR system admin executables [EPREFIX/sbin]
1262 --libexecdir=DIR program executables [EPREFIX/libexec]
1263 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1264 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1265 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1266 --libdir=DIR object code libraries [EPREFIX/lib]
1267 --includedir=DIR C header files [PREFIX/include]
1268 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1269 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1270 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1271 --infodir=DIR info documentation [DATAROOTDIR/info]
1272 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1273 --mandir=DIR man documentation [DATAROOTDIR/man]
1274 --docdir=DIR documentation root [DATAROOTDIR/doc/dmake]
1275 --htmldir=DIR html documentation [DOCDIR]
1276 --dvidir=DIR dvi documentation [DOCDIR]
1277 --pdfdir=DIR pdf documentation [DOCDIR]
1278 --psdir=DIR ps documentation [DOCDIR]
1279 _ACEOF
1281 cat <<\_ACEOF
1283 Program names:
1284 --program-prefix=PREFIX prepend PREFIX to installed program names
1285 --program-suffix=SUFFIX append SUFFIX to installed program names
1286 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1288 System types:
1289 --build=BUILD configure for building on BUILD [guessed]
1290 _ACEOF
1293 if test -n "$ac_init_help"; then
1294 case $ac_init_help in
1295 short | recursive ) echo "Configuration of dmake 4.12:";;
1296 esac
1297 cat <<\_ACEOF
1299 Optional Features:
1300 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1301 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1302 --enable-maintainer-mode enable make rules and dependencies not useful
1303 (and sometimes confusing) to the casual installer
1304 --disable-dependency-tracking speeds up one-time build
1305 --enable-dependency-tracking do not reject slow dependency extractors
1306 --enable-dbug: Enable build with dbug macros.
1308 --enable-spawn: Enables the use of spawn instead of fork/exec
1309 if it is supported.
1312 Some influential environment variables:
1313 CC C compiler command
1314 CFLAGS C compiler flags
1315 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1316 nonstandard directory <lib dir>
1317 LIBS libraries to pass to the linker, e.g. -l<library>
1318 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1319 you have headers in a nonstandard directory <include dir>
1320 CPP C preprocessor
1322 Use these variables to override the choices made by `configure' or to help
1323 it to find libraries and programs with nonstandard names/locations.
1325 _ACEOF
1326 ac_status=$?
1329 if test "$ac_init_help" = "recursive"; then
1330 # If there are subdirs, report their specific --help.
1331 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1332 test -d "$ac_dir" || continue
1333 ac_builddir=.
1335 case "$ac_dir" in
1336 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1338 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1339 # A ".." for each directory in $ac_dir_suffix.
1340 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1341 case $ac_top_builddir_sub in
1342 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1343 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1344 esac ;;
1345 esac
1346 ac_abs_top_builddir=$ac_pwd
1347 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1348 # for backward compatibility:
1349 ac_top_builddir=$ac_top_build_prefix
1351 case $srcdir in
1352 .) # We are building in place.
1353 ac_srcdir=.
1354 ac_top_srcdir=$ac_top_builddir_sub
1355 ac_abs_top_srcdir=$ac_pwd ;;
1356 [\\/]* | ?:[\\/]* ) # Absolute name.
1357 ac_srcdir=$srcdir$ac_dir_suffix;
1358 ac_top_srcdir=$srcdir
1359 ac_abs_top_srcdir=$srcdir ;;
1360 *) # Relative name.
1361 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1362 ac_top_srcdir=$ac_top_build_prefix$srcdir
1363 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1364 esac
1365 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1367 cd "$ac_dir" || { ac_status=$?; continue; }
1368 # Check for guested configure.
1369 if test -f "$ac_srcdir/configure.gnu"; then
1370 echo &&
1371 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1372 elif test -f "$ac_srcdir/configure"; then
1373 echo &&
1374 $SHELL "$ac_srcdir/configure" --help=recursive
1375 else
1376 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1377 fi || ac_status=$?
1378 cd "$ac_pwd" || { ac_status=$?; break; }
1379 done
1382 test -n "$ac_init_help" && exit $ac_status
1383 if $ac_init_version; then
1384 cat <<\_ACEOF
1385 dmake configure 4.12
1386 generated by GNU Autoconf 2.61
1388 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1389 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1390 This configure script is free software; the Free Software Foundation
1391 gives unlimited permission to copy, distribute and modify it.
1392 _ACEOF
1393 exit
1395 cat >config.log <<_ACEOF
1396 This file contains any messages produced by compilers while
1397 running configure, to aid debugging if configure makes a mistake.
1399 It was created by dmake $as_me 4.12, which was
1400 generated by GNU Autoconf 2.61. Invocation command line was
1402 $ $0 $@
1404 _ACEOF
1405 exec 5>>config.log
1407 cat <<_ASUNAME
1408 ## --------- ##
1409 ## Platform. ##
1410 ## --------- ##
1412 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1413 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1414 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1415 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1416 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1418 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1419 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1421 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1422 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1423 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1424 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1425 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1426 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1427 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1429 _ASUNAME
1431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1432 for as_dir in $PATH
1434 IFS=$as_save_IFS
1435 test -z "$as_dir" && as_dir=.
1436 echo "PATH: $as_dir"
1437 done
1438 IFS=$as_save_IFS
1440 } >&5
1442 cat >&5 <<_ACEOF
1445 ## ----------- ##
1446 ## Core tests. ##
1447 ## ----------- ##
1449 _ACEOF
1452 # Keep a trace of the command line.
1453 # Strip out --no-create and --no-recursion so they do not pile up.
1454 # Strip out --silent because we don't want to record it for future runs.
1455 # Also quote any args containing shell meta-characters.
1456 # Make two passes to allow for proper duplicate-argument suppression.
1457 ac_configure_args=
1458 ac_configure_args0=
1459 ac_configure_args1=
1460 ac_must_keep_next=false
1461 for ac_pass in 1 2
1463 for ac_arg
1465 case $ac_arg in
1466 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1467 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1468 | -silent | --silent | --silen | --sile | --sil)
1469 continue ;;
1470 *\'*)
1471 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1472 esac
1473 case $ac_pass in
1474 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1476 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1477 if test $ac_must_keep_next = true; then
1478 ac_must_keep_next=false # Got value, back to normal.
1479 else
1480 case $ac_arg in
1481 *=* | --config-cache | -C | -disable-* | --disable-* \
1482 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1483 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1484 | -with-* | --with-* | -without-* | --without-* | --x)
1485 case "$ac_configure_args0 " in
1486 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1487 esac
1489 -* ) ac_must_keep_next=true ;;
1490 esac
1492 ac_configure_args="$ac_configure_args '$ac_arg'"
1494 esac
1495 done
1496 done
1497 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1498 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1500 # When interrupted or exit'd, cleanup temporary files, and complete
1501 # config.log. We remove comments because anyway the quotes in there
1502 # would cause problems or look ugly.
1503 # WARNING: Use '\'' to represent an apostrophe within the trap.
1504 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1505 trap 'exit_status=$?
1506 # Save into config.log some information that might help in debugging.
1508 echo
1510 cat <<\_ASBOX
1511 ## ---------------- ##
1512 ## Cache variables. ##
1513 ## ---------------- ##
1514 _ASBOX
1515 echo
1516 # The following way of writing the cache mishandles newlines in values,
1518 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1519 eval ac_val=\$$ac_var
1520 case $ac_val in #(
1521 *${as_nl}*)
1522 case $ac_var in #(
1523 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1524 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1525 esac
1526 case $ac_var in #(
1527 _ | IFS | as_nl) ;; #(
1528 *) $as_unset $ac_var ;;
1529 esac ;;
1530 esac
1531 done
1532 (set) 2>&1 |
1533 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1534 *${as_nl}ac_space=\ *)
1535 sed -n \
1536 "s/'\''/'\''\\\\'\'''\''/g;
1537 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1538 ;; #(
1540 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1542 esac |
1543 sort
1545 echo
1547 cat <<\_ASBOX
1548 ## ----------------- ##
1549 ## Output variables. ##
1550 ## ----------------- ##
1551 _ASBOX
1552 echo
1553 for ac_var in $ac_subst_vars
1555 eval ac_val=\$$ac_var
1556 case $ac_val in
1557 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1558 esac
1559 echo "$ac_var='\''$ac_val'\''"
1560 done | sort
1561 echo
1563 if test -n "$ac_subst_files"; then
1564 cat <<\_ASBOX
1565 ## ------------------- ##
1566 ## File substitutions. ##
1567 ## ------------------- ##
1568 _ASBOX
1569 echo
1570 for ac_var in $ac_subst_files
1572 eval ac_val=\$$ac_var
1573 case $ac_val in
1574 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1575 esac
1576 echo "$ac_var='\''$ac_val'\''"
1577 done | sort
1578 echo
1581 if test -s confdefs.h; then
1582 cat <<\_ASBOX
1583 ## ----------- ##
1584 ## confdefs.h. ##
1585 ## ----------- ##
1586 _ASBOX
1587 echo
1588 cat confdefs.h
1589 echo
1591 test "$ac_signal" != 0 &&
1592 echo "$as_me: caught signal $ac_signal"
1593 echo "$as_me: exit $exit_status"
1594 } >&5
1595 rm -f core *.core core.conftest.* &&
1596 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1597 exit $exit_status
1599 for ac_signal in 1 2 13 15; do
1600 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1601 done
1602 ac_signal=0
1604 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1605 rm -f -r conftest* confdefs.h
1607 # Predefined preprocessor variables.
1609 cat >>confdefs.h <<_ACEOF
1610 #define PACKAGE_NAME "$PACKAGE_NAME"
1611 _ACEOF
1614 cat >>confdefs.h <<_ACEOF
1615 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1616 _ACEOF
1619 cat >>confdefs.h <<_ACEOF
1620 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1621 _ACEOF
1624 cat >>confdefs.h <<_ACEOF
1625 #define PACKAGE_STRING "$PACKAGE_STRING"
1626 _ACEOF
1629 cat >>confdefs.h <<_ACEOF
1630 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1631 _ACEOF
1634 # Let the site file select an alternate cache file if it wants to.
1635 # Prefer explicitly selected file to automatically selected ones.
1636 if test -n "$CONFIG_SITE"; then
1637 set x "$CONFIG_SITE"
1638 elif test "x$prefix" != xNONE; then
1639 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1640 else
1641 set x "$ac_default_prefix/share/config.site" \
1642 "$ac_default_prefix/etc/config.site"
1644 shift
1645 for ac_site_file
1647 if test -r "$ac_site_file"; then
1648 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1649 echo "$as_me: loading site script $ac_site_file" >&6;}
1650 sed 's/^/| /' "$ac_site_file" >&5
1651 . "$ac_site_file"
1653 done
1655 if test -r "$cache_file"; then
1656 # Some versions of bash will fail to source /dev/null (special
1657 # files actually), so we avoid doing that.
1658 if test -f "$cache_file"; then
1659 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1660 echo "$as_me: loading cache $cache_file" >&6;}
1661 case $cache_file in
1662 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1663 *) . "./$cache_file";;
1664 esac
1666 else
1667 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1668 echo "$as_me: creating cache $cache_file" >&6;}
1669 >$cache_file
1672 ac_header_list="$ac_header_list utime.h"
1673 # Check that the precious variables saved in the cache have kept the same
1674 # value.
1675 ac_cache_corrupted=false
1676 for ac_var in $ac_precious_vars; do
1677 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1678 eval ac_new_set=\$ac_env_${ac_var}_set
1679 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1680 eval ac_new_val=\$ac_env_${ac_var}_value
1681 case $ac_old_set,$ac_new_set in
1682 set,)
1683 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1684 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1685 ac_cache_corrupted=: ;;
1686 ,set)
1687 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1688 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1689 ac_cache_corrupted=: ;;
1690 ,);;
1692 if test "x$ac_old_val" != "x$ac_new_val"; then
1693 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1694 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1695 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1696 echo "$as_me: former value: $ac_old_val" >&2;}
1697 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1698 echo "$as_me: current value: $ac_new_val" >&2;}
1699 ac_cache_corrupted=:
1700 fi;;
1701 esac
1702 # Pass precious variables to config.status.
1703 if test "$ac_new_set" = set; then
1704 case $ac_new_val in
1705 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1706 *) ac_arg=$ac_var=$ac_new_val ;;
1707 esac
1708 case " $ac_configure_args " in
1709 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1710 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1711 esac
1713 done
1714 if $ac_cache_corrupted; then
1715 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1716 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1717 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1718 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1719 { (exit 1); exit 1; }; }
1746 ac_ext=c
1747 ac_cpp='$CPP $CPPFLAGS'
1748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1753 ac_aux_dir=
1754 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1755 if test -f "$ac_dir/install-sh"; then
1756 ac_aux_dir=$ac_dir
1757 ac_install_sh="$ac_aux_dir/install-sh -c"
1758 break
1759 elif test -f "$ac_dir/install.sh"; then
1760 ac_aux_dir=$ac_dir
1761 ac_install_sh="$ac_aux_dir/install.sh -c"
1762 break
1763 elif test -f "$ac_dir/shtool"; then
1764 ac_aux_dir=$ac_dir
1765 ac_install_sh="$ac_aux_dir/shtool install -c"
1766 break
1768 done
1769 if test -z "$ac_aux_dir"; then
1770 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1771 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1772 { (exit 1); exit 1; }; }
1775 # These three variables are undocumented and unsupported,
1776 # and are intended to be withdrawn in a future Autoconf release.
1777 # They can cause serious problems if a builder's source tree is in a directory
1778 # whose full name contains unusual characters.
1779 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1780 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1781 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1784 # Make sure we can run config.sub.
1785 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1786 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1787 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1788 { (exit 1); exit 1; }; }
1790 { echo "$as_me:$LINENO: checking build system type" >&5
1791 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1792 if test "${ac_cv_build+set}" = set; then
1793 echo $ECHO_N "(cached) $ECHO_C" >&6
1794 else
1795 ac_build_alias=$build_alias
1796 test "x$ac_build_alias" = x &&
1797 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1798 test "x$ac_build_alias" = x &&
1799 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1800 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1801 { (exit 1); exit 1; }; }
1802 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1803 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1804 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1805 { (exit 1); exit 1; }; }
1808 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1809 echo "${ECHO_T}$ac_cv_build" >&6; }
1810 case $ac_cv_build in
1811 *-*-*) ;;
1812 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1813 echo "$as_me: error: invalid value of canonical build" >&2;}
1814 { (exit 1); exit 1; }; };;
1815 esac
1816 build=$ac_cv_build
1817 ac_save_IFS=$IFS; IFS='-'
1818 set x $ac_cv_build
1819 shift
1820 build_cpu=$1
1821 build_vendor=$2
1822 shift; shift
1823 # Remember, the first character of IFS is used to create $*,
1824 # except with old shells:
1825 build_os=$*
1826 IFS=$ac_save_IFS
1827 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1830 BUILDINFO="$build"
1833 am__api_version="1.9"
1834 # Find a good install program. We prefer a C program (faster),
1835 # so one script is as good as another. But avoid the broken or
1836 # incompatible versions:
1837 # SysV /etc/install, /usr/sbin/install
1838 # SunOS /usr/etc/install
1839 # IRIX /sbin/install
1840 # AIX /bin/install
1841 # AmigaOS /C/install, which installs bootblocks on floppy discs
1842 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1843 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1844 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1845 # OS/2's system install, which has a completely different semantic
1846 # ./install, which can be erroneously created by make from ./install.sh.
1847 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1848 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1849 if test -z "$INSTALL"; then
1850 if test "${ac_cv_path_install+set}" = set; then
1851 echo $ECHO_N "(cached) $ECHO_C" >&6
1852 else
1853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1854 for as_dir in $PATH
1856 IFS=$as_save_IFS
1857 test -z "$as_dir" && as_dir=.
1858 # Account for people who put trailing slashes in PATH elements.
1859 case $as_dir/ in
1860 ./ | .// | /cC/* | \
1861 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1862 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1863 /usr/ucb/* ) ;;
1865 # OSF1 and SCO ODT 3.0 have their own names for install.
1866 # Don't use installbsd from OSF since it installs stuff as root
1867 # by default.
1868 for ac_prog in ginstall scoinst install; do
1869 for ac_exec_ext in '' $ac_executable_extensions; do
1870 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1871 if test $ac_prog = install &&
1872 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1873 # AIX install. It has an incompatible calling convention.
1875 elif test $ac_prog = install &&
1876 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1877 # program-specific install script used by HP pwplus--don't use.
1879 else
1880 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1881 break 3
1884 done
1885 done
1887 esac
1888 done
1889 IFS=$as_save_IFS
1893 if test "${ac_cv_path_install+set}" = set; then
1894 INSTALL=$ac_cv_path_install
1895 else
1896 # As a last resort, use the slow shell script. Don't cache a
1897 # value for INSTALL within a source directory, because that will
1898 # break other packages using the cache if that directory is
1899 # removed, or if the value is a relative name.
1900 INSTALL=$ac_install_sh
1903 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1904 echo "${ECHO_T}$INSTALL" >&6; }
1906 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1907 # It thinks the first close brace ends the variable substitution.
1908 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1910 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1912 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1914 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1915 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1916 # Just in case
1917 sleep 1
1918 echo timestamp > conftest.file
1919 # Do `set' in a subshell so we don't clobber the current shell's
1920 # arguments. Must try -L first in case configure is actually a
1921 # symlink; some systems play weird games with the mod time of symlinks
1922 # (eg FreeBSD returns the mod time of the symlink's containing
1923 # directory).
1924 if (
1925 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1926 if test "$*" = "X"; then
1927 # -L didn't work.
1928 set X `ls -t $srcdir/configure conftest.file`
1930 rm -f conftest.file
1931 if test "$*" != "X $srcdir/configure conftest.file" \
1932 && test "$*" != "X conftest.file $srcdir/configure"; then
1934 # If neither matched, then we have a broken ls. This can happen
1935 # if, for instance, CONFIG_SHELL is bash and it inherits a
1936 # broken ls alias from the environment. This has actually
1937 # happened. Such a system could not be considered "sane".
1938 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1939 alias in your environment" >&5
1940 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1941 alias in your environment" >&2;}
1942 { (exit 1); exit 1; }; }
1945 test "$2" = conftest.file
1947 then
1948 # Ok.
1950 else
1951 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1952 Check your system clock" >&5
1953 echo "$as_me: error: newly created file is older than distributed files!
1954 Check your system clock" >&2;}
1955 { (exit 1); exit 1; }; }
1957 { echo "$as_me:$LINENO: result: yes" >&5
1958 echo "${ECHO_T}yes" >&6; }
1959 test "$program_prefix" != NONE &&
1960 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1961 # Use a double $ so make ignores it.
1962 test "$program_suffix" != NONE &&
1963 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1964 # Double any \ or $. echo might interpret backslashes.
1965 # By default was `s,x,x', remove it if useless.
1966 cat <<\_ACEOF >conftest.sed
1967 s/[\\$]/&&/g;s/;s,x,x,$//
1968 _ACEOF
1969 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1970 rm -f conftest.sed
1972 # expand $ac_aux_dir to an absolute path
1973 am_aux_dir=`cd $ac_aux_dir && pwd`
1975 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1976 # Use eval to expand $SHELL
1977 if eval "$MISSING --run true"; then
1978 am_missing_run="$MISSING --run "
1979 else
1980 am_missing_run=
1981 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1982 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1985 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1986 # We used to keeping the `.' as first argument, in order to
1987 # allow $(mkdir_p) to be used without argument. As in
1988 # $(mkdir_p) $(somedir)
1989 # where $(somedir) is conditionally defined. However this is wrong
1990 # for two reasons:
1991 # 1. if the package is installed by a user who cannot write `.'
1992 # make install will fail,
1993 # 2. the above comment should most certainly read
1994 # $(mkdir_p) $(DESTDIR)$(somedir)
1995 # so it does not work when $(somedir) is undefined and
1996 # $(DESTDIR) is not.
1997 # To support the latter case, we have to write
1998 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1999 # so the `.' trick is pointless.
2000 mkdir_p='mkdir -p --'
2001 else
2002 # On NextStep and OpenStep, the `mkdir' command does not
2003 # recognize any option. It will interpret all options as
2004 # directories to create, and then abort because `.' already
2005 # exists.
2006 for d in ./-p ./--version;
2008 test -d $d && rmdir $d
2009 done
2010 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2011 if test -f "$ac_aux_dir/mkinstalldirs"; then
2012 mkdir_p='$(mkinstalldirs)'
2013 else
2014 mkdir_p='$(install_sh) -d'
2018 for ac_prog in gawk mawk nawk awk
2020 # Extract the first word of "$ac_prog", so it can be a program name with args.
2021 set dummy $ac_prog; ac_word=$2
2022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2024 if test "${ac_cv_prog_AWK+set}" = set; then
2025 echo $ECHO_N "(cached) $ECHO_C" >&6
2026 else
2027 if test -n "$AWK"; then
2028 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2029 else
2030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2031 for as_dir in $PATH
2033 IFS=$as_save_IFS
2034 test -z "$as_dir" && as_dir=.
2035 for ac_exec_ext in '' $ac_executable_extensions; do
2036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2037 ac_cv_prog_AWK="$ac_prog"
2038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2039 break 2
2041 done
2042 done
2043 IFS=$as_save_IFS
2047 AWK=$ac_cv_prog_AWK
2048 if test -n "$AWK"; then
2049 { echo "$as_me:$LINENO: result: $AWK" >&5
2050 echo "${ECHO_T}$AWK" >&6; }
2051 else
2052 { echo "$as_me:$LINENO: result: no" >&5
2053 echo "${ECHO_T}no" >&6; }
2057 test -n "$AWK" && break
2058 done
2060 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2061 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2062 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2063 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2064 echo $ECHO_N "(cached) $ECHO_C" >&6
2065 else
2066 cat >conftest.make <<\_ACEOF
2067 SHELL = /bin/sh
2068 all:
2069 @echo '@@@%%%=$(MAKE)=@@@%%%'
2070 _ACEOF
2071 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2072 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2073 *@@@%%%=?*=@@@%%%*)
2074 eval ac_cv_prog_make_${ac_make}_set=yes;;
2076 eval ac_cv_prog_make_${ac_make}_set=no;;
2077 esac
2078 rm -f conftest.make
2080 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2081 { echo "$as_me:$LINENO: result: yes" >&5
2082 echo "${ECHO_T}yes" >&6; }
2083 SET_MAKE=
2084 else
2085 { echo "$as_me:$LINENO: result: no" >&5
2086 echo "${ECHO_T}no" >&6; }
2087 SET_MAKE="MAKE=${MAKE-make}"
2090 rm -rf .tst 2>/dev/null
2091 mkdir .tst 2>/dev/null
2092 if test -d .tst; then
2093 am__leading_dot=.
2094 else
2095 am__leading_dot=_
2097 rmdir .tst 2>/dev/null
2099 # test to see if srcdir already configured
2100 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2101 test -f $srcdir/config.status; then
2102 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2103 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2104 { (exit 1); exit 1; }; }
2107 # test whether we have cygpath
2108 if test -z "$CYGPATH_W"; then
2109 if (cygpath --version) >/dev/null 2>/dev/null; then
2110 CYGPATH_W='cygpath -w'
2111 else
2112 CYGPATH_W=echo
2117 # Define the identity of the package.
2118 PACKAGE='dmake'
2119 VERSION='4.12'
2122 cat >>confdefs.h <<_ACEOF
2123 #define PACKAGE "$PACKAGE"
2124 _ACEOF
2127 cat >>confdefs.h <<_ACEOF
2128 #define VERSION "$VERSION"
2129 _ACEOF
2131 # Some tools Automake needs.
2133 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2136 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2139 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2142 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2145 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2147 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2149 # Installed binaries are usually stripped using `strip' when the user
2150 # run `make install-strip'. However `strip' might not be the right
2151 # tool to use in cross-compilation environments, therefore Automake
2152 # will honor the `STRIP' environment variable to overrule this program.
2153 if test "$cross_compiling" != no; then
2154 if test -n "$ac_tool_prefix"; then
2155 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2156 set dummy ${ac_tool_prefix}strip; ac_word=$2
2157 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2159 if test "${ac_cv_prog_STRIP+set}" = set; then
2160 echo $ECHO_N "(cached) $ECHO_C" >&6
2161 else
2162 if test -n "$STRIP"; then
2163 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2164 else
2165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2166 for as_dir in $PATH
2168 IFS=$as_save_IFS
2169 test -z "$as_dir" && as_dir=.
2170 for ac_exec_ext in '' $ac_executable_extensions; do
2171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2172 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2174 break 2
2176 done
2177 done
2178 IFS=$as_save_IFS
2182 STRIP=$ac_cv_prog_STRIP
2183 if test -n "$STRIP"; then
2184 { echo "$as_me:$LINENO: result: $STRIP" >&5
2185 echo "${ECHO_T}$STRIP" >&6; }
2186 else
2187 { echo "$as_me:$LINENO: result: no" >&5
2188 echo "${ECHO_T}no" >&6; }
2193 if test -z "$ac_cv_prog_STRIP"; then
2194 ac_ct_STRIP=$STRIP
2195 # Extract the first word of "strip", so it can be a program name with args.
2196 set dummy strip; ac_word=$2
2197 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2199 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2200 echo $ECHO_N "(cached) $ECHO_C" >&6
2201 else
2202 if test -n "$ac_ct_STRIP"; then
2203 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2204 else
2205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2206 for as_dir in $PATH
2208 IFS=$as_save_IFS
2209 test -z "$as_dir" && as_dir=.
2210 for ac_exec_ext in '' $ac_executable_extensions; do
2211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2212 ac_cv_prog_ac_ct_STRIP="strip"
2213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2214 break 2
2216 done
2217 done
2218 IFS=$as_save_IFS
2222 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2223 if test -n "$ac_ct_STRIP"; then
2224 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2225 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2226 else
2227 { echo "$as_me:$LINENO: result: no" >&5
2228 echo "${ECHO_T}no" >&6; }
2231 if test "x$ac_ct_STRIP" = x; then
2232 STRIP=":"
2233 else
2234 case $cross_compiling:$ac_tool_warned in
2235 yes:)
2236 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2237 whose name does not start with the host triplet. If you think this
2238 configuration is useful to you, please write to autoconf@gnu.org." >&5
2239 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2240 whose name does not start with the host triplet. If you think this
2241 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2242 ac_tool_warned=yes ;;
2243 esac
2244 STRIP=$ac_ct_STRIP
2246 else
2247 STRIP="$ac_cv_prog_STRIP"
2251 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2253 # We need awk for the "check" target. The system "awk" is bad on
2254 # some platforms.
2255 # Always define AMTAR for backward compatibility.
2257 AMTAR=${AMTAR-"${am_missing_run}tar"}
2259 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2266 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2267 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2268 # Check whether --enable-maintainer-mode was given.
2269 if test "${enable_maintainer_mode+set}" = set; then
2270 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2271 else
2272 USE_MAINTAINER_MODE=no
2275 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2276 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2279 if test $USE_MAINTAINER_MODE = yes; then
2280 MAINTAINER_MODE_TRUE=
2281 MAINTAINER_MODE_FALSE='#'
2282 else
2283 MAINTAINER_MODE_TRUE='#'
2284 MAINTAINER_MODE_FALSE=
2287 MAINT=$MAINTAINER_MODE_TRUE
2290 DEPDIR="${am__leading_dot}deps"
2292 ac_config_commands="$ac_config_commands depfiles"
2295 am_make=${MAKE-make}
2296 cat > confinc << 'END'
2297 am__doit:
2298 @echo done
2299 .PHONY: am__doit
2301 # If we don't find an include directive, just comment out the code.
2302 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2303 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2304 am__include="#"
2305 am__quote=
2306 _am_result=none
2307 # First try GNU make style include.
2308 echo "include confinc" > confmf
2309 # We grep out `Entering directory' and `Leaving directory'
2310 # messages which can occur if `w' ends up in MAKEFLAGS.
2311 # In particular we don't look at `^make:' because GNU make might
2312 # be invoked under some other name (usually "gmake"), in which
2313 # case it prints its new name instead of `make'.
2314 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2315 am__include=include
2316 am__quote=
2317 _am_result=GNU
2319 # Now try BSD make style include.
2320 if test "$am__include" = "#"; then
2321 echo '.include "confinc"' > confmf
2322 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2323 am__include=.include
2324 am__quote="\""
2325 _am_result=BSD
2330 { echo "$as_me:$LINENO: result: $_am_result" >&5
2331 echo "${ECHO_T}$_am_result" >&6; }
2332 rm -f confinc confmf
2334 # Check whether --enable-dependency-tracking was given.
2335 if test "${enable_dependency_tracking+set}" = set; then
2336 enableval=$enable_dependency_tracking;
2339 if test "x$enable_dependency_tracking" != xno; then
2340 am_depcomp="$ac_aux_dir/depcomp"
2341 AMDEPBACKSLASH='\'
2345 if test "x$enable_dependency_tracking" != xno; then
2346 AMDEP_TRUE=
2347 AMDEP_FALSE='#'
2348 else
2349 AMDEP_TRUE='#'
2350 AMDEP_FALSE=
2355 ac_ext=c
2356 ac_cpp='$CPP $CPPFLAGS'
2357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2360 if test -n "$ac_tool_prefix"; then
2361 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2362 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2365 if test "${ac_cv_prog_CC+set}" = set; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2367 else
2368 if test -n "$CC"; then
2369 ac_cv_prog_CC="$CC" # Let the user override the test.
2370 else
2371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2372 for as_dir in $PATH
2374 IFS=$as_save_IFS
2375 test -z "$as_dir" && as_dir=.
2376 for ac_exec_ext in '' $ac_executable_extensions; do
2377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2378 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2380 break 2
2382 done
2383 done
2384 IFS=$as_save_IFS
2388 CC=$ac_cv_prog_CC
2389 if test -n "$CC"; then
2390 { echo "$as_me:$LINENO: result: $CC" >&5
2391 echo "${ECHO_T}$CC" >&6; }
2392 else
2393 { echo "$as_me:$LINENO: result: no" >&5
2394 echo "${ECHO_T}no" >&6; }
2399 if test -z "$ac_cv_prog_CC"; then
2400 ac_ct_CC=$CC
2401 # Extract the first word of "gcc", so it can be a program name with args.
2402 set dummy gcc; ac_word=$2
2403 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2405 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2406 echo $ECHO_N "(cached) $ECHO_C" >&6
2407 else
2408 if test -n "$ac_ct_CC"; then
2409 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2410 else
2411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2412 for as_dir in $PATH
2414 IFS=$as_save_IFS
2415 test -z "$as_dir" && as_dir=.
2416 for ac_exec_ext in '' $ac_executable_extensions; do
2417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2418 ac_cv_prog_ac_ct_CC="gcc"
2419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2420 break 2
2422 done
2423 done
2424 IFS=$as_save_IFS
2428 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2429 if test -n "$ac_ct_CC"; then
2430 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2431 echo "${ECHO_T}$ac_ct_CC" >&6; }
2432 else
2433 { echo "$as_me:$LINENO: result: no" >&5
2434 echo "${ECHO_T}no" >&6; }
2437 if test "x$ac_ct_CC" = x; then
2438 CC=""
2439 else
2440 case $cross_compiling:$ac_tool_warned in
2441 yes:)
2442 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2443 whose name does not start with the host triplet. If you think this
2444 configuration is useful to you, please write to autoconf@gnu.org." >&5
2445 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2446 whose name does not start with the host triplet. If you think this
2447 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2448 ac_tool_warned=yes ;;
2449 esac
2450 CC=$ac_ct_CC
2452 else
2453 CC="$ac_cv_prog_CC"
2456 if test -z "$CC"; then
2457 if test -n "$ac_tool_prefix"; then
2458 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2459 set dummy ${ac_tool_prefix}cc; ac_word=$2
2460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2462 if test "${ac_cv_prog_CC+set}" = set; then
2463 echo $ECHO_N "(cached) $ECHO_C" >&6
2464 else
2465 if test -n "$CC"; then
2466 ac_cv_prog_CC="$CC" # Let the user override the test.
2467 else
2468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469 for as_dir in $PATH
2471 IFS=$as_save_IFS
2472 test -z "$as_dir" && as_dir=.
2473 for ac_exec_ext in '' $ac_executable_extensions; do
2474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2475 ac_cv_prog_CC="${ac_tool_prefix}cc"
2476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2477 break 2
2479 done
2480 done
2481 IFS=$as_save_IFS
2485 CC=$ac_cv_prog_CC
2486 if test -n "$CC"; then
2487 { echo "$as_me:$LINENO: result: $CC" >&5
2488 echo "${ECHO_T}$CC" >&6; }
2489 else
2490 { echo "$as_me:$LINENO: result: no" >&5
2491 echo "${ECHO_T}no" >&6; }
2497 if test -z "$CC"; then
2498 # Extract the first word of "cc", so it can be a program name with args.
2499 set dummy cc; ac_word=$2
2500 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2502 if test "${ac_cv_prog_CC+set}" = set; then
2503 echo $ECHO_N "(cached) $ECHO_C" >&6
2504 else
2505 if test -n "$CC"; then
2506 ac_cv_prog_CC="$CC" # Let the user override the test.
2507 else
2508 ac_prog_rejected=no
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 for as_dir in $PATH
2512 IFS=$as_save_IFS
2513 test -z "$as_dir" && as_dir=.
2514 for ac_exec_ext in '' $ac_executable_extensions; do
2515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2516 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2517 ac_prog_rejected=yes
2518 continue
2520 ac_cv_prog_CC="cc"
2521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2522 break 2
2524 done
2525 done
2526 IFS=$as_save_IFS
2528 if test $ac_prog_rejected = yes; then
2529 # We found a bogon in the path, so make sure we never use it.
2530 set dummy $ac_cv_prog_CC
2531 shift
2532 if test $# != 0; then
2533 # We chose a different compiler from the bogus one.
2534 # However, it has the same basename, so the bogon will be chosen
2535 # first if we set CC to just the basename; use the full file name.
2536 shift
2537 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2542 CC=$ac_cv_prog_CC
2543 if test -n "$CC"; then
2544 { echo "$as_me:$LINENO: result: $CC" >&5
2545 echo "${ECHO_T}$CC" >&6; }
2546 else
2547 { echo "$as_me:$LINENO: result: no" >&5
2548 echo "${ECHO_T}no" >&6; }
2553 if test -z "$CC"; then
2554 if test -n "$ac_tool_prefix"; then
2555 for ac_prog in cl.exe
2557 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2558 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2561 if test "${ac_cv_prog_CC+set}" = set; then
2562 echo $ECHO_N "(cached) $ECHO_C" >&6
2563 else
2564 if test -n "$CC"; then
2565 ac_cv_prog_CC="$CC" # Let the user override the test.
2566 else
2567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568 for as_dir in $PATH
2570 IFS=$as_save_IFS
2571 test -z "$as_dir" && as_dir=.
2572 for ac_exec_ext in '' $ac_executable_extensions; do
2573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2574 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2576 break 2
2578 done
2579 done
2580 IFS=$as_save_IFS
2584 CC=$ac_cv_prog_CC
2585 if test -n "$CC"; then
2586 { echo "$as_me:$LINENO: result: $CC" >&5
2587 echo "${ECHO_T}$CC" >&6; }
2588 else
2589 { echo "$as_me:$LINENO: result: no" >&5
2590 echo "${ECHO_T}no" >&6; }
2594 test -n "$CC" && break
2595 done
2597 if test -z "$CC"; then
2598 ac_ct_CC=$CC
2599 for ac_prog in cl.exe
2601 # Extract the first word of "$ac_prog", so it can be a program name with args.
2602 set dummy $ac_prog; ac_word=$2
2603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2605 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2606 echo $ECHO_N "(cached) $ECHO_C" >&6
2607 else
2608 if test -n "$ac_ct_CC"; then
2609 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2610 else
2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612 for as_dir in $PATH
2614 IFS=$as_save_IFS
2615 test -z "$as_dir" && as_dir=.
2616 for ac_exec_ext in '' $ac_executable_extensions; do
2617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2618 ac_cv_prog_ac_ct_CC="$ac_prog"
2619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2620 break 2
2622 done
2623 done
2624 IFS=$as_save_IFS
2628 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2629 if test -n "$ac_ct_CC"; then
2630 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2631 echo "${ECHO_T}$ac_ct_CC" >&6; }
2632 else
2633 { echo "$as_me:$LINENO: result: no" >&5
2634 echo "${ECHO_T}no" >&6; }
2638 test -n "$ac_ct_CC" && break
2639 done
2641 if test "x$ac_ct_CC" = x; then
2642 CC=""
2643 else
2644 case $cross_compiling:$ac_tool_warned in
2645 yes:)
2646 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2647 whose name does not start with the host triplet. If you think this
2648 configuration is useful to you, please write to autoconf@gnu.org." >&5
2649 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2650 whose name does not start with the host triplet. If you think this
2651 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2652 ac_tool_warned=yes ;;
2653 esac
2654 CC=$ac_ct_CC
2661 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2662 See \`config.log' for more details." >&5
2663 echo "$as_me: error: no acceptable C compiler found in \$PATH
2664 See \`config.log' for more details." >&2;}
2665 { (exit 1); exit 1; }; }
2667 # Provide some information about the compiler.
2668 echo "$as_me:$LINENO: checking for C compiler version" >&5
2669 ac_compiler=`set X $ac_compile; echo $2`
2670 { (ac_try="$ac_compiler --version >&5"
2671 case "(($ac_try" in
2672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2673 *) ac_try_echo=$ac_try;;
2674 esac
2675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2676 (eval "$ac_compiler --version >&5") 2>&5
2677 ac_status=$?
2678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679 (exit $ac_status); }
2680 { (ac_try="$ac_compiler -v >&5"
2681 case "(($ac_try" in
2682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2683 *) ac_try_echo=$ac_try;;
2684 esac
2685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2686 (eval "$ac_compiler -v >&5") 2>&5
2687 ac_status=$?
2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); }
2690 { (ac_try="$ac_compiler -V >&5"
2691 case "(($ac_try" in
2692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2693 *) ac_try_echo=$ac_try;;
2694 esac
2695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2696 (eval "$ac_compiler -V >&5") 2>&5
2697 ac_status=$?
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); }
2701 cat >conftest.$ac_ext <<_ACEOF
2702 /* confdefs.h. */
2703 _ACEOF
2704 cat confdefs.h >>conftest.$ac_ext
2705 cat >>conftest.$ac_ext <<_ACEOF
2706 /* end confdefs.h. */
2709 main ()
2713 return 0;
2715 _ACEOF
2716 ac_clean_files_save=$ac_clean_files
2717 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2718 # Try to create an executable without -o first, disregard a.out.
2719 # It will help us diagnose broken compilers, and finding out an intuition
2720 # of exeext.
2721 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2722 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2723 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2725 # List of possible output files, starting from the most likely.
2726 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2727 # only as a last resort. b.out is created by i960 compilers.
2728 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2730 # The IRIX 6 linker writes into existing files which may not be
2731 # executable, retaining their permissions. Remove them first so a
2732 # subsequent execution test works.
2733 ac_rmfiles=
2734 for ac_file in $ac_files
2736 case $ac_file in
2737 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2738 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2739 esac
2740 done
2741 rm -f $ac_rmfiles
2743 if { (ac_try="$ac_link_default"
2744 case "(($ac_try" in
2745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2746 *) ac_try_echo=$ac_try;;
2747 esac
2748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2749 (eval "$ac_link_default") 2>&5
2750 ac_status=$?
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }; then
2753 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2754 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2755 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2756 # so that the user can short-circuit this test for compilers unknown to
2757 # Autoconf.
2758 for ac_file in $ac_files ''
2760 test -f "$ac_file" || continue
2761 case $ac_file in
2762 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2764 [ab].out )
2765 # We found the default executable, but exeext='' is most
2766 # certainly right.
2767 break;;
2768 *.* )
2769 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2770 then :; else
2771 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2773 # We set ac_cv_exeext here because the later test for it is not
2774 # safe: cross compilers may not add the suffix if given an `-o'
2775 # argument, so we may need to know it at that point already.
2776 # Even if this section looks crufty: it has the advantage of
2777 # actually working.
2778 break;;
2780 break;;
2781 esac
2782 done
2783 test "$ac_cv_exeext" = no && ac_cv_exeext=
2785 else
2786 ac_file=''
2789 { echo "$as_me:$LINENO: result: $ac_file" >&5
2790 echo "${ECHO_T}$ac_file" >&6; }
2791 if test -z "$ac_file"; then
2792 echo "$as_me: failed program was:" >&5
2793 sed 's/^/| /' conftest.$ac_ext >&5
2795 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2796 See \`config.log' for more details." >&5
2797 echo "$as_me: error: C compiler cannot create executables
2798 See \`config.log' for more details." >&2;}
2799 { (exit 77); exit 77; }; }
2802 ac_exeext=$ac_cv_exeext
2804 # Check that the compiler produces executables we can run. If not, either
2805 # the compiler is broken, or we cross compile.
2806 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2807 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2808 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2809 # If not cross compiling, check that we can run a simple program.
2810 if test "$cross_compiling" != yes; then
2811 if { ac_try='./$ac_file'
2812 { (case "(($ac_try" in
2813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814 *) ac_try_echo=$ac_try;;
2815 esac
2816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2817 (eval "$ac_try") 2>&5
2818 ac_status=$?
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); }; }; then
2821 cross_compiling=no
2822 else
2823 if test "$cross_compiling" = maybe; then
2824 cross_compiling=yes
2825 else
2826 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2827 If you meant to cross compile, use \`--host'.
2828 See \`config.log' for more details." >&5
2829 echo "$as_me: error: cannot run C compiled programs.
2830 If you meant to cross compile, use \`--host'.
2831 See \`config.log' for more details." >&2;}
2832 { (exit 1); exit 1; }; }
2836 { echo "$as_me:$LINENO: result: yes" >&5
2837 echo "${ECHO_T}yes" >&6; }
2839 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2840 ac_clean_files=$ac_clean_files_save
2841 # Check that the compiler produces executables we can run. If not, either
2842 # the compiler is broken, or we cross compile.
2843 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2844 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2845 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2846 echo "${ECHO_T}$cross_compiling" >&6; }
2848 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2849 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2850 if { (ac_try="$ac_link"
2851 case "(($ac_try" in
2852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2853 *) ac_try_echo=$ac_try;;
2854 esac
2855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2856 (eval "$ac_link") 2>&5
2857 ac_status=$?
2858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859 (exit $ac_status); }; then
2860 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2861 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2862 # work properly (i.e., refer to `conftest.exe'), while it won't with
2863 # `rm'.
2864 for ac_file in conftest.exe conftest conftest.*; do
2865 test -f "$ac_file" || continue
2866 case $ac_file in
2867 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2868 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2869 break;;
2870 * ) break;;
2871 esac
2872 done
2873 else
2874 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2875 See \`config.log' for more details." >&5
2876 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2877 See \`config.log' for more details." >&2;}
2878 { (exit 1); exit 1; }; }
2881 rm -f conftest$ac_cv_exeext
2882 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2883 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2885 rm -f conftest.$ac_ext
2886 EXEEXT=$ac_cv_exeext
2887 ac_exeext=$EXEEXT
2888 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2889 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2890 if test "${ac_cv_objext+set}" = set; then
2891 echo $ECHO_N "(cached) $ECHO_C" >&6
2892 else
2893 cat >conftest.$ac_ext <<_ACEOF
2894 /* confdefs.h. */
2895 _ACEOF
2896 cat confdefs.h >>conftest.$ac_ext
2897 cat >>conftest.$ac_ext <<_ACEOF
2898 /* end confdefs.h. */
2901 main ()
2905 return 0;
2907 _ACEOF
2908 rm -f conftest.o conftest.obj
2909 if { (ac_try="$ac_compile"
2910 case "(($ac_try" in
2911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2912 *) ac_try_echo=$ac_try;;
2913 esac
2914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2915 (eval "$ac_compile") 2>&5
2916 ac_status=$?
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); }; then
2919 for ac_file in conftest.o conftest.obj conftest.*; do
2920 test -f "$ac_file" || continue;
2921 case $ac_file in
2922 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2923 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2924 break;;
2925 esac
2926 done
2927 else
2928 echo "$as_me: failed program was:" >&5
2929 sed 's/^/| /' conftest.$ac_ext >&5
2931 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2932 See \`config.log' for more details." >&5
2933 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2934 See \`config.log' for more details." >&2;}
2935 { (exit 1); exit 1; }; }
2938 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2940 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2941 echo "${ECHO_T}$ac_cv_objext" >&6; }
2942 OBJEXT=$ac_cv_objext
2943 ac_objext=$OBJEXT
2944 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2945 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2946 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2947 echo $ECHO_N "(cached) $ECHO_C" >&6
2948 else
2949 cat >conftest.$ac_ext <<_ACEOF
2950 /* confdefs.h. */
2951 _ACEOF
2952 cat confdefs.h >>conftest.$ac_ext
2953 cat >>conftest.$ac_ext <<_ACEOF
2954 /* end confdefs.h. */
2957 main ()
2959 #ifndef __GNUC__
2960 choke me
2961 #endif
2964 return 0;
2966 _ACEOF
2967 rm -f conftest.$ac_objext
2968 if { (ac_try="$ac_compile"
2969 case "(($ac_try" in
2970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2971 *) ac_try_echo=$ac_try;;
2972 esac
2973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2974 (eval "$ac_compile") 2>conftest.er1
2975 ac_status=$?
2976 grep -v '^ *+' conftest.er1 >conftest.err
2977 rm -f conftest.er1
2978 cat conftest.err >&5
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); } && {
2981 test -z "$ac_c_werror_flag" ||
2982 test ! -s conftest.err
2983 } && test -s conftest.$ac_objext; then
2984 ac_compiler_gnu=yes
2985 else
2986 echo "$as_me: failed program was:" >&5
2987 sed 's/^/| /' conftest.$ac_ext >&5
2989 ac_compiler_gnu=no
2992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2993 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2996 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2997 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2998 GCC=`test $ac_compiler_gnu = yes && echo yes`
2999 ac_test_CFLAGS=${CFLAGS+set}
3000 ac_save_CFLAGS=$CFLAGS
3001 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3002 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3003 if test "${ac_cv_prog_cc_g+set}" = set; then
3004 echo $ECHO_N "(cached) $ECHO_C" >&6
3005 else
3006 ac_save_c_werror_flag=$ac_c_werror_flag
3007 ac_c_werror_flag=yes
3008 ac_cv_prog_cc_g=no
3009 CFLAGS="-g"
3010 cat >conftest.$ac_ext <<_ACEOF
3011 /* confdefs.h. */
3012 _ACEOF
3013 cat confdefs.h >>conftest.$ac_ext
3014 cat >>conftest.$ac_ext <<_ACEOF
3015 /* end confdefs.h. */
3018 main ()
3022 return 0;
3024 _ACEOF
3025 rm -f conftest.$ac_objext
3026 if { (ac_try="$ac_compile"
3027 case "(($ac_try" in
3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029 *) ac_try_echo=$ac_try;;
3030 esac
3031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032 (eval "$ac_compile") 2>conftest.er1
3033 ac_status=$?
3034 grep -v '^ *+' conftest.er1 >conftest.err
3035 rm -f conftest.er1
3036 cat conftest.err >&5
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); } && {
3039 test -z "$ac_c_werror_flag" ||
3040 test ! -s conftest.err
3041 } && test -s conftest.$ac_objext; then
3042 ac_cv_prog_cc_g=yes
3043 else
3044 echo "$as_me: failed program was:" >&5
3045 sed 's/^/| /' conftest.$ac_ext >&5
3047 CFLAGS=""
3048 cat >conftest.$ac_ext <<_ACEOF
3049 /* confdefs.h. */
3050 _ACEOF
3051 cat confdefs.h >>conftest.$ac_ext
3052 cat >>conftest.$ac_ext <<_ACEOF
3053 /* end confdefs.h. */
3056 main ()
3060 return 0;
3062 _ACEOF
3063 rm -f conftest.$ac_objext
3064 if { (ac_try="$ac_compile"
3065 case "(($ac_try" in
3066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067 *) ac_try_echo=$ac_try;;
3068 esac
3069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3070 (eval "$ac_compile") 2>conftest.er1
3071 ac_status=$?
3072 grep -v '^ *+' conftest.er1 >conftest.err
3073 rm -f conftest.er1
3074 cat conftest.err >&5
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); } && {
3077 test -z "$ac_c_werror_flag" ||
3078 test ! -s conftest.err
3079 } && test -s conftest.$ac_objext; then
3081 else
3082 echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3085 ac_c_werror_flag=$ac_save_c_werror_flag
3086 CFLAGS="-g"
3087 cat >conftest.$ac_ext <<_ACEOF
3088 /* confdefs.h. */
3089 _ACEOF
3090 cat confdefs.h >>conftest.$ac_ext
3091 cat >>conftest.$ac_ext <<_ACEOF
3092 /* end confdefs.h. */
3095 main ()
3099 return 0;
3101 _ACEOF
3102 rm -f conftest.$ac_objext
3103 if { (ac_try="$ac_compile"
3104 case "(($ac_try" in
3105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106 *) ac_try_echo=$ac_try;;
3107 esac
3108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3109 (eval "$ac_compile") 2>conftest.er1
3110 ac_status=$?
3111 grep -v '^ *+' conftest.er1 >conftest.err
3112 rm -f conftest.er1
3113 cat conftest.err >&5
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); } && {
3116 test -z "$ac_c_werror_flag" ||
3117 test ! -s conftest.err
3118 } && test -s conftest.$ac_objext; then
3119 ac_cv_prog_cc_g=yes
3120 else
3121 echo "$as_me: failed program was:" >&5
3122 sed 's/^/| /' conftest.$ac_ext >&5
3127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3134 ac_c_werror_flag=$ac_save_c_werror_flag
3136 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3137 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3138 if test "$ac_test_CFLAGS" = set; then
3139 CFLAGS=$ac_save_CFLAGS
3140 elif test $ac_cv_prog_cc_g = yes; then
3141 if test "$GCC" = yes; then
3142 CFLAGS="-g -O2"
3143 else
3144 CFLAGS="-g"
3146 else
3147 if test "$GCC" = yes; then
3148 CFLAGS="-O2"
3149 else
3150 CFLAGS=
3153 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3154 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3155 if test "${ac_cv_prog_cc_c89+set}" = set; then
3156 echo $ECHO_N "(cached) $ECHO_C" >&6
3157 else
3158 ac_cv_prog_cc_c89=no
3159 ac_save_CC=$CC
3160 cat >conftest.$ac_ext <<_ACEOF
3161 /* confdefs.h. */
3162 _ACEOF
3163 cat confdefs.h >>conftest.$ac_ext
3164 cat >>conftest.$ac_ext <<_ACEOF
3165 /* end confdefs.h. */
3166 #include <stdarg.h>
3167 #include <stdio.h>
3168 #include <sys/types.h>
3169 #include <sys/stat.h>
3170 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3171 struct buf { int x; };
3172 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3173 static char *e (p, i)
3174 char **p;
3175 int i;
3177 return p[i];
3179 static char *f (char * (*g) (char **, int), char **p, ...)
3181 char *s;
3182 va_list v;
3183 va_start (v,p);
3184 s = g (p, va_arg (v,int));
3185 va_end (v);
3186 return s;
3189 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3190 function prototypes and stuff, but not '\xHH' hex character constants.
3191 These don't provoke an error unfortunately, instead are silently treated
3192 as 'x'. The following induces an error, until -std is added to get
3193 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3194 array size at least. It's necessary to write '\x00'==0 to get something
3195 that's true only with -std. */
3196 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3198 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3199 inside strings and character constants. */
3200 #define FOO(x) 'x'
3201 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3203 int test (int i, double x);
3204 struct s1 {int (*f) (int a);};
3205 struct s2 {int (*f) (double a);};
3206 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3207 int argc;
3208 char **argv;
3210 main ()
3212 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3214 return 0;
3216 _ACEOF
3217 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3218 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3220 CC="$ac_save_CC $ac_arg"
3221 rm -f conftest.$ac_objext
3222 if { (ac_try="$ac_compile"
3223 case "(($ac_try" in
3224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225 *) ac_try_echo=$ac_try;;
3226 esac
3227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3228 (eval "$ac_compile") 2>conftest.er1
3229 ac_status=$?
3230 grep -v '^ *+' conftest.er1 >conftest.err
3231 rm -f conftest.er1
3232 cat conftest.err >&5
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); } && {
3235 test -z "$ac_c_werror_flag" ||
3236 test ! -s conftest.err
3237 } && test -s conftest.$ac_objext; then
3238 ac_cv_prog_cc_c89=$ac_arg
3239 else
3240 echo "$as_me: failed program was:" >&5
3241 sed 's/^/| /' conftest.$ac_ext >&5
3246 rm -f core conftest.err conftest.$ac_objext
3247 test "x$ac_cv_prog_cc_c89" != "xno" && break
3248 done
3249 rm -f conftest.$ac_ext
3250 CC=$ac_save_CC
3253 # AC_CACHE_VAL
3254 case "x$ac_cv_prog_cc_c89" in
3256 { echo "$as_me:$LINENO: result: none needed" >&5
3257 echo "${ECHO_T}none needed" >&6; } ;;
3258 xno)
3259 { echo "$as_me:$LINENO: result: unsupported" >&5
3260 echo "${ECHO_T}unsupported" >&6; } ;;
3262 CC="$CC $ac_cv_prog_cc_c89"
3263 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3264 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3265 esac
3268 ac_ext=c
3269 ac_cpp='$CPP $CPPFLAGS'
3270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3274 depcc="$CC" am_compiler_list=
3276 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3277 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3278 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3279 echo $ECHO_N "(cached) $ECHO_C" >&6
3280 else
3281 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3282 # We make a subdir and do the tests there. Otherwise we can end up
3283 # making bogus files that we don't know about and never remove. For
3284 # instance it was reported that on HP-UX the gcc test will end up
3285 # making a dummy file named `D' -- because `-MD' means `put the output
3286 # in D'.
3287 mkdir conftest.dir
3288 # Copy depcomp to subdir because otherwise we won't find it if we're
3289 # using a relative directory.
3290 cp "$am_depcomp" conftest.dir
3291 cd conftest.dir
3292 # We will build objects and dependencies in a subdirectory because
3293 # it helps to detect inapplicable dependency modes. For instance
3294 # both Tru64's cc and ICC support -MD to output dependencies as a
3295 # side effect of compilation, but ICC will put the dependencies in
3296 # the current directory while Tru64 will put them in the object
3297 # directory.
3298 mkdir sub
3300 am_cv_CC_dependencies_compiler_type=none
3301 if test "$am_compiler_list" = ""; then
3302 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3304 for depmode in $am_compiler_list; do
3305 # Setup a source with many dependencies, because some compilers
3306 # like to wrap large dependency lists on column 80 (with \), and
3307 # we should not choose a depcomp mode which is confused by this.
3309 # We need to recreate these files for each test, as the compiler may
3310 # overwrite some of them when testing with obscure command lines.
3311 # This happens at least with the AIX C compiler.
3312 : > sub/conftest.c
3313 for i in 1 2 3 4 5 6; do
3314 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3315 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3316 # Solaris 8's {/usr,}/bin/sh.
3317 touch sub/conftst$i.h
3318 done
3319 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3321 case $depmode in
3322 nosideeffect)
3323 # after this tag, mechanisms are not by side-effect, so they'll
3324 # only be used when explicitly requested
3325 if test "x$enable_dependency_tracking" = xyes; then
3326 continue
3327 else
3328 break
3331 none) break ;;
3332 esac
3333 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3334 # mode. It turns out that the SunPro C++ compiler does not properly
3335 # handle `-M -o', and we need to detect this.
3336 if depmode=$depmode \
3337 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3338 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3339 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3340 >/dev/null 2>conftest.err &&
3341 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3342 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3343 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3344 # icc doesn't choke on unknown options, it will just issue warnings
3345 # or remarks (even with -Werror). So we grep stderr for any message
3346 # that says an option was ignored or not supported.
3347 # When given -MP, icc 7.0 and 7.1 complain thusly:
3348 # icc: Command line warning: ignoring option '-M'; no argument required
3349 # The diagnosis changed in icc 8.0:
3350 # icc: Command line remark: option '-MP' not supported
3351 if (grep 'ignoring option' conftest.err ||
3352 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3353 am_cv_CC_dependencies_compiler_type=$depmode
3354 break
3357 done
3359 cd ..
3360 rm -rf conftest.dir
3361 else
3362 am_cv_CC_dependencies_compiler_type=none
3366 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3367 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3368 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3373 test "x$enable_dependency_tracking" != xno \
3374 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3375 am__fastdepCC_TRUE=
3376 am__fastdepCC_FALSE='#'
3377 else
3378 am__fastdepCC_TRUE='#'
3379 am__fastdepCC_FALSE=
3383 if test "x$CC" != xcc; then
3384 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3385 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3386 else
3387 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3388 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3390 set dummy $CC; ac_cc=`echo $2 |
3391 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3392 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3393 echo $ECHO_N "(cached) $ECHO_C" >&6
3394 else
3395 cat >conftest.$ac_ext <<_ACEOF
3396 /* confdefs.h. */
3397 _ACEOF
3398 cat confdefs.h >>conftest.$ac_ext
3399 cat >>conftest.$ac_ext <<_ACEOF
3400 /* end confdefs.h. */
3403 main ()
3407 return 0;
3409 _ACEOF
3410 # Make sure it works both with $CC and with simple cc.
3411 # We do the test twice because some compilers refuse to overwrite an
3412 # existing .o file with -o, though they will create one.
3413 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3414 rm -f conftest2.*
3415 if { (case "(($ac_try" in
3416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417 *) ac_try_echo=$ac_try;;
3418 esac
3419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3420 (eval "$ac_try") 2>&5
3421 ac_status=$?
3422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423 (exit $ac_status); } &&
3424 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3426 *) ac_try_echo=$ac_try;;
3427 esac
3428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3429 (eval "$ac_try") 2>&5
3430 ac_status=$?
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); };
3433 then
3434 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3435 if test "x$CC" != xcc; then
3436 # Test first that cc exists at all.
3437 if { ac_try='cc -c conftest.$ac_ext >&5'
3438 { (case "(($ac_try" in
3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440 *) ac_try_echo=$ac_try;;
3441 esac
3442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3443 (eval "$ac_try") 2>&5
3444 ac_status=$?
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); }; }; then
3447 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3448 rm -f conftest2.*
3449 if { (case "(($ac_try" in
3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451 *) ac_try_echo=$ac_try;;
3452 esac
3453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3454 (eval "$ac_try") 2>&5
3455 ac_status=$?
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); } &&
3458 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3460 *) ac_try_echo=$ac_try;;
3461 esac
3462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3463 (eval "$ac_try") 2>&5
3464 ac_status=$?
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); };
3467 then
3468 # cc works too.
3470 else
3471 # cc exists but doesn't like -o.
3472 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3476 else
3477 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3479 rm -f core conftest*
3482 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3483 { echo "$as_me:$LINENO: result: yes" >&5
3484 echo "${ECHO_T}yes" >&6; }
3485 else
3486 { echo "$as_me:$LINENO: result: no" >&5
3487 echo "${ECHO_T}no" >&6; }
3489 cat >>confdefs.h <<\_ACEOF
3490 #define NO_MINUS_C_MINUS_O 1
3491 _ACEOF
3495 # FIXME: we rely on the cache variable name because
3496 # there is no other way.
3497 set dummy $CC
3498 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3499 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3500 # Losing compiler, so override with the script.
3501 # FIXME: It is wrong to rewrite CC.
3502 # But if we don't then we get into trouble of one sort or another.
3503 # A longer-term fix would be to have automake use am__CC in this case,
3504 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3505 CC="$am_aux_dir/compile $CC"
3509 ac_config_headers="$ac_config_headers config.h"
3512 # Check whether --enable-dbug was given.
3513 if test "${enable_dbug+set}" = set; then
3514 enableval=$enable_dbug;
3518 # Check whether --enable-spawn was given.
3519 if test "${enable_spawn+set}" = set; then
3520 enableval=$enable_spawn;
3523 ac_ext=c
3524 ac_cpp='$CPP $CPPFLAGS'
3525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3528 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3529 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3530 # On Suns, sometimes $CPP names a directory.
3531 if test -n "$CPP" && test -d "$CPP"; then
3532 CPP=
3534 if test -z "$CPP"; then
3535 if test "${ac_cv_prog_CPP+set}" = set; then
3536 echo $ECHO_N "(cached) $ECHO_C" >&6
3537 else
3538 # Double quotes because CPP needs to be expanded
3539 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3541 ac_preproc_ok=false
3542 for ac_c_preproc_warn_flag in '' yes
3544 # Use a header file that comes with gcc, so configuring glibc
3545 # with a fresh cross-compiler works.
3546 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3547 # <limits.h> exists even on freestanding compilers.
3548 # On the NeXT, cc -E runs the code through the compiler's parser,
3549 # not just through cpp. "Syntax error" is here to catch this case.
3550 cat >conftest.$ac_ext <<_ACEOF
3551 /* confdefs.h. */
3552 _ACEOF
3553 cat confdefs.h >>conftest.$ac_ext
3554 cat >>conftest.$ac_ext <<_ACEOF
3555 /* end confdefs.h. */
3556 #ifdef __STDC__
3557 # include <limits.h>
3558 #else
3559 # include <assert.h>
3560 #endif
3561 Syntax error
3562 _ACEOF
3563 if { (ac_try="$ac_cpp conftest.$ac_ext"
3564 case "(($ac_try" in
3565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566 *) ac_try_echo=$ac_try;;
3567 esac
3568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3570 ac_status=$?
3571 grep -v '^ *+' conftest.er1 >conftest.err
3572 rm -f conftest.er1
3573 cat conftest.err >&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); } >/dev/null && {
3576 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3577 test ! -s conftest.err
3578 }; then
3580 else
3581 echo "$as_me: failed program was:" >&5
3582 sed 's/^/| /' conftest.$ac_ext >&5
3584 # Broken: fails on valid input.
3585 continue
3588 rm -f conftest.err conftest.$ac_ext
3590 # OK, works on sane cases. Now check whether nonexistent headers
3591 # can be detected and how.
3592 cat >conftest.$ac_ext <<_ACEOF
3593 /* confdefs.h. */
3594 _ACEOF
3595 cat confdefs.h >>conftest.$ac_ext
3596 cat >>conftest.$ac_ext <<_ACEOF
3597 /* end confdefs.h. */
3598 #include <ac_nonexistent.h>
3599 _ACEOF
3600 if { (ac_try="$ac_cpp conftest.$ac_ext"
3601 case "(($ac_try" in
3602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603 *) ac_try_echo=$ac_try;;
3604 esac
3605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3607 ac_status=$?
3608 grep -v '^ *+' conftest.er1 >conftest.err
3609 rm -f conftest.er1
3610 cat conftest.err >&5
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); } >/dev/null && {
3613 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3614 test ! -s conftest.err
3615 }; then
3616 # Broken: success on invalid input.
3617 continue
3618 else
3619 echo "$as_me: failed program was:" >&5
3620 sed 's/^/| /' conftest.$ac_ext >&5
3622 # Passes both tests.
3623 ac_preproc_ok=:
3624 break
3627 rm -f conftest.err conftest.$ac_ext
3629 done
3630 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3631 rm -f conftest.err conftest.$ac_ext
3632 if $ac_preproc_ok; then
3633 break
3636 done
3637 ac_cv_prog_CPP=$CPP
3640 CPP=$ac_cv_prog_CPP
3641 else
3642 ac_cv_prog_CPP=$CPP
3644 { echo "$as_me:$LINENO: result: $CPP" >&5
3645 echo "${ECHO_T}$CPP" >&6; }
3646 ac_preproc_ok=false
3647 for ac_c_preproc_warn_flag in '' yes
3649 # Use a header file that comes with gcc, so configuring glibc
3650 # with a fresh cross-compiler works.
3651 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3652 # <limits.h> exists even on freestanding compilers.
3653 # On the NeXT, cc -E runs the code through the compiler's parser,
3654 # not just through cpp. "Syntax error" is here to catch this case.
3655 cat >conftest.$ac_ext <<_ACEOF
3656 /* confdefs.h. */
3657 _ACEOF
3658 cat confdefs.h >>conftest.$ac_ext
3659 cat >>conftest.$ac_ext <<_ACEOF
3660 /* end confdefs.h. */
3661 #ifdef __STDC__
3662 # include <limits.h>
3663 #else
3664 # include <assert.h>
3665 #endif
3666 Syntax error
3667 _ACEOF
3668 if { (ac_try="$ac_cpp conftest.$ac_ext"
3669 case "(($ac_try" in
3670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671 *) ac_try_echo=$ac_try;;
3672 esac
3673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3674 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3675 ac_status=$?
3676 grep -v '^ *+' conftest.er1 >conftest.err
3677 rm -f conftest.er1
3678 cat conftest.err >&5
3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680 (exit $ac_status); } >/dev/null && {
3681 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3682 test ! -s conftest.err
3683 }; then
3685 else
3686 echo "$as_me: failed program was:" >&5
3687 sed 's/^/| /' conftest.$ac_ext >&5
3689 # Broken: fails on valid input.
3690 continue
3693 rm -f conftest.err conftest.$ac_ext
3695 # OK, works on sane cases. Now check whether nonexistent headers
3696 # can be detected and how.
3697 cat >conftest.$ac_ext <<_ACEOF
3698 /* confdefs.h. */
3699 _ACEOF
3700 cat confdefs.h >>conftest.$ac_ext
3701 cat >>conftest.$ac_ext <<_ACEOF
3702 /* end confdefs.h. */
3703 #include <ac_nonexistent.h>
3704 _ACEOF
3705 if { (ac_try="$ac_cpp conftest.$ac_ext"
3706 case "(($ac_try" in
3707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3708 *) ac_try_echo=$ac_try;;
3709 esac
3710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3712 ac_status=$?
3713 grep -v '^ *+' conftest.er1 >conftest.err
3714 rm -f conftest.er1
3715 cat conftest.err >&5
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); } >/dev/null && {
3718 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3719 test ! -s conftest.err
3720 }; then
3721 # Broken: success on invalid input.
3722 continue
3723 else
3724 echo "$as_me: failed program was:" >&5
3725 sed 's/^/| /' conftest.$ac_ext >&5
3727 # Passes both tests.
3728 ac_preproc_ok=:
3729 break
3732 rm -f conftest.err conftest.$ac_ext
3734 done
3735 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3736 rm -f conftest.err conftest.$ac_ext
3737 if $ac_preproc_ok; then
3739 else
3740 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3741 See \`config.log' for more details." >&5
3742 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3743 See \`config.log' for more details." >&2;}
3744 { (exit 1); exit 1; }; }
3747 ac_ext=c
3748 ac_cpp='$CPP $CPPFLAGS'
3749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3753 # Find a good install program. We prefer a C program (faster),
3754 # so one script is as good as another. But avoid the broken or
3755 # incompatible versions:
3756 # SysV /etc/install, /usr/sbin/install
3757 # SunOS /usr/etc/install
3758 # IRIX /sbin/install
3759 # AIX /bin/install
3760 # AmigaOS /C/install, which installs bootblocks on floppy discs
3761 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3762 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3763 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3764 # OS/2's system install, which has a completely different semantic
3765 # ./install, which can be erroneously created by make from ./install.sh.
3766 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3767 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3768 if test -z "$INSTALL"; then
3769 if test "${ac_cv_path_install+set}" = set; then
3770 echo $ECHO_N "(cached) $ECHO_C" >&6
3771 else
3772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773 for as_dir in $PATH
3775 IFS=$as_save_IFS
3776 test -z "$as_dir" && as_dir=.
3777 # Account for people who put trailing slashes in PATH elements.
3778 case $as_dir/ in
3779 ./ | .// | /cC/* | \
3780 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3781 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3782 /usr/ucb/* ) ;;
3784 # OSF1 and SCO ODT 3.0 have their own names for install.
3785 # Don't use installbsd from OSF since it installs stuff as root
3786 # by default.
3787 for ac_prog in ginstall scoinst install; do
3788 for ac_exec_ext in '' $ac_executable_extensions; do
3789 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3790 if test $ac_prog = install &&
3791 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3792 # AIX install. It has an incompatible calling convention.
3794 elif test $ac_prog = install &&
3795 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3796 # program-specific install script used by HP pwplus--don't use.
3798 else
3799 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3800 break 3
3803 done
3804 done
3806 esac
3807 done
3808 IFS=$as_save_IFS
3812 if test "${ac_cv_path_install+set}" = set; then
3813 INSTALL=$ac_cv_path_install
3814 else
3815 # As a last resort, use the slow shell script. Don't cache a
3816 # value for INSTALL within a source directory, because that will
3817 # break other packages using the cache if that directory is
3818 # removed, or if the value is a relative name.
3819 INSTALL=$ac_install_sh
3822 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3823 echo "${ECHO_T}$INSTALL" >&6; }
3825 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3826 # It thinks the first close brace ends the variable substitution.
3827 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3829 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3831 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3833 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3834 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3835 LN_S=$as_ln_s
3836 if test "$LN_S" = "ln -s"; then
3837 { echo "$as_me:$LINENO: result: yes" >&5
3838 echo "${ECHO_T}yes" >&6; }
3839 else
3840 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3841 echo "${ECHO_T}no, using $LN_S" >&6; }
3844 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3845 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3846 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3847 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3848 echo $ECHO_N "(cached) $ECHO_C" >&6
3849 else
3850 cat >conftest.make <<\_ACEOF
3851 SHELL = /bin/sh
3852 all:
3853 @echo '@@@%%%=$(MAKE)=@@@%%%'
3854 _ACEOF
3855 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3856 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3857 *@@@%%%=?*=@@@%%%*)
3858 eval ac_cv_prog_make_${ac_make}_set=yes;;
3860 eval ac_cv_prog_make_${ac_make}_set=no;;
3861 esac
3862 rm -f conftest.make
3864 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3865 { echo "$as_me:$LINENO: result: yes" >&5
3866 echo "${ECHO_T}yes" >&6; }
3867 SET_MAKE=
3868 else
3869 { echo "$as_me:$LINENO: result: no" >&5
3870 echo "${ECHO_T}no" >&6; }
3871 SET_MAKE="MAKE=${MAKE-make}"
3874 if test -n "$ac_tool_prefix"; then
3875 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3876 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3879 if test "${ac_cv_prog_RANLIB+set}" = set; then
3880 echo $ECHO_N "(cached) $ECHO_C" >&6
3881 else
3882 if test -n "$RANLIB"; then
3883 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3884 else
3885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886 for as_dir in $PATH
3888 IFS=$as_save_IFS
3889 test -z "$as_dir" && as_dir=.
3890 for ac_exec_ext in '' $ac_executable_extensions; do
3891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3892 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3894 break 2
3896 done
3897 done
3898 IFS=$as_save_IFS
3902 RANLIB=$ac_cv_prog_RANLIB
3903 if test -n "$RANLIB"; then
3904 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3905 echo "${ECHO_T}$RANLIB" >&6; }
3906 else
3907 { echo "$as_me:$LINENO: result: no" >&5
3908 echo "${ECHO_T}no" >&6; }
3913 if test -z "$ac_cv_prog_RANLIB"; then
3914 ac_ct_RANLIB=$RANLIB
3915 # Extract the first word of "ranlib", so it can be a program name with args.
3916 set dummy ranlib; ac_word=$2
3917 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3919 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3920 echo $ECHO_N "(cached) $ECHO_C" >&6
3921 else
3922 if test -n "$ac_ct_RANLIB"; then
3923 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3924 else
3925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926 for as_dir in $PATH
3928 IFS=$as_save_IFS
3929 test -z "$as_dir" && as_dir=.
3930 for ac_exec_ext in '' $ac_executable_extensions; do
3931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3932 ac_cv_prog_ac_ct_RANLIB="ranlib"
3933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3934 break 2
3936 done
3937 done
3938 IFS=$as_save_IFS
3942 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3943 if test -n "$ac_ct_RANLIB"; then
3944 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3945 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3946 else
3947 { echo "$as_me:$LINENO: result: no" >&5
3948 echo "${ECHO_T}no" >&6; }
3951 if test "x$ac_ct_RANLIB" = x; then
3952 RANLIB=":"
3953 else
3954 case $cross_compiling:$ac_tool_warned in
3955 yes:)
3956 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3957 whose name does not start with the host triplet. If you think this
3958 configuration is useful to you, please write to autoconf@gnu.org." >&5
3959 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3960 whose name does not start with the host triplet. If you think this
3961 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3962 ac_tool_warned=yes ;;
3963 esac
3964 RANLIB=$ac_ct_RANLIB
3966 else
3967 RANLIB="$ac_cv_prog_RANLIB"
3971 for ac_prog in gawk mawk nawk awk
3973 # Extract the first word of "$ac_prog", so it can be a program name with args.
3974 set dummy $ac_prog; ac_word=$2
3975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3977 if test "${ac_cv_prog_AWK+set}" = set; then
3978 echo $ECHO_N "(cached) $ECHO_C" >&6
3979 else
3980 if test -n "$AWK"; then
3981 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3982 else
3983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3984 for as_dir in $PATH
3986 IFS=$as_save_IFS
3987 test -z "$as_dir" && as_dir=.
3988 for ac_exec_ext in '' $ac_executable_extensions; do
3989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3990 ac_cv_prog_AWK="$ac_prog"
3991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3992 break 2
3994 done
3995 done
3996 IFS=$as_save_IFS
4000 AWK=$ac_cv_prog_AWK
4001 if test -n "$AWK"; then
4002 { echo "$as_me:$LINENO: result: $AWK" >&5
4003 echo "${ECHO_T}$AWK" >&6; }
4004 else
4005 { echo "$as_me:$LINENO: result: no" >&5
4006 echo "${ECHO_T}no" >&6; }
4010 test -n "$AWK" && break
4011 done
4014 { echo "$as_me:$LINENO: checking the operating system" >&5
4015 echo $ECHO_N "checking the operating system... $ECHO_C" >&6; }
4017 _os=`uname`
4019 if test `echo $_os | $AWK -F_ '{ print $1 }'` = "CYGWIN"; then
4020 if test "$GCC" = "yes"; then
4021 if test `$CC -dumpmachine | $AWK -F- '{ print $3 }'` = "mingw32"; then
4022 _os="MINGW"
4023 else
4024 _os="CYGWIN"
4026 else
4027 _os="MSVC6"
4032 ## At the moment all except mingw builds are OS_TYPE unix
4033 OS_TYPE=unix
4035 ## The following allows like systems to share settings this is not meant to
4036 ## Imply that these OS are the same thing.
4037 case "$_os" in
4038 "OS/2")
4039 OS_VERSION=os2
4040 CASE_INSENSITIVE_FS=true
4042 "SunOS")
4043 OS_VERSION=solaris
4045 Linux|GNU|GNU/*)
4046 OS_VERSION=linux
4048 "CYGWIN")
4049 OS_VERSION=cygwin
4050 CASE_INSENSITIVE_FS=true
4052 "MINGW")
4053 OS_VERSION=mingw
4054 OS_TYPE=winnt
4055 BUILDINFO="Windows / MinGW"
4056 CASE_INSENSITIVE_FS=true
4058 "MSVC6")
4059 OS_VERSION=msvc6
4060 OS_TYPE=winnt
4061 BUILDINFO="Windows / MS Visual C++"
4062 CASE_INSENSITIVE_FS=true
4064 "Darwin")
4065 OS_VERSION=macosx
4066 # MacOSX is not garuanteed to be case insensitive, assume it's case
4067 # sensitive, see issue 73661 for details.
4069 "FreeBSD")
4070 OS_VERSION=linux
4072 "OSF1")
4073 OS_VERSION=sysvr4
4075 "NetBSD")
4076 OS_VERSION=linux
4078 "IRIX")
4079 OS_VERSION=sysvr4
4081 "IRIX64")
4082 OS_VERSION=sysvr4
4084 "AIX")
4085 OS_VERSION=sysvr4
4087 "OpenBSD")
4088 OS_VERSION=linux
4091 { { echo "$as_me:$LINENO: error: $_os operating system is not suitable to build dmake!" >&5
4092 echo "$as_me: error: $_os operating system is not suitable to build dmake!" >&2;}
4093 { (exit 1); exit 1; }; }
4095 esac
4097 { echo "$as_me:$LINENO: result: checked ($_os)" >&5
4098 echo "${ECHO_T}checked ($_os)" >&6; }
4102 if test x$OS_TYPE = xunix; then
4103 OSTYPEUNIX_TRUE=
4104 OSTYPEUNIX_FALSE='#'
4105 else
4106 OSTYPEUNIX_TRUE='#'
4107 OSTYPEUNIX_FALSE=
4112 if test x$OS_TYPE = xwinnt; then
4113 OSTYPEWIN32_TRUE=
4114 OSTYPEWIN32_FALSE='#'
4115 else
4116 OSTYPEWIN32_TRUE='#'
4117 OSTYPEWIN32_FALSE=
4124 cat >>confdefs.h <<_ACEOF
4125 #define BUILDINFO "$BUILDINFO"
4126 _ACEOF
4129 if test x$CASE_INSENSITIVE_FS = xtrue; then
4131 cat >>confdefs.h <<\_ACEOF
4132 #define CASE_INSENSITIVE_FS 1
4133 _ACEOF
4137 { echo "$as_me:$LINENO: checking whether to do a build with dbug macros" >&5
4138 echo $ECHO_N "checking whether to do a build with dbug macros... $ECHO_C" >&6; }
4139 if test -n "$enable_dbug" && test "$enable_dbug" != "no"; then
4140 DBUG="1"
4141 CPPFLAGS="$CPPFLAGS -DDBUG=1 -I\$(top_srcdir)/dbug/dbug"
4142 { echo "$as_me:$LINENO: result: yes" >&5
4143 echo "${ECHO_T}yes" >&6; }
4144 else
4145 DBUG=""
4146 { echo "$as_me:$LINENO: result: no" >&5
4147 echo "${ECHO_T}no" >&6; }
4151 if test -n "$DBUG"; then
4152 DBUG_TRUE=
4153 DBUG_FALSE='#'
4154 else
4155 DBUG_TRUE='#'
4156 DBUG_FALSE=
4160 { echo "$as_me:$LINENO: checking if spawn shall be used" >&5
4161 echo $ECHO_N "checking if spawn shall be used... $ECHO_C" >&6; }
4162 if test -n "$enable_spawn" && test "$enable_spawn" != "no"; then
4164 cat >>confdefs.h <<\_ACEOF
4165 #define ENABLE_SPAWN 1
4166 _ACEOF
4168 { echo "$as_me:$LINENO: result: yes" >&5
4169 echo "${ECHO_T}yes" >&6; }
4170 else
4171 { echo "$as_me:$LINENO: result: no" >&5
4172 echo "${ECHO_T}no" >&6; }
4175 eval dmakerootprefix="$datarootdir"
4176 # $datadir is ${prefix}/share if not overridden
4177 test "x$dmakerootprefix" != "x${dmakerootprefix##NONE}" && dmakerootprefix=${ac_default_prefix}/share
4179 if test x$OS_TYPE = xunix; then
4180 DMAKEROOT_H_LINE1='"DMAKEROOT := '${dmakerootprefix}'/startup",'
4184 ac_config_files="$ac_config_files dmakeroot.h Makefile startup/config.mk startup/Makefile startup/unix/Makefile startup/unix/linux/Makefile startup/unix/solaris/Makefile startup/unix/macosx/Makefile startup/unix/sysvr4/Makefile startup/unix/cygwin/Makefile startup/unix/os2/Makefile startup/winnt/Makefile startup/winnt/mingw/Makefile startup/winnt/msvc6/Makefile tests/Makefile"
4188 #AM_PROG_LIBTOOL
4196 ac_header_dirent=no
4197 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4198 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4199 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4200 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
4201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4202 echo $ECHO_N "(cached) $ECHO_C" >&6
4203 else
4204 cat >conftest.$ac_ext <<_ACEOF
4205 /* confdefs.h. */
4206 _ACEOF
4207 cat confdefs.h >>conftest.$ac_ext
4208 cat >>conftest.$ac_ext <<_ACEOF
4209 /* end confdefs.h. */
4210 #include <sys/types.h>
4211 #include <$ac_hdr>
4214 main ()
4216 if ((DIR *) 0)
4217 return 0;
4219 return 0;
4221 _ACEOF
4222 rm -f conftest.$ac_objext
4223 if { (ac_try="$ac_compile"
4224 case "(($ac_try" in
4225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4226 *) ac_try_echo=$ac_try;;
4227 esac
4228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4229 (eval "$ac_compile") 2>conftest.er1
4230 ac_status=$?
4231 grep -v '^ *+' conftest.er1 >conftest.err
4232 rm -f conftest.er1
4233 cat conftest.err >&5
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); } && {
4236 test -z "$ac_c_werror_flag" ||
4237 test ! -s conftest.err
4238 } && test -s conftest.$ac_objext; then
4239 eval "$as_ac_Header=yes"
4240 else
4241 echo "$as_me: failed program was:" >&5
4242 sed 's/^/| /' conftest.$ac_ext >&5
4244 eval "$as_ac_Header=no"
4247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4249 ac_res=`eval echo '${'$as_ac_Header'}'`
4250 { echo "$as_me:$LINENO: result: $ac_res" >&5
4251 echo "${ECHO_T}$ac_res" >&6; }
4252 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4253 cat >>confdefs.h <<_ACEOF
4254 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4255 _ACEOF
4257 ac_header_dirent=$ac_hdr; break
4260 done
4261 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4262 if test $ac_header_dirent = dirent.h; then
4263 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4264 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4265 if test "${ac_cv_search_opendir+set}" = set; then
4266 echo $ECHO_N "(cached) $ECHO_C" >&6
4267 else
4268 ac_func_search_save_LIBS=$LIBS
4269 cat >conftest.$ac_ext <<_ACEOF
4270 /* confdefs.h. */
4271 _ACEOF
4272 cat confdefs.h >>conftest.$ac_ext
4273 cat >>conftest.$ac_ext <<_ACEOF
4274 /* end confdefs.h. */
4276 /* Override any GCC internal prototype to avoid an error.
4277 Use char because int might match the return type of a GCC
4278 builtin and then its argument prototype would still apply. */
4279 #ifdef __cplusplus
4280 extern "C"
4281 #endif
4282 char opendir ();
4284 main ()
4286 return opendir ();
4288 return 0;
4290 _ACEOF
4291 for ac_lib in '' dir; do
4292 if test -z "$ac_lib"; then
4293 ac_res="none required"
4294 else
4295 ac_res=-l$ac_lib
4296 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4298 rm -f conftest.$ac_objext conftest$ac_exeext
4299 if { (ac_try="$ac_link"
4300 case "(($ac_try" in
4301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4302 *) ac_try_echo=$ac_try;;
4303 esac
4304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4305 (eval "$ac_link") 2>conftest.er1
4306 ac_status=$?
4307 grep -v '^ *+' conftest.er1 >conftest.err
4308 rm -f conftest.er1
4309 cat conftest.err >&5
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); } && {
4312 test -z "$ac_c_werror_flag" ||
4313 test ! -s conftest.err
4314 } && test -s conftest$ac_exeext &&
4315 $as_test_x conftest$ac_exeext; then
4316 ac_cv_search_opendir=$ac_res
4317 else
4318 echo "$as_me: failed program was:" >&5
4319 sed 's/^/| /' conftest.$ac_ext >&5
4324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4325 conftest$ac_exeext
4326 if test "${ac_cv_search_opendir+set}" = set; then
4327 break
4329 done
4330 if test "${ac_cv_search_opendir+set}" = set; then
4332 else
4333 ac_cv_search_opendir=no
4335 rm conftest.$ac_ext
4336 LIBS=$ac_func_search_save_LIBS
4338 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4339 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4340 ac_res=$ac_cv_search_opendir
4341 if test "$ac_res" != no; then
4342 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4346 else
4347 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4348 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4349 if test "${ac_cv_search_opendir+set}" = set; then
4350 echo $ECHO_N "(cached) $ECHO_C" >&6
4351 else
4352 ac_func_search_save_LIBS=$LIBS
4353 cat >conftest.$ac_ext <<_ACEOF
4354 /* confdefs.h. */
4355 _ACEOF
4356 cat confdefs.h >>conftest.$ac_ext
4357 cat >>conftest.$ac_ext <<_ACEOF
4358 /* end confdefs.h. */
4360 /* Override any GCC internal prototype to avoid an error.
4361 Use char because int might match the return type of a GCC
4362 builtin and then its argument prototype would still apply. */
4363 #ifdef __cplusplus
4364 extern "C"
4365 #endif
4366 char opendir ();
4368 main ()
4370 return opendir ();
4372 return 0;
4374 _ACEOF
4375 for ac_lib in '' x; do
4376 if test -z "$ac_lib"; then
4377 ac_res="none required"
4378 else
4379 ac_res=-l$ac_lib
4380 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4382 rm -f conftest.$ac_objext conftest$ac_exeext
4383 if { (ac_try="$ac_link"
4384 case "(($ac_try" in
4385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4386 *) ac_try_echo=$ac_try;;
4387 esac
4388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4389 (eval "$ac_link") 2>conftest.er1
4390 ac_status=$?
4391 grep -v '^ *+' conftest.er1 >conftest.err
4392 rm -f conftest.er1
4393 cat conftest.err >&5
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); } && {
4396 test -z "$ac_c_werror_flag" ||
4397 test ! -s conftest.err
4398 } && test -s conftest$ac_exeext &&
4399 $as_test_x conftest$ac_exeext; then
4400 ac_cv_search_opendir=$ac_res
4401 else
4402 echo "$as_me: failed program was:" >&5
4403 sed 's/^/| /' conftest.$ac_ext >&5
4408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4409 conftest$ac_exeext
4410 if test "${ac_cv_search_opendir+set}" = set; then
4411 break
4413 done
4414 if test "${ac_cv_search_opendir+set}" = set; then
4416 else
4417 ac_cv_search_opendir=no
4419 rm conftest.$ac_ext
4420 LIBS=$ac_func_search_save_LIBS
4422 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4423 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4424 ac_res=$ac_cv_search_opendir
4425 if test "$ac_res" != no; then
4426 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4433 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4434 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4435 if test "${ac_cv_path_GREP+set}" = set; then
4436 echo $ECHO_N "(cached) $ECHO_C" >&6
4437 else
4438 # Extract the first word of "grep ggrep" to use in msg output
4439 if test -z "$GREP"; then
4440 set dummy grep ggrep; ac_prog_name=$2
4441 if test "${ac_cv_path_GREP+set}" = set; then
4442 echo $ECHO_N "(cached) $ECHO_C" >&6
4443 else
4444 ac_path_GREP_found=false
4445 # Loop through the user's path and test for each of PROGNAME-LIST
4446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4449 IFS=$as_save_IFS
4450 test -z "$as_dir" && as_dir=.
4451 for ac_prog in grep ggrep; do
4452 for ac_exec_ext in '' $ac_executable_extensions; do
4453 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4454 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4455 # Check for GNU ac_path_GREP and select it if it is found.
4456 # Check for GNU $ac_path_GREP
4457 case `"$ac_path_GREP" --version 2>&1` in
4458 *GNU*)
4459 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4461 ac_count=0
4462 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4463 while :
4465 cat "conftest.in" "conftest.in" >"conftest.tmp"
4466 mv "conftest.tmp" "conftest.in"
4467 cp "conftest.in" "conftest.nl"
4468 echo 'GREP' >> "conftest.nl"
4469 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4470 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4471 ac_count=`expr $ac_count + 1`
4472 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4473 # Best one so far, save it but keep looking for a better one
4474 ac_cv_path_GREP="$ac_path_GREP"
4475 ac_path_GREP_max=$ac_count
4477 # 10*(2^10) chars as input seems more than enough
4478 test $ac_count -gt 10 && break
4479 done
4480 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4481 esac
4484 $ac_path_GREP_found && break 3
4485 done
4486 done
4488 done
4489 IFS=$as_save_IFS
4494 GREP="$ac_cv_path_GREP"
4495 if test -z "$GREP"; then
4496 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4497 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4498 { (exit 1); exit 1; }; }
4501 else
4502 ac_cv_path_GREP=$GREP
4507 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4508 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4509 GREP="$ac_cv_path_GREP"
4512 { echo "$as_me:$LINENO: checking for egrep" >&5
4513 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4514 if test "${ac_cv_path_EGREP+set}" = set; then
4515 echo $ECHO_N "(cached) $ECHO_C" >&6
4516 else
4517 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4518 then ac_cv_path_EGREP="$GREP -E"
4519 else
4520 # Extract the first word of "egrep" to use in msg output
4521 if test -z "$EGREP"; then
4522 set dummy egrep; ac_prog_name=$2
4523 if test "${ac_cv_path_EGREP+set}" = set; then
4524 echo $ECHO_N "(cached) $ECHO_C" >&6
4525 else
4526 ac_path_EGREP_found=false
4527 # Loop through the user's path and test for each of PROGNAME-LIST
4528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4531 IFS=$as_save_IFS
4532 test -z "$as_dir" && as_dir=.
4533 for ac_prog in egrep; do
4534 for ac_exec_ext in '' $ac_executable_extensions; do
4535 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4536 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4537 # Check for GNU ac_path_EGREP and select it if it is found.
4538 # Check for GNU $ac_path_EGREP
4539 case `"$ac_path_EGREP" --version 2>&1` in
4540 *GNU*)
4541 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4543 ac_count=0
4544 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4545 while :
4547 cat "conftest.in" "conftest.in" >"conftest.tmp"
4548 mv "conftest.tmp" "conftest.in"
4549 cp "conftest.in" "conftest.nl"
4550 echo 'EGREP' >> "conftest.nl"
4551 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4552 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4553 ac_count=`expr $ac_count + 1`
4554 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4555 # Best one so far, save it but keep looking for a better one
4556 ac_cv_path_EGREP="$ac_path_EGREP"
4557 ac_path_EGREP_max=$ac_count
4559 # 10*(2^10) chars as input seems more than enough
4560 test $ac_count -gt 10 && break
4561 done
4562 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4563 esac
4566 $ac_path_EGREP_found && break 3
4567 done
4568 done
4570 done
4571 IFS=$as_save_IFS
4576 EGREP="$ac_cv_path_EGREP"
4577 if test -z "$EGREP"; then
4578 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4579 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4580 { (exit 1); exit 1; }; }
4583 else
4584 ac_cv_path_EGREP=$EGREP
4590 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4591 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4592 EGREP="$ac_cv_path_EGREP"
4595 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4596 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4597 if test "${ac_cv_header_stdc+set}" = set; then
4598 echo $ECHO_N "(cached) $ECHO_C" >&6
4599 else
4600 cat >conftest.$ac_ext <<_ACEOF
4601 /* confdefs.h. */
4602 _ACEOF
4603 cat confdefs.h >>conftest.$ac_ext
4604 cat >>conftest.$ac_ext <<_ACEOF
4605 /* end confdefs.h. */
4606 #include <stdlib.h>
4607 #include <stdarg.h>
4608 #include <string.h>
4609 #include <float.h>
4612 main ()
4616 return 0;
4618 _ACEOF
4619 rm -f conftest.$ac_objext
4620 if { (ac_try="$ac_compile"
4621 case "(($ac_try" in
4622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4623 *) ac_try_echo=$ac_try;;
4624 esac
4625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4626 (eval "$ac_compile") 2>conftest.er1
4627 ac_status=$?
4628 grep -v '^ *+' conftest.er1 >conftest.err
4629 rm -f conftest.er1
4630 cat conftest.err >&5
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); } && {
4633 test -z "$ac_c_werror_flag" ||
4634 test ! -s conftest.err
4635 } && test -s conftest.$ac_objext; then
4636 ac_cv_header_stdc=yes
4637 else
4638 echo "$as_me: failed program was:" >&5
4639 sed 's/^/| /' conftest.$ac_ext >&5
4641 ac_cv_header_stdc=no
4644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4646 if test $ac_cv_header_stdc = yes; then
4647 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4648 cat >conftest.$ac_ext <<_ACEOF
4649 /* confdefs.h. */
4650 _ACEOF
4651 cat confdefs.h >>conftest.$ac_ext
4652 cat >>conftest.$ac_ext <<_ACEOF
4653 /* end confdefs.h. */
4654 #include <string.h>
4656 _ACEOF
4657 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4658 $EGREP "memchr" >/dev/null 2>&1; then
4660 else
4661 ac_cv_header_stdc=no
4663 rm -f conftest*
4667 if test $ac_cv_header_stdc = yes; then
4668 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4669 cat >conftest.$ac_ext <<_ACEOF
4670 /* confdefs.h. */
4671 _ACEOF
4672 cat confdefs.h >>conftest.$ac_ext
4673 cat >>conftest.$ac_ext <<_ACEOF
4674 /* end confdefs.h. */
4675 #include <stdlib.h>
4677 _ACEOF
4678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4679 $EGREP "free" >/dev/null 2>&1; then
4681 else
4682 ac_cv_header_stdc=no
4684 rm -f conftest*
4688 if test $ac_cv_header_stdc = yes; then
4689 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4690 if test "$cross_compiling" = yes; then
4692 else
4693 cat >conftest.$ac_ext <<_ACEOF
4694 /* confdefs.h. */
4695 _ACEOF
4696 cat confdefs.h >>conftest.$ac_ext
4697 cat >>conftest.$ac_ext <<_ACEOF
4698 /* end confdefs.h. */
4699 #include <ctype.h>
4700 #include <stdlib.h>
4701 #if ((' ' & 0x0FF) == 0x020)
4702 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4703 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4704 #else
4705 # define ISLOWER(c) \
4706 (('a' <= (c) && (c) <= 'i') \
4707 || ('j' <= (c) && (c) <= 'r') \
4708 || ('s' <= (c) && (c) <= 'z'))
4709 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4710 #endif
4712 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4714 main ()
4716 int i;
4717 for (i = 0; i < 256; i++)
4718 if (XOR (islower (i), ISLOWER (i))
4719 || toupper (i) != TOUPPER (i))
4720 return 2;
4721 return 0;
4723 _ACEOF
4724 rm -f conftest$ac_exeext
4725 if { (ac_try="$ac_link"
4726 case "(($ac_try" in
4727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4728 *) ac_try_echo=$ac_try;;
4729 esac
4730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4731 (eval "$ac_link") 2>&5
4732 ac_status=$?
4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4735 { (case "(($ac_try" in
4736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4737 *) ac_try_echo=$ac_try;;
4738 esac
4739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4740 (eval "$ac_try") 2>&5
4741 ac_status=$?
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); }; }; then
4745 else
4746 echo "$as_me: program exited with status $ac_status" >&5
4747 echo "$as_me: failed program was:" >&5
4748 sed 's/^/| /' conftest.$ac_ext >&5
4750 ( exit $ac_status )
4751 ac_cv_header_stdc=no
4753 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4759 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4760 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4761 if test $ac_cv_header_stdc = yes; then
4763 cat >>confdefs.h <<\_ACEOF
4764 #define STDC_HEADERS 1
4765 _ACEOF
4769 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4779 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4780 inttypes.h stdint.h unistd.h
4782 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4783 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4786 echo $ECHO_N "(cached) $ECHO_C" >&6
4787 else
4788 cat >conftest.$ac_ext <<_ACEOF
4789 /* confdefs.h. */
4790 _ACEOF
4791 cat confdefs.h >>conftest.$ac_ext
4792 cat >>conftest.$ac_ext <<_ACEOF
4793 /* end confdefs.h. */
4794 $ac_includes_default
4796 #include <$ac_header>
4797 _ACEOF
4798 rm -f conftest.$ac_objext
4799 if { (ac_try="$ac_compile"
4800 case "(($ac_try" in
4801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4802 *) ac_try_echo=$ac_try;;
4803 esac
4804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4805 (eval "$ac_compile") 2>conftest.er1
4806 ac_status=$?
4807 grep -v '^ *+' conftest.er1 >conftest.err
4808 rm -f conftest.er1
4809 cat conftest.err >&5
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); } && {
4812 test -z "$ac_c_werror_flag" ||
4813 test ! -s conftest.err
4814 } && test -s conftest.$ac_objext; then
4815 eval "$as_ac_Header=yes"
4816 else
4817 echo "$as_me: failed program was:" >&5
4818 sed 's/^/| /' conftest.$ac_ext >&5
4820 eval "$as_ac_Header=no"
4823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4825 ac_res=`eval echo '${'$as_ac_Header'}'`
4826 { echo "$as_me:$LINENO: result: $ac_res" >&5
4827 echo "${ECHO_T}$ac_res" >&6; }
4828 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4829 cat >>confdefs.h <<_ACEOF
4830 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4831 _ACEOF
4835 done
4850 for ac_header in fcntl.h limits.h strings.h sys/types.h sys/stat.h unistd.h errno.h utime.h spawn.h wait.h sys/wait.h sys/time.h
4852 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4854 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4857 echo $ECHO_N "(cached) $ECHO_C" >&6
4859 ac_res=`eval echo '${'$as_ac_Header'}'`
4860 { echo "$as_me:$LINENO: result: $ac_res" >&5
4861 echo "${ECHO_T}$ac_res" >&6; }
4862 else
4863 # Is the header compilable?
4864 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4865 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4866 cat >conftest.$ac_ext <<_ACEOF
4867 /* confdefs.h. */
4868 _ACEOF
4869 cat confdefs.h >>conftest.$ac_ext
4870 cat >>conftest.$ac_ext <<_ACEOF
4871 /* end confdefs.h. */
4872 $ac_includes_default
4873 #include <$ac_header>
4874 _ACEOF
4875 rm -f conftest.$ac_objext
4876 if { (ac_try="$ac_compile"
4877 case "(($ac_try" in
4878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4879 *) ac_try_echo=$ac_try;;
4880 esac
4881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4882 (eval "$ac_compile") 2>conftest.er1
4883 ac_status=$?
4884 grep -v '^ *+' conftest.er1 >conftest.err
4885 rm -f conftest.er1
4886 cat conftest.err >&5
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); } && {
4889 test -z "$ac_c_werror_flag" ||
4890 test ! -s conftest.err
4891 } && test -s conftest.$ac_objext; then
4892 ac_header_compiler=yes
4893 else
4894 echo "$as_me: failed program was:" >&5
4895 sed 's/^/| /' conftest.$ac_ext >&5
4897 ac_header_compiler=no
4900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4901 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4902 echo "${ECHO_T}$ac_header_compiler" >&6; }
4904 # Is the header present?
4905 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4906 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4907 cat >conftest.$ac_ext <<_ACEOF
4908 /* confdefs.h. */
4909 _ACEOF
4910 cat confdefs.h >>conftest.$ac_ext
4911 cat >>conftest.$ac_ext <<_ACEOF
4912 /* end confdefs.h. */
4913 #include <$ac_header>
4914 _ACEOF
4915 if { (ac_try="$ac_cpp conftest.$ac_ext"
4916 case "(($ac_try" in
4917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4918 *) ac_try_echo=$ac_try;;
4919 esac
4920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4921 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4922 ac_status=$?
4923 grep -v '^ *+' conftest.er1 >conftest.err
4924 rm -f conftest.er1
4925 cat conftest.err >&5
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); } >/dev/null && {
4928 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4929 test ! -s conftest.err
4930 }; then
4931 ac_header_preproc=yes
4932 else
4933 echo "$as_me: failed program was:" >&5
4934 sed 's/^/| /' conftest.$ac_ext >&5
4936 ac_header_preproc=no
4939 rm -f conftest.err conftest.$ac_ext
4940 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4941 echo "${ECHO_T}$ac_header_preproc" >&6; }
4943 # So? What about this header?
4944 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4945 yes:no: )
4946 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4947 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4949 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4950 ac_header_preproc=yes
4952 no:yes:* )
4953 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4954 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4955 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4956 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4957 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4958 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4959 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4960 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4961 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4962 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4963 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4964 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4967 esac
4968 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4969 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4970 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4971 echo $ECHO_N "(cached) $ECHO_C" >&6
4972 else
4973 eval "$as_ac_Header=\$ac_header_preproc"
4975 ac_res=`eval echo '${'$as_ac_Header'}'`
4976 { echo "$as_me:$LINENO: result: $ac_res" >&5
4977 echo "${ECHO_T}$ac_res" >&6; }
4980 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4981 cat >>confdefs.h <<_ACEOF
4982 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4983 _ACEOF
4987 done
4990 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4991 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4992 if test "${ac_cv_c_const+set}" = set; then
4993 echo $ECHO_N "(cached) $ECHO_C" >&6
4994 else
4995 cat >conftest.$ac_ext <<_ACEOF
4996 /* confdefs.h. */
4997 _ACEOF
4998 cat confdefs.h >>conftest.$ac_ext
4999 cat >>conftest.$ac_ext <<_ACEOF
5000 /* end confdefs.h. */
5003 main ()
5005 /* FIXME: Include the comments suggested by Paul. */
5006 #ifndef __cplusplus
5007 /* Ultrix mips cc rejects this. */
5008 typedef int charset[2];
5009 const charset cs;
5010 /* SunOS 4.1.1 cc rejects this. */
5011 char const *const *pcpcc;
5012 char **ppc;
5013 /* NEC SVR4.0.2 mips cc rejects this. */
5014 struct point {int x, y;};
5015 static struct point const zero = {0,0};
5016 /* AIX XL C 1.02.0.0 rejects this.
5017 It does not let you subtract one const X* pointer from another in
5018 an arm of an if-expression whose if-part is not a constant
5019 expression */
5020 const char *g = "string";
5021 pcpcc = &g + (g ? g-g : 0);
5022 /* HPUX 7.0 cc rejects these. */
5023 ++pcpcc;
5024 ppc = (char**) pcpcc;
5025 pcpcc = (char const *const *) ppc;
5026 { /* SCO 3.2v4 cc rejects this. */
5027 char *t;
5028 char const *s = 0 ? (char *) 0 : (char const *) 0;
5030 *t++ = 0;
5031 if (s) return 0;
5033 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5034 int x[] = {25, 17};
5035 const int *foo = &x[0];
5036 ++foo;
5038 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5039 typedef const int *iptr;
5040 iptr p = 0;
5041 ++p;
5043 { /* AIX XL C 1.02.0.0 rejects this saying
5044 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5045 struct s { int j; const int *ap[3]; };
5046 struct s *b; b->j = 5;
5048 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5049 const int foo = 10;
5050 if (!foo) return 0;
5052 return !cs[0] && !zero.x;
5053 #endif
5056 return 0;
5058 _ACEOF
5059 rm -f conftest.$ac_objext
5060 if { (ac_try="$ac_compile"
5061 case "(($ac_try" in
5062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5063 *) ac_try_echo=$ac_try;;
5064 esac
5065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5066 (eval "$ac_compile") 2>conftest.er1
5067 ac_status=$?
5068 grep -v '^ *+' conftest.er1 >conftest.err
5069 rm -f conftest.er1
5070 cat conftest.err >&5
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); } && {
5073 test -z "$ac_c_werror_flag" ||
5074 test ! -s conftest.err
5075 } && test -s conftest.$ac_objext; then
5076 ac_cv_c_const=yes
5077 else
5078 echo "$as_me: failed program was:" >&5
5079 sed 's/^/| /' conftest.$ac_ext >&5
5081 ac_cv_c_const=no
5084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5086 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5087 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5088 if test $ac_cv_c_const = no; then
5090 cat >>confdefs.h <<\_ACEOF
5091 #define const
5092 _ACEOF
5096 { echo "$as_me:$LINENO: checking for off_t" >&5
5097 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5098 if test "${ac_cv_type_off_t+set}" = set; then
5099 echo $ECHO_N "(cached) $ECHO_C" >&6
5100 else
5101 cat >conftest.$ac_ext <<_ACEOF
5102 /* confdefs.h. */
5103 _ACEOF
5104 cat confdefs.h >>conftest.$ac_ext
5105 cat >>conftest.$ac_ext <<_ACEOF
5106 /* end confdefs.h. */
5107 $ac_includes_default
5108 typedef off_t ac__type_new_;
5110 main ()
5112 if ((ac__type_new_ *) 0)
5113 return 0;
5114 if (sizeof (ac__type_new_))
5115 return 0;
5117 return 0;
5119 _ACEOF
5120 rm -f conftest.$ac_objext
5121 if { (ac_try="$ac_compile"
5122 case "(($ac_try" in
5123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5124 *) ac_try_echo=$ac_try;;
5125 esac
5126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5127 (eval "$ac_compile") 2>conftest.er1
5128 ac_status=$?
5129 grep -v '^ *+' conftest.er1 >conftest.err
5130 rm -f conftest.er1
5131 cat conftest.err >&5
5132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133 (exit $ac_status); } && {
5134 test -z "$ac_c_werror_flag" ||
5135 test ! -s conftest.err
5136 } && test -s conftest.$ac_objext; then
5137 ac_cv_type_off_t=yes
5138 else
5139 echo "$as_me: failed program was:" >&5
5140 sed 's/^/| /' conftest.$ac_ext >&5
5142 ac_cv_type_off_t=no
5145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5147 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5148 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5149 if test $ac_cv_type_off_t = yes; then
5151 else
5153 cat >>confdefs.h <<_ACEOF
5154 #define off_t long int
5155 _ACEOF
5159 { echo "$as_me:$LINENO: checking for size_t" >&5
5160 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5161 if test "${ac_cv_type_size_t+set}" = set; then
5162 echo $ECHO_N "(cached) $ECHO_C" >&6
5163 else
5164 cat >conftest.$ac_ext <<_ACEOF
5165 /* confdefs.h. */
5166 _ACEOF
5167 cat confdefs.h >>conftest.$ac_ext
5168 cat >>conftest.$ac_ext <<_ACEOF
5169 /* end confdefs.h. */
5170 $ac_includes_default
5171 typedef size_t ac__type_new_;
5173 main ()
5175 if ((ac__type_new_ *) 0)
5176 return 0;
5177 if (sizeof (ac__type_new_))
5178 return 0;
5180 return 0;
5182 _ACEOF
5183 rm -f conftest.$ac_objext
5184 if { (ac_try="$ac_compile"
5185 case "(($ac_try" in
5186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5187 *) ac_try_echo=$ac_try;;
5188 esac
5189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5190 (eval "$ac_compile") 2>conftest.er1
5191 ac_status=$?
5192 grep -v '^ *+' conftest.er1 >conftest.err
5193 rm -f conftest.er1
5194 cat conftest.err >&5
5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); } && {
5197 test -z "$ac_c_werror_flag" ||
5198 test ! -s conftest.err
5199 } && test -s conftest.$ac_objext; then
5200 ac_cv_type_size_t=yes
5201 else
5202 echo "$as_me: failed program was:" >&5
5203 sed 's/^/| /' conftest.$ac_ext >&5
5205 ac_cv_type_size_t=no
5208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5210 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5211 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5212 if test $ac_cv_type_size_t = yes; then
5214 else
5216 cat >>confdefs.h <<_ACEOF
5217 #define size_t unsigned int
5218 _ACEOF
5222 { echo "$as_me:$LINENO: checking for int8" >&5
5223 echo $ECHO_N "checking for int8... $ECHO_C" >&6; }
5224 if test "${ac_cv_type_int8+set}" = set; then
5225 echo $ECHO_N "(cached) $ECHO_C" >&6
5226 else
5227 cat >conftest.$ac_ext <<_ACEOF
5228 /* confdefs.h. */
5229 _ACEOF
5230 cat confdefs.h >>conftest.$ac_ext
5231 cat >>conftest.$ac_ext <<_ACEOF
5232 /* end confdefs.h. */
5233 $ac_includes_default
5234 typedef int8 ac__type_new_;
5236 main ()
5238 if ((ac__type_new_ *) 0)
5239 return 0;
5240 if (sizeof (ac__type_new_))
5241 return 0;
5243 return 0;
5245 _ACEOF
5246 rm -f conftest.$ac_objext
5247 if { (ac_try="$ac_compile"
5248 case "(($ac_try" in
5249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5250 *) ac_try_echo=$ac_try;;
5251 esac
5252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5253 (eval "$ac_compile") 2>conftest.er1
5254 ac_status=$?
5255 grep -v '^ *+' conftest.er1 >conftest.err
5256 rm -f conftest.er1
5257 cat conftest.err >&5
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); } && {
5260 test -z "$ac_c_werror_flag" ||
5261 test ! -s conftest.err
5262 } && test -s conftest.$ac_objext; then
5263 ac_cv_type_int8=yes
5264 else
5265 echo "$as_me: failed program was:" >&5
5266 sed 's/^/| /' conftest.$ac_ext >&5
5268 ac_cv_type_int8=no
5271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5273 { echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
5274 echo "${ECHO_T}$ac_cv_type_int8" >&6; }
5275 if test $ac_cv_type_int8 = yes; then
5277 cat >>confdefs.h <<_ACEOF
5278 #define HAVE_INT8 1
5279 _ACEOF
5284 { echo "$as_me:$LINENO: checking for uint8" >&5
5285 echo $ECHO_N "checking for uint8... $ECHO_C" >&6; }
5286 if test "${ac_cv_type_uint8+set}" = set; then
5287 echo $ECHO_N "(cached) $ECHO_C" >&6
5288 else
5289 cat >conftest.$ac_ext <<_ACEOF
5290 /* confdefs.h. */
5291 _ACEOF
5292 cat confdefs.h >>conftest.$ac_ext
5293 cat >>conftest.$ac_ext <<_ACEOF
5294 /* end confdefs.h. */
5295 $ac_includes_default
5296 typedef uint8 ac__type_new_;
5298 main ()
5300 if ((ac__type_new_ *) 0)
5301 return 0;
5302 if (sizeof (ac__type_new_))
5303 return 0;
5305 return 0;
5307 _ACEOF
5308 rm -f conftest.$ac_objext
5309 if { (ac_try="$ac_compile"
5310 case "(($ac_try" in
5311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5312 *) ac_try_echo=$ac_try;;
5313 esac
5314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5315 (eval "$ac_compile") 2>conftest.er1
5316 ac_status=$?
5317 grep -v '^ *+' conftest.er1 >conftest.err
5318 rm -f conftest.er1
5319 cat conftest.err >&5
5320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321 (exit $ac_status); } && {
5322 test -z "$ac_c_werror_flag" ||
5323 test ! -s conftest.err
5324 } && test -s conftest.$ac_objext; then
5325 ac_cv_type_uint8=yes
5326 else
5327 echo "$as_me: failed program was:" >&5
5328 sed 's/^/| /' conftest.$ac_ext >&5
5330 ac_cv_type_uint8=no
5333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5335 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
5336 echo "${ECHO_T}$ac_cv_type_uint8" >&6; }
5337 if test $ac_cv_type_uint8 = yes; then
5339 cat >>confdefs.h <<_ACEOF
5340 #define HAVE_UINT8 1
5341 _ACEOF
5346 { echo "$as_me:$LINENO: checking for int16" >&5
5347 echo $ECHO_N "checking for int16... $ECHO_C" >&6; }
5348 if test "${ac_cv_type_int16+set}" = set; then
5349 echo $ECHO_N "(cached) $ECHO_C" >&6
5350 else
5351 cat >conftest.$ac_ext <<_ACEOF
5352 /* confdefs.h. */
5353 _ACEOF
5354 cat confdefs.h >>conftest.$ac_ext
5355 cat >>conftest.$ac_ext <<_ACEOF
5356 /* end confdefs.h. */
5357 $ac_includes_default
5358 typedef int16 ac__type_new_;
5360 main ()
5362 if ((ac__type_new_ *) 0)
5363 return 0;
5364 if (sizeof (ac__type_new_))
5365 return 0;
5367 return 0;
5369 _ACEOF
5370 rm -f conftest.$ac_objext
5371 if { (ac_try="$ac_compile"
5372 case "(($ac_try" in
5373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5374 *) ac_try_echo=$ac_try;;
5375 esac
5376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5377 (eval "$ac_compile") 2>conftest.er1
5378 ac_status=$?
5379 grep -v '^ *+' conftest.er1 >conftest.err
5380 rm -f conftest.er1
5381 cat conftest.err >&5
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); } && {
5384 test -z "$ac_c_werror_flag" ||
5385 test ! -s conftest.err
5386 } && test -s conftest.$ac_objext; then
5387 ac_cv_type_int16=yes
5388 else
5389 echo "$as_me: failed program was:" >&5
5390 sed 's/^/| /' conftest.$ac_ext >&5
5392 ac_cv_type_int16=no
5395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5397 { echo "$as_me:$LINENO: result: $ac_cv_type_int16" >&5
5398 echo "${ECHO_T}$ac_cv_type_int16" >&6; }
5399 if test $ac_cv_type_int16 = yes; then
5401 cat >>confdefs.h <<_ACEOF
5402 #define HAVE_INT16 1
5403 _ACEOF
5408 { echo "$as_me:$LINENO: checking for uint16" >&5
5409 echo $ECHO_N "checking for uint16... $ECHO_C" >&6; }
5410 if test "${ac_cv_type_uint16+set}" = set; then
5411 echo $ECHO_N "(cached) $ECHO_C" >&6
5412 else
5413 cat >conftest.$ac_ext <<_ACEOF
5414 /* confdefs.h. */
5415 _ACEOF
5416 cat confdefs.h >>conftest.$ac_ext
5417 cat >>conftest.$ac_ext <<_ACEOF
5418 /* end confdefs.h. */
5419 $ac_includes_default
5420 typedef uint16 ac__type_new_;
5422 main ()
5424 if ((ac__type_new_ *) 0)
5425 return 0;
5426 if (sizeof (ac__type_new_))
5427 return 0;
5429 return 0;
5431 _ACEOF
5432 rm -f conftest.$ac_objext
5433 if { (ac_try="$ac_compile"
5434 case "(($ac_try" in
5435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5436 *) ac_try_echo=$ac_try;;
5437 esac
5438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5439 (eval "$ac_compile") 2>conftest.er1
5440 ac_status=$?
5441 grep -v '^ *+' conftest.er1 >conftest.err
5442 rm -f conftest.er1
5443 cat conftest.err >&5
5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); } && {
5446 test -z "$ac_c_werror_flag" ||
5447 test ! -s conftest.err
5448 } && test -s conftest.$ac_objext; then
5449 ac_cv_type_uint16=yes
5450 else
5451 echo "$as_me: failed program was:" >&5
5452 sed 's/^/| /' conftest.$ac_ext >&5
5454 ac_cv_type_uint16=no
5457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5459 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16" >&5
5460 echo "${ECHO_T}$ac_cv_type_uint16" >&6; }
5461 if test $ac_cv_type_uint16 = yes; then
5463 cat >>confdefs.h <<_ACEOF
5464 #define HAVE_UINT16 1
5465 _ACEOF
5470 { echo "$as_me:$LINENO: checking for int32" >&5
5471 echo $ECHO_N "checking for int32... $ECHO_C" >&6; }
5472 if test "${ac_cv_type_int32+set}" = set; then
5473 echo $ECHO_N "(cached) $ECHO_C" >&6
5474 else
5475 cat >conftest.$ac_ext <<_ACEOF
5476 /* confdefs.h. */
5477 _ACEOF
5478 cat confdefs.h >>conftest.$ac_ext
5479 cat >>conftest.$ac_ext <<_ACEOF
5480 /* end confdefs.h. */
5481 $ac_includes_default
5482 typedef int32 ac__type_new_;
5484 main ()
5486 if ((ac__type_new_ *) 0)
5487 return 0;
5488 if (sizeof (ac__type_new_))
5489 return 0;
5491 return 0;
5493 _ACEOF
5494 rm -f conftest.$ac_objext
5495 if { (ac_try="$ac_compile"
5496 case "(($ac_try" in
5497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5498 *) ac_try_echo=$ac_try;;
5499 esac
5500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5501 (eval "$ac_compile") 2>conftest.er1
5502 ac_status=$?
5503 grep -v '^ *+' conftest.er1 >conftest.err
5504 rm -f conftest.er1
5505 cat conftest.err >&5
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); } && {
5508 test -z "$ac_c_werror_flag" ||
5509 test ! -s conftest.err
5510 } && test -s conftest.$ac_objext; then
5511 ac_cv_type_int32=yes
5512 else
5513 echo "$as_me: failed program was:" >&5
5514 sed 's/^/| /' conftest.$ac_ext >&5
5516 ac_cv_type_int32=no
5519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5521 { echo "$as_me:$LINENO: result: $ac_cv_type_int32" >&5
5522 echo "${ECHO_T}$ac_cv_type_int32" >&6; }
5523 if test $ac_cv_type_int32 = yes; then
5525 cat >>confdefs.h <<_ACEOF
5526 #define HAVE_INT32 1
5527 _ACEOF
5532 { echo "$as_me:$LINENO: checking for uint32" >&5
5533 echo $ECHO_N "checking for uint32... $ECHO_C" >&6; }
5534 if test "${ac_cv_type_uint32+set}" = set; then
5535 echo $ECHO_N "(cached) $ECHO_C" >&6
5536 else
5537 cat >conftest.$ac_ext <<_ACEOF
5538 /* confdefs.h. */
5539 _ACEOF
5540 cat confdefs.h >>conftest.$ac_ext
5541 cat >>conftest.$ac_ext <<_ACEOF
5542 /* end confdefs.h. */
5543 $ac_includes_default
5544 typedef uint32 ac__type_new_;
5546 main ()
5548 if ((ac__type_new_ *) 0)
5549 return 0;
5550 if (sizeof (ac__type_new_))
5551 return 0;
5553 return 0;
5555 _ACEOF
5556 rm -f conftest.$ac_objext
5557 if { (ac_try="$ac_compile"
5558 case "(($ac_try" in
5559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5560 *) ac_try_echo=$ac_try;;
5561 esac
5562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5563 (eval "$ac_compile") 2>conftest.er1
5564 ac_status=$?
5565 grep -v '^ *+' conftest.er1 >conftest.err
5566 rm -f conftest.er1
5567 cat conftest.err >&5
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); } && {
5570 test -z "$ac_c_werror_flag" ||
5571 test ! -s conftest.err
5572 } && test -s conftest.$ac_objext; then
5573 ac_cv_type_uint32=yes
5574 else
5575 echo "$as_me: failed program was:" >&5
5576 sed 's/^/| /' conftest.$ac_ext >&5
5578 ac_cv_type_uint32=no
5581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5583 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32" >&5
5584 echo "${ECHO_T}$ac_cv_type_uint32" >&6; }
5585 if test $ac_cv_type_uint32 = yes; then
5587 cat >>confdefs.h <<_ACEOF
5588 #define HAVE_UINT32 1
5589 _ACEOF
5594 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5595 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
5596 if test "${ac_cv_header_time+set}" = set; then
5597 echo $ECHO_N "(cached) $ECHO_C" >&6
5598 else
5599 cat >conftest.$ac_ext <<_ACEOF
5600 /* confdefs.h. */
5601 _ACEOF
5602 cat confdefs.h >>conftest.$ac_ext
5603 cat >>conftest.$ac_ext <<_ACEOF
5604 /* end confdefs.h. */
5605 #include <sys/types.h>
5606 #include <sys/time.h>
5607 #include <time.h>
5610 main ()
5612 if ((struct tm *) 0)
5613 return 0;
5615 return 0;
5617 _ACEOF
5618 rm -f conftest.$ac_objext
5619 if { (ac_try="$ac_compile"
5620 case "(($ac_try" in
5621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5622 *) ac_try_echo=$ac_try;;
5623 esac
5624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5625 (eval "$ac_compile") 2>conftest.er1
5626 ac_status=$?
5627 grep -v '^ *+' conftest.er1 >conftest.err
5628 rm -f conftest.er1
5629 cat conftest.err >&5
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); } && {
5632 test -z "$ac_c_werror_flag" ||
5633 test ! -s conftest.err
5634 } && test -s conftest.$ac_objext; then
5635 ac_cv_header_time=yes
5636 else
5637 echo "$as_me: failed program was:" >&5
5638 sed 's/^/| /' conftest.$ac_ext >&5
5640 ac_cv_header_time=no
5643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5645 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5646 echo "${ECHO_T}$ac_cv_header_time" >&6; }
5647 if test $ac_cv_header_time = yes; then
5649 cat >>confdefs.h <<\_ACEOF
5650 #define TIME_WITH_SYS_TIME 1
5651 _ACEOF
5655 { echo "$as_me:$LINENO: checking for short" >&5
5656 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
5657 if test "${ac_cv_type_short+set}" = set; then
5658 echo $ECHO_N "(cached) $ECHO_C" >&6
5659 else
5660 cat >conftest.$ac_ext <<_ACEOF
5661 /* confdefs.h. */
5662 _ACEOF
5663 cat confdefs.h >>conftest.$ac_ext
5664 cat >>conftest.$ac_ext <<_ACEOF
5665 /* end confdefs.h. */
5666 $ac_includes_default
5667 typedef short ac__type_new_;
5669 main ()
5671 if ((ac__type_new_ *) 0)
5672 return 0;
5673 if (sizeof (ac__type_new_))
5674 return 0;
5676 return 0;
5678 _ACEOF
5679 rm -f conftest.$ac_objext
5680 if { (ac_try="$ac_compile"
5681 case "(($ac_try" in
5682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5683 *) ac_try_echo=$ac_try;;
5684 esac
5685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5686 (eval "$ac_compile") 2>conftest.er1
5687 ac_status=$?
5688 grep -v '^ *+' conftest.er1 >conftest.err
5689 rm -f conftest.er1
5690 cat conftest.err >&5
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692 (exit $ac_status); } && {
5693 test -z "$ac_c_werror_flag" ||
5694 test ! -s conftest.err
5695 } && test -s conftest.$ac_objext; then
5696 ac_cv_type_short=yes
5697 else
5698 echo "$as_me: failed program was:" >&5
5699 sed 's/^/| /' conftest.$ac_ext >&5
5701 ac_cv_type_short=no
5704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5706 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5707 echo "${ECHO_T}$ac_cv_type_short" >&6; }
5709 # The cast to long int works around a bug in the HP C Compiler
5710 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5711 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5712 # This bug is HP SR number 8606223364.
5713 { echo "$as_me:$LINENO: checking size of short" >&5
5714 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
5715 if test "${ac_cv_sizeof_short+set}" = set; then
5716 echo $ECHO_N "(cached) $ECHO_C" >&6
5717 else
5718 if test "$cross_compiling" = yes; then
5719 # Depending upon the size, compute the lo and hi bounds.
5720 cat >conftest.$ac_ext <<_ACEOF
5721 /* confdefs.h. */
5722 _ACEOF
5723 cat confdefs.h >>conftest.$ac_ext
5724 cat >>conftest.$ac_ext <<_ACEOF
5725 /* end confdefs.h. */
5726 $ac_includes_default
5727 typedef short ac__type_sizeof_;
5729 main ()
5731 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5732 test_array [0] = 0
5735 return 0;
5737 _ACEOF
5738 rm -f conftest.$ac_objext
5739 if { (ac_try="$ac_compile"
5740 case "(($ac_try" in
5741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5742 *) ac_try_echo=$ac_try;;
5743 esac
5744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5745 (eval "$ac_compile") 2>conftest.er1
5746 ac_status=$?
5747 grep -v '^ *+' conftest.er1 >conftest.err
5748 rm -f conftest.er1
5749 cat conftest.err >&5
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); } && {
5752 test -z "$ac_c_werror_flag" ||
5753 test ! -s conftest.err
5754 } && test -s conftest.$ac_objext; then
5755 ac_lo=0 ac_mid=0
5756 while :; do
5757 cat >conftest.$ac_ext <<_ACEOF
5758 /* confdefs.h. */
5759 _ACEOF
5760 cat confdefs.h >>conftest.$ac_ext
5761 cat >>conftest.$ac_ext <<_ACEOF
5762 /* end confdefs.h. */
5763 $ac_includes_default
5764 typedef short ac__type_sizeof_;
5766 main ()
5768 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5769 test_array [0] = 0
5772 return 0;
5774 _ACEOF
5775 rm -f conftest.$ac_objext
5776 if { (ac_try="$ac_compile"
5777 case "(($ac_try" in
5778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5779 *) ac_try_echo=$ac_try;;
5780 esac
5781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5782 (eval "$ac_compile") 2>conftest.er1
5783 ac_status=$?
5784 grep -v '^ *+' conftest.er1 >conftest.err
5785 rm -f conftest.er1
5786 cat conftest.err >&5
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); } && {
5789 test -z "$ac_c_werror_flag" ||
5790 test ! -s conftest.err
5791 } && test -s conftest.$ac_objext; then
5792 ac_hi=$ac_mid; break
5793 else
5794 echo "$as_me: failed program was:" >&5
5795 sed 's/^/| /' conftest.$ac_ext >&5
5797 ac_lo=`expr $ac_mid + 1`
5798 if test $ac_lo -le $ac_mid; then
5799 ac_lo= ac_hi=
5800 break
5802 ac_mid=`expr 2 '*' $ac_mid + 1`
5805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5806 done
5807 else
5808 echo "$as_me: failed program was:" >&5
5809 sed 's/^/| /' conftest.$ac_ext >&5
5811 cat >conftest.$ac_ext <<_ACEOF
5812 /* confdefs.h. */
5813 _ACEOF
5814 cat confdefs.h >>conftest.$ac_ext
5815 cat >>conftest.$ac_ext <<_ACEOF
5816 /* end confdefs.h. */
5817 $ac_includes_default
5818 typedef short ac__type_sizeof_;
5820 main ()
5822 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5823 test_array [0] = 0
5826 return 0;
5828 _ACEOF
5829 rm -f conftest.$ac_objext
5830 if { (ac_try="$ac_compile"
5831 case "(($ac_try" in
5832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5833 *) ac_try_echo=$ac_try;;
5834 esac
5835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5836 (eval "$ac_compile") 2>conftest.er1
5837 ac_status=$?
5838 grep -v '^ *+' conftest.er1 >conftest.err
5839 rm -f conftest.er1
5840 cat conftest.err >&5
5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); } && {
5843 test -z "$ac_c_werror_flag" ||
5844 test ! -s conftest.err
5845 } && test -s conftest.$ac_objext; then
5846 ac_hi=-1 ac_mid=-1
5847 while :; do
5848 cat >conftest.$ac_ext <<_ACEOF
5849 /* confdefs.h. */
5850 _ACEOF
5851 cat confdefs.h >>conftest.$ac_ext
5852 cat >>conftest.$ac_ext <<_ACEOF
5853 /* end confdefs.h. */
5854 $ac_includes_default
5855 typedef short ac__type_sizeof_;
5857 main ()
5859 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5860 test_array [0] = 0
5863 return 0;
5865 _ACEOF
5866 rm -f conftest.$ac_objext
5867 if { (ac_try="$ac_compile"
5868 case "(($ac_try" in
5869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5870 *) ac_try_echo=$ac_try;;
5871 esac
5872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5873 (eval "$ac_compile") 2>conftest.er1
5874 ac_status=$?
5875 grep -v '^ *+' conftest.er1 >conftest.err
5876 rm -f conftest.er1
5877 cat conftest.err >&5
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); } && {
5880 test -z "$ac_c_werror_flag" ||
5881 test ! -s conftest.err
5882 } && test -s conftest.$ac_objext; then
5883 ac_lo=$ac_mid; break
5884 else
5885 echo "$as_me: failed program was:" >&5
5886 sed 's/^/| /' conftest.$ac_ext >&5
5888 ac_hi=`expr '(' $ac_mid ')' - 1`
5889 if test $ac_mid -le $ac_hi; then
5890 ac_lo= ac_hi=
5891 break
5893 ac_mid=`expr 2 '*' $ac_mid`
5896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5897 done
5898 else
5899 echo "$as_me: failed program was:" >&5
5900 sed 's/^/| /' conftest.$ac_ext >&5
5902 ac_lo= ac_hi=
5905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5909 # Binary search between lo and hi bounds.
5910 while test "x$ac_lo" != "x$ac_hi"; do
5911 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5912 cat >conftest.$ac_ext <<_ACEOF
5913 /* confdefs.h. */
5914 _ACEOF
5915 cat confdefs.h >>conftest.$ac_ext
5916 cat >>conftest.$ac_ext <<_ACEOF
5917 /* end confdefs.h. */
5918 $ac_includes_default
5919 typedef short ac__type_sizeof_;
5921 main ()
5923 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5924 test_array [0] = 0
5927 return 0;
5929 _ACEOF
5930 rm -f conftest.$ac_objext
5931 if { (ac_try="$ac_compile"
5932 case "(($ac_try" in
5933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5934 *) ac_try_echo=$ac_try;;
5935 esac
5936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5937 (eval "$ac_compile") 2>conftest.er1
5938 ac_status=$?
5939 grep -v '^ *+' conftest.er1 >conftest.err
5940 rm -f conftest.er1
5941 cat conftest.err >&5
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); } && {
5944 test -z "$ac_c_werror_flag" ||
5945 test ! -s conftest.err
5946 } && test -s conftest.$ac_objext; then
5947 ac_hi=$ac_mid
5948 else
5949 echo "$as_me: failed program was:" >&5
5950 sed 's/^/| /' conftest.$ac_ext >&5
5952 ac_lo=`expr '(' $ac_mid ')' + 1`
5955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5956 done
5957 case $ac_lo in
5958 ?*) ac_cv_sizeof_short=$ac_lo;;
5959 '') if test "$ac_cv_type_short" = yes; then
5960 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5961 See \`config.log' for more details." >&5
5962 echo "$as_me: error: cannot compute sizeof (short)
5963 See \`config.log' for more details." >&2;}
5964 { (exit 77); exit 77; }; }
5965 else
5966 ac_cv_sizeof_short=0
5967 fi ;;
5968 esac
5969 else
5970 cat >conftest.$ac_ext <<_ACEOF
5971 /* confdefs.h. */
5972 _ACEOF
5973 cat confdefs.h >>conftest.$ac_ext
5974 cat >>conftest.$ac_ext <<_ACEOF
5975 /* end confdefs.h. */
5976 $ac_includes_default
5977 typedef short ac__type_sizeof_;
5978 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5979 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5980 #include <stdio.h>
5981 #include <stdlib.h>
5983 main ()
5986 FILE *f = fopen ("conftest.val", "w");
5987 if (! f)
5988 return 1;
5989 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5991 long int i = longval ();
5992 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5993 return 1;
5994 fprintf (f, "%ld\n", i);
5996 else
5998 unsigned long int i = ulongval ();
5999 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6000 return 1;
6001 fprintf (f, "%lu\n", i);
6003 return ferror (f) || fclose (f) != 0;
6006 return 0;
6008 _ACEOF
6009 rm -f conftest$ac_exeext
6010 if { (ac_try="$ac_link"
6011 case "(($ac_try" in
6012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6013 *) ac_try_echo=$ac_try;;
6014 esac
6015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6016 (eval "$ac_link") 2>&5
6017 ac_status=$?
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6020 { (case "(($ac_try" in
6021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6022 *) ac_try_echo=$ac_try;;
6023 esac
6024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6025 (eval "$ac_try") 2>&5
6026 ac_status=$?
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); }; }; then
6029 ac_cv_sizeof_short=`cat conftest.val`
6030 else
6031 echo "$as_me: program exited with status $ac_status" >&5
6032 echo "$as_me: failed program was:" >&5
6033 sed 's/^/| /' conftest.$ac_ext >&5
6035 ( exit $ac_status )
6036 if test "$ac_cv_type_short" = yes; then
6037 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
6038 See \`config.log' for more details." >&5
6039 echo "$as_me: error: cannot compute sizeof (short)
6040 See \`config.log' for more details." >&2;}
6041 { (exit 77); exit 77; }; }
6042 else
6043 ac_cv_sizeof_short=0
6046 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6048 rm -f conftest.val
6050 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
6051 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
6055 cat >>confdefs.h <<_ACEOF
6056 #define SIZEOF_SHORT $ac_cv_sizeof_short
6057 _ACEOF
6060 { echo "$as_me:$LINENO: checking for int" >&5
6061 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
6062 if test "${ac_cv_type_int+set}" = set; then
6063 echo $ECHO_N "(cached) $ECHO_C" >&6
6064 else
6065 cat >conftest.$ac_ext <<_ACEOF
6066 /* confdefs.h. */
6067 _ACEOF
6068 cat confdefs.h >>conftest.$ac_ext
6069 cat >>conftest.$ac_ext <<_ACEOF
6070 /* end confdefs.h. */
6071 $ac_includes_default
6072 typedef int ac__type_new_;
6074 main ()
6076 if ((ac__type_new_ *) 0)
6077 return 0;
6078 if (sizeof (ac__type_new_))
6079 return 0;
6081 return 0;
6083 _ACEOF
6084 rm -f conftest.$ac_objext
6085 if { (ac_try="$ac_compile"
6086 case "(($ac_try" in
6087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6088 *) ac_try_echo=$ac_try;;
6089 esac
6090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6091 (eval "$ac_compile") 2>conftest.er1
6092 ac_status=$?
6093 grep -v '^ *+' conftest.er1 >conftest.err
6094 rm -f conftest.er1
6095 cat conftest.err >&5
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); } && {
6098 test -z "$ac_c_werror_flag" ||
6099 test ! -s conftest.err
6100 } && test -s conftest.$ac_objext; then
6101 ac_cv_type_int=yes
6102 else
6103 echo "$as_me: failed program was:" >&5
6104 sed 's/^/| /' conftest.$ac_ext >&5
6106 ac_cv_type_int=no
6109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6111 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6112 echo "${ECHO_T}$ac_cv_type_int" >&6; }
6114 # The cast to long int works around a bug in the HP C Compiler
6115 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6116 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6117 # This bug is HP SR number 8606223364.
6118 { echo "$as_me:$LINENO: checking size of int" >&5
6119 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
6120 if test "${ac_cv_sizeof_int+set}" = set; then
6121 echo $ECHO_N "(cached) $ECHO_C" >&6
6122 else
6123 if test "$cross_compiling" = yes; then
6124 # Depending upon the size, compute the lo and hi bounds.
6125 cat >conftest.$ac_ext <<_ACEOF
6126 /* confdefs.h. */
6127 _ACEOF
6128 cat confdefs.h >>conftest.$ac_ext
6129 cat >>conftest.$ac_ext <<_ACEOF
6130 /* end confdefs.h. */
6131 $ac_includes_default
6132 typedef int ac__type_sizeof_;
6134 main ()
6136 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6137 test_array [0] = 0
6140 return 0;
6142 _ACEOF
6143 rm -f conftest.$ac_objext
6144 if { (ac_try="$ac_compile"
6145 case "(($ac_try" in
6146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6147 *) ac_try_echo=$ac_try;;
6148 esac
6149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6150 (eval "$ac_compile") 2>conftest.er1
6151 ac_status=$?
6152 grep -v '^ *+' conftest.er1 >conftest.err
6153 rm -f conftest.er1
6154 cat conftest.err >&5
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); } && {
6157 test -z "$ac_c_werror_flag" ||
6158 test ! -s conftest.err
6159 } && test -s conftest.$ac_objext; then
6160 ac_lo=0 ac_mid=0
6161 while :; do
6162 cat >conftest.$ac_ext <<_ACEOF
6163 /* confdefs.h. */
6164 _ACEOF
6165 cat confdefs.h >>conftest.$ac_ext
6166 cat >>conftest.$ac_ext <<_ACEOF
6167 /* end confdefs.h. */
6168 $ac_includes_default
6169 typedef int ac__type_sizeof_;
6171 main ()
6173 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6174 test_array [0] = 0
6177 return 0;
6179 _ACEOF
6180 rm -f conftest.$ac_objext
6181 if { (ac_try="$ac_compile"
6182 case "(($ac_try" in
6183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6184 *) ac_try_echo=$ac_try;;
6185 esac
6186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6187 (eval "$ac_compile") 2>conftest.er1
6188 ac_status=$?
6189 grep -v '^ *+' conftest.er1 >conftest.err
6190 rm -f conftest.er1
6191 cat conftest.err >&5
6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193 (exit $ac_status); } && {
6194 test -z "$ac_c_werror_flag" ||
6195 test ! -s conftest.err
6196 } && test -s conftest.$ac_objext; then
6197 ac_hi=$ac_mid; break
6198 else
6199 echo "$as_me: failed program was:" >&5
6200 sed 's/^/| /' conftest.$ac_ext >&5
6202 ac_lo=`expr $ac_mid + 1`
6203 if test $ac_lo -le $ac_mid; then
6204 ac_lo= ac_hi=
6205 break
6207 ac_mid=`expr 2 '*' $ac_mid + 1`
6210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6211 done
6212 else
6213 echo "$as_me: failed program was:" >&5
6214 sed 's/^/| /' conftest.$ac_ext >&5
6216 cat >conftest.$ac_ext <<_ACEOF
6217 /* confdefs.h. */
6218 _ACEOF
6219 cat confdefs.h >>conftest.$ac_ext
6220 cat >>conftest.$ac_ext <<_ACEOF
6221 /* end confdefs.h. */
6222 $ac_includes_default
6223 typedef int ac__type_sizeof_;
6225 main ()
6227 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6228 test_array [0] = 0
6231 return 0;
6233 _ACEOF
6234 rm -f conftest.$ac_objext
6235 if { (ac_try="$ac_compile"
6236 case "(($ac_try" in
6237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6238 *) ac_try_echo=$ac_try;;
6239 esac
6240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6241 (eval "$ac_compile") 2>conftest.er1
6242 ac_status=$?
6243 grep -v '^ *+' conftest.er1 >conftest.err
6244 rm -f conftest.er1
6245 cat conftest.err >&5
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); } && {
6248 test -z "$ac_c_werror_flag" ||
6249 test ! -s conftest.err
6250 } && test -s conftest.$ac_objext; then
6251 ac_hi=-1 ac_mid=-1
6252 while :; do
6253 cat >conftest.$ac_ext <<_ACEOF
6254 /* confdefs.h. */
6255 _ACEOF
6256 cat confdefs.h >>conftest.$ac_ext
6257 cat >>conftest.$ac_ext <<_ACEOF
6258 /* end confdefs.h. */
6259 $ac_includes_default
6260 typedef int ac__type_sizeof_;
6262 main ()
6264 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6265 test_array [0] = 0
6268 return 0;
6270 _ACEOF
6271 rm -f conftest.$ac_objext
6272 if { (ac_try="$ac_compile"
6273 case "(($ac_try" in
6274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6275 *) ac_try_echo=$ac_try;;
6276 esac
6277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6278 (eval "$ac_compile") 2>conftest.er1
6279 ac_status=$?
6280 grep -v '^ *+' conftest.er1 >conftest.err
6281 rm -f conftest.er1
6282 cat conftest.err >&5
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); } && {
6285 test -z "$ac_c_werror_flag" ||
6286 test ! -s conftest.err
6287 } && test -s conftest.$ac_objext; then
6288 ac_lo=$ac_mid; break
6289 else
6290 echo "$as_me: failed program was:" >&5
6291 sed 's/^/| /' conftest.$ac_ext >&5
6293 ac_hi=`expr '(' $ac_mid ')' - 1`
6294 if test $ac_mid -le $ac_hi; then
6295 ac_lo= ac_hi=
6296 break
6298 ac_mid=`expr 2 '*' $ac_mid`
6301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6302 done
6303 else
6304 echo "$as_me: failed program was:" >&5
6305 sed 's/^/| /' conftest.$ac_ext >&5
6307 ac_lo= ac_hi=
6310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6314 # Binary search between lo and hi bounds.
6315 while test "x$ac_lo" != "x$ac_hi"; do
6316 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6317 cat >conftest.$ac_ext <<_ACEOF
6318 /* confdefs.h. */
6319 _ACEOF
6320 cat confdefs.h >>conftest.$ac_ext
6321 cat >>conftest.$ac_ext <<_ACEOF
6322 /* end confdefs.h. */
6323 $ac_includes_default
6324 typedef int ac__type_sizeof_;
6326 main ()
6328 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6329 test_array [0] = 0
6332 return 0;
6334 _ACEOF
6335 rm -f conftest.$ac_objext
6336 if { (ac_try="$ac_compile"
6337 case "(($ac_try" in
6338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6339 *) ac_try_echo=$ac_try;;
6340 esac
6341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6342 (eval "$ac_compile") 2>conftest.er1
6343 ac_status=$?
6344 grep -v '^ *+' conftest.er1 >conftest.err
6345 rm -f conftest.er1
6346 cat conftest.err >&5
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); } && {
6349 test -z "$ac_c_werror_flag" ||
6350 test ! -s conftest.err
6351 } && test -s conftest.$ac_objext; then
6352 ac_hi=$ac_mid
6353 else
6354 echo "$as_me: failed program was:" >&5
6355 sed 's/^/| /' conftest.$ac_ext >&5
6357 ac_lo=`expr '(' $ac_mid ')' + 1`
6360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6361 done
6362 case $ac_lo in
6363 ?*) ac_cv_sizeof_int=$ac_lo;;
6364 '') if test "$ac_cv_type_int" = yes; then
6365 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6366 See \`config.log' for more details." >&5
6367 echo "$as_me: error: cannot compute sizeof (int)
6368 See \`config.log' for more details." >&2;}
6369 { (exit 77); exit 77; }; }
6370 else
6371 ac_cv_sizeof_int=0
6372 fi ;;
6373 esac
6374 else
6375 cat >conftest.$ac_ext <<_ACEOF
6376 /* confdefs.h. */
6377 _ACEOF
6378 cat confdefs.h >>conftest.$ac_ext
6379 cat >>conftest.$ac_ext <<_ACEOF
6380 /* end confdefs.h. */
6381 $ac_includes_default
6382 typedef int ac__type_sizeof_;
6383 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6384 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6385 #include <stdio.h>
6386 #include <stdlib.h>
6388 main ()
6391 FILE *f = fopen ("conftest.val", "w");
6392 if (! f)
6393 return 1;
6394 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6396 long int i = longval ();
6397 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6398 return 1;
6399 fprintf (f, "%ld\n", i);
6401 else
6403 unsigned long int i = ulongval ();
6404 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6405 return 1;
6406 fprintf (f, "%lu\n", i);
6408 return ferror (f) || fclose (f) != 0;
6411 return 0;
6413 _ACEOF
6414 rm -f conftest$ac_exeext
6415 if { (ac_try="$ac_link"
6416 case "(($ac_try" in
6417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6418 *) ac_try_echo=$ac_try;;
6419 esac
6420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6421 (eval "$ac_link") 2>&5
6422 ac_status=$?
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6425 { (case "(($ac_try" in
6426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6427 *) ac_try_echo=$ac_try;;
6428 esac
6429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6430 (eval "$ac_try") 2>&5
6431 ac_status=$?
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); }; }; then
6434 ac_cv_sizeof_int=`cat conftest.val`
6435 else
6436 echo "$as_me: program exited with status $ac_status" >&5
6437 echo "$as_me: failed program was:" >&5
6438 sed 's/^/| /' conftest.$ac_ext >&5
6440 ( exit $ac_status )
6441 if test "$ac_cv_type_int" = yes; then
6442 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6443 See \`config.log' for more details." >&5
6444 echo "$as_me: error: cannot compute sizeof (int)
6445 See \`config.log' for more details." >&2;}
6446 { (exit 77); exit 77; }; }
6447 else
6448 ac_cv_sizeof_int=0
6451 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6453 rm -f conftest.val
6455 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6456 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
6460 cat >>confdefs.h <<_ACEOF
6461 #define SIZEOF_INT $ac_cv_sizeof_int
6462 _ACEOF
6465 { echo "$as_me:$LINENO: checking for long" >&5
6466 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
6467 if test "${ac_cv_type_long+set}" = set; then
6468 echo $ECHO_N "(cached) $ECHO_C" >&6
6469 else
6470 cat >conftest.$ac_ext <<_ACEOF
6471 /* confdefs.h. */
6472 _ACEOF
6473 cat confdefs.h >>conftest.$ac_ext
6474 cat >>conftest.$ac_ext <<_ACEOF
6475 /* end confdefs.h. */
6476 $ac_includes_default
6477 typedef long ac__type_new_;
6479 main ()
6481 if ((ac__type_new_ *) 0)
6482 return 0;
6483 if (sizeof (ac__type_new_))
6484 return 0;
6486 return 0;
6488 _ACEOF
6489 rm -f conftest.$ac_objext
6490 if { (ac_try="$ac_compile"
6491 case "(($ac_try" in
6492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6493 *) ac_try_echo=$ac_try;;
6494 esac
6495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6496 (eval "$ac_compile") 2>conftest.er1
6497 ac_status=$?
6498 grep -v '^ *+' conftest.er1 >conftest.err
6499 rm -f conftest.er1
6500 cat conftest.err >&5
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); } && {
6503 test -z "$ac_c_werror_flag" ||
6504 test ! -s conftest.err
6505 } && test -s conftest.$ac_objext; then
6506 ac_cv_type_long=yes
6507 else
6508 echo "$as_me: failed program was:" >&5
6509 sed 's/^/| /' conftest.$ac_ext >&5
6511 ac_cv_type_long=no
6514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6516 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6517 echo "${ECHO_T}$ac_cv_type_long" >&6; }
6519 # The cast to long int works around a bug in the HP C Compiler
6520 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6521 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6522 # This bug is HP SR number 8606223364.
6523 { echo "$as_me:$LINENO: checking size of long" >&5
6524 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
6525 if test "${ac_cv_sizeof_long+set}" = set; then
6526 echo $ECHO_N "(cached) $ECHO_C" >&6
6527 else
6528 if test "$cross_compiling" = yes; then
6529 # Depending upon the size, compute the lo and hi bounds.
6530 cat >conftest.$ac_ext <<_ACEOF
6531 /* confdefs.h. */
6532 _ACEOF
6533 cat confdefs.h >>conftest.$ac_ext
6534 cat >>conftest.$ac_ext <<_ACEOF
6535 /* end confdefs.h. */
6536 $ac_includes_default
6537 typedef long ac__type_sizeof_;
6539 main ()
6541 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6542 test_array [0] = 0
6545 return 0;
6547 _ACEOF
6548 rm -f conftest.$ac_objext
6549 if { (ac_try="$ac_compile"
6550 case "(($ac_try" in
6551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6552 *) ac_try_echo=$ac_try;;
6553 esac
6554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6555 (eval "$ac_compile") 2>conftest.er1
6556 ac_status=$?
6557 grep -v '^ *+' conftest.er1 >conftest.err
6558 rm -f conftest.er1
6559 cat conftest.err >&5
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); } && {
6562 test -z "$ac_c_werror_flag" ||
6563 test ! -s conftest.err
6564 } && test -s conftest.$ac_objext; then
6565 ac_lo=0 ac_mid=0
6566 while :; do
6567 cat >conftest.$ac_ext <<_ACEOF
6568 /* confdefs.h. */
6569 _ACEOF
6570 cat confdefs.h >>conftest.$ac_ext
6571 cat >>conftest.$ac_ext <<_ACEOF
6572 /* end confdefs.h. */
6573 $ac_includes_default
6574 typedef long ac__type_sizeof_;
6576 main ()
6578 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6579 test_array [0] = 0
6582 return 0;
6584 _ACEOF
6585 rm -f conftest.$ac_objext
6586 if { (ac_try="$ac_compile"
6587 case "(($ac_try" in
6588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6589 *) ac_try_echo=$ac_try;;
6590 esac
6591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6592 (eval "$ac_compile") 2>conftest.er1
6593 ac_status=$?
6594 grep -v '^ *+' conftest.er1 >conftest.err
6595 rm -f conftest.er1
6596 cat conftest.err >&5
6597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); } && {
6599 test -z "$ac_c_werror_flag" ||
6600 test ! -s conftest.err
6601 } && test -s conftest.$ac_objext; then
6602 ac_hi=$ac_mid; break
6603 else
6604 echo "$as_me: failed program was:" >&5
6605 sed 's/^/| /' conftest.$ac_ext >&5
6607 ac_lo=`expr $ac_mid + 1`
6608 if test $ac_lo -le $ac_mid; then
6609 ac_lo= ac_hi=
6610 break
6612 ac_mid=`expr 2 '*' $ac_mid + 1`
6615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6616 done
6617 else
6618 echo "$as_me: failed program was:" >&5
6619 sed 's/^/| /' conftest.$ac_ext >&5
6621 cat >conftest.$ac_ext <<_ACEOF
6622 /* confdefs.h. */
6623 _ACEOF
6624 cat confdefs.h >>conftest.$ac_ext
6625 cat >>conftest.$ac_ext <<_ACEOF
6626 /* end confdefs.h. */
6627 $ac_includes_default
6628 typedef long ac__type_sizeof_;
6630 main ()
6632 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6633 test_array [0] = 0
6636 return 0;
6638 _ACEOF
6639 rm -f conftest.$ac_objext
6640 if { (ac_try="$ac_compile"
6641 case "(($ac_try" in
6642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6643 *) ac_try_echo=$ac_try;;
6644 esac
6645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6646 (eval "$ac_compile") 2>conftest.er1
6647 ac_status=$?
6648 grep -v '^ *+' conftest.er1 >conftest.err
6649 rm -f conftest.er1
6650 cat conftest.err >&5
6651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652 (exit $ac_status); } && {
6653 test -z "$ac_c_werror_flag" ||
6654 test ! -s conftest.err
6655 } && test -s conftest.$ac_objext; then
6656 ac_hi=-1 ac_mid=-1
6657 while :; do
6658 cat >conftest.$ac_ext <<_ACEOF
6659 /* confdefs.h. */
6660 _ACEOF
6661 cat confdefs.h >>conftest.$ac_ext
6662 cat >>conftest.$ac_ext <<_ACEOF
6663 /* end confdefs.h. */
6664 $ac_includes_default
6665 typedef long ac__type_sizeof_;
6667 main ()
6669 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6670 test_array [0] = 0
6673 return 0;
6675 _ACEOF
6676 rm -f conftest.$ac_objext
6677 if { (ac_try="$ac_compile"
6678 case "(($ac_try" in
6679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6680 *) ac_try_echo=$ac_try;;
6681 esac
6682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6683 (eval "$ac_compile") 2>conftest.er1
6684 ac_status=$?
6685 grep -v '^ *+' conftest.er1 >conftest.err
6686 rm -f conftest.er1
6687 cat conftest.err >&5
6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689 (exit $ac_status); } && {
6690 test -z "$ac_c_werror_flag" ||
6691 test ! -s conftest.err
6692 } && test -s conftest.$ac_objext; then
6693 ac_lo=$ac_mid; break
6694 else
6695 echo "$as_me: failed program was:" >&5
6696 sed 's/^/| /' conftest.$ac_ext >&5
6698 ac_hi=`expr '(' $ac_mid ')' - 1`
6699 if test $ac_mid -le $ac_hi; then
6700 ac_lo= ac_hi=
6701 break
6703 ac_mid=`expr 2 '*' $ac_mid`
6706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6707 done
6708 else
6709 echo "$as_me: failed program was:" >&5
6710 sed 's/^/| /' conftest.$ac_ext >&5
6712 ac_lo= ac_hi=
6715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6719 # Binary search between lo and hi bounds.
6720 while test "x$ac_lo" != "x$ac_hi"; do
6721 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6722 cat >conftest.$ac_ext <<_ACEOF
6723 /* confdefs.h. */
6724 _ACEOF
6725 cat confdefs.h >>conftest.$ac_ext
6726 cat >>conftest.$ac_ext <<_ACEOF
6727 /* end confdefs.h. */
6728 $ac_includes_default
6729 typedef long ac__type_sizeof_;
6731 main ()
6733 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6734 test_array [0] = 0
6737 return 0;
6739 _ACEOF
6740 rm -f conftest.$ac_objext
6741 if { (ac_try="$ac_compile"
6742 case "(($ac_try" in
6743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6744 *) ac_try_echo=$ac_try;;
6745 esac
6746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6747 (eval "$ac_compile") 2>conftest.er1
6748 ac_status=$?
6749 grep -v '^ *+' conftest.er1 >conftest.err
6750 rm -f conftest.er1
6751 cat conftest.err >&5
6752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753 (exit $ac_status); } && {
6754 test -z "$ac_c_werror_flag" ||
6755 test ! -s conftest.err
6756 } && test -s conftest.$ac_objext; then
6757 ac_hi=$ac_mid
6758 else
6759 echo "$as_me: failed program was:" >&5
6760 sed 's/^/| /' conftest.$ac_ext >&5
6762 ac_lo=`expr '(' $ac_mid ')' + 1`
6765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6766 done
6767 case $ac_lo in
6768 ?*) ac_cv_sizeof_long=$ac_lo;;
6769 '') if test "$ac_cv_type_long" = yes; then
6770 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6771 See \`config.log' for more details." >&5
6772 echo "$as_me: error: cannot compute sizeof (long)
6773 See \`config.log' for more details." >&2;}
6774 { (exit 77); exit 77; }; }
6775 else
6776 ac_cv_sizeof_long=0
6777 fi ;;
6778 esac
6779 else
6780 cat >conftest.$ac_ext <<_ACEOF
6781 /* confdefs.h. */
6782 _ACEOF
6783 cat confdefs.h >>conftest.$ac_ext
6784 cat >>conftest.$ac_ext <<_ACEOF
6785 /* end confdefs.h. */
6786 $ac_includes_default
6787 typedef long ac__type_sizeof_;
6788 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6789 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6790 #include <stdio.h>
6791 #include <stdlib.h>
6793 main ()
6796 FILE *f = fopen ("conftest.val", "w");
6797 if (! f)
6798 return 1;
6799 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6801 long int i = longval ();
6802 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6803 return 1;
6804 fprintf (f, "%ld\n", i);
6806 else
6808 unsigned long int i = ulongval ();
6809 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6810 return 1;
6811 fprintf (f, "%lu\n", i);
6813 return ferror (f) || fclose (f) != 0;
6816 return 0;
6818 _ACEOF
6819 rm -f conftest$ac_exeext
6820 if { (ac_try="$ac_link"
6821 case "(($ac_try" in
6822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6823 *) ac_try_echo=$ac_try;;
6824 esac
6825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6826 (eval "$ac_link") 2>&5
6827 ac_status=$?
6828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6830 { (case "(($ac_try" in
6831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6832 *) ac_try_echo=$ac_try;;
6833 esac
6834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6835 (eval "$ac_try") 2>&5
6836 ac_status=$?
6837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); }; }; then
6839 ac_cv_sizeof_long=`cat conftest.val`
6840 else
6841 echo "$as_me: program exited with status $ac_status" >&5
6842 echo "$as_me: failed program was:" >&5
6843 sed 's/^/| /' conftest.$ac_ext >&5
6845 ( exit $ac_status )
6846 if test "$ac_cv_type_long" = yes; then
6847 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6848 See \`config.log' for more details." >&5
6849 echo "$as_me: error: cannot compute sizeof (long)
6850 See \`config.log' for more details." >&2;}
6851 { (exit 77); exit 77; }; }
6852 else
6853 ac_cv_sizeof_long=0
6856 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6858 rm -f conftest.val
6860 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6861 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
6865 cat >>confdefs.h <<_ACEOF
6866 #define SIZEOF_LONG $ac_cv_sizeof_long
6867 _ACEOF
6871 { echo "$as_me:$LINENO: checking for working memcmp" >&5
6872 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
6873 if test "${ac_cv_func_memcmp_working+set}" = set; then
6874 echo $ECHO_N "(cached) $ECHO_C" >&6
6875 else
6876 if test "$cross_compiling" = yes; then
6877 ac_cv_func_memcmp_working=no
6878 else
6879 cat >conftest.$ac_ext <<_ACEOF
6880 /* confdefs.h. */
6881 _ACEOF
6882 cat confdefs.h >>conftest.$ac_ext
6883 cat >>conftest.$ac_ext <<_ACEOF
6884 /* end confdefs.h. */
6885 $ac_includes_default
6887 main ()
6890 /* Some versions of memcmp are not 8-bit clean. */
6891 char c0 = '\100', c1 = '\200', c2 = '\201';
6892 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
6893 return 1;
6895 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6896 or more and with at least one buffer not starting on a 4-byte boundary.
6897 William Lewis provided this test program. */
6899 char foo[21];
6900 char bar[21];
6901 int i;
6902 for (i = 0; i < 4; i++)
6904 char *a = foo + i;
6905 char *b = bar + i;
6906 strcpy (a, "--------01111111");
6907 strcpy (b, "--------10000000");
6908 if (memcmp (a, b, 16) >= 0)
6909 return 1;
6911 return 0;
6915 return 0;
6917 _ACEOF
6918 rm -f conftest$ac_exeext
6919 if { (ac_try="$ac_link"
6920 case "(($ac_try" in
6921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6922 *) ac_try_echo=$ac_try;;
6923 esac
6924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6925 (eval "$ac_link") 2>&5
6926 ac_status=$?
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6929 { (case "(($ac_try" in
6930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6931 *) ac_try_echo=$ac_try;;
6932 esac
6933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6934 (eval "$ac_try") 2>&5
6935 ac_status=$?
6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); }; }; then
6938 ac_cv_func_memcmp_working=yes
6939 else
6940 echo "$as_me: program exited with status $ac_status" >&5
6941 echo "$as_me: failed program was:" >&5
6942 sed 's/^/| /' conftest.$ac_ext >&5
6944 ( exit $ac_status )
6945 ac_cv_func_memcmp_working=no
6947 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6952 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
6953 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
6954 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
6955 *" memcmp.$ac_objext "* ) ;;
6956 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
6958 esac
6961 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6962 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6963 if test "${ac_cv_type_signal+set}" = set; then
6964 echo $ECHO_N "(cached) $ECHO_C" >&6
6965 else
6966 cat >conftest.$ac_ext <<_ACEOF
6967 /* confdefs.h. */
6968 _ACEOF
6969 cat confdefs.h >>conftest.$ac_ext
6970 cat >>conftest.$ac_ext <<_ACEOF
6971 /* end confdefs.h. */
6972 #include <sys/types.h>
6973 #include <signal.h>
6976 main ()
6978 return *(signal (0, 0)) (0) == 1;
6980 return 0;
6982 _ACEOF
6983 rm -f conftest.$ac_objext
6984 if { (ac_try="$ac_compile"
6985 case "(($ac_try" in
6986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6987 *) ac_try_echo=$ac_try;;
6988 esac
6989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6990 (eval "$ac_compile") 2>conftest.er1
6991 ac_status=$?
6992 grep -v '^ *+' conftest.er1 >conftest.err
6993 rm -f conftest.er1
6994 cat conftest.err >&5
6995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996 (exit $ac_status); } && {
6997 test -z "$ac_c_werror_flag" ||
6998 test ! -s conftest.err
6999 } && test -s conftest.$ac_objext; then
7000 ac_cv_type_signal=int
7001 else
7002 echo "$as_me: failed program was:" >&5
7003 sed 's/^/| /' conftest.$ac_ext >&5
7005 ac_cv_type_signal=void
7008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7010 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7011 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7013 cat >>confdefs.h <<_ACEOF
7014 #define RETSIGTYPE $ac_cv_type_signal
7015 _ACEOF
7022 for ac_header in $ac_header_list
7024 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7026 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7029 echo $ECHO_N "(cached) $ECHO_C" >&6
7031 ac_res=`eval echo '${'$as_ac_Header'}'`
7032 { echo "$as_me:$LINENO: result: $ac_res" >&5
7033 echo "${ECHO_T}$ac_res" >&6; }
7034 else
7035 # Is the header compilable?
7036 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7037 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7038 cat >conftest.$ac_ext <<_ACEOF
7039 /* confdefs.h. */
7040 _ACEOF
7041 cat confdefs.h >>conftest.$ac_ext
7042 cat >>conftest.$ac_ext <<_ACEOF
7043 /* end confdefs.h. */
7044 $ac_includes_default
7045 #include <$ac_header>
7046 _ACEOF
7047 rm -f conftest.$ac_objext
7048 if { (ac_try="$ac_compile"
7049 case "(($ac_try" in
7050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7051 *) ac_try_echo=$ac_try;;
7052 esac
7053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7054 (eval "$ac_compile") 2>conftest.er1
7055 ac_status=$?
7056 grep -v '^ *+' conftest.er1 >conftest.err
7057 rm -f conftest.er1
7058 cat conftest.err >&5
7059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); } && {
7061 test -z "$ac_c_werror_flag" ||
7062 test ! -s conftest.err
7063 } && test -s conftest.$ac_objext; then
7064 ac_header_compiler=yes
7065 else
7066 echo "$as_me: failed program was:" >&5
7067 sed 's/^/| /' conftest.$ac_ext >&5
7069 ac_header_compiler=no
7072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7073 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7074 echo "${ECHO_T}$ac_header_compiler" >&6; }
7076 # Is the header present?
7077 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7078 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7079 cat >conftest.$ac_ext <<_ACEOF
7080 /* confdefs.h. */
7081 _ACEOF
7082 cat confdefs.h >>conftest.$ac_ext
7083 cat >>conftest.$ac_ext <<_ACEOF
7084 /* end confdefs.h. */
7085 #include <$ac_header>
7086 _ACEOF
7087 if { (ac_try="$ac_cpp conftest.$ac_ext"
7088 case "(($ac_try" in
7089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7090 *) ac_try_echo=$ac_try;;
7091 esac
7092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7093 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7094 ac_status=$?
7095 grep -v '^ *+' conftest.er1 >conftest.err
7096 rm -f conftest.er1
7097 cat conftest.err >&5
7098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099 (exit $ac_status); } >/dev/null && {
7100 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7101 test ! -s conftest.err
7102 }; then
7103 ac_header_preproc=yes
7104 else
7105 echo "$as_me: failed program was:" >&5
7106 sed 's/^/| /' conftest.$ac_ext >&5
7108 ac_header_preproc=no
7111 rm -f conftest.err conftest.$ac_ext
7112 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7113 echo "${ECHO_T}$ac_header_preproc" >&6; }
7115 # So? What about this header?
7116 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7117 yes:no: )
7118 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7119 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7120 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7121 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7122 ac_header_preproc=yes
7124 no:yes:* )
7125 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7126 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7127 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7128 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7129 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7130 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7131 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7132 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7133 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7134 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7135 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7136 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7139 esac
7140 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7143 echo $ECHO_N "(cached) $ECHO_C" >&6
7144 else
7145 eval "$as_ac_Header=\$ac_header_preproc"
7147 ac_res=`eval echo '${'$as_ac_Header'}'`
7148 { echo "$as_me:$LINENO: result: $ac_res" >&5
7149 echo "${ECHO_T}$ac_res" >&6; }
7152 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7153 cat >>confdefs.h <<_ACEOF
7154 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7155 _ACEOF
7159 done
7169 { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
7170 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
7171 if test "${ac_cv_func_utime_null+set}" = set; then
7172 echo $ECHO_N "(cached) $ECHO_C" >&6
7173 else
7174 rm -f conftest.data; >conftest.data
7175 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
7176 if test "$cross_compiling" = yes; then
7177 ac_cv_func_utime_null=no
7178 else
7179 cat >conftest.$ac_ext <<_ACEOF
7180 /* confdefs.h. */
7181 _ACEOF
7182 cat confdefs.h >>conftest.$ac_ext
7183 cat >>conftest.$ac_ext <<_ACEOF
7184 /* end confdefs.h. */
7185 $ac_includes_default
7186 #ifdef HAVE_UTIME_H
7187 # include <utime.h>
7188 #endif
7190 main ()
7192 struct stat s, t;
7193 return ! (stat ("conftest.data", &s) == 0
7194 && utime ("conftest.data", 0) == 0
7195 && stat ("conftest.data", &t) == 0
7196 && t.st_mtime >= s.st_mtime
7197 && t.st_mtime - s.st_mtime < 120);
7199 return 0;
7201 _ACEOF
7202 rm -f conftest$ac_exeext
7203 if { (ac_try="$ac_link"
7204 case "(($ac_try" in
7205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7206 *) ac_try_echo=$ac_try;;
7207 esac
7208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7209 (eval "$ac_link") 2>&5
7210 ac_status=$?
7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7213 { (case "(($ac_try" in
7214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7215 *) ac_try_echo=$ac_try;;
7216 esac
7217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7218 (eval "$ac_try") 2>&5
7219 ac_status=$?
7220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221 (exit $ac_status); }; }; then
7222 ac_cv_func_utime_null=yes
7223 else
7224 echo "$as_me: program exited with status $ac_status" >&5
7225 echo "$as_me: failed program was:" >&5
7226 sed 's/^/| /' conftest.$ac_ext >&5
7228 ( exit $ac_status )
7229 ac_cv_func_utime_null=no
7231 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7236 { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
7237 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
7238 if test $ac_cv_func_utime_null = yes; then
7240 cat >>confdefs.h <<\_ACEOF
7241 #define HAVE_UTIME_NULL 1
7242 _ACEOF
7245 rm -f conftest.data
7248 for ac_func in vprintf
7250 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7251 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7252 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7253 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7254 echo $ECHO_N "(cached) $ECHO_C" >&6
7255 else
7256 cat >conftest.$ac_ext <<_ACEOF
7257 /* confdefs.h. */
7258 _ACEOF
7259 cat confdefs.h >>conftest.$ac_ext
7260 cat >>conftest.$ac_ext <<_ACEOF
7261 /* end confdefs.h. */
7262 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7264 #define $ac_func innocuous_$ac_func
7266 /* System header to define __stub macros and hopefully few prototypes,
7267 which can conflict with char $ac_func (); below.
7268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7269 <limits.h> exists even on freestanding compilers. */
7271 #ifdef __STDC__
7272 # include <limits.h>
7273 #else
7274 # include <assert.h>
7275 #endif
7277 #undef $ac_func
7279 /* Override any GCC internal prototype to avoid an error.
7280 Use char because int might match the return type of a GCC
7281 builtin and then its argument prototype would still apply. */
7282 #ifdef __cplusplus
7283 extern "C"
7284 #endif
7285 char $ac_func ();
7286 /* The GNU C library defines this for functions which it implements
7287 to always fail with ENOSYS. Some functions are actually named
7288 something starting with __ and the normal name is an alias. */
7289 #if defined __stub_$ac_func || defined __stub___$ac_func
7290 choke me
7291 #endif
7294 main ()
7296 return $ac_func ();
7298 return 0;
7300 _ACEOF
7301 rm -f conftest.$ac_objext conftest$ac_exeext
7302 if { (ac_try="$ac_link"
7303 case "(($ac_try" in
7304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7305 *) ac_try_echo=$ac_try;;
7306 esac
7307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7308 (eval "$ac_link") 2>conftest.er1
7309 ac_status=$?
7310 grep -v '^ *+' conftest.er1 >conftest.err
7311 rm -f conftest.er1
7312 cat conftest.err >&5
7313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314 (exit $ac_status); } && {
7315 test -z "$ac_c_werror_flag" ||
7316 test ! -s conftest.err
7317 } && test -s conftest$ac_exeext &&
7318 $as_test_x conftest$ac_exeext; then
7319 eval "$as_ac_var=yes"
7320 else
7321 echo "$as_me: failed program was:" >&5
7322 sed 's/^/| /' conftest.$ac_ext >&5
7324 eval "$as_ac_var=no"
7327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7328 conftest$ac_exeext conftest.$ac_ext
7330 ac_res=`eval echo '${'$as_ac_var'}'`
7331 { echo "$as_me:$LINENO: result: $ac_res" >&5
7332 echo "${ECHO_T}$ac_res" >&6; }
7333 if test `eval echo '${'$as_ac_var'}'` = yes; then
7334 cat >>confdefs.h <<_ACEOF
7335 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7336 _ACEOF
7338 { echo "$as_me:$LINENO: checking for _doprnt" >&5
7339 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
7340 if test "${ac_cv_func__doprnt+set}" = set; then
7341 echo $ECHO_N "(cached) $ECHO_C" >&6
7342 else
7343 cat >conftest.$ac_ext <<_ACEOF
7344 /* confdefs.h. */
7345 _ACEOF
7346 cat confdefs.h >>conftest.$ac_ext
7347 cat >>conftest.$ac_ext <<_ACEOF
7348 /* end confdefs.h. */
7349 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
7350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7351 #define _doprnt innocuous__doprnt
7353 /* System header to define __stub macros and hopefully few prototypes,
7354 which can conflict with char _doprnt (); below.
7355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7356 <limits.h> exists even on freestanding compilers. */
7358 #ifdef __STDC__
7359 # include <limits.h>
7360 #else
7361 # include <assert.h>
7362 #endif
7364 #undef _doprnt
7366 /* Override any GCC internal prototype to avoid an error.
7367 Use char because int might match the return type of a GCC
7368 builtin and then its argument prototype would still apply. */
7369 #ifdef __cplusplus
7370 extern "C"
7371 #endif
7372 char _doprnt ();
7373 /* The GNU C library defines this for functions which it implements
7374 to always fail with ENOSYS. Some functions are actually named
7375 something starting with __ and the normal name is an alias. */
7376 #if defined __stub__doprnt || defined __stub____doprnt
7377 choke me
7378 #endif
7381 main ()
7383 return _doprnt ();
7385 return 0;
7387 _ACEOF
7388 rm -f conftest.$ac_objext conftest$ac_exeext
7389 if { (ac_try="$ac_link"
7390 case "(($ac_try" in
7391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7392 *) ac_try_echo=$ac_try;;
7393 esac
7394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7395 (eval "$ac_link") 2>conftest.er1
7396 ac_status=$?
7397 grep -v '^ *+' conftest.er1 >conftest.err
7398 rm -f conftest.er1
7399 cat conftest.err >&5
7400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401 (exit $ac_status); } && {
7402 test -z "$ac_c_werror_flag" ||
7403 test ! -s conftest.err
7404 } && test -s conftest$ac_exeext &&
7405 $as_test_x conftest$ac_exeext; then
7406 ac_cv_func__doprnt=yes
7407 else
7408 echo "$as_me: failed program was:" >&5
7409 sed 's/^/| /' conftest.$ac_ext >&5
7411 ac_cv_func__doprnt=no
7414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7415 conftest$ac_exeext conftest.$ac_ext
7417 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
7418 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
7419 if test $ac_cv_func__doprnt = yes; then
7421 cat >>confdefs.h <<\_ACEOF
7422 #define HAVE_DOPRNT 1
7423 _ACEOF
7428 done
7440 for ac_func in getcwd getwd strerror setvbuf tzset settz mkstemp tempnam gettimeofday
7442 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7443 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7444 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7445 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7446 echo $ECHO_N "(cached) $ECHO_C" >&6
7447 else
7448 cat >conftest.$ac_ext <<_ACEOF
7449 /* confdefs.h. */
7450 _ACEOF
7451 cat confdefs.h >>conftest.$ac_ext
7452 cat >>conftest.$ac_ext <<_ACEOF
7453 /* end confdefs.h. */
7454 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7455 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7456 #define $ac_func innocuous_$ac_func
7458 /* System header to define __stub macros and hopefully few prototypes,
7459 which can conflict with char $ac_func (); below.
7460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7461 <limits.h> exists even on freestanding compilers. */
7463 #ifdef __STDC__
7464 # include <limits.h>
7465 #else
7466 # include <assert.h>
7467 #endif
7469 #undef $ac_func
7471 /* Override any GCC internal prototype to avoid an error.
7472 Use char because int might match the return type of a GCC
7473 builtin and then its argument prototype would still apply. */
7474 #ifdef __cplusplus
7475 extern "C"
7476 #endif
7477 char $ac_func ();
7478 /* The GNU C library defines this for functions which it implements
7479 to always fail with ENOSYS. Some functions are actually named
7480 something starting with __ and the normal name is an alias. */
7481 #if defined __stub_$ac_func || defined __stub___$ac_func
7482 choke me
7483 #endif
7486 main ()
7488 return $ac_func ();
7490 return 0;
7492 _ACEOF
7493 rm -f conftest.$ac_objext conftest$ac_exeext
7494 if { (ac_try="$ac_link"
7495 case "(($ac_try" in
7496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7497 *) ac_try_echo=$ac_try;;
7498 esac
7499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7500 (eval "$ac_link") 2>conftest.er1
7501 ac_status=$?
7502 grep -v '^ *+' conftest.er1 >conftest.err
7503 rm -f conftest.er1
7504 cat conftest.err >&5
7505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506 (exit $ac_status); } && {
7507 test -z "$ac_c_werror_flag" ||
7508 test ! -s conftest.err
7509 } && test -s conftest$ac_exeext &&
7510 $as_test_x conftest$ac_exeext; then
7511 eval "$as_ac_var=yes"
7512 else
7513 echo "$as_me: failed program was:" >&5
7514 sed 's/^/| /' conftest.$ac_ext >&5
7516 eval "$as_ac_var=no"
7519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7520 conftest$ac_exeext conftest.$ac_ext
7522 ac_res=`eval echo '${'$as_ac_var'}'`
7523 { echo "$as_me:$LINENO: result: $ac_res" >&5
7524 echo "${ECHO_T}$ac_res" >&6; }
7525 if test `eval echo '${'$as_ac_var'}'` = yes; then
7526 cat >>confdefs.h <<_ACEOF
7527 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7528 _ACEOF
7531 done
7533 # Usefull, but special to newlib/MSVC
7535 for ac_func in strlwr
7537 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7538 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7539 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7540 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7541 echo $ECHO_N "(cached) $ECHO_C" >&6
7542 else
7543 cat >conftest.$ac_ext <<_ACEOF
7544 /* confdefs.h. */
7545 _ACEOF
7546 cat confdefs.h >>conftest.$ac_ext
7547 cat >>conftest.$ac_ext <<_ACEOF
7548 /* end confdefs.h. */
7549 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7550 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7551 #define $ac_func innocuous_$ac_func
7553 /* System header to define __stub macros and hopefully few prototypes,
7554 which can conflict with char $ac_func (); below.
7555 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7556 <limits.h> exists even on freestanding compilers. */
7558 #ifdef __STDC__
7559 # include <limits.h>
7560 #else
7561 # include <assert.h>
7562 #endif
7564 #undef $ac_func
7566 /* Override any GCC internal prototype to avoid an error.
7567 Use char because int might match the return type of a GCC
7568 builtin and then its argument prototype would still apply. */
7569 #ifdef __cplusplus
7570 extern "C"
7571 #endif
7572 char $ac_func ();
7573 /* The GNU C library defines this for functions which it implements
7574 to always fail with ENOSYS. Some functions are actually named
7575 something starting with __ and the normal name is an alias. */
7576 #if defined __stub_$ac_func || defined __stub___$ac_func
7577 choke me
7578 #endif
7581 main ()
7583 return $ac_func ();
7585 return 0;
7587 _ACEOF
7588 rm -f conftest.$ac_objext conftest$ac_exeext
7589 if { (ac_try="$ac_link"
7590 case "(($ac_try" in
7591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7592 *) ac_try_echo=$ac_try;;
7593 esac
7594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7595 (eval "$ac_link") 2>conftest.er1
7596 ac_status=$?
7597 grep -v '^ *+' conftest.er1 >conftest.err
7598 rm -f conftest.er1
7599 cat conftest.err >&5
7600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601 (exit $ac_status); } && {
7602 test -z "$ac_c_werror_flag" ||
7603 test ! -s conftest.err
7604 } && test -s conftest$ac_exeext &&
7605 $as_test_x conftest$ac_exeext; then
7606 eval "$as_ac_var=yes"
7607 else
7608 echo "$as_me: failed program was:" >&5
7609 sed 's/^/| /' conftest.$ac_ext >&5
7611 eval "$as_ac_var=no"
7614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7615 conftest$ac_exeext conftest.$ac_ext
7617 ac_res=`eval echo '${'$as_ac_var'}'`
7618 { echo "$as_me:$LINENO: result: $ac_res" >&5
7619 echo "${ECHO_T}$ac_res" >&6; }
7620 if test `eval echo '${'$as_ac_var'}'` = yes; then
7621 cat >>confdefs.h <<_ACEOF
7622 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7623 _ACEOF
7626 done
7629 cat >confcache <<\_ACEOF
7630 # This file is a shell script that caches the results of configure
7631 # tests run on this system so they can be shared between configure
7632 # scripts and configure runs, see configure's option --config-cache.
7633 # It is not useful on other systems. If it contains results you don't
7634 # want to keep, you may remove or edit it.
7636 # config.status only pays attention to the cache file if you give it
7637 # the --recheck option to rerun configure.
7639 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7640 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7641 # following values.
7643 _ACEOF
7645 # The following way of writing the cache mishandles newlines in values,
7646 # but we know of no workaround that is simple, portable, and efficient.
7647 # So, we kill variables containing newlines.
7648 # Ultrix sh set writes to stderr and can't be redirected directly,
7649 # and sets the high bit in the cache file unless we assign to the vars.
7651 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7652 eval ac_val=\$$ac_var
7653 case $ac_val in #(
7654 *${as_nl}*)
7655 case $ac_var in #(
7656 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
7657 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
7658 esac
7659 case $ac_var in #(
7660 _ | IFS | as_nl) ;; #(
7661 *) $as_unset $ac_var ;;
7662 esac ;;
7663 esac
7664 done
7666 (set) 2>&1 |
7667 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7668 *${as_nl}ac_space=\ *)
7669 # `set' does not quote correctly, so add quotes (double-quote
7670 # substitution turns \\\\ into \\, and sed turns \\ into \).
7671 sed -n \
7672 "s/'/'\\\\''/g;
7673 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7674 ;; #(
7676 # `set' quotes correctly as required by POSIX, so do not add quotes.
7677 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7679 esac |
7680 sort
7682 sed '
7683 /^ac_cv_env_/b end
7684 t clear
7685 :clear
7686 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7687 t end
7688 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7689 :end' >>confcache
7690 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7691 if test -w "$cache_file"; then
7692 test "x$cache_file" != "x/dev/null" &&
7693 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
7694 echo "$as_me: updating cache $cache_file" >&6;}
7695 cat confcache >$cache_file
7696 else
7697 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
7698 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7701 rm -f confcache
7703 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7704 # Let make expand exec_prefix.
7705 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7707 DEFS=-DHAVE_CONFIG_H
7709 ac_libobjs=
7710 ac_ltlibobjs=
7711 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7712 # 1. Remove the extension, and $U if already installed.
7713 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7714 ac_i=`echo "$ac_i" | sed "$ac_script"`
7715 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7716 # will be set to the directory where LIBOBJS objects are built.
7717 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7718 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
7719 done
7720 LIBOBJS=$ac_libobjs
7722 LTLIBOBJS=$ac_ltlibobjs
7725 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7726 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
7727 Usually this means the macro was only invoked conditionally." >&5
7728 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
7729 Usually this means the macro was only invoked conditionally." >&2;}
7730 { (exit 1); exit 1; }; }
7732 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7733 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
7734 Usually this means the macro was only invoked conditionally." >&5
7735 echo "$as_me: error: conditional \"AMDEP\" was never defined.
7736 Usually this means the macro was only invoked conditionally." >&2;}
7737 { (exit 1); exit 1; }; }
7739 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7740 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
7741 Usually this means the macro was only invoked conditionally." >&5
7742 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
7743 Usually this means the macro was only invoked conditionally." >&2;}
7744 { (exit 1); exit 1; }; }
7746 if test -z "${OSTYPEUNIX_TRUE}" && test -z "${OSTYPEUNIX_FALSE}"; then
7747 { { echo "$as_me:$LINENO: error: conditional \"OSTYPEUNIX\" was never defined.
7748 Usually this means the macro was only invoked conditionally." >&5
7749 echo "$as_me: error: conditional \"OSTYPEUNIX\" was never defined.
7750 Usually this means the macro was only invoked conditionally." >&2;}
7751 { (exit 1); exit 1; }; }
7753 if test -z "${OSTYPEWIN32_TRUE}" && test -z "${OSTYPEWIN32_FALSE}"; then
7754 { { echo "$as_me:$LINENO: error: conditional \"OSTYPEWIN32\" was never defined.
7755 Usually this means the macro was only invoked conditionally." >&5
7756 echo "$as_me: error: conditional \"OSTYPEWIN32\" was never defined.
7757 Usually this means the macro was only invoked conditionally." >&2;}
7758 { (exit 1); exit 1; }; }
7760 if test -z "${DBUG_TRUE}" && test -z "${DBUG_FALSE}"; then
7761 { { echo "$as_me:$LINENO: error: conditional \"DBUG\" was never defined.
7762 Usually this means the macro was only invoked conditionally." >&5
7763 echo "$as_me: error: conditional \"DBUG\" was never defined.
7764 Usually this means the macro was only invoked conditionally." >&2;}
7765 { (exit 1); exit 1; }; }
7768 : ${CONFIG_STATUS=./config.status}
7769 ac_clean_files_save=$ac_clean_files
7770 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7771 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7772 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7773 cat >$CONFIG_STATUS <<_ACEOF
7774 #! $SHELL
7775 # Generated by $as_me.
7776 # Run this file to recreate the current configuration.
7777 # Compiler output produced by configure, useful for debugging
7778 # configure, is in config.log if it exists.
7780 debug=false
7781 ac_cs_recheck=false
7782 ac_cs_silent=false
7783 SHELL=\${CONFIG_SHELL-$SHELL}
7784 _ACEOF
7786 cat >>$CONFIG_STATUS <<\_ACEOF
7787 ## --------------------- ##
7788 ## M4sh Initialization. ##
7789 ## --------------------- ##
7791 # Be more Bourne compatible
7792 DUALCASE=1; export DUALCASE # for MKS sh
7793 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7794 emulate sh
7795 NULLCMD=:
7796 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7797 # is contrary to our usage. Disable this feature.
7798 alias -g '${1+"$@"}'='"$@"'
7799 setopt NO_GLOB_SUBST
7800 else
7801 case `(set -o) 2>/dev/null` in
7802 *posix*) set -o posix ;;
7803 esac
7810 # PATH needs CR
7811 # Avoid depending upon Character Ranges.
7812 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7813 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7814 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7815 as_cr_digits='0123456789'
7816 as_cr_alnum=$as_cr_Letters$as_cr_digits
7818 # The user is always right.
7819 if test "${PATH_SEPARATOR+set}" != set; then
7820 echo "#! /bin/sh" >conf$$.sh
7821 echo "exit 0" >>conf$$.sh
7822 chmod +x conf$$.sh
7823 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7824 PATH_SEPARATOR=';'
7825 else
7826 PATH_SEPARATOR=:
7828 rm -f conf$$.sh
7831 # Support unset when possible.
7832 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7833 as_unset=unset
7834 else
7835 as_unset=false
7839 # IFS
7840 # We need space, tab and new line, in precisely that order. Quoting is
7841 # there to prevent editors from complaining about space-tab.
7842 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7843 # splitting by setting IFS to empty value.)
7844 as_nl='
7846 IFS=" "" $as_nl"
7848 # Find who we are. Look in the path if we contain no directory separator.
7849 case $0 in
7850 *[\\/]* ) as_myself=$0 ;;
7851 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7852 for as_dir in $PATH
7854 IFS=$as_save_IFS
7855 test -z "$as_dir" && as_dir=.
7856 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7857 done
7858 IFS=$as_save_IFS
7861 esac
7862 # We did not find ourselves, most probably we were run as `sh COMMAND'
7863 # in which case we are not to be found in the path.
7864 if test "x$as_myself" = x; then
7865 as_myself=$0
7867 if test ! -f "$as_myself"; then
7868 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7869 { (exit 1); exit 1; }
7872 # Work around bugs in pre-3.0 UWIN ksh.
7873 for as_var in ENV MAIL MAILPATH
7874 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7875 done
7876 PS1='$ '
7877 PS2='> '
7878 PS4='+ '
7880 # NLS nuisances.
7881 for as_var in \
7882 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7883 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7884 LC_TELEPHONE LC_TIME
7886 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7887 eval $as_var=C; export $as_var
7888 else
7889 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7891 done
7893 # Required to use basename.
7894 if expr a : '\(a\)' >/dev/null 2>&1 &&
7895 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7896 as_expr=expr
7897 else
7898 as_expr=false
7901 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7902 as_basename=basename
7903 else
7904 as_basename=false
7908 # Name of the executable.
7909 as_me=`$as_basename -- "$0" ||
7910 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7911 X"$0" : 'X\(//\)$' \| \
7912 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7913 echo X/"$0" |
7914 sed '/^.*\/\([^/][^/]*\)\/*$/{
7915 s//\1/
7918 /^X\/\(\/\/\)$/{
7919 s//\1/
7922 /^X\/\(\/\).*/{
7923 s//\1/
7926 s/.*/./; q'`
7928 # CDPATH.
7929 $as_unset CDPATH
7933 as_lineno_1=$LINENO
7934 as_lineno_2=$LINENO
7935 test "x$as_lineno_1" != "x$as_lineno_2" &&
7936 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
7938 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7939 # uniformly replaced by the line number. The first 'sed' inserts a
7940 # line-number line after each line using $LINENO; the second 'sed'
7941 # does the real work. The second script uses 'N' to pair each
7942 # line-number line with the line containing $LINENO, and appends
7943 # trailing '-' during substitution so that $LINENO is not a special
7944 # case at line end.
7945 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7946 # scripts with optimization help from Paolo Bonzini. Blame Lee
7947 # E. McMahon (1931-1989) for sed's syntax. :-)
7948 sed -n '
7950 /[$]LINENO/=
7951 ' <$as_myself |
7952 sed '
7953 s/[$]LINENO.*/&-/
7954 t lineno
7956 :lineno
7958 :loop
7959 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
7960 t loop
7961 s/-\n.*//
7962 ' >$as_me.lineno &&
7963 chmod +x "$as_me.lineno" ||
7964 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
7965 { (exit 1); exit 1; }; }
7967 # Don't try to exec as it changes $[0], causing all sort of problems
7968 # (the dirname of $[0] is not the place where we might find the
7969 # original and so on. Autoconf is especially sensitive to this).
7970 . "./$as_me.lineno"
7971 # Exit status is that of the last command.
7972 exit
7976 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7977 as_dirname=dirname
7978 else
7979 as_dirname=false
7982 ECHO_C= ECHO_N= ECHO_T=
7983 case `echo -n x` in
7984 -n*)
7985 case `echo 'x\c'` in
7986 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7987 *) ECHO_C='\c';;
7988 esac;;
7990 ECHO_N='-n';;
7991 esac
7993 if expr a : '\(a\)' >/dev/null 2>&1 &&
7994 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7995 as_expr=expr
7996 else
7997 as_expr=false
8000 rm -f conf$$ conf$$.exe conf$$.file
8001 if test -d conf$$.dir; then
8002 rm -f conf$$.dir/conf$$.file
8003 else
8004 rm -f conf$$.dir
8005 mkdir conf$$.dir
8007 echo >conf$$.file
8008 if ln -s conf$$.file conf$$ 2>/dev/null; then
8009 as_ln_s='ln -s'
8010 # ... but there are two gotchas:
8011 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8012 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8013 # In both cases, we have to default to `cp -p'.
8014 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8015 as_ln_s='cp -p'
8016 elif ln conf$$.file conf$$ 2>/dev/null; then
8017 as_ln_s=ln
8018 else
8019 as_ln_s='cp -p'
8021 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8022 rmdir conf$$.dir 2>/dev/null
8024 if mkdir -p . 2>/dev/null; then
8025 as_mkdir_p=:
8026 else
8027 test -d ./-p && rmdir ./-p
8028 as_mkdir_p=false
8031 if test -x / >/dev/null 2>&1; then
8032 as_test_x='test -x'
8033 else
8034 if ls -dL / >/dev/null 2>&1; then
8035 as_ls_L_option=L
8036 else
8037 as_ls_L_option=
8039 as_test_x='
8040 eval sh -c '\''
8041 if test -d "$1"; then
8042 test -d "$1/.";
8043 else
8044 case $1 in
8045 -*)set "./$1";;
8046 esac;
8047 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
8048 ???[sx]*):;;*)false;;esac;fi
8049 '\'' sh
8052 as_executable_p=$as_test_x
8054 # Sed expression to map a string onto a valid CPP name.
8055 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8057 # Sed expression to map a string onto a valid variable name.
8058 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8061 exec 6>&1
8063 # Save the log message, to keep $[0] and so on meaningful, and to
8064 # report actual input values of CONFIG_FILES etc. instead of their
8065 # values after options handling.
8066 ac_log="
8067 This file was extended by dmake $as_me 4.12, which was
8068 generated by GNU Autoconf 2.61. Invocation command line was
8070 CONFIG_FILES = $CONFIG_FILES
8071 CONFIG_HEADERS = $CONFIG_HEADERS
8072 CONFIG_LINKS = $CONFIG_LINKS
8073 CONFIG_COMMANDS = $CONFIG_COMMANDS
8074 $ $0 $@
8076 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8079 _ACEOF
8081 cat >>$CONFIG_STATUS <<_ACEOF
8082 # Files that config.status was made for.
8083 config_files="$ac_config_files"
8084 config_headers="$ac_config_headers"
8085 config_commands="$ac_config_commands"
8087 _ACEOF
8089 cat >>$CONFIG_STATUS <<\_ACEOF
8090 ac_cs_usage="\
8091 \`$as_me' instantiates files from templates according to the
8092 current configuration.
8094 Usage: $0 [OPTIONS] [FILE]...
8096 -h, --help print this help, then exit
8097 -V, --version print version number and configuration settings, then exit
8098 -q, --quiet do not print progress messages
8099 -d, --debug don't remove temporary files
8100 --recheck update $as_me by reconfiguring in the same conditions
8101 --file=FILE[:TEMPLATE]
8102 instantiate the configuration file FILE
8103 --header=FILE[:TEMPLATE]
8104 instantiate the configuration header FILE
8106 Configuration files:
8107 $config_files
8109 Configuration headers:
8110 $config_headers
8112 Configuration commands:
8113 $config_commands
8115 Report bugs to <bug-autoconf@gnu.org>."
8117 _ACEOF
8118 cat >>$CONFIG_STATUS <<_ACEOF
8119 ac_cs_version="\\
8120 dmake config.status 4.12
8121 configured by $0, generated by GNU Autoconf 2.61,
8122 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8124 Copyright (C) 2006 Free Software Foundation, Inc.
8125 This config.status script is free software; the Free Software Foundation
8126 gives unlimited permission to copy, distribute and modify it."
8128 ac_pwd='$ac_pwd'
8129 srcdir='$srcdir'
8130 INSTALL='$INSTALL'
8131 _ACEOF
8133 cat >>$CONFIG_STATUS <<\_ACEOF
8134 # If no file are specified by the user, then we need to provide default
8135 # value. By we need to know if files were specified by the user.
8136 ac_need_defaults=:
8137 while test $# != 0
8139 case $1 in
8140 --*=*)
8141 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8142 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8143 ac_shift=:
8146 ac_option=$1
8147 ac_optarg=$2
8148 ac_shift=shift
8150 esac
8152 case $ac_option in
8153 # Handling of the options.
8154 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8155 ac_cs_recheck=: ;;
8156 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8157 echo "$ac_cs_version"; exit ;;
8158 --debug | --debu | --deb | --de | --d | -d )
8159 debug=: ;;
8160 --file | --fil | --fi | --f )
8161 $ac_shift
8162 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8163 ac_need_defaults=false;;
8164 --header | --heade | --head | --hea )
8165 $ac_shift
8166 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8167 ac_need_defaults=false;;
8168 --he | --h)
8169 # Conflict between --help and --header
8170 { echo "$as_me: error: ambiguous option: $1
8171 Try \`$0 --help' for more information." >&2
8172 { (exit 1); exit 1; }; };;
8173 --help | --hel | -h )
8174 echo "$ac_cs_usage"; exit ;;
8175 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8176 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8177 ac_cs_silent=: ;;
8179 # This is an error.
8180 -*) { echo "$as_me: error: unrecognized option: $1
8181 Try \`$0 --help' for more information." >&2
8182 { (exit 1); exit 1; }; } ;;
8184 *) ac_config_targets="$ac_config_targets $1"
8185 ac_need_defaults=false ;;
8187 esac
8188 shift
8189 done
8191 ac_configure_extra_args=
8193 if $ac_cs_silent; then
8194 exec 6>/dev/null
8195 ac_configure_extra_args="$ac_configure_extra_args --silent"
8198 _ACEOF
8199 cat >>$CONFIG_STATUS <<_ACEOF
8200 if \$ac_cs_recheck; then
8201 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8202 CONFIG_SHELL=$SHELL
8203 export CONFIG_SHELL
8204 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8207 _ACEOF
8208 cat >>$CONFIG_STATUS <<\_ACEOF
8209 exec 5>>config.log
8211 echo
8212 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8213 ## Running $as_me. ##
8214 _ASBOX
8215 echo "$ac_log"
8216 } >&5
8218 _ACEOF
8219 cat >>$CONFIG_STATUS <<_ACEOF
8221 # INIT-COMMANDS
8223 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8225 _ACEOF
8227 cat >>$CONFIG_STATUS <<\_ACEOF
8229 # Handling of arguments.
8230 for ac_config_target in $ac_config_targets
8232 case $ac_config_target in
8233 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8234 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8235 "dmakeroot.h") CONFIG_FILES="$CONFIG_FILES dmakeroot.h" ;;
8236 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8237 "startup/config.mk") CONFIG_FILES="$CONFIG_FILES startup/config.mk" ;;
8238 "startup/Makefile") CONFIG_FILES="$CONFIG_FILES startup/Makefile" ;;
8239 "startup/unix/Makefile") CONFIG_FILES="$CONFIG_FILES startup/unix/Makefile" ;;
8240 "startup/unix/linux/Makefile") CONFIG_FILES="$CONFIG_FILES startup/unix/linux/Makefile" ;;
8241 "startup/unix/solaris/Makefile") CONFIG_FILES="$CONFIG_FILES startup/unix/solaris/Makefile" ;;
8242 "startup/unix/macosx/Makefile") CONFIG_FILES="$CONFIG_FILES startup/unix/macosx/Makefile" ;;
8243 "startup/unix/sysvr4/Makefile") CONFIG_FILES="$CONFIG_FILES startup/unix/sysvr4/Makefile" ;;
8244 "startup/unix/cygwin/Makefile") CONFIG_FILES="$CONFIG_FILES startup/unix/cygwin/Makefile" ;;
8245 "startup/unix/os2/Makefile") CONFIG_FILES="$CONFIG_FILES startup/unix/os2/Makefile" ;;
8246 "startup/winnt/Makefile") CONFIG_FILES="$CONFIG_FILES startup/winnt/Makefile" ;;
8247 "startup/winnt/mingw/Makefile") CONFIG_FILES="$CONFIG_FILES startup/winnt/mingw/Makefile" ;;
8248 "startup/winnt/msvc6/Makefile") CONFIG_FILES="$CONFIG_FILES startup/winnt/msvc6/Makefile" ;;
8249 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
8251 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8252 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8253 { (exit 1); exit 1; }; };;
8254 esac
8255 done
8258 # If the user did not use the arguments to specify the items to instantiate,
8259 # then the envvar interface is used. Set only those that are not.
8260 # We use the long form for the default assignment because of an extremely
8261 # bizarre bug on SunOS 4.1.3.
8262 if $ac_need_defaults; then
8263 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8264 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8265 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8268 # Have a temporary directory for convenience. Make it in the build tree
8269 # simply because there is no reason against having it here, and in addition,
8270 # creating and moving files from /tmp can sometimes cause problems.
8271 # Hook for its removal unless debugging.
8272 # Note that there is a small window in which the directory will not be cleaned:
8273 # after its creation but before its name has been assigned to `$tmp'.
8274 $debug ||
8276 tmp=
8277 trap 'exit_status=$?
8278 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8280 trap '{ (exit 1); exit 1; }' 1 2 13 15
8282 # Create a (secure) tmp directory for tmp files.
8285 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8286 test -n "$tmp" && test -d "$tmp"
8287 } ||
8289 tmp=./conf$$-$RANDOM
8290 (umask 077 && mkdir "$tmp")
8291 } ||
8293 echo "$me: cannot create a temporary directory in ." >&2
8294 { (exit 1); exit 1; }
8298 # Set up the sed scripts for CONFIG_FILES section.
8301 # No need to generate the scripts if there are no CONFIG_FILES.
8302 # This happens for instance when ./config.status config.h
8303 if test -n "$CONFIG_FILES"; then
8305 _ACEOF
8309 ac_delim='%!_!# '
8310 for ac_last_try in false false false false false :; do
8311 cat >conf$$subs.sed <<_ACEOF
8312 SHELL!$SHELL$ac_delim
8313 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
8314 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
8315 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
8316 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
8317 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
8318 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
8319 exec_prefix!$exec_prefix$ac_delim
8320 prefix!$prefix$ac_delim
8321 program_transform_name!$program_transform_name$ac_delim
8322 bindir!$bindir$ac_delim
8323 sbindir!$sbindir$ac_delim
8324 libexecdir!$libexecdir$ac_delim
8325 datarootdir!$datarootdir$ac_delim
8326 datadir!$datadir$ac_delim
8327 sysconfdir!$sysconfdir$ac_delim
8328 sharedstatedir!$sharedstatedir$ac_delim
8329 localstatedir!$localstatedir$ac_delim
8330 includedir!$includedir$ac_delim
8331 oldincludedir!$oldincludedir$ac_delim
8332 docdir!$docdir$ac_delim
8333 infodir!$infodir$ac_delim
8334 htmldir!$htmldir$ac_delim
8335 dvidir!$dvidir$ac_delim
8336 pdfdir!$pdfdir$ac_delim
8337 psdir!$psdir$ac_delim
8338 libdir!$libdir$ac_delim
8339 localedir!$localedir$ac_delim
8340 mandir!$mandir$ac_delim
8341 DEFS!$DEFS$ac_delim
8342 ECHO_C!$ECHO_C$ac_delim
8343 ECHO_N!$ECHO_N$ac_delim
8344 ECHO_T!$ECHO_T$ac_delim
8345 LIBS!$LIBS$ac_delim
8346 build_alias!$build_alias$ac_delim
8347 host_alias!$host_alias$ac_delim
8348 target_alias!$target_alias$ac_delim
8349 build!$build$ac_delim
8350 build_cpu!$build_cpu$ac_delim
8351 build_vendor!$build_vendor$ac_delim
8352 build_os!$build_os$ac_delim
8353 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
8354 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
8355 INSTALL_DATA!$INSTALL_DATA$ac_delim
8356 CYGPATH_W!$CYGPATH_W$ac_delim
8357 PACKAGE!$PACKAGE$ac_delim
8358 VERSION!$VERSION$ac_delim
8359 ACLOCAL!$ACLOCAL$ac_delim
8360 AUTOCONF!$AUTOCONF$ac_delim
8361 AUTOMAKE!$AUTOMAKE$ac_delim
8362 AUTOHEADER!$AUTOHEADER$ac_delim
8363 MAKEINFO!$MAKEINFO$ac_delim
8364 install_sh!$install_sh$ac_delim
8365 STRIP!$STRIP$ac_delim
8366 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
8367 mkdir_p!$mkdir_p$ac_delim
8368 AWK!$AWK$ac_delim
8369 SET_MAKE!$SET_MAKE$ac_delim
8370 am__leading_dot!$am__leading_dot$ac_delim
8371 AMTAR!$AMTAR$ac_delim
8372 am__tar!$am__tar$ac_delim
8373 am__untar!$am__untar$ac_delim
8374 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
8375 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
8376 MAINT!$MAINT$ac_delim
8377 CC!$CC$ac_delim
8378 CFLAGS!$CFLAGS$ac_delim
8379 LDFLAGS!$LDFLAGS$ac_delim
8380 CPPFLAGS!$CPPFLAGS$ac_delim
8381 ac_ct_CC!$ac_ct_CC$ac_delim
8382 EXEEXT!$EXEEXT$ac_delim
8383 OBJEXT!$OBJEXT$ac_delim
8384 DEPDIR!$DEPDIR$ac_delim
8385 am__include!$am__include$ac_delim
8386 am__quote!$am__quote$ac_delim
8387 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
8388 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
8389 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
8390 CCDEPMODE!$CCDEPMODE$ac_delim
8391 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
8392 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
8393 CPP!$CPP$ac_delim
8394 LN_S!$LN_S$ac_delim
8395 RANLIB!$RANLIB$ac_delim
8396 OSTYPEUNIX_TRUE!$OSTYPEUNIX_TRUE$ac_delim
8397 OSTYPEUNIX_FALSE!$OSTYPEUNIX_FALSE$ac_delim
8398 OSTYPEWIN32_TRUE!$OSTYPEWIN32_TRUE$ac_delim
8399 OSTYPEWIN32_FALSE!$OSTYPEWIN32_FALSE$ac_delim
8400 OS_TYPE!$OS_TYPE$ac_delim
8401 OS_VERSION!$OS_VERSION$ac_delim
8402 DBUG_TRUE!$DBUG_TRUE$ac_delim
8403 DBUG_FALSE!$DBUG_FALSE$ac_delim
8404 DMAKEROOT_H_LINE1!$DMAKEROOT_H_LINE1$ac_delim
8405 GREP!$GREP$ac_delim
8406 EGREP!$EGREP$ac_delim
8407 LIBOBJS!$LIBOBJS$ac_delim
8408 LTLIBOBJS!$LTLIBOBJS$ac_delim
8409 _ACEOF
8411 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
8412 break
8413 elif $ac_last_try; then
8414 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
8415 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
8416 { (exit 1); exit 1; }; }
8417 else
8418 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8420 done
8422 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
8423 if test -n "$ac_eof"; then
8424 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
8425 ac_eof=`expr $ac_eof + 1`
8428 cat >>$CONFIG_STATUS <<_ACEOF
8429 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
8430 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8431 _ACEOF
8432 sed '
8433 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
8434 s/^/s,@/; s/!/@,|#_!!_#|/
8437 s/'"$ac_delim"'$/,g/; t
8438 s/$/\\/; p
8439 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
8440 ' >>$CONFIG_STATUS <conf$$subs.sed
8441 rm -f conf$$subs.sed
8442 cat >>$CONFIG_STATUS <<_ACEOF
8443 CEOF$ac_eof
8444 _ACEOF
8447 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8448 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8449 # trailing colons and then remove the whole line if VPATH becomes empty
8450 # (actually we leave an empty line to preserve line numbers).
8451 if test "x$srcdir" = x.; then
8452 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8453 s/:*\$(srcdir):*/:/
8454 s/:*\${srcdir}:*/:/
8455 s/:*@srcdir@:*/:/
8456 s/^\([^=]*=[ ]*\):*/\1/
8457 s/:*$//
8458 s/^[^=]*=[ ]*$//
8462 cat >>$CONFIG_STATUS <<\_ACEOF
8463 fi # test -n "$CONFIG_FILES"
8466 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
8468 case $ac_tag in
8469 :[FHLC]) ac_mode=$ac_tag; continue;;
8470 esac
8471 case $ac_mode$ac_tag in
8472 :[FHL]*:*);;
8473 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
8474 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
8475 { (exit 1); exit 1; }; };;
8476 :[FH]-) ac_tag=-:-;;
8477 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8478 esac
8479 ac_save_IFS=$IFS
8480 IFS=:
8481 set x $ac_tag
8482 IFS=$ac_save_IFS
8483 shift
8484 ac_file=$1
8485 shift
8487 case $ac_mode in
8488 :L) ac_source=$1;;
8489 :[FH])
8490 ac_file_inputs=
8491 for ac_f
8493 case $ac_f in
8494 -) ac_f="$tmp/stdin";;
8495 *) # Look for the file first in the build tree, then in the source tree
8496 # (if the path is not absolute). The absolute path cannot be DOS-style,
8497 # because $ac_f cannot contain `:'.
8498 test -f "$ac_f" ||
8499 case $ac_f in
8500 [\\/$]*) false;;
8501 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8502 esac ||
8503 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
8504 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
8505 { (exit 1); exit 1; }; };;
8506 esac
8507 ac_file_inputs="$ac_file_inputs $ac_f"
8508 done
8510 # Let's still pretend it is `configure' which instantiates (i.e., don't
8511 # use $as_me), people would be surprised to read:
8512 # /* config.h. Generated by config.status. */
8513 configure_input="Generated from "`IFS=:
8514 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
8515 if test x"$ac_file" != x-; then
8516 configure_input="$ac_file. $configure_input"
8517 { echo "$as_me:$LINENO: creating $ac_file" >&5
8518 echo "$as_me: creating $ac_file" >&6;}
8521 case $ac_tag in
8522 *:-:* | *:-) cat >"$tmp/stdin";;
8523 esac
8525 esac
8527 ac_dir=`$as_dirname -- "$ac_file" ||
8528 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8529 X"$ac_file" : 'X\(//\)[^/]' \| \
8530 X"$ac_file" : 'X\(//\)$' \| \
8531 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8532 echo X"$ac_file" |
8533 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8534 s//\1/
8537 /^X\(\/\/\)[^/].*/{
8538 s//\1/
8541 /^X\(\/\/\)$/{
8542 s//\1/
8545 /^X\(\/\).*/{
8546 s//\1/
8549 s/.*/./; q'`
8550 { as_dir="$ac_dir"
8551 case $as_dir in #(
8552 -*) as_dir=./$as_dir;;
8553 esac
8554 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8555 as_dirs=
8556 while :; do
8557 case $as_dir in #(
8558 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
8559 *) as_qdir=$as_dir;;
8560 esac
8561 as_dirs="'$as_qdir' $as_dirs"
8562 as_dir=`$as_dirname -- "$as_dir" ||
8563 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8564 X"$as_dir" : 'X\(//\)[^/]' \| \
8565 X"$as_dir" : 'X\(//\)$' \| \
8566 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8567 echo X"$as_dir" |
8568 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8569 s//\1/
8572 /^X\(\/\/\)[^/].*/{
8573 s//\1/
8576 /^X\(\/\/\)$/{
8577 s//\1/
8580 /^X\(\/\).*/{
8581 s//\1/
8584 s/.*/./; q'`
8585 test -d "$as_dir" && break
8586 done
8587 test -z "$as_dirs" || eval "mkdir $as_dirs"
8588 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8589 echo "$as_me: error: cannot create directory $as_dir" >&2;}
8590 { (exit 1); exit 1; }; }; }
8591 ac_builddir=.
8593 case "$ac_dir" in
8594 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8596 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8597 # A ".." for each directory in $ac_dir_suffix.
8598 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
8599 case $ac_top_builddir_sub in
8600 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8601 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8602 esac ;;
8603 esac
8604 ac_abs_top_builddir=$ac_pwd
8605 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8606 # for backward compatibility:
8607 ac_top_builddir=$ac_top_build_prefix
8609 case $srcdir in
8610 .) # We are building in place.
8611 ac_srcdir=.
8612 ac_top_srcdir=$ac_top_builddir_sub
8613 ac_abs_top_srcdir=$ac_pwd ;;
8614 [\\/]* | ?:[\\/]* ) # Absolute name.
8615 ac_srcdir=$srcdir$ac_dir_suffix;
8616 ac_top_srcdir=$srcdir
8617 ac_abs_top_srcdir=$srcdir ;;
8618 *) # Relative name.
8619 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8620 ac_top_srcdir=$ac_top_build_prefix$srcdir
8621 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8622 esac
8623 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8626 case $ac_mode in
8629 # CONFIG_FILE
8632 case $INSTALL in
8633 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8634 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8635 esac
8636 _ACEOF
8638 cat >>$CONFIG_STATUS <<\_ACEOF
8639 # If the template does not know about datarootdir, expand it.
8640 # FIXME: This hack should be removed a few years after 2.60.
8641 ac_datarootdir_hack=; ac_datarootdir_seen=
8643 case `sed -n '/datarootdir/ {
8647 /@datadir@/p
8648 /@docdir@/p
8649 /@infodir@/p
8650 /@localedir@/p
8651 /@mandir@/p
8652 ' $ac_file_inputs` in
8653 *datarootdir*) ac_datarootdir_seen=yes;;
8654 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8655 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8656 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8657 _ACEOF
8658 cat >>$CONFIG_STATUS <<_ACEOF
8659 ac_datarootdir_hack='
8660 s&@datadir@&$datadir&g
8661 s&@docdir@&$docdir&g
8662 s&@infodir@&$infodir&g
8663 s&@localedir@&$localedir&g
8664 s&@mandir@&$mandir&g
8665 s&\\\${datarootdir}&$datarootdir&g' ;;
8666 esac
8667 _ACEOF
8669 # Neutralize VPATH when `$srcdir' = `.'.
8670 # Shell code in configure.ac might set extrasub.
8671 # FIXME: do we really want to maintain this feature?
8672 cat >>$CONFIG_STATUS <<_ACEOF
8673 sed "$ac_vpsub
8674 $extrasub
8675 _ACEOF
8676 cat >>$CONFIG_STATUS <<\_ACEOF
8678 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8679 s&@configure_input@&$configure_input&;t t
8680 s&@top_builddir@&$ac_top_builddir_sub&;t t
8681 s&@srcdir@&$ac_srcdir&;t t
8682 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8683 s&@top_srcdir@&$ac_top_srcdir&;t t
8684 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8685 s&@builddir@&$ac_builddir&;t t
8686 s&@abs_builddir@&$ac_abs_builddir&;t t
8687 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8688 s&@INSTALL@&$ac_INSTALL&;t t
8689 $ac_datarootdir_hack
8690 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed 's/|#_!!_#|//g' >$tmp/out
8692 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8693 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8694 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8695 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8696 which seems to be undefined. Please make sure it is defined." >&5
8697 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8698 which seems to be undefined. Please make sure it is defined." >&2;}
8700 rm -f "$tmp/stdin"
8701 case $ac_file in
8702 -) cat "$tmp/out"; rm -f "$tmp/out";;
8703 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
8704 esac
8708 # CONFIG_HEADER
8710 _ACEOF
8712 # Transform confdefs.h into a sed script `conftest.defines', that
8713 # substitutes the proper values into config.h.in to produce config.h.
8714 rm -f conftest.defines conftest.tail
8715 # First, append a space to every undef/define line, to ease matching.
8716 echo 's/$/ /' >conftest.defines
8717 # Then, protect against being on the right side of a sed subst, or in
8718 # an unquoted here document, in config.status. If some macros were
8719 # called several times there might be several #defines for the same
8720 # symbol, which is useless. But do not sort them, since the last
8721 # AC_DEFINE must be honored.
8722 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8723 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
8724 # NAME is the cpp macro being defined, VALUE is the value it is being given.
8725 # PARAMS is the parameter list in the macro definition--in most cases, it's
8726 # just an empty string.
8727 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
8728 ac_dB='\\)[ (].*,\\1define\\2'
8729 ac_dC=' '
8730 ac_dD=' ,'
8732 uniq confdefs.h |
8733 sed -n '
8734 t rset
8735 :rset
8736 s/^[ ]*#[ ]*define[ ][ ]*//
8737 t ok
8740 s/[\\&,]/\\&/g
8741 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
8742 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
8743 ' >>conftest.defines
8745 # Remove the space that was appended to ease matching.
8746 # Then replace #undef with comments. This is necessary, for
8747 # example, in the case of _POSIX_SOURCE, which is predefined and required
8748 # on some systems where configure will not decide to define it.
8749 # (The regexp can be short, since the line contains either #define or #undef.)
8750 echo 's/ $//
8751 s,^[ #]*u.*,/* & */,' >>conftest.defines
8753 # Break up conftest.defines:
8754 ac_max_sed_lines=50
8756 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
8757 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
8758 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
8759 # et cetera.
8760 ac_in='$ac_file_inputs'
8761 ac_out='"$tmp/out1"'
8762 ac_nxt='"$tmp/out2"'
8764 while :
8766 # Write a here document:
8767 cat >>$CONFIG_STATUS <<_ACEOF
8768 # First, check the format of the line:
8769 cat >"\$tmp/defines.sed" <<\\CEOF
8770 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
8771 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
8773 :def
8774 _ACEOF
8775 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
8776 echo 'CEOF
8777 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
8778 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
8779 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
8780 grep . conftest.tail >/dev/null || break
8781 rm -f conftest.defines
8782 mv conftest.tail conftest.defines
8783 done
8784 rm -f conftest.defines conftest.tail
8786 echo "ac_result=$ac_in" >>$CONFIG_STATUS
8787 cat >>$CONFIG_STATUS <<\_ACEOF
8788 if test x"$ac_file" != x-; then
8789 echo "/* $configure_input */" >"$tmp/config.h"
8790 cat "$ac_result" >>"$tmp/config.h"
8791 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
8792 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8793 echo "$as_me: $ac_file is unchanged" >&6;}
8794 else
8795 rm -f $ac_file
8796 mv "$tmp/config.h" $ac_file
8798 else
8799 echo "/* $configure_input */"
8800 cat "$ac_result"
8802 rm -f "$tmp/out12"
8803 # Compute $ac_file's index in $config_headers.
8804 _am_stamp_count=1
8805 for _am_header in $config_headers :; do
8806 case $_am_header in
8807 $ac_file | $ac_file:* )
8808 break ;;
8810 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8811 esac
8812 done
8813 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
8814 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8815 X$ac_file : 'X\(//\)[^/]' \| \
8816 X$ac_file : 'X\(//\)$' \| \
8817 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
8818 echo X$ac_file |
8819 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8820 s//\1/
8823 /^X\(\/\/\)[^/].*/{
8824 s//\1/
8827 /^X\(\/\/\)$/{
8828 s//\1/
8831 /^X\(\/\).*/{
8832 s//\1/
8835 s/.*/./; q'`/stamp-h$_am_stamp_count
8838 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
8839 echo "$as_me: executing $ac_file commands" >&6;}
8841 esac
8844 case $ac_file$ac_mode in
8845 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
8846 # Strip MF so we end up with the name of the file.
8847 mf=`echo "$mf" | sed -e 's/:.*$//'`
8848 # Check whether this is an Automake generated Makefile or not.
8849 # We used to match only the files named `Makefile.in', but
8850 # some people rename them; so instead we look at the file content.
8851 # Grep'ing the first line is not enough: some people post-process
8852 # each Makefile.in and add a new line on top of each file to say so.
8853 # So let's grep whole file.
8854 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
8855 dirpart=`$as_dirname -- "$mf" ||
8856 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8857 X"$mf" : 'X\(//\)[^/]' \| \
8858 X"$mf" : 'X\(//\)$' \| \
8859 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8860 echo X"$mf" |
8861 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8862 s//\1/
8865 /^X\(\/\/\)[^/].*/{
8866 s//\1/
8869 /^X\(\/\/\)$/{
8870 s//\1/
8873 /^X\(\/\).*/{
8874 s//\1/
8877 s/.*/./; q'`
8878 else
8879 continue
8881 # Extract the definition of DEPDIR, am__include, and am__quote
8882 # from the Makefile without running `make'.
8883 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8884 test -z "$DEPDIR" && continue
8885 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8886 test -z "am__include" && continue
8887 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8888 # When using ansi2knr, U may be empty or an underscore; expand it
8889 U=`sed -n 's/^U = //p' < "$mf"`
8890 # Find all dependency output files, they are included files with
8891 # $(DEPDIR) in their names. We invoke sed twice because it is the
8892 # simplest approach to changing $(DEPDIR) to its actual value in the
8893 # expansion.
8894 for file in `sed -n "
8895 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8896 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8897 # Make sure the directory exists.
8898 test -f "$dirpart/$file" && continue
8899 fdir=`$as_dirname -- "$file" ||
8900 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8901 X"$file" : 'X\(//\)[^/]' \| \
8902 X"$file" : 'X\(//\)$' \| \
8903 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8904 echo X"$file" |
8905 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8906 s//\1/
8909 /^X\(\/\/\)[^/].*/{
8910 s//\1/
8913 /^X\(\/\/\)$/{
8914 s//\1/
8917 /^X\(\/\).*/{
8918 s//\1/
8921 s/.*/./; q'`
8922 { as_dir=$dirpart/$fdir
8923 case $as_dir in #(
8924 -*) as_dir=./$as_dir;;
8925 esac
8926 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8927 as_dirs=
8928 while :; do
8929 case $as_dir in #(
8930 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
8931 *) as_qdir=$as_dir;;
8932 esac
8933 as_dirs="'$as_qdir' $as_dirs"
8934 as_dir=`$as_dirname -- "$as_dir" ||
8935 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8936 X"$as_dir" : 'X\(//\)[^/]' \| \
8937 X"$as_dir" : 'X\(//\)$' \| \
8938 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8939 echo X"$as_dir" |
8940 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8941 s//\1/
8944 /^X\(\/\/\)[^/].*/{
8945 s//\1/
8948 /^X\(\/\/\)$/{
8949 s//\1/
8952 /^X\(\/\).*/{
8953 s//\1/
8956 s/.*/./; q'`
8957 test -d "$as_dir" && break
8958 done
8959 test -z "$as_dirs" || eval "mkdir $as_dirs"
8960 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8961 echo "$as_me: error: cannot create directory $as_dir" >&2;}
8962 { (exit 1); exit 1; }; }; }
8963 # echo "creating $dirpart/$file"
8964 echo '# dummy' > "$dirpart/$file"
8965 done
8966 done
8969 esac
8970 done # for ac_tag
8973 { (exit 0); exit 0; }
8974 _ACEOF
8975 chmod +x $CONFIG_STATUS
8976 ac_clean_files=$ac_clean_files_save
8979 # configure is writing to config.log, and then calls config.status.
8980 # config.status does its own redirection, appending to config.log.
8981 # Unfortunately, on DOS this fails, as config.log is still kept open
8982 # by configure, so config.status won't be able to write to it; its
8983 # output is simply discarded. So we exec the FD to /dev/null,
8984 # effectively closing config.log, so it can be properly (re)opened and
8985 # appended to by config.status. When coming back to configure, we
8986 # need to make the FD available again.
8987 if test "$no_create" != yes; then
8988 ac_cs_success=:
8989 ac_config_status_args=
8990 test "$silent" = yes &&
8991 ac_config_status_args="$ac_config_status_args --quiet"
8992 exec 5>/dev/null
8993 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8994 exec 5>>config.log
8995 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8996 # would make configure fail if this is the last instruction.
8997 $ac_cs_success || { (exit 1); exit 1; }