2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for stressapptest 1.0.0_autoconf.
5 # Report bugs to <opensource@gmail.com>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
72 # Find who we are. Look in the path if we contain no directory separator.
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
163 if test $as_have_required = yes && (eval ":
173 as_func_ret_success () {
176 as_func_ret_failure () {
181 if as_func_success; then
185 echo as_func_success failed.
188 if as_func_failure; then
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 test -z "$as_dir" && as_dir=.
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
260 CONFIG_SHELL=$as_shell
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
288 as_func_ret_success () {
291 as_func_ret_failure () {
296 if as_func_success; then
300 echo as_func_success failed.
303 if as_func_failure; then
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
377 as_func_ret_success () {
380 as_func_ret_failure () {
385 if as_func_success; then
389 echo as_func_success failed.
392 if as_func_failure; then
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
463 # Exit status is that of the last command.
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
474 ECHO_C= ECHO_N= ECHO_T=
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 elif ln conf$$.file conf$$ 2>/dev/null; then
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
519 test -d ./-p && rmdir ./-p
523 if test -x / >/dev/null 2>&1; then
526 if ls -dL / >/dev/null 2>&1; then
533 if test -d "$1"; then
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
554 exec 7<&0 </dev/null 6>&1
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564 ac_default_prefix=/usr/local
566 ac_config_libobj_dir=.
572 SHELL=${CONFIG_SHELL-/bin/sh}
574 # Identity of this package.
575 PACKAGE_NAME='stressapptest'
576 PACKAGE_TARNAME='stressapptest'
577 PACKAGE_VERSION='1.0.0_autoconf'
578 PACKAGE_STRING='stressapptest 1.0.0_autoconf'
579 PACKAGE_BUGREPORT='opensource@gmail.com'
581 ac_unique_file="src/"
582 # Factoring default headers for most tests.
583 ac_includes_default="\
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
595 # ifdef HAVE_STDLIB_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
627 program_transform_name
681 INSTALL_STRIP_PROGRAM
717 ac_precious_vars='build_alias
731 # Initialize some variables set by options.
733 ac_init_version=false
734 # The variables have the same names as the options, with
735 # dashes changed to underlines.
743 program_transform_name=s,x,x,
751 # Installation directory options.
752 # These are left unexpanded so users can "make install exec_prefix=/foo"
753 # and all the variables that are supposed to be based on exec_prefix
754 # by default will actually change.
755 # Use braces instead of parens because sh, perl, etc. also accept them.
756 # (The list follows the same order as the GNU Coding Standards.)
757 bindir='${exec_prefix}/bin'
758 sbindir='${exec_prefix}/sbin'
759 libexecdir='${exec_prefix}/libexec'
760 datarootdir='${prefix}/share'
761 datadir='${datarootdir}'
762 sysconfdir='${prefix}/etc'
763 sharedstatedir='${prefix}/com'
764 localstatedir='${prefix}/var'
765 includedir='${prefix}/include'
766 oldincludedir='/usr/include'
767 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
768 infodir='${datarootdir}/info'
773 libdir='${exec_prefix}/lib'
774 localedir='${datarootdir}/locale'
775 mandir='${datarootdir}/man'
781 # If the previous option needs an argument, assign it.
782 if test -n "$ac_prev"; then
783 eval $ac_prev=\$ac_option
789 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
793 # Accept the important Cygnus configure options, so we can diagnose typos.
795 case $ac_dashdash$ac_option in
799 -bindir | --bindir | --bindi | --bind | --bin | --bi)
801 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
804 -build | --build | --buil | --bui | --bu)
805 ac_prev=build_alias ;;
806 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
807 build_alias=$ac_optarg ;;
809 -cache-file | --cache-file | --cache-fil | --cache-fi \
810 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
811 ac_prev=cache_file ;;
812 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
813 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
814 cache_file=$ac_optarg ;;
817 cache_file=config.cache ;;
819 -datadir | --datadir | --datadi | --datad)
821 -datadir=* | --datadir=* | --datadi=* | --datad=*)
822 datadir=$ac_optarg ;;
824 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
825 | --dataroo | --dataro | --datar)
826 ac_prev=datarootdir ;;
827 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
828 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
829 datarootdir=$ac_optarg ;;
831 -disable-* | --disable-*)
832 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
833 # Reject names that are not valid shell variable names.
834 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
835 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
836 { (exit 1); exit 1; }; }
837 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
838 eval enable_$ac_feature=no ;;
840 -docdir | --docdir | --docdi | --doc | --do)
842 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
845 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
847 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
850 -enable-* | --enable-*)
851 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
852 # Reject names that are not valid shell variable names.
853 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
854 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
855 { (exit 1); exit 1; }; }
856 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
857 eval enable_$ac_feature=\$ac_optarg ;;
859 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
860 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
861 | --exec | --exe | --ex)
862 ac_prev=exec_prefix ;;
863 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
864 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
865 | --exec=* | --exe=* | --ex=*)
866 exec_prefix=$ac_optarg ;;
868 -gas | --gas | --ga | --g)
869 # Obsolete; use --with-gas.
872 -help | --help | --hel | --he | -h)
874 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
875 ac_init_help=recursive ;;
876 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
877 ac_init_help=short ;;
879 -host | --host | --hos | --ho)
880 ac_prev=host_alias ;;
881 -host=* | --host=* | --hos=* | --ho=*)
882 host_alias=$ac_optarg ;;
884 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
886 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
888 htmldir=$ac_optarg ;;
890 -includedir | --includedir | --includedi | --included | --include \
891 | --includ | --inclu | --incl | --inc)
892 ac_prev=includedir ;;
893 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
894 | --includ=* | --inclu=* | --incl=* | --inc=*)
895 includedir=$ac_optarg ;;
897 -infodir | --infodir | --infodi | --infod | --info | --inf)
899 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
900 infodir=$ac_optarg ;;
902 -libdir | --libdir | --libdi | --libd)
904 -libdir=* | --libdir=* | --libdi=* | --libd=*)
907 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
908 | --libexe | --libex | --libe)
909 ac_prev=libexecdir ;;
910 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
911 | --libexe=* | --libex=* | --libe=*)
912 libexecdir=$ac_optarg ;;
914 -localedir | --localedir | --localedi | --localed | --locale)
916 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
917 localedir=$ac_optarg ;;
919 -localstatedir | --localstatedir | --localstatedi | --localstated \
920 | --localstate | --localstat | --localsta | --localst | --locals)
921 ac_prev=localstatedir ;;
922 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
923 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
924 localstatedir=$ac_optarg ;;
926 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
928 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
932 # Obsolete; use --without-fp.
935 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
936 | --no-cr | --no-c | -n)
939 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
940 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
943 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
944 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
945 | --oldin | --oldi | --old | --ol | --o)
946 ac_prev=oldincludedir ;;
947 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
948 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
949 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
950 oldincludedir=$ac_optarg ;;
952 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
954 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
957 -program-prefix | --program-prefix | --program-prefi | --program-pref \
958 | --program-pre | --program-pr | --program-p)
959 ac_prev=program_prefix ;;
960 -program-prefix=* | --program-prefix=* | --program-prefi=* \
961 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
962 program_prefix=$ac_optarg ;;
964 -program-suffix | --program-suffix | --program-suffi | --program-suff \
965 | --program-suf | --program-su | --program-s)
966 ac_prev=program_suffix ;;
967 -program-suffix=* | --program-suffix=* | --program-suffi=* \
968 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
969 program_suffix=$ac_optarg ;;
971 -program-transform-name | --program-transform-name \
972 | --program-transform-nam | --program-transform-na \
973 | --program-transform-n | --program-transform- \
974 | --program-transform | --program-transfor \
975 | --program-transfo | --program-transf \
976 | --program-trans | --program-tran \
977 | --progr-tra | --program-tr | --program-t)
978 ac_prev=program_transform_name ;;
979 -program-transform-name=* | --program-transform-name=* \
980 | --program-transform-nam=* | --program-transform-na=* \
981 | --program-transform-n=* | --program-transform-=* \
982 | --program-transform=* | --program-transfor=* \
983 | --program-transfo=* | --program-transf=* \
984 | --program-trans=* | --program-tran=* \
985 | --progr-tra=* | --program-tr=* | --program-t=*)
986 program_transform_name=$ac_optarg ;;
988 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
990 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
993 -psdir | --psdir | --psdi | --psd | --ps)
995 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
998 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
999 | -silent | --silent | --silen | --sile | --sil)
1002 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1004 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1006 sbindir=$ac_optarg ;;
1008 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1009 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1010 | --sharedst | --shareds | --shared | --share | --shar \
1012 ac_prev=sharedstatedir ;;
1013 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1014 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1015 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1017 sharedstatedir=$ac_optarg ;;
1019 -site | --site | --sit)
1021 -site=* | --site=* | --sit=*)
1024 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1026 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1027 srcdir=$ac_optarg ;;
1029 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1030 | --syscon | --sysco | --sysc | --sys | --sy)
1031 ac_prev=sysconfdir ;;
1032 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1033 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1034 sysconfdir=$ac_optarg ;;
1036 -target | --target | --targe | --targ | --tar | --ta | --t)
1037 ac_prev=target_alias ;;
1038 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1039 target_alias=$ac_optarg ;;
1041 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1044 -version | --version | --versio | --versi | --vers | -V)
1045 ac_init_version=: ;;
1048 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1049 # Reject names that are not valid shell variable names.
1050 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1051 { echo "$as_me: error: invalid package name: $ac_package" >&2
1052 { (exit 1); exit 1; }; }
1053 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1054 eval with_$ac_package=\$ac_optarg ;;
1056 -without-* | --without-*)
1057 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1058 # Reject names that are not valid shell variable names.
1059 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1060 { echo "$as_me: error: invalid package name: $ac_package" >&2
1061 { (exit 1); exit 1; }; }
1062 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1063 eval with_$ac_package=no ;;
1066 # Obsolete; use --with-x.
1069 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1070 | --x-incl | --x-inc | --x-in | --x-i)
1071 ac_prev=x_includes ;;
1072 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1073 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1074 x_includes=$ac_optarg ;;
1076 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1077 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1078 ac_prev=x_libraries ;;
1079 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1080 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1081 x_libraries=$ac_optarg ;;
1083 -*) { echo "$as_me: error: unrecognized option: $ac_option
1084 Try \`$0 --help' for more information." >&2
1085 { (exit 1); exit 1; }; }
1089 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1090 # Reject names that are not valid shell variable names.
1091 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1092 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1093 { (exit 1); exit 1; }; }
1094 eval $ac_envvar=\$ac_optarg
1095 export $ac_envvar ;;
1098 # FIXME: should be removed in autoconf 3.0.
1099 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1100 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1101 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1102 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1108 if test -n "$ac_prev"; then
1109 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1110 { echo "$as_me: error: missing argument to $ac_option" >&2
1111 { (exit 1); exit 1; }; }
1114 # Be sure to have absolute directory names.
1115 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1116 datadir sysconfdir sharedstatedir localstatedir includedir \
1117 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1118 libdir localedir mandir
1120 eval ac_val=\$$ac_var
1122 [\\/$]* | ?:[\\/]* ) continue;;
1123 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1125 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1126 { (exit 1); exit 1; }; }
1129 # There might be people who depend on the old broken behavior: `$host'
1130 # used to hold the argument of --host etc.
1131 # FIXME: To remove some day.
1134 target=$target_alias
1136 # FIXME: To remove some day.
1137 if test "x$host_alias" != x; then
1138 if test "x$build_alias" = x; then
1139 cross_compiling=maybe
1140 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1141 If a cross compiler is detected then cross compile mode will be used." >&2
1142 elif test "x$build_alias" != "x$host_alias"; then
1148 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1150 test "$silent" = yes && exec 6>/dev/null
1153 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1154 ac_ls_di=`ls -di .` &&
1155 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1156 { echo "$as_me: error: Working directory cannot be determined" >&2
1157 { (exit 1); exit 1; }; }
1158 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1159 { echo "$as_me: error: pwd does not report name of working directory" >&2
1160 { (exit 1); exit 1; }; }
1163 # Find the source files, if location was not specified.
1164 if test -z "$srcdir"; then
1165 ac_srcdir_defaulted=yes
1166 # Try the directory containing this script, then the parent directory.
1167 ac_confdir=`$as_dirname -- "$0" ||
1168 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1169 X"$0" : 'X\(//\)[^/]' \| \
1170 X"$0" : 'X\(//\)$' \| \
1171 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1173 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1191 if test ! -r "$srcdir/$ac_unique_file"; then
1195 ac_srcdir_defaulted=no
1197 if test ! -r "$srcdir/$ac_unique_file"; then
1198 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1199 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1200 { (exit 1); exit 1; }; }
1202 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1204 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1205 { (exit 1); exit 1; }; }
1207 # When building in place, set srcdir=.
1208 if test "$ac_abs_confdir" = "$ac_pwd"; then
1211 # Remove unnecessary trailing slashes from srcdir.
1212 # Double slashes in file names in object file debugging info
1213 # mess up M-x gdb in Emacs.
1215 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1217 for ac_var in $ac_precious_vars; do
1218 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1219 eval ac_env_${ac_var}_value=\$${ac_var}
1220 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1221 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1225 # Report the --help message.
1227 if test "$ac_init_help" = "long"; then
1228 # Omit some internal or obsolete options to make the list less imposing.
1229 # This message is too long to be a string in the A/UX 3.1 sh.
1231 \`configure' configures stressapptest 1.0.0_autoconf to adapt to many kinds of systems.
1233 Usage: $0 [OPTION]... [VAR=VALUE]...
1235 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1236 VAR=VALUE. See below for descriptions of some of the useful variables.
1238 Defaults for the options are specified in brackets.
1241 -h, --help display this help and exit
1242 --help=short display options specific to this package
1243 --help=recursive display the short help of all the included packages
1244 -V, --version display version information and exit
1245 -q, --quiet, --silent do not print \`checking...' messages
1246 --cache-file=FILE cache test results in FILE [disabled]
1247 -C, --config-cache alias for \`--cache-file=config.cache'
1248 -n, --no-create do not create output files
1249 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1251 Installation directories:
1252 --prefix=PREFIX install architecture-independent files in PREFIX
1253 [$ac_default_prefix]
1254 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1257 By default, \`make install' will install all the files in
1258 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1259 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1260 for instance \`--prefix=\$HOME'.
1262 For better control, use the options below.
1264 Fine tuning of the installation directories:
1265 --bindir=DIR user executables [EPREFIX/bin]
1266 --sbindir=DIR system admin executables [EPREFIX/sbin]
1267 --libexecdir=DIR program executables [EPREFIX/libexec]
1268 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1269 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1270 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1271 --libdir=DIR object code libraries [EPREFIX/lib]
1272 --includedir=DIR C header files [PREFIX/include]
1273 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1274 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1275 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1276 --infodir=DIR info documentation [DATAROOTDIR/info]
1277 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1278 --mandir=DIR man documentation [DATAROOTDIR/man]
1279 --docdir=DIR documentation root [DATAROOTDIR/doc/stressapptest]
1280 --htmldir=DIR html documentation [DOCDIR]
1281 --dvidir=DIR dvi documentation [DOCDIR]
1282 --pdfdir=DIR pdf documentation [DOCDIR]
1283 --psdir=DIR ps documentation [DOCDIR]
1289 --program-prefix=PREFIX prepend PREFIX to installed program names
1290 --program-suffix=SUFFIX append SUFFIX to installed program names
1291 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1294 --build=BUILD configure for building on BUILD [guessed]
1295 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1296 --target=TARGET configure for building compilers for TARGET [HOST]
1300 if test -n "$ac_init_help"; then
1301 case $ac_init_help in
1302 short | recursive ) echo "Configuration of stressapptest 1.0.0_autoconf:";;
1307 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1308 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1309 --disable-dependency-tracking speeds up one-time build
1310 --enable-dependency-tracking do not reject slow dependency extractors
1312 Some influential environment variables:
1313 CXX C++ compiler command
1314 CXXFLAGS 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 CC C compiler command
1321 CFLAGS C compiler flags
1324 Use these variables to override the choices made by `configure' or to help
1325 it to find libraries and programs with nonstandard names/locations.
1327 Report bugs to <opensource@gmail.com>.
1332 if test "$ac_init_help" = "recursive"; then
1333 # If there are subdirs, report their specific --help.
1334 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1335 test -d "$ac_dir" || continue
1339 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1341 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1342 # A ".." for each directory in $ac_dir_suffix.
1343 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1344 case $ac_top_builddir_sub in
1345 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1346 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1349 ac_abs_top_builddir=$ac_pwd
1350 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1351 # for backward compatibility:
1352 ac_top_builddir=$ac_top_build_prefix
1355 .) # We are building in place.
1357 ac_top_srcdir=$ac_top_builddir_sub
1358 ac_abs_top_srcdir=$ac_pwd ;;
1359 [\\/]* | ?:[\\/]* ) # Absolute name.
1360 ac_srcdir=$srcdir$ac_dir_suffix;
1361 ac_top_srcdir=$srcdir
1362 ac_abs_top_srcdir=$srcdir ;;
1364 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1365 ac_top_srcdir=$ac_top_build_prefix$srcdir
1366 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1368 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1370 cd "$ac_dir" || { ac_status=$?; continue; }
1371 # Check for guested configure.
1372 if test -f "$ac_srcdir/configure.gnu"; then
1374 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1375 elif test -f "$ac_srcdir/configure"; then
1377 $SHELL "$ac_srcdir/configure" --help=recursive
1379 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1381 cd "$ac_pwd" || { ac_status=$?; break; }
1385 test -n "$ac_init_help" && exit $ac_status
1386 if $ac_init_version; then
1388 stressapptest configure 1.0.0_autoconf
1389 generated by GNU Autoconf 2.61
1391 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1392 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1393 This configure script is free software; the Free Software Foundation
1394 gives unlimited permission to copy, distribute and modify it.
1398 cat >config.log <<_ACEOF
1399 This file contains any messages produced by compilers while
1400 running configure, to aid debugging if configure makes a mistake.
1402 It was created by stressapptest $as_me 1.0.0_autoconf, which was
1403 generated by GNU Autoconf 2.61. Invocation command line was
1415 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1416 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1417 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1418 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1419 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1421 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1422 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1424 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1425 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1426 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1427 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1428 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1429 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1430 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1438 test -z "$as_dir" && as_dir=.
1439 echo "PATH: $as_dir"
1455 # Keep a trace of the command line.
1456 # Strip out --no-create and --no-recursion so they do not pile up.
1457 # Strip out --silent because we don't want to record it for future runs.
1458 # Also quote any args containing shell meta-characters.
1459 # Make two passes to allow for proper duplicate-argument suppression.
1463 ac_must_keep_next=false
1469 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1470 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1471 | -silent | --silent | --silen | --sile | --sil)
1474 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1477 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1479 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1480 if test $ac_must_keep_next = true; then
1481 ac_must_keep_next=false # Got value, back to normal.
1484 *=* | --config-cache | -C | -disable-* | --disable-* \
1485 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1486 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1487 | -with-* | --with-* | -without-* | --without-* | --x)
1488 case "$ac_configure_args0 " in
1489 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1492 -* ) ac_must_keep_next=true ;;
1495 ac_configure_args="$ac_configure_args '$ac_arg'"
1500 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1501 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1503 # When interrupted or exit'd, cleanup temporary files, and complete
1504 # config.log. We remove comments because anyway the quotes in there
1505 # would cause problems or look ugly.
1506 # WARNING: Use '\'' to represent an apostrophe within the trap.
1507 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1508 trap 'exit_status=$?
1509 # Save into config.log some information that might help in debugging.
1514 ## ---------------- ##
1515 ## Cache variables. ##
1516 ## ---------------- ##
1519 # The following way of writing the cache mishandles newlines in values,
1521 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1522 eval ac_val=\$$ac_var
1526 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1527 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1530 _ | IFS | as_nl) ;; #(
1531 *) $as_unset $ac_var ;;
1536 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1537 *${as_nl}ac_space=\ *)
1539 "s/'\''/'\''\\\\'\'''\''/g;
1540 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1543 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1551 ## ----------------- ##
1552 ## Output variables. ##
1553 ## ----------------- ##
1556 for ac_var in $ac_subst_vars
1558 eval ac_val=\$$ac_var
1560 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1562 echo "$ac_var='\''$ac_val'\''"
1566 if test -n "$ac_subst_files"; then
1568 ## ------------------- ##
1569 ## File substitutions. ##
1570 ## ------------------- ##
1573 for ac_var in $ac_subst_files
1575 eval ac_val=\$$ac_var
1577 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1579 echo "$ac_var='\''$ac_val'\''"
1584 if test -s confdefs.h; then
1594 test "$ac_signal" != 0 &&
1595 echo "$as_me: caught signal $ac_signal"
1596 echo "$as_me: exit $exit_status"
1598 rm -f core *.core core.conftest.* &&
1599 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1602 for ac_signal in 1 2 13 15; do
1603 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1607 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1608 rm -f -r conftest* confdefs.h
1610 # Predefined preprocessor variables.
1612 cat >>confdefs.h <<_ACEOF
1613 #define PACKAGE_NAME "$PACKAGE_NAME"
1617 cat >>confdefs.h <<_ACEOF
1618 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1622 cat >>confdefs.h <<_ACEOF
1623 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1627 cat >>confdefs.h <<_ACEOF
1628 #define PACKAGE_STRING "$PACKAGE_STRING"
1632 cat >>confdefs.h <<_ACEOF
1633 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1637 # Let the site file select an alternate cache file if it wants to.
1638 # Prefer explicitly selected file to automatically selected ones.
1639 if test -n "$CONFIG_SITE"; then
1640 set x "$CONFIG_SITE"
1641 elif test "x$prefix" != xNONE; then
1642 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1644 set x "$ac_default_prefix/share/config.site" \
1645 "$ac_default_prefix/etc/config.site"
1650 if test -r "$ac_site_file"; then
1651 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1652 echo "$as_me: loading site script $ac_site_file" >&6;}
1653 sed 's/^/| /' "$ac_site_file" >&5
1658 if test -r "$cache_file"; then
1659 # Some versions of bash will fail to source /dev/null (special
1660 # files actually), so we avoid doing that.
1661 if test -f "$cache_file"; then
1662 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1663 echo "$as_me: loading cache $cache_file" >&6;}
1665 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1666 *) . "./$cache_file";;
1670 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1671 echo "$as_me: creating cache $cache_file" >&6;}
1675 # Check that the precious variables saved in the cache have kept the same
1677 ac_cache_corrupted=false
1678 for ac_var in $ac_precious_vars; do
1679 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1680 eval ac_new_set=\$ac_env_${ac_var}_set
1681 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1682 eval ac_new_val=\$ac_env_${ac_var}_value
1683 case $ac_old_set,$ac_new_set in
1685 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1686 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1687 ac_cache_corrupted=: ;;
1689 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1690 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1691 ac_cache_corrupted=: ;;
1694 if test "x$ac_old_val" != "x$ac_new_val"; then
1695 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1696 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1697 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1698 echo "$as_me: former value: $ac_old_val" >&2;}
1699 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1700 echo "$as_me: current value: $ac_new_val" >&2;}
1701 ac_cache_corrupted=:
1704 # Pass precious variables to config.status.
1705 if test "$ac_new_set" = set; then
1707 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1708 *) ac_arg=$ac_var=$ac_new_val ;;
1710 case " $ac_configure_args " in
1711 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1712 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1716 if $ac_cache_corrupted; then
1717 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1718 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1719 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1720 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1721 { (exit 1); exit 1; }; }
1749 ac_cpp='$CPP $CPPFLAGS'
1750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1756 # Checking for target cpu and setting custom configuration
1757 # for the different platforms
1759 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1760 if test -f "$ac_dir/install-sh"; then
1762 ac_install_sh="$ac_aux_dir/install-sh -c"
1764 elif test -f "$ac_dir/install.sh"; then
1766 ac_install_sh="$ac_aux_dir/install.sh -c"
1768 elif test -f "$ac_dir/shtool"; then
1770 ac_install_sh="$ac_aux_dir/shtool install -c"
1774 if test -z "$ac_aux_dir"; then
1775 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1776 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1777 { (exit 1); exit 1; }; }
1780 # These three variables are undocumented and unsupported,
1781 # and are intended to be withdrawn in a future Autoconf release.
1782 # They can cause serious problems if a builder's source tree is in a directory
1783 # whose full name contains unusual characters.
1784 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1785 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1786 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1789 # Make sure we can run config.sub.
1790 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1791 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1792 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1793 { (exit 1); exit 1; }; }
1795 { echo "$as_me:$LINENO: checking build system type" >&5
1796 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1797 if test "${ac_cv_build+set}" = set; then
1798 echo $ECHO_N "(cached) $ECHO_C" >&6
1800 ac_build_alias=$build_alias
1801 test "x$ac_build_alias" = x &&
1802 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1803 test "x$ac_build_alias" = x &&
1804 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1805 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1806 { (exit 1); exit 1; }; }
1807 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1808 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1809 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1810 { (exit 1); exit 1; }; }
1813 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1814 echo "${ECHO_T}$ac_cv_build" >&6; }
1815 case $ac_cv_build in
1817 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1818 echo "$as_me: error: invalid value of canonical build" >&2;}
1819 { (exit 1); exit 1; }; };;
1822 ac_save_IFS=$IFS; IFS='-'
1828 # Remember, the first character of IFS is used to create $*,
1829 # except with old shells:
1832 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1835 { echo "$as_me:$LINENO: checking host system type" >&5
1836 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1837 if test "${ac_cv_host+set}" = set; then
1838 echo $ECHO_N "(cached) $ECHO_C" >&6
1840 if test "x$host_alias" = x; then
1841 ac_cv_host=$ac_cv_build
1843 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1844 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1845 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1846 { (exit 1); exit 1; }; }
1850 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1851 echo "${ECHO_T}$ac_cv_host" >&6; }
1854 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1855 echo "$as_me: error: invalid value of canonical host" >&2;}
1856 { (exit 1); exit 1; }; };;
1859 ac_save_IFS=$IFS; IFS='-'
1865 # Remember, the first character of IFS is used to create $*,
1866 # except with old shells:
1869 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1872 { echo "$as_me:$LINENO: checking target system type" >&5
1873 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1874 if test "${ac_cv_target+set}" = set; then
1875 echo $ECHO_N "(cached) $ECHO_C" >&6
1877 if test "x$target_alias" = x; then
1878 ac_cv_target=$ac_cv_host
1880 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1881 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1882 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1883 { (exit 1); exit 1; }; }
1887 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1888 echo "${ECHO_T}$ac_cv_target" >&6; }
1889 case $ac_cv_target in
1891 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1892 echo "$as_me: error: invalid value of canonical target" >&2;}
1893 { (exit 1); exit 1; }; };;
1895 target=$ac_cv_target
1896 ac_save_IFS=$IFS; IFS='-'
1902 # Remember, the first character of IFS is used to create $*,
1903 # except with old shells:
1906 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1909 # The aliases save the names the user supplied, while $host etc.
1910 # will get canonicalized.
1911 test -n "$target_alias" &&
1912 test "$program_prefix$program_suffix$program_transform_name" = \
1914 program_prefix=${target_alias}-
1915 case x"$target_cpu" in
1918 cat >>confdefs.h <<\_ACEOF
1919 #define STRESSAPPTEST_CPU_X86_64
1925 cat >>confdefs.h <<\_ACEOF
1926 #define STRESSAPPTEST_CPU_I686
1932 cat >>confdefs.h <<\_ACEOF
1933 #define STRESSAPPTEST_CPU_PPC
1939 am__api_version='1.10'
1941 # Find a good install program. We prefer a C program (faster),
1942 # so one script is as good as another. But avoid the broken or
1943 # incompatible versions:
1944 # SysV /etc/install, /usr/sbin/install
1945 # SunOS /usr/etc/install
1946 # IRIX /sbin/install
1948 # AmigaOS /C/install, which installs bootblocks on floppy discs
1949 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1950 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1951 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1952 # OS/2's system install, which has a completely different semantic
1953 # ./install, which can be erroneously created by make from ./install.sh.
1954 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1955 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1956 if test -z "$INSTALL"; then
1957 if test "${ac_cv_path_install+set}" = set; then
1958 echo $ECHO_N "(cached) $ECHO_C" >&6
1960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1964 test -z "$as_dir" && as_dir=.
1965 # Account for people who put trailing slashes in PATH elements.
1967 ./ | .// | /cC/* | \
1968 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1969 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1972 # OSF1 and SCO ODT 3.0 have their own names for install.
1973 # Don't use installbsd from OSF since it installs stuff as root
1975 for ac_prog in ginstall scoinst install; do
1976 for ac_exec_ext in '' $ac_executable_extensions; do
1977 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1978 if test $ac_prog = install &&
1979 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1980 # AIX install. It has an incompatible calling convention.
1982 elif test $ac_prog = install &&
1983 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1984 # program-specific install script used by HP pwplus--don't use.
1987 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2000 if test "${ac_cv_path_install+set}" = set; then
2001 INSTALL=$ac_cv_path_install
2003 # As a last resort, use the slow shell script. Don't cache a
2004 # value for INSTALL within a source directory, because that will
2005 # break other packages using the cache if that directory is
2006 # removed, or if the value is a relative name.
2007 INSTALL=$ac_install_sh
2010 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2011 echo "${ECHO_T}$INSTALL" >&6; }
2013 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2014 # It thinks the first close brace ends the variable substitution.
2015 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2017 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2019 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2021 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2022 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2025 echo timestamp > conftest.file
2026 # Do `set' in a subshell so we don't clobber the current shell's
2027 # arguments. Must try -L first in case configure is actually a
2028 # symlink; some systems play weird games with the mod time of symlinks
2029 # (eg FreeBSD returns the mod time of the symlink's containing
2032 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2033 if test "$*" = "X"; then
2035 set X `ls -t $srcdir/configure conftest.file`
2038 if test "$*" != "X $srcdir/configure conftest.file" \
2039 && test "$*" != "X conftest.file $srcdir/configure"; then
2041 # If neither matched, then we have a broken ls. This can happen
2042 # if, for instance, CONFIG_SHELL is bash and it inherits a
2043 # broken ls alias from the environment. This has actually
2044 # happened. Such a system could not be considered "sane".
2045 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2046 alias in your environment" >&5
2047 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2048 alias in your environment" >&2;}
2049 { (exit 1); exit 1; }; }
2052 test "$2" = conftest.file
2058 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2059 Check your system clock" >&5
2060 echo "$as_me: error: newly created file is older than distributed files!
2061 Check your system clock" >&2;}
2062 { (exit 1); exit 1; }; }
2064 { echo "$as_me:$LINENO: result: yes" >&5
2065 echo "${ECHO_T}yes" >&6; }
2066 test "$program_prefix" != NONE &&
2067 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2068 # Use a double $ so make ignores it.
2069 test "$program_suffix" != NONE &&
2070 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2071 # Double any \ or $. echo might interpret backslashes.
2072 # By default was `s,x,x', remove it if useless.
2073 cat <<\_ACEOF >conftest.sed
2074 s/[\\$]/&&/g;s/;s,x,x,$//
2076 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2079 # expand $ac_aux_dir to an absolute path
2080 am_aux_dir=`cd $ac_aux_dir && pwd`
2082 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2083 # Use eval to expand $SHELL
2084 if eval "$MISSING --run true"; then
2085 am_missing_run="$MISSING --run "
2088 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2089 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2092 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2093 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2094 if test -z "$MKDIR_P"; then
2095 if test "${ac_cv_path_mkdir+set}" = set; then
2096 echo $ECHO_N "(cached) $ECHO_C" >&6
2098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2099 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2102 test -z "$as_dir" && as_dir=.
2103 for ac_prog in mkdir gmkdir; do
2104 for ac_exec_ext in '' $ac_executable_extensions; do
2105 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2106 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2107 'mkdir (GNU coreutils) '* | \
2108 'mkdir (coreutils) '* | \
2109 'mkdir (fileutils) '4.1*)
2110 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2120 if test "${ac_cv_path_mkdir+set}" = set; then
2121 MKDIR_P="$ac_cv_path_mkdir -p"
2123 # As a last resort, use the slow shell script. Don't cache a
2124 # value for MKDIR_P within a source directory, because that will
2125 # break other packages using the cache if that directory is
2126 # removed, or if the value is a relative name.
2127 test -d ./--version && rmdir ./--version
2128 MKDIR_P="$ac_install_sh -d"
2131 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2132 echo "${ECHO_T}$MKDIR_P" >&6; }
2136 [\\/$]* | ?:[\\/]*) ;;
2137 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2140 for ac_prog in gawk mawk nawk awk
2142 # Extract the first word of "$ac_prog", so it can be a program name with args.
2143 set dummy $ac_prog; ac_word=$2
2144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2146 if test "${ac_cv_prog_AWK+set}" = set; then
2147 echo $ECHO_N "(cached) $ECHO_C" >&6
2149 if test -n "$AWK"; then
2150 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2156 test -z "$as_dir" && as_dir=.
2157 for ac_exec_ext in '' $ac_executable_extensions; do
2158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2159 ac_cv_prog_AWK="$ac_prog"
2160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2170 if test -n "$AWK"; then
2171 { echo "$as_me:$LINENO: result: $AWK" >&5
2172 echo "${ECHO_T}$AWK" >&6; }
2174 { echo "$as_me:$LINENO: result: no" >&5
2175 echo "${ECHO_T}no" >&6; }
2179 test -n "$AWK" && break
2182 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2183 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2184 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2185 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2186 echo $ECHO_N "(cached) $ECHO_C" >&6
2188 cat >conftest.make <<\_ACEOF
2191 @echo '@@@%%%=$(MAKE)=@@@%%%'
2193 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2194 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2196 eval ac_cv_prog_make_${ac_make}_set=yes;;
2198 eval ac_cv_prog_make_${ac_make}_set=no;;
2202 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2203 { echo "$as_me:$LINENO: result: yes" >&5
2204 echo "${ECHO_T}yes" >&6; }
2207 { echo "$as_me:$LINENO: result: no" >&5
2208 echo "${ECHO_T}no" >&6; }
2209 SET_MAKE="MAKE=${MAKE-make}"
2212 rm -rf .tst 2>/dev/null
2213 mkdir .tst 2>/dev/null
2214 if test -d .tst; then
2219 rmdir .tst 2>/dev/null
2221 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2222 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2223 # is not polluted with repeated "-I."
2224 am__isrc=' -I$(srcdir)'
2225 # test to see if srcdir already configured
2226 if test -f $srcdir/config.status; then
2227 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2228 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2229 { (exit 1); exit 1; }; }
2233 # test whether we have cygpath
2234 if test -z "$CYGPATH_W"; then
2235 if (cygpath --version) >/dev/null 2>/dev/null; then
2236 CYGPATH_W='cygpath -w'
2243 # Define the identity of the package.
2244 PACKAGE='stressapptest'
2245 VERSION='1.0.0_autoconf'
2248 cat >>confdefs.h <<_ACEOF
2249 #define PACKAGE "$PACKAGE"
2253 cat >>confdefs.h <<_ACEOF
2254 #define VERSION "$VERSION"
2257 # Some tools Automake needs.
2259 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2262 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2265 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2268 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2271 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2273 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2275 # Installed binaries are usually stripped using `strip' when the user
2276 # run `make install-strip'. However `strip' might not be the right
2277 # tool to use in cross-compilation environments, therefore Automake
2278 # will honor the `STRIP' environment variable to overrule this program.
2279 if test "$cross_compiling" != no; then
2280 if test -n "$ac_tool_prefix"; then
2281 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2282 set dummy ${ac_tool_prefix}strip; ac_word=$2
2283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2285 if test "${ac_cv_prog_STRIP+set}" = set; then
2286 echo $ECHO_N "(cached) $ECHO_C" >&6
2288 if test -n "$STRIP"; then
2289 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2295 test -z "$as_dir" && as_dir=.
2296 for ac_exec_ext in '' $ac_executable_extensions; do
2297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2298 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2308 STRIP=$ac_cv_prog_STRIP
2309 if test -n "$STRIP"; then
2310 { echo "$as_me:$LINENO: result: $STRIP" >&5
2311 echo "${ECHO_T}$STRIP" >&6; }
2313 { echo "$as_me:$LINENO: result: no" >&5
2314 echo "${ECHO_T}no" >&6; }
2319 if test -z "$ac_cv_prog_STRIP"; then
2321 # Extract the first word of "strip", so it can be a program name with args.
2322 set dummy strip; ac_word=$2
2323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2325 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2326 echo $ECHO_N "(cached) $ECHO_C" >&6
2328 if test -n "$ac_ct_STRIP"; then
2329 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2335 test -z "$as_dir" && as_dir=.
2336 for ac_exec_ext in '' $ac_executable_extensions; do
2337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2338 ac_cv_prog_ac_ct_STRIP="strip"
2339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2348 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2349 if test -n "$ac_ct_STRIP"; then
2350 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2351 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2353 { echo "$as_me:$LINENO: result: no" >&5
2354 echo "${ECHO_T}no" >&6; }
2357 if test "x$ac_ct_STRIP" = x; then
2360 case $cross_compiling:$ac_tool_warned in
2362 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2363 whose name does not start with the host triplet. If you think this
2364 configuration is useful to you, please write to autoconf@gnu.org." >&5
2365 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2366 whose name does not start with the host triplet. If you think this
2367 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2368 ac_tool_warned=yes ;;
2373 STRIP="$ac_cv_prog_STRIP"
2377 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2379 # We need awk for the "check" target. The system "awk" is bad on
2381 # Always define AMTAR for backward compatibility.
2383 AMTAR=${AMTAR-"${am_missing_run}tar"}
2385 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2392 ac_config_headers="$ac_config_headers src/stressapptest_config.h"
2395 # Checks for programs.
2397 ac_cpp='$CXXCPP $CPPFLAGS'
2398 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2399 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2400 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2401 if test -z "$CXX"; then
2402 if test -n "$CCC"; then
2405 if test -n "$ac_tool_prefix"; then
2406 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2408 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2409 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2412 if test "${ac_cv_prog_CXX+set}" = set; then
2413 echo $ECHO_N "(cached) $ECHO_C" >&6
2415 if test -n "$CXX"; then
2416 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2422 test -z "$as_dir" && as_dir=.
2423 for ac_exec_ext in '' $ac_executable_extensions; do
2424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2425 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2436 if test -n "$CXX"; then
2437 { echo "$as_me:$LINENO: result: $CXX" >&5
2438 echo "${ECHO_T}$CXX" >&6; }
2440 { echo "$as_me:$LINENO: result: no" >&5
2441 echo "${ECHO_T}no" >&6; }
2445 test -n "$CXX" && break
2448 if test -z "$CXX"; then
2450 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2452 # Extract the first word of "$ac_prog", so it can be a program name with args.
2453 set dummy $ac_prog; ac_word=$2
2454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2456 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2457 echo $ECHO_N "(cached) $ECHO_C" >&6
2459 if test -n "$ac_ct_CXX"; then
2460 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2466 test -z "$as_dir" && as_dir=.
2467 for ac_exec_ext in '' $ac_executable_extensions; do
2468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2469 ac_cv_prog_ac_ct_CXX="$ac_prog"
2470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2479 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2480 if test -n "$ac_ct_CXX"; then
2481 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2482 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2484 { echo "$as_me:$LINENO: result: no" >&5
2485 echo "${ECHO_T}no" >&6; }
2489 test -n "$ac_ct_CXX" && break
2492 if test "x$ac_ct_CXX" = x; then
2495 case $cross_compiling:$ac_tool_warned in
2497 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2498 whose name does not start with the host triplet. If you think this
2499 configuration is useful to you, please write to autoconf@gnu.org." >&5
2500 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2501 whose name does not start with the host triplet. If you think this
2502 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2503 ac_tool_warned=yes ;;
2511 # Provide some information about the compiler.
2512 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2513 ac_compiler=`set X $ac_compile; echo $2`
2514 { (ac_try="$ac_compiler --version >&5"
2516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2517 *) ac_try_echo=$ac_try;;
2519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2520 (eval "$ac_compiler --version >&5") 2>&5
2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523 (exit $ac_status); }
2524 { (ac_try="$ac_compiler -v >&5"
2526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2527 *) ac_try_echo=$ac_try;;
2529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2530 (eval "$ac_compiler -v >&5") 2>&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }
2534 { (ac_try="$ac_compiler -V >&5"
2536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2537 *) ac_try_echo=$ac_try;;
2539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2540 (eval "$ac_compiler -V >&5") 2>&5
2542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543 (exit $ac_status); }
2545 cat >conftest.$ac_ext <<_ACEOF
2548 cat confdefs.h >>conftest.$ac_ext
2549 cat >>conftest.$ac_ext <<_ACEOF
2550 /* end confdefs.h. */
2560 ac_clean_files_save=$ac_clean_files
2561 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2562 # Try to create an executable without -o first, disregard a.out.
2563 # It will help us diagnose broken compilers, and finding out an intuition
2565 { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2566 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2567 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2569 # List of possible output files, starting from the most likely.
2570 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2571 # only as a last resort. b.out is created by i960 compilers.
2572 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2574 # The IRIX 6 linker writes into existing files which may not be
2575 # executable, retaining their permissions. Remove them first so a
2576 # subsequent execution test works.
2578 for ac_file in $ac_files
2581 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2582 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2587 if { (ac_try="$ac_link_default"
2589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2590 *) ac_try_echo=$ac_try;;
2592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2593 (eval "$ac_link_default") 2>&5
2595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596 (exit $ac_status); }; then
2597 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2598 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2599 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2600 # so that the user can short-circuit this test for compilers unknown to
2602 for ac_file in $ac_files ''
2604 test -f "$ac_file" || continue
2606 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2609 # We found the default executable, but exeext='' is most
2613 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2615 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2617 # We set ac_cv_exeext here because the later test for it is not
2618 # safe: cross compilers may not add the suffix if given an `-o'
2619 # argument, so we may need to know it at that point already.
2620 # Even if this section looks crufty: it has the advantage of
2627 test "$ac_cv_exeext" = no && ac_cv_exeext=
2633 { echo "$as_me:$LINENO: result: $ac_file" >&5
2634 echo "${ECHO_T}$ac_file" >&6; }
2635 if test -z "$ac_file"; then
2636 echo "$as_me: failed program was:" >&5
2637 sed 's/^/| /' conftest.$ac_ext >&5
2639 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2640 See \`config.log' for more details." >&5
2641 echo "$as_me: error: C++ compiler cannot create executables
2642 See \`config.log' for more details." >&2;}
2643 { (exit 77); exit 77; }; }
2646 ac_exeext=$ac_cv_exeext
2648 # Check that the compiler produces executables we can run. If not, either
2649 # the compiler is broken, or we cross compile.
2650 { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2651 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2652 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2653 # If not cross compiling, check that we can run a simple program.
2654 if test "$cross_compiling" != yes; then
2655 if { ac_try='./$ac_file'
2656 { (case "(($ac_try" in
2657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2658 *) ac_try_echo=$ac_try;;
2660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2661 (eval "$ac_try") 2>&5
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); }; }; then
2667 if test "$cross_compiling" = maybe; then
2670 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2671 If you meant to cross compile, use \`--host'.
2672 See \`config.log' for more details." >&5
2673 echo "$as_me: error: cannot run C++ compiled programs.
2674 If you meant to cross compile, use \`--host'.
2675 See \`config.log' for more details." >&2;}
2676 { (exit 1); exit 1; }; }
2680 { echo "$as_me:$LINENO: result: yes" >&5
2681 echo "${ECHO_T}yes" >&6; }
2683 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2684 ac_clean_files=$ac_clean_files_save
2685 # Check that the compiler produces executables we can run. If not, either
2686 # the compiler is broken, or we cross compile.
2687 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2688 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2689 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2690 echo "${ECHO_T}$cross_compiling" >&6; }
2692 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2693 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2694 if { (ac_try="$ac_link"
2696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697 *) ac_try_echo=$ac_try;;
2699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2700 (eval "$ac_link") 2>&5
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); }; then
2704 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2705 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2706 # work properly (i.e., refer to `conftest.exe'), while it won't with
2708 for ac_file in conftest.exe conftest conftest.*; do
2709 test -f "$ac_file" || continue
2711 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2712 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2718 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2719 See \`config.log' for more details." >&5
2720 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2721 See \`config.log' for more details." >&2;}
2722 { (exit 1); exit 1; }; }
2725 rm -f conftest$ac_cv_exeext
2726 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2727 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2729 rm -f conftest.$ac_ext
2730 EXEEXT=$ac_cv_exeext
2732 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2733 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2734 if test "${ac_cv_objext+set}" = set; then
2735 echo $ECHO_N "(cached) $ECHO_C" >&6
2737 cat >conftest.$ac_ext <<_ACEOF
2740 cat confdefs.h >>conftest.$ac_ext
2741 cat >>conftest.$ac_ext <<_ACEOF
2742 /* end confdefs.h. */
2752 rm -f conftest.o conftest.obj
2753 if { (ac_try="$ac_compile"
2755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2756 *) ac_try_echo=$ac_try;;
2758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2759 (eval "$ac_compile") 2>&5
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); }; then
2763 for ac_file in conftest.o conftest.obj conftest.*; do
2764 test -f "$ac_file" || continue;
2766 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2767 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2772 echo "$as_me: failed program was:" >&5
2773 sed 's/^/| /' conftest.$ac_ext >&5
2775 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2776 See \`config.log' for more details." >&5
2777 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2778 See \`config.log' for more details." >&2;}
2779 { (exit 1); exit 1; }; }
2782 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2784 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2785 echo "${ECHO_T}$ac_cv_objext" >&6; }
2786 OBJEXT=$ac_cv_objext
2788 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2789 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2790 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2791 echo $ECHO_N "(cached) $ECHO_C" >&6
2793 cat >conftest.$ac_ext <<_ACEOF
2796 cat confdefs.h >>conftest.$ac_ext
2797 cat >>conftest.$ac_ext <<_ACEOF
2798 /* end confdefs.h. */
2811 rm -f conftest.$ac_objext
2812 if { (ac_try="$ac_compile"
2814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2815 *) ac_try_echo=$ac_try;;
2817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2818 (eval "$ac_compile") 2>conftest.er1
2820 grep -v '^ *+' conftest.er1 >conftest.err
2822 cat conftest.err >&5
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); } && {
2825 test -z "$ac_cxx_werror_flag" ||
2826 test ! -s conftest.err
2827 } && test -s conftest.$ac_objext; then
2830 echo "$as_me: failed program was:" >&5
2831 sed 's/^/| /' conftest.$ac_ext >&5
2836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2837 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2840 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2841 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2842 GXX=`test $ac_compiler_gnu = yes && echo yes`
2843 ac_test_CXXFLAGS=${CXXFLAGS+set}
2844 ac_save_CXXFLAGS=$CXXFLAGS
2845 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2846 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2847 if test "${ac_cv_prog_cxx_g+set}" = set; then
2848 echo $ECHO_N "(cached) $ECHO_C" >&6
2850 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2851 ac_cxx_werror_flag=yes
2854 cat >conftest.$ac_ext <<_ACEOF
2857 cat confdefs.h >>conftest.$ac_ext
2858 cat >>conftest.$ac_ext <<_ACEOF
2859 /* end confdefs.h. */
2869 rm -f conftest.$ac_objext
2870 if { (ac_try="$ac_compile"
2872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2873 *) ac_try_echo=$ac_try;;
2875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2876 (eval "$ac_compile") 2>conftest.er1
2878 grep -v '^ *+' conftest.er1 >conftest.err
2880 cat conftest.err >&5
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); } && {
2883 test -z "$ac_cxx_werror_flag" ||
2884 test ! -s conftest.err
2885 } && test -s conftest.$ac_objext; then
2886 ac_cv_prog_cxx_g=yes
2888 echo "$as_me: failed program was:" >&5
2889 sed 's/^/| /' conftest.$ac_ext >&5
2892 cat >conftest.$ac_ext <<_ACEOF
2895 cat confdefs.h >>conftest.$ac_ext
2896 cat >>conftest.$ac_ext <<_ACEOF
2897 /* end confdefs.h. */
2907 rm -f conftest.$ac_objext
2908 if { (ac_try="$ac_compile"
2910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2911 *) ac_try_echo=$ac_try;;
2913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2914 (eval "$ac_compile") 2>conftest.er1
2916 grep -v '^ *+' conftest.er1 >conftest.err
2918 cat conftest.err >&5
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); } && {
2921 test -z "$ac_cxx_werror_flag" ||
2922 test ! -s conftest.err
2923 } && test -s conftest.$ac_objext; then
2926 echo "$as_me: failed program was:" >&5
2927 sed 's/^/| /' conftest.$ac_ext >&5
2929 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2931 cat >conftest.$ac_ext <<_ACEOF
2934 cat confdefs.h >>conftest.$ac_ext
2935 cat >>conftest.$ac_ext <<_ACEOF
2936 /* end confdefs.h. */
2946 rm -f conftest.$ac_objext
2947 if { (ac_try="$ac_compile"
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953 (eval "$ac_compile") 2>conftest.er1
2955 grep -v '^ *+' conftest.er1 >conftest.err
2957 cat conftest.err >&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); } && {
2960 test -z "$ac_cxx_werror_flag" ||
2961 test ! -s conftest.err
2962 } && test -s conftest.$ac_objext; then
2963 ac_cv_prog_cxx_g=yes
2965 echo "$as_me: failed program was:" >&5
2966 sed 's/^/| /' conftest.$ac_ext >&5
2971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2978 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2980 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2981 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
2982 if test "$ac_test_CXXFLAGS" = set; then
2983 CXXFLAGS=$ac_save_CXXFLAGS
2984 elif test $ac_cv_prog_cxx_g = yes; then
2985 if test "$GXX" = yes; then
2991 if test "$GXX" = yes; then
2998 ac_cpp='$CPP $CPPFLAGS'
2999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3002 DEPDIR="${am__leading_dot}deps"
3004 ac_config_commands="$ac_config_commands depfiles"
3007 am_make=${MAKE-make}
3008 cat > confinc << 'END'
3013 # If we don't find an include directive, just comment out the code.
3014 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3015 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3019 # First try GNU make style include.
3020 echo "include confinc" > confmf
3021 # We grep out `Entering directory' and `Leaving directory'
3022 # messages which can occur if `w' ends up in MAKEFLAGS.
3023 # In particular we don't look at `^make:' because GNU make might
3024 # be invoked under some other name (usually "gmake"), in which
3025 # case it prints its new name instead of `make'.
3026 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3031 # Now try BSD make style include.
3032 if test "$am__include" = "#"; then
3033 echo '.include "confinc"' > confmf
3034 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3035 am__include=.include
3042 { echo "$as_me:$LINENO: result: $_am_result" >&5
3043 echo "${ECHO_T}$_am_result" >&6; }
3044 rm -f confinc confmf
3046 # Check whether --enable-dependency-tracking was given.
3047 if test "${enable_dependency_tracking+set}" = set; then
3048 enableval=$enable_dependency_tracking;
3051 if test "x$enable_dependency_tracking" != xno; then
3052 am_depcomp="$ac_aux_dir/depcomp"
3055 if test "x$enable_dependency_tracking" != xno; then
3065 depcc="$CXX" am_compiler_list=
3067 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3068 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3069 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3070 echo $ECHO_N "(cached) $ECHO_C" >&6
3072 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3073 # We make a subdir and do the tests there. Otherwise we can end up
3074 # making bogus files that we don't know about and never remove. For
3075 # instance it was reported that on HP-UX the gcc test will end up
3076 # making a dummy file named `D' -- because `-MD' means `put the output
3079 # Copy depcomp to subdir because otherwise we won't find it if we're
3080 # using a relative directory.
3081 cp "$am_depcomp" conftest.dir
3083 # We will build objects and dependencies in a subdirectory because
3084 # it helps to detect inapplicable dependency modes. For instance
3085 # both Tru64's cc and ICC support -MD to output dependencies as a
3086 # side effect of compilation, but ICC will put the dependencies in
3087 # the current directory while Tru64 will put them in the object
3091 am_cv_CXX_dependencies_compiler_type=none
3092 if test "$am_compiler_list" = ""; then
3093 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3095 for depmode in $am_compiler_list; do
3096 # Setup a source with many dependencies, because some compilers
3097 # like to wrap large dependency lists on column 80 (with \), and
3098 # we should not choose a depcomp mode which is confused by this.
3100 # We need to recreate these files for each test, as the compiler may
3101 # overwrite some of them when testing with obscure command lines.
3102 # This happens at least with the AIX C compiler.
3104 for i in 1 2 3 4 5 6; do
3105 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3106 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3107 # Solaris 8's {/usr,}/bin/sh.
3108 touch sub/conftst$i.h
3110 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3114 # after this tag, mechanisms are not by side-effect, so they'll
3115 # only be used when explicitly requested
3116 if test "x$enable_dependency_tracking" = xyes; then
3124 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3125 # mode. It turns out that the SunPro C++ compiler does not properly
3126 # handle `-M -o', and we need to detect this.
3127 if depmode=$depmode \
3128 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3129 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3130 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3131 >/dev/null 2>conftest.err &&
3132 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3133 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3134 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3135 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3136 # icc doesn't choke on unknown options, it will just issue warnings
3137 # or remarks (even with -Werror). So we grep stderr for any message
3138 # that says an option was ignored or not supported.
3139 # When given -MP, icc 7.0 and 7.1 complain thusly:
3140 # icc: Command line warning: ignoring option '-M'; no argument required
3141 # The diagnosis changed in icc 8.0:
3142 # icc: Command line remark: option '-MP' not supported
3143 if (grep 'ignoring option' conftest.err ||
3144 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3145 am_cv_CXX_dependencies_compiler_type=$depmode
3154 am_cv_CXX_dependencies_compiler_type=none
3158 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3159 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3160 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3163 test "x$enable_dependency_tracking" != xno \
3164 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3165 am__fastdepCXX_TRUE=
3166 am__fastdepCXX_FALSE='#'
3168 am__fastdepCXX_TRUE='#'
3169 am__fastdepCXX_FALSE=
3174 ac_cpp='$CPP $CPPFLAGS'
3175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3178 if test -n "$ac_tool_prefix"; then
3179 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3180 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3183 if test "${ac_cv_prog_CC+set}" = set; then
3184 echo $ECHO_N "(cached) $ECHO_C" >&6
3186 if test -n "$CC"; then
3187 ac_cv_prog_CC="$CC" # Let the user override the test.
3189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193 test -z "$as_dir" && as_dir=.
3194 for ac_exec_ext in '' $ac_executable_extensions; do
3195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3196 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3207 if test -n "$CC"; then
3208 { echo "$as_me:$LINENO: result: $CC" >&5
3209 echo "${ECHO_T}$CC" >&6; }
3211 { echo "$as_me:$LINENO: result: no" >&5
3212 echo "${ECHO_T}no" >&6; }
3217 if test -z "$ac_cv_prog_CC"; then
3219 # Extract the first word of "gcc", so it can be a program name with args.
3220 set dummy gcc; ac_word=$2
3221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3223 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3224 echo $ECHO_N "(cached) $ECHO_C" >&6
3226 if test -n "$ac_ct_CC"; then
3227 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3233 test -z "$as_dir" && as_dir=.
3234 for ac_exec_ext in '' $ac_executable_extensions; do
3235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3236 ac_cv_prog_ac_ct_CC="gcc"
3237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3246 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3247 if test -n "$ac_ct_CC"; then
3248 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3249 echo "${ECHO_T}$ac_ct_CC" >&6; }
3251 { echo "$as_me:$LINENO: result: no" >&5
3252 echo "${ECHO_T}no" >&6; }
3255 if test "x$ac_ct_CC" = x; then
3258 case $cross_compiling:$ac_tool_warned in
3260 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3261 whose name does not start with the host triplet. If you think this
3262 configuration is useful to you, please write to autoconf@gnu.org." >&5
3263 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3264 whose name does not start with the host triplet. If you think this
3265 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3266 ac_tool_warned=yes ;;
3274 if test -z "$CC"; then
3275 if test -n "$ac_tool_prefix"; then
3276 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3277 set dummy ${ac_tool_prefix}cc; ac_word=$2
3278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3280 if test "${ac_cv_prog_CC+set}" = set; then
3281 echo $ECHO_N "(cached) $ECHO_C" >&6
3283 if test -n "$CC"; then
3284 ac_cv_prog_CC="$CC" # Let the user override the test.
3286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290 test -z "$as_dir" && as_dir=.
3291 for ac_exec_ext in '' $ac_executable_extensions; do
3292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3293 ac_cv_prog_CC="${ac_tool_prefix}cc"
3294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3304 if test -n "$CC"; then
3305 { echo "$as_me:$LINENO: result: $CC" >&5
3306 echo "${ECHO_T}$CC" >&6; }
3308 { echo "$as_me:$LINENO: result: no" >&5
3309 echo "${ECHO_T}no" >&6; }
3315 if test -z "$CC"; then
3316 # Extract the first word of "cc", so it can be a program name with args.
3317 set dummy cc; ac_word=$2
3318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3320 if test "${ac_cv_prog_CC+set}" = set; then
3321 echo $ECHO_N "(cached) $ECHO_C" >&6
3323 if test -n "$CC"; then
3324 ac_cv_prog_CC="$CC" # Let the user override the test.
3327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3331 test -z "$as_dir" && as_dir=.
3332 for ac_exec_ext in '' $ac_executable_extensions; do
3333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3334 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3335 ac_prog_rejected=yes
3339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3346 if test $ac_prog_rejected = yes; then
3347 # We found a bogon in the path, so make sure we never use it.
3348 set dummy $ac_cv_prog_CC
3350 if test $# != 0; then
3351 # We chose a different compiler from the bogus one.
3352 # However, it has the same basename, so the bogon will be chosen
3353 # first if we set CC to just the basename; use the full file name.
3355 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3361 if test -n "$CC"; then
3362 { echo "$as_me:$LINENO: result: $CC" >&5
3363 echo "${ECHO_T}$CC" >&6; }
3365 { echo "$as_me:$LINENO: result: no" >&5
3366 echo "${ECHO_T}no" >&6; }
3371 if test -z "$CC"; then
3372 if test -n "$ac_tool_prefix"; then
3373 for ac_prog in cl.exe
3375 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3376 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3377 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3379 if test "${ac_cv_prog_CC+set}" = set; then
3380 echo $ECHO_N "(cached) $ECHO_C" >&6
3382 if test -n "$CC"; then
3383 ac_cv_prog_CC="$CC" # Let the user override the test.
3385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3389 test -z "$as_dir" && as_dir=.
3390 for ac_exec_ext in '' $ac_executable_extensions; do
3391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3392 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3403 if test -n "$CC"; then
3404 { echo "$as_me:$LINENO: result: $CC" >&5
3405 echo "${ECHO_T}$CC" >&6; }
3407 { echo "$as_me:$LINENO: result: no" >&5
3408 echo "${ECHO_T}no" >&6; }
3412 test -n "$CC" && break
3415 if test -z "$CC"; then
3417 for ac_prog in cl.exe
3419 # Extract the first word of "$ac_prog", so it can be a program name with args.
3420 set dummy $ac_prog; ac_word=$2
3421 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3423 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3424 echo $ECHO_N "(cached) $ECHO_C" >&6
3426 if test -n "$ac_ct_CC"; then
3427 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3433 test -z "$as_dir" && as_dir=.
3434 for ac_exec_ext in '' $ac_executable_extensions; do
3435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3436 ac_cv_prog_ac_ct_CC="$ac_prog"
3437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3446 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3447 if test -n "$ac_ct_CC"; then
3448 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3449 echo "${ECHO_T}$ac_ct_CC" >&6; }
3451 { echo "$as_me:$LINENO: result: no" >&5
3452 echo "${ECHO_T}no" >&6; }
3456 test -n "$ac_ct_CC" && break
3459 if test "x$ac_ct_CC" = x; then
3462 case $cross_compiling:$ac_tool_warned in
3464 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3465 whose name does not start with the host triplet. If you think this
3466 configuration is useful to you, please write to autoconf@gnu.org." >&5
3467 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3468 whose name does not start with the host triplet. If you think this
3469 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3470 ac_tool_warned=yes ;;
3479 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3480 See \`config.log' for more details." >&5
3481 echo "$as_me: error: no acceptable C compiler found in \$PATH
3482 See \`config.log' for more details." >&2;}
3483 { (exit 1); exit 1; }; }
3485 # Provide some information about the compiler.
3486 echo "$as_me:$LINENO: checking for C compiler version" >&5
3487 ac_compiler=`set X $ac_compile; echo $2`
3488 { (ac_try="$ac_compiler --version >&5"
3490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491 *) ac_try_echo=$ac_try;;
3493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3494 (eval "$ac_compiler --version >&5") 2>&5
3496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 (exit $ac_status); }
3498 { (ac_try="$ac_compiler -v >&5"
3500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501 *) ac_try_echo=$ac_try;;
3503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3504 (eval "$ac_compiler -v >&5") 2>&5
3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); }
3508 { (ac_try="$ac_compiler -V >&5"
3510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3511 *) ac_try_echo=$ac_try;;
3513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3514 (eval "$ac_compiler -V >&5") 2>&5
3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517 (exit $ac_status); }
3519 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3520 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3521 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3522 echo $ECHO_N "(cached) $ECHO_C" >&6
3524 cat >conftest.$ac_ext <<_ACEOF
3527 cat confdefs.h >>conftest.$ac_ext
3528 cat >>conftest.$ac_ext <<_ACEOF
3529 /* end confdefs.h. */
3542 rm -f conftest.$ac_objext
3543 if { (ac_try="$ac_compile"
3545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3546 *) ac_try_echo=$ac_try;;
3548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3549 (eval "$ac_compile") 2>conftest.er1
3551 grep -v '^ *+' conftest.er1 >conftest.err
3553 cat conftest.err >&5
3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); } && {
3556 test -z "$ac_c_werror_flag" ||
3557 test ! -s conftest.err
3558 } && test -s conftest.$ac_objext; then
3561 echo "$as_me: failed program was:" >&5
3562 sed 's/^/| /' conftest.$ac_ext >&5
3567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3568 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3571 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3572 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3573 GCC=`test $ac_compiler_gnu = yes && echo yes`
3574 ac_test_CFLAGS=${CFLAGS+set}
3575 ac_save_CFLAGS=$CFLAGS
3576 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3577 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3578 if test "${ac_cv_prog_cc_g+set}" = set; then
3579 echo $ECHO_N "(cached) $ECHO_C" >&6
3581 ac_save_c_werror_flag=$ac_c_werror_flag
3582 ac_c_werror_flag=yes
3585 cat >conftest.$ac_ext <<_ACEOF
3588 cat confdefs.h >>conftest.$ac_ext
3589 cat >>conftest.$ac_ext <<_ACEOF
3590 /* end confdefs.h. */
3600 rm -f conftest.$ac_objext
3601 if { (ac_try="$ac_compile"
3603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604 *) ac_try_echo=$ac_try;;
3606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3607 (eval "$ac_compile") 2>conftest.er1
3609 grep -v '^ *+' conftest.er1 >conftest.err
3611 cat conftest.err >&5
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); } && {
3614 test -z "$ac_c_werror_flag" ||
3615 test ! -s conftest.err
3616 } && test -s conftest.$ac_objext; then
3619 echo "$as_me: failed program was:" >&5
3620 sed 's/^/| /' conftest.$ac_ext >&5
3623 cat >conftest.$ac_ext <<_ACEOF
3626 cat confdefs.h >>conftest.$ac_ext
3627 cat >>conftest.$ac_ext <<_ACEOF
3628 /* end confdefs.h. */
3638 rm -f conftest.$ac_objext
3639 if { (ac_try="$ac_compile"
3641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642 *) ac_try_echo=$ac_try;;
3644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3645 (eval "$ac_compile") 2>conftest.er1
3647 grep -v '^ *+' conftest.er1 >conftest.err
3649 cat conftest.err >&5
3650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651 (exit $ac_status); } && {
3652 test -z "$ac_c_werror_flag" ||
3653 test ! -s conftest.err
3654 } && test -s conftest.$ac_objext; then
3657 echo "$as_me: failed program was:" >&5
3658 sed 's/^/| /' conftest.$ac_ext >&5
3660 ac_c_werror_flag=$ac_save_c_werror_flag
3662 cat >conftest.$ac_ext <<_ACEOF
3665 cat confdefs.h >>conftest.$ac_ext
3666 cat >>conftest.$ac_ext <<_ACEOF
3667 /* end confdefs.h. */
3677 rm -f conftest.$ac_objext
3678 if { (ac_try="$ac_compile"
3680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681 *) ac_try_echo=$ac_try;;
3683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3684 (eval "$ac_compile") 2>conftest.er1
3686 grep -v '^ *+' conftest.er1 >conftest.err
3688 cat conftest.err >&5
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); } && {
3691 test -z "$ac_c_werror_flag" ||
3692 test ! -s conftest.err
3693 } && test -s conftest.$ac_objext; then
3696 echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.$ac_ext >&5
3702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3709 ac_c_werror_flag=$ac_save_c_werror_flag
3711 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3712 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3713 if test "$ac_test_CFLAGS" = set; then
3714 CFLAGS=$ac_save_CFLAGS
3715 elif test $ac_cv_prog_cc_g = yes; then
3716 if test "$GCC" = yes; then
3722 if test "$GCC" = yes; then
3728 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3729 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3730 if test "${ac_cv_prog_cc_c89+set}" = set; then
3731 echo $ECHO_N "(cached) $ECHO_C" >&6
3733 ac_cv_prog_cc_c89=no
3735 cat >conftest.$ac_ext <<_ACEOF
3738 cat confdefs.h >>conftest.$ac_ext
3739 cat >>conftest.$ac_ext <<_ACEOF
3740 /* end confdefs.h. */
3743 #include <sys/types.h>
3744 #include <sys/stat.h>
3745 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3746 struct buf { int x; };
3747 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3748 static char *e (p, i)
3754 static char *f (char * (*g) (char **, int), char **p, ...)
3759 s = g (p, va_arg (v,int));
3764 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3765 function prototypes and stuff, but not '\xHH' hex character constants.
3766 These don't provoke an error unfortunately, instead are silently treated
3767 as 'x'. The following induces an error, until -std is added to get
3768 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3769 array size at least. It's necessary to write '\x00'==0 to get something
3770 that's true only with -std. */
3771 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3773 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3774 inside strings and character constants. */
3776 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3778 int test (int i, double x);
3779 struct s1 {int (*f) (int a);};
3780 struct s2 {int (*f) (double a);};
3781 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3787 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3792 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3793 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3795 CC="$ac_save_CC $ac_arg"
3796 rm -f conftest.$ac_objext
3797 if { (ac_try="$ac_compile"
3799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3800 *) ac_try_echo=$ac_try;;
3802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3803 (eval "$ac_compile") 2>conftest.er1
3805 grep -v '^ *+' conftest.er1 >conftest.err
3807 cat conftest.err >&5
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); } && {
3810 test -z "$ac_c_werror_flag" ||
3811 test ! -s conftest.err
3812 } && test -s conftest.$ac_objext; then
3813 ac_cv_prog_cc_c89=$ac_arg
3815 echo "$as_me: failed program was:" >&5
3816 sed 's/^/| /' conftest.$ac_ext >&5
3821 rm -f core conftest.err conftest.$ac_objext
3822 test "x$ac_cv_prog_cc_c89" != "xno" && break
3824 rm -f conftest.$ac_ext
3829 case "x$ac_cv_prog_cc_c89" in
3831 { echo "$as_me:$LINENO: result: none needed" >&5
3832 echo "${ECHO_T}none needed" >&6; } ;;
3834 { echo "$as_me:$LINENO: result: unsupported" >&5
3835 echo "${ECHO_T}unsupported" >&6; } ;;
3837 CC="$CC $ac_cv_prog_cc_c89"
3838 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3839 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3844 ac_cpp='$CPP $CPPFLAGS'
3845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3849 depcc="$CC" am_compiler_list=
3851 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3852 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3853 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3854 echo $ECHO_N "(cached) $ECHO_C" >&6
3856 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3857 # We make a subdir and do the tests there. Otherwise we can end up
3858 # making bogus files that we don't know about and never remove. For
3859 # instance it was reported that on HP-UX the gcc test will end up
3860 # making a dummy file named `D' -- because `-MD' means `put the output
3863 # Copy depcomp to subdir because otherwise we won't find it if we're
3864 # using a relative directory.
3865 cp "$am_depcomp" conftest.dir
3867 # We will build objects and dependencies in a subdirectory because
3868 # it helps to detect inapplicable dependency modes. For instance
3869 # both Tru64's cc and ICC support -MD to output dependencies as a
3870 # side effect of compilation, but ICC will put the dependencies in
3871 # the current directory while Tru64 will put them in the object
3875 am_cv_CC_dependencies_compiler_type=none
3876 if test "$am_compiler_list" = ""; then
3877 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3879 for depmode in $am_compiler_list; do
3880 # Setup a source with many dependencies, because some compilers
3881 # like to wrap large dependency lists on column 80 (with \), and
3882 # we should not choose a depcomp mode which is confused by this.
3884 # We need to recreate these files for each test, as the compiler may
3885 # overwrite some of them when testing with obscure command lines.
3886 # This happens at least with the AIX C compiler.
3888 for i in 1 2 3 4 5 6; do
3889 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3890 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3891 # Solaris 8's {/usr,}/bin/sh.
3892 touch sub/conftst$i.h
3894 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3898 # after this tag, mechanisms are not by side-effect, so they'll
3899 # only be used when explicitly requested
3900 if test "x$enable_dependency_tracking" = xyes; then
3908 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3909 # mode. It turns out that the SunPro C++ compiler does not properly
3910 # handle `-M -o', and we need to detect this.
3911 if depmode=$depmode \
3912 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3913 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3914 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3915 >/dev/null 2>conftest.err &&
3916 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3917 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3918 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3919 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3920 # icc doesn't choke on unknown options, it will just issue warnings
3921 # or remarks (even with -Werror). So we grep stderr for any message
3922 # that says an option was ignored or not supported.
3923 # When given -MP, icc 7.0 and 7.1 complain thusly:
3924 # icc: Command line warning: ignoring option '-M'; no argument required
3925 # The diagnosis changed in icc 8.0:
3926 # icc: Command line remark: option '-MP' not supported
3927 if (grep 'ignoring option' conftest.err ||
3928 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3929 am_cv_CC_dependencies_compiler_type=$depmode
3938 am_cv_CC_dependencies_compiler_type=none
3942 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3943 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3944 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3947 test "x$enable_dependency_tracking" != xno \
3948 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3950 am__fastdepCC_FALSE='#'
3952 am__fastdepCC_TRUE='#'
3953 am__fastdepCC_FALSE=
3958 #Getting user and host info
3960 { echo "$as_me:$LINENO: checking user ID" >&5
3961 echo $ECHO_N "checking user ID... $ECHO_C" >&6; }
3962 { echo "$as_me:$LINENO: result: $username" >&5
3963 echo "${ECHO_T}$username" >&6; }
3965 hostname=$(uname -n)
3966 { echo "$as_me:$LINENO: checking host name" >&5
3967 echo $ECHO_N "checking host name... $ECHO_C" >&6; }
3968 { echo "$as_me:$LINENO: result: $hostname" >&5
3969 echo "${ECHO_T}$hostname" >&6; }
3972 { echo "$as_me:$LINENO: checking current timestamp" >&5
3973 echo $ECHO_N "checking current timestamp... $ECHO_C" >&6; }
3974 { echo "$as_me:$LINENO: result: $timestamp" >&5
3975 echo "${ECHO_T}$timestamp" >&6; }
3978 cat >>confdefs.h <<_ACEOF
3979 #define STRESSAPPTEST_TIMESTAMP "$username @ $hostname on $timestamp"
3984 CXXFLAGS="$CXXFLAGS -DCHECKOPTS"
3985 CXXFLAGS="$CXXFLAGS -Wreturn-type -Wunused -Wuninitialized -Wall"
3986 CXXFLAGS="$CXXFLAGS -O3 -funroll-all-loops -funroll-loops -DNDEBUG"
3988 # Checks for header files.
3996 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3997 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3998 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3999 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
4000 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4001 echo $ECHO_N "(cached) $ECHO_C" >&6
4003 cat >conftest.$ac_ext <<_ACEOF
4006 cat confdefs.h >>conftest.$ac_ext
4007 cat >>conftest.$ac_ext <<_ACEOF
4008 /* end confdefs.h. */
4009 #include <sys/types.h>
4021 rm -f conftest.$ac_objext
4022 if { (ac_try="$ac_compile"
4024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4025 *) ac_try_echo=$ac_try;;
4027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4028 (eval "$ac_compile") 2>conftest.er1
4030 grep -v '^ *+' conftest.er1 >conftest.err
4032 cat conftest.err >&5
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); } && {
4035 test -z "$ac_c_werror_flag" ||
4036 test ! -s conftest.err
4037 } && test -s conftest.$ac_objext; then
4038 eval "$as_ac_Header=yes"
4040 echo "$as_me: failed program was:" >&5
4041 sed 's/^/| /' conftest.$ac_ext >&5
4043 eval "$as_ac_Header=no"
4046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4048 ac_res=`eval echo '${'$as_ac_Header'}'`
4049 { echo "$as_me:$LINENO: result: $ac_res" >&5
4050 echo "${ECHO_T}$ac_res" >&6; }
4051 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4052 cat >>confdefs.h <<_ACEOF
4053 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4056 ac_header_dirent=$ac_hdr; break
4060 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4061 if test $ac_header_dirent = dirent.h; then
4062 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4063 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4064 if test "${ac_cv_search_opendir+set}" = set; then
4065 echo $ECHO_N "(cached) $ECHO_C" >&6
4067 ac_func_search_save_LIBS=$LIBS
4068 cat >conftest.$ac_ext <<_ACEOF
4071 cat confdefs.h >>conftest.$ac_ext
4072 cat >>conftest.$ac_ext <<_ACEOF
4073 /* end confdefs.h. */
4075 /* Override any GCC internal prototype to avoid an error.
4076 Use char because int might match the return type of a GCC
4077 builtin and then its argument prototype would still apply. */
4090 for ac_lib in '' dir; do
4091 if test -z "$ac_lib"; then
4092 ac_res="none required"
4095 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4097 rm -f conftest.$ac_objext conftest$ac_exeext
4098 if { (ac_try="$ac_link"
4100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4101 *) ac_try_echo=$ac_try;;
4103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4104 (eval "$ac_link") 2>conftest.er1
4106 grep -v '^ *+' conftest.er1 >conftest.err
4108 cat conftest.err >&5
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); } && {
4111 test -z "$ac_c_werror_flag" ||
4112 test ! -s conftest.err
4113 } && test -s conftest$ac_exeext &&
4114 $as_test_x conftest$ac_exeext; then
4115 ac_cv_search_opendir=$ac_res
4117 echo "$as_me: failed program was:" >&5
4118 sed 's/^/| /' conftest.$ac_ext >&5
4123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4125 if test "${ac_cv_search_opendir+set}" = set; then
4129 if test "${ac_cv_search_opendir+set}" = set; then
4132 ac_cv_search_opendir=no
4135 LIBS=$ac_func_search_save_LIBS
4137 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4138 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4139 ac_res=$ac_cv_search_opendir
4140 if test "$ac_res" != no; then
4141 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4146 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4147 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4148 if test "${ac_cv_search_opendir+set}" = set; then
4149 echo $ECHO_N "(cached) $ECHO_C" >&6
4151 ac_func_search_save_LIBS=$LIBS
4152 cat >conftest.$ac_ext <<_ACEOF
4155 cat confdefs.h >>conftest.$ac_ext
4156 cat >>conftest.$ac_ext <<_ACEOF
4157 /* end confdefs.h. */
4159 /* Override any GCC internal prototype to avoid an error.
4160 Use char because int might match the return type of a GCC
4161 builtin and then its argument prototype would still apply. */
4174 for ac_lib in '' x; do
4175 if test -z "$ac_lib"; then
4176 ac_res="none required"
4179 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4181 rm -f conftest.$ac_objext conftest$ac_exeext
4182 if { (ac_try="$ac_link"
4184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4185 *) ac_try_echo=$ac_try;;
4187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4188 (eval "$ac_link") 2>conftest.er1
4190 grep -v '^ *+' conftest.er1 >conftest.err
4192 cat conftest.err >&5
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); } && {
4195 test -z "$ac_c_werror_flag" ||
4196 test ! -s conftest.err
4197 } && test -s conftest$ac_exeext &&
4198 $as_test_x conftest$ac_exeext; then
4199 ac_cv_search_opendir=$ac_res
4201 echo "$as_me: failed program was:" >&5
4202 sed 's/^/| /' conftest.$ac_ext >&5
4207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4209 if test "${ac_cv_search_opendir+set}" = set; then
4213 if test "${ac_cv_search_opendir+set}" = set; then
4216 ac_cv_search_opendir=no
4219 LIBS=$ac_func_search_save_LIBS
4221 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4222 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4223 ac_res=$ac_cv_search_opendir
4224 if test "$ac_res" != no; then
4225 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4232 ac_cpp='$CPP $CPPFLAGS'
4233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4236 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4237 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4238 # On Suns, sometimes $CPP names a directory.
4239 if test -n "$CPP" && test -d "$CPP"; then
4242 if test -z "$CPP"; then
4243 if test "${ac_cv_prog_CPP+set}" = set; then
4244 echo $ECHO_N "(cached) $ECHO_C" >&6
4246 # Double quotes because CPP needs to be expanded
4247 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4250 for ac_c_preproc_warn_flag in '' yes
4252 # Use a header file that comes with gcc, so configuring glibc
4253 # with a fresh cross-compiler works.
4254 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4255 # <limits.h> exists even on freestanding compilers.
4256 # On the NeXT, cc -E runs the code through the compiler's parser,
4257 # not just through cpp. "Syntax error" is here to catch this case.
4258 cat >conftest.$ac_ext <<_ACEOF
4261 cat confdefs.h >>conftest.$ac_ext
4262 cat >>conftest.$ac_ext <<_ACEOF
4263 /* end confdefs.h. */
4265 # include <limits.h>
4267 # include <assert.h>
4271 if { (ac_try="$ac_cpp conftest.$ac_ext"
4273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4274 *) ac_try_echo=$ac_try;;
4276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4277 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4279 grep -v '^ *+' conftest.er1 >conftest.err
4281 cat conftest.err >&5
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); } >/dev/null && {
4284 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4285 test ! -s conftest.err
4289 echo "$as_me: failed program was:" >&5
4290 sed 's/^/| /' conftest.$ac_ext >&5
4292 # Broken: fails on valid input.
4296 rm -f conftest.err conftest.$ac_ext
4298 # OK, works on sane cases. Now check whether nonexistent headers
4299 # can be detected and how.
4300 cat >conftest.$ac_ext <<_ACEOF
4303 cat confdefs.h >>conftest.$ac_ext
4304 cat >>conftest.$ac_ext <<_ACEOF
4305 /* end confdefs.h. */
4306 #include <ac_nonexistent.h>
4308 if { (ac_try="$ac_cpp conftest.$ac_ext"
4310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4311 *) ac_try_echo=$ac_try;;
4313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4314 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4316 grep -v '^ *+' conftest.er1 >conftest.err
4318 cat conftest.err >&5
4319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320 (exit $ac_status); } >/dev/null && {
4321 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4322 test ! -s conftest.err
4324 # Broken: success on invalid input.
4327 echo "$as_me: failed program was:" >&5
4328 sed 's/^/| /' conftest.$ac_ext >&5
4330 # Passes both tests.
4335 rm -f conftest.err conftest.$ac_ext
4338 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4339 rm -f conftest.err conftest.$ac_ext
4340 if $ac_preproc_ok; then
4352 { echo "$as_me:$LINENO: result: $CPP" >&5
4353 echo "${ECHO_T}$CPP" >&6; }
4355 for ac_c_preproc_warn_flag in '' yes
4357 # Use a header file that comes with gcc, so configuring glibc
4358 # with a fresh cross-compiler works.
4359 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4360 # <limits.h> exists even on freestanding compilers.
4361 # On the NeXT, cc -E runs the code through the compiler's parser,
4362 # not just through cpp. "Syntax error" is here to catch this case.
4363 cat >conftest.$ac_ext <<_ACEOF
4366 cat confdefs.h >>conftest.$ac_ext
4367 cat >>conftest.$ac_ext <<_ACEOF
4368 /* end confdefs.h. */
4370 # include <limits.h>
4372 # include <assert.h>
4376 if { (ac_try="$ac_cpp conftest.$ac_ext"
4378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4379 *) ac_try_echo=$ac_try;;
4381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4382 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4384 grep -v '^ *+' conftest.er1 >conftest.err
4386 cat conftest.err >&5
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); } >/dev/null && {
4389 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4390 test ! -s conftest.err
4394 echo "$as_me: failed program was:" >&5
4395 sed 's/^/| /' conftest.$ac_ext >&5
4397 # Broken: fails on valid input.
4401 rm -f conftest.err conftest.$ac_ext
4403 # OK, works on sane cases. Now check whether nonexistent headers
4404 # can be detected and how.
4405 cat >conftest.$ac_ext <<_ACEOF
4408 cat confdefs.h >>conftest.$ac_ext
4409 cat >>conftest.$ac_ext <<_ACEOF
4410 /* end confdefs.h. */
4411 #include <ac_nonexistent.h>
4413 if { (ac_try="$ac_cpp conftest.$ac_ext"
4415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4416 *) ac_try_echo=$ac_try;;
4418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4421 grep -v '^ *+' conftest.er1 >conftest.err
4423 cat conftest.err >&5
4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); } >/dev/null && {
4426 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4427 test ! -s conftest.err
4429 # Broken: success on invalid input.
4432 echo "$as_me: failed program was:" >&5
4433 sed 's/^/| /' conftest.$ac_ext >&5
4435 # Passes both tests.
4440 rm -f conftest.err conftest.$ac_ext
4443 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4444 rm -f conftest.err conftest.$ac_ext
4445 if $ac_preproc_ok; then
4448 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4449 See \`config.log' for more details." >&5
4450 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4451 See \`config.log' for more details." >&2;}
4452 { (exit 1); exit 1; }; }
4456 ac_cpp='$CPP $CPPFLAGS'
4457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4462 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4463 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4464 if test "${ac_cv_path_GREP+set}" = set; then
4465 echo $ECHO_N "(cached) $ECHO_C" >&6
4467 # Extract the first word of "grep ggrep" to use in msg output
4468 if test -z "$GREP"; then
4469 set dummy grep ggrep; ac_prog_name=$2
4470 if test "${ac_cv_path_GREP+set}" = set; then
4471 echo $ECHO_N "(cached) $ECHO_C" >&6
4473 ac_path_GREP_found=false
4474 # Loop through the user's path and test for each of PROGNAME-LIST
4475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4479 test -z "$as_dir" && as_dir=.
4480 for ac_prog in grep ggrep; do
4481 for ac_exec_ext in '' $ac_executable_extensions; do
4482 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4483 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4484 # Check for GNU ac_path_GREP and select it if it is found.
4485 # Check for GNU $ac_path_GREP
4486 case `"$ac_path_GREP" --version 2>&1` in
4488 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4491 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4494 cat "conftest.in" "conftest.in" >"conftest.tmp"
4495 mv "conftest.tmp" "conftest.in"
4496 cp "conftest.in" "conftest.nl"
4497 echo 'GREP' >> "conftest.nl"
4498 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4499 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4500 ac_count=`expr $ac_count + 1`
4501 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4502 # Best one so far, save it but keep looking for a better one
4503 ac_cv_path_GREP="$ac_path_GREP"
4504 ac_path_GREP_max=$ac_count
4506 # 10*(2^10) chars as input seems more than enough
4507 test $ac_count -gt 10 && break
4509 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4513 $ac_path_GREP_found && break 3
4523 GREP="$ac_cv_path_GREP"
4524 if test -z "$GREP"; then
4525 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4526 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4527 { (exit 1); exit 1; }; }
4531 ac_cv_path_GREP=$GREP
4536 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4537 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4538 GREP="$ac_cv_path_GREP"
4541 { echo "$as_me:$LINENO: checking for egrep" >&5
4542 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4543 if test "${ac_cv_path_EGREP+set}" = set; then
4544 echo $ECHO_N "(cached) $ECHO_C" >&6
4546 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4547 then ac_cv_path_EGREP="$GREP -E"
4549 # Extract the first word of "egrep" to use in msg output
4550 if test -z "$EGREP"; then
4551 set dummy egrep; ac_prog_name=$2
4552 if test "${ac_cv_path_EGREP+set}" = set; then
4553 echo $ECHO_N "(cached) $ECHO_C" >&6
4555 ac_path_EGREP_found=false
4556 # Loop through the user's path and test for each of PROGNAME-LIST
4557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4561 test -z "$as_dir" && as_dir=.
4562 for ac_prog in egrep; do
4563 for ac_exec_ext in '' $ac_executable_extensions; do
4564 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4565 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4566 # Check for GNU ac_path_EGREP and select it if it is found.
4567 # Check for GNU $ac_path_EGREP
4568 case `"$ac_path_EGREP" --version 2>&1` in
4570 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4573 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4576 cat "conftest.in" "conftest.in" >"conftest.tmp"
4577 mv "conftest.tmp" "conftest.in"
4578 cp "conftest.in" "conftest.nl"
4579 echo 'EGREP' >> "conftest.nl"
4580 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4581 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4582 ac_count=`expr $ac_count + 1`
4583 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4584 # Best one so far, save it but keep looking for a better one
4585 ac_cv_path_EGREP="$ac_path_EGREP"
4586 ac_path_EGREP_max=$ac_count
4588 # 10*(2^10) chars as input seems more than enough
4589 test $ac_count -gt 10 && break
4591 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4595 $ac_path_EGREP_found && break 3
4605 EGREP="$ac_cv_path_EGREP"
4606 if test -z "$EGREP"; then
4607 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4608 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4609 { (exit 1); exit 1; }; }
4613 ac_cv_path_EGREP=$EGREP
4619 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4620 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4621 EGREP="$ac_cv_path_EGREP"
4624 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4625 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4626 if test "${ac_cv_header_stdc+set}" = set; then
4627 echo $ECHO_N "(cached) $ECHO_C" >&6
4629 cat >conftest.$ac_ext <<_ACEOF
4632 cat confdefs.h >>conftest.$ac_ext
4633 cat >>conftest.$ac_ext <<_ACEOF
4634 /* end confdefs.h. */
4648 rm -f conftest.$ac_objext
4649 if { (ac_try="$ac_compile"
4651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4652 *) ac_try_echo=$ac_try;;
4654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4655 (eval "$ac_compile") 2>conftest.er1
4657 grep -v '^ *+' conftest.er1 >conftest.err
4659 cat conftest.err >&5
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); } && {
4662 test -z "$ac_c_werror_flag" ||
4663 test ! -s conftest.err
4664 } && test -s conftest.$ac_objext; then
4665 ac_cv_header_stdc=yes
4667 echo "$as_me: failed program was:" >&5
4668 sed 's/^/| /' conftest.$ac_ext >&5
4670 ac_cv_header_stdc=no
4673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4675 if test $ac_cv_header_stdc = yes; then
4676 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4677 cat >conftest.$ac_ext <<_ACEOF
4680 cat confdefs.h >>conftest.$ac_ext
4681 cat >>conftest.$ac_ext <<_ACEOF
4682 /* end confdefs.h. */
4686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4687 $EGREP "memchr" >/dev/null 2>&1; then
4690 ac_cv_header_stdc=no
4696 if test $ac_cv_header_stdc = yes; then
4697 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4698 cat >conftest.$ac_ext <<_ACEOF
4701 cat confdefs.h >>conftest.$ac_ext
4702 cat >>conftest.$ac_ext <<_ACEOF
4703 /* end confdefs.h. */
4707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4708 $EGREP "free" >/dev/null 2>&1; then
4711 ac_cv_header_stdc=no
4717 if test $ac_cv_header_stdc = yes; then
4718 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4719 if test "$cross_compiling" = yes; then
4722 cat >conftest.$ac_ext <<_ACEOF
4725 cat confdefs.h >>conftest.$ac_ext
4726 cat >>conftest.$ac_ext <<_ACEOF
4727 /* end confdefs.h. */
4730 #if ((' ' & 0x0FF) == 0x020)
4731 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4732 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4734 # define ISLOWER(c) \
4735 (('a' <= (c) && (c) <= 'i') \
4736 || ('j' <= (c) && (c) <= 'r') \
4737 || ('s' <= (c) && (c) <= 'z'))
4738 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4741 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4746 for (i = 0; i < 256; i++)
4747 if (XOR (islower (i), ISLOWER (i))
4748 || toupper (i) != TOUPPER (i))
4753 rm -f conftest$ac_exeext
4754 if { (ac_try="$ac_link"
4756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4757 *) ac_try_echo=$ac_try;;
4759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4760 (eval "$ac_link") 2>&5
4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4764 { (case "(($ac_try" in
4765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4766 *) ac_try_echo=$ac_try;;
4768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4769 (eval "$ac_try") 2>&5
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); }; }; then
4775 echo "$as_me: program exited with status $ac_status" >&5
4776 echo "$as_me: failed program was:" >&5
4777 sed 's/^/| /' conftest.$ac_ext >&5
4780 ac_cv_header_stdc=no
4782 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4788 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4789 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4790 if test $ac_cv_header_stdc = yes; then
4792 cat >>confdefs.h <<\_ACEOF
4793 #define STDC_HEADERS 1
4798 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4808 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4809 inttypes.h stdint.h unistd.h
4811 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4812 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4815 echo $ECHO_N "(cached) $ECHO_C" >&6
4817 cat >conftest.$ac_ext <<_ACEOF
4820 cat confdefs.h >>conftest.$ac_ext
4821 cat >>conftest.$ac_ext <<_ACEOF
4822 /* end confdefs.h. */
4823 $ac_includes_default
4825 #include <$ac_header>
4827 rm -f conftest.$ac_objext
4828 if { (ac_try="$ac_compile"
4830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4831 *) ac_try_echo=$ac_try;;
4833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4834 (eval "$ac_compile") 2>conftest.er1
4836 grep -v '^ *+' conftest.er1 >conftest.err
4838 cat conftest.err >&5
4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 (exit $ac_status); } && {
4841 test -z "$ac_c_werror_flag" ||
4842 test ! -s conftest.err
4843 } && test -s conftest.$ac_objext; then
4844 eval "$as_ac_Header=yes"
4846 echo "$as_me: failed program was:" >&5
4847 sed 's/^/| /' conftest.$ac_ext >&5
4849 eval "$as_ac_Header=no"
4852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4854 ac_res=`eval echo '${'$as_ac_Header'}'`
4855 { echo "$as_me:$LINENO: result: $ac_res" >&5
4856 echo "${ECHO_T}$ac_res" >&6; }
4857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4858 cat >>confdefs.h <<_ACEOF
4859 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4878 for ac_header in arpa/inet.h fcntl.h malloc.h netdb.h stdint.h stdlib.h string.h sys/ioctl.h sys/socket.h sys/time.h unistd.h
4880 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4882 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4885 echo $ECHO_N "(cached) $ECHO_C" >&6
4887 ac_res=`eval echo '${'$as_ac_Header'}'`
4888 { echo "$as_me:$LINENO: result: $ac_res" >&5
4889 echo "${ECHO_T}$ac_res" >&6; }
4891 # Is the header compilable?
4892 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4893 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4894 cat >conftest.$ac_ext <<_ACEOF
4897 cat confdefs.h >>conftest.$ac_ext
4898 cat >>conftest.$ac_ext <<_ACEOF
4899 /* end confdefs.h. */
4900 $ac_includes_default
4901 #include <$ac_header>
4903 rm -f conftest.$ac_objext
4904 if { (ac_try="$ac_compile"
4906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4907 *) ac_try_echo=$ac_try;;
4909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4910 (eval "$ac_compile") 2>conftest.er1
4912 grep -v '^ *+' conftest.er1 >conftest.err
4914 cat conftest.err >&5
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); } && {
4917 test -z "$ac_c_werror_flag" ||
4918 test ! -s conftest.err
4919 } && test -s conftest.$ac_objext; then
4920 ac_header_compiler=yes
4922 echo "$as_me: failed program was:" >&5
4923 sed 's/^/| /' conftest.$ac_ext >&5
4925 ac_header_compiler=no
4928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4929 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4930 echo "${ECHO_T}$ac_header_compiler" >&6; }
4932 # Is the header present?
4933 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4934 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4935 cat >conftest.$ac_ext <<_ACEOF
4938 cat confdefs.h >>conftest.$ac_ext
4939 cat >>conftest.$ac_ext <<_ACEOF
4940 /* end confdefs.h. */
4941 #include <$ac_header>
4943 if { (ac_try="$ac_cpp conftest.$ac_ext"
4945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4946 *) ac_try_echo=$ac_try;;
4948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4949 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4951 grep -v '^ *+' conftest.er1 >conftest.err
4953 cat conftest.err >&5
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); } >/dev/null && {
4956 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4957 test ! -s conftest.err
4959 ac_header_preproc=yes
4961 echo "$as_me: failed program was:" >&5
4962 sed 's/^/| /' conftest.$ac_ext >&5
4964 ac_header_preproc=no
4967 rm -f conftest.err conftest.$ac_ext
4968 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4969 echo "${ECHO_T}$ac_header_preproc" >&6; }
4971 # So? What about this header?
4972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4974 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4975 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4976 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4977 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4978 ac_header_preproc=yes
4981 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4982 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4983 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4984 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4985 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4986 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4987 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4988 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4990 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4991 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4992 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4994 ## ----------------------------------- ##
4995 ## Report this to opensource@gmail.com ##
4996 ## ----------------------------------- ##
4998 ) | sed "s/^/$as_me: WARNING: /" >&2
5001 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5004 echo $ECHO_N "(cached) $ECHO_C" >&6
5006 eval "$as_ac_Header=\$ac_header_preproc"
5008 ac_res=`eval echo '${'$as_ac_Header'}'`
5009 { echo "$as_me:$LINENO: result: $ac_res" >&5
5010 echo "${ECHO_T}$ac_res" >&6; }
5013 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5014 cat >>confdefs.h <<_ACEOF
5015 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5023 # Checks for typedefs, structures, and compiler characteristics.
5024 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
5025 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
5026 if test "${ac_cv_header_stdbool_h+set}" = set; then
5027 echo $ECHO_N "(cached) $ECHO_C" >&6
5029 cat >conftest.$ac_ext <<_ACEOF
5032 cat confdefs.h >>conftest.$ac_ext
5033 cat >>conftest.$ac_ext <<_ACEOF
5034 /* end confdefs.h. */
5036 #include <stdbool.h>
5038 "error: bool is not defined"
5041 "error: false is not defined"
5044 "error: false is not 0"
5047 "error: true is not defined"
5050 "error: true is not 1"
5052 #ifndef __bool_true_false_are_defined
5053 "error: __bool_true_false_are_defined is not defined"
5056 struct s { _Bool s: 1; _Bool t; } s;
5058 char a[true == 1 ? 1 : -1];
5059 char b[false == 0 ? 1 : -1];
5060 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
5061 char d[(bool) 0.5 == true ? 1 : -1];
5063 char f[(_Bool) 0.0 == false ? 1 : -1];
5065 char h[sizeof (_Bool)];
5067 enum { j = false, k = true, l = false * true, m = true * 256 };
5069 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
5070 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
5071 # if defined __xlc__ || defined __GNUC__
5072 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
5073 reported by James Lemley on 2005-10-05; see
5074 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
5075 This test is not quite right, since xlc is allowed to
5076 reject this program, as the initializer for xlcbug is
5077 not one of the forms that C requires support for.
5078 However, doing the test right would require a runtime
5079 test, and that would make cross-compilation harder.
5080 Let us hope that IBM fixes the xlc bug, and also adds
5081 support for this kind of constant expression. In the
5082 meantime, this test will reject xlc, which is OK, since
5083 our stdbool.h substitute should suffice. We also test
5084 this with GCC, where it should work, to detect more
5085 quickly whether someone messes up the test in the
5087 char digs[] = "0123456789";
5088 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
5090 /* Catch a bug in an HP-UX C compiler. See
5091 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
5092 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
5103 /* Refer to every declared value, to avoid compiler optimizations. */
5104 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
5105 + !m + !n + !o + !p + !q + !pq);
5111 rm -f conftest.$ac_objext
5112 if { (ac_try="$ac_compile"
5114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5115 *) ac_try_echo=$ac_try;;
5117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5118 (eval "$ac_compile") 2>conftest.er1
5120 grep -v '^ *+' conftest.er1 >conftest.err
5122 cat conftest.err >&5
5123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124 (exit $ac_status); } && {
5125 test -z "$ac_c_werror_flag" ||
5126 test ! -s conftest.err
5127 } && test -s conftest.$ac_objext; then
5128 ac_cv_header_stdbool_h=yes
5130 echo "$as_me: failed program was:" >&5
5131 sed 's/^/| /' conftest.$ac_ext >&5
5133 ac_cv_header_stdbool_h=no
5136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5138 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
5139 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
5140 { echo "$as_me:$LINENO: checking for _Bool" >&5
5141 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
5142 if test "${ac_cv_type__Bool+set}" = set; then
5143 echo $ECHO_N "(cached) $ECHO_C" >&6
5145 cat >conftest.$ac_ext <<_ACEOF
5148 cat confdefs.h >>conftest.$ac_ext
5149 cat >>conftest.$ac_ext <<_ACEOF
5150 /* end confdefs.h. */
5151 $ac_includes_default
5152 typedef _Bool ac__type_new_;
5156 if ((ac__type_new_ *) 0)
5158 if (sizeof (ac__type_new_))
5164 rm -f conftest.$ac_objext
5165 if { (ac_try="$ac_compile"
5167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5168 *) ac_try_echo=$ac_try;;
5170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5171 (eval "$ac_compile") 2>conftest.er1
5173 grep -v '^ *+' conftest.er1 >conftest.err
5175 cat conftest.err >&5
5176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177 (exit $ac_status); } && {
5178 test -z "$ac_c_werror_flag" ||
5179 test ! -s conftest.err
5180 } && test -s conftest.$ac_objext; then
5181 ac_cv_type__Bool=yes
5183 echo "$as_me: failed program was:" >&5
5184 sed 's/^/| /' conftest.$ac_ext >&5
5189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5191 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
5192 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
5193 if test $ac_cv_type__Bool = yes; then
5195 cat >>confdefs.h <<_ACEOF
5196 #define HAVE__BOOL 1
5202 if test $ac_cv_header_stdbool_h = yes; then
5204 cat >>confdefs.h <<\_ACEOF
5205 #define HAVE_STDBOOL_H 1
5210 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5211 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5212 if test "${ac_cv_c_const+set}" = set; then
5213 echo $ECHO_N "(cached) $ECHO_C" >&6
5215 cat >conftest.$ac_ext <<_ACEOF
5218 cat confdefs.h >>conftest.$ac_ext
5219 cat >>conftest.$ac_ext <<_ACEOF
5220 /* end confdefs.h. */
5225 /* FIXME: Include the comments suggested by Paul. */
5227 /* Ultrix mips cc rejects this. */
5228 typedef int charset[2];
5230 /* SunOS 4.1.1 cc rejects this. */
5231 char const *const *pcpcc;
5233 /* NEC SVR4.0.2 mips cc rejects this. */
5234 struct point {int x, y;};
5235 static struct point const zero = {0,0};
5236 /* AIX XL C 1.02.0.0 rejects this.
5237 It does not let you subtract one const X* pointer from another in
5238 an arm of an if-expression whose if-part is not a constant
5240 const char *g = "string";
5241 pcpcc = &g + (g ? g-g : 0);
5242 /* HPUX 7.0 cc rejects these. */
5244 ppc = (char**) pcpcc;
5245 pcpcc = (char const *const *) ppc;
5246 { /* SCO 3.2v4 cc rejects this. */
5248 char const *s = 0 ? (char *) 0 : (char const *) 0;
5253 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5255 const int *foo = &x[0];
5258 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5259 typedef const int *iptr;
5263 { /* AIX XL C 1.02.0.0 rejects this saying
5264 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5265 struct s { int j; const int *ap[3]; };
5266 struct s *b; b->j = 5;
5268 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5272 return !cs[0] && !zero.x;
5279 rm -f conftest.$ac_objext
5280 if { (ac_try="$ac_compile"
5282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5283 *) ac_try_echo=$ac_try;;
5285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5286 (eval "$ac_compile") 2>conftest.er1
5288 grep -v '^ *+' conftest.er1 >conftest.err
5290 cat conftest.err >&5
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); } && {
5293 test -z "$ac_c_werror_flag" ||
5294 test ! -s conftest.err
5295 } && test -s conftest.$ac_objext; then
5298 echo "$as_me: failed program was:" >&5
5299 sed 's/^/| /' conftest.$ac_ext >&5
5304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5306 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5307 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5308 if test $ac_cv_c_const = no; then
5310 cat >>confdefs.h <<\_ACEOF
5316 { echo "$as_me:$LINENO: checking for inline" >&5
5317 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5318 if test "${ac_cv_c_inline+set}" = set; then
5319 echo $ECHO_N "(cached) $ECHO_C" >&6
5322 for ac_kw in inline __inline__ __inline; do
5323 cat >conftest.$ac_ext <<_ACEOF
5326 cat confdefs.h >>conftest.$ac_ext
5327 cat >>conftest.$ac_ext <<_ACEOF
5328 /* end confdefs.h. */
5331 static $ac_kw foo_t static_foo () {return 0; }
5332 $ac_kw foo_t foo () {return 0; }
5336 rm -f conftest.$ac_objext
5337 if { (ac_try="$ac_compile"
5339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5340 *) ac_try_echo=$ac_try;;
5342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5343 (eval "$ac_compile") 2>conftest.er1
5345 grep -v '^ *+' conftest.er1 >conftest.err
5347 cat conftest.err >&5
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); } && {
5350 test -z "$ac_c_werror_flag" ||
5351 test ! -s conftest.err
5352 } && test -s conftest.$ac_objext; then
5353 ac_cv_c_inline=$ac_kw
5355 echo "$as_me: failed program was:" >&5
5356 sed 's/^/| /' conftest.$ac_ext >&5
5361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5362 test "$ac_cv_c_inline" != no && break
5366 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5367 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5370 case $ac_cv_c_inline in
5373 case $ac_cv_c_inline in
5375 *) ac_val=$ac_cv_c_inline;;
5377 cat >>confdefs.h <<_ACEOF
5379 #define inline $ac_val
5385 { echo "$as_me:$LINENO: checking for pid_t" >&5
5386 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
5387 if test "${ac_cv_type_pid_t+set}" = set; then
5388 echo $ECHO_N "(cached) $ECHO_C" >&6
5390 cat >conftest.$ac_ext <<_ACEOF
5393 cat confdefs.h >>conftest.$ac_ext
5394 cat >>conftest.$ac_ext <<_ACEOF
5395 /* end confdefs.h. */
5396 $ac_includes_default
5397 typedef pid_t ac__type_new_;
5401 if ((ac__type_new_ *) 0)
5403 if (sizeof (ac__type_new_))
5409 rm -f conftest.$ac_objext
5410 if { (ac_try="$ac_compile"
5412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5413 *) ac_try_echo=$ac_try;;
5415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5416 (eval "$ac_compile") 2>conftest.er1
5418 grep -v '^ *+' conftest.er1 >conftest.err
5420 cat conftest.err >&5
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); } && {
5423 test -z "$ac_c_werror_flag" ||
5424 test ! -s conftest.err
5425 } && test -s conftest.$ac_objext; then
5426 ac_cv_type_pid_t=yes
5428 echo "$as_me: failed program was:" >&5
5429 sed 's/^/| /' conftest.$ac_ext >&5
5434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5436 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5437 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
5438 if test $ac_cv_type_pid_t = yes; then
5442 cat >>confdefs.h <<_ACEOF
5448 { echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
5449 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6; }
5450 if test "${ac_cv_c_restrict+set}" = set; then
5451 echo $ECHO_N "(cached) $ECHO_C" >&6
5454 # Try the official restrict keyword, then gcc's __restrict, and
5455 # the less common variants.
5456 for ac_kw in restrict __restrict __restrict__ _Restrict; do
5457 cat >conftest.$ac_ext <<_ACEOF
5460 cat confdefs.h >>conftest.$ac_ext
5461 cat >>conftest.$ac_ext <<_ACEOF
5462 /* end confdefs.h. */
5463 typedef int * int_ptr;
5464 int foo (int_ptr $ac_kw ip) {
5478 rm -f conftest.$ac_objext
5479 if { (ac_try="$ac_compile"
5481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5482 *) ac_try_echo=$ac_try;;
5484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5485 (eval "$ac_compile") 2>conftest.er1
5487 grep -v '^ *+' conftest.er1 >conftest.err
5489 cat conftest.err >&5
5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); } && {
5492 test -z "$ac_c_werror_flag" ||
5493 test ! -s conftest.err
5494 } && test -s conftest.$ac_objext; then
5495 ac_cv_c_restrict=$ac_kw
5497 echo "$as_me: failed program was:" >&5
5498 sed 's/^/| /' conftest.$ac_ext >&5
5503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5504 test "$ac_cv_c_restrict" != no && break
5508 { echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
5509 echo "${ECHO_T}$ac_cv_c_restrict" >&6; }
5510 case $ac_cv_c_restrict in
5513 cat >>confdefs.h <<\_ACEOF
5517 *) cat >>confdefs.h <<_ACEOF
5518 #define restrict $ac_cv_c_restrict
5523 { echo "$as_me:$LINENO: checking for ssize_t" >&5
5524 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
5525 if test "${ac_cv_type_ssize_t+set}" = set; then
5526 echo $ECHO_N "(cached) $ECHO_C" >&6
5528 cat >conftest.$ac_ext <<_ACEOF
5531 cat confdefs.h >>conftest.$ac_ext
5532 cat >>conftest.$ac_ext <<_ACEOF
5533 /* end confdefs.h. */
5534 $ac_includes_default
5535 typedef ssize_t ac__type_new_;
5539 if ((ac__type_new_ *) 0)
5541 if (sizeof (ac__type_new_))
5547 rm -f conftest.$ac_objext
5548 if { (ac_try="$ac_compile"
5550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5551 *) ac_try_echo=$ac_try;;
5553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5554 (eval "$ac_compile") 2>conftest.er1
5556 grep -v '^ *+' conftest.er1 >conftest.err
5558 cat conftest.err >&5
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); } && {
5561 test -z "$ac_c_werror_flag" ||
5562 test ! -s conftest.err
5563 } && test -s conftest.$ac_objext; then
5564 ac_cv_type_ssize_t=yes
5566 echo "$as_me: failed program was:" >&5
5567 sed 's/^/| /' conftest.$ac_ext >&5
5569 ac_cv_type_ssize_t=no
5572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5574 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
5575 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
5576 if test $ac_cv_type_ssize_t = yes; then
5580 cat >>confdefs.h <<_ACEOF
5586 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5587 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
5588 if test "${ac_cv_header_time+set}" = set; then
5589 echo $ECHO_N "(cached) $ECHO_C" >&6
5591 cat >conftest.$ac_ext <<_ACEOF
5594 cat confdefs.h >>conftest.$ac_ext
5595 cat >>conftest.$ac_ext <<_ACEOF
5596 /* end confdefs.h. */
5597 #include <sys/types.h>
5598 #include <sys/time.h>
5604 if ((struct tm *) 0)
5610 rm -f conftest.$ac_objext
5611 if { (ac_try="$ac_compile"
5613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5614 *) ac_try_echo=$ac_try;;
5616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5617 (eval "$ac_compile") 2>conftest.er1
5619 grep -v '^ *+' conftest.er1 >conftest.err
5621 cat conftest.err >&5
5622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); } && {
5624 test -z "$ac_c_werror_flag" ||
5625 test ! -s conftest.err
5626 } && test -s conftest.$ac_objext; then
5627 ac_cv_header_time=yes
5629 echo "$as_me: failed program was:" >&5
5630 sed 's/^/| /' conftest.$ac_ext >&5
5632 ac_cv_header_time=no
5635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5637 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5638 echo "${ECHO_T}$ac_cv_header_time" >&6; }
5639 if test $ac_cv_header_time = yes; then
5641 cat >>confdefs.h <<\_ACEOF
5642 #define TIME_WITH_SYS_TIME 1
5648 { echo "$as_me:$LINENO: checking for uint16_t" >&5
5649 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
5650 if test "${ac_cv_c_uint16_t+set}" = set; then
5651 echo $ECHO_N "(cached) $ECHO_C" >&6
5654 for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
5655 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
5656 cat >conftest.$ac_ext <<_ACEOF
5659 cat confdefs.h >>conftest.$ac_ext
5660 cat >>conftest.$ac_ext <<_ACEOF
5661 /* end confdefs.h. */
5662 $ac_includes_default
5666 static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
5673 rm -f conftest.$ac_objext
5674 if { (ac_try="$ac_compile"
5676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5677 *) ac_try_echo=$ac_try;;
5679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5680 (eval "$ac_compile") 2>conftest.er1
5682 grep -v '^ *+' conftest.er1 >conftest.err
5684 cat conftest.err >&5
5685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686 (exit $ac_status); } && {
5687 test -z "$ac_c_werror_flag" ||
5688 test ! -s conftest.err
5689 } && test -s conftest.$ac_objext; then
5691 uint16_t) ac_cv_c_uint16_t=yes ;;
5692 *) ac_cv_c_uint16_t=$ac_type ;;
5696 echo "$as_me: failed program was:" >&5
5697 sed 's/^/| /' conftest.$ac_ext >&5
5702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5703 test "$ac_cv_c_uint16_t" != no && break
5706 { echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
5707 echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; }
5708 case $ac_cv_c_uint16_t in #(
5713 cat >>confdefs.h <<_ACEOF
5714 #define uint16_t $ac_cv_c_uint16_t
5719 { echo "$as_me:$LINENO: checking for working volatile" >&5
5720 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
5721 if test "${ac_cv_c_volatile+set}" = set; then
5722 echo $ECHO_N "(cached) $ECHO_C" >&6
5724 cat >conftest.$ac_ext <<_ACEOF
5727 cat confdefs.h >>conftest.$ac_ext
5728 cat >>conftest.$ac_ext <<_ACEOF
5729 /* end confdefs.h. */
5736 int * volatile y = (int *) 0;
5742 rm -f conftest.$ac_objext
5743 if { (ac_try="$ac_compile"
5745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5746 *) ac_try_echo=$ac_try;;
5748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5749 (eval "$ac_compile") 2>conftest.er1
5751 grep -v '^ *+' conftest.er1 >conftest.err
5753 cat conftest.err >&5
5754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755 (exit $ac_status); } && {
5756 test -z "$ac_c_werror_flag" ||
5757 test ! -s conftest.err
5758 } && test -s conftest.$ac_objext; then
5759 ac_cv_c_volatile=yes
5761 echo "$as_me: failed program was:" >&5
5762 sed 's/^/| /' conftest.$ac_ext >&5
5767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5769 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
5770 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
5771 if test $ac_cv_c_volatile = no; then
5773 cat >>confdefs.h <<\_ACEOF
5780 # Checking for pthreads
5781 pthread_arg="not_available"
5782 { echo "$as_me:$LINENO: checking which argument is required to compile pthreads" >&5
5783 echo $ECHO_N "checking which argument is required to compile pthreads... $ECHO_C" >&6; }
5785 pthread_header="#include<pthread.h>"
5786 pthread_body="pthread_create(0,0,0,0)"
5787 # Check if compile with no extra argument
5788 cat >conftest.$ac_ext <<_ACEOF
5791 cat confdefs.h >>conftest.$ac_ext
5792 cat >>conftest.$ac_ext <<_ACEOF
5793 /* end confdefs.h. */
5803 rm -f conftest.$ac_objext conftest$ac_exeext
5804 if { (ac_try="$ac_link"
5806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5807 *) ac_try_echo=$ac_try;;
5809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5810 (eval "$ac_link") 2>conftest.er1
5812 grep -v '^ *+' conftest.er1 >conftest.err
5814 cat conftest.err >&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); } && {
5817 test -z "$ac_c_werror_flag" ||
5818 test ! -s conftest.err
5819 } && test -s conftest$ac_exeext &&
5820 $as_test_x conftest$ac_exeext; then
5823 echo "$as_me: failed program was:" >&5
5824 sed 's/^/| /' conftest.$ac_ext >&5
5829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5830 conftest$ac_exeext conftest.$ac_ext
5832 if test x"$pthread_arg" = x"not_available"; then
5833 # At first, only -pthread was tested, but this is the place
5834 # to add extra pthread flags if someone can test them
5835 bkp_LDFLAGS="$LDFLAGS"
5836 for altheader in -pthread; do
5837 LDFLAGS="$bkp_LDFLAGS $altheader"
5838 cat >conftest.$ac_ext <<_ACEOF
5841 cat confdefs.h >>conftest.$ac_ext
5842 cat >>conftest.$ac_ext <<_ACEOF
5843 /* end confdefs.h. */
5853 rm -f conftest.$ac_objext conftest$ac_exeext
5854 if { (ac_try="$ac_link"
5856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5857 *) ac_try_echo=$ac_try;;
5859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5860 (eval "$ac_link") 2>conftest.er1
5862 grep -v '^ *+' conftest.er1 >conftest.err
5864 cat conftest.err >&5
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); } && {
5867 test -z "$ac_c_werror_flag" ||
5868 test ! -s conftest.err
5869 } && test -s conftest$ac_exeext &&
5870 $as_test_x conftest$ac_exeext; then
5871 pthread_arg="$altheader"
5873 echo "$as_me: failed program was:" >&5
5874 sed 's/^/| /' conftest.$ac_ext >&5
5879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5880 conftest$ac_exeext conftest.$ac_ext
5881 LDFLAGS="$bkp_LDFLAGS"
5885 if test x"$pthread_arg" = x"not_available"; then
5886 { { echo "$as_me:$LINENO: error: Cannot find a proper pthread library
5887 See \`config.log' for more details." >&5
5888 echo "$as_me: error: Cannot find a proper pthread library
5889 See \`config.log' for more details." >&2;}
5890 { (exit 1); exit 1; }; }
5892 if test x"$pthread_arg" = x; then
5893 { echo "$as_me:$LINENO: result: none" >&5
5894 echo "${ECHO_T}none" >&6; }
5896 { echo "$as_me:$LINENO: result: $pthread_arg" >&5
5897 echo "${ECHO_T}$pthread_arg" >&6; }
5899 LDFLAGS="$LDFLAGS $pthread_arg"
5902 # Checks for library functions.
5903 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
5904 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
5905 if test "${ac_cv_func_closedir_void+set}" = set; then
5906 echo $ECHO_N "(cached) $ECHO_C" >&6
5908 if test "$cross_compiling" = yes; then
5909 ac_cv_func_closedir_void=yes
5911 cat >conftest.$ac_ext <<_ACEOF
5914 cat confdefs.h >>conftest.$ac_ext
5915 cat >>conftest.$ac_ext <<_ACEOF
5916 /* end confdefs.h. */
5917 $ac_includes_default
5918 #include <$ac_header_dirent>
5926 return closedir (opendir (".")) != 0;
5931 rm -f conftest$ac_exeext
5932 if { (ac_try="$ac_link"
5934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5935 *) ac_try_echo=$ac_try;;
5937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5938 (eval "$ac_link") 2>&5
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5942 { (case "(($ac_try" in
5943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5944 *) ac_try_echo=$ac_try;;
5946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5947 (eval "$ac_try") 2>&5
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); }; }; then
5951 ac_cv_func_closedir_void=no
5953 echo "$as_me: program exited with status $ac_status" >&5
5954 echo "$as_me: failed program was:" >&5
5955 sed 's/^/| /' conftest.$ac_ext >&5
5958 ac_cv_func_closedir_void=yes
5960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5965 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
5966 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
5967 if test $ac_cv_func_closedir_void = yes; then
5969 cat >>confdefs.h <<\_ACEOF
5970 #define CLOSEDIR_VOID 1
5975 if test $ac_cv_c_compiler_gnu = yes; then
5976 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
5977 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
5978 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
5979 echo $ECHO_N "(cached) $ECHO_C" >&6
5981 ac_pattern="Autoconf.*'x'"
5982 cat >conftest.$ac_ext <<_ACEOF
5985 cat confdefs.h >>conftest.$ac_ext
5986 cat >>conftest.$ac_ext <<_ACEOF
5987 /* end confdefs.h. */
5991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5992 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5993 ac_cv_prog_gcc_traditional=yes
5995 ac_cv_prog_gcc_traditional=no
6000 if test $ac_cv_prog_gcc_traditional = no; then
6001 cat >conftest.$ac_ext <<_ACEOF
6004 cat confdefs.h >>conftest.$ac_ext
6005 cat >>conftest.$ac_ext <<_ACEOF
6006 /* end confdefs.h. */
6010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6011 $EGREP "$ac_pattern" >/dev/null 2>&1; then
6012 ac_cv_prog_gcc_traditional=yes
6018 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
6019 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
6020 if test $ac_cv_prog_gcc_traditional = yes; then
6021 CC="$CC -traditional"
6027 for ac_header in sys/select.h sys/socket.h
6029 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6031 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6034 echo $ECHO_N "(cached) $ECHO_C" >&6
6036 ac_res=`eval echo '${'$as_ac_Header'}'`
6037 { echo "$as_me:$LINENO: result: $ac_res" >&5
6038 echo "${ECHO_T}$ac_res" >&6; }
6040 # Is the header compilable?
6041 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6042 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6043 cat >conftest.$ac_ext <<_ACEOF
6046 cat confdefs.h >>conftest.$ac_ext
6047 cat >>conftest.$ac_ext <<_ACEOF
6048 /* end confdefs.h. */
6049 $ac_includes_default
6050 #include <$ac_header>
6052 rm -f conftest.$ac_objext
6053 if { (ac_try="$ac_compile"
6055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6056 *) ac_try_echo=$ac_try;;
6058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6059 (eval "$ac_compile") 2>conftest.er1
6061 grep -v '^ *+' conftest.er1 >conftest.err
6063 cat conftest.err >&5
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); } && {
6066 test -z "$ac_c_werror_flag" ||
6067 test ! -s conftest.err
6068 } && test -s conftest.$ac_objext; then
6069 ac_header_compiler=yes
6071 echo "$as_me: failed program was:" >&5
6072 sed 's/^/| /' conftest.$ac_ext >&5
6074 ac_header_compiler=no
6077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6078 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6079 echo "${ECHO_T}$ac_header_compiler" >&6; }
6081 # Is the header present?
6082 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6083 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6084 cat >conftest.$ac_ext <<_ACEOF
6087 cat confdefs.h >>conftest.$ac_ext
6088 cat >>conftest.$ac_ext <<_ACEOF
6089 /* end confdefs.h. */
6090 #include <$ac_header>
6092 if { (ac_try="$ac_cpp conftest.$ac_ext"
6094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6095 *) ac_try_echo=$ac_try;;
6097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6098 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6100 grep -v '^ *+' conftest.er1 >conftest.err
6102 cat conftest.err >&5
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); } >/dev/null && {
6105 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6106 test ! -s conftest.err
6108 ac_header_preproc=yes
6110 echo "$as_me: failed program was:" >&5
6111 sed 's/^/| /' conftest.$ac_ext >&5
6113 ac_header_preproc=no
6116 rm -f conftest.err conftest.$ac_ext
6117 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6118 echo "${ECHO_T}$ac_header_preproc" >&6; }
6120 # So? What about this header?
6121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6123 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6124 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6126 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6127 ac_header_preproc=yes
6130 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6131 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6132 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6133 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6134 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6135 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6136 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6137 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6139 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6140 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6141 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6143 ## ----------------------------------- ##
6144 ## Report this to opensource@gmail.com ##
6145 ## ----------------------------------- ##
6147 ) | sed "s/^/$as_me: WARNING: /" >&2
6150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6153 echo $ECHO_N "(cached) $ECHO_C" >&6
6155 eval "$as_ac_Header=\$ac_header_preproc"
6157 ac_res=`eval echo '${'$as_ac_Header'}'`
6158 { echo "$as_me:$LINENO: result: $ac_res" >&5
6159 echo "${ECHO_T}$ac_res" >&6; }
6162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6163 cat >>confdefs.h <<_ACEOF
6164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6171 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
6172 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
6173 if test "${ac_cv_func_select_args+set}" = set; then
6174 echo $ECHO_N "(cached) $ECHO_C" >&6
6176 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
6177 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
6178 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
6179 cat >conftest.$ac_ext <<_ACEOF
6182 cat confdefs.h >>conftest.$ac_ext
6183 cat >>conftest.$ac_ext <<_ACEOF
6184 /* end confdefs.h. */
6185 $ac_includes_default
6186 #ifdef HAVE_SYS_SELECT_H
6187 # include <sys/select.h>
6189 #ifdef HAVE_SYS_SOCKET_H
6190 # include <sys/socket.h>
6196 extern int select ($ac_arg1,
6197 $ac_arg234, $ac_arg234, $ac_arg234,
6203 rm -f conftest.$ac_objext
6204 if { (ac_try="$ac_compile"
6206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6207 *) ac_try_echo=$ac_try;;
6209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6210 (eval "$ac_compile") 2>conftest.er1
6212 grep -v '^ *+' conftest.er1 >conftest.err
6214 cat conftest.err >&5
6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); } && {
6217 test -z "$ac_c_werror_flag" ||
6218 test ! -s conftest.err
6219 } && test -s conftest.$ac_objext; then
6220 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
6222 echo "$as_me: failed program was:" >&5
6223 sed 's/^/| /' conftest.$ac_ext >&5
6228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6232 # Provide a safe default value.
6233 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
6236 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
6237 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
6238 ac_save_IFS=$IFS; IFS=','
6239 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
6243 cat >>confdefs.h <<_ACEOF
6244 #define SELECT_TYPE_ARG1 $1
6248 cat >>confdefs.h <<_ACEOF
6249 #define SELECT_TYPE_ARG234 ($2)
6253 cat >>confdefs.h <<_ACEOF
6254 #define SELECT_TYPE_ARG5 ($3)
6259 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6260 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6261 if test "${ac_cv_type_signal+set}" = set; then
6262 echo $ECHO_N "(cached) $ECHO_C" >&6
6264 cat >conftest.$ac_ext <<_ACEOF
6267 cat confdefs.h >>conftest.$ac_ext
6268 cat >>conftest.$ac_ext <<_ACEOF
6269 /* end confdefs.h. */
6270 #include <sys/types.h>
6276 return *(signal (0, 0)) (0) == 1;
6281 rm -f conftest.$ac_objext
6282 if { (ac_try="$ac_compile"
6284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6285 *) ac_try_echo=$ac_try;;
6287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6288 (eval "$ac_compile") 2>conftest.er1
6290 grep -v '^ *+' conftest.er1 >conftest.err
6292 cat conftest.err >&5
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); } && {
6295 test -z "$ac_c_werror_flag" ||
6296 test ! -s conftest.err
6297 } && test -s conftest.$ac_objext; then
6298 ac_cv_type_signal=int
6300 echo "$as_me: failed program was:" >&5
6301 sed 's/^/| /' conftest.$ac_ext >&5
6303 ac_cv_type_signal=void
6306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6308 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6309 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6311 cat >>confdefs.h <<_ACEOF
6312 #define RETSIGTYPE $ac_cv_type_signal
6316 { echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
6317 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6; }
6318 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
6319 echo $ECHO_N "(cached) $ECHO_C" >&6
6321 cat >conftest.$ac_ext <<_ACEOF
6324 cat confdefs.h >>conftest.$ac_ext
6325 cat >>conftest.$ac_ext <<_ACEOF
6326 /* end confdefs.h. */
6327 $ac_includes_default
6339 rm -f conftest.$ac_objext
6340 if { (ac_try="$ac_compile"
6342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6343 *) ac_try_echo=$ac_try;;
6345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6346 (eval "$ac_compile") 2>conftest.er1
6348 grep -v '^ *+' conftest.er1 >conftest.err
6350 cat conftest.err >&5
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); } && {
6353 test -z "$ac_c_werror_flag" ||
6354 test ! -s conftest.err
6355 } && test -s conftest.$ac_objext; then
6356 ac_cv_have_decl_strerror_r=yes
6358 echo "$as_me: failed program was:" >&5
6359 sed 's/^/| /' conftest.$ac_ext >&5
6361 ac_cv_have_decl_strerror_r=no
6364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6366 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
6367 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6; }
6368 if test $ac_cv_have_decl_strerror_r = yes; then
6370 cat >>confdefs.h <<_ACEOF
6371 #define HAVE_DECL_STRERROR_R 1
6376 cat >>confdefs.h <<_ACEOF
6377 #define HAVE_DECL_STRERROR_R 0
6385 for ac_func in strerror_r
6387 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6388 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6390 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6391 echo $ECHO_N "(cached) $ECHO_C" >&6
6393 cat >conftest.$ac_ext <<_ACEOF
6396 cat confdefs.h >>conftest.$ac_ext
6397 cat >>conftest.$ac_ext <<_ACEOF
6398 /* end confdefs.h. */
6399 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6401 #define $ac_func innocuous_$ac_func
6403 /* System header to define __stub macros and hopefully few prototypes,
6404 which can conflict with char $ac_func (); below.
6405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6406 <limits.h> exists even on freestanding compilers. */
6409 # include <limits.h>
6411 # include <assert.h>
6416 /* Override any GCC internal prototype to avoid an error.
6417 Use char because int might match the return type of a GCC
6418 builtin and then its argument prototype would still apply. */
6423 /* The GNU C library defines this for functions which it implements
6424 to always fail with ENOSYS. Some functions are actually named
6425 something starting with __ and the normal name is an alias. */
6426 #if defined __stub_$ac_func || defined __stub___$ac_func
6438 rm -f conftest.$ac_objext conftest$ac_exeext
6439 if { (ac_try="$ac_link"
6441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6442 *) ac_try_echo=$ac_try;;
6444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6445 (eval "$ac_link") 2>conftest.er1
6447 grep -v '^ *+' conftest.er1 >conftest.err
6449 cat conftest.err >&5
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); } && {
6452 test -z "$ac_c_werror_flag" ||
6453 test ! -s conftest.err
6454 } && test -s conftest$ac_exeext &&
6455 $as_test_x conftest$ac_exeext; then
6456 eval "$as_ac_var=yes"
6458 echo "$as_me: failed program was:" >&5
6459 sed 's/^/| /' conftest.$ac_ext >&5
6461 eval "$as_ac_var=no"
6464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6465 conftest$ac_exeext conftest.$ac_ext
6467 ac_res=`eval echo '${'$as_ac_var'}'`
6468 { echo "$as_me:$LINENO: result: $ac_res" >&5
6469 echo "${ECHO_T}$ac_res" >&6; }
6470 if test `eval echo '${'$as_ac_var'}'` = yes; then
6471 cat >>confdefs.h <<_ACEOF
6472 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6478 { echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
6479 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6; }
6480 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
6481 echo $ECHO_N "(cached) $ECHO_C" >&6
6484 ac_cv_func_strerror_r_char_p=no
6485 if test $ac_cv_have_decl_strerror_r = yes; then
6486 cat >conftest.$ac_ext <<_ACEOF
6489 cat confdefs.h >>conftest.$ac_ext
6490 cat >>conftest.$ac_ext <<_ACEOF
6491 /* end confdefs.h. */
6492 $ac_includes_default
6498 char x = *strerror_r (0, buf, sizeof buf);
6499 char *p = strerror_r (0, buf, sizeof buf);
6506 rm -f conftest.$ac_objext
6507 if { (ac_try="$ac_compile"
6509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6510 *) ac_try_echo=$ac_try;;
6512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6513 (eval "$ac_compile") 2>conftest.er1
6515 grep -v '^ *+' conftest.er1 >conftest.err
6517 cat conftest.err >&5
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); } && {
6520 test -z "$ac_c_werror_flag" ||
6521 test ! -s conftest.err
6522 } && test -s conftest.$ac_objext; then
6523 ac_cv_func_strerror_r_char_p=yes
6525 echo "$as_me: failed program was:" >&5
6526 sed 's/^/| /' conftest.$ac_ext >&5
6531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6533 # strerror_r is not declared. Choose between
6534 # systems that have relatively inaccessible declarations for the
6535 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
6536 # former has a strerror_r that returns char*, while the latter
6537 # has a strerror_r that returns `int'.
6538 # This test should segfault on the DEC system.
6539 if test "$cross_compiling" = yes; then
6542 cat >conftest.$ac_ext <<_ACEOF
6545 cat confdefs.h >>conftest.$ac_ext
6546 cat >>conftest.$ac_ext <<_ACEOF
6547 /* end confdefs.h. */
6548 $ac_includes_default
6549 extern char *strerror_r ();
6554 char x = *strerror_r (0, buf, sizeof buf);
6555 return ! isalpha (x);
6560 rm -f conftest$ac_exeext
6561 if { (ac_try="$ac_link"
6563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6564 *) ac_try_echo=$ac_try;;
6566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6567 (eval "$ac_link") 2>&5
6569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6571 { (case "(($ac_try" in
6572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6573 *) ac_try_echo=$ac_try;;
6575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6576 (eval "$ac_try") 2>&5
6578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); }; }; then
6580 ac_cv_func_strerror_r_char_p=yes
6582 echo "$as_me: program exited with status $ac_status" >&5
6583 echo "$as_me: failed program was:" >&5
6584 sed 's/^/| /' conftest.$ac_ext >&5
6587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6594 { echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
6595 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6; }
6596 if test $ac_cv_func_strerror_r_char_p = yes; then
6598 cat >>confdefs.h <<\_ACEOF
6599 #define STRERROR_R_CHAR_P 1
6605 for ac_func in vprintf
6607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6608 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6610 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6611 echo $ECHO_N "(cached) $ECHO_C" >&6
6613 cat >conftest.$ac_ext <<_ACEOF
6616 cat confdefs.h >>conftest.$ac_ext
6617 cat >>conftest.$ac_ext <<_ACEOF
6618 /* end confdefs.h. */
6619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6621 #define $ac_func innocuous_$ac_func
6623 /* System header to define __stub macros and hopefully few prototypes,
6624 which can conflict with char $ac_func (); below.
6625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6626 <limits.h> exists even on freestanding compilers. */
6629 # include <limits.h>
6631 # include <assert.h>
6636 /* Override any GCC internal prototype to avoid an error.
6637 Use char because int might match the return type of a GCC
6638 builtin and then its argument prototype would still apply. */
6643 /* The GNU C library defines this for functions which it implements
6644 to always fail with ENOSYS. Some functions are actually named
6645 something starting with __ and the normal name is an alias. */
6646 #if defined __stub_$ac_func || defined __stub___$ac_func
6658 rm -f conftest.$ac_objext conftest$ac_exeext
6659 if { (ac_try="$ac_link"
6661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6662 *) ac_try_echo=$ac_try;;
6664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6665 (eval "$ac_link") 2>conftest.er1
6667 grep -v '^ *+' conftest.er1 >conftest.err
6669 cat conftest.err >&5
6670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671 (exit $ac_status); } && {
6672 test -z "$ac_c_werror_flag" ||
6673 test ! -s conftest.err
6674 } && test -s conftest$ac_exeext &&
6675 $as_test_x conftest$ac_exeext; then
6676 eval "$as_ac_var=yes"
6678 echo "$as_me: failed program was:" >&5
6679 sed 's/^/| /' conftest.$ac_ext >&5
6681 eval "$as_ac_var=no"
6684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6685 conftest$ac_exeext conftest.$ac_ext
6687 ac_res=`eval echo '${'$as_ac_var'}'`
6688 { echo "$as_me:$LINENO: result: $ac_res" >&5
6689 echo "${ECHO_T}$ac_res" >&6; }
6690 if test `eval echo '${'$as_ac_var'}'` = yes; then
6691 cat >>confdefs.h <<_ACEOF
6692 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6695 { echo "$as_me:$LINENO: checking for _doprnt" >&5
6696 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
6697 if test "${ac_cv_func__doprnt+set}" = set; then
6698 echo $ECHO_N "(cached) $ECHO_C" >&6
6700 cat >conftest.$ac_ext <<_ACEOF
6703 cat confdefs.h >>conftest.$ac_ext
6704 cat >>conftest.$ac_ext <<_ACEOF
6705 /* end confdefs.h. */
6706 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
6707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6708 #define _doprnt innocuous__doprnt
6710 /* System header to define __stub macros and hopefully few prototypes,
6711 which can conflict with char _doprnt (); below.
6712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6713 <limits.h> exists even on freestanding compilers. */
6716 # include <limits.h>
6718 # include <assert.h>
6723 /* Override any GCC internal prototype to avoid an error.
6724 Use char because int might match the return type of a GCC
6725 builtin and then its argument prototype would still apply. */
6730 /* The GNU C library defines this for functions which it implements
6731 to always fail with ENOSYS. Some functions are actually named
6732 something starting with __ and the normal name is an alias. */
6733 #if defined __stub__doprnt || defined __stub____doprnt
6745 rm -f conftest.$ac_objext conftest$ac_exeext
6746 if { (ac_try="$ac_link"
6748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6749 *) ac_try_echo=$ac_try;;
6751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6752 (eval "$ac_link") 2>conftest.er1
6754 grep -v '^ *+' conftest.er1 >conftest.err
6756 cat conftest.err >&5
6757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758 (exit $ac_status); } && {
6759 test -z "$ac_c_werror_flag" ||
6760 test ! -s conftest.err
6761 } && test -s conftest$ac_exeext &&
6762 $as_test_x conftest$ac_exeext; then
6763 ac_cv_func__doprnt=yes
6765 echo "$as_me: failed program was:" >&5
6766 sed 's/^/| /' conftest.$ac_ext >&5
6768 ac_cv_func__doprnt=no
6771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6772 conftest$ac_exeext conftest.$ac_ext
6774 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
6775 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
6776 if test $ac_cv_func__doprnt = yes; then
6778 cat >>confdefs.h <<\_ACEOF
6779 #define HAVE_DOPRNT 1
6794 for ac_func in gettimeofday memset select socket strtol strtoull
6796 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6797 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6798 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6799 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6800 echo $ECHO_N "(cached) $ECHO_C" >&6
6802 cat >conftest.$ac_ext <<_ACEOF
6805 cat confdefs.h >>conftest.$ac_ext
6806 cat >>conftest.$ac_ext <<_ACEOF
6807 /* end confdefs.h. */
6808 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6810 #define $ac_func innocuous_$ac_func
6812 /* System header to define __stub macros and hopefully few prototypes,
6813 which can conflict with char $ac_func (); below.
6814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6815 <limits.h> exists even on freestanding compilers. */
6818 # include <limits.h>
6820 # include <assert.h>
6825 /* Override any GCC internal prototype to avoid an error.
6826 Use char because int might match the return type of a GCC
6827 builtin and then its argument prototype would still apply. */
6832 /* The GNU C library defines this for functions which it implements
6833 to always fail with ENOSYS. Some functions are actually named
6834 something starting with __ and the normal name is an alias. */
6835 #if defined __stub_$ac_func || defined __stub___$ac_func
6847 rm -f conftest.$ac_objext conftest$ac_exeext
6848 if { (ac_try="$ac_link"
6850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6851 *) ac_try_echo=$ac_try;;
6853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6854 (eval "$ac_link") 2>conftest.er1
6856 grep -v '^ *+' conftest.er1 >conftest.err
6858 cat conftest.err >&5
6859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860 (exit $ac_status); } && {
6861 test -z "$ac_c_werror_flag" ||
6862 test ! -s conftest.err
6863 } && test -s conftest$ac_exeext &&
6864 $as_test_x conftest$ac_exeext; then
6865 eval "$as_ac_var=yes"
6867 echo "$as_me: failed program was:" >&5
6868 sed 's/^/| /' conftest.$ac_ext >&5
6870 eval "$as_ac_var=no"
6873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6874 conftest$ac_exeext conftest.$ac_ext
6876 ac_res=`eval echo '${'$as_ac_var'}'`
6877 { echo "$as_me:$LINENO: result: $ac_res" >&5
6878 echo "${ECHO_T}$ac_res" >&6; }
6879 if test `eval echo '${'$as_ac_var'}'` = yes; then
6880 cat >>confdefs.h <<_ACEOF
6881 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6888 ac_config_files="$ac_config_files Makefile src/Makefile"
6890 cat >confcache <<\_ACEOF
6891 # This file is a shell script that caches the results of configure
6892 # tests run on this system so they can be shared between configure
6893 # scripts and configure runs, see configure's option --config-cache.
6894 # It is not useful on other systems. If it contains results you don't
6895 # want to keep, you may remove or edit it.
6897 # config.status only pays attention to the cache file if you give it
6898 # the --recheck option to rerun configure.
6900 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6901 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6906 # The following way of writing the cache mishandles newlines in values,
6907 # but we know of no workaround that is simple, portable, and efficient.
6908 # So, we kill variables containing newlines.
6909 # Ultrix sh set writes to stderr and can't be redirected directly,
6910 # and sets the high bit in the cache file unless we assign to the vars.
6912 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6913 eval ac_val=\$$ac_var
6917 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
6918 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
6921 _ | IFS | as_nl) ;; #(
6922 *) $as_unset $ac_var ;;
6928 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6929 *${as_nl}ac_space=\ *)
6930 # `set' does not quote correctly, so add quotes (double-quote
6931 # substitution turns \\\\ into \\, and sed turns \\ into \).
6934 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6937 # `set' quotes correctly as required by POSIX, so do not add quotes.
6938 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6947 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6949 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6951 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6952 if test -w "$cache_file"; then
6953 test "x$cache_file" != "x/dev/null" &&
6954 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
6955 echo "$as_me: updating cache $cache_file" >&6;}
6956 cat confcache >$cache_file
6958 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
6959 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6964 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6965 # Let make expand exec_prefix.
6966 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6968 DEFS=-DHAVE_CONFIG_H
6972 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6973 # 1. Remove the extension, and $U if already installed.
6974 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6975 ac_i=`echo "$ac_i" | sed "$ac_script"`
6976 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6977 # will be set to the directory where LIBOBJS objects are built.
6978 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6979 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
6983 LTLIBOBJS=$ac_ltlibobjs
6986 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6987 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6988 Usually this means the macro was only invoked conditionally." >&5
6989 echo "$as_me: error: conditional \"AMDEP\" was never defined.
6990 Usually this means the macro was only invoked conditionally." >&2;}
6991 { (exit 1); exit 1; }; }
6993 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
6994 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
6995 Usually this means the macro was only invoked conditionally." >&5
6996 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
6997 Usually this means the macro was only invoked conditionally." >&2;}
6998 { (exit 1); exit 1; }; }
7000 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7001 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
7002 Usually this means the macro was only invoked conditionally." >&5
7003 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
7004 Usually this means the macro was only invoked conditionally." >&2;}
7005 { (exit 1); exit 1; }; }
7008 : ${CONFIG_STATUS=./config.status}
7009 ac_clean_files_save=$ac_clean_files
7010 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7011 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7012 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7013 cat >$CONFIG_STATUS <<_ACEOF
7015 # Generated by $as_me.
7016 # Run this file to recreate the current configuration.
7017 # Compiler output produced by configure, useful for debugging
7018 # configure, is in config.log if it exists.
7023 SHELL=\${CONFIG_SHELL-$SHELL}
7026 cat >>$CONFIG_STATUS <<\_ACEOF
7027 ## --------------------- ##
7028 ## M4sh Initialization. ##
7029 ## --------------------- ##
7031 # Be more Bourne compatible
7032 DUALCASE=1; export DUALCASE # for MKS sh
7033 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7036 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7037 # is contrary to our usage. Disable this feature.
7038 alias -g '${1+"$@"}'='"$@"'
7039 setopt NO_GLOB_SUBST
7041 case `(set -o) 2>/dev/null` in
7042 *posix*) set -o posix ;;
7051 # Avoid depending upon Character Ranges.
7052 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7053 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7054 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7055 as_cr_digits='0123456789'
7056 as_cr_alnum=$as_cr_Letters$as_cr_digits
7058 # The user is always right.
7059 if test "${PATH_SEPARATOR+set}" != set; then
7060 echo "#! /bin/sh" >conf$$.sh
7061 echo "exit 0" >>conf$$.sh
7063 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7071 # Support unset when possible.
7072 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7080 # We need space, tab and new line, in precisely that order. Quoting is
7081 # there to prevent editors from complaining about space-tab.
7082 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7083 # splitting by setting IFS to empty value.)
7088 # Find who we are. Look in the path if we contain no directory separator.
7090 *[\\/]* ) as_myself=$0 ;;
7091 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7095 test -z "$as_dir" && as_dir=.
7096 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7102 # We did not find ourselves, most probably we were run as `sh COMMAND'
7103 # in which case we are not to be found in the path.
7104 if test "x$as_myself" = x; then
7107 if test ! -f "$as_myself"; then
7108 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7109 { (exit 1); exit 1; }
7112 # Work around bugs in pre-3.0 UWIN ksh.
7113 for as_var in ENV MAIL MAILPATH
7114 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7122 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7123 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7124 LC_TELEPHONE LC_TIME
7126 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7127 eval $as_var=C; export $as_var
7129 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7133 # Required to use basename.
7134 if expr a : '\(a\)' >/dev/null 2>&1 &&
7135 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7141 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7142 as_basename=basename
7148 # Name of the executable.
7149 as_me=`$as_basename -- "$0" ||
7150 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7151 X"$0" : 'X\(//\)$' \| \
7152 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7154 sed '/^.*\/\([^/][^/]*\)\/*$/{
7175 test "x$as_lineno_1" != "x$as_lineno_2" &&
7176 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
7178 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7179 # uniformly replaced by the line number. The first 'sed' inserts a
7180 # line-number line after each line using $LINENO; the second 'sed'
7181 # does the real work. The second script uses 'N' to pair each
7182 # line-number line with the line containing $LINENO, and appends
7183 # trailing '-' during substitution so that $LINENO is not a special
7185 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7186 # scripts with optimization help from Paolo Bonzini. Blame Lee
7187 # E. McMahon (1931-1989) for sed's syntax. :-)
7199 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
7203 chmod +x "$as_me.lineno" ||
7204 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
7205 { (exit 1); exit 1; }; }
7207 # Don't try to exec as it changes $[0], causing all sort of problems
7208 # (the dirname of $[0] is not the place where we might find the
7209 # original and so on. Autoconf is especially sensitive to this).
7211 # Exit status is that of the last command.
7216 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7222 ECHO_C= ECHO_N= ECHO_T=
7225 case `echo 'x\c'` in
7226 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7233 if expr a : '\(a\)' >/dev/null 2>&1 &&
7234 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7240 rm -f conf$$ conf$$.exe conf$$.file
7241 if test -d conf$$.dir; then
7242 rm -f conf$$.dir/conf$$.file
7248 if ln -s conf$$.file conf$$ 2>/dev/null; then
7250 # ... but there are two gotchas:
7251 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7252 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7253 # In both cases, we have to default to `cp -p'.
7254 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7256 elif ln conf$$.file conf$$ 2>/dev/null; then
7261 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7262 rmdir conf$$.dir 2>/dev/null
7264 if mkdir -p . 2>/dev/null; then
7267 test -d ./-p && rmdir ./-p
7271 if test -x / >/dev/null 2>&1; then
7274 if ls -dL / >/dev/null 2>&1; then
7281 if test -d "$1"; then
7287 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
7288 ???[sx]*):;;*)false;;esac;fi
7292 as_executable_p=$as_test_x
7294 # Sed expression to map a string onto a valid CPP name.
7295 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7297 # Sed expression to map a string onto a valid variable name.
7298 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7303 # Save the log message, to keep $[0] and so on meaningful, and to
7304 # report actual input values of CONFIG_FILES etc. instead of their
7305 # values after options handling.
7307 This file was extended by stressapptest $as_me 1.0.0_autoconf, which was
7308 generated by GNU Autoconf 2.61. Invocation command line was
7310 CONFIG_FILES = $CONFIG_FILES
7311 CONFIG_HEADERS = $CONFIG_HEADERS
7312 CONFIG_LINKS = $CONFIG_LINKS
7313 CONFIG_COMMANDS = $CONFIG_COMMANDS
7316 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7321 cat >>$CONFIG_STATUS <<_ACEOF
7322 # Files that config.status was made for.
7323 config_files="$ac_config_files"
7324 config_headers="$ac_config_headers"
7325 config_commands="$ac_config_commands"
7329 cat >>$CONFIG_STATUS <<\_ACEOF
7331 \`$as_me' instantiates files from templates according to the
7332 current configuration.
7334 Usage: $0 [OPTIONS] [FILE]...
7336 -h, --help print this help, then exit
7337 -V, --version print version number and configuration settings, then exit
7338 -q, --quiet do not print progress messages
7339 -d, --debug don't remove temporary files
7340 --recheck update $as_me by reconfiguring in the same conditions
7341 --file=FILE[:TEMPLATE]
7342 instantiate the configuration file FILE
7343 --header=FILE[:TEMPLATE]
7344 instantiate the configuration header FILE
7346 Configuration files:
7349 Configuration headers:
7352 Configuration commands:
7355 Report bugs to <bug-autoconf@gnu.org>."
7358 cat >>$CONFIG_STATUS <<_ACEOF
7360 stressapptest config.status 1.0.0_autoconf
7361 configured by $0, generated by GNU Autoconf 2.61,
7362 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7364 Copyright (C) 2006 Free Software Foundation, Inc.
7365 This config.status script is free software; the Free Software Foundation
7366 gives unlimited permission to copy, distribute and modify it."
7374 cat >>$CONFIG_STATUS <<\_ACEOF
7375 # If no file are specified by the user, then we need to provide default
7376 # value. By we need to know if files were specified by the user.
7382 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7383 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7394 # Handling of the options.
7395 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7397 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7398 echo "$ac_cs_version"; exit ;;
7399 --debug | --debu | --deb | --de | --d | -d )
7401 --file | --fil | --fi | --f )
7403 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7404 ac_need_defaults=false;;
7405 --header | --heade | --head | --hea )
7407 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7408 ac_need_defaults=false;;
7410 # Conflict between --help and --header
7411 { echo "$as_me: error: ambiguous option: $1
7412 Try \`$0 --help' for more information." >&2
7413 { (exit 1); exit 1; }; };;
7414 --help | --hel | -h )
7415 echo "$ac_cs_usage"; exit ;;
7416 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7417 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7421 -*) { echo "$as_me: error: unrecognized option: $1
7422 Try \`$0 --help' for more information." >&2
7423 { (exit 1); exit 1; }; } ;;
7425 *) ac_config_targets="$ac_config_targets $1"
7426 ac_need_defaults=false ;;
7432 ac_configure_extra_args=
7434 if $ac_cs_silent; then
7436 ac_configure_extra_args="$ac_configure_extra_args --silent"
7440 cat >>$CONFIG_STATUS <<_ACEOF
7441 if \$ac_cs_recheck; then
7442 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7445 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7449 cat >>$CONFIG_STATUS <<\_ACEOF
7453 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7454 ## Running $as_me. ##
7460 cat >>$CONFIG_STATUS <<_ACEOF
7464 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7468 cat >>$CONFIG_STATUS <<\_ACEOF
7470 # Handling of arguments.
7471 for ac_config_target in $ac_config_targets
7473 case $ac_config_target in
7474 "src/stressapptest_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/stressapptest_config.h" ;;
7475 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7476 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7477 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
7479 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7480 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7481 { (exit 1); exit 1; }; };;
7486 # If the user did not use the arguments to specify the items to instantiate,
7487 # then the envvar interface is used. Set only those that are not.
7488 # We use the long form for the default assignment because of an extremely
7489 # bizarre bug on SunOS 4.1.3.
7490 if $ac_need_defaults; then
7491 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7492 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7493 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7496 # Have a temporary directory for convenience. Make it in the build tree
7497 # simply because there is no reason against having it here, and in addition,
7498 # creating and moving files from /tmp can sometimes cause problems.
7499 # Hook for its removal unless debugging.
7500 # Note that there is a small window in which the directory will not be cleaned:
7501 # after its creation but before its name has been assigned to `$tmp'.
7505 trap 'exit_status=$?
7506 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7508 trap '{ (exit 1); exit 1; }' 1 2 13 15
7510 # Create a (secure) tmp directory for tmp files.
7513 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7514 test -n "$tmp" && test -d "$tmp"
7517 tmp=./conf$$-$RANDOM
7518 (umask 077 && mkdir "$tmp")
7521 echo "$me: cannot create a temporary directory in ." >&2
7522 { (exit 1); exit 1; }
7526 # Set up the sed scripts for CONFIG_FILES section.
7529 # No need to generate the scripts if there are no CONFIG_FILES.
7530 # This happens for instance when ./config.status config.h
7531 if test -n "$CONFIG_FILES"; then
7538 for ac_last_try in false false false false false :; do
7539 cat >conf$$subs.sed <<_ACEOF
7540 SHELL!$SHELL$ac_delim
7541 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
7542 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
7543 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
7544 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
7545 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
7546 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
7547 exec_prefix!$exec_prefix$ac_delim
7548 prefix!$prefix$ac_delim
7549 program_transform_name!$program_transform_name$ac_delim
7550 bindir!$bindir$ac_delim
7551 sbindir!$sbindir$ac_delim
7552 libexecdir!$libexecdir$ac_delim
7553 datarootdir!$datarootdir$ac_delim
7554 datadir!$datadir$ac_delim
7555 sysconfdir!$sysconfdir$ac_delim
7556 sharedstatedir!$sharedstatedir$ac_delim
7557 localstatedir!$localstatedir$ac_delim
7558 includedir!$includedir$ac_delim
7559 oldincludedir!$oldincludedir$ac_delim
7560 docdir!$docdir$ac_delim
7561 infodir!$infodir$ac_delim
7562 htmldir!$htmldir$ac_delim
7563 dvidir!$dvidir$ac_delim
7564 pdfdir!$pdfdir$ac_delim
7565 psdir!$psdir$ac_delim
7566 libdir!$libdir$ac_delim
7567 localedir!$localedir$ac_delim
7568 mandir!$mandir$ac_delim
7570 ECHO_C!$ECHO_C$ac_delim
7571 ECHO_N!$ECHO_N$ac_delim
7572 ECHO_T!$ECHO_T$ac_delim
7574 build_alias!$build_alias$ac_delim
7575 host_alias!$host_alias$ac_delim
7576 target_alias!$target_alias$ac_delim
7577 build!$build$ac_delim
7578 build_cpu!$build_cpu$ac_delim
7579 build_vendor!$build_vendor$ac_delim
7580 build_os!$build_os$ac_delim
7582 host_cpu!$host_cpu$ac_delim
7583 host_vendor!$host_vendor$ac_delim
7584 host_os!$host_os$ac_delim
7585 target!$target$ac_delim
7586 target_cpu!$target_cpu$ac_delim
7587 target_vendor!$target_vendor$ac_delim
7588 target_os!$target_os$ac_delim
7589 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
7590 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
7591 INSTALL_DATA!$INSTALL_DATA$ac_delim
7592 am__isrc!$am__isrc$ac_delim
7593 CYGPATH_W!$CYGPATH_W$ac_delim
7594 PACKAGE!$PACKAGE$ac_delim
7595 VERSION!$VERSION$ac_delim
7596 ACLOCAL!$ACLOCAL$ac_delim
7597 AUTOCONF!$AUTOCONF$ac_delim
7598 AUTOMAKE!$AUTOMAKE$ac_delim
7599 AUTOHEADER!$AUTOHEADER$ac_delim
7600 MAKEINFO!$MAKEINFO$ac_delim
7601 install_sh!$install_sh$ac_delim
7602 STRIP!$STRIP$ac_delim
7603 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
7604 mkdir_p!$mkdir_p$ac_delim
7606 SET_MAKE!$SET_MAKE$ac_delim
7607 am__leading_dot!$am__leading_dot$ac_delim
7608 AMTAR!$AMTAR$ac_delim
7609 am__tar!$am__tar$ac_delim
7610 am__untar!$am__untar$ac_delim
7612 CXXFLAGS!$CXXFLAGS$ac_delim
7613 LDFLAGS!$LDFLAGS$ac_delim
7614 CPPFLAGS!$CPPFLAGS$ac_delim
7615 ac_ct_CXX!$ac_ct_CXX$ac_delim
7616 EXEEXT!$EXEEXT$ac_delim
7617 OBJEXT!$OBJEXT$ac_delim
7618 DEPDIR!$DEPDIR$ac_delim
7619 am__include!$am__include$ac_delim
7620 am__quote!$am__quote$ac_delim
7621 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
7622 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
7623 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
7624 CXXDEPMODE!$CXXDEPMODE$ac_delim
7625 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
7626 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
7628 CFLAGS!$CFLAGS$ac_delim
7629 ac_ct_CC!$ac_ct_CC$ac_delim
7630 CCDEPMODE!$CCDEPMODE$ac_delim
7631 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
7632 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
7635 EGREP!$EGREP$ac_delim
7636 LIBOBJS!$LIBOBJS$ac_delim
7639 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
7641 elif $ac_last_try; then
7642 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7643 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7644 { (exit 1); exit 1; }; }
7646 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7650 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
7651 if test -n "$ac_eof"; then
7652 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
7653 ac_eof=`expr $ac_eof + 1`
7656 cat >>$CONFIG_STATUS <<_ACEOF
7657 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
7658 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7661 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
7662 s/^/s,@/; s/!/@,|#_!!_#|/
7665 s/'"$ac_delim"'$/,g/; t
7667 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
7668 ' >>$CONFIG_STATUS <conf$$subs.sed
7669 rm -f conf$$subs.sed
7670 cat >>$CONFIG_STATUS <<_ACEOF
7676 for ac_last_try in false false false false false :; do
7677 cat >conf$$subs.sed <<_ACEOF
7678 LTLIBOBJS!$LTLIBOBJS$ac_delim
7681 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 1; then
7683 elif $ac_last_try; then
7684 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7685 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7686 { (exit 1); exit 1; }; }
7688 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7692 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
7693 if test -n "$ac_eof"; then
7694 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
7695 ac_eof=`expr $ac_eof + 1`
7698 cat >>$CONFIG_STATUS <<_ACEOF
7699 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
7700 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
7703 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
7704 s/^/s,@/; s/!/@,|#_!!_#|/
7707 s/'"$ac_delim"'$/,g/; t
7709 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
7710 ' >>$CONFIG_STATUS <conf$$subs.sed
7711 rm -f conf$$subs.sed
7712 cat >>$CONFIG_STATUS <<_ACEOF
7719 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7720 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7721 # trailing colons and then remove the whole line if VPATH becomes empty
7722 # (actually we leave an empty line to preserve line numbers).
7723 if test "x$srcdir" = x.; then
7724 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7728 s/^\([^=]*=[ ]*\):*/\1/
7734 cat >>$CONFIG_STATUS <<\_ACEOF
7735 fi # test -n "$CONFIG_FILES"
7738 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
7741 :[FHLC]) ac_mode=$ac_tag; continue;;
7743 case $ac_mode$ac_tag in
7745 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
7746 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
7747 { (exit 1); exit 1; }; };;
7748 :[FH]-) ac_tag=-:-;;
7749 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7766 -) ac_f="$tmp/stdin";;
7767 *) # Look for the file first in the build tree, then in the source tree
7768 # (if the path is not absolute). The absolute path cannot be DOS-style,
7769 # because $ac_f cannot contain `:'.
7773 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7775 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
7776 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7777 { (exit 1); exit 1; }; };;
7779 ac_file_inputs="$ac_file_inputs $ac_f"
7782 # Let's still pretend it is `configure' which instantiates (i.e., don't
7783 # use $as_me), people would be surprised to read:
7784 # /* config.h. Generated by config.status. */
7785 configure_input="Generated from "`IFS=:
7786 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
7787 if test x"$ac_file" != x-; then
7788 configure_input="$ac_file. $configure_input"
7789 { echo "$as_me:$LINENO: creating $ac_file" >&5
7790 echo "$as_me: creating $ac_file" >&6;}
7794 *:-:* | *:-) cat >"$tmp/stdin";;
7799 ac_dir=`$as_dirname -- "$ac_file" ||
7800 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7801 X"$ac_file" : 'X\(//\)[^/]' \| \
7802 X"$ac_file" : 'X\(//\)$' \| \
7803 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7805 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7824 -*) as_dir=./$as_dir;;
7826 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
7830 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
7831 *) as_qdir=$as_dir;;
7833 as_dirs="'$as_qdir' $as_dirs"
7834 as_dir=`$as_dirname -- "$as_dir" ||
7835 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7836 X"$as_dir" : 'X\(//\)[^/]' \| \
7837 X"$as_dir" : 'X\(//\)$' \| \
7838 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7840 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7857 test -d "$as_dir" && break
7859 test -z "$as_dirs" || eval "mkdir $as_dirs"
7860 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
7861 echo "$as_me: error: cannot create directory $as_dir" >&2;}
7862 { (exit 1); exit 1; }; }; }
7866 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7868 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7869 # A ".." for each directory in $ac_dir_suffix.
7870 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
7871 case $ac_top_builddir_sub in
7872 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7873 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7876 ac_abs_top_builddir=$ac_pwd
7877 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7878 # for backward compatibility:
7879 ac_top_builddir=$ac_top_build_prefix
7882 .) # We are building in place.
7884 ac_top_srcdir=$ac_top_builddir_sub
7885 ac_abs_top_srcdir=$ac_pwd ;;
7886 [\\/]* | ?:[\\/]* ) # Absolute name.
7887 ac_srcdir=$srcdir$ac_dir_suffix;
7888 ac_top_srcdir=$srcdir
7889 ac_abs_top_srcdir=$srcdir ;;
7891 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7892 ac_top_srcdir=$ac_top_build_prefix$srcdir
7893 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7895 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7905 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7906 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7910 [\\/$]* | ?:[\\/]* ) ;;
7911 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7915 cat >>$CONFIG_STATUS <<\_ACEOF
7916 # If the template does not know about datarootdir, expand it.
7917 # FIXME: This hack should be removed a few years after 2.60.
7918 ac_datarootdir_hack=; ac_datarootdir_seen=
7920 case `sed -n '/datarootdir/ {
7929 ' $ac_file_inputs` in
7930 *datarootdir*) ac_datarootdir_seen=yes;;
7931 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7932 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7933 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7935 cat >>$CONFIG_STATUS <<_ACEOF
7936 ac_datarootdir_hack='
7937 s&@datadir@&$datadir&g
7938 s&@docdir@&$docdir&g
7939 s&@infodir@&$infodir&g
7940 s&@localedir@&$localedir&g
7941 s&@mandir@&$mandir&g
7942 s&\\\${datarootdir}&$datarootdir&g' ;;
7946 # Neutralize VPATH when `$srcdir' = `.'.
7947 # Shell code in configure.ac might set extrasub.
7948 # FIXME: do we really want to maintain this feature?
7949 cat >>$CONFIG_STATUS <<_ACEOF
7953 cat >>$CONFIG_STATUS <<\_ACEOF
7955 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7956 s&@configure_input@&$configure_input&;t t
7957 s&@top_builddir@&$ac_top_builddir_sub&;t t
7958 s&@srcdir@&$ac_srcdir&;t t
7959 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7960 s&@top_srcdir@&$ac_top_srcdir&;t t
7961 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7962 s&@builddir@&$ac_builddir&;t t
7963 s&@abs_builddir@&$ac_abs_builddir&;t t
7964 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7965 s&@INSTALL@&$ac_INSTALL&;t t
7966 s&@MKDIR_P@&$ac_MKDIR_P&;t t
7967 $ac_datarootdir_hack
7968 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
7970 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7971 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7972 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7973 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7974 which seems to be undefined. Please make sure it is defined." >&5
7975 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7976 which seems to be undefined. Please make sure it is defined." >&2;}
7980 -) cat "$tmp/out"; rm -f "$tmp/out";;
7981 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
7990 # Transform confdefs.h into a sed script `conftest.defines', that
7991 # substitutes the proper values into config.h.in to produce config.h.
7992 rm -f conftest.defines conftest.tail
7993 # First, append a space to every undef/define line, to ease matching.
7994 echo 's/$/ /' >conftest.defines
7995 # Then, protect against being on the right side of a sed subst, or in
7996 # an unquoted here document, in config.status. If some macros were
7997 # called several times there might be several #defines for the same
7998 # symbol, which is useless. But do not sort them, since the last
7999 # AC_DEFINE must be honored.
8000 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8001 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
8002 # NAME is the cpp macro being defined, VALUE is the value it is being given.
8003 # PARAMS is the parameter list in the macro definition--in most cases, it's
8004 # just an empty string.
8005 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
8006 ac_dB='\\)[ (].*,\\1define\\2'
8014 s/^[ ]*#[ ]*define[ ][ ]*//
8019 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
8020 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
8021 ' >>conftest.defines
8023 # Remove the space that was appended to ease matching.
8024 # Then replace #undef with comments. This is necessary, for
8025 # example, in the case of _POSIX_SOURCE, which is predefined and required
8026 # on some systems where configure will not decide to define it.
8027 # (The regexp can be short, since the line contains either #define or #undef.)
8029 s,^[ #]*u.*,/* & */,' >>conftest.defines
8031 # Break up conftest.defines:
8034 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
8035 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
8036 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
8038 ac_in='$ac_file_inputs'
8039 ac_out='"$tmp/out1"'
8040 ac_nxt='"$tmp/out2"'
8044 # Write a here document:
8045 cat >>$CONFIG_STATUS <<_ACEOF
8046 # First, check the format of the line:
8047 cat >"\$tmp/defines.sed" <<\\CEOF
8048 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
8049 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
8053 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
8055 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
8056 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
8057 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
8058 grep . conftest.tail >/dev/null || break
8059 rm -f conftest.defines
8060 mv conftest.tail conftest.defines
8062 rm -f conftest.defines conftest.tail
8064 echo "ac_result=$ac_in" >>$CONFIG_STATUS
8065 cat >>$CONFIG_STATUS <<\_ACEOF
8066 if test x"$ac_file" != x-; then
8067 echo "/* $configure_input */" >"$tmp/config.h"
8068 cat "$ac_result" >>"$tmp/config.h"
8069 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
8070 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8071 echo "$as_me: $ac_file is unchanged" >&6;}
8074 mv "$tmp/config.h" $ac_file
8077 echo "/* $configure_input */"
8081 # Compute $ac_file's index in $config_headers.
8084 for _am_header in $config_headers :; do
8086 $_am_arg | $_am_arg:* )
8089 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8092 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
8093 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8094 X"$_am_arg" : 'X\(//\)[^/]' \| \
8095 X"$_am_arg" : 'X\(//\)$' \| \
8096 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
8098 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8114 s/.*/./; q'`/stamp-h$_am_stamp_count
8117 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
8118 echo "$as_me: executing $ac_file commands" >&6;}
8123 case $ac_file$ac_mode in
8124 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
8125 # Strip MF so we end up with the name of the file.
8126 mf=`echo "$mf" | sed -e 's/:.*$//'`
8127 # Check whether this is an Automake generated Makefile or not.
8128 # We used to match only the files named `Makefile.in', but
8129 # some people rename them; so instead we look at the file content.
8130 # Grep'ing the first line is not enough: some people post-process
8131 # each Makefile.in and add a new line on top of each file to say so.
8132 # Grep'ing the whole file is not good either: AIX grep has a line
8133 # limit of 2048, but all sed's we know have understand at least 4000.
8134 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
8135 dirpart=`$as_dirname -- "$mf" ||
8136 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8137 X"$mf" : 'X\(//\)[^/]' \| \
8138 X"$mf" : 'X\(//\)$' \| \
8139 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8141 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8161 # Extract the definition of DEPDIR, am__include, and am__quote
8162 # from the Makefile without running `make'.
8163 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8164 test -z "$DEPDIR" && continue
8165 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8166 test -z "am__include" && continue
8167 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8168 # When using ansi2knr, U may be empty or an underscore; expand it
8169 U=`sed -n 's/^U = //p' < "$mf"`
8170 # Find all dependency output files, they are included files with
8171 # $(DEPDIR) in their names. We invoke sed twice because it is the
8172 # simplest approach to changing $(DEPDIR) to its actual value in the
8174 for file in `sed -n "
8175 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8176 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8177 # Make sure the directory exists.
8178 test -f "$dirpart/$file" && continue
8179 fdir=`$as_dirname -- "$file" ||
8180 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8181 X"$file" : 'X\(//\)[^/]' \| \
8182 X"$file" : 'X\(//\)$' \| \
8183 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8202 { as_dir=$dirpart/$fdir
8204 -*) as_dir=./$as_dir;;
8206 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8210 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
8211 *) as_qdir=$as_dir;;
8213 as_dirs="'$as_qdir' $as_dirs"
8214 as_dir=`$as_dirname -- "$as_dir" ||
8215 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8216 X"$as_dir" : 'X\(//\)[^/]' \| \
8217 X"$as_dir" : 'X\(//\)$' \| \
8218 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8237 test -d "$as_dir" && break
8239 test -z "$as_dirs" || eval "mkdir $as_dirs"
8240 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8241 echo "$as_me: error: cannot create directory $as_dir" >&2;}
8242 { (exit 1); exit 1; }; }; }
8243 # echo "creating $dirpart/$file"
8244 echo '# dummy' > "$dirpart/$file"
8253 { (exit 0); exit 0; }
8255 chmod +x $CONFIG_STATUS
8256 ac_clean_files=$ac_clean_files_save
8259 # configure is writing to config.log, and then calls config.status.
8260 # config.status does its own redirection, appending to config.log.
8261 # Unfortunately, on DOS this fails, as config.log is still kept open
8262 # by configure, so config.status won't be able to write to it; its
8263 # output is simply discarded. So we exec the FD to /dev/null,
8264 # effectively closing config.log, so it can be properly (re)opened and
8265 # appended to by config.status. When coming back to configure, we
8266 # need to make the FD available again.
8267 if test "$no_create" != yes; then
8269 ac_config_status_args=
8270 test "$silent" = yes &&
8271 ac_config_status_args="$ac_config_status_args --quiet"
8273 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8275 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8276 # would make configure fail if this is the last instruction.
8277 $ac_cs_success || { (exit 1); exit 1; }