2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for nettle 2.1.
5 # Report bugs to <nettle-bugs@lists.lysator.liu.se>.
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='nettle'
576 PACKAGE_TARNAME='nettle'
577 PACKAGE_VERSION='2.1'
578 PACKAGE_STRING='nettle 2.1'
579 PACKAGE_BUGREPORT='nettle-bugs@lists.lysator.liu.se'
581 ac_unique_file="arcfour.c"
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
689 ASM_MARK_NOEXEC_STACK
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 nettle 2.1 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/nettle]
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 --build=BUILD configure for building on BUILD [guessed]
1290 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1294 if test -n "$ac_init_help"; then
1295 case $ac_init_help in
1296 short | recursive ) echo "Configuration of nettle 2.1:";;
1301 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1302 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1303 --disable-public-key Disable public key algorithms
1304 --disable-assembler Disable assembler code
1305 --enable-shared Build a shared library
1306 --disable-pic Do not try to compile library files as position
1308 --disable-openssl Do not include openssl glue in the benchmark program
1309 --disable-dependency-tracking
1310 Disable dependency tracking. Dependency tracking
1311 doesn't work with BSD make
1314 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1315 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1316 --with-include-path A colon-separated list of directories to search for
1318 --with-lib-path A colon-separated list of directories to search for
1321 Some influential environment variables:
1322 CC C compiler command
1323 CFLAGS C compiler flags
1324 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1325 nonstandard directory <lib dir>
1326 LIBS libraries to pass to the linker, e.g. -l<library>
1327 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1328 you have headers in a nonstandard directory <include dir>
1329 CXX C++ compiler command
1330 CXXFLAGS C++ compiler flags
1333 Use these variables to override the choices made by `configure' or to help
1334 it to find libraries and programs with nonstandard names/locations.
1336 Report bugs to <nettle-bugs@lists.lysator.liu.se>.
1341 if test "$ac_init_help" = "recursive"; then
1342 # If there are subdirs, report their specific --help.
1343 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1344 test -d "$ac_dir" || continue
1348 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1350 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1351 # A ".." for each directory in $ac_dir_suffix.
1352 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1353 case $ac_top_builddir_sub in
1354 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1355 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1358 ac_abs_top_builddir=$ac_pwd
1359 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1360 # for backward compatibility:
1361 ac_top_builddir=$ac_top_build_prefix
1364 .) # We are building in place.
1366 ac_top_srcdir=$ac_top_builddir_sub
1367 ac_abs_top_srcdir=$ac_pwd ;;
1368 [\\/]* | ?:[\\/]* ) # Absolute name.
1369 ac_srcdir=$srcdir$ac_dir_suffix;
1370 ac_top_srcdir=$srcdir
1371 ac_abs_top_srcdir=$srcdir ;;
1373 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1374 ac_top_srcdir=$ac_top_build_prefix$srcdir
1375 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1377 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1379 cd "$ac_dir" || { ac_status=$?; continue; }
1380 # Check for guested configure.
1381 if test -f "$ac_srcdir/configure.gnu"; then
1383 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1384 elif test -f "$ac_srcdir/configure"; then
1386 $SHELL "$ac_srcdir/configure" --help=recursive
1388 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1390 cd "$ac_pwd" || { ac_status=$?; break; }
1394 test -n "$ac_init_help" && exit $ac_status
1395 if $ac_init_version; then
1397 nettle configure 2.1
1398 generated by GNU Autoconf 2.61
1400 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1401 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1402 This configure script is free software; the Free Software Foundation
1403 gives unlimited permission to copy, distribute and modify it.
1407 cat >config.log <<_ACEOF
1408 This file contains any messages produced by compilers while
1409 running configure, to aid debugging if configure makes a mistake.
1411 It was created by nettle $as_me 2.1, which was
1412 generated by GNU Autoconf 2.61. Invocation command line was
1424 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1425 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1426 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1427 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1428 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1430 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1431 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1433 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1434 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1435 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1436 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1437 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1438 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1439 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1447 test -z "$as_dir" && as_dir=.
1448 echo "PATH: $as_dir"
1464 # Keep a trace of the command line.
1465 # Strip out --no-create and --no-recursion so they do not pile up.
1466 # Strip out --silent because we don't want to record it for future runs.
1467 # Also quote any args containing shell meta-characters.
1468 # Make two passes to allow for proper duplicate-argument suppression.
1472 ac_must_keep_next=false
1478 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1479 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1480 | -silent | --silent | --silen | --sile | --sil)
1483 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1486 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1488 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1489 if test $ac_must_keep_next = true; then
1490 ac_must_keep_next=false # Got value, back to normal.
1493 *=* | --config-cache | -C | -disable-* | --disable-* \
1494 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1495 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1496 | -with-* | --with-* | -without-* | --without-* | --x)
1497 case "$ac_configure_args0 " in
1498 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1501 -* ) ac_must_keep_next=true ;;
1504 ac_configure_args="$ac_configure_args '$ac_arg'"
1509 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1510 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1512 # When interrupted or exit'd, cleanup temporary files, and complete
1513 # config.log. We remove comments because anyway the quotes in there
1514 # would cause problems or look ugly.
1515 # WARNING: Use '\'' to represent an apostrophe within the trap.
1516 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1517 trap 'exit_status=$?
1518 # Save into config.log some information that might help in debugging.
1523 ## ---------------- ##
1524 ## Cache variables. ##
1525 ## ---------------- ##
1528 # The following way of writing the cache mishandles newlines in values,
1530 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1531 eval ac_val=\$$ac_var
1535 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1536 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1539 _ | IFS | as_nl) ;; #(
1540 *) $as_unset $ac_var ;;
1545 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1546 *${as_nl}ac_space=\ *)
1548 "s/'\''/'\''\\\\'\'''\''/g;
1549 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1552 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1560 ## ----------------- ##
1561 ## Output variables. ##
1562 ## ----------------- ##
1565 for ac_var in $ac_subst_vars
1567 eval ac_val=\$$ac_var
1569 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1571 echo "$ac_var='\''$ac_val'\''"
1575 if test -n "$ac_subst_files"; then
1577 ## ------------------- ##
1578 ## File substitutions. ##
1579 ## ------------------- ##
1582 for ac_var in $ac_subst_files
1584 eval ac_val=\$$ac_var
1586 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1588 echo "$ac_var='\''$ac_val'\''"
1593 if test -s confdefs.h; then
1603 test "$ac_signal" != 0 &&
1604 echo "$as_me: caught signal $ac_signal"
1605 echo "$as_me: exit $exit_status"
1607 rm -f core *.core core.conftest.* &&
1608 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1611 for ac_signal in 1 2 13 15; do
1612 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1616 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1617 rm -f -r conftest* confdefs.h
1619 # Predefined preprocessor variables.
1621 cat >>confdefs.h <<_ACEOF
1622 #define PACKAGE_NAME "$PACKAGE_NAME"
1626 cat >>confdefs.h <<_ACEOF
1627 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1631 cat >>confdefs.h <<_ACEOF
1632 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1636 cat >>confdefs.h <<_ACEOF
1637 #define PACKAGE_STRING "$PACKAGE_STRING"
1641 cat >>confdefs.h <<_ACEOF
1642 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1646 # Let the site file select an alternate cache file if it wants to.
1647 # Prefer explicitly selected file to automatically selected ones.
1648 if test -n "$CONFIG_SITE"; then
1649 set x "$CONFIG_SITE"
1650 elif test "x$prefix" != xNONE; then
1651 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1653 set x "$ac_default_prefix/share/config.site" \
1654 "$ac_default_prefix/etc/config.site"
1659 if test -r "$ac_site_file"; then
1660 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1661 echo "$as_me: loading site script $ac_site_file" >&6;}
1662 sed 's/^/| /' "$ac_site_file" >&5
1667 if test -r "$cache_file"; then
1668 # Some versions of bash will fail to source /dev/null (special
1669 # files actually), so we avoid doing that.
1670 if test -f "$cache_file"; then
1671 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1672 echo "$as_me: loading cache $cache_file" >&6;}
1674 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1675 *) . "./$cache_file";;
1679 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1680 echo "$as_me: creating cache $cache_file" >&6;}
1684 # Check that the precious variables saved in the cache have kept the same
1686 ac_cache_corrupted=false
1687 for ac_var in $ac_precious_vars; do
1688 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1689 eval ac_new_set=\$ac_env_${ac_var}_set
1690 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1691 eval ac_new_val=\$ac_env_${ac_var}_value
1692 case $ac_old_set,$ac_new_set in
1694 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1695 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1696 ac_cache_corrupted=: ;;
1698 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1699 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1700 ac_cache_corrupted=: ;;
1703 if test "x$ac_old_val" != "x$ac_new_val"; then
1704 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1705 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1706 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1707 echo "$as_me: former value: $ac_old_val" >&2;}
1708 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1709 echo "$as_me: current value: $ac_new_val" >&2;}
1710 ac_cache_corrupted=:
1713 # Pass precious variables to config.status.
1714 if test "$ac_new_set" = set; then
1716 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1717 *) ac_arg=$ac_var=$ac_new_val ;;
1719 case " $ac_configure_args " in
1720 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1721 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1725 if $ac_cache_corrupted; then
1726 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1727 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1728 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1729 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1730 { (exit 1); exit 1; }; }
1758 ac_cpp='$CPP $CPPFLAGS'
1759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1766 # Needed to stop autoconf from looking for files in parent directories.
1768 for ac_dir in . "$srcdir"/.; do
1769 if test -f "$ac_dir/install-sh"; then
1771 ac_install_sh="$ac_aux_dir/install-sh -c"
1773 elif test -f "$ac_dir/install.sh"; then
1775 ac_install_sh="$ac_aux_dir/install.sh -c"
1777 elif test -f "$ac_dir/shtool"; then
1779 ac_install_sh="$ac_aux_dir/shtool install -c"
1783 if test -z "$ac_aux_dir"; then
1784 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
1785 echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
1786 { (exit 1); exit 1; }; }
1789 # These three variables are undocumented and unsupported,
1790 # and are intended to be withdrawn in a future Autoconf release.
1791 # They can cause serious problems if a builder's source tree is in a directory
1792 # whose full name contains unusual characters.
1793 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1794 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1795 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1799 ac_config_headers="$ac_config_headers config.h"
1808 # Make sure we can run config.sub.
1809 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1810 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1811 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1812 { (exit 1); exit 1; }; }
1814 { echo "$as_me:$LINENO: checking build system type" >&5
1815 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1816 if test "${ac_cv_build+set}" = set; then
1817 echo $ECHO_N "(cached) $ECHO_C" >&6
1819 ac_build_alias=$build_alias
1820 test "x$ac_build_alias" = x &&
1821 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1822 test "x$ac_build_alias" = x &&
1823 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1824 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1825 { (exit 1); exit 1; }; }
1826 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1827 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1828 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1829 { (exit 1); exit 1; }; }
1832 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1833 echo "${ECHO_T}$ac_cv_build" >&6; }
1834 case $ac_cv_build in
1836 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1837 echo "$as_me: error: invalid value of canonical build" >&2;}
1838 { (exit 1); exit 1; }; };;
1841 ac_save_IFS=$IFS; IFS='-'
1847 # Remember, the first character of IFS is used to create $*,
1848 # except with old shells:
1851 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1854 { echo "$as_me:$LINENO: checking host system type" >&5
1855 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1856 if test "${ac_cv_host+set}" = set; then
1857 echo $ECHO_N "(cached) $ECHO_C" >&6
1859 if test "x$host_alias" = x; then
1860 ac_cv_host=$ac_cv_build
1862 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1863 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1864 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1865 { (exit 1); exit 1; }; }
1869 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1870 echo "${ECHO_T}$ac_cv_host" >&6; }
1873 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1874 echo "$as_me: error: invalid value of canonical host" >&2;}
1875 { (exit 1); exit 1; }; };;
1878 ac_save_IFS=$IFS; IFS='-'
1884 # Remember, the first character of IFS is used to create $*,
1885 # except with old shells:
1888 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1892 # Command line options
1894 # Check whether --with-include-path was given.
1895 if test "${with_include_path+set}" = set; then
1896 withval=$with_include_path;
1898 with_include_path=''
1902 if test x$with_include_path != x ; then
1903 CPPFLAGS="$CPPFLAGS -I`echo $with_include_path | sed 's/:/ -I/g'`"
1907 # Check whether --with-lib-path was given.
1908 if test "${with_lib_path+set}" = set; then
1909 withval=$with_lib_path;
1915 if test x$with_lib_path != x ; then
1916 LDFLAGS="$LDFLAGS -L`echo $with_lib_path | sed 's/:/ -L/g'`"
1919 # Check whether --enable-public-key was given.
1920 if test "${enable_public_key+set}" = set; then
1921 enableval=$enable_public_key;
1923 enable_public_key=yes
1927 # Check whether --enable-assembler was given.
1928 if test "${enable_assembler+set}" = set; then
1929 enableval=$enable_assembler;
1931 enable_assembler=yes
1935 # Check whether --enable-shared was given.
1936 if test "${enable_shared+set}" = set; then
1937 enableval=$enable_shared;
1943 # Check whether --enable-pic was given.
1944 if test "${enable_pic+set}" = set; then
1945 enableval=$enable_pic;
1951 # Check whether --enable-openssl was given.
1952 if test "${enable_openssl+set}" = set; then
1953 enableval=$enable_openssl;
1959 { echo "$as_me:$LINENO: checking for -R flag" >&5
1960 echo $ECHO_N "checking for -R flag... $ECHO_C" >&6; }
1963 osf1*) RPATHFLAG="-rpath " ;;
1964 irix6.*|irix5.*) RPATHFLAG="-rpath " ;;
1966 if test "$TCC" = "yes"; then
1967 # tcc doesn't know about -R
1973 linux*) RPATHFLAG="-Wl,-rpath," ;;
1977 if test x$RPATHFLAG = x ; then
1978 { echo "$as_me:$LINENO: result: none" >&5
1979 echo "${ECHO_T}none" >&6; }
1981 { echo "$as_me:$LINENO: result: using $RPATHFLAG" >&5
1982 echo "${ECHO_T}using $RPATHFLAG" >&6; }
1985 RPATH_CANDIDATE_REAL_DIRS=''
1986 RPATH_CANDIDATE_DIRS=''
1988 { echo "$as_me:$LINENO: result: Searching for libraries" >&5
1989 echo "${ECHO_T}Searching for libraries" >&6; }
1991 for d in `echo $with_lib_path | sed 's/:/ /g'` \
1992 `echo $exec_prefix | sed "s@^NONE@$prefix/lib@g" | sed "s@^NONE@$ac_default_prefix/lib@g"` \
1993 /usr/local/lib /sw/local/lib /sw/lib \
1994 /usr/gnu/lib /opt/gnu/lib /sw/gnu/lib /usr/freeware/lib /usr/pkg/lib ; do
1995 { echo "$as_me:$LINENO: checking $d" >&5
1996 echo $ECHO_N "checking $d... $ECHO_C" >&6; }
1998 if test -d "$d/." ; then
1999 ac_real_dir=`cd $d && pwd`
2000 if test -n "$ac_real_dir" ; then
2002 for old in RPATH_CANDIDATE_REAL_DIRS ; do
2004 if test x$ac_real_dir = x$old ; then
2009 if test $ac_found = yes ; then
2010 { echo "$as_me:$LINENO: result: already added" >&5
2011 echo "${ECHO_T}already added" >&6; }
2013 { echo "$as_me:$LINENO: result: added" >&5
2014 echo "${ECHO_T}added" >&6; }
2015 # LDFLAGS="$LDFLAGS -L $d"
2016 RPATH_CANDIDATE_REAL_DIRS="$ac_real_dir $RPATH_CANDIDATE_REAL_DIRS"
2017 RPATH_CANDIDATE_DIRS="$d $RPATH_CANDIDATE_DIRS"
2021 if test $ac_exists = no ; then
2022 { echo "$as_me:$LINENO: result: not found" >&5
2023 echo "${ECHO_T}not found" >&6; }
2029 # Checks for programs.
2031 ac_cpp='$CPP $CPPFLAGS'
2032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2035 if test -n "$ac_tool_prefix"; then
2036 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2037 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2040 if test "${ac_cv_prog_CC+set}" = set; then
2041 echo $ECHO_N "(cached) $ECHO_C" >&6
2043 if test -n "$CC"; then
2044 ac_cv_prog_CC="$CC" # Let the user override the test.
2046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2050 test -z "$as_dir" && as_dir=.
2051 for ac_exec_ext in '' $ac_executable_extensions; do
2052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2053 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2064 if test -n "$CC"; then
2065 { echo "$as_me:$LINENO: result: $CC" >&5
2066 echo "${ECHO_T}$CC" >&6; }
2068 { echo "$as_me:$LINENO: result: no" >&5
2069 echo "${ECHO_T}no" >&6; }
2074 if test -z "$ac_cv_prog_CC"; then
2076 # Extract the first word of "gcc", so it can be a program name with args.
2077 set dummy gcc; ac_word=$2
2078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2080 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2081 echo $ECHO_N "(cached) $ECHO_C" >&6
2083 if test -n "$ac_ct_CC"; then
2084 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2090 test -z "$as_dir" && as_dir=.
2091 for ac_exec_ext in '' $ac_executable_extensions; do
2092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2093 ac_cv_prog_ac_ct_CC="gcc"
2094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2103 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2104 if test -n "$ac_ct_CC"; then
2105 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2106 echo "${ECHO_T}$ac_ct_CC" >&6; }
2108 { echo "$as_me:$LINENO: result: no" >&5
2109 echo "${ECHO_T}no" >&6; }
2112 if test "x$ac_ct_CC" = x; then
2115 case $cross_compiling:$ac_tool_warned in
2117 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2118 whose name does not start with the host triplet. If you think this
2119 configuration is useful to you, please write to autoconf@gnu.org." >&5
2120 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2121 whose name does not start with the host triplet. If you think this
2122 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2123 ac_tool_warned=yes ;;
2131 if test -z "$CC"; then
2132 if test -n "$ac_tool_prefix"; then
2133 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2134 set dummy ${ac_tool_prefix}cc; ac_word=$2
2135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2137 if test "${ac_cv_prog_CC+set}" = set; then
2138 echo $ECHO_N "(cached) $ECHO_C" >&6
2140 if test -n "$CC"; then
2141 ac_cv_prog_CC="$CC" # Let the user override the test.
2143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2147 test -z "$as_dir" && as_dir=.
2148 for ac_exec_ext in '' $ac_executable_extensions; do
2149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2150 ac_cv_prog_CC="${ac_tool_prefix}cc"
2151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2161 if test -n "$CC"; then
2162 { echo "$as_me:$LINENO: result: $CC" >&5
2163 echo "${ECHO_T}$CC" >&6; }
2165 { echo "$as_me:$LINENO: result: no" >&5
2166 echo "${ECHO_T}no" >&6; }
2172 if test -z "$CC"; then
2173 # Extract the first word of "cc", so it can be a program name with args.
2174 set dummy cc; ac_word=$2
2175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2177 if test "${ac_cv_prog_CC+set}" = set; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
2180 if test -n "$CC"; then
2181 ac_cv_prog_CC="$CC" # Let the user override the test.
2184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2188 test -z "$as_dir" && as_dir=.
2189 for ac_exec_ext in '' $ac_executable_extensions; do
2190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2191 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2192 ac_prog_rejected=yes
2196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2203 if test $ac_prog_rejected = yes; then
2204 # We found a bogon in the path, so make sure we never use it.
2205 set dummy $ac_cv_prog_CC
2207 if test $# != 0; then
2208 # We chose a different compiler from the bogus one.
2209 # However, it has the same basename, so the bogon will be chosen
2210 # first if we set CC to just the basename; use the full file name.
2212 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2218 if test -n "$CC"; then
2219 { echo "$as_me:$LINENO: result: $CC" >&5
2220 echo "${ECHO_T}$CC" >&6; }
2222 { echo "$as_me:$LINENO: result: no" >&5
2223 echo "${ECHO_T}no" >&6; }
2228 if test -z "$CC"; then
2229 if test -n "$ac_tool_prefix"; then
2230 for ac_prog in cl.exe
2232 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2233 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2236 if test "${ac_cv_prog_CC+set}" = set; then
2237 echo $ECHO_N "(cached) $ECHO_C" >&6
2239 if test -n "$CC"; then
2240 ac_cv_prog_CC="$CC" # Let the user override the test.
2242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2246 test -z "$as_dir" && as_dir=.
2247 for ac_exec_ext in '' $ac_executable_extensions; do
2248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2249 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2260 if test -n "$CC"; then
2261 { echo "$as_me:$LINENO: result: $CC" >&5
2262 echo "${ECHO_T}$CC" >&6; }
2264 { echo "$as_me:$LINENO: result: no" >&5
2265 echo "${ECHO_T}no" >&6; }
2269 test -n "$CC" && break
2272 if test -z "$CC"; then
2274 for ac_prog in cl.exe
2276 # Extract the first word of "$ac_prog", so it can be a program name with args.
2277 set dummy $ac_prog; ac_word=$2
2278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2280 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2281 echo $ECHO_N "(cached) $ECHO_C" >&6
2283 if test -n "$ac_ct_CC"; then
2284 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2290 test -z "$as_dir" && as_dir=.
2291 for ac_exec_ext in '' $ac_executable_extensions; do
2292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2293 ac_cv_prog_ac_ct_CC="$ac_prog"
2294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2303 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2304 if test -n "$ac_ct_CC"; then
2305 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2306 echo "${ECHO_T}$ac_ct_CC" >&6; }
2308 { echo "$as_me:$LINENO: result: no" >&5
2309 echo "${ECHO_T}no" >&6; }
2313 test -n "$ac_ct_CC" && break
2316 if test "x$ac_ct_CC" = x; then
2319 case $cross_compiling:$ac_tool_warned in
2321 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2322 whose name does not start with the host triplet. If you think this
2323 configuration is useful to you, please write to autoconf@gnu.org." >&5
2324 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2325 whose name does not start with the host triplet. If you think this
2326 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2327 ac_tool_warned=yes ;;
2336 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2337 See \`config.log' for more details." >&5
2338 echo "$as_me: error: no acceptable C compiler found in \$PATH
2339 See \`config.log' for more details." >&2;}
2340 { (exit 1); exit 1; }; }
2342 # Provide some information about the compiler.
2343 echo "$as_me:$LINENO: checking for C compiler version" >&5
2344 ac_compiler=`set X $ac_compile; echo $2`
2345 { (ac_try="$ac_compiler --version >&5"
2347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2348 *) ac_try_echo=$ac_try;;
2350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2351 (eval "$ac_compiler --version >&5") 2>&5
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); }
2355 { (ac_try="$ac_compiler -v >&5"
2357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2358 *) ac_try_echo=$ac_try;;
2360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2361 (eval "$ac_compiler -v >&5") 2>&5
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); }
2365 { (ac_try="$ac_compiler -V >&5"
2367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2368 *) ac_try_echo=$ac_try;;
2370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2371 (eval "$ac_compiler -V >&5") 2>&5
2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); }
2376 cat >conftest.$ac_ext <<_ACEOF
2379 cat confdefs.h >>conftest.$ac_ext
2380 cat >>conftest.$ac_ext <<_ACEOF
2381 /* end confdefs.h. */
2391 ac_clean_files_save=$ac_clean_files
2392 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2393 # Try to create an executable without -o first, disregard a.out.
2394 # It will help us diagnose broken compilers, and finding out an intuition
2396 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2397 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2398 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2400 # List of possible output files, starting from the most likely.
2401 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2402 # only as a last resort. b.out is created by i960 compilers.
2403 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2405 # The IRIX 6 linker writes into existing files which may not be
2406 # executable, retaining their permissions. Remove them first so a
2407 # subsequent execution test works.
2409 for ac_file in $ac_files
2412 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2413 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2418 if { (ac_try="$ac_link_default"
2420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2421 *) ac_try_echo=$ac_try;;
2423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2424 (eval "$ac_link_default") 2>&5
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); }; then
2428 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2429 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2430 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2431 # so that the user can short-circuit this test for compilers unknown to
2433 for ac_file in $ac_files ''
2435 test -f "$ac_file" || continue
2437 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2440 # We found the default executable, but exeext='' is most
2444 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2446 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2448 # We set ac_cv_exeext here because the later test for it is not
2449 # safe: cross compilers may not add the suffix if given an `-o'
2450 # argument, so we may need to know it at that point already.
2451 # Even if this section looks crufty: it has the advantage of
2458 test "$ac_cv_exeext" = no && ac_cv_exeext=
2464 { echo "$as_me:$LINENO: result: $ac_file" >&5
2465 echo "${ECHO_T}$ac_file" >&6; }
2466 if test -z "$ac_file"; then
2467 echo "$as_me: failed program was:" >&5
2468 sed 's/^/| /' conftest.$ac_ext >&5
2470 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2471 See \`config.log' for more details." >&5
2472 echo "$as_me: error: C compiler cannot create executables
2473 See \`config.log' for more details." >&2;}
2474 { (exit 77); exit 77; }; }
2477 ac_exeext=$ac_cv_exeext
2479 # Check that the compiler produces executables we can run. If not, either
2480 # the compiler is broken, or we cross compile.
2481 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2482 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2483 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2484 # If not cross compiling, check that we can run a simple program.
2485 if test "$cross_compiling" != yes; then
2486 if { ac_try='./$ac_file'
2487 { (case "(($ac_try" in
2488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2489 *) ac_try_echo=$ac_try;;
2491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2492 (eval "$ac_try") 2>&5
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); }; }; then
2498 if test "$cross_compiling" = maybe; then
2501 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2502 If you meant to cross compile, use \`--host'.
2503 See \`config.log' for more details." >&5
2504 echo "$as_me: error: cannot run C compiled programs.
2505 If you meant to cross compile, use \`--host'.
2506 See \`config.log' for more details." >&2;}
2507 { (exit 1); exit 1; }; }
2511 { echo "$as_me:$LINENO: result: yes" >&5
2512 echo "${ECHO_T}yes" >&6; }
2514 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2515 ac_clean_files=$ac_clean_files_save
2516 # Check that the compiler produces executables we can run. If not, either
2517 # the compiler is broken, or we cross compile.
2518 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2519 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2520 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2521 echo "${ECHO_T}$cross_compiling" >&6; }
2523 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2524 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2525 if { (ac_try="$ac_link"
2527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2528 *) ac_try_echo=$ac_try;;
2530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2531 (eval "$ac_link") 2>&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); }; then
2535 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2536 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2537 # work properly (i.e., refer to `conftest.exe'), while it won't with
2539 for ac_file in conftest.exe conftest conftest.*; do
2540 test -f "$ac_file" || continue
2542 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2543 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2549 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2550 See \`config.log' for more details." >&5
2551 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2552 See \`config.log' for more details." >&2;}
2553 { (exit 1); exit 1; }; }
2556 rm -f conftest$ac_cv_exeext
2557 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2558 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2560 rm -f conftest.$ac_ext
2561 EXEEXT=$ac_cv_exeext
2563 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2564 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2565 if test "${ac_cv_objext+set}" = set; then
2566 echo $ECHO_N "(cached) $ECHO_C" >&6
2568 cat >conftest.$ac_ext <<_ACEOF
2571 cat confdefs.h >>conftest.$ac_ext
2572 cat >>conftest.$ac_ext <<_ACEOF
2573 /* end confdefs.h. */
2583 rm -f conftest.o conftest.obj
2584 if { (ac_try="$ac_compile"
2586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2587 *) ac_try_echo=$ac_try;;
2589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2590 (eval "$ac_compile") 2>&5
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; then
2594 for ac_file in conftest.o conftest.obj conftest.*; do
2595 test -f "$ac_file" || continue;
2597 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2598 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2603 echo "$as_me: failed program was:" >&5
2604 sed 's/^/| /' conftest.$ac_ext >&5
2606 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2607 See \`config.log' for more details." >&5
2608 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2609 See \`config.log' for more details." >&2;}
2610 { (exit 1); exit 1; }; }
2613 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2615 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2616 echo "${ECHO_T}$ac_cv_objext" >&6; }
2617 OBJEXT=$ac_cv_objext
2619 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2620 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2621 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2622 echo $ECHO_N "(cached) $ECHO_C" >&6
2624 cat >conftest.$ac_ext <<_ACEOF
2627 cat confdefs.h >>conftest.$ac_ext
2628 cat >>conftest.$ac_ext <<_ACEOF
2629 /* end confdefs.h. */
2642 rm -f conftest.$ac_objext
2643 if { (ac_try="$ac_compile"
2645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2646 *) ac_try_echo=$ac_try;;
2648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2649 (eval "$ac_compile") 2>conftest.er1
2651 grep -v '^ *+' conftest.er1 >conftest.err
2653 cat conftest.err >&5
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); } && {
2656 test -z "$ac_c_werror_flag" ||
2657 test ! -s conftest.err
2658 } && test -s conftest.$ac_objext; then
2661 echo "$as_me: failed program was:" >&5
2662 sed 's/^/| /' conftest.$ac_ext >&5
2667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2668 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2671 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2672 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2673 GCC=`test $ac_compiler_gnu = yes && echo yes`
2674 ac_test_CFLAGS=${CFLAGS+set}
2675 ac_save_CFLAGS=$CFLAGS
2676 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2677 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2678 if test "${ac_cv_prog_cc_g+set}" = set; then
2679 echo $ECHO_N "(cached) $ECHO_C" >&6
2681 ac_save_c_werror_flag=$ac_c_werror_flag
2682 ac_c_werror_flag=yes
2685 cat >conftest.$ac_ext <<_ACEOF
2688 cat confdefs.h >>conftest.$ac_ext
2689 cat >>conftest.$ac_ext <<_ACEOF
2690 /* end confdefs.h. */
2700 rm -f conftest.$ac_objext
2701 if { (ac_try="$ac_compile"
2703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704 *) ac_try_echo=$ac_try;;
2706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2707 (eval "$ac_compile") 2>conftest.er1
2709 grep -v '^ *+' conftest.er1 >conftest.err
2711 cat conftest.err >&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); } && {
2714 test -z "$ac_c_werror_flag" ||
2715 test ! -s conftest.err
2716 } && test -s conftest.$ac_objext; then
2719 echo "$as_me: failed program was:" >&5
2720 sed 's/^/| /' conftest.$ac_ext >&5
2723 cat >conftest.$ac_ext <<_ACEOF
2726 cat confdefs.h >>conftest.$ac_ext
2727 cat >>conftest.$ac_ext <<_ACEOF
2728 /* end confdefs.h. */
2738 rm -f conftest.$ac_objext
2739 if { (ac_try="$ac_compile"
2741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2742 *) ac_try_echo=$ac_try;;
2744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2745 (eval "$ac_compile") 2>conftest.er1
2747 grep -v '^ *+' conftest.er1 >conftest.err
2749 cat conftest.err >&5
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); } && {
2752 test -z "$ac_c_werror_flag" ||
2753 test ! -s conftest.err
2754 } && test -s conftest.$ac_objext; then
2757 echo "$as_me: failed program was:" >&5
2758 sed 's/^/| /' conftest.$ac_ext >&5
2760 ac_c_werror_flag=$ac_save_c_werror_flag
2762 cat >conftest.$ac_ext <<_ACEOF
2765 cat confdefs.h >>conftest.$ac_ext
2766 cat >>conftest.$ac_ext <<_ACEOF
2767 /* end confdefs.h. */
2777 rm -f conftest.$ac_objext
2778 if { (ac_try="$ac_compile"
2780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2781 *) ac_try_echo=$ac_try;;
2783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2784 (eval "$ac_compile") 2>conftest.er1
2786 grep -v '^ *+' conftest.er1 >conftest.err
2788 cat conftest.err >&5
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); } && {
2791 test -z "$ac_c_werror_flag" ||
2792 test ! -s conftest.err
2793 } && test -s conftest.$ac_objext; then
2796 echo "$as_me: failed program was:" >&5
2797 sed 's/^/| /' conftest.$ac_ext >&5
2802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2809 ac_c_werror_flag=$ac_save_c_werror_flag
2811 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2812 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2813 if test "$ac_test_CFLAGS" = set; then
2814 CFLAGS=$ac_save_CFLAGS
2815 elif test $ac_cv_prog_cc_g = yes; then
2816 if test "$GCC" = yes; then
2822 if test "$GCC" = yes; then
2828 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2829 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2830 if test "${ac_cv_prog_cc_c89+set}" = set; then
2831 echo $ECHO_N "(cached) $ECHO_C" >&6
2833 ac_cv_prog_cc_c89=no
2835 cat >conftest.$ac_ext <<_ACEOF
2838 cat confdefs.h >>conftest.$ac_ext
2839 cat >>conftest.$ac_ext <<_ACEOF
2840 /* end confdefs.h. */
2843 #include <sys/types.h>
2844 #include <sys/stat.h>
2845 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2846 struct buf { int x; };
2847 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2848 static char *e (p, i)
2854 static char *f (char * (*g) (char **, int), char **p, ...)
2859 s = g (p, va_arg (v,int));
2864 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2865 function prototypes and stuff, but not '\xHH' hex character constants.
2866 These don't provoke an error unfortunately, instead are silently treated
2867 as 'x'. The following induces an error, until -std is added to get
2868 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2869 array size at least. It's necessary to write '\x00'==0 to get something
2870 that's true only with -std. */
2871 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2873 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2874 inside strings and character constants. */
2876 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2878 int test (int i, double x);
2879 struct s1 {int (*f) (int a);};
2880 struct s2 {int (*f) (double a);};
2881 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2887 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2892 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2893 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2895 CC="$ac_save_CC $ac_arg"
2896 rm -f conftest.$ac_objext
2897 if { (ac_try="$ac_compile"
2899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2900 *) ac_try_echo=$ac_try;;
2902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2903 (eval "$ac_compile") 2>conftest.er1
2905 grep -v '^ *+' conftest.er1 >conftest.err
2907 cat conftest.err >&5
2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); } && {
2910 test -z "$ac_c_werror_flag" ||
2911 test ! -s conftest.err
2912 } && test -s conftest.$ac_objext; then
2913 ac_cv_prog_cc_c89=$ac_arg
2915 echo "$as_me: failed program was:" >&5
2916 sed 's/^/| /' conftest.$ac_ext >&5
2921 rm -f core conftest.err conftest.$ac_objext
2922 test "x$ac_cv_prog_cc_c89" != "xno" && break
2924 rm -f conftest.$ac_ext
2929 case "x$ac_cv_prog_cc_c89" in
2931 { echo "$as_me:$LINENO: result: none needed" >&5
2932 echo "${ECHO_T}none needed" >&6; } ;;
2934 { echo "$as_me:$LINENO: result: unsupported" >&5
2935 echo "${ECHO_T}unsupported" >&6; } ;;
2937 CC="$CC $ac_cv_prog_cc_c89"
2938 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2939 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2944 ac_cpp='$CPP $CPPFLAGS'
2945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2950 # When $CC foo.c -o foo creates both foo and foo.exe, autoconf picks
2951 # up the foo.exe and sets exeext to .exe. That is correct for cygwin,
2952 # which has some kind of magic link from foo to foo.exe, but not for
2953 # rntcl. A better check for the cygwin case would check if the
2954 # contents of foo and foo.exe are equal; in the rntcl case, foo is a
2955 # sh script, and foo.exe is a windows executable.
2957 if test "x$CC" = xrntcl ; then
2958 { echo "$as_me:$LINENO: Compiling with rntcl; clearing EXEEXT and disabling assembler" >&5
2959 echo "$as_me: Compiling with rntcl; clearing EXEEXT and disabling assembler" >&6;}
2966 # Used by the testsuite only
2968 ac_cpp='$CXXCPP $CPPFLAGS'
2969 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2970 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2971 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2972 if test -z "$CXX"; then
2973 if test -n "$CCC"; then
2976 if test -n "$ac_tool_prefix"; then
2977 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2979 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2980 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2983 if test "${ac_cv_prog_CXX+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2986 if test -n "$CXX"; then
2987 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993 test -z "$as_dir" && as_dir=.
2994 for ac_exec_ext in '' $ac_executable_extensions; do
2995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2996 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3007 if test -n "$CXX"; then
3008 { echo "$as_me:$LINENO: result: $CXX" >&5
3009 echo "${ECHO_T}$CXX" >&6; }
3011 { echo "$as_me:$LINENO: result: no" >&5
3012 echo "${ECHO_T}no" >&6; }
3016 test -n "$CXX" && break
3019 if test -z "$CXX"; then
3021 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3023 # Extract the first word of "$ac_prog", so it can be a program name with args.
3024 set dummy $ac_prog; ac_word=$2
3025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3027 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3028 echo $ECHO_N "(cached) $ECHO_C" >&6
3030 if test -n "$ac_ct_CXX"; then
3031 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037 test -z "$as_dir" && as_dir=.
3038 for ac_exec_ext in '' $ac_executable_extensions; do
3039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3040 ac_cv_prog_ac_ct_CXX="$ac_prog"
3041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3050 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3051 if test -n "$ac_ct_CXX"; then
3052 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3053 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3055 { echo "$as_me:$LINENO: result: no" >&5
3056 echo "${ECHO_T}no" >&6; }
3060 test -n "$ac_ct_CXX" && break
3063 if test "x$ac_ct_CXX" = x; then
3066 case $cross_compiling:$ac_tool_warned in
3068 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3069 whose name does not start with the host triplet. If you think this
3070 configuration is useful to you, please write to autoconf@gnu.org." >&5
3071 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3072 whose name does not start with the host triplet. If you think this
3073 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3074 ac_tool_warned=yes ;;
3082 # Provide some information about the compiler.
3083 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3084 ac_compiler=`set X $ac_compile; echo $2`
3085 { (ac_try="$ac_compiler --version >&5"
3087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088 *) ac_try_echo=$ac_try;;
3090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3091 (eval "$ac_compiler --version >&5") 2>&5
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); }
3095 { (ac_try="$ac_compiler -v >&5"
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101 (eval "$ac_compiler -v >&5") 2>&5
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }
3105 { (ac_try="$ac_compiler -V >&5"
3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3111 (eval "$ac_compiler -V >&5") 2>&5
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); }
3116 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3117 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3118 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3119 echo $ECHO_N "(cached) $ECHO_C" >&6
3121 cat >conftest.$ac_ext <<_ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h. */
3139 rm -f conftest.$ac_objext
3140 if { (ac_try="$ac_compile"
3142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3143 *) ac_try_echo=$ac_try;;
3145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3146 (eval "$ac_compile") 2>conftest.er1
3148 grep -v '^ *+' conftest.er1 >conftest.err
3150 cat conftest.err >&5
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); } && {
3153 test -z "$ac_cxx_werror_flag" ||
3154 test ! -s conftest.err
3155 } && test -s conftest.$ac_objext; then
3158 echo "$as_me: failed program was:" >&5
3159 sed 's/^/| /' conftest.$ac_ext >&5
3164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3165 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3168 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3169 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3170 GXX=`test $ac_compiler_gnu = yes && echo yes`
3171 ac_test_CXXFLAGS=${CXXFLAGS+set}
3172 ac_save_CXXFLAGS=$CXXFLAGS
3173 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3174 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3175 if test "${ac_cv_prog_cxx_g+set}" = set; then
3176 echo $ECHO_N "(cached) $ECHO_C" >&6
3178 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3179 ac_cxx_werror_flag=yes
3182 cat >conftest.$ac_ext <<_ACEOF
3185 cat confdefs.h >>conftest.$ac_ext
3186 cat >>conftest.$ac_ext <<_ACEOF
3187 /* end confdefs.h. */
3197 rm -f conftest.$ac_objext
3198 if { (ac_try="$ac_compile"
3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201 *) ac_try_echo=$ac_try;;
3203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3204 (eval "$ac_compile") 2>conftest.er1
3206 grep -v '^ *+' conftest.er1 >conftest.err
3208 cat conftest.err >&5
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); } && {
3211 test -z "$ac_cxx_werror_flag" ||
3212 test ! -s conftest.err
3213 } && test -s conftest.$ac_objext; then
3214 ac_cv_prog_cxx_g=yes
3216 echo "$as_me: failed program was:" >&5
3217 sed 's/^/| /' conftest.$ac_ext >&5
3220 cat >conftest.$ac_ext <<_ACEOF
3223 cat confdefs.h >>conftest.$ac_ext
3224 cat >>conftest.$ac_ext <<_ACEOF
3225 /* end confdefs.h. */
3235 rm -f conftest.$ac_objext
3236 if { (ac_try="$ac_compile"
3238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3239 *) ac_try_echo=$ac_try;;
3241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3242 (eval "$ac_compile") 2>conftest.er1
3244 grep -v '^ *+' conftest.er1 >conftest.err
3246 cat conftest.err >&5
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); } && {
3249 test -z "$ac_cxx_werror_flag" ||
3250 test ! -s conftest.err
3251 } && test -s conftest.$ac_objext; then
3254 echo "$as_me: failed program was:" >&5
3255 sed 's/^/| /' conftest.$ac_ext >&5
3257 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3259 cat >conftest.$ac_ext <<_ACEOF
3262 cat confdefs.h >>conftest.$ac_ext
3263 cat >>conftest.$ac_ext <<_ACEOF
3264 /* end confdefs.h. */
3274 rm -f conftest.$ac_objext
3275 if { (ac_try="$ac_compile"
3277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278 *) ac_try_echo=$ac_try;;
3280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3281 (eval "$ac_compile") 2>conftest.er1
3283 grep -v '^ *+' conftest.er1 >conftest.err
3285 cat conftest.err >&5
3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287 (exit $ac_status); } && {
3288 test -z "$ac_cxx_werror_flag" ||
3289 test ! -s conftest.err
3290 } && test -s conftest.$ac_objext; then
3291 ac_cv_prog_cxx_g=yes
3293 echo "$as_me: failed program was:" >&5
3294 sed 's/^/| /' conftest.$ac_ext >&5
3299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3306 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3308 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3309 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3310 if test "$ac_test_CXXFLAGS" = set; then
3311 CXXFLAGS=$ac_save_CXXFLAGS
3312 elif test $ac_cv_prog_cxx_g = yes; then
3313 if test "$GXX" = yes; then
3319 if test "$GXX" = yes; then
3326 ac_cpp='$CPP $CPPFLAGS'
3327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3333 ac_cpp='$CXXCPP $CPPFLAGS'
3334 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3335 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3336 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3339 cat >conftest.$ac_ext <<_ACEOF
3342 cat confdefs.h >>conftest.$ac_ext
3343 cat >>conftest.$ac_ext <<_ACEOF
3344 /* end confdefs.h. */
3354 rm -f conftest.$ac_objext
3355 if { (ac_try="$ac_compile"
3357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358 *) ac_try_echo=$ac_try;;
3360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3361 (eval "$ac_compile") 2>conftest.er1
3363 grep -v '^ *+' conftest.er1 >conftest.err
3365 cat conftest.err >&5
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); } && {
3368 test -z "$ac_cxx_werror_flag" ||
3369 test ! -s conftest.err
3370 } && test -s conftest.$ac_objext; then
3371 CXX_TESTS='cxx-test$(EXEEXT)'
3373 echo "$as_me: failed program was:" >&5
3374 sed 's/^/| /' conftest.$ac_ext >&5
3379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3382 ac_cpp='$CPP $CPPFLAGS'
3383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3388 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3389 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3390 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3391 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3392 echo $ECHO_N "(cached) $ECHO_C" >&6
3394 cat >conftest.make <<\_ACEOF
3397 @echo '@@@%%%=$(MAKE)=@@@%%%'
3399 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3400 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3402 eval ac_cv_prog_make_${ac_make}_set=yes;;
3404 eval ac_cv_prog_make_${ac_make}_set=no;;
3408 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3409 { echo "$as_me:$LINENO: result: yes" >&5
3410 echo "${ECHO_T}yes" >&6; }
3413 { echo "$as_me:$LINENO: result: no" >&5
3414 echo "${ECHO_T}no" >&6; }
3415 SET_MAKE="MAKE=${MAKE-make}"
3418 if test -n "$ac_tool_prefix"; then
3419 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3420 set dummy ${ac_tool_prefix}ranlib; 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_RANLIB+set}" = set; then
3424 echo $ECHO_N "(cached) $ECHO_C" >&6
3426 if test -n "$RANLIB"; then
3427 ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${ac_tool_prefix}ranlib"
3437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3446 RANLIB=$ac_cv_prog_RANLIB
3447 if test -n "$RANLIB"; then
3448 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3449 echo "${ECHO_T}$RANLIB" >&6; }
3451 { echo "$as_me:$LINENO: result: no" >&5
3452 echo "${ECHO_T}no" >&6; }
3457 if test -z "$ac_cv_prog_RANLIB"; then
3458 ac_ct_RANLIB=$RANLIB
3459 # Extract the first word of "ranlib", so it can be a program name with args.
3460 set dummy ranlib; ac_word=$2
3461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3463 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3464 echo $ECHO_N "(cached) $ECHO_C" >&6
3466 if test -n "$ac_ct_RANLIB"; then
3467 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473 test -z "$as_dir" && as_dir=.
3474 for ac_exec_ext in '' $ac_executable_extensions; do
3475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3476 ac_cv_prog_ac_ct_RANLIB="ranlib"
3477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3486 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3487 if test -n "$ac_ct_RANLIB"; then
3488 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3489 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3491 { echo "$as_me:$LINENO: result: no" >&5
3492 echo "${ECHO_T}no" >&6; }
3495 if test "x$ac_ct_RANLIB" = x; then
3498 case $cross_compiling:$ac_tool_warned in
3500 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3501 whose name does not start with the host triplet. If you think this
3502 configuration is useful to you, please write to autoconf@gnu.org." >&5
3503 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3504 whose name does not start with the host triplet. If you think this
3505 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3506 ac_tool_warned=yes ;;
3508 RANLIB=$ac_ct_RANLIB
3511 RANLIB="$ac_cv_prog_RANLIB"
3514 if test -n "$ac_tool_prefix"; then
3515 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
3516 set dummy ${ac_tool_prefix}nm; ac_word=$2
3517 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3519 if test "${ac_cv_prog_NM+set}" = set; then
3520 echo $ECHO_N "(cached) $ECHO_C" >&6
3522 if test -n "$NM"; then
3523 ac_cv_prog_NM="$NM" # Let the user override the test.
3525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3529 test -z "$as_dir" && as_dir=.
3530 for ac_exec_ext in '' $ac_executable_extensions; do
3531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3532 ac_cv_prog_NM="${ac_tool_prefix}nm"
3533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3543 if test -n "$NM"; then
3544 { echo "$as_me:$LINENO: result: $NM" >&5
3545 echo "${ECHO_T}$NM" >&6; }
3547 { echo "$as_me:$LINENO: result: no" >&5
3548 echo "${ECHO_T}no" >&6; }
3553 if test -z "$ac_cv_prog_NM"; then
3555 # Extract the first word of "nm", so it can be a program name with args.
3556 set dummy nm; ac_word=$2
3557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3559 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
3560 echo $ECHO_N "(cached) $ECHO_C" >&6
3562 if test -n "$ac_ct_NM"; then
3563 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
3565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3569 test -z "$as_dir" && as_dir=.
3570 for ac_exec_ext in '' $ac_executable_extensions; do
3571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3572 ac_cv_prog_ac_ct_NM="nm"
3573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3582 ac_ct_NM=$ac_cv_prog_ac_ct_NM
3583 if test -n "$ac_ct_NM"; then
3584 { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
3585 echo "${ECHO_T}$ac_ct_NM" >&6; }
3587 { echo "$as_me:$LINENO: result: no" >&5
3588 echo "${ECHO_T}no" >&6; }
3591 if test "x$ac_ct_NM" = x; then
3594 case $cross_compiling:$ac_tool_warned in
3596 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3597 whose name does not start with the host triplet. If you think this
3598 configuration is useful to you, please write to autoconf@gnu.org." >&5
3599 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3600 whose name does not start with the host triplet. If you think this
3601 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3602 ac_tool_warned=yes ;;
3610 # Used only for the GNU-stack configure test.
3611 if test -n "$ac_tool_prefix"; then
3612 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3613 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3616 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
3617 echo $ECHO_N "(cached) $ECHO_C" >&6
3619 if test -n "$OBJDUMP"; then
3620 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3626 test -z "$as_dir" && as_dir=.
3627 for ac_exec_ext in '' $ac_executable_extensions; do
3628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3629 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3639 OBJDUMP=$ac_cv_prog_OBJDUMP
3640 if test -n "$OBJDUMP"; then
3641 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
3642 echo "${ECHO_T}$OBJDUMP" >&6; }
3644 { echo "$as_me:$LINENO: result: no" >&5
3645 echo "${ECHO_T}no" >&6; }
3650 if test -z "$ac_cv_prog_OBJDUMP"; then
3651 ac_ct_OBJDUMP=$OBJDUMP
3652 # Extract the first word of "objdump", so it can be a program name with args.
3653 set dummy objdump; ac_word=$2
3654 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3656 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
3657 echo $ECHO_N "(cached) $ECHO_C" >&6
3659 if test -n "$ac_ct_OBJDUMP"; then
3660 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
3662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3666 test -z "$as_dir" && as_dir=.
3667 for ac_exec_ext in '' $ac_executable_extensions; do
3668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3669 ac_cv_prog_ac_ct_OBJDUMP="objdump"
3670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3679 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
3680 if test -n "$ac_ct_OBJDUMP"; then
3681 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
3682 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
3684 { echo "$as_me:$LINENO: result: no" >&5
3685 echo "${ECHO_T}no" >&6; }
3688 if test "x$ac_ct_OBJDUMP" = x; then
3691 case $cross_compiling:$ac_tool_warned in
3693 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3694 whose name does not start with the host triplet. If you think this
3695 configuration is useful to you, please write to autoconf@gnu.org." >&5
3696 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3697 whose name does not start with the host triplet. If you think this
3698 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3699 ac_tool_warned=yes ;;
3701 OBJDUMP=$ac_ct_OBJDUMP
3704 OBJDUMP="$ac_cv_prog_OBJDUMP"
3708 if test "x$ac_cv_prog_cc_stdc" = xno ; then
3709 { { echo "$as_me:$LINENO: error: the C compiler doesn't handle ANSI-C" >&5
3710 echo "$as_me: error: the C compiler doesn't handle ANSI-C" >&2;}
3711 { (exit 1); exit 1; }; } #'
3714 # Find a good install program. We prefer a C program (faster),
3715 # so one script is as good as another. But avoid the broken or
3716 # incompatible versions:
3717 # SysV /etc/install, /usr/sbin/install
3718 # SunOS /usr/etc/install
3719 # IRIX /sbin/install
3721 # AmigaOS /C/install, which installs bootblocks on floppy discs
3722 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3723 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3724 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3725 # OS/2's system install, which has a completely different semantic
3726 # ./install, which can be erroneously created by make from ./install.sh.
3727 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3728 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3729 if test -z "$INSTALL"; then
3730 if test "${ac_cv_path_install+set}" = set; then
3731 echo $ECHO_N "(cached) $ECHO_C" >&6
3733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3737 test -z "$as_dir" && as_dir=.
3738 # Account for people who put trailing slashes in PATH elements.
3740 ./ | .// | /cC/* | \
3741 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3742 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3745 # OSF1 and SCO ODT 3.0 have their own names for install.
3746 # Don't use installbsd from OSF since it installs stuff as root
3748 for ac_prog in ginstall scoinst install; do
3749 for ac_exec_ext in '' $ac_executable_extensions; do
3750 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3751 if test $ac_prog = install &&
3752 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3753 # AIX install. It has an incompatible calling convention.
3755 elif test $ac_prog = install &&
3756 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3757 # program-specific install script used by HP pwplus--don't use.
3760 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3773 if test "${ac_cv_path_install+set}" = set; then
3774 INSTALL=$ac_cv_path_install
3776 # As a last resort, use the slow shell script. Don't cache a
3777 # value for INSTALL within a source directory, because that will
3778 # break other packages using the cache if that directory is
3779 # removed, or if the value is a relative name.
3780 INSTALL=$ac_install_sh
3783 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3784 echo "${ECHO_T}$INSTALL" >&6; }
3786 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3787 # It thinks the first close brace ends the variable substitution.
3788 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3790 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3792 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3795 # According to the autoconf manual, needs install-sh from
3796 # autoconf-2.60 or automake-1.10 to avoid races.
3797 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3798 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
3799 if test -z "$MKDIR_P"; then
3800 if test "${ac_cv_path_mkdir+set}" = set; then
3801 echo $ECHO_N "(cached) $ECHO_C" >&6
3803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3804 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3807 test -z "$as_dir" && as_dir=.
3808 for ac_prog in mkdir gmkdir; do
3809 for ac_exec_ext in '' $ac_executable_extensions; do
3810 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3811 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3812 'mkdir (GNU coreutils) '* | \
3813 'mkdir (coreutils) '* | \
3814 'mkdir (fileutils) '4.1*)
3815 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3825 if test "${ac_cv_path_mkdir+set}" = set; then
3826 MKDIR_P="$ac_cv_path_mkdir -p"
3828 # As a last resort, use the slow shell script. Don't cache a
3829 # value for MKDIR_P within a source directory, because that will
3830 # break other packages using the cache if that directory is
3831 # removed, or if the value is a relative name.
3832 test -d ./--version && rmdir ./--version
3833 MKDIR_P="$ac_install_sh -d"
3836 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3837 echo "${ECHO_T}$MKDIR_P" >&6; }
3840 # Check whether --enable-dependency_tracking was given.
3841 if test "${enable_dependency_tracking+set}" = set; then
3842 enableval=$enable_dependency_tracking;
3844 enable_dependency_tracking=yes
3850 if test x$enable_dependency_tracking = xyes ; then
3851 if test x$GCC = xyes ; then
3852 gcc_version=`gcc --version | head -1`
3853 case "$gcc_version" in
3855 enable_dependency_tracking=no
3856 { echo "$as_me:$LINENO: WARNING: Dependency tracking disabled, gcc-3.x is needed" >&5
3857 echo "$as_me: WARNING: Dependency tracking disabled, gcc-3.x is needed" >&2;}
3860 DEP_FLAGS='-MT $@ -MD -MP -MF $@.d'
3865 enable_dependency_tracking=no
3866 { echo "$as_me:$LINENO: WARNING: Dependency tracking disabled" >&5
3867 echo "$as_me: WARNING: Dependency tracking disabled" >&2;}
3871 if test x$enable_dependency_tracking = xyes ; then
3872 DEP_INCLUDE='include '
3881 if test x$enable_dependency_tracking = xyes ; then
3882 # Since the makefiles use include to get the dependency files, we must
3883 # make sure that the files exist. We generate some more files than are
3886 ac_config_commands="$ac_config_commands dummy-dep-files"
3890 # Figure out ABI. Currently, configurable only be setting CFLAGS.
3896 cat >conftest.$ac_ext <<_ACEOF
3899 cat confdefs.h >>conftest.$ac_ext
3900 cat >>conftest.$ac_ext <<_ACEOF
3901 /* end confdefs.h. */
3903 #if defined(__x86_64__) || defined(__arch64__)
3915 rm -f conftest.$ac_objext
3916 if { (ac_try="$ac_compile"
3918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3919 *) ac_try_echo=$ac_try;;
3921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3922 (eval "$ac_compile") 2>conftest.er1
3924 grep -v '^ *+' conftest.er1 >conftest.err
3926 cat conftest.err >&5
3927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928 (exit $ac_status); } && {
3929 test -z "$ac_c_werror_flag" ||
3930 test ! -s conftest.err
3931 } && test -s conftest.$ac_objext; then
3936 echo "$as_me: failed program was:" >&5
3937 sed 's/^/| /' conftest.$ac_ext >&5
3944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3947 cat >conftest.$ac_ext <<_ACEOF
3950 cat confdefs.h >>conftest.$ac_ext
3951 cat >>conftest.$ac_ext <<_ACEOF
3952 /* end confdefs.h. */
3954 #if defined(__sparcv9) || defined(__arch64__)
3966 rm -f conftest.$ac_objext
3967 if { (ac_try="$ac_compile"
3969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3970 *) ac_try_echo=$ac_try;;
3972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3973 (eval "$ac_compile") 2>conftest.er1
3975 grep -v '^ *+' conftest.er1 >conftest.err
3977 cat conftest.err >&5
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); } && {
3980 test -z "$ac_c_werror_flag" ||
3981 test ! -s conftest.err
3982 } && test -s conftest.$ac_objext; then
3987 echo "$as_me: failed program was:" >&5
3988 sed 's/^/| /' conftest.$ac_ext >&5
3995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3999 if test "x$ABI" != xstandard ; then
4000 { echo "$as_me:$LINENO: Compiler uses $ABI-bit ABI. To change, set CC." >&5
4001 echo "$as_me: Compiler uses $ABI-bit ABI. To change, set CC." >&6;}
4002 if test "$libdir" = '${exec_prefix}/lib' ; then
4003 # Try setting a better default
4004 case "$host_cpu:$host_os:$ABI" in
4005 *:solaris*:32|*:sunos*:32)
4006 libdir='${exec_prefix}/lib'
4008 *:solaris*:64|*:sunos*:64)
4009 libdir='${exec_prefix}/lib/64'
4011 # According to the fhs, all architectures except IA64
4012 # puts 32-bit libraries in lib, and 64-bit in lib64.
4014 libdir='${exec_prefix}/lib'
4017 libdir='${exec_prefix}/lib64'
4019 # On freebsd, it seems 32-bit libraries are in lib32,
4020 # and 64-bit in lib. Don't know about "kfreebsd", does
4021 # it follow the Linux fhs conventions?
4023 libdir='${exec_prefix}/lib32'
4026 libdir='${exec_prefix}/lib'
4029 { echo "$as_me:$LINENO: WARNING: Don't know where to install $ABI-bit libraries on this system." >&5
4030 echo "$as_me: WARNING: Don't know where to install $ABI-bit libraries on this system." >&2;}; #'
4033 { echo "$as_me:$LINENO: Libraries to be installed in $libdir." >&5
4034 echo "$as_me: Libraries to be installed in $libdir." >&6;}
4038 # Select assembler code
4041 i?86* | k[5-8]* | pentium* | athlon)
4045 if test "$ABI" = 64 ; then
4052 if test "$ABI" = 64 ; then
4063 # echo "enable_assembler: $enable_assembler, asm_path: $asm_path"
4065 if test "x$enable_assembler" = xyes ; then
4066 if test -n "$asm_path"; then
4067 { echo "$as_me:$LINENO: Looking for assembler files in $asm_path/." >&5
4068 echo "$as_me: Looking for assembler files in $asm_path/." >&6;}
4070 for tmp_f in aes-encrypt-internal.asm aes-decrypt-internal.asm \
4071 arcfour-crypt.asm camellia-crypt-internal.asm \
4072 md5-compress.asm sha1-compress.asm machine.m4; do
4073 # echo "Looking for $srcdir/$asm_path/$tmp_f"
4074 if test -f "$srcdir/$asm_path/$tmp_f"; then
4077 ac_config_links="$ac_config_links $tmp_f:$asm_path/$tmp_f"
4081 if test "$found" = no; then
4083 { echo "$as_me:$LINENO: WARNING: No assembler files found." >&5
4084 echo "$as_me: WARNING: No assembler files found." >&2;}
4089 { echo "$as_me:$LINENO: checking CCPIC" >&5
4090 echo $ECHO_N "checking CCPIC... $ECHO_C" >&6; }
4091 if test "${lsh_cv_sys_ccpic+set}" = set; then
4092 echo $ECHO_N "(cached) $ECHO_C" >&6
4095 if test -z "$CCPIC" ; then
4096 if test "$GCC" = yes ; then
4098 bsdi4.*) CCPIC="-fPIC" ;;
4100 darwin*) CCPIC="-fPIC" ;;
4101 # Could also use -fpic, depending on the number of symbol references
4102 solaris*) CCPIC="-fPIC" ;;
4103 cygwin*) CCPIC="" ;;
4104 mingw32*) CCPIC="" ;;
4109 darwin*) CCPIC="-fPIC" ;;
4110 irix*) CCPIC="-share" ;;
4111 hpux*) CCPIC="+z"; ;;
4112 *freebsd*) CCPIC="-fpic" ;;
4113 sco*|sysv4.*) CCPIC="-KPIC -dy -Bdynamic" ;;
4114 solaris*) CCPIC="-KPIC -Bdynamic" ;;
4115 winnt*) CCPIC="-shared" ;;
4120 OLD_CFLAGS="$CFLAGS"
4121 CFLAGS="$CFLAGS $CCPIC"
4122 cat >conftest.$ac_ext <<_ACEOF
4125 cat confdefs.h >>conftest.$ac_ext
4126 cat >>conftest.$ac_ext <<_ACEOF
4127 /* end confdefs.h. */
4137 rm -f conftest.$ac_objext
4138 if { (ac_try="$ac_compile"
4140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4141 *) ac_try_echo=$ac_try;;
4143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4144 (eval "$ac_compile") 2>conftest.er1
4146 grep -v '^ *+' conftest.er1 >conftest.err
4148 cat conftest.err >&5
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); } && {
4151 test -z "$ac_c_werror_flag" ||
4152 test ! -s conftest.err
4153 } && test -s conftest.$ac_objext; then
4154 lsh_cv_sys_ccpic="$CCPIC"
4156 echo "$as_me: failed program was:" >&5
4157 sed 's/^/| /' conftest.$ac_ext >&5
4162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4163 CFLAGS="$OLD_CFLAGS"
4167 CCPIC="$lsh_cv_sys_ccpic"
4168 { echo "$as_me:$LINENO: result: $CCPIC" >&5
4169 echo "${ECHO_T}$CCPIC" >&6; }
4172 SHLIBCFLAGS="$CCPIC"
4176 LIBNETTLE_FORLINK='cygnettle-$(LIBNETTLE_MAJOR)-$(LIBNETTLE_MINOR).dll'
4178 LIBNETTLE_FILE='libnettle.dll.a'
4179 LIBNETTLE_LINK='$(CC) $(LDFLAGS) -shared -Wl,--out-implib=$(LIBNETTLE_LIBFILE) -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive'
4180 LIBNETTLE_LIBS='-Wl,--no-whole-archive $(LIBS)'
4182 LIBHOGWEED_FORLINK='cyghogweed-$(LIBHOGWEED_MAJOR)-$(LIBHOGWEED_MINOR).dll'
4183 LIBHOGWEED_SONAME=''
4184 LIBHOGWEED_FILE='libhogweed.dll.a'
4185 LIBHOGWEED_LINK='$(CC) $(LDFLAGS) -shared -Wl,--out-implib=$(LIBHOGWEED_LIBFILE) -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive'
4186 LIBHOGWEED_LIBS='-Wl,--no-whole-archive $(LIBS)'
4189 LIBNETTLE_FORLINK=libnettle.dylib
4190 LIBNETTLE_SONAME='$(LIBNETTLE_FORLINK).$(LIBNETTLE_MAJOR)'
4191 LIBNETTLE_FILE='$(LIBNETTLE_SONAME).$(LIBNETTLE_MINOR)'
4192 LIBNETTLE_LINK='$(CC) -dynamiclib $(LDFLAGS)'
4195 LIBHOGWEED_FORLINK=libhogweed.dylib
4196 LIBHOGWEED_SONAME='$(LIBHOGWEED_FORLINK).$(LIBHOGWEED_MAJOR)'
4197 LIBHOGWEED_FILE='$(LIBHOGWEED_SONAME).$(LIBHOGWEED_MINOR)'
4198 LIBHOGWEED_LINK='$(CC) -dynamiclib $(LDFLAGS)'
4202 LIBNETTLE_FORLINK=libnettle.so
4203 LIBNETTLE_SONAME='$(LIBNETTLE_FORLINK).$(LIBNETTLE_MAJOR)'
4204 LIBNETTLE_FILE='$(LIBNETTLE_SONAME).$(LIBNETTLE_MINOR)'
4205 LIBNETTLE_LINK='$(CC) $(LDFLAGS) -shared -Wl,-soname=$(LIBNETTLE_SONAME)'
4208 LIBHOGWEED_FORLINK=libhogweed.so
4209 LIBHOGWEED_SONAME='$(LIBHOGWEED_FORLINK).$(LIBHOGWEED_MAJOR)'
4210 LIBHOGWEED_FILE='$(LIBHOGWEED_SONAME).$(LIBHOGWEED_MINOR)'
4211 LIBHOGWEED_LINK='$(CC) $(LDFLAGS) -L. -shared -Wl,-soname=$(LIBHOGWEED_SONAME)'
4212 # Requested by debian, to make linking with only -lhogweed work
4213 # (does not work in general, e.g., with static linking all of
4214 # -lhogweed -lgmp -lnettle are still required). Also makes dlopen
4215 # of libhogweed.so work, without having to use RTLD_GLOBAL.
4216 # Depends on -L. above, to locate nettle.so.
4217 LIBHOGWEED_LIBS='-lnettle -lgmp'
4221 if test "x$enable_pic" = xyes; then
4222 CCPIC_MAYBE="$CCPIC"
4228 ASM_SYMBOL_PREFIX=''
4230 ASM_TYPE_FUNCTION=''
4231 ASM_MARK_NOEXEC_STACK=''
4234 if test x$enable_assembler = xyes ; then
4235 { echo "$as_me:$LINENO: checking if globals are prefixed by underscore" >&5
4236 echo $ECHO_N "checking if globals are prefixed by underscore... $ECHO_C" >&6; }
4237 if test "${nettle_cv_asm_underscore+set}" = set; then
4238 echo $ECHO_N "(cached) $ECHO_C" >&6
4240 # Default is no underscore
4241 nettle_cv_asm_underscore=no
4242 cat >conftest.$ac_ext <<_ACEOF
4243 int a_global_symbol;
4245 rm -f conftest.$ac_objext
4246 if { (ac_try="$ac_compile"
4248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4249 *) ac_try_echo=$ac_try;;
4251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4252 (eval "$ac_compile") 2>conftest.er1
4254 grep -v '^ *+' conftest.er1 >conftest.err
4256 cat conftest.err >&5
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); } && {
4259 test -z "$ac_c_werror_flag" ||
4260 test ! -s conftest.err
4261 } && test -s conftest.$ac_objext; then
4262 $NM conftest.$OBJEXT >conftest.out
4263 if grep _a_global_symbol conftest.out >/dev/null ; then
4264 nettle_cv_asm_underscore=yes
4265 elif grep a_global_symbol conftest.out >/dev/null ; then
4266 nettle_cv_asm_underscore=no
4268 { echo "$as_me:$LINENO: WARNING: nm doesn't list a_global_symbol at all" >&5
4269 echo "$as_me: WARNING: nm doesn't list a_global_symbol at all" >&2;}
4272 echo "$as_me: failed program was:" >&5
4273 sed 's/^/| /' conftest.$ac_ext >&5
4275 { echo "$as_me:$LINENO: WARNING: test program with a single global could not be compiled!?" >&5
4276 echo "$as_me: WARNING: test program with a single global could not be compiled!?" >&2;}
4279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4281 { echo "$as_me:$LINENO: result: $nettle_cv_asm_underscore" >&5
4282 echo "${ECHO_T}$nettle_cv_asm_underscore" >&6; }
4283 if test x$nettle_cv_asm_underscore = xyes ; then
4284 ASM_SYMBOL_PREFIX='_'
4287 { echo "$as_me:$LINENO: checking if we should use a .note.GNU-stack section" >&5
4288 echo $ECHO_N "checking if we should use a .note.GNU-stack section... $ECHO_C" >&6; }
4289 if test "${nettle_cv_asm_gnu_stack+set}" = set; then
4290 echo $ECHO_N "(cached) $ECHO_C" >&6
4293 nettle_cv_asm_gnu_stack=no
4295 cat >conftest.c <<EOF
4296 int foo() { return 0; }
4298 nettle_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >conftest.out 2>&1"
4299 if { (eval echo "$as_me:$LINENO: \"$nettle_compile\"") >&5
4300 (eval $nettle_compile) 2>&5
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); }; then
4304 cat conftest.out >&5
4305 $OBJDUMP -x conftest.o | grep '\.note\.GNU-stack' > /dev/null \
4306 && nettle_cv_asm_gnu_stack=yes
4308 cat conftest.out >&5
4309 echo "configure: failed program was:" >&5
4314 { echo "$as_me:$LINENO: result: $nettle_cv_asm_gnu_stack" >&5
4315 echo "${ECHO_T}$nettle_cv_asm_gnu_stack" >&6; }
4316 if test x$nettle_cv_asm_gnu_stack = xyes ; then
4317 ASM_MARK_NOEXEC_STACK='.section .note.GNU-stack,"",@progbits'
4320 { echo "$as_me:$LINENO: checking for ELF-style .type,%function pseudo-ops" >&5
4321 echo $ECHO_N "checking for ELF-style .type,%function pseudo-ops... $ECHO_C" >&6; }
4322 if test "${nettle_cv_asm_type_percent_function+set}" = set; then
4323 echo $ECHO_N "(cached) $ECHO_C" >&6
4325 cat >conftest.s <<EOF
4333 .size foo, .Lend - foo
4336 gmp_assemble="$CC $CFLAGS $CPPFLAGS -c conftest.s >conftest.out 2>&1"
4337 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
4338 (eval $gmp_assemble) 2>&5
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); }; then
4342 cat conftest.out >&5
4343 nettle_cv_asm_type_percent_function=yes
4345 cat conftest.out >&5
4346 echo "configure: failed program was:" >&5
4348 nettle_cv_asm_type_percent_function=no
4353 { echo "$as_me:$LINENO: result: $nettle_cv_asm_type_percent_function" >&5
4354 echo "${ECHO_T}$nettle_cv_asm_type_percent_function" >&6; }
4356 { echo "$as_me:$LINENO: checking for ELF-style .type,#function pseudo-ops" >&5
4357 echo $ECHO_N "checking for ELF-style .type,#function pseudo-ops... $ECHO_C" >&6; }
4358 if test "${nettle_cv_asm_type_hash_function+set}" = set; then
4359 echo $ECHO_N "(cached) $ECHO_C" >&6
4361 cat >conftest.s <<EOF
4369 .size foo, .Lend - foo
4372 gmp_assemble="$CC $CFLAGS $CPPFLAGS -c conftest.s >conftest.out 2>&1"
4373 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
4374 (eval $gmp_assemble) 2>&5
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); }; then
4378 cat conftest.out >&5
4379 nettle_cv_asm_type_hash_function=yes
4381 cat conftest.out >&5
4382 echo "configure: failed program was:" >&5
4384 nettle_cv_asm_type_hash_function=no
4389 { echo "$as_me:$LINENO: result: $nettle_cv_asm_type_hash_function" >&5
4390 echo "${ECHO_T}$nettle_cv_asm_type_hash_function" >&6; }
4392 if test x$nettle_cv_asm_type_percent_function = xyes ; then
4394 ASM_TYPE_FUNCTION='%function'
4396 if test x$nettle_cv_asm_type_hash_function = xyes ; then
4398 ASM_TYPE_FUNCTION='#function'
4401 { echo "$as_me:$LINENO: checking if .align assembly directive is logarithmic" >&5
4402 echo $ECHO_N "checking if .align assembly directive is logarithmic... $ECHO_C" >&6; }
4403 if test "${nettle_cv_asm_align_log+set}" = set; then
4404 echo $ECHO_N "(cached) $ECHO_C" >&6
4406 cat >conftest.s <<EOF
4411 gmp_assemble="$CC $CFLAGS $CPPFLAGS -c conftest.s >conftest.out 2>&1"
4412 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
4413 (eval $gmp_assemble) 2>&5
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); }; then
4417 cat conftest.out >&5
4418 nettle_cv_asm_align_log=yes
4420 cat conftest.out >&5
4421 echo "configure: failed program was:" >&5
4423 nettle_cv_asm_align_log=no
4428 { echo "$as_me:$LINENO: result: $nettle_cv_asm_align_log" >&5
4429 echo "${ECHO_T}$nettle_cv_asm_align_log" >&6; }
4430 if test x$nettle_cv_asm_align_log = xyes ; then
4459 # Extract the first word of "m4", so it can be a program name with args.
4460 set dummy m4; ac_word=$2
4461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4463 if test "${ac_cv_path_M4+set}" = set; then
4464 echo $ECHO_N "(cached) $ECHO_C" >&6
4468 ac_cv_path_M4="$M4" # Let the user override the test with a path.
4471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4475 test -z "$as_dir" && as_dir=.
4476 for ac_exec_ext in '' $ac_executable_extensions; do
4477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4478 ac_cv_path_M4="$as_dir/$ac_word$ac_exec_ext"
4479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4486 test -z "$ac_cv_path_M4" && ac_cv_path_M4="m4"
4491 if test -n "$M4"; then
4492 { echo "$as_me:$LINENO: result: $M4" >&5
4493 echo "${ECHO_T}$M4" >&6; }
4495 { echo "$as_me:$LINENO: result: no" >&5
4496 echo "${ECHO_T}no" >&6; }
4501 # Checks for typedefs, structures, and compiler characteristics.
4502 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4503 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4504 if test "${ac_cv_c_const+set}" = set; then
4505 echo $ECHO_N "(cached) $ECHO_C" >&6
4507 cat >conftest.$ac_ext <<_ACEOF
4510 cat confdefs.h >>conftest.$ac_ext
4511 cat >>conftest.$ac_ext <<_ACEOF
4512 /* end confdefs.h. */
4517 /* FIXME: Include the comments suggested by Paul. */
4519 /* Ultrix mips cc rejects this. */
4520 typedef int charset[2];
4522 /* SunOS 4.1.1 cc rejects this. */
4523 char const *const *pcpcc;
4525 /* NEC SVR4.0.2 mips cc rejects this. */
4526 struct point {int x, y;};
4527 static struct point const zero = {0,0};
4528 /* AIX XL C 1.02.0.0 rejects this.
4529 It does not let you subtract one const X* pointer from another in
4530 an arm of an if-expression whose if-part is not a constant
4532 const char *g = "string";
4533 pcpcc = &g + (g ? g-g : 0);
4534 /* HPUX 7.0 cc rejects these. */
4536 ppc = (char**) pcpcc;
4537 pcpcc = (char const *const *) ppc;
4538 { /* SCO 3.2v4 cc rejects this. */
4540 char const *s = 0 ? (char *) 0 : (char const *) 0;
4545 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4547 const int *foo = &x[0];
4550 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4551 typedef const int *iptr;
4555 { /* AIX XL C 1.02.0.0 rejects this saying
4556 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4557 struct s { int j; const int *ap[3]; };
4558 struct s *b; b->j = 5;
4560 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4564 return !cs[0] && !zero.x;
4571 rm -f conftest.$ac_objext
4572 if { (ac_try="$ac_compile"
4574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4575 *) ac_try_echo=$ac_try;;
4577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4578 (eval "$ac_compile") 2>conftest.er1
4580 grep -v '^ *+' conftest.er1 >conftest.err
4582 cat conftest.err >&5
4583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); } && {
4585 test -z "$ac_c_werror_flag" ||
4586 test ! -s conftest.err
4587 } && test -s conftest.$ac_objext; then
4590 echo "$as_me: failed program was:" >&5
4591 sed 's/^/| /' conftest.$ac_ext >&5
4596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4598 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4599 echo "${ECHO_T}$ac_cv_c_const" >&6; }
4600 if test $ac_cv_c_const = no; then
4602 cat >>confdefs.h <<\_ACEOF
4608 { echo "$as_me:$LINENO: checking for inline" >&5
4609 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
4610 if test "${ac_cv_c_inline+set}" = set; then
4611 echo $ECHO_N "(cached) $ECHO_C" >&6
4614 for ac_kw in inline __inline__ __inline; do
4615 cat >conftest.$ac_ext <<_ACEOF
4618 cat confdefs.h >>conftest.$ac_ext
4619 cat >>conftest.$ac_ext <<_ACEOF
4620 /* end confdefs.h. */
4623 static $ac_kw foo_t static_foo () {return 0; }
4624 $ac_kw foo_t foo () {return 0; }
4628 rm -f conftest.$ac_objext
4629 if { (ac_try="$ac_compile"
4631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4632 *) ac_try_echo=$ac_try;;
4634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4635 (eval "$ac_compile") 2>conftest.er1
4637 grep -v '^ *+' conftest.er1 >conftest.err
4639 cat conftest.err >&5
4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); } && {
4642 test -z "$ac_c_werror_flag" ||
4643 test ! -s conftest.err
4644 } && test -s conftest.$ac_objext; then
4645 ac_cv_c_inline=$ac_kw
4647 echo "$as_me: failed program was:" >&5
4648 sed 's/^/| /' conftest.$ac_ext >&5
4653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4654 test "$ac_cv_c_inline" != no && break
4658 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4659 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
4662 case $ac_cv_c_inline in
4665 case $ac_cv_c_inline in
4667 *) ac_val=$ac_cv_c_inline;;
4669 cat >>confdefs.h <<_ACEOF
4671 #define inline $ac_val
4678 ac_cpp='$CPP $CPPFLAGS'
4679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4682 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4683 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4684 # On Suns, sometimes $CPP names a directory.
4685 if test -n "$CPP" && test -d "$CPP"; then
4688 if test -z "$CPP"; then
4689 if test "${ac_cv_prog_CPP+set}" = set; then
4690 echo $ECHO_N "(cached) $ECHO_C" >&6
4692 # Double quotes because CPP needs to be expanded
4693 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4696 for ac_c_preproc_warn_flag in '' yes
4698 # Use a header file that comes with gcc, so configuring glibc
4699 # with a fresh cross-compiler works.
4700 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4701 # <limits.h> exists even on freestanding compilers.
4702 # On the NeXT, cc -E runs the code through the compiler's parser,
4703 # not just through cpp. "Syntax error" is here to catch this case.
4704 cat >conftest.$ac_ext <<_ACEOF
4707 cat confdefs.h >>conftest.$ac_ext
4708 cat >>conftest.$ac_ext <<_ACEOF
4709 /* end confdefs.h. */
4711 # include <limits.h>
4713 # include <assert.h>
4717 if { (ac_try="$ac_cpp conftest.$ac_ext"
4719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4720 *) ac_try_echo=$ac_try;;
4722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4725 grep -v '^ *+' conftest.er1 >conftest.err
4727 cat conftest.err >&5
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); } >/dev/null && {
4730 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4731 test ! -s conftest.err
4735 echo "$as_me: failed program was:" >&5
4736 sed 's/^/| /' conftest.$ac_ext >&5
4738 # Broken: fails on valid input.
4742 rm -f conftest.err conftest.$ac_ext
4744 # OK, works on sane cases. Now check whether nonexistent headers
4745 # can be detected and how.
4746 cat >conftest.$ac_ext <<_ACEOF
4749 cat confdefs.h >>conftest.$ac_ext
4750 cat >>conftest.$ac_ext <<_ACEOF
4751 /* end confdefs.h. */
4752 #include <ac_nonexistent.h>
4754 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
4762 grep -v '^ *+' conftest.er1 >conftest.err
4764 cat conftest.err >&5
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); } >/dev/null && {
4767 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4768 test ! -s conftest.err
4770 # Broken: success on invalid input.
4773 echo "$as_me: failed program was:" >&5
4774 sed 's/^/| /' conftest.$ac_ext >&5
4776 # Passes both tests.
4781 rm -f conftest.err conftest.$ac_ext
4784 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4785 rm -f conftest.err conftest.$ac_ext
4786 if $ac_preproc_ok; then
4798 { echo "$as_me:$LINENO: result: $CPP" >&5
4799 echo "${ECHO_T}$CPP" >&6; }
4801 for ac_c_preproc_warn_flag in '' yes
4803 # Use a header file that comes with gcc, so configuring glibc
4804 # with a fresh cross-compiler works.
4805 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4806 # <limits.h> exists even on freestanding compilers.
4807 # On the NeXT, cc -E runs the code through the compiler's parser,
4808 # not just through cpp. "Syntax error" is here to catch this case.
4809 cat >conftest.$ac_ext <<_ACEOF
4812 cat confdefs.h >>conftest.$ac_ext
4813 cat >>conftest.$ac_ext <<_ACEOF
4814 /* end confdefs.h. */
4816 # include <limits.h>
4818 # include <assert.h>
4822 if { (ac_try="$ac_cpp conftest.$ac_ext"
4824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4825 *) ac_try_echo=$ac_try;;
4827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4830 grep -v '^ *+' conftest.er1 >conftest.err
4832 cat conftest.err >&5
4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834 (exit $ac_status); } >/dev/null && {
4835 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4836 test ! -s conftest.err
4840 echo "$as_me: failed program was:" >&5
4841 sed 's/^/| /' conftest.$ac_ext >&5
4843 # Broken: fails on valid input.
4847 rm -f conftest.err conftest.$ac_ext
4849 # OK, works on sane cases. Now check whether nonexistent headers
4850 # can be detected and how.
4851 cat >conftest.$ac_ext <<_ACEOF
4854 cat confdefs.h >>conftest.$ac_ext
4855 cat >>conftest.$ac_ext <<_ACEOF
4856 /* end confdefs.h. */
4857 #include <ac_nonexistent.h>
4859 if { (ac_try="$ac_cpp conftest.$ac_ext"
4861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4862 *) ac_try_echo=$ac_try;;
4864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4865 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4867 grep -v '^ *+' conftest.er1 >conftest.err
4869 cat conftest.err >&5
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); } >/dev/null && {
4872 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4873 test ! -s conftest.err
4875 # Broken: success on invalid input.
4878 echo "$as_me: failed program was:" >&5
4879 sed 's/^/| /' conftest.$ac_ext >&5
4881 # Passes both tests.
4886 rm -f conftest.err conftest.$ac_ext
4889 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4890 rm -f conftest.err conftest.$ac_ext
4891 if $ac_preproc_ok; then
4894 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4895 See \`config.log' for more details." >&5
4896 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4897 See \`config.log' for more details." >&2;}
4898 { (exit 1); exit 1; }; }
4902 ac_cpp='$CPP $CPPFLAGS'
4903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4908 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4909 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4910 if test "${ac_cv_path_GREP+set}" = set; then
4911 echo $ECHO_N "(cached) $ECHO_C" >&6
4913 # Extract the first word of "grep ggrep" to use in msg output
4914 if test -z "$GREP"; then
4915 set dummy grep ggrep; ac_prog_name=$2
4916 if test "${ac_cv_path_GREP+set}" = set; then
4917 echo $ECHO_N "(cached) $ECHO_C" >&6
4919 ac_path_GREP_found=false
4920 # Loop through the user's path and test for each of PROGNAME-LIST
4921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4925 test -z "$as_dir" && as_dir=.
4926 for ac_prog in grep ggrep; do
4927 for ac_exec_ext in '' $ac_executable_extensions; do
4928 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4929 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4930 # Check for GNU ac_path_GREP and select it if it is found.
4931 # Check for GNU $ac_path_GREP
4932 case `"$ac_path_GREP" --version 2>&1` in
4934 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4937 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4940 cat "conftest.in" "conftest.in" >"conftest.tmp"
4941 mv "conftest.tmp" "conftest.in"
4942 cp "conftest.in" "conftest.nl"
4943 echo 'GREP' >> "conftest.nl"
4944 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4945 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4946 ac_count=`expr $ac_count + 1`
4947 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4948 # Best one so far, save it but keep looking for a better one
4949 ac_cv_path_GREP="$ac_path_GREP"
4950 ac_path_GREP_max=$ac_count
4952 # 10*(2^10) chars as input seems more than enough
4953 test $ac_count -gt 10 && break
4955 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4959 $ac_path_GREP_found && break 3
4969 GREP="$ac_cv_path_GREP"
4970 if test -z "$GREP"; then
4971 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4972 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4973 { (exit 1); exit 1; }; }
4977 ac_cv_path_GREP=$GREP
4982 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4983 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4984 GREP="$ac_cv_path_GREP"
4987 { echo "$as_me:$LINENO: checking for egrep" >&5
4988 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4989 if test "${ac_cv_path_EGREP+set}" = set; then
4990 echo $ECHO_N "(cached) $ECHO_C" >&6
4992 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4993 then ac_cv_path_EGREP="$GREP -E"
4995 # Extract the first word of "egrep" to use in msg output
4996 if test -z "$EGREP"; then
4997 set dummy egrep; ac_prog_name=$2
4998 if test "${ac_cv_path_EGREP+set}" = set; then
4999 echo $ECHO_N "(cached) $ECHO_C" >&6
5001 ac_path_EGREP_found=false
5002 # Loop through the user's path and test for each of PROGNAME-LIST
5003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5004 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5007 test -z "$as_dir" && as_dir=.
5008 for ac_prog in egrep; do
5009 for ac_exec_ext in '' $ac_executable_extensions; do
5010 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5011 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5012 # Check for GNU ac_path_EGREP and select it if it is found.
5013 # Check for GNU $ac_path_EGREP
5014 case `"$ac_path_EGREP" --version 2>&1` in
5016 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5019 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5022 cat "conftest.in" "conftest.in" >"conftest.tmp"
5023 mv "conftest.tmp" "conftest.in"
5024 cp "conftest.in" "conftest.nl"
5025 echo 'EGREP' >> "conftest.nl"
5026 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5027 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5028 ac_count=`expr $ac_count + 1`
5029 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5030 # Best one so far, save it but keep looking for a better one
5031 ac_cv_path_EGREP="$ac_path_EGREP"
5032 ac_path_EGREP_max=$ac_count
5034 # 10*(2^10) chars as input seems more than enough
5035 test $ac_count -gt 10 && break
5037 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5041 $ac_path_EGREP_found && break 3
5051 EGREP="$ac_cv_path_EGREP"
5052 if test -z "$EGREP"; then
5053 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5054 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5055 { (exit 1); exit 1; }; }
5059 ac_cv_path_EGREP=$EGREP
5065 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5066 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5067 EGREP="$ac_cv_path_EGREP"
5070 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
5071 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
5072 if test "${ac_cv_type_uid_t+set}" = set; then
5073 echo $ECHO_N "(cached) $ECHO_C" >&6
5075 cat >conftest.$ac_ext <<_ACEOF
5078 cat confdefs.h >>conftest.$ac_ext
5079 cat >>conftest.$ac_ext <<_ACEOF
5080 /* end confdefs.h. */
5081 #include <sys/types.h>
5084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5085 $EGREP "uid_t" >/dev/null 2>&1; then
5086 ac_cv_type_uid_t=yes
5093 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
5094 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
5095 if test $ac_cv_type_uid_t = no; then
5097 cat >>confdefs.h <<\_ACEOF
5102 cat >>confdefs.h <<\_ACEOF
5108 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5109 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5110 if test "${ac_cv_header_stdc+set}" = set; then
5111 echo $ECHO_N "(cached) $ECHO_C" >&6
5113 cat >conftest.$ac_ext <<_ACEOF
5116 cat confdefs.h >>conftest.$ac_ext
5117 cat >>conftest.$ac_ext <<_ACEOF
5118 /* end confdefs.h. */
5132 rm -f conftest.$ac_objext
5133 if { (ac_try="$ac_compile"
5135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5136 *) ac_try_echo=$ac_try;;
5138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5139 (eval "$ac_compile") 2>conftest.er1
5141 grep -v '^ *+' conftest.er1 >conftest.err
5143 cat conftest.err >&5
5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145 (exit $ac_status); } && {
5146 test -z "$ac_c_werror_flag" ||
5147 test ! -s conftest.err
5148 } && test -s conftest.$ac_objext; then
5149 ac_cv_header_stdc=yes
5151 echo "$as_me: failed program was:" >&5
5152 sed 's/^/| /' conftest.$ac_ext >&5
5154 ac_cv_header_stdc=no
5157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5159 if test $ac_cv_header_stdc = yes; then
5160 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5161 cat >conftest.$ac_ext <<_ACEOF
5164 cat confdefs.h >>conftest.$ac_ext
5165 cat >>conftest.$ac_ext <<_ACEOF
5166 /* end confdefs.h. */
5170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5171 $EGREP "memchr" >/dev/null 2>&1; then
5174 ac_cv_header_stdc=no
5180 if test $ac_cv_header_stdc = yes; then
5181 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5182 cat >conftest.$ac_ext <<_ACEOF
5185 cat confdefs.h >>conftest.$ac_ext
5186 cat >>conftest.$ac_ext <<_ACEOF
5187 /* end confdefs.h. */
5191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5192 $EGREP "free" >/dev/null 2>&1; then
5195 ac_cv_header_stdc=no
5201 if test $ac_cv_header_stdc = yes; then
5202 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5203 if test "$cross_compiling" = yes; then
5206 cat >conftest.$ac_ext <<_ACEOF
5209 cat confdefs.h >>conftest.$ac_ext
5210 cat >>conftest.$ac_ext <<_ACEOF
5211 /* end confdefs.h. */
5214 #if ((' ' & 0x0FF) == 0x020)
5215 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5216 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5218 # define ISLOWER(c) \
5219 (('a' <= (c) && (c) <= 'i') \
5220 || ('j' <= (c) && (c) <= 'r') \
5221 || ('s' <= (c) && (c) <= 'z'))
5222 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5225 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5230 for (i = 0; i < 256; i++)
5231 if (XOR (islower (i), ISLOWER (i))
5232 || toupper (i) != TOUPPER (i))
5237 rm -f conftest$ac_exeext
5238 if { (ac_try="$ac_link"
5240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5241 *) ac_try_echo=$ac_try;;
5243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5244 (eval "$ac_link") 2>&5
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5248 { (case "(($ac_try" in
5249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5250 *) ac_try_echo=$ac_try;;
5252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5253 (eval "$ac_try") 2>&5
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); }; }; then
5259 echo "$as_me: program exited with status $ac_status" >&5
5260 echo "$as_me: failed program was:" >&5
5261 sed 's/^/| /' conftest.$ac_ext >&5
5264 ac_cv_header_stdc=no
5266 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5272 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5273 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5274 if test $ac_cv_header_stdc = yes; then
5276 cat >>confdefs.h <<\_ACEOF
5277 #define STDC_HEADERS 1
5282 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5292 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5293 inttypes.h stdint.h unistd.h
5295 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5296 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5299 echo $ECHO_N "(cached) $ECHO_C" >&6
5301 cat >conftest.$ac_ext <<_ACEOF
5304 cat confdefs.h >>conftest.$ac_ext
5305 cat >>conftest.$ac_ext <<_ACEOF
5306 /* end confdefs.h. */
5307 $ac_includes_default
5309 #include <$ac_header>
5311 rm -f conftest.$ac_objext
5312 if { (ac_try="$ac_compile"
5314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5315 *) ac_try_echo=$ac_try;;
5317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5318 (eval "$ac_compile") 2>conftest.er1
5320 grep -v '^ *+' conftest.er1 >conftest.err
5322 cat conftest.err >&5
5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324 (exit $ac_status); } && {
5325 test -z "$ac_c_werror_flag" ||
5326 test ! -s conftest.err
5327 } && test -s conftest.$ac_objext; then
5328 eval "$as_ac_Header=yes"
5330 echo "$as_me: failed program was:" >&5
5331 sed 's/^/| /' conftest.$ac_ext >&5
5333 eval "$as_ac_Header=no"
5336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5338 ac_res=`eval echo '${'$as_ac_Header'}'`
5339 { echo "$as_me:$LINENO: result: $ac_res" >&5
5340 echo "${ECHO_T}$ac_res" >&6; }
5341 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5342 cat >>confdefs.h <<_ACEOF
5343 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5351 { echo "$as_me:$LINENO: checking for size_t" >&5
5352 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5353 if test "${ac_cv_type_size_t+set}" = set; then
5354 echo $ECHO_N "(cached) $ECHO_C" >&6
5356 cat >conftest.$ac_ext <<_ACEOF
5359 cat confdefs.h >>conftest.$ac_ext
5360 cat >>conftest.$ac_ext <<_ACEOF
5361 /* end confdefs.h. */
5362 $ac_includes_default
5363 typedef size_t ac__type_new_;
5367 if ((ac__type_new_ *) 0)
5369 if (sizeof (ac__type_new_))
5375 rm -f conftest.$ac_objext
5376 if { (ac_try="$ac_compile"
5378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5379 *) ac_try_echo=$ac_try;;
5381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5382 (eval "$ac_compile") 2>conftest.er1
5384 grep -v '^ *+' conftest.er1 >conftest.err
5386 cat conftest.err >&5
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); } && {
5389 test -z "$ac_c_werror_flag" ||
5390 test ! -s conftest.err
5391 } && test -s conftest.$ac_objext; then
5392 ac_cv_type_size_t=yes
5394 echo "$as_me: failed program was:" >&5
5395 sed 's/^/| /' conftest.$ac_ext >&5
5397 ac_cv_type_size_t=no
5400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5402 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5403 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5404 if test $ac_cv_type_size_t = yes; then
5408 cat >>confdefs.h <<_ACEOF
5409 #define size_t unsigned int
5414 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5415 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
5416 if test "${ac_cv_header_time+set}" = set; then
5417 echo $ECHO_N "(cached) $ECHO_C" >&6
5419 cat >conftest.$ac_ext <<_ACEOF
5422 cat confdefs.h >>conftest.$ac_ext
5423 cat >>conftest.$ac_ext <<_ACEOF
5424 /* end confdefs.h. */
5425 #include <sys/types.h>
5426 #include <sys/time.h>
5432 if ((struct tm *) 0)
5438 rm -f conftest.$ac_objext
5439 if { (ac_try="$ac_compile"
5441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5442 *) ac_try_echo=$ac_try;;
5444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5445 (eval "$ac_compile") 2>conftest.er1
5447 grep -v '^ *+' conftest.er1 >conftest.err
5449 cat conftest.err >&5
5450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451 (exit $ac_status); } && {
5452 test -z "$ac_c_werror_flag" ||
5453 test ! -s conftest.err
5454 } && test -s conftest.$ac_objext; then
5455 ac_cv_header_time=yes
5457 echo "$as_me: failed program was:" >&5
5458 sed 's/^/| /' conftest.$ac_ext >&5
5460 ac_cv_header_time=no
5463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5465 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5466 echo "${ECHO_T}$ac_cv_header_time" >&6; }
5467 if test $ac_cv_header_time = yes; then
5469 cat >>confdefs.h <<\_ACEOF
5470 #define TIME_WITH_SYS_TIME 1
5475 # Used by eratosthenes.c
5476 { echo "$as_me:$LINENO: checking for long" >&5
5477 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
5478 if test "${ac_cv_type_long+set}" = set; then
5479 echo $ECHO_N "(cached) $ECHO_C" >&6
5481 cat >conftest.$ac_ext <<_ACEOF
5484 cat confdefs.h >>conftest.$ac_ext
5485 cat >>conftest.$ac_ext <<_ACEOF
5486 /* end confdefs.h. */
5487 $ac_includes_default
5488 typedef long ac__type_new_;
5492 if ((ac__type_new_ *) 0)
5494 if (sizeof (ac__type_new_))
5500 rm -f conftest.$ac_objext
5501 if { (ac_try="$ac_compile"
5503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5504 *) ac_try_echo=$ac_try;;
5506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5507 (eval "$ac_compile") 2>conftest.er1
5509 grep -v '^ *+' conftest.er1 >conftest.err
5511 cat conftest.err >&5
5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513 (exit $ac_status); } && {
5514 test -z "$ac_c_werror_flag" ||
5515 test ! -s conftest.err
5516 } && test -s conftest.$ac_objext; then
5519 echo "$as_me: failed program was:" >&5
5520 sed 's/^/| /' conftest.$ac_ext >&5
5525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5527 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5528 echo "${ECHO_T}$ac_cv_type_long" >&6; }
5530 # The cast to long int works around a bug in the HP C Compiler
5531 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5532 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5533 # This bug is HP SR number 8606223364.
5534 { echo "$as_me:$LINENO: checking size of long" >&5
5535 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
5536 if test "${ac_cv_sizeof_long+set}" = set; then
5537 echo $ECHO_N "(cached) $ECHO_C" >&6
5539 if test "$cross_compiling" = yes; then
5540 # Depending upon the size, compute the lo and hi bounds.
5541 cat >conftest.$ac_ext <<_ACEOF
5544 cat confdefs.h >>conftest.$ac_ext
5545 cat >>conftest.$ac_ext <<_ACEOF
5546 /* end confdefs.h. */
5547 $ac_includes_default
5548 typedef long ac__type_sizeof_;
5552 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5559 rm -f conftest.$ac_objext
5560 if { (ac_try="$ac_compile"
5562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5563 *) ac_try_echo=$ac_try;;
5565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5566 (eval "$ac_compile") 2>conftest.er1
5568 grep -v '^ *+' conftest.er1 >conftest.err
5570 cat conftest.err >&5
5571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572 (exit $ac_status); } && {
5573 test -z "$ac_c_werror_flag" ||
5574 test ! -s conftest.err
5575 } && test -s conftest.$ac_objext; then
5578 cat >conftest.$ac_ext <<_ACEOF
5581 cat confdefs.h >>conftest.$ac_ext
5582 cat >>conftest.$ac_ext <<_ACEOF
5583 /* end confdefs.h. */
5584 $ac_includes_default
5585 typedef long ac__type_sizeof_;
5589 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5596 rm -f conftest.$ac_objext
5597 if { (ac_try="$ac_compile"
5599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5600 *) ac_try_echo=$ac_try;;
5602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5603 (eval "$ac_compile") 2>conftest.er1
5605 grep -v '^ *+' conftest.er1 >conftest.err
5607 cat conftest.err >&5
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); } && {
5610 test -z "$ac_c_werror_flag" ||
5611 test ! -s conftest.err
5612 } && test -s conftest.$ac_objext; then
5613 ac_hi=$ac_mid; break
5615 echo "$as_me: failed program was:" >&5
5616 sed 's/^/| /' conftest.$ac_ext >&5
5618 ac_lo=`expr $ac_mid + 1`
5619 if test $ac_lo -le $ac_mid; then
5623 ac_mid=`expr 2 '*' $ac_mid + 1`
5626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5629 echo "$as_me: failed program was:" >&5
5630 sed 's/^/| /' conftest.$ac_ext >&5
5632 cat >conftest.$ac_ext <<_ACEOF
5635 cat confdefs.h >>conftest.$ac_ext
5636 cat >>conftest.$ac_ext <<_ACEOF
5637 /* end confdefs.h. */
5638 $ac_includes_default
5639 typedef long ac__type_sizeof_;
5643 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5650 rm -f conftest.$ac_objext
5651 if { (ac_try="$ac_compile"
5653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5654 *) ac_try_echo=$ac_try;;
5656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5657 (eval "$ac_compile") 2>conftest.er1
5659 grep -v '^ *+' conftest.er1 >conftest.err
5661 cat conftest.err >&5
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); } && {
5664 test -z "$ac_c_werror_flag" ||
5665 test ! -s conftest.err
5666 } && test -s conftest.$ac_objext; then
5669 cat >conftest.$ac_ext <<_ACEOF
5672 cat confdefs.h >>conftest.$ac_ext
5673 cat >>conftest.$ac_ext <<_ACEOF
5674 /* end confdefs.h. */
5675 $ac_includes_default
5676 typedef long ac__type_sizeof_;
5680 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5687 rm -f conftest.$ac_objext
5688 if { (ac_try="$ac_compile"
5690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5691 *) ac_try_echo=$ac_try;;
5693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5694 (eval "$ac_compile") 2>conftest.er1
5696 grep -v '^ *+' conftest.er1 >conftest.err
5698 cat conftest.err >&5
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); } && {
5701 test -z "$ac_c_werror_flag" ||
5702 test ! -s conftest.err
5703 } && test -s conftest.$ac_objext; then
5704 ac_lo=$ac_mid; break
5706 echo "$as_me: failed program was:" >&5
5707 sed 's/^/| /' conftest.$ac_ext >&5
5709 ac_hi=`expr '(' $ac_mid ')' - 1`
5710 if test $ac_mid -le $ac_hi; then
5714 ac_mid=`expr 2 '*' $ac_mid`
5717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5720 echo "$as_me: failed program was:" >&5
5721 sed 's/^/| /' conftest.$ac_ext >&5
5726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5730 # Binary search between lo and hi bounds.
5731 while test "x$ac_lo" != "x$ac_hi"; do
5732 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5733 cat >conftest.$ac_ext <<_ACEOF
5736 cat confdefs.h >>conftest.$ac_ext
5737 cat >>conftest.$ac_ext <<_ACEOF
5738 /* end confdefs.h. */
5739 $ac_includes_default
5740 typedef long ac__type_sizeof_;
5744 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5751 rm -f conftest.$ac_objext
5752 if { (ac_try="$ac_compile"
5754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5755 *) ac_try_echo=$ac_try;;
5757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5758 (eval "$ac_compile") 2>conftest.er1
5760 grep -v '^ *+' conftest.er1 >conftest.err
5762 cat conftest.err >&5
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); } && {
5765 test -z "$ac_c_werror_flag" ||
5766 test ! -s conftest.err
5767 } && test -s conftest.$ac_objext; then
5770 echo "$as_me: failed program was:" >&5
5771 sed 's/^/| /' conftest.$ac_ext >&5
5773 ac_lo=`expr '(' $ac_mid ')' + 1`
5776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5779 ?*) ac_cv_sizeof_long=$ac_lo;;
5780 '') if test "$ac_cv_type_long" = yes; then
5781 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5782 See \`config.log' for more details." >&5
5783 echo "$as_me: error: cannot compute sizeof (long)
5784 See \`config.log' for more details." >&2;}
5785 { (exit 77); exit 77; }; }
5791 cat >conftest.$ac_ext <<_ACEOF
5794 cat confdefs.h >>conftest.$ac_ext
5795 cat >>conftest.$ac_ext <<_ACEOF
5796 /* end confdefs.h. */
5797 $ac_includes_default
5798 typedef long ac__type_sizeof_;
5799 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5800 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5807 FILE *f = fopen ("conftest.val", "w");
5810 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5812 long int i = longval ();
5813 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5815 fprintf (f, "%ld\n", i);
5819 unsigned long int i = ulongval ();
5820 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5822 fprintf (f, "%lu\n", i);
5824 return ferror (f) || fclose (f) != 0;
5830 rm -f conftest$ac_exeext
5831 if { (ac_try="$ac_link"
5833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5834 *) ac_try_echo=$ac_try;;
5836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5837 (eval "$ac_link") 2>&5
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5841 { (case "(($ac_try" in
5842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5843 *) ac_try_echo=$ac_try;;
5845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5846 (eval "$ac_try") 2>&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); }; }; then
5850 ac_cv_sizeof_long=`cat conftest.val`
5852 echo "$as_me: program exited with status $ac_status" >&5
5853 echo "$as_me: failed program was:" >&5
5854 sed 's/^/| /' conftest.$ac_ext >&5
5857 if test "$ac_cv_type_long" = yes; then
5858 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5859 See \`config.log' for more details." >&5
5860 echo "$as_me: error: cannot compute sizeof (long)
5861 See \`config.log' for more details." >&2;}
5862 { (exit 77); exit 77; }; }
5867 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5871 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5872 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
5876 cat >>confdefs.h <<_ACEOF
5877 #define SIZEOF_LONG $ac_cv_sizeof_long
5886 for ac_header in openssl/blowfish.h openssl/des.h openssl/cast.h openssl/aes.h
5888 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5890 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5893 echo $ECHO_N "(cached) $ECHO_C" >&6
5895 ac_res=`eval echo '${'$as_ac_Header'}'`
5896 { echo "$as_me:$LINENO: result: $ac_res" >&5
5897 echo "${ECHO_T}$ac_res" >&6; }
5899 # Is the header compilable?
5900 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5901 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5902 cat >conftest.$ac_ext <<_ACEOF
5905 cat confdefs.h >>conftest.$ac_ext
5906 cat >>conftest.$ac_ext <<_ACEOF
5907 /* end confdefs.h. */
5908 $ac_includes_default
5909 #include <$ac_header>
5911 rm -f conftest.$ac_objext
5912 if { (ac_try="$ac_compile"
5914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5915 *) ac_try_echo=$ac_try;;
5917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5918 (eval "$ac_compile") 2>conftest.er1
5920 grep -v '^ *+' conftest.er1 >conftest.err
5922 cat conftest.err >&5
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); } && {
5925 test -z "$ac_c_werror_flag" ||
5926 test ! -s conftest.err
5927 } && test -s conftest.$ac_objext; then
5928 ac_header_compiler=yes
5930 echo "$as_me: failed program was:" >&5
5931 sed 's/^/| /' conftest.$ac_ext >&5
5933 ac_header_compiler=no
5936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5937 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5938 echo "${ECHO_T}$ac_header_compiler" >&6; }
5940 # Is the header present?
5941 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5942 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5943 cat >conftest.$ac_ext <<_ACEOF
5946 cat confdefs.h >>conftest.$ac_ext
5947 cat >>conftest.$ac_ext <<_ACEOF
5948 /* end confdefs.h. */
5949 #include <$ac_header>
5951 if { (ac_try="$ac_cpp conftest.$ac_ext"
5953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5954 *) ac_try_echo=$ac_try;;
5956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5959 grep -v '^ *+' conftest.er1 >conftest.err
5961 cat conftest.err >&5
5962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963 (exit $ac_status); } >/dev/null && {
5964 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5965 test ! -s conftest.err
5967 ac_header_preproc=yes
5969 echo "$as_me: failed program was:" >&5
5970 sed 's/^/| /' conftest.$ac_ext >&5
5972 ac_header_preproc=no
5975 rm -f conftest.err conftest.$ac_ext
5976 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5977 echo "${ECHO_T}$ac_header_preproc" >&6; }
5979 # So? What about this header?
5980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5982 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5983 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5985 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5986 ac_header_preproc=yes
5989 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5990 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5991 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5992 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5993 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5994 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5995 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5996 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5997 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5998 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5999 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6000 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6002 ## ----------------------------------------------- ##
6003 ## Report this to nettle-bugs@lists.lysator.liu.se ##
6004 ## ----------------------------------------------- ##
6006 ) | sed "s/^/$as_me: WARNING: /" >&2
6009 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6012 echo $ECHO_N "(cached) $ECHO_C" >&6
6014 eval "$as_ac_Header=\$ac_header_preproc"
6016 ac_res=`eval echo '${'$as_ac_Header'}'`
6017 { echo "$as_me:$LINENO: result: $ac_res" >&5
6018 echo "${ECHO_T}$ac_res" >&6; }
6021 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6022 cat >>confdefs.h <<_ACEOF
6023 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6034 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6035 # for constant arguments. Useless!
6036 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
6037 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
6038 if test "${ac_cv_working_alloca_h+set}" = set; then
6039 echo $ECHO_N "(cached) $ECHO_C" >&6
6041 cat >conftest.$ac_ext <<_ACEOF
6044 cat confdefs.h >>conftest.$ac_ext
6045 cat >>conftest.$ac_ext <<_ACEOF
6046 /* end confdefs.h. */
6051 char *p = (char *) alloca (2 * sizeof (int));
6057 rm -f conftest.$ac_objext conftest$ac_exeext
6058 if { (ac_try="$ac_link"
6060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6061 *) ac_try_echo=$ac_try;;
6063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6064 (eval "$ac_link") 2>conftest.er1
6066 grep -v '^ *+' conftest.er1 >conftest.err
6068 cat conftest.err >&5
6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070 (exit $ac_status); } && {
6071 test -z "$ac_c_werror_flag" ||
6072 test ! -s conftest.err
6073 } && test -s conftest$ac_exeext &&
6074 $as_test_x conftest$ac_exeext; then
6075 ac_cv_working_alloca_h=yes
6077 echo "$as_me: failed program was:" >&5
6078 sed 's/^/| /' conftest.$ac_ext >&5
6080 ac_cv_working_alloca_h=no
6083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6084 conftest$ac_exeext conftest.$ac_ext
6086 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6087 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
6088 if test $ac_cv_working_alloca_h = yes; then
6090 cat >>confdefs.h <<\_ACEOF
6091 #define HAVE_ALLOCA_H 1
6096 { echo "$as_me:$LINENO: checking for alloca" >&5
6097 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
6098 if test "${ac_cv_func_alloca_works+set}" = set; then
6099 echo $ECHO_N "(cached) $ECHO_C" >&6
6101 cat >conftest.$ac_ext <<_ACEOF
6104 cat confdefs.h >>conftest.$ac_ext
6105 cat >>conftest.$ac_ext <<_ACEOF
6106 /* end confdefs.h. */
6108 # define alloca __builtin_alloca
6111 # include <malloc.h>
6112 # define alloca _alloca
6114 # ifdef HAVE_ALLOCA_H
6115 # include <alloca.h>
6120 # ifndef alloca /* predefined by HP cc +Olibcalls */
6131 char *p = (char *) alloca (1);
6137 rm -f conftest.$ac_objext conftest$ac_exeext
6138 if { (ac_try="$ac_link"
6140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6141 *) ac_try_echo=$ac_try;;
6143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6144 (eval "$ac_link") 2>conftest.er1
6146 grep -v '^ *+' conftest.er1 >conftest.err
6148 cat conftest.err >&5
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); } && {
6151 test -z "$ac_c_werror_flag" ||
6152 test ! -s conftest.err
6153 } && test -s conftest$ac_exeext &&
6154 $as_test_x conftest$ac_exeext; then
6155 ac_cv_func_alloca_works=yes
6157 echo "$as_me: failed program was:" >&5
6158 sed 's/^/| /' conftest.$ac_ext >&5
6160 ac_cv_func_alloca_works=no
6163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6164 conftest$ac_exeext conftest.$ac_ext
6166 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6167 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
6169 if test $ac_cv_func_alloca_works = yes; then
6171 cat >>confdefs.h <<\_ACEOF
6172 #define HAVE_ALLOCA 1
6176 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6177 # that cause trouble. Some versions do not even contain alloca or
6178 # contain a buggy version. If you still want to use their alloca,
6179 # use ar to extract alloca.o from them instead of compiling alloca.c.
6181 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6183 cat >>confdefs.h <<\_ACEOF
6188 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6189 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
6190 if test "${ac_cv_os_cray+set}" = set; then
6191 echo $ECHO_N "(cached) $ECHO_C" >&6
6193 cat >conftest.$ac_ext <<_ACEOF
6196 cat confdefs.h >>conftest.$ac_ext
6197 cat >>conftest.$ac_ext <<_ACEOF
6198 /* end confdefs.h. */
6199 #if defined CRAY && ! defined CRAY2
6206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6207 $EGREP "webecray" >/dev/null 2>&1; then
6215 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6216 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
6217 if test $ac_cv_os_cray = yes; then
6218 for ac_func in _getb67 GETB67 getb67; do
6219 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6220 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6222 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6223 echo $ECHO_N "(cached) $ECHO_C" >&6
6225 cat >conftest.$ac_ext <<_ACEOF
6228 cat confdefs.h >>conftest.$ac_ext
6229 cat >>conftest.$ac_ext <<_ACEOF
6230 /* end confdefs.h. */
6231 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6233 #define $ac_func innocuous_$ac_func
6235 /* System header to define __stub macros and hopefully few prototypes,
6236 which can conflict with char $ac_func (); below.
6237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6238 <limits.h> exists even on freestanding compilers. */
6241 # include <limits.h>
6243 # include <assert.h>
6248 /* Override any GCC internal prototype to avoid an error.
6249 Use char because int might match the return type of a GCC
6250 builtin and then its argument prototype would still apply. */
6255 /* The GNU C library defines this for functions which it implements
6256 to always fail with ENOSYS. Some functions are actually named
6257 something starting with __ and the normal name is an alias. */
6258 #if defined __stub_$ac_func || defined __stub___$ac_func
6270 rm -f conftest.$ac_objext conftest$ac_exeext
6271 if { (ac_try="$ac_link"
6273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6274 *) ac_try_echo=$ac_try;;
6276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6277 (eval "$ac_link") 2>conftest.er1
6279 grep -v '^ *+' conftest.er1 >conftest.err
6281 cat conftest.err >&5
6282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); } && {
6284 test -z "$ac_c_werror_flag" ||
6285 test ! -s conftest.err
6286 } && test -s conftest$ac_exeext &&
6287 $as_test_x conftest$ac_exeext; then
6288 eval "$as_ac_var=yes"
6290 echo "$as_me: failed program was:" >&5
6291 sed 's/^/| /' conftest.$ac_ext >&5
6293 eval "$as_ac_var=no"
6296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6297 conftest$ac_exeext conftest.$ac_ext
6299 ac_res=`eval echo '${'$as_ac_var'}'`
6300 { echo "$as_me:$LINENO: result: $ac_res" >&5
6301 echo "${ECHO_T}$ac_res" >&6; }
6302 if test `eval echo '${'$as_ac_var'}'` = yes; then
6304 cat >>confdefs.h <<_ACEOF
6305 #define CRAY_STACKSEG_END $ac_func
6314 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6315 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
6316 if test "${ac_cv_c_stack_direction+set}" = set; then
6317 echo $ECHO_N "(cached) $ECHO_C" >&6
6319 if test "$cross_compiling" = yes; then
6320 ac_cv_c_stack_direction=0
6322 cat >conftest.$ac_ext <<_ACEOF
6325 cat confdefs.h >>conftest.$ac_ext
6326 cat >>conftest.$ac_ext <<_ACEOF
6327 /* end confdefs.h. */
6328 $ac_includes_default
6330 find_stack_direction ()
6332 static char *addr = 0;
6337 return find_stack_direction ();
6340 return (&dummy > addr) ? 1 : -1;
6346 return find_stack_direction () < 0;
6349 rm -f conftest$ac_exeext
6350 if { (ac_try="$ac_link"
6352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6353 *) ac_try_echo=$ac_try;;
6355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6356 (eval "$ac_link") 2>&5
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6360 { (case "(($ac_try" in
6361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6362 *) ac_try_echo=$ac_try;;
6364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6365 (eval "$ac_try") 2>&5
6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); }; }; then
6369 ac_cv_c_stack_direction=1
6371 echo "$as_me: program exited with status $ac_status" >&5
6372 echo "$as_me: failed program was:" >&5
6373 sed 's/^/| /' conftest.$ac_ext >&5
6376 ac_cv_c_stack_direction=-1
6378 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6383 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6384 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
6386 cat >>confdefs.h <<_ACEOF
6387 #define STACK_DIRECTION $ac_cv_c_stack_direction
6394 for ac_header in malloc.h
6396 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6398 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6401 echo $ECHO_N "(cached) $ECHO_C" >&6
6403 ac_res=`eval echo '${'$as_ac_Header'}'`
6404 { echo "$as_me:$LINENO: result: $ac_res" >&5
6405 echo "${ECHO_T}$ac_res" >&6; }
6407 # Is the header compilable?
6408 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6409 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6410 cat >conftest.$ac_ext <<_ACEOF
6413 cat confdefs.h >>conftest.$ac_ext
6414 cat >>conftest.$ac_ext <<_ACEOF
6415 /* end confdefs.h. */
6416 $ac_includes_default
6417 #include <$ac_header>
6419 rm -f conftest.$ac_objext
6420 if { (ac_try="$ac_compile"
6422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6423 *) ac_try_echo=$ac_try;;
6425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6426 (eval "$ac_compile") 2>conftest.er1
6428 grep -v '^ *+' conftest.er1 >conftest.err
6430 cat conftest.err >&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); } && {
6433 test -z "$ac_c_werror_flag" ||
6434 test ! -s conftest.err
6435 } && test -s conftest.$ac_objext; then
6436 ac_header_compiler=yes
6438 echo "$as_me: failed program was:" >&5
6439 sed 's/^/| /' conftest.$ac_ext >&5
6441 ac_header_compiler=no
6444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6445 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6446 echo "${ECHO_T}$ac_header_compiler" >&6; }
6448 # Is the header present?
6449 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6450 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6451 cat >conftest.$ac_ext <<_ACEOF
6454 cat confdefs.h >>conftest.$ac_ext
6455 cat >>conftest.$ac_ext <<_ACEOF
6456 /* end confdefs.h. */
6457 #include <$ac_header>
6459 if { (ac_try="$ac_cpp conftest.$ac_ext"
6461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6462 *) ac_try_echo=$ac_try;;
6464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6465 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6467 grep -v '^ *+' conftest.er1 >conftest.err
6469 cat conftest.err >&5
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); } >/dev/null && {
6472 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6473 test ! -s conftest.err
6475 ac_header_preproc=yes
6477 echo "$as_me: failed program was:" >&5
6478 sed 's/^/| /' conftest.$ac_ext >&5
6480 ac_header_preproc=no
6483 rm -f conftest.err conftest.$ac_ext
6484 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6485 echo "${ECHO_T}$ac_header_preproc" >&6; }
6487 # So? What about this header?
6488 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6490 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6491 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6493 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6494 ac_header_preproc=yes
6497 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6498 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6499 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6500 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6501 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6502 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6503 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6504 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6506 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6507 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6508 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6510 ## ----------------------------------------------- ##
6511 ## Report this to nettle-bugs@lists.lysator.liu.se ##
6512 ## ----------------------------------------------- ##
6514 ) | sed "s/^/$as_me: WARNING: /" >&2
6517 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6520 echo $ECHO_N "(cached) $ECHO_C" >&6
6522 eval "$as_ac_Header=\$ac_header_preproc"
6524 ac_res=`eval echo '${'$as_ac_Header'}'`
6525 { echo "$as_me:$LINENO: result: $ac_res" >&5
6526 echo "${ECHO_T}$ac_res" >&6; }
6529 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6530 cat >>confdefs.h <<_ACEOF
6531 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6541 # Needed by the supplied memcmp.c
6542 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6543 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
6544 if test "${ac_cv_c_bigendian+set}" = set; then
6545 echo $ECHO_N "(cached) $ECHO_C" >&6
6547 # See if sys/param.h defines the BYTE_ORDER macro.
6548 cat >conftest.$ac_ext <<_ACEOF
6551 cat confdefs.h >>conftest.$ac_ext
6552 cat >>conftest.$ac_ext <<_ACEOF
6553 /* end confdefs.h. */
6554 #include <sys/types.h>
6555 #include <sys/param.h>
6560 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
6561 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
6569 rm -f conftest.$ac_objext
6570 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
6578 grep -v '^ *+' conftest.er1 >conftest.err
6580 cat conftest.err >&5
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); } && {
6583 test -z "$ac_c_werror_flag" ||
6584 test ! -s conftest.err
6585 } && test -s conftest.$ac_objext; then
6586 # It does; now see whether it defined to BIG_ENDIAN or not.
6587 cat >conftest.$ac_ext <<_ACEOF
6590 cat confdefs.h >>conftest.$ac_ext
6591 cat >>conftest.$ac_ext <<_ACEOF
6592 /* end confdefs.h. */
6593 #include <sys/types.h>
6594 #include <sys/param.h>
6599 #if BYTE_ORDER != BIG_ENDIAN
6607 rm -f conftest.$ac_objext
6608 if { (ac_try="$ac_compile"
6610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6611 *) ac_try_echo=$ac_try;;
6613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6614 (eval "$ac_compile") 2>conftest.er1
6616 grep -v '^ *+' conftest.er1 >conftest.err
6618 cat conftest.err >&5
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); } && {
6621 test -z "$ac_c_werror_flag" ||
6622 test ! -s conftest.err
6623 } && test -s conftest.$ac_objext; then
6624 ac_cv_c_bigendian=yes
6626 echo "$as_me: failed program was:" >&5
6627 sed 's/^/| /' conftest.$ac_ext >&5
6629 ac_cv_c_bigendian=no
6632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6634 echo "$as_me: failed program was:" >&5
6635 sed 's/^/| /' conftest.$ac_ext >&5
6637 # It does not; compile a test program.
6638 if test "$cross_compiling" = yes; then
6639 # try to guess the endianness by grepping values into an object file
6640 ac_cv_c_bigendian=unknown
6641 cat >conftest.$ac_ext <<_ACEOF
6644 cat confdefs.h >>conftest.$ac_ext
6645 cat >>conftest.$ac_ext <<_ACEOF
6646 /* end confdefs.h. */
6647 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6648 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6649 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
6650 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6651 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6652 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
6656 _ascii (); _ebcdic ();
6661 rm -f conftest.$ac_objext
6662 if { (ac_try="$ac_compile"
6664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6665 *) ac_try_echo=$ac_try;;
6667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6668 (eval "$ac_compile") 2>conftest.er1
6670 grep -v '^ *+' conftest.er1 >conftest.err
6672 cat conftest.err >&5
6673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); } && {
6675 test -z "$ac_c_werror_flag" ||
6676 test ! -s conftest.err
6677 } && test -s conftest.$ac_objext; then
6678 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
6679 ac_cv_c_bigendian=yes
6681 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6682 if test "$ac_cv_c_bigendian" = unknown; then
6683 ac_cv_c_bigendian=no
6685 # finding both strings is unlikely to happen, but who knows?
6686 ac_cv_c_bigendian=unknown
6690 echo "$as_me: failed program was:" >&5
6691 sed 's/^/| /' conftest.$ac_ext >&5
6696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6698 cat >conftest.$ac_ext <<_ACEOF
6701 cat confdefs.h >>conftest.$ac_ext
6702 cat >>conftest.$ac_ext <<_ACEOF
6703 /* end confdefs.h. */
6704 $ac_includes_default
6709 /* Are we little or big endian? From Harbison&Steele. */
6713 char c[sizeof (long int)];
6716 return u.c[sizeof (long int) - 1] == 1;
6722 rm -f conftest$ac_exeext
6723 if { (ac_try="$ac_link"
6725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6726 *) ac_try_echo=$ac_try;;
6728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6729 (eval "$ac_link") 2>&5
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6733 { (case "(($ac_try" in
6734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6735 *) ac_try_echo=$ac_try;;
6737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6738 (eval "$ac_try") 2>&5
6740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741 (exit $ac_status); }; }; then
6742 ac_cv_c_bigendian=no
6744 echo "$as_me: program exited with status $ac_status" >&5
6745 echo "$as_me: failed program was:" >&5
6746 sed 's/^/| /' conftest.$ac_ext >&5
6749 ac_cv_c_bigendian=yes
6751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6759 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6760 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
6761 case $ac_cv_c_bigendian in
6764 cat >>confdefs.h <<\_ACEOF
6765 #define WORDS_BIGENDIAN 1
6771 { { echo "$as_me:$LINENO: error: unknown endianness
6772 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
6773 echo "$as_me: error: unknown endianness
6774 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
6775 { (exit 1); exit 1; }; } ;;
6779 for ac_func in memxor
6781 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6782 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6783 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6784 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6785 echo $ECHO_N "(cached) $ECHO_C" >&6
6787 cat >conftest.$ac_ext <<_ACEOF
6790 cat confdefs.h >>conftest.$ac_ext
6791 cat >>conftest.$ac_ext <<_ACEOF
6792 /* end confdefs.h. */
6793 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6795 #define $ac_func innocuous_$ac_func
6797 /* System header to define __stub macros and hopefully few prototypes,
6798 which can conflict with char $ac_func (); below.
6799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6800 <limits.h> exists even on freestanding compilers. */
6803 # include <limits.h>
6805 # include <assert.h>
6810 /* Override any GCC internal prototype to avoid an error.
6811 Use char because int might match the return type of a GCC
6812 builtin and then its argument prototype would still apply. */
6817 /* The GNU C library defines this for functions which it implements
6818 to always fail with ENOSYS. Some functions are actually named
6819 something starting with __ and the normal name is an alias. */
6820 #if defined __stub_$ac_func || defined __stub___$ac_func
6832 rm -f conftest.$ac_objext conftest$ac_exeext
6833 if { (ac_try="$ac_link"
6835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6836 *) ac_try_echo=$ac_try;;
6838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6839 (eval "$ac_link") 2>conftest.er1
6841 grep -v '^ *+' conftest.er1 >conftest.err
6843 cat conftest.err >&5
6844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845 (exit $ac_status); } && {
6846 test -z "$ac_c_werror_flag" ||
6847 test ! -s conftest.err
6848 } && test -s conftest$ac_exeext &&
6849 $as_test_x conftest$ac_exeext; then
6850 eval "$as_ac_var=yes"
6852 echo "$as_me: failed program was:" >&5
6853 sed 's/^/| /' conftest.$ac_ext >&5
6855 eval "$as_ac_var=no"
6858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6859 conftest$ac_exeext conftest.$ac_ext
6861 ac_res=`eval echo '${'$as_ac_var'}'`
6862 { echo "$as_me:$LINENO: result: $ac_res" >&5
6863 echo "${ECHO_T}$ac_res" >&6; }
6864 if test `eval echo '${'$as_ac_var'}'` = yes; then
6865 cat >>confdefs.h <<_ACEOF
6866 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6870 case " $LIBOBJS " in
6871 *" $ac_func.$ac_objext "* ) ;;
6872 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6881 { echo "$as_me:$LINENO: checking for __attribute__" >&5
6882 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
6883 if test "${lsh_cv_c_attribute+set}" = set; then
6884 echo $ECHO_N "(cached) $ECHO_C" >&6
6886 cat >conftest.$ac_ext <<_ACEOF
6889 cat confdefs.h >>conftest.$ac_ext
6890 cat >>conftest.$ac_ext <<_ACEOF
6891 /* end confdefs.h. */
6895 static void foo(void) __attribute__ ((noreturn));
6897 static void __attribute__ ((noreturn))
6911 rm -f conftest.$ac_objext
6912 if { (ac_try="$ac_compile"
6914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6915 *) ac_try_echo=$ac_try;;
6917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6918 (eval "$ac_compile") 2>conftest.er1
6920 grep -v '^ *+' conftest.er1 >conftest.err
6922 cat conftest.err >&5
6923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924 (exit $ac_status); } && {
6925 test -z "$ac_c_werror_flag" ||
6926 test ! -s conftest.err
6927 } && test -s conftest.$ac_objext; then
6928 lsh_cv_c_attribute=yes
6930 echo "$as_me: failed program was:" >&5
6931 sed 's/^/| /' conftest.$ac_ext >&5
6933 lsh_cv_c_attribute=no
6936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6938 { echo "$as_me:$LINENO: result: $lsh_cv_c_attribute" >&5
6939 echo "${ECHO_T}$lsh_cv_c_attribute" >&6; }
6943 if test "x$lsh_cv_c_attribute" = "xyes"; then
6944 cat >>confdefs.h <<\_ACEOF
6945 #define HAVE_GCC_ATTRIBUTE 1
6953 # According to Simon Josefsson, looking for uint32_t and friends in
6954 # sys/types.h is needed on some systems, in particular cygwin.
6955 # ------ AX CREATE STDINT H -------------------------------------
6956 { echo "$as_me:$LINENO: checking for stdint types" >&5
6957 echo $ECHO_N "checking for stdint types... $ECHO_C" >&6; }
6958 ac_stdint_h=`echo nettle-stdint.h`
6959 # try to shortcircuit - if the default include path of the compiler
6960 # can find a "stdint.h" header then we assume that all compilers can.
6961 if test "${ac_cv_header_stdint_t+set}" = set; then
6962 echo $ECHO_N "(cached) $ECHO_C" >&6
6965 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
6966 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
6967 old_CFLAGS="$CFLAGS" ; CFLAGS=""
6968 cat >conftest.$ac_ext <<_ACEOF
6971 cat confdefs.h >>conftest.$ac_ext
6972 cat >>conftest.$ac_ext <<_ACEOF
6973 /* end confdefs.h. */
6978 int_least32_t v = 0;
6983 rm -f conftest.$ac_objext
6984 if { (ac_try="$ac_compile"
6986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6987 *) ac_try_echo=$ac_try;;
6989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6990 (eval "$ac_compile") 2>conftest.er1
6992 grep -v '^ *+' conftest.er1 >conftest.err
6994 cat conftest.err >&5
6995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996 (exit $ac_status); } && {
6997 test -z "$ac_c_werror_flag" ||
6998 test ! -s conftest.err
6999 } && test -s conftest.$ac_objext; then
7000 ac_cv_stdint_result="(assuming C99 compatible system)"
7001 ac_cv_header_stdint_t="stdint.h";
7003 echo "$as_me: failed program was:" >&5
7004 sed 's/^/| /' conftest.$ac_ext >&5
7006 ac_cv_header_stdint_t=""
7009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7010 CXXFLAGS="$old_CXXFLAGS"
7011 CPPFLAGS="$old_CPPFLAGS"
7012 CFLAGS="$old_CFLAGS"
7016 v="... $ac_cv_header_stdint_h"
7017 if test "$ac_stdint_h" = "stdint.h" ; then
7018 { echo "$as_me:$LINENO: result: (are you sure you want them in ./stdint.h?)" >&5
7019 echo "${ECHO_T}(are you sure you want them in ./stdint.h?)" >&6; }
7020 elif test "$ac_stdint_h" = "inttypes.h" ; then
7021 { echo "$as_me:$LINENO: result: (are you sure you want them in ./inttypes.h?)" >&5
7022 echo "${ECHO_T}(are you sure you want them in ./inttypes.h?)" >&6; }
7023 elif test "_$ac_cv_header_stdint_t" = "_" ; then
7024 { echo "$as_me:$LINENO: result: (putting them into $ac_stdint_h)$v" >&5
7025 echo "${ECHO_T}(putting them into $ac_stdint_h)$v" >&6; }
7027 ac_cv_header_stdint="$ac_cv_header_stdint_t"
7028 { echo "$as_me:$LINENO: result: $ac_cv_header_stdint (shortcircuit)" >&5
7029 echo "${ECHO_T}$ac_cv_header_stdint (shortcircuit)" >&6; }
7032 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
7035 inttype_headers=`echo sys/types.h | sed -e 's/,/ /g'`
7037 ac_cv_stdint_result="(no helpful system typedefs seen)"
7038 { echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
7039 echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6; }
7040 if test "${ac_cv_header_stdint_x+set}" = set; then
7041 echo $ECHO_N "(cached) $ECHO_C" >&6
7044 ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
7045 { echo "$as_me:$LINENO: result: (..)" >&5
7046 echo "${ECHO_T}(..)" >&6; }
7047 for i in stdint.h inttypes.h sys/inttypes.h $inttype_headers ; do
7048 unset ac_cv_type_uintptr_t
7049 unset ac_cv_type_uint64_t
7050 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
7051 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
7052 if test "${ac_cv_type_uintptr_t+set}" = set; then
7053 echo $ECHO_N "(cached) $ECHO_C" >&6
7055 cat >conftest.$ac_ext <<_ACEOF
7058 cat confdefs.h >>conftest.$ac_ext
7059 cat >>conftest.$ac_ext <<_ACEOF
7060 /* end confdefs.h. */
7063 typedef uintptr_t ac__type_new_;
7067 if ((ac__type_new_ *) 0)
7069 if (sizeof (ac__type_new_))
7075 rm -f conftest.$ac_objext
7076 if { (ac_try="$ac_compile"
7078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7079 *) ac_try_echo=$ac_try;;
7081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7082 (eval "$ac_compile") 2>conftest.er1
7084 grep -v '^ *+' conftest.er1 >conftest.err
7086 cat conftest.err >&5
7087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088 (exit $ac_status); } && {
7089 test -z "$ac_c_werror_flag" ||
7090 test ! -s conftest.err
7091 } && test -s conftest.$ac_objext; then
7092 ac_cv_type_uintptr_t=yes
7094 echo "$as_me: failed program was:" >&5
7095 sed 's/^/| /' conftest.$ac_ext >&5
7097 ac_cv_type_uintptr_t=no
7100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7102 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
7103 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
7104 if test $ac_cv_type_uintptr_t = yes; then
7105 ac_cv_header_stdint_x=$i
7110 { echo "$as_me:$LINENO: checking for uint64_t" >&5
7111 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
7112 if test "${ac_cv_type_uint64_t+set}" = set; then
7113 echo $ECHO_N "(cached) $ECHO_C" >&6
7115 cat >conftest.$ac_ext <<_ACEOF
7118 cat confdefs.h >>conftest.$ac_ext
7119 cat >>conftest.$ac_ext <<_ACEOF
7120 /* end confdefs.h. */
7123 typedef uint64_t ac__type_new_;
7127 if ((ac__type_new_ *) 0)
7129 if (sizeof (ac__type_new_))
7135 rm -f conftest.$ac_objext
7136 if { (ac_try="$ac_compile"
7138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7139 *) ac_try_echo=$ac_try;;
7141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7142 (eval "$ac_compile") 2>conftest.er1
7144 grep -v '^ *+' conftest.er1 >conftest.err
7146 cat conftest.err >&5
7147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148 (exit $ac_status); } && {
7149 test -z "$ac_c_werror_flag" ||
7150 test ! -s conftest.err
7151 } && test -s conftest.$ac_objext; then
7152 ac_cv_type_uint64_t=yes
7154 echo "$as_me: failed program was:" >&5
7155 sed 's/^/| /' conftest.$ac_ext >&5
7157 ac_cv_type_uint64_t=no
7160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7162 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
7163 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
7164 if test $ac_cv_type_uint64_t = yes; then
7170 ac_cv_stdint_result="(seen uintptr_t$and64 in $i)"
7173 { echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
7174 echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6; }
7177 { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_x" >&5
7178 echo "${ECHO_T}$ac_cv_header_stdint_x" >&6; }
7180 if test "_$ac_cv_header_stdint_x" = "_" ; then
7181 { echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
7182 echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6; }
7183 if test "${ac_cv_header_stdint_o+set}" = set; then
7184 echo $ECHO_N "(cached) $ECHO_C" >&6
7187 ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
7188 { echo "$as_me:$LINENO: result: (..)" >&5
7189 echo "${ECHO_T}(..)" >&6; }
7190 for i in inttypes.h sys/inttypes.h stdint.h $inttype_headers ; do
7191 unset ac_cv_type_uint32_t
7192 unset ac_cv_type_uint64_t
7193 { echo "$as_me:$LINENO: checking for uint32_t" >&5
7194 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
7195 if test "${ac_cv_type_uint32_t+set}" = set; then
7196 echo $ECHO_N "(cached) $ECHO_C" >&6
7198 cat >conftest.$ac_ext <<_ACEOF
7201 cat confdefs.h >>conftest.$ac_ext
7202 cat >>conftest.$ac_ext <<_ACEOF
7203 /* end confdefs.h. */
7206 typedef uint32_t ac__type_new_;
7210 if ((ac__type_new_ *) 0)
7212 if (sizeof (ac__type_new_))
7218 rm -f conftest.$ac_objext
7219 if { (ac_try="$ac_compile"
7221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7222 *) ac_try_echo=$ac_try;;
7224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7225 (eval "$ac_compile") 2>conftest.er1
7227 grep -v '^ *+' conftest.er1 >conftest.err
7229 cat conftest.err >&5
7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); } && {
7232 test -z "$ac_c_werror_flag" ||
7233 test ! -s conftest.err
7234 } && test -s conftest.$ac_objext; then
7235 ac_cv_type_uint32_t=yes
7237 echo "$as_me: failed program was:" >&5
7238 sed 's/^/| /' conftest.$ac_ext >&5
7240 ac_cv_type_uint32_t=no
7243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7245 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
7246 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
7247 if test $ac_cv_type_uint32_t = yes; then
7248 ac_cv_header_stdint_o=$i
7253 { echo "$as_me:$LINENO: checking for uint64_t" >&5
7254 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
7255 if test "${ac_cv_type_uint64_t+set}" = set; then
7256 echo $ECHO_N "(cached) $ECHO_C" >&6
7258 cat >conftest.$ac_ext <<_ACEOF
7261 cat confdefs.h >>conftest.$ac_ext
7262 cat >>conftest.$ac_ext <<_ACEOF
7263 /* end confdefs.h. */
7266 typedef uint64_t ac__type_new_;
7270 if ((ac__type_new_ *) 0)
7272 if (sizeof (ac__type_new_))
7278 rm -f conftest.$ac_objext
7279 if { (ac_try="$ac_compile"
7281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7282 *) ac_try_echo=$ac_try;;
7284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7285 (eval "$ac_compile") 2>conftest.er1
7287 grep -v '^ *+' conftest.er1 >conftest.err
7289 cat conftest.err >&5
7290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291 (exit $ac_status); } && {
7292 test -z "$ac_c_werror_flag" ||
7293 test ! -s conftest.err
7294 } && test -s conftest.$ac_objext; then
7295 ac_cv_type_uint64_t=yes
7297 echo "$as_me: failed program was:" >&5
7298 sed 's/^/| /' conftest.$ac_ext >&5
7300 ac_cv_type_uint64_t=no
7303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7305 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
7306 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
7307 if test $ac_cv_type_uint64_t = yes; then
7313 ac_cv_stdint_result="(seen uint32_t$and64 in $i)"
7316 { echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
7317 echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6; }
7320 { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_o" >&5
7321 echo "${ECHO_T}$ac_cv_header_stdint_o" >&6; }
7324 if test "_$ac_cv_header_stdint_x" = "_" ; then
7325 if test "_$ac_cv_header_stdint_o" = "_" ; then
7326 { echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5
7327 echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6; }
7328 if test "${ac_cv_header_stdint_u+set}" = set; then
7329 echo $ECHO_N "(cached) $ECHO_C" >&6
7332 ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
7333 { echo "$as_me:$LINENO: result: (..)" >&5
7334 echo "${ECHO_T}(..)" >&6; }
7335 for i in sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
7336 unset ac_cv_type_u_int32_t
7337 unset ac_cv_type_u_int64_t
7338 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
7339 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
7340 if test "${ac_cv_type_u_int32_t+set}" = set; then
7341 echo $ECHO_N "(cached) $ECHO_C" >&6
7343 cat >conftest.$ac_ext <<_ACEOF
7346 cat confdefs.h >>conftest.$ac_ext
7347 cat >>conftest.$ac_ext <<_ACEOF
7348 /* end confdefs.h. */
7351 typedef u_int32_t ac__type_new_;
7355 if ((ac__type_new_ *) 0)
7357 if (sizeof (ac__type_new_))
7363 rm -f conftest.$ac_objext
7364 if { (ac_try="$ac_compile"
7366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7367 *) ac_try_echo=$ac_try;;
7369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7370 (eval "$ac_compile") 2>conftest.er1
7372 grep -v '^ *+' conftest.er1 >conftest.err
7374 cat conftest.err >&5
7375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376 (exit $ac_status); } && {
7377 test -z "$ac_c_werror_flag" ||
7378 test ! -s conftest.err
7379 } && test -s conftest.$ac_objext; then
7380 ac_cv_type_u_int32_t=yes
7382 echo "$as_me: failed program was:" >&5
7383 sed 's/^/| /' conftest.$ac_ext >&5
7385 ac_cv_type_u_int32_t=no
7388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7390 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
7391 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
7392 if test $ac_cv_type_u_int32_t = yes; then
7393 ac_cv_header_stdint_u=$i
7398 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
7399 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
7400 if test "${ac_cv_type_u_int64_t+set}" = set; then
7401 echo $ECHO_N "(cached) $ECHO_C" >&6
7403 cat >conftest.$ac_ext <<_ACEOF
7406 cat confdefs.h >>conftest.$ac_ext
7407 cat >>conftest.$ac_ext <<_ACEOF
7408 /* end confdefs.h. */
7411 typedef u_int64_t ac__type_new_;
7415 if ((ac__type_new_ *) 0)
7417 if (sizeof (ac__type_new_))
7423 rm -f conftest.$ac_objext
7424 if { (ac_try="$ac_compile"
7426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7427 *) ac_try_echo=$ac_try;;
7429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7430 (eval "$ac_compile") 2>conftest.er1
7432 grep -v '^ *+' conftest.er1 >conftest.err
7434 cat conftest.err >&5
7435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436 (exit $ac_status); } && {
7437 test -z "$ac_c_werror_flag" ||
7438 test ! -s conftest.err
7439 } && test -s conftest.$ac_objext; then
7440 ac_cv_type_u_int64_t=yes
7442 echo "$as_me: failed program was:" >&5
7443 sed 's/^/| /' conftest.$ac_ext >&5
7445 ac_cv_type_u_int64_t=no
7448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7450 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
7451 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
7452 if test $ac_cv_type_u_int64_t = yes; then
7458 ac_cv_stdint_result="(seen u_int32_t$and64 in $i)"
7461 { echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5
7462 echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6; }
7465 { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_u" >&5
7466 echo "${ECHO_T}$ac_cv_header_stdint_u" >&6; }
7469 if test "_$ac_cv_header_stdint_x" = "_" ; then
7470 { echo "$as_me:$LINENO: checking for stdint datatype model" >&5
7471 echo $ECHO_N "checking for stdint datatype model... $ECHO_C" >&6; }
7472 { echo "$as_me:$LINENO: result: (..)" >&5
7473 echo "${ECHO_T}(..)" >&6; }
7474 { echo "$as_me:$LINENO: checking for char" >&5
7475 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
7476 if test "${ac_cv_type_char+set}" = set; then
7477 echo $ECHO_N "(cached) $ECHO_C" >&6
7479 cat >conftest.$ac_ext <<_ACEOF
7482 cat confdefs.h >>conftest.$ac_ext
7483 cat >>conftest.$ac_ext <<_ACEOF
7484 /* end confdefs.h. */
7485 $ac_includes_default
7486 typedef char ac__type_new_;
7490 if ((ac__type_new_ *) 0)
7492 if (sizeof (ac__type_new_))
7498 rm -f conftest.$ac_objext
7499 if { (ac_try="$ac_compile"
7501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7502 *) ac_try_echo=$ac_try;;
7504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7505 (eval "$ac_compile") 2>conftest.er1
7507 grep -v '^ *+' conftest.er1 >conftest.err
7509 cat conftest.err >&5
7510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511 (exit $ac_status); } && {
7512 test -z "$ac_c_werror_flag" ||
7513 test ! -s conftest.err
7514 } && test -s conftest.$ac_objext; then
7517 echo "$as_me: failed program was:" >&5
7518 sed 's/^/| /' conftest.$ac_ext >&5
7523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7525 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
7526 echo "${ECHO_T}$ac_cv_type_char" >&6; }
7528 # The cast to long int works around a bug in the HP C Compiler
7529 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7530 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7531 # This bug is HP SR number 8606223364.
7532 { echo "$as_me:$LINENO: checking size of char" >&5
7533 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
7534 if test "${ac_cv_sizeof_char+set}" = set; then
7535 echo $ECHO_N "(cached) $ECHO_C" >&6
7537 if test "$cross_compiling" = yes; then
7538 # Depending upon the size, compute the lo and hi bounds.
7539 cat >conftest.$ac_ext <<_ACEOF
7542 cat confdefs.h >>conftest.$ac_ext
7543 cat >>conftest.$ac_ext <<_ACEOF
7544 /* end confdefs.h. */
7545 $ac_includes_default
7546 typedef char ac__type_sizeof_;
7550 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7557 rm -f conftest.$ac_objext
7558 if { (ac_try="$ac_compile"
7560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7561 *) ac_try_echo=$ac_try;;
7563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7564 (eval "$ac_compile") 2>conftest.er1
7566 grep -v '^ *+' conftest.er1 >conftest.err
7568 cat conftest.err >&5
7569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570 (exit $ac_status); } && {
7571 test -z "$ac_c_werror_flag" ||
7572 test ! -s conftest.err
7573 } && test -s conftest.$ac_objext; then
7576 cat >conftest.$ac_ext <<_ACEOF
7579 cat confdefs.h >>conftest.$ac_ext
7580 cat >>conftest.$ac_ext <<_ACEOF
7581 /* end confdefs.h. */
7582 $ac_includes_default
7583 typedef char ac__type_sizeof_;
7587 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7594 rm -f conftest.$ac_objext
7595 if { (ac_try="$ac_compile"
7597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7598 *) ac_try_echo=$ac_try;;
7600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7601 (eval "$ac_compile") 2>conftest.er1
7603 grep -v '^ *+' conftest.er1 >conftest.err
7605 cat conftest.err >&5
7606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607 (exit $ac_status); } && {
7608 test -z "$ac_c_werror_flag" ||
7609 test ! -s conftest.err
7610 } && test -s conftest.$ac_objext; then
7611 ac_hi=$ac_mid; break
7613 echo "$as_me: failed program was:" >&5
7614 sed 's/^/| /' conftest.$ac_ext >&5
7616 ac_lo=`expr $ac_mid + 1`
7617 if test $ac_lo -le $ac_mid; then
7621 ac_mid=`expr 2 '*' $ac_mid + 1`
7624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7627 echo "$as_me: failed program was:" >&5
7628 sed 's/^/| /' conftest.$ac_ext >&5
7630 cat >conftest.$ac_ext <<_ACEOF
7633 cat confdefs.h >>conftest.$ac_ext
7634 cat >>conftest.$ac_ext <<_ACEOF
7635 /* end confdefs.h. */
7636 $ac_includes_default
7637 typedef char ac__type_sizeof_;
7641 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7648 rm -f conftest.$ac_objext
7649 if { (ac_try="$ac_compile"
7651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7652 *) ac_try_echo=$ac_try;;
7654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7655 (eval "$ac_compile") 2>conftest.er1
7657 grep -v '^ *+' conftest.er1 >conftest.err
7659 cat conftest.err >&5
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); } && {
7662 test -z "$ac_c_werror_flag" ||
7663 test ! -s conftest.err
7664 } && test -s conftest.$ac_objext; then
7667 cat >conftest.$ac_ext <<_ACEOF
7670 cat confdefs.h >>conftest.$ac_ext
7671 cat >>conftest.$ac_ext <<_ACEOF
7672 /* end confdefs.h. */
7673 $ac_includes_default
7674 typedef char ac__type_sizeof_;
7678 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7685 rm -f conftest.$ac_objext
7686 if { (ac_try="$ac_compile"
7688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7689 *) ac_try_echo=$ac_try;;
7691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7692 (eval "$ac_compile") 2>conftest.er1
7694 grep -v '^ *+' conftest.er1 >conftest.err
7696 cat conftest.err >&5
7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698 (exit $ac_status); } && {
7699 test -z "$ac_c_werror_flag" ||
7700 test ! -s conftest.err
7701 } && test -s conftest.$ac_objext; then
7702 ac_lo=$ac_mid; break
7704 echo "$as_me: failed program was:" >&5
7705 sed 's/^/| /' conftest.$ac_ext >&5
7707 ac_hi=`expr '(' $ac_mid ')' - 1`
7708 if test $ac_mid -le $ac_hi; then
7712 ac_mid=`expr 2 '*' $ac_mid`
7715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7718 echo "$as_me: failed program was:" >&5
7719 sed 's/^/| /' conftest.$ac_ext >&5
7724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7728 # Binary search between lo and hi bounds.
7729 while test "x$ac_lo" != "x$ac_hi"; do
7730 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7731 cat >conftest.$ac_ext <<_ACEOF
7734 cat confdefs.h >>conftest.$ac_ext
7735 cat >>conftest.$ac_ext <<_ACEOF
7736 /* end confdefs.h. */
7737 $ac_includes_default
7738 typedef char ac__type_sizeof_;
7742 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7749 rm -f conftest.$ac_objext
7750 if { (ac_try="$ac_compile"
7752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7753 *) ac_try_echo=$ac_try;;
7755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7756 (eval "$ac_compile") 2>conftest.er1
7758 grep -v '^ *+' conftest.er1 >conftest.err
7760 cat conftest.err >&5
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); } && {
7763 test -z "$ac_c_werror_flag" ||
7764 test ! -s conftest.err
7765 } && test -s conftest.$ac_objext; then
7768 echo "$as_me: failed program was:" >&5
7769 sed 's/^/| /' conftest.$ac_ext >&5
7771 ac_lo=`expr '(' $ac_mid ')' + 1`
7774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7777 ?*) ac_cv_sizeof_char=$ac_lo;;
7778 '') if test "$ac_cv_type_char" = yes; then
7779 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
7780 See \`config.log' for more details." >&5
7781 echo "$as_me: error: cannot compute sizeof (char)
7782 See \`config.log' for more details." >&2;}
7783 { (exit 77); exit 77; }; }
7789 cat >conftest.$ac_ext <<_ACEOF
7792 cat confdefs.h >>conftest.$ac_ext
7793 cat >>conftest.$ac_ext <<_ACEOF
7794 /* end confdefs.h. */
7795 $ac_includes_default
7796 typedef char ac__type_sizeof_;
7797 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7798 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7805 FILE *f = fopen ("conftest.val", "w");
7808 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7810 long int i = longval ();
7811 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7813 fprintf (f, "%ld\n", i);
7817 unsigned long int i = ulongval ();
7818 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7820 fprintf (f, "%lu\n", i);
7822 return ferror (f) || fclose (f) != 0;
7828 rm -f conftest$ac_exeext
7829 if { (ac_try="$ac_link"
7831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7832 *) ac_try_echo=$ac_try;;
7834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7835 (eval "$ac_link") 2>&5
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7839 { (case "(($ac_try" in
7840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7841 *) ac_try_echo=$ac_try;;
7843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7844 (eval "$ac_try") 2>&5
7846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847 (exit $ac_status); }; }; then
7848 ac_cv_sizeof_char=`cat conftest.val`
7850 echo "$as_me: program exited with status $ac_status" >&5
7851 echo "$as_me: failed program was:" >&5
7852 sed 's/^/| /' conftest.$ac_ext >&5
7855 if test "$ac_cv_type_char" = yes; then
7856 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
7857 See \`config.log' for more details." >&5
7858 echo "$as_me: error: cannot compute sizeof (char)
7859 See \`config.log' for more details." >&2;}
7860 { (exit 77); exit 77; }; }
7865 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7869 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
7870 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
7874 cat >>confdefs.h <<_ACEOF
7875 #define SIZEOF_CHAR $ac_cv_sizeof_char
7879 { echo "$as_me:$LINENO: checking for short" >&5
7880 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
7881 if test "${ac_cv_type_short+set}" = set; then
7882 echo $ECHO_N "(cached) $ECHO_C" >&6
7884 cat >conftest.$ac_ext <<_ACEOF
7887 cat confdefs.h >>conftest.$ac_ext
7888 cat >>conftest.$ac_ext <<_ACEOF
7889 /* end confdefs.h. */
7890 $ac_includes_default
7891 typedef short ac__type_new_;
7895 if ((ac__type_new_ *) 0)
7897 if (sizeof (ac__type_new_))
7903 rm -f conftest.$ac_objext
7904 if { (ac_try="$ac_compile"
7906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7907 *) ac_try_echo=$ac_try;;
7909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7910 (eval "$ac_compile") 2>conftest.er1
7912 grep -v '^ *+' conftest.er1 >conftest.err
7914 cat conftest.err >&5
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 (exit $ac_status); } && {
7917 test -z "$ac_c_werror_flag" ||
7918 test ! -s conftest.err
7919 } && test -s conftest.$ac_objext; then
7920 ac_cv_type_short=yes
7922 echo "$as_me: failed program was:" >&5
7923 sed 's/^/| /' conftest.$ac_ext >&5
7928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7930 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7931 echo "${ECHO_T}$ac_cv_type_short" >&6; }
7933 # The cast to long int works around a bug in the HP C Compiler
7934 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7935 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7936 # This bug is HP SR number 8606223364.
7937 { echo "$as_me:$LINENO: checking size of short" >&5
7938 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
7939 if test "${ac_cv_sizeof_short+set}" = set; then
7940 echo $ECHO_N "(cached) $ECHO_C" >&6
7942 if test "$cross_compiling" = yes; then
7943 # Depending upon the size, compute the lo and hi bounds.
7944 cat >conftest.$ac_ext <<_ACEOF
7947 cat confdefs.h >>conftest.$ac_ext
7948 cat >>conftest.$ac_ext <<_ACEOF
7949 /* end confdefs.h. */
7950 $ac_includes_default
7951 typedef short ac__type_sizeof_;
7955 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7962 rm -f conftest.$ac_objext
7963 if { (ac_try="$ac_compile"
7965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7966 *) ac_try_echo=$ac_try;;
7968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7969 (eval "$ac_compile") 2>conftest.er1
7971 grep -v '^ *+' conftest.er1 >conftest.err
7973 cat conftest.err >&5
7974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); } && {
7976 test -z "$ac_c_werror_flag" ||
7977 test ! -s conftest.err
7978 } && test -s conftest.$ac_objext; then
7981 cat >conftest.$ac_ext <<_ACEOF
7984 cat confdefs.h >>conftest.$ac_ext
7985 cat >>conftest.$ac_ext <<_ACEOF
7986 /* end confdefs.h. */
7987 $ac_includes_default
7988 typedef short ac__type_sizeof_;
7992 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7999 rm -f conftest.$ac_objext
8000 if { (ac_try="$ac_compile"
8002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8003 *) ac_try_echo=$ac_try;;
8005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8006 (eval "$ac_compile") 2>conftest.er1
8008 grep -v '^ *+' conftest.er1 >conftest.err
8010 cat conftest.err >&5
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); } && {
8013 test -z "$ac_c_werror_flag" ||
8014 test ! -s conftest.err
8015 } && test -s conftest.$ac_objext; then
8016 ac_hi=$ac_mid; break
8018 echo "$as_me: failed program was:" >&5
8019 sed 's/^/| /' conftest.$ac_ext >&5
8021 ac_lo=`expr $ac_mid + 1`
8022 if test $ac_lo -le $ac_mid; then
8026 ac_mid=`expr 2 '*' $ac_mid + 1`
8029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8032 echo "$as_me: failed program was:" >&5
8033 sed 's/^/| /' conftest.$ac_ext >&5
8035 cat >conftest.$ac_ext <<_ACEOF
8038 cat confdefs.h >>conftest.$ac_ext
8039 cat >>conftest.$ac_ext <<_ACEOF
8040 /* end confdefs.h. */
8041 $ac_includes_default
8042 typedef short ac__type_sizeof_;
8046 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8053 rm -f conftest.$ac_objext
8054 if { (ac_try="$ac_compile"
8056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8057 *) ac_try_echo=$ac_try;;
8059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8060 (eval "$ac_compile") 2>conftest.er1
8062 grep -v '^ *+' conftest.er1 >conftest.err
8064 cat conftest.err >&5
8065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066 (exit $ac_status); } && {
8067 test -z "$ac_c_werror_flag" ||
8068 test ! -s conftest.err
8069 } && test -s conftest.$ac_objext; then
8072 cat >conftest.$ac_ext <<_ACEOF
8075 cat confdefs.h >>conftest.$ac_ext
8076 cat >>conftest.$ac_ext <<_ACEOF
8077 /* end confdefs.h. */
8078 $ac_includes_default
8079 typedef short ac__type_sizeof_;
8083 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8090 rm -f conftest.$ac_objext
8091 if { (ac_try="$ac_compile"
8093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8094 *) ac_try_echo=$ac_try;;
8096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8097 (eval "$ac_compile") 2>conftest.er1
8099 grep -v '^ *+' conftest.er1 >conftest.err
8101 cat conftest.err >&5
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); } && {
8104 test -z "$ac_c_werror_flag" ||
8105 test ! -s conftest.err
8106 } && test -s conftest.$ac_objext; then
8107 ac_lo=$ac_mid; break
8109 echo "$as_me: failed program was:" >&5
8110 sed 's/^/| /' conftest.$ac_ext >&5
8112 ac_hi=`expr '(' $ac_mid ')' - 1`
8113 if test $ac_mid -le $ac_hi; then
8117 ac_mid=`expr 2 '*' $ac_mid`
8120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8123 echo "$as_me: failed program was:" >&5
8124 sed 's/^/| /' conftest.$ac_ext >&5
8129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8133 # Binary search between lo and hi bounds.
8134 while test "x$ac_lo" != "x$ac_hi"; do
8135 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8136 cat >conftest.$ac_ext <<_ACEOF
8139 cat confdefs.h >>conftest.$ac_ext
8140 cat >>conftest.$ac_ext <<_ACEOF
8141 /* end confdefs.h. */
8142 $ac_includes_default
8143 typedef short ac__type_sizeof_;
8147 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8154 rm -f conftest.$ac_objext
8155 if { (ac_try="$ac_compile"
8157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8158 *) ac_try_echo=$ac_try;;
8160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8161 (eval "$ac_compile") 2>conftest.er1
8163 grep -v '^ *+' conftest.er1 >conftest.err
8165 cat conftest.err >&5
8166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167 (exit $ac_status); } && {
8168 test -z "$ac_c_werror_flag" ||
8169 test ! -s conftest.err
8170 } && test -s conftest.$ac_objext; then
8173 echo "$as_me: failed program was:" >&5
8174 sed 's/^/| /' conftest.$ac_ext >&5
8176 ac_lo=`expr '(' $ac_mid ')' + 1`
8179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8182 ?*) ac_cv_sizeof_short=$ac_lo;;
8183 '') if test "$ac_cv_type_short" = yes; then
8184 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8185 See \`config.log' for more details." >&5
8186 echo "$as_me: error: cannot compute sizeof (short)
8187 See \`config.log' for more details." >&2;}
8188 { (exit 77); exit 77; }; }
8190 ac_cv_sizeof_short=0
8194 cat >conftest.$ac_ext <<_ACEOF
8197 cat confdefs.h >>conftest.$ac_ext
8198 cat >>conftest.$ac_ext <<_ACEOF
8199 /* end confdefs.h. */
8200 $ac_includes_default
8201 typedef short ac__type_sizeof_;
8202 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8203 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8210 FILE *f = fopen ("conftest.val", "w");
8213 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8215 long int i = longval ();
8216 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8218 fprintf (f, "%ld\n", i);
8222 unsigned long int i = ulongval ();
8223 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8225 fprintf (f, "%lu\n", i);
8227 return ferror (f) || fclose (f) != 0;
8233 rm -f conftest$ac_exeext
8234 if { (ac_try="$ac_link"
8236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8237 *) ac_try_echo=$ac_try;;
8239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8240 (eval "$ac_link") 2>&5
8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8244 { (case "(($ac_try" in
8245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8246 *) ac_try_echo=$ac_try;;
8248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8249 (eval "$ac_try") 2>&5
8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 (exit $ac_status); }; }; then
8253 ac_cv_sizeof_short=`cat conftest.val`
8255 echo "$as_me: program exited with status $ac_status" >&5
8256 echo "$as_me: failed program was:" >&5
8257 sed 's/^/| /' conftest.$ac_ext >&5
8260 if test "$ac_cv_type_short" = yes; then
8261 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8262 See \`config.log' for more details." >&5
8263 echo "$as_me: error: cannot compute sizeof (short)
8264 See \`config.log' for more details." >&2;}
8265 { (exit 77); exit 77; }; }
8267 ac_cv_sizeof_short=0
8270 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8274 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8275 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
8279 cat >>confdefs.h <<_ACEOF
8280 #define SIZEOF_SHORT $ac_cv_sizeof_short
8284 { echo "$as_me:$LINENO: checking for int" >&5
8285 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
8286 if test "${ac_cv_type_int+set}" = set; then
8287 echo $ECHO_N "(cached) $ECHO_C" >&6
8289 cat >conftest.$ac_ext <<_ACEOF
8292 cat confdefs.h >>conftest.$ac_ext
8293 cat >>conftest.$ac_ext <<_ACEOF
8294 /* end confdefs.h. */
8295 $ac_includes_default
8296 typedef int ac__type_new_;
8300 if ((ac__type_new_ *) 0)
8302 if (sizeof (ac__type_new_))
8308 rm -f conftest.$ac_objext
8309 if { (ac_try="$ac_compile"
8311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8312 *) ac_try_echo=$ac_try;;
8314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8315 (eval "$ac_compile") 2>conftest.er1
8317 grep -v '^ *+' conftest.er1 >conftest.err
8319 cat conftest.err >&5
8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321 (exit $ac_status); } && {
8322 test -z "$ac_c_werror_flag" ||
8323 test ! -s conftest.err
8324 } && test -s conftest.$ac_objext; then
8327 echo "$as_me: failed program was:" >&5
8328 sed 's/^/| /' conftest.$ac_ext >&5
8333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8335 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
8336 echo "${ECHO_T}$ac_cv_type_int" >&6; }
8338 # The cast to long int works around a bug in the HP C Compiler
8339 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8340 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8341 # This bug is HP SR number 8606223364.
8342 { echo "$as_me:$LINENO: checking size of int" >&5
8343 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
8344 if test "${ac_cv_sizeof_int+set}" = set; then
8345 echo $ECHO_N "(cached) $ECHO_C" >&6
8347 if test "$cross_compiling" = yes; then
8348 # Depending upon the size, compute the lo and hi bounds.
8349 cat >conftest.$ac_ext <<_ACEOF
8352 cat confdefs.h >>conftest.$ac_ext
8353 cat >>conftest.$ac_ext <<_ACEOF
8354 /* end confdefs.h. */
8355 $ac_includes_default
8356 typedef int ac__type_sizeof_;
8360 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8367 rm -f conftest.$ac_objext
8368 if { (ac_try="$ac_compile"
8370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8371 *) ac_try_echo=$ac_try;;
8373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8374 (eval "$ac_compile") 2>conftest.er1
8376 grep -v '^ *+' conftest.er1 >conftest.err
8378 cat conftest.err >&5
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); } && {
8381 test -z "$ac_c_werror_flag" ||
8382 test ! -s conftest.err
8383 } && test -s conftest.$ac_objext; then
8386 cat >conftest.$ac_ext <<_ACEOF
8389 cat confdefs.h >>conftest.$ac_ext
8390 cat >>conftest.$ac_ext <<_ACEOF
8391 /* end confdefs.h. */
8392 $ac_includes_default
8393 typedef int ac__type_sizeof_;
8397 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8404 rm -f conftest.$ac_objext
8405 if { (ac_try="$ac_compile"
8407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8408 *) ac_try_echo=$ac_try;;
8410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8411 (eval "$ac_compile") 2>conftest.er1
8413 grep -v '^ *+' conftest.er1 >conftest.err
8415 cat conftest.err >&5
8416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); } && {
8418 test -z "$ac_c_werror_flag" ||
8419 test ! -s conftest.err
8420 } && test -s conftest.$ac_objext; then
8421 ac_hi=$ac_mid; break
8423 echo "$as_me: failed program was:" >&5
8424 sed 's/^/| /' conftest.$ac_ext >&5
8426 ac_lo=`expr $ac_mid + 1`
8427 if test $ac_lo -le $ac_mid; then
8431 ac_mid=`expr 2 '*' $ac_mid + 1`
8434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8437 echo "$as_me: failed program was:" >&5
8438 sed 's/^/| /' conftest.$ac_ext >&5
8440 cat >conftest.$ac_ext <<_ACEOF
8443 cat confdefs.h >>conftest.$ac_ext
8444 cat >>conftest.$ac_ext <<_ACEOF
8445 /* end confdefs.h. */
8446 $ac_includes_default
8447 typedef int ac__type_sizeof_;
8451 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8458 rm -f conftest.$ac_objext
8459 if { (ac_try="$ac_compile"
8461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8462 *) ac_try_echo=$ac_try;;
8464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8465 (eval "$ac_compile") 2>conftest.er1
8467 grep -v '^ *+' conftest.er1 >conftest.err
8469 cat conftest.err >&5
8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 (exit $ac_status); } && {
8472 test -z "$ac_c_werror_flag" ||
8473 test ! -s conftest.err
8474 } && test -s conftest.$ac_objext; then
8477 cat >conftest.$ac_ext <<_ACEOF
8480 cat confdefs.h >>conftest.$ac_ext
8481 cat >>conftest.$ac_ext <<_ACEOF
8482 /* end confdefs.h. */
8483 $ac_includes_default
8484 typedef int ac__type_sizeof_;
8488 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8495 rm -f conftest.$ac_objext
8496 if { (ac_try="$ac_compile"
8498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8499 *) ac_try_echo=$ac_try;;
8501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8502 (eval "$ac_compile") 2>conftest.er1
8504 grep -v '^ *+' conftest.er1 >conftest.err
8506 cat conftest.err >&5
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); } && {
8509 test -z "$ac_c_werror_flag" ||
8510 test ! -s conftest.err
8511 } && test -s conftest.$ac_objext; then
8512 ac_lo=$ac_mid; break
8514 echo "$as_me: failed program was:" >&5
8515 sed 's/^/| /' conftest.$ac_ext >&5
8517 ac_hi=`expr '(' $ac_mid ')' - 1`
8518 if test $ac_mid -le $ac_hi; then
8522 ac_mid=`expr 2 '*' $ac_mid`
8525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8528 echo "$as_me: failed program was:" >&5
8529 sed 's/^/| /' conftest.$ac_ext >&5
8534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8538 # Binary search between lo and hi bounds.
8539 while test "x$ac_lo" != "x$ac_hi"; do
8540 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8541 cat >conftest.$ac_ext <<_ACEOF
8544 cat confdefs.h >>conftest.$ac_ext
8545 cat >>conftest.$ac_ext <<_ACEOF
8546 /* end confdefs.h. */
8547 $ac_includes_default
8548 typedef int ac__type_sizeof_;
8552 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8559 rm -f conftest.$ac_objext
8560 if { (ac_try="$ac_compile"
8562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8563 *) ac_try_echo=$ac_try;;
8565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8566 (eval "$ac_compile") 2>conftest.er1
8568 grep -v '^ *+' conftest.er1 >conftest.err
8570 cat conftest.err >&5
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); } && {
8573 test -z "$ac_c_werror_flag" ||
8574 test ! -s conftest.err
8575 } && test -s conftest.$ac_objext; then
8578 echo "$as_me: failed program was:" >&5
8579 sed 's/^/| /' conftest.$ac_ext >&5
8581 ac_lo=`expr '(' $ac_mid ')' + 1`
8584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8587 ?*) ac_cv_sizeof_int=$ac_lo;;
8588 '') if test "$ac_cv_type_int" = yes; then
8589 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
8590 See \`config.log' for more details." >&5
8591 echo "$as_me: error: cannot compute sizeof (int)
8592 See \`config.log' for more details." >&2;}
8593 { (exit 77); exit 77; }; }
8599 cat >conftest.$ac_ext <<_ACEOF
8602 cat confdefs.h >>conftest.$ac_ext
8603 cat >>conftest.$ac_ext <<_ACEOF
8604 /* end confdefs.h. */
8605 $ac_includes_default
8606 typedef int ac__type_sizeof_;
8607 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8608 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8615 FILE *f = fopen ("conftest.val", "w");
8618 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8620 long int i = longval ();
8621 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8623 fprintf (f, "%ld\n", i);
8627 unsigned long int i = ulongval ();
8628 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8630 fprintf (f, "%lu\n", i);
8632 return ferror (f) || fclose (f) != 0;
8638 rm -f conftest$ac_exeext
8639 if { (ac_try="$ac_link"
8641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8642 *) ac_try_echo=$ac_try;;
8644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8645 (eval "$ac_link") 2>&5
8647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8649 { (case "(($ac_try" in
8650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8651 *) ac_try_echo=$ac_try;;
8653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8654 (eval "$ac_try") 2>&5
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); }; }; then
8658 ac_cv_sizeof_int=`cat conftest.val`
8660 echo "$as_me: program exited with status $ac_status" >&5
8661 echo "$as_me: failed program was:" >&5
8662 sed 's/^/| /' conftest.$ac_ext >&5
8665 if test "$ac_cv_type_int" = yes; then
8666 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
8667 See \`config.log' for more details." >&5
8668 echo "$as_me: error: cannot compute sizeof (int)
8669 See \`config.log' for more details." >&2;}
8670 { (exit 77); exit 77; }; }
8675 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8679 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
8680 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
8684 cat >>confdefs.h <<_ACEOF
8685 #define SIZEOF_INT $ac_cv_sizeof_int
8689 { echo "$as_me:$LINENO: checking for long" >&5
8690 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
8691 if test "${ac_cv_type_long+set}" = set; then
8692 echo $ECHO_N "(cached) $ECHO_C" >&6
8694 cat >conftest.$ac_ext <<_ACEOF
8697 cat confdefs.h >>conftest.$ac_ext
8698 cat >>conftest.$ac_ext <<_ACEOF
8699 /* end confdefs.h. */
8700 $ac_includes_default
8701 typedef long ac__type_new_;
8705 if ((ac__type_new_ *) 0)
8707 if (sizeof (ac__type_new_))
8713 rm -f conftest.$ac_objext
8714 if { (ac_try="$ac_compile"
8716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8717 *) ac_try_echo=$ac_try;;
8719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8720 (eval "$ac_compile") 2>conftest.er1
8722 grep -v '^ *+' conftest.er1 >conftest.err
8724 cat conftest.err >&5
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); } && {
8727 test -z "$ac_c_werror_flag" ||
8728 test ! -s conftest.err
8729 } && test -s conftest.$ac_objext; then
8732 echo "$as_me: failed program was:" >&5
8733 sed 's/^/| /' conftest.$ac_ext >&5
8738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8740 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
8741 echo "${ECHO_T}$ac_cv_type_long" >&6; }
8743 # The cast to long int works around a bug in the HP C Compiler
8744 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8745 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8746 # This bug is HP SR number 8606223364.
8747 { echo "$as_me:$LINENO: checking size of long" >&5
8748 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
8749 if test "${ac_cv_sizeof_long+set}" = set; then
8750 echo $ECHO_N "(cached) $ECHO_C" >&6
8752 if test "$cross_compiling" = yes; then
8753 # Depending upon the size, compute the lo and hi bounds.
8754 cat >conftest.$ac_ext <<_ACEOF
8757 cat confdefs.h >>conftest.$ac_ext
8758 cat >>conftest.$ac_ext <<_ACEOF
8759 /* end confdefs.h. */
8760 $ac_includes_default
8761 typedef long ac__type_sizeof_;
8765 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8772 rm -f conftest.$ac_objext
8773 if { (ac_try="$ac_compile"
8775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8776 *) ac_try_echo=$ac_try;;
8778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8779 (eval "$ac_compile") 2>conftest.er1
8781 grep -v '^ *+' conftest.er1 >conftest.err
8783 cat conftest.err >&5
8784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 (exit $ac_status); } && {
8786 test -z "$ac_c_werror_flag" ||
8787 test ! -s conftest.err
8788 } && test -s conftest.$ac_objext; then
8791 cat >conftest.$ac_ext <<_ACEOF
8794 cat confdefs.h >>conftest.$ac_ext
8795 cat >>conftest.$ac_ext <<_ACEOF
8796 /* end confdefs.h. */
8797 $ac_includes_default
8798 typedef long ac__type_sizeof_;
8802 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8809 rm -f conftest.$ac_objext
8810 if { (ac_try="$ac_compile"
8812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8813 *) ac_try_echo=$ac_try;;
8815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8816 (eval "$ac_compile") 2>conftest.er1
8818 grep -v '^ *+' conftest.er1 >conftest.err
8820 cat conftest.err >&5
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); } && {
8823 test -z "$ac_c_werror_flag" ||
8824 test ! -s conftest.err
8825 } && test -s conftest.$ac_objext; then
8826 ac_hi=$ac_mid; break
8828 echo "$as_me: failed program was:" >&5
8829 sed 's/^/| /' conftest.$ac_ext >&5
8831 ac_lo=`expr $ac_mid + 1`
8832 if test $ac_lo -le $ac_mid; then
8836 ac_mid=`expr 2 '*' $ac_mid + 1`
8839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8842 echo "$as_me: failed program was:" >&5
8843 sed 's/^/| /' conftest.$ac_ext >&5
8845 cat >conftest.$ac_ext <<_ACEOF
8848 cat confdefs.h >>conftest.$ac_ext
8849 cat >>conftest.$ac_ext <<_ACEOF
8850 /* end confdefs.h. */
8851 $ac_includes_default
8852 typedef long ac__type_sizeof_;
8856 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8863 rm -f conftest.$ac_objext
8864 if { (ac_try="$ac_compile"
8866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8867 *) ac_try_echo=$ac_try;;
8869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8870 (eval "$ac_compile") 2>conftest.er1
8872 grep -v '^ *+' conftest.er1 >conftest.err
8874 cat conftest.err >&5
8875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876 (exit $ac_status); } && {
8877 test -z "$ac_c_werror_flag" ||
8878 test ! -s conftest.err
8879 } && test -s conftest.$ac_objext; then
8882 cat >conftest.$ac_ext <<_ACEOF
8885 cat confdefs.h >>conftest.$ac_ext
8886 cat >>conftest.$ac_ext <<_ACEOF
8887 /* end confdefs.h. */
8888 $ac_includes_default
8889 typedef long ac__type_sizeof_;
8893 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8900 rm -f conftest.$ac_objext
8901 if { (ac_try="$ac_compile"
8903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8904 *) ac_try_echo=$ac_try;;
8906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8907 (eval "$ac_compile") 2>conftest.er1
8909 grep -v '^ *+' conftest.er1 >conftest.err
8911 cat conftest.err >&5
8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913 (exit $ac_status); } && {
8914 test -z "$ac_c_werror_flag" ||
8915 test ! -s conftest.err
8916 } && test -s conftest.$ac_objext; then
8917 ac_lo=$ac_mid; break
8919 echo "$as_me: failed program was:" >&5
8920 sed 's/^/| /' conftest.$ac_ext >&5
8922 ac_hi=`expr '(' $ac_mid ')' - 1`
8923 if test $ac_mid -le $ac_hi; then
8927 ac_mid=`expr 2 '*' $ac_mid`
8930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8933 echo "$as_me: failed program was:" >&5
8934 sed 's/^/| /' conftest.$ac_ext >&5
8939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8943 # Binary search between lo and hi bounds.
8944 while test "x$ac_lo" != "x$ac_hi"; do
8945 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8946 cat >conftest.$ac_ext <<_ACEOF
8949 cat confdefs.h >>conftest.$ac_ext
8950 cat >>conftest.$ac_ext <<_ACEOF
8951 /* end confdefs.h. */
8952 $ac_includes_default
8953 typedef long ac__type_sizeof_;
8957 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8964 rm -f conftest.$ac_objext
8965 if { (ac_try="$ac_compile"
8967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8968 *) ac_try_echo=$ac_try;;
8970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8971 (eval "$ac_compile") 2>conftest.er1
8973 grep -v '^ *+' conftest.er1 >conftest.err
8975 cat conftest.err >&5
8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977 (exit $ac_status); } && {
8978 test -z "$ac_c_werror_flag" ||
8979 test ! -s conftest.err
8980 } && test -s conftest.$ac_objext; then
8983 echo "$as_me: failed program was:" >&5
8984 sed 's/^/| /' conftest.$ac_ext >&5
8986 ac_lo=`expr '(' $ac_mid ')' + 1`
8989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8992 ?*) ac_cv_sizeof_long=$ac_lo;;
8993 '') if test "$ac_cv_type_long" = yes; then
8994 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8995 See \`config.log' for more details." >&5
8996 echo "$as_me: error: cannot compute sizeof (long)
8997 See \`config.log' for more details." >&2;}
8998 { (exit 77); exit 77; }; }
9004 cat >conftest.$ac_ext <<_ACEOF
9007 cat confdefs.h >>conftest.$ac_ext
9008 cat >>conftest.$ac_ext <<_ACEOF
9009 /* end confdefs.h. */
9010 $ac_includes_default
9011 typedef long ac__type_sizeof_;
9012 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9013 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9020 FILE *f = fopen ("conftest.val", "w");
9023 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9025 long int i = longval ();
9026 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9028 fprintf (f, "%ld\n", i);
9032 unsigned long int i = ulongval ();
9033 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9035 fprintf (f, "%lu\n", i);
9037 return ferror (f) || fclose (f) != 0;
9043 rm -f conftest$ac_exeext
9044 if { (ac_try="$ac_link"
9046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9047 *) ac_try_echo=$ac_try;;
9049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9050 (eval "$ac_link") 2>&5
9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9054 { (case "(($ac_try" in
9055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9056 *) ac_try_echo=$ac_try;;
9058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9059 (eval "$ac_try") 2>&5
9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); }; }; then
9063 ac_cv_sizeof_long=`cat conftest.val`
9065 echo "$as_me: program exited with status $ac_status" >&5
9066 echo "$as_me: failed program was:" >&5
9067 sed 's/^/| /' conftest.$ac_ext >&5
9070 if test "$ac_cv_type_long" = yes; then
9071 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
9072 See \`config.log' for more details." >&5
9073 echo "$as_me: error: cannot compute sizeof (long)
9074 See \`config.log' for more details." >&2;}
9075 { (exit 77); exit 77; }; }
9080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9084 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
9085 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
9089 cat >>confdefs.h <<_ACEOF
9090 #define SIZEOF_LONG $ac_cv_sizeof_long
9094 { echo "$as_me:$LINENO: checking for void*" >&5
9095 echo $ECHO_N "checking for void*... $ECHO_C" >&6; }
9096 if test "${ac_cv_type_voidp+set}" = set; then
9097 echo $ECHO_N "(cached) $ECHO_C" >&6
9099 cat >conftest.$ac_ext <<_ACEOF
9102 cat confdefs.h >>conftest.$ac_ext
9103 cat >>conftest.$ac_ext <<_ACEOF
9104 /* end confdefs.h. */
9105 $ac_includes_default
9106 typedef void* ac__type_new_;
9110 if ((ac__type_new_ *) 0)
9112 if (sizeof (ac__type_new_))
9118 rm -f conftest.$ac_objext
9119 if { (ac_try="$ac_compile"
9121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9122 *) ac_try_echo=$ac_try;;
9124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9125 (eval "$ac_compile") 2>conftest.er1
9127 grep -v '^ *+' conftest.er1 >conftest.err
9129 cat conftest.err >&5
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); } && {
9132 test -z "$ac_c_werror_flag" ||
9133 test ! -s conftest.err
9134 } && test -s conftest.$ac_objext; then
9135 ac_cv_type_voidp=yes
9137 echo "$as_me: failed program was:" >&5
9138 sed 's/^/| /' conftest.$ac_ext >&5
9143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9145 { echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5
9146 echo "${ECHO_T}$ac_cv_type_voidp" >&6; }
9148 # The cast to long int works around a bug in the HP C Compiler
9149 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9150 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9151 # This bug is HP SR number 8606223364.
9152 { echo "$as_me:$LINENO: checking size of void*" >&5
9153 echo $ECHO_N "checking size of void*... $ECHO_C" >&6; }
9154 if test "${ac_cv_sizeof_voidp+set}" = set; then
9155 echo $ECHO_N "(cached) $ECHO_C" >&6
9157 if test "$cross_compiling" = yes; then
9158 # Depending upon the size, compute the lo and hi bounds.
9159 cat >conftest.$ac_ext <<_ACEOF
9162 cat confdefs.h >>conftest.$ac_ext
9163 cat >>conftest.$ac_ext <<_ACEOF
9164 /* end confdefs.h. */
9165 $ac_includes_default
9166 typedef void* ac__type_sizeof_;
9170 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9177 rm -f conftest.$ac_objext
9178 if { (ac_try="$ac_compile"
9180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9181 *) ac_try_echo=$ac_try;;
9183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9184 (eval "$ac_compile") 2>conftest.er1
9186 grep -v '^ *+' conftest.er1 >conftest.err
9188 cat conftest.err >&5
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); } && {
9191 test -z "$ac_c_werror_flag" ||
9192 test ! -s conftest.err
9193 } && test -s conftest.$ac_objext; then
9196 cat >conftest.$ac_ext <<_ACEOF
9199 cat confdefs.h >>conftest.$ac_ext
9200 cat >>conftest.$ac_ext <<_ACEOF
9201 /* end confdefs.h. */
9202 $ac_includes_default
9203 typedef void* ac__type_sizeof_;
9207 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9214 rm -f conftest.$ac_objext
9215 if { (ac_try="$ac_compile"
9217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9218 *) ac_try_echo=$ac_try;;
9220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9221 (eval "$ac_compile") 2>conftest.er1
9223 grep -v '^ *+' conftest.er1 >conftest.err
9225 cat conftest.err >&5
9226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227 (exit $ac_status); } && {
9228 test -z "$ac_c_werror_flag" ||
9229 test ! -s conftest.err
9230 } && test -s conftest.$ac_objext; then
9231 ac_hi=$ac_mid; break
9233 echo "$as_me: failed program was:" >&5
9234 sed 's/^/| /' conftest.$ac_ext >&5
9236 ac_lo=`expr $ac_mid + 1`
9237 if test $ac_lo -le $ac_mid; then
9241 ac_mid=`expr 2 '*' $ac_mid + 1`
9244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9247 echo "$as_me: failed program was:" >&5
9248 sed 's/^/| /' conftest.$ac_ext >&5
9250 cat >conftest.$ac_ext <<_ACEOF
9253 cat confdefs.h >>conftest.$ac_ext
9254 cat >>conftest.$ac_ext <<_ACEOF
9255 /* end confdefs.h. */
9256 $ac_includes_default
9257 typedef void* ac__type_sizeof_;
9261 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9268 rm -f conftest.$ac_objext
9269 if { (ac_try="$ac_compile"
9271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9272 *) ac_try_echo=$ac_try;;
9274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9275 (eval "$ac_compile") 2>conftest.er1
9277 grep -v '^ *+' conftest.er1 >conftest.err
9279 cat conftest.err >&5
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 (exit $ac_status); } && {
9282 test -z "$ac_c_werror_flag" ||
9283 test ! -s conftest.err
9284 } && test -s conftest.$ac_objext; then
9287 cat >conftest.$ac_ext <<_ACEOF
9290 cat confdefs.h >>conftest.$ac_ext
9291 cat >>conftest.$ac_ext <<_ACEOF
9292 /* end confdefs.h. */
9293 $ac_includes_default
9294 typedef void* ac__type_sizeof_;
9298 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9305 rm -f conftest.$ac_objext
9306 if { (ac_try="$ac_compile"
9308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9309 *) ac_try_echo=$ac_try;;
9311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9312 (eval "$ac_compile") 2>conftest.er1
9314 grep -v '^ *+' conftest.er1 >conftest.err
9316 cat conftest.err >&5
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); } && {
9319 test -z "$ac_c_werror_flag" ||
9320 test ! -s conftest.err
9321 } && test -s conftest.$ac_objext; then
9322 ac_lo=$ac_mid; break
9324 echo "$as_me: failed program was:" >&5
9325 sed 's/^/| /' conftest.$ac_ext >&5
9327 ac_hi=`expr '(' $ac_mid ')' - 1`
9328 if test $ac_mid -le $ac_hi; then
9332 ac_mid=`expr 2 '*' $ac_mid`
9335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9338 echo "$as_me: failed program was:" >&5
9339 sed 's/^/| /' conftest.$ac_ext >&5
9344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9348 # Binary search between lo and hi bounds.
9349 while test "x$ac_lo" != "x$ac_hi"; do
9350 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9351 cat >conftest.$ac_ext <<_ACEOF
9354 cat confdefs.h >>conftest.$ac_ext
9355 cat >>conftest.$ac_ext <<_ACEOF
9356 /* end confdefs.h. */
9357 $ac_includes_default
9358 typedef void* ac__type_sizeof_;
9362 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9369 rm -f conftest.$ac_objext
9370 if { (ac_try="$ac_compile"
9372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9373 *) ac_try_echo=$ac_try;;
9375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9376 (eval "$ac_compile") 2>conftest.er1
9378 grep -v '^ *+' conftest.er1 >conftest.err
9380 cat conftest.err >&5
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); } && {
9383 test -z "$ac_c_werror_flag" ||
9384 test ! -s conftest.err
9385 } && test -s conftest.$ac_objext; then
9388 echo "$as_me: failed program was:" >&5
9389 sed 's/^/| /' conftest.$ac_ext >&5
9391 ac_lo=`expr '(' $ac_mid ')' + 1`
9394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9397 ?*) ac_cv_sizeof_voidp=$ac_lo;;
9398 '') if test "$ac_cv_type_voidp" = yes; then
9399 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
9400 See \`config.log' for more details." >&5
9401 echo "$as_me: error: cannot compute sizeof (void*)
9402 See \`config.log' for more details." >&2;}
9403 { (exit 77); exit 77; }; }
9405 ac_cv_sizeof_voidp=0
9409 cat >conftest.$ac_ext <<_ACEOF
9412 cat confdefs.h >>conftest.$ac_ext
9413 cat >>conftest.$ac_ext <<_ACEOF
9414 /* end confdefs.h. */
9415 $ac_includes_default
9416 typedef void* ac__type_sizeof_;
9417 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9418 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9425 FILE *f = fopen ("conftest.val", "w");
9428 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9430 long int i = longval ();
9431 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9433 fprintf (f, "%ld\n", i);
9437 unsigned long int i = ulongval ();
9438 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9440 fprintf (f, "%lu\n", i);
9442 return ferror (f) || fclose (f) != 0;
9448 rm -f conftest$ac_exeext
9449 if { (ac_try="$ac_link"
9451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9452 *) ac_try_echo=$ac_try;;
9454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9455 (eval "$ac_link") 2>&5
9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9459 { (case "(($ac_try" in
9460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9461 *) ac_try_echo=$ac_try;;
9463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9464 (eval "$ac_try") 2>&5
9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467 (exit $ac_status); }; }; then
9468 ac_cv_sizeof_voidp=`cat conftest.val`
9470 echo "$as_me: program exited with status $ac_status" >&5
9471 echo "$as_me: failed program was:" >&5
9472 sed 's/^/| /' conftest.$ac_ext >&5
9475 if test "$ac_cv_type_voidp" = yes; then
9476 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
9477 See \`config.log' for more details." >&5
9478 echo "$as_me: error: cannot compute sizeof (void*)
9479 See \`config.log' for more details." >&2;}
9480 { (exit 77); exit 77; }; }
9482 ac_cv_sizeof_voidp=0
9485 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9489 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
9490 echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6; }
9494 cat >>confdefs.h <<_ACEOF
9495 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
9499 ac_cv_stdint_char_model=""
9500 ac_cv_stdint_char_model="$ac_cv_stdint_char_model$ac_cv_sizeof_char"
9501 ac_cv_stdint_char_model="$ac_cv_stdint_char_model$ac_cv_sizeof_short"
9502 ac_cv_stdint_char_model="$ac_cv_stdint_char_model$ac_cv_sizeof_int"
9503 ac_cv_stdint_long_model=""
9504 ac_cv_stdint_long_model="$ac_cv_stdint_long_model$ac_cv_sizeof_int"
9505 ac_cv_stdint_long_model="$ac_cv_stdint_long_model$ac_cv_sizeof_long"
9506 ac_cv_stdint_long_model="$ac_cv_stdint_long_model$ac_cv_sizeof_voidp"
9507 name="$ac_cv_stdint_long_model"
9508 case "$ac_cv_stdint_char_model/$ac_cv_stdint_long_model" in
9509 122/242) name="$name, IP16 (standard 16bit machine)" ;;
9510 122/244) name="$name, LP32 (standard 32bit mac/win)" ;;
9511 122/*) name="$name (unusual int16 model)" ;;
9512 124/444) name="$name, ILP32 (standard 32bit unixish)" ;;
9513 124/488) name="$name, LP64 (standard 64bit unixish)" ;;
9514 124/448) name="$name, LLP64 (unusual 64bit unixish)" ;;
9515 124/*) name="$name (unusual int32 model)" ;;
9516 128/888) name="$name, ILP64 (unusual 64bit numeric)" ;;
9517 128/*) name="$name (unusual int64 model)" ;;
9518 222/*|444/*) name="$name (unusual dsptype)" ;;
9519 *) name="$name (very unusal model)" ;;
9521 { echo "$as_me:$LINENO: result: combined for stdint datatype model... $name" >&5
9522 echo "${ECHO_T}combined for stdint datatype model... $name" >&6; }
9525 if test "_$ac_cv_header_stdint_x" != "_" ; then
9526 ac_cv_header_stdint="$ac_cv_header_stdint_x"
9527 elif test "_$ac_cv_header_stdint_o" != "_" ; then
9528 ac_cv_header_stdint="$ac_cv_header_stdint_o"
9529 elif test "_$ac_cv_header_stdint_u" != "_" ; then
9530 ac_cv_header_stdint="$ac_cv_header_stdint_u"
9532 ac_cv_header_stdint="stddef.h"
9535 { echo "$as_me:$LINENO: checking for extra inttypes in chosen header" >&5
9536 echo $ECHO_N "checking for extra inttypes in chosen header... $ECHO_C" >&6; }
9537 { echo "$as_me:$LINENO: result: ($ac_cv_header_stdint)" >&5
9538 echo "${ECHO_T}($ac_cv_header_stdint)" >&6; }
9539 unset ac_cv_type_int_least32_t
9540 unset ac_cv_type_int_fast32_t
9541 { echo "$as_me:$LINENO: checking for int_least32_t" >&5
9542 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6; }
9543 if test "${ac_cv_type_int_least32_t+set}" = set; then
9544 echo $ECHO_N "(cached) $ECHO_C" >&6
9546 cat >conftest.$ac_ext <<_ACEOF
9549 cat confdefs.h >>conftest.$ac_ext
9550 cat >>conftest.$ac_ext <<_ACEOF
9551 /* end confdefs.h. */
9552 #include <$ac_cv_header_stdint>
9554 typedef int_least32_t ac__type_new_;
9558 if ((ac__type_new_ *) 0)
9560 if (sizeof (ac__type_new_))
9566 rm -f conftest.$ac_objext
9567 if { (ac_try="$ac_compile"
9569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9570 *) ac_try_echo=$ac_try;;
9572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9573 (eval "$ac_compile") 2>conftest.er1
9575 grep -v '^ *+' conftest.er1 >conftest.err
9577 cat conftest.err >&5
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); } && {
9580 test -z "$ac_c_werror_flag" ||
9581 test ! -s conftest.err
9582 } && test -s conftest.$ac_objext; then
9583 ac_cv_type_int_least32_t=yes
9585 echo "$as_me: failed program was:" >&5
9586 sed 's/^/| /' conftest.$ac_ext >&5
9588 ac_cv_type_int_least32_t=no
9591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9593 { echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
9594 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6; }
9596 { echo "$as_me:$LINENO: checking for int_fast32_t" >&5
9597 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6; }
9598 if test "${ac_cv_type_int_fast32_t+set}" = set; then
9599 echo $ECHO_N "(cached) $ECHO_C" >&6
9601 cat >conftest.$ac_ext <<_ACEOF
9604 cat confdefs.h >>conftest.$ac_ext
9605 cat >>conftest.$ac_ext <<_ACEOF
9606 /* end confdefs.h. */
9607 #include<$ac_cv_header_stdint>
9609 typedef int_fast32_t ac__type_new_;
9613 if ((ac__type_new_ *) 0)
9615 if (sizeof (ac__type_new_))
9621 rm -f conftest.$ac_objext
9622 if { (ac_try="$ac_compile"
9624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9625 *) ac_try_echo=$ac_try;;
9627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9628 (eval "$ac_compile") 2>conftest.er1
9630 grep -v '^ *+' conftest.er1 >conftest.err
9632 cat conftest.err >&5
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); } && {
9635 test -z "$ac_c_werror_flag" ||
9636 test ! -s conftest.err
9637 } && test -s conftest.$ac_objext; then
9638 ac_cv_type_int_fast32_t=yes
9640 echo "$as_me: failed program was:" >&5
9641 sed 's/^/| /' conftest.$ac_ext >&5
9643 ac_cv_type_int_fast32_t=no
9646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9648 { echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
9649 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6; }
9651 { echo "$as_me:$LINENO: checking for intmax_t" >&5
9652 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
9653 if test "${ac_cv_type_intmax_t+set}" = set; then
9654 echo $ECHO_N "(cached) $ECHO_C" >&6
9656 cat >conftest.$ac_ext <<_ACEOF
9659 cat confdefs.h >>conftest.$ac_ext
9660 cat >>conftest.$ac_ext <<_ACEOF
9661 /* end confdefs.h. */
9662 #include <$ac_cv_header_stdint>
9664 typedef intmax_t ac__type_new_;
9668 if ((ac__type_new_ *) 0)
9670 if (sizeof (ac__type_new_))
9676 rm -f conftest.$ac_objext
9677 if { (ac_try="$ac_compile"
9679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9680 *) ac_try_echo=$ac_try;;
9682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9683 (eval "$ac_compile") 2>conftest.er1
9685 grep -v '^ *+' conftest.er1 >conftest.err
9687 cat conftest.err >&5
9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689 (exit $ac_status); } && {
9690 test -z "$ac_c_werror_flag" ||
9691 test ! -s conftest.err
9692 } && test -s conftest.$ac_objext; then
9693 ac_cv_type_intmax_t=yes
9695 echo "$as_me: failed program was:" >&5
9696 sed 's/^/| /' conftest.$ac_ext >&5
9698 ac_cv_type_intmax_t=no
9701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9703 { echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
9704 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6; }
9707 fi # shortcircut to system "stdint.h"
9708 # ------------------ PREPARE VARIABLES ------------------------------
9709 if test "$GCC" = "yes" ; then
9710 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
9712 ac_cv_stdint_message="using $CC"
9715 { echo "$as_me:$LINENO: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
9716 echo "${ECHO_T}make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; }
9718 # ----------------- DONE inttypes.h checks START header -------------
9719 ac_config_commands="$ac_config_commands $ac_stdint_h"
9723 # Check for file locking. We (AC_PROG_CC?) have already checked for
9724 # sys/types.h and unistd.h.
9725 { echo "$as_me:$LINENO: checking for fcntl file locking" >&5
9726 echo $ECHO_N "checking for fcntl file locking... $ECHO_C" >&6; }
9727 if test "${nettle_cv_fcntl_locking+set}" = set; then
9728 echo $ECHO_N "(cached) $ECHO_C" >&6
9730 cat >conftest.$ac_ext <<_ACEOF
9733 cat confdefs.h >>conftest.$ac_ext
9734 cat >>conftest.$ac_ext <<_ACEOF
9735 /* end confdefs.h. */
9737 #if HAVE_SYS_TYPES_H
9738 # include <sys/types.h>
9741 # include <unistd.h>
9756 rm -f conftest.$ac_objext
9757 if { (ac_try="$ac_compile"
9759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9760 *) ac_try_echo=$ac_try;;
9762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9763 (eval "$ac_compile") 2>conftest.er1
9765 grep -v '^ *+' conftest.er1 >conftest.err
9767 cat conftest.err >&5
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); } && {
9770 test -z "$ac_c_werror_flag" ||
9771 test ! -s conftest.err
9772 } && test -s conftest.$ac_objext; then
9773 nettle_cv_fcntl_locking=yes
9775 echo "$as_me: failed program was:" >&5
9776 sed 's/^/| /' conftest.$ac_ext >&5
9778 nettle_cv_fcntl_locking=no
9781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9783 { echo "$as_me:$LINENO: result: $nettle_cv_fcntl_locking" >&5
9784 echo "${ECHO_T}$nettle_cv_fcntl_locking" >&6; }
9788 if test "x$nettle_cv_fcntl_locking" = "xyes" ; then
9789 cat >>confdefs.h <<\_ACEOF
9790 #define HAVE_FCNTL_LOCKING 1
9795 # Checks for libraries
9797 { echo "$as_me:$LINENO: checking for __gmpz_getlimbn in -lgmp" >&5
9798 echo $ECHO_N "checking for __gmpz_getlimbn in -lgmp... $ECHO_C" >&6; }
9799 if test "${ac_cv_lib_gmp___gmpz_getlimbn+set}" = set; then
9800 echo $ECHO_N "(cached) $ECHO_C" >&6
9802 ac_check_lib_save_LIBS=$LIBS
9804 cat >conftest.$ac_ext <<_ACEOF
9807 cat confdefs.h >>conftest.$ac_ext
9808 cat >>conftest.$ac_ext <<_ACEOF
9809 /* end confdefs.h. */
9811 /* Override any GCC internal prototype to avoid an error.
9812 Use char because int might match the return type of a GCC
9813 builtin and then its argument prototype would still apply. */
9817 char __gmpz_getlimbn ();
9821 return __gmpz_getlimbn ();
9826 rm -f conftest.$ac_objext conftest$ac_exeext
9827 if { (ac_try="$ac_link"
9829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9830 *) ac_try_echo=$ac_try;;
9832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9833 (eval "$ac_link") 2>conftest.er1
9835 grep -v '^ *+' conftest.er1 >conftest.err
9837 cat conftest.err >&5
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); } && {
9840 test -z "$ac_c_werror_flag" ||
9841 test ! -s conftest.err
9842 } && test -s conftest$ac_exeext &&
9843 $as_test_x conftest$ac_exeext; then
9844 ac_cv_lib_gmp___gmpz_getlimbn=yes
9846 echo "$as_me: failed program was:" >&5
9847 sed 's/^/| /' conftest.$ac_ext >&5
9849 ac_cv_lib_gmp___gmpz_getlimbn=no
9852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9853 conftest$ac_exeext conftest.$ac_ext
9854 LIBS=$ac_check_lib_save_LIBS
9856 { echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_getlimbn" >&5
9857 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_getlimbn" >&6; }
9858 if test $ac_cv_lib_gmp___gmpz_getlimbn = yes; then
9859 cat >>confdefs.h <<_ACEOF
9860 #define HAVE_LIBGMP 1
9866 { echo "$as_me:$LINENO: WARNING: GNU MP not found, or not 3.1 or up, see http://www.swox.com/gmp.
9867 Support for public key algorithms will be unavailable." >&5
9868 echo "$as_me: WARNING: GNU MP not found, or not 3.1 or up, see http://www.swox.com/gmp.
9869 Support for public key algorithms will be unavailable." >&2;}
9870 enable_public_key=no
9874 # Add -R flags needed to run programs linked with gmp
9875 if test $cross_compiling = no -a "x$RPATHFLAG" != x ; then
9877 if test "$cross_compiling" = yes; then
9880 cat >conftest.$ac_ext <<_ACEOF
9883 cat confdefs.h >>conftest.$ac_ext
9884 cat >>conftest.$ac_ext <<_ACEOF
9885 /* end confdefs.h. */
9886 int main(int argc, char **argv) { return 0; }
9888 rm -f conftest$ac_exeext
9889 if { (ac_try="$ac_link"
9891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9892 *) ac_try_echo=$ac_try;;
9894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9895 (eval "$ac_link") 2>&5
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9899 { (case "(($ac_try" in
9900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9901 *) ac_try_echo=$ac_try;;
9903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9904 (eval "$ac_try") 2>&5
9906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907 (exit $ac_status); }; }; then
9910 echo "$as_me: program exited with status $ac_status" >&5
9911 echo "$as_me: failed program was:" >&5
9912 sed 's/^/| /' conftest.$ac_ext >&5
9917 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9922 if test $ac_success = no ; then
9923 { echo "$as_me:$LINENO: checking Running simple test program failed. Trying -R flags" >&5
9924 echo $ECHO_N "checking Running simple test program failed. Trying -R flags... $ECHO_C" >&6; }
9925 ac_remaining_dirs=''
9926 ac_rpath_save_LDFLAGS="$LDFLAGS"
9927 for d in $RPATH_CANDIDATE_DIRS ; do
9928 if test $ac_success = yes ; then
9929 ac_remaining_dirs="$ac_remaining_dirs $d"
9931 LDFLAGS="$RPATHFLAG$d $LDFLAGS"
9932 if test "$cross_compiling" = yes; then
9935 cat >conftest.$ac_ext <<_ACEOF
9938 cat confdefs.h >>conftest.$ac_ext
9939 cat >>conftest.$ac_ext <<_ACEOF
9940 /* end confdefs.h. */
9941 int main(int argc, char **argv) { return 0; }
9943 rm -f conftest$ac_exeext
9944 if { (ac_try="$ac_link"
9946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9947 *) ac_try_echo=$ac_try;;
9949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9950 (eval "$ac_link") 2>&5
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9954 { (case "(($ac_try" in
9955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9956 *) ac_try_echo=$ac_try;;
9958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9959 (eval "$ac_try") 2>&5
9961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962 (exit $ac_status); }; }; then
9964 ac_rpath_save_LDFLAGS="$LDFLAGS"
9965 { echo "$as_me:$LINENO: result: adding $RPATHFLAG$d" >&5
9966 echo "${ECHO_T}adding $RPATHFLAG$d" >&6; }
9969 echo "$as_me: program exited with status $ac_status" >&5
9970 echo "$as_me: failed program was:" >&5
9971 sed 's/^/| /' conftest.$ac_ext >&5
9974 ac_remaining_dirs="$ac_remaining_dirs $d"
9976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9980 LDFLAGS="$ac_rpath_save_LDFLAGS"
9983 RPATH_CANDIDATE_DIRS=$ac_remaining_dirs
9985 if test $ac_success = no ; then
9986 { echo "$as_me:$LINENO: result: failed" >&5
9987 echo "${ECHO_T}failed" >&6; }
9994 { echo "$as_me:$LINENO: checking for __gmpz_powm_sec" >&5
9995 echo $ECHO_N "checking for __gmpz_powm_sec... $ECHO_C" >&6; }
9996 if test "${ac_cv_func___gmpz_powm_sec+set}" = set; then
9997 echo $ECHO_N "(cached) $ECHO_C" >&6
9999 cat >conftest.$ac_ext <<_ACEOF
10002 cat confdefs.h >>conftest.$ac_ext
10003 cat >>conftest.$ac_ext <<_ACEOF
10004 /* end confdefs.h. */
10005 /* Define __gmpz_powm_sec to an innocuous variant, in case <limits.h> declares __gmpz_powm_sec.
10006 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10007 #define __gmpz_powm_sec innocuous___gmpz_powm_sec
10009 /* System header to define __stub macros and hopefully few prototypes,
10010 which can conflict with char __gmpz_powm_sec (); below.
10011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10012 <limits.h> exists even on freestanding compilers. */
10015 # include <limits.h>
10017 # include <assert.h>
10020 #undef __gmpz_powm_sec
10022 /* Override any GCC internal prototype to avoid an error.
10023 Use char because int might match the return type of a GCC
10024 builtin and then its argument prototype would still apply. */
10028 char __gmpz_powm_sec ();
10029 /* The GNU C library defines this for functions which it implements
10030 to always fail with ENOSYS. Some functions are actually named
10031 something starting with __ and the normal name is an alias. */
10032 #if defined __stub___gmpz_powm_sec || defined __stub_____gmpz_powm_sec
10039 return __gmpz_powm_sec ();
10044 rm -f conftest.$ac_objext conftest$ac_exeext
10045 if { (ac_try="$ac_link"
10046 case "(($ac_try" in
10047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10048 *) ac_try_echo=$ac_try;;
10050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10051 (eval "$ac_link") 2>conftest.er1
10053 grep -v '^ *+' conftest.er1 >conftest.err
10055 cat conftest.err >&5
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); } && {
10058 test -z "$ac_c_werror_flag" ||
10059 test ! -s conftest.err
10060 } && test -s conftest$ac_exeext &&
10061 $as_test_x conftest$ac_exeext; then
10062 ac_cv_func___gmpz_powm_sec=yes
10064 echo "$as_me: failed program was:" >&5
10065 sed 's/^/| /' conftest.$ac_ext >&5
10067 ac_cv_func___gmpz_powm_sec=no
10070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10071 conftest$ac_exeext conftest.$ac_ext
10073 { echo "$as_me:$LINENO: result: $ac_cv_func___gmpz_powm_sec" >&5
10074 echo "${ECHO_T}$ac_cv_func___gmpz_powm_sec" >&6; }
10075 if test $ac_cv_func___gmpz_powm_sec = yes; then
10076 cat >>confdefs.h <<\_ACEOF
10077 #define HAVE_MPZ_POWM_SEC 1
10086 if test "x$enable_public_key" = xyes ; then
10087 cat >>confdefs.h <<\_ACEOF
10088 #define WITH_HOGWEED 1
10096 if test "x$enable_shared" = xyes ; then
10105 OPENSSL_LIBFLAGS=''
10107 # Check for openssl's libcrypto (used only for benchmarking)
10108 if test x$enable_openssl = xyes ; then
10109 { echo "$as_me:$LINENO: checking for BF_ecb_encrypt in -lcrypto" >&5
10110 echo $ECHO_N "checking for BF_ecb_encrypt in -lcrypto... $ECHO_C" >&6; }
10111 if test "${ac_cv_lib_crypto_BF_ecb_encrypt+set}" = set; then
10112 echo $ECHO_N "(cached) $ECHO_C" >&6
10114 ac_check_lib_save_LIBS=$LIBS
10115 LIBS="-lcrypto $LIBS"
10116 cat >conftest.$ac_ext <<_ACEOF
10119 cat confdefs.h >>conftest.$ac_ext
10120 cat >>conftest.$ac_ext <<_ACEOF
10121 /* end confdefs.h. */
10123 /* Override any GCC internal prototype to avoid an error.
10124 Use char because int might match the return type of a GCC
10125 builtin and then its argument prototype would still apply. */
10129 char BF_ecb_encrypt ();
10133 return BF_ecb_encrypt ();
10138 rm -f conftest.$ac_objext conftest$ac_exeext
10139 if { (ac_try="$ac_link"
10140 case "(($ac_try" in
10141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10142 *) ac_try_echo=$ac_try;;
10144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10145 (eval "$ac_link") 2>conftest.er1
10147 grep -v '^ *+' conftest.er1 >conftest.err
10149 cat conftest.err >&5
10150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); } && {
10152 test -z "$ac_c_werror_flag" ||
10153 test ! -s conftest.err
10154 } && test -s conftest$ac_exeext &&
10155 $as_test_x conftest$ac_exeext; then
10156 ac_cv_lib_crypto_BF_ecb_encrypt=yes
10158 echo "$as_me: failed program was:" >&5
10159 sed 's/^/| /' conftest.$ac_ext >&5
10161 ac_cv_lib_crypto_BF_ecb_encrypt=no
10164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10165 conftest$ac_exeext conftest.$ac_ext
10166 LIBS=$ac_check_lib_save_LIBS
10168 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_BF_ecb_encrypt" >&5
10169 echo "${ECHO_T}$ac_cv_lib_crypto_BF_ecb_encrypt" >&6; }
10170 if test $ac_cv_lib_crypto_BF_ecb_encrypt = yes; then
10171 OPENSSL_LIBFLAGS='-lcrypto'
10181 if test x$enable_openssl = xyes ; then
10182 cat >>confdefs.h <<\_ACEOF
10183 #define WITH_OPENSSL 1
10190 # Set these flags *last*, or else the test programs won't compile
10191 if test x$GCC = xyes ; then
10192 # Using -ggdb3 makes (some versions of) Redhat's gcc-2.96 dump core
10193 if "$CC" --version | grep '^2\.96$' 1>/dev/null 2>&1; then
10196 CFLAGS="$CFLAGS -ggdb3"
10198 # FIXME: It would be better to actually test if this option works and/or is needed.
10199 # Or perhaps use -funsigned-char.
10200 if "$CC" --version | grep 'gcc.* 4\.' 1>/dev/null 2>&1; then
10201 CFLAGS="$CFLAGS -Wno-pointer-sign"
10203 CFLAGS="$CFLAGS -Wall -W \
10204 -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes \
10205 -Wpointer-arith -Wbad-function-cast -Wnested-externs"
10207 # Don't enable -Wcast-align as it results in tons of warnings in the
10208 # DES code. And when using stdio.
10209 # Don't enable -Waggregate-return, as that causes warnings for glibc
10213 ac_config_files="$ac_config_files config.make config.m4 Makefile"
10215 ac_config_files="$ac_config_files tools/Makefile testsuite/Makefile examples/Makefile"
10218 cat >confcache <<\_ACEOF
10219 # This file is a shell script that caches the results of configure
10220 # tests run on this system so they can be shared between configure
10221 # scripts and configure runs, see configure's option --config-cache.
10222 # It is not useful on other systems. If it contains results you don't
10223 # want to keep, you may remove or edit it.
10225 # config.status only pays attention to the cache file if you give it
10226 # the --recheck option to rerun configure.
10228 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10229 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10230 # following values.
10234 # The following way of writing the cache mishandles newlines in values,
10235 # but we know of no workaround that is simple, portable, and efficient.
10236 # So, we kill variables containing newlines.
10237 # Ultrix sh set writes to stderr and can't be redirected directly,
10238 # and sets the high bit in the cache file unless we assign to the vars.
10240 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10241 eval ac_val=\$$ac_var
10245 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
10246 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
10249 _ | IFS | as_nl) ;; #(
10250 *) $as_unset $ac_var ;;
10256 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10257 *${as_nl}ac_space=\ *)
10258 # `set' does not quote correctly, so add quotes (double-quote
10259 # substitution turns \\\\ into \\, and sed turns \\ into \).
10262 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10265 # `set' quotes correctly as required by POSIX, so do not add quotes.
10266 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10275 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10277 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10279 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10280 if test -w "$cache_file"; then
10281 test "x$cache_file" != "x/dev/null" &&
10282 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10283 echo "$as_me: updating cache $cache_file" >&6;}
10284 cat confcache >$cache_file
10286 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10287 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10292 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10293 # Let make expand exec_prefix.
10294 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10296 DEFS=-DHAVE_CONFIG_H
10300 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10301 # 1. Remove the extension, and $U if already installed.
10302 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10303 ac_i=`echo "$ac_i" | sed "$ac_script"`
10304 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10305 # will be set to the directory where LIBOBJS objects are built.
10306 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10307 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10309 LIBOBJS=$ac_libobjs
10311 LTLIBOBJS=$ac_ltlibobjs
10315 : ${CONFIG_STATUS=./config.status}
10316 ac_clean_files_save=$ac_clean_files
10317 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10318 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10319 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10320 cat >$CONFIG_STATUS <<_ACEOF
10322 # Generated by $as_me.
10323 # Run this file to recreate the current configuration.
10324 # Compiler output produced by configure, useful for debugging
10325 # configure, is in config.log if it exists.
10328 ac_cs_recheck=false
10330 SHELL=\${CONFIG_SHELL-$SHELL}
10333 cat >>$CONFIG_STATUS <<\_ACEOF
10334 ## --------------------- ##
10335 ## M4sh Initialization. ##
10336 ## --------------------- ##
10338 # Be more Bourne compatible
10339 DUALCASE=1; export DUALCASE # for MKS sh
10340 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10343 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10344 # is contrary to our usage. Disable this feature.
10345 alias -g '${1+"$@"}'='"$@"'
10346 setopt NO_GLOB_SUBST
10348 case `(set -o) 2>/dev/null` in
10349 *posix*) set -o posix ;;
10358 # Avoid depending upon Character Ranges.
10359 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10360 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10361 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10362 as_cr_digits='0123456789'
10363 as_cr_alnum=$as_cr_Letters$as_cr_digits
10365 # The user is always right.
10366 if test "${PATH_SEPARATOR+set}" != set; then
10367 echo "#! /bin/sh" >conf$$.sh
10368 echo "exit 0" >>conf$$.sh
10370 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10378 # Support unset when possible.
10379 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10387 # We need space, tab and new line, in precisely that order. Quoting is
10388 # there to prevent editors from complaining about space-tab.
10389 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10390 # splitting by setting IFS to empty value.)
10395 # Find who we are. Look in the path if we contain no directory separator.
10397 *[\\/]* ) as_myself=$0 ;;
10398 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10399 for as_dir in $PATH
10402 test -z "$as_dir" && as_dir=.
10403 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10409 # We did not find ourselves, most probably we were run as `sh COMMAND'
10410 # in which case we are not to be found in the path.
10411 if test "x$as_myself" = x; then
10414 if test ! -f "$as_myself"; then
10415 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10416 { (exit 1); exit 1; }
10419 # Work around bugs in pre-3.0 UWIN ksh.
10420 for as_var in ENV MAIL MAILPATH
10421 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10429 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10430 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10431 LC_TELEPHONE LC_TIME
10433 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10434 eval $as_var=C; export $as_var
10436 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10440 # Required to use basename.
10441 if expr a : '\(a\)' >/dev/null 2>&1 &&
10442 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10448 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10449 as_basename=basename
10455 # Name of the executable.
10456 as_me=`$as_basename -- "$0" ||
10457 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10458 X"$0" : 'X\(//\)$' \| \
10459 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10461 sed '/^.*\/\([^/][^/]*\)\/*$/{
10480 as_lineno_1=$LINENO
10481 as_lineno_2=$LINENO
10482 test "x$as_lineno_1" != "x$as_lineno_2" &&
10483 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10485 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10486 # uniformly replaced by the line number. The first 'sed' inserts a
10487 # line-number line after each line using $LINENO; the second 'sed'
10488 # does the real work. The second script uses 'N' to pair each
10489 # line-number line with the line containing $LINENO, and appends
10490 # trailing '-' during substitution so that $LINENO is not a special
10491 # case at line end.
10492 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10493 # scripts with optimization help from Paolo Bonzini. Blame Lee
10494 # E. McMahon (1931-1989) for sed's syntax. :-)
10506 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10509 ' >$as_me.lineno &&
10510 chmod +x "$as_me.lineno" ||
10511 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10512 { (exit 1); exit 1; }; }
10514 # Don't try to exec as it changes $[0], causing all sort of problems
10515 # (the dirname of $[0] is not the place where we might find the
10516 # original and so on. Autoconf is especially sensitive to this).
10517 . "./$as_me.lineno"
10518 # Exit status is that of the last command.
10523 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10529 ECHO_C= ECHO_N= ECHO_T=
10530 case `echo -n x` in
10532 case `echo 'x\c'` in
10533 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10540 if expr a : '\(a\)' >/dev/null 2>&1 &&
10541 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10547 rm -f conf$$ conf$$.exe conf$$.file
10548 if test -d conf$$.dir; then
10549 rm -f conf$$.dir/conf$$.file
10555 if ln -s conf$$.file conf$$ 2>/dev/null; then
10557 # ... but there are two gotchas:
10558 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10559 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10560 # In both cases, we have to default to `cp -p'.
10561 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10563 elif ln conf$$.file conf$$ 2>/dev/null; then
10568 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10569 rmdir conf$$.dir 2>/dev/null
10571 if mkdir -p . 2>/dev/null; then
10574 test -d ./-p && rmdir ./-p
10578 if test -x / >/dev/null 2>&1; then
10579 as_test_x='test -x'
10581 if ls -dL / >/dev/null 2>&1; then
10588 if test -d "$1"; then
10594 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10595 ???[sx]*):;;*)false;;esac;fi
10599 as_executable_p=$as_test_x
10601 # Sed expression to map a string onto a valid CPP name.
10602 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10604 # Sed expression to map a string onto a valid variable name.
10605 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10610 # Save the log message, to keep $[0] and so on meaningful, and to
10611 # report actual input values of CONFIG_FILES etc. instead of their
10612 # values after options handling.
10614 This file was extended by nettle $as_me 2.1, which was
10615 generated by GNU Autoconf 2.61. Invocation command line was
10617 CONFIG_FILES = $CONFIG_FILES
10618 CONFIG_HEADERS = $CONFIG_HEADERS
10619 CONFIG_LINKS = $CONFIG_LINKS
10620 CONFIG_COMMANDS = $CONFIG_COMMANDS
10623 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10628 cat >>$CONFIG_STATUS <<_ACEOF
10629 # Files that config.status was made for.
10630 config_files="$ac_config_files"
10631 config_headers="$ac_config_headers"
10632 config_links="$ac_config_links"
10633 config_commands="$ac_config_commands"
10637 cat >>$CONFIG_STATUS <<\_ACEOF
10639 \`$as_me' instantiates files from templates according to the
10640 current configuration.
10642 Usage: $0 [OPTIONS] [FILE]...
10644 -h, --help print this help, then exit
10645 -V, --version print version number and configuration settings, then exit
10646 -q, --quiet do not print progress messages
10647 -d, --debug don't remove temporary files
10648 --recheck update $as_me by reconfiguring in the same conditions
10649 --file=FILE[:TEMPLATE]
10650 instantiate the configuration file FILE
10651 --header=FILE[:TEMPLATE]
10652 instantiate the configuration header FILE
10654 Configuration files:
10657 Configuration headers:
10660 Configuration links:
10663 Configuration commands:
10666 Report bugs to <bug-autoconf@gnu.org>."
10669 cat >>$CONFIG_STATUS <<_ACEOF
10671 nettle config.status 2.1
10672 configured by $0, generated by GNU Autoconf 2.61,
10673 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10675 Copyright (C) 2006 Free Software Foundation, Inc.
10676 This config.status script is free software; the Free Software Foundation
10677 gives unlimited permission to copy, distribute and modify it."
10685 cat >>$CONFIG_STATUS <<\_ACEOF
10686 # If no file are specified by the user, then we need to provide default
10687 # value. By we need to know if files were specified by the user.
10693 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10694 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10705 # Handling of the options.
10706 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10708 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10709 echo "$ac_cs_version"; exit ;;
10710 --debug | --debu | --deb | --de | --d | -d )
10712 --file | --fil | --fi | --f )
10714 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10715 ac_need_defaults=false;;
10716 --header | --heade | --head | --hea )
10718 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10719 ac_need_defaults=false;;
10721 # Conflict between --help and --header
10722 { echo "$as_me: error: ambiguous option: $1
10723 Try \`$0 --help' for more information." >&2
10724 { (exit 1); exit 1; }; };;
10725 --help | --hel | -h )
10726 echo "$ac_cs_usage"; exit ;;
10727 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10728 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10731 # This is an error.
10732 -*) { echo "$as_me: error: unrecognized option: $1
10733 Try \`$0 --help' for more information." >&2
10734 { (exit 1); exit 1; }; } ;;
10736 *) ac_config_targets="$ac_config_targets $1"
10737 ac_need_defaults=false ;;
10743 ac_configure_extra_args=
10745 if $ac_cs_silent; then
10747 ac_configure_extra_args="$ac_configure_extra_args --silent"
10751 cat >>$CONFIG_STATUS <<_ACEOF
10752 if \$ac_cs_recheck; then
10753 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10754 CONFIG_SHELL=$SHELL
10755 export CONFIG_SHELL
10756 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10760 cat >>$CONFIG_STATUS <<\_ACEOF
10764 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10765 ## Running $as_me. ##
10771 cat >>$CONFIG_STATUS <<_ACEOF
10775 # variables for create stdint.h replacement
10778 ac_stdint_h="$ac_stdint_h"
10779 _ac_stdint_h=`echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
10780 ac_cv_stdint_message="$ac_cv_stdint_message"
10781 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
10782 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
10783 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
10784 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
10785 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
10786 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
10787 ac_cv_stdint_char_model="$ac_cv_stdint_char_model"
10788 ac_cv_stdint_long_model="$ac_cv_stdint_long_model"
10789 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
10790 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
10791 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
10796 cat >>$CONFIG_STATUS <<\_ACEOF
10798 # Handling of arguments.
10799 for ac_config_target in $ac_config_targets
10801 case $ac_config_target in
10802 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10803 "dummy-dep-files") CONFIG_COMMANDS="$CONFIG_COMMANDS dummy-dep-files" ;;
10804 "$tmp_f") CONFIG_LINKS="$CONFIG_LINKS $tmp_f:$asm_path/$tmp_f" ;;
10805 "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
10806 "config.make") CONFIG_FILES="$CONFIG_FILES config.make" ;;
10807 "config.m4") CONFIG_FILES="$CONFIG_FILES config.m4" ;;
10808 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10809 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
10810 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
10811 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
10813 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10814 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10815 { (exit 1); exit 1; }; };;
10820 # If the user did not use the arguments to specify the items to instantiate,
10821 # then the envvar interface is used. Set only those that are not.
10822 # We use the long form for the default assignment because of an extremely
10823 # bizarre bug on SunOS 4.1.3.
10824 if $ac_need_defaults; then
10825 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10826 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10827 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
10828 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10831 # Have a temporary directory for convenience. Make it in the build tree
10832 # simply because there is no reason against having it here, and in addition,
10833 # creating and moving files from /tmp can sometimes cause problems.
10834 # Hook for its removal unless debugging.
10835 # Note that there is a small window in which the directory will not be cleaned:
10836 # after its creation but before its name has been assigned to `$tmp'.
10840 trap 'exit_status=$?
10841 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10843 trap '{ (exit 1); exit 1; }' 1 2 13 15
10845 # Create a (secure) tmp directory for tmp files.
10848 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10849 test -n "$tmp" && test -d "$tmp"
10852 tmp=./conf$$-$RANDOM
10853 (umask 077 && mkdir "$tmp")
10856 echo "$me: cannot create a temporary directory in ." >&2
10857 { (exit 1); exit 1; }
10861 # Set up the sed scripts for CONFIG_FILES section.
10864 # No need to generate the scripts if there are no CONFIG_FILES.
10865 # This happens for instance when ./config.status config.h
10866 if test -n "$CONFIG_FILES"; then
10873 for ac_last_try in false false false false false :; do
10874 cat >conf$$subs.sed <<_ACEOF
10875 SHELL!$SHELL$ac_delim
10876 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
10877 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
10878 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
10879 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
10880 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
10881 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
10882 exec_prefix!$exec_prefix$ac_delim
10883 prefix!$prefix$ac_delim
10884 program_transform_name!$program_transform_name$ac_delim
10885 bindir!$bindir$ac_delim
10886 sbindir!$sbindir$ac_delim
10887 libexecdir!$libexecdir$ac_delim
10888 datarootdir!$datarootdir$ac_delim
10889 datadir!$datadir$ac_delim
10890 sysconfdir!$sysconfdir$ac_delim
10891 sharedstatedir!$sharedstatedir$ac_delim
10892 localstatedir!$localstatedir$ac_delim
10893 includedir!$includedir$ac_delim
10894 oldincludedir!$oldincludedir$ac_delim
10895 docdir!$docdir$ac_delim
10896 infodir!$infodir$ac_delim
10897 htmldir!$htmldir$ac_delim
10898 dvidir!$dvidir$ac_delim
10899 pdfdir!$pdfdir$ac_delim
10900 psdir!$psdir$ac_delim
10901 libdir!$libdir$ac_delim
10902 localedir!$localedir$ac_delim
10903 mandir!$mandir$ac_delim
10904 DEFS!$DEFS$ac_delim
10905 ECHO_C!$ECHO_C$ac_delim
10906 ECHO_N!$ECHO_N$ac_delim
10907 ECHO_T!$ECHO_T$ac_delim
10908 LIBS!$LIBS$ac_delim
10909 build_alias!$build_alias$ac_delim
10910 host_alias!$host_alias$ac_delim
10911 target_alias!$target_alias$ac_delim
10912 build!$build$ac_delim
10913 build_cpu!$build_cpu$ac_delim
10914 build_vendor!$build_vendor$ac_delim
10915 build_os!$build_os$ac_delim
10916 host!$host$ac_delim
10917 host_cpu!$host_cpu$ac_delim
10918 host_vendor!$host_vendor$ac_delim
10919 host_os!$host_os$ac_delim
10921 CFLAGS!$CFLAGS$ac_delim
10922 LDFLAGS!$LDFLAGS$ac_delim
10923 CPPFLAGS!$CPPFLAGS$ac_delim
10924 ac_ct_CC!$ac_ct_CC$ac_delim
10925 EXEEXT!$EXEEXT$ac_delim
10926 OBJEXT!$OBJEXT$ac_delim
10928 CXXFLAGS!$CXXFLAGS$ac_delim
10929 ac_ct_CXX!$ac_ct_CXX$ac_delim
10930 CXX_TESTS!$CXX_TESTS$ac_delim
10931 SET_MAKE!$SET_MAKE$ac_delim
10932 RANLIB!$RANLIB$ac_delim
10934 OBJDUMP!$OBJDUMP$ac_delim
10935 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
10936 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
10937 INSTALL_DATA!$INSTALL_DATA$ac_delim
10938 DEP_INCLUDE!$DEP_INCLUDE$ac_delim
10939 DEP_FLAGS!$DEP_FLAGS$ac_delim
10940 DEP_PROCESS!$DEP_PROCESS$ac_delim
10941 CCPIC!$CCPIC$ac_delim
10942 CCPIC_MAYBE!$CCPIC_MAYBE$ac_delim
10943 ASM_SYMBOL_PREFIX!$ASM_SYMBOL_PREFIX$ac_delim
10944 ASM_ELF_STYLE!$ASM_ELF_STYLE$ac_delim
10945 ASM_TYPE_FUNCTION!$ASM_TYPE_FUNCTION$ac_delim
10946 ASM_MARK_NOEXEC_STACK!$ASM_MARK_NOEXEC_STACK$ac_delim
10947 ASM_ALIGN_LOG!$ASM_ALIGN_LOG$ac_delim
10948 SHLIBCFLAGS!$SHLIBCFLAGS$ac_delim
10949 LIBNETTLE_MAJOR!$LIBNETTLE_MAJOR$ac_delim
10950 LIBNETTLE_MINOR!$LIBNETTLE_MINOR$ac_delim
10951 LIBNETTLE_FORLINK!$LIBNETTLE_FORLINK$ac_delim
10952 LIBNETTLE_SONAME!$LIBNETTLE_SONAME$ac_delim
10953 LIBNETTLE_FILE!$LIBNETTLE_FILE$ac_delim
10954 LIBNETTLE_LINK!$LIBNETTLE_LINK$ac_delim
10955 LIBNETTLE_LIBS!$LIBNETTLE_LIBS$ac_delim
10956 LIBHOGWEED_MAJOR!$LIBHOGWEED_MAJOR$ac_delim
10957 LIBHOGWEED_MINOR!$LIBHOGWEED_MINOR$ac_delim
10958 LIBHOGWEED_FORLINK!$LIBHOGWEED_FORLINK$ac_delim
10959 LIBHOGWEED_SONAME!$LIBHOGWEED_SONAME$ac_delim
10960 LIBHOGWEED_FILE!$LIBHOGWEED_FILE$ac_delim
10961 LIBHOGWEED_LINK!$LIBHOGWEED_LINK$ac_delim
10962 LIBHOGWEED_LIBS!$LIBHOGWEED_LIBS$ac_delim
10965 GREP!$GREP$ac_delim
10966 EGREP!$EGREP$ac_delim
10967 ALLOCA!$ALLOCA$ac_delim
10968 LIBOBJS!$LIBOBJS$ac_delim
10969 IF_HOGWEED!$IF_HOGWEED$ac_delim
10970 IF_SHARED!$IF_SHARED$ac_delim
10971 OPENSSL_LIBFLAGS!$OPENSSL_LIBFLAGS$ac_delim
10974 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
10976 elif $ac_last_try; then
10977 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10978 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10979 { (exit 1); exit 1; }; }
10981 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10985 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10986 if test -n "$ac_eof"; then
10987 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10988 ac_eof=`expr $ac_eof + 1`
10991 cat >>$CONFIG_STATUS <<_ACEOF
10992 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
10993 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10996 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10997 s/^/s,@/; s/!/@,|#_!!_#|/
11000 s/'"$ac_delim"'$/,g/; t
11002 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11003 ' >>$CONFIG_STATUS <conf$$subs.sed
11004 rm -f conf$$subs.sed
11005 cat >>$CONFIG_STATUS <<_ACEOF
11011 for ac_last_try in false false false false false :; do
11012 cat >conf$$subs.sed <<_ACEOF
11013 LTLIBOBJS!$LTLIBOBJS$ac_delim
11016 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 1; then
11018 elif $ac_last_try; then
11019 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11020 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11021 { (exit 1); exit 1; }; }
11023 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11027 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11028 if test -n "$ac_eof"; then
11029 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11030 ac_eof=`expr $ac_eof + 1`
11033 cat >>$CONFIG_STATUS <<_ACEOF
11034 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
11035 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
11038 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11039 s/^/s,@/; s/!/@,|#_!!_#|/
11042 s/'"$ac_delim"'$/,g/; t
11044 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11045 ' >>$CONFIG_STATUS <conf$$subs.sed
11046 rm -f conf$$subs.sed
11047 cat >>$CONFIG_STATUS <<_ACEOF
11054 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11055 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11056 # trailing colons and then remove the whole line if VPATH becomes empty
11057 # (actually we leave an empty line to preserve line numbers).
11058 if test "x$srcdir" = x.; then
11059 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11060 s/:*\$(srcdir):*/:/
11061 s/:*\${srcdir}:*/:/
11063 s/^\([^=]*=[ ]*\):*/\1/
11069 cat >>$CONFIG_STATUS <<\_ACEOF
11070 fi # test -n "$CONFIG_FILES"
11073 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS
11076 :[FHLC]) ac_mode=$ac_tag; continue;;
11078 case $ac_mode$ac_tag in
11080 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11081 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
11082 { (exit 1); exit 1; }; };;
11083 :[FH]-) ac_tag=-:-;;
11084 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11101 -) ac_f="$tmp/stdin";;
11102 *) # Look for the file first in the build tree, then in the source tree
11103 # (if the path is not absolute). The absolute path cannot be DOS-style,
11104 # because $ac_f cannot contain `:'.
11108 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11110 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11111 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11112 { (exit 1); exit 1; }; };;
11114 ac_file_inputs="$ac_file_inputs $ac_f"
11117 # Let's still pretend it is `configure' which instantiates (i.e., don't
11118 # use $as_me), people would be surprised to read:
11119 # /* config.h. Generated by config.status. */
11120 configure_input="Generated from "`IFS=:
11121 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
11122 if test x"$ac_file" != x-; then
11123 configure_input="$ac_file. $configure_input"
11124 { echo "$as_me:$LINENO: creating $ac_file" >&5
11125 echo "$as_me: creating $ac_file" >&6;}
11129 *:-:* | *:-) cat >"$tmp/stdin";;
11134 ac_dir=`$as_dirname -- "$ac_file" ||
11135 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11136 X"$ac_file" : 'X\(//\)[^/]' \| \
11137 X"$ac_file" : 'X\(//\)$' \| \
11138 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11140 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11144 /^X\(\/\/\)[^/].*/{
11159 -*) as_dir=./$as_dir;;
11161 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11165 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11166 *) as_qdir=$as_dir;;
11168 as_dirs="'$as_qdir' $as_dirs"
11169 as_dir=`$as_dirname -- "$as_dir" ||
11170 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11171 X"$as_dir" : 'X\(//\)[^/]' \| \
11172 X"$as_dir" : 'X\(//\)$' \| \
11173 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11175 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11179 /^X\(\/\/\)[^/].*/{
11192 test -d "$as_dir" && break
11194 test -z "$as_dirs" || eval "mkdir $as_dirs"
11195 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11196 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11197 { (exit 1); exit 1; }; }; }
11201 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11203 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11204 # A ".." for each directory in $ac_dir_suffix.
11205 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
11206 case $ac_top_builddir_sub in
11207 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11208 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11211 ac_abs_top_builddir=$ac_pwd
11212 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11213 # for backward compatibility:
11214 ac_top_builddir=$ac_top_build_prefix
11217 .) # We are building in place.
11219 ac_top_srcdir=$ac_top_builddir_sub
11220 ac_abs_top_srcdir=$ac_pwd ;;
11221 [\\/]* | ?:[\\/]* ) # Absolute name.
11222 ac_srcdir=$srcdir$ac_dir_suffix;
11223 ac_top_srcdir=$srcdir
11224 ac_abs_top_srcdir=$srcdir ;;
11225 *) # Relative name.
11226 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11227 ac_top_srcdir=$ac_top_build_prefix$srcdir
11228 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11230 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11240 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11241 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11243 ac_MKDIR_P=$MKDIR_P
11245 [\\/$]* | ?:[\\/]* ) ;;
11246 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11250 cat >>$CONFIG_STATUS <<\_ACEOF
11251 # If the template does not know about datarootdir, expand it.
11252 # FIXME: This hack should be removed a few years after 2.60.
11253 ac_datarootdir_hack=; ac_datarootdir_seen=
11255 case `sed -n '/datarootdir/ {
11264 ' $ac_file_inputs` in
11265 *datarootdir*) ac_datarootdir_seen=yes;;
11266 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11267 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11268 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11270 cat >>$CONFIG_STATUS <<_ACEOF
11271 ac_datarootdir_hack='
11272 s&@datadir@&$datadir&g
11273 s&@docdir@&$docdir&g
11274 s&@infodir@&$infodir&g
11275 s&@localedir@&$localedir&g
11276 s&@mandir@&$mandir&g
11277 s&\\\${datarootdir}&$datarootdir&g' ;;
11281 # Neutralize VPATH when `$srcdir' = `.'.
11282 # Shell code in configure.ac might set extrasub.
11283 # FIXME: do we really want to maintain this feature?
11284 cat >>$CONFIG_STATUS <<_ACEOF
11288 cat >>$CONFIG_STATUS <<\_ACEOF
11290 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11291 s&@configure_input@&$configure_input&;t t
11292 s&@top_builddir@&$ac_top_builddir_sub&;t t
11293 s&@srcdir@&$ac_srcdir&;t t
11294 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11295 s&@top_srcdir@&$ac_top_srcdir&;t t
11296 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11297 s&@builddir@&$ac_builddir&;t t
11298 s&@abs_builddir@&$ac_abs_builddir&;t t
11299 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11300 s&@INSTALL@&$ac_INSTALL&;t t
11301 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11302 $ac_datarootdir_hack
11303 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
11305 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11306 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11307 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11308 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11309 which seems to be undefined. Please make sure it is defined." >&5
11310 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11311 which seems to be undefined. Please make sure it is defined." >&2;}
11315 -) cat "$tmp/out"; rm -f "$tmp/out";;
11316 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
11325 # Transform confdefs.h into a sed script `conftest.defines', that
11326 # substitutes the proper values into config.h.in to produce config.h.
11327 rm -f conftest.defines conftest.tail
11328 # First, append a space to every undef/define line, to ease matching.
11329 echo 's/$/ /' >conftest.defines
11330 # Then, protect against being on the right side of a sed subst, or in
11331 # an unquoted here document, in config.status. If some macros were
11332 # called several times there might be several #defines for the same
11333 # symbol, which is useless. But do not sort them, since the last
11334 # AC_DEFINE must be honored.
11335 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11336 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
11337 # NAME is the cpp macro being defined, VALUE is the value it is being given.
11338 # PARAMS is the parameter list in the macro definition--in most cases, it's
11339 # just an empty string.
11340 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
11341 ac_dB='\\)[ (].*,\\1define\\2'
11349 s/^[ ]*#[ ]*define[ ][ ]*//
11354 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
11355 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
11356 ' >>conftest.defines
11358 # Remove the space that was appended to ease matching.
11359 # Then replace #undef with comments. This is necessary, for
11360 # example, in the case of _POSIX_SOURCE, which is predefined and required
11361 # on some systems where configure will not decide to define it.
11362 # (The regexp can be short, since the line contains either #define or #undef.)
11364 s,^[ #]*u.*,/* & */,' >>conftest.defines
11366 # Break up conftest.defines:
11367 ac_max_sed_lines=50
11369 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
11370 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
11371 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
11373 ac_in='$ac_file_inputs'
11374 ac_out='"$tmp/out1"'
11375 ac_nxt='"$tmp/out2"'
11379 # Write a here document:
11380 cat >>$CONFIG_STATUS <<_ACEOF
11381 # First, check the format of the line:
11382 cat >"\$tmp/defines.sed" <<\\CEOF
11383 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
11384 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
11388 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
11390 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
11391 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
11392 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
11393 grep . conftest.tail >/dev/null || break
11394 rm -f conftest.defines
11395 mv conftest.tail conftest.defines
11397 rm -f conftest.defines conftest.tail
11399 echo "ac_result=$ac_in" >>$CONFIG_STATUS
11400 cat >>$CONFIG_STATUS <<\_ACEOF
11401 if test x"$ac_file" != x-; then
11402 echo "/* $configure_input */" >"$tmp/config.h"
11403 cat "$ac_result" >>"$tmp/config.h"
11404 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
11405 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11406 echo "$as_me: $ac_file is unchanged" >&6;}
11409 mv "$tmp/config.h" $ac_file
11412 echo "/* $configure_input */"
11422 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
11423 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
11425 if test ! -r "$srcdir/$ac_source"; then
11426 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
11427 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
11428 { (exit 1); exit 1; }; }
11432 # Try a relative symlink, then a hard link, then a copy.
11434 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
11435 *) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;;
11437 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
11438 ln "$srcdir/$ac_source" "$ac_file" 2>/dev/null ||
11439 cp -p "$srcdir/$ac_source" "$ac_file" ||
11440 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
11441 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
11442 { (exit 1); exit 1; }; }
11444 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
11445 echo "$as_me: executing $ac_file commands" >&6;}
11450 case $ac_file$ac_mode in
11451 "dummy-dep-files":C) (cd "$srcdir" && find . -name '*.c' -print) \
11452 | sed 's/\.c$//' | (while read f; do echo > "$f.o.d"; echo > "$f.po.d"; done)
11455 { echo "$as_me:$LINENO: creating $ac_stdint_h : $_ac_stdint_h" >&5
11456 echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
11457 ac_stdint=$tmp/_stdint.h
11459 echo "#ifndef" $_ac_stdint_h >$ac_stdint
11460 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
11461 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
11462 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
11463 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
11464 if test "_$ac_cv_header_stdint_t" != "_" ; then
11465 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
11468 cat >>$ac_stdint <<STDINT_EOF
11470 /* ................... shortcircuit part ........................... */
11472 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
11473 #include <stdint.h>
11475 #include <stddef.h>
11477 /* .................... configured part ............................ */
11481 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
11482 if test "_$ac_cv_header_stdint_x" != "_" ; then
11483 ac_header="$ac_cv_header_stdint_x"
11484 echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
11486 echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
11489 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
11490 if test "_$ac_cv_header_stdint_o" != "_" ; then
11491 ac_header="$ac_cv_header_stdint_o"
11492 echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
11494 echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
11497 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
11498 if test "_$ac_cv_header_stdint_u" != "_" ; then
11499 ac_header="$ac_cv_header_stdint_u"
11500 echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
11502 echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
11505 echo "" >>$ac_stdint
11507 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
11508 echo "#include <$ac_header>" >>$ac_stdint
11509 echo "" >>$ac_stdint
11512 echo "/* which 64bit typedef has been found */" >>$ac_stdint
11513 if test "$ac_cv_type_uint64_t" = "yes" ; then
11514 echo "#define _STDINT_HAVE_UINT64_T" "1" >>$ac_stdint
11516 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
11518 if test "$ac_cv_type_u_int64_t" = "yes" ; then
11519 echo "#define _STDINT_HAVE_U_INT64_T" "1" >>$ac_stdint
11521 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
11523 echo "" >>$ac_stdint
11525 echo "/* which type model has been detected */" >>$ac_stdint
11526 if test "_$ac_cv_stdint_char_model" != "_" ; then
11527 echo "#define _STDINT_CHAR_MODEL" "$ac_cv_stdint_char_model" >>$ac_stdint
11528 echo "#define _STDINT_LONG_MODEL" "$ac_cv_stdint_long_model" >>$ac_stdint
11530 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
11531 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
11533 echo "" >>$ac_stdint
11535 echo "/* whether int_least types were detected */" >>$ac_stdint
11536 if test "$ac_cv_type_int_least32_t" = "yes"; then
11537 echo "#define _STDINT_HAVE_INT_LEAST32_T" "1" >>$ac_stdint
11539 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
11541 echo "/* whether int_fast types were detected */" >>$ac_stdint
11542 if test "$ac_cv_type_int_fast32_t" = "yes"; then
11543 echo "#define _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
11545 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
11547 echo "/* whether intmax_t type was detected */" >>$ac_stdint
11548 if test "$ac_cv_type_intmax_t" = "yes"; then
11549 echo "#define _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
11551 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
11553 echo "" >>$ac_stdint
11555 cat >>$ac_stdint <<STDINT_EOF
11556 /* .................... detections part ............................ */
11558 /* whether we need to define bitspecific types from compiler base types */
11559 #ifndef _STDINT_HEADER_INTPTR
11560 #ifndef _STDINT_HEADER_UINT32
11561 #ifndef _STDINT_HEADER_U_INT32
11562 #define _STDINT_NEED_INT_MODEL_T
11564 #define _STDINT_HAVE_U_INT_TYPES
11569 #ifdef _STDINT_HAVE_U_INT_TYPES
11570 #undef _STDINT_NEED_INT_MODEL_T
11573 #ifdef _STDINT_CHAR_MODEL
11574 #if _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
11575 #ifndef _STDINT_BYTE_MODEL
11576 #define _STDINT_BYTE_MODEL 12
11581 #ifndef _STDINT_HAVE_INT_LEAST32_T
11582 #define _STDINT_NEED_INT_LEAST_T
11585 #ifndef _STDINT_HAVE_INT_FAST32_T
11586 #define _STDINT_NEED_INT_FAST_T
11589 #ifndef _STDINT_HEADER_INTPTR
11590 #define _STDINT_NEED_INTPTR_T
11591 #ifndef _STDINT_HAVE_INTMAX_T
11592 #define _STDINT_NEED_INTMAX_T
11597 /* .................... definition part ............................ */
11599 /* some system headers have good uint64_t */
11600 #ifndef _HAVE_UINT64_T
11601 #if defined _STDINT_HAVE_UINT64_T || defined HAVE_UINT64_T
11602 #define _HAVE_UINT64_T
11603 #elif defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
11604 #define _HAVE_UINT64_T
11605 typedef u_int64_t uint64_t;
11609 #ifndef _HAVE_UINT64_T
11610 /* .. here are some common heuristics using compiler runtime specifics */
11611 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
11612 #define _HAVE_UINT64_T
11613 typedef long long int64_t;
11614 typedef unsigned long long uint64_t;
11616 #elif !defined __STRICT_ANSI__
11617 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
11618 #define _HAVE_UINT64_T
11619 typedef __int64 int64_t;
11620 typedef unsigned __int64 uint64_t;
11622 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
11623 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
11624 #if !defined _NO_LONGLONG
11625 #define _HAVE_UINT64_T
11626 typedef long long int64_t;
11627 typedef unsigned long long uint64_t;
11630 #elif defined __alpha || (defined __mips && defined _ABIN32)
11631 #if !defined _NO_LONGLONG
11632 typedef long int64_t;
11633 typedef unsigned long uint64_t;
11635 /* compiler/cpu type to define int64_t */
11640 #if defined _STDINT_HAVE_U_INT_TYPES
11641 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
11642 typedef u_int8_t uint8_t;
11643 typedef u_int16_t uint16_t;
11644 typedef u_int32_t uint32_t;
11646 /* glibc compatibility */
11647 #ifndef __int8_t_defined
11648 #define __int8_t_defined
11652 #ifdef _STDINT_NEED_INT_MODEL_T
11653 /* we must guess all the basic types. Apart from byte-adressable system, */
11654 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
11655 /* (btw, those nibble-addressable systems are way off, or so we assume) */
11658 #if defined _STDINT_BYTE_MODEL
11659 #if _STDINT_LONG_MODEL+0 == 242
11660 /* 2:4:2 = IP16 = a normal 16-bit system */
11661 typedef unsigned char uint8_t;
11662 typedef unsigned short uint16_t;
11663 typedef unsigned long uint32_t;
11664 #ifndef __int8_t_defined
11665 #define __int8_t_defined
11666 typedef char int8_t;
11667 typedef short int16_t;
11668 typedef long int32_t;
11670 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
11671 /* 2:4:4 = LP32 = a 32-bit system derived from a 16-bit */
11672 /* 4:4:4 = ILP32 = a normal 32-bit system */
11673 typedef unsigned char uint8_t;
11674 typedef unsigned short uint16_t;
11675 typedef unsigned int uint32_t;
11676 #ifndef __int8_t_defined
11677 #define __int8_t_defined
11678 typedef char int8_t;
11679 typedef short int16_t;
11680 typedef int int32_t;
11682 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
11683 /* 4:8:4 = IP32 = a 32-bit system prepared for 64-bit */
11684 /* 4:8:8 = LP64 = a normal 64-bit system */
11685 typedef unsigned char uint8_t;
11686 typedef unsigned short uint16_t;
11687 typedef unsigned int uint32_t;
11688 #ifndef __int8_t_defined
11689 #define __int8_t_defined
11690 typedef char int8_t;
11691 typedef short int16_t;
11692 typedef int int32_t;
11694 /* this system has a "long" of 64bit */
11695 #ifndef _HAVE_UINT64_T
11696 #define _HAVE_UINT64_T
11697 typedef unsigned long uint64_t;
11698 typedef long int64_t;
11700 #elif _STDINT_LONG_MODEL+0 == 448
11701 /* LLP64 a 64-bit system derived from a 32-bit system */
11702 typedef unsigned char uint8_t;
11703 typedef unsigned short uint16_t;
11704 typedef unsigned int uint32_t;
11705 #ifndef __int8_t_defined
11706 #define __int8_t_defined
11707 typedef char int8_t;
11708 typedef short int16_t;
11709 typedef int int32_t;
11711 /* assuming the system has a "long long" */
11712 #ifndef _HAVE_UINT64_T
11713 #define _HAVE_UINT64_T
11714 typedef unsigned long long uint64_t;
11715 typedef long long int64_t;
11718 #define _STDINT_NO_INT32_T
11721 #define _STDINT_NO_INT8_T
11722 #define _STDINT_NO_INT32_T
11727 * quote from SunOS-5.8 sys/inttypes.h:
11728 * Use at your own risk. As of February 1996, the committee is squarely
11729 * behind the fixed sized types; the "least" and "fast" types are still being
11730 * discussed. The probability that the "fast" types may be removed before
11731 * the standard is finalized is high enough that they are not currently
11735 #if defined _STDINT_NEED_INT_LEAST_T
11736 typedef int8_t int_least8_t;
11737 typedef int16_t int_least16_t;
11738 typedef int32_t int_least32_t;
11739 #ifdef _HAVE_UINT64_T
11740 typedef int64_t int_least64_t;
11743 typedef uint8_t uint_least8_t;
11744 typedef uint16_t uint_least16_t;
11745 typedef uint32_t uint_least32_t;
11746 #ifdef _HAVE_UINT64_T
11747 typedef uint64_t uint_least64_t;
11752 #if defined _STDINT_NEED_INT_FAST_T
11753 typedef int8_t int_fast8_t;
11754 typedef int int_fast16_t;
11755 typedef int32_t int_fast32_t;
11756 #ifdef _HAVE_UINT64_T
11757 typedef int64_t int_fast64_t;
11760 typedef uint8_t uint_fast8_t;
11761 typedef unsigned uint_fast16_t;
11762 typedef uint32_t uint_fast32_t;
11763 #ifdef _HAVE_UINT64_T
11764 typedef uint64_t uint_fast64_t;
11769 #ifdef _STDINT_NEED_INTMAX_T
11770 #ifdef _HAVE_UINT64_T
11771 typedef int64_t intmax_t;
11772 typedef uint64_t uintmax_t;
11774 typedef long intmax_t;
11775 typedef unsigned long uintmax_t;
11779 #ifdef _STDINT_NEED_INTPTR_T
11780 #ifndef __intptr_t_defined
11781 #define __intptr_t_defined
11782 /* we encourage using "long" to store pointer values, never use "int" ! */
11783 #if _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
11784 typedef unsinged int uintptr_t;
11785 typedef int intptr_t;
11786 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
11787 typedef unsigned long uintptr_t;
11788 typedef long intptr_t;
11789 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
11790 typedef uint64_t uintptr_t;
11791 typedef int64_t intptr_t;
11792 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
11793 typedef unsigned long uintptr_t;
11794 typedef long intptr_t;
11805 if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
11806 { echo "$as_me:$LINENO: $ac_stdint_h is unchanged" >&5
11807 echo "$as_me: $ac_stdint_h is unchanged" >&6;}
11809 ac_dir=`$as_dirname -- "$ac_stdint_h" ||
11810 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11811 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
11812 X"$ac_stdint_h" : 'X\(//\)$' \| \
11813 X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null ||
11814 echo X"$ac_stdint_h" |
11815 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11819 /^X\(\/\/\)[^/].*/{
11834 -*) as_dir=./$as_dir;;
11836 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11840 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11841 *) as_qdir=$as_dir;;
11843 as_dirs="'$as_qdir' $as_dirs"
11844 as_dir=`$as_dirname -- "$as_dir" ||
11845 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11846 X"$as_dir" : 'X\(//\)[^/]' \| \
11847 X"$as_dir" : 'X\(//\)$' \| \
11848 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11850 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11854 /^X\(\/\/\)[^/].*/{
11867 test -d "$as_dir" && break
11869 test -z "$as_dirs" || eval "mkdir $as_dirs"
11870 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11871 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11872 { (exit 1); exit 1; }; }; }
11874 mv $ac_stdint $ac_stdint_h
11882 { (exit 0); exit 0; }
11884 chmod +x $CONFIG_STATUS
11885 ac_clean_files=$ac_clean_files_save
11888 # configure is writing to config.log, and then calls config.status.
11889 # config.status does its own redirection, appending to config.log.
11890 # Unfortunately, on DOS this fails, as config.log is still kept open
11891 # by configure, so config.status won't be able to write to it; its
11892 # output is simply discarded. So we exec the FD to /dev/null,
11893 # effectively closing config.log, so it can be properly (re)opened and
11894 # appended to by config.status. When coming back to configure, we
11895 # need to make the FD available again.
11896 if test "$no_create" != yes; then
11898 ac_config_status_args=
11899 test "$silent" = yes &&
11900 ac_config_status_args="$ac_config_status_args --quiet"
11902 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11904 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11905 # would make configure fail if this is the last instruction.
11906 $ac_cs_success || { (exit 1); exit 1; }