Initialize Tizen 2.3
[external/nettle.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for nettle 2.1.
4 #
5 # Report bugs to <nettle-bugs@lists.lysator.liu.se>.
6 #
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 ## --------------------- ##
14
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
18   emulate sh
19   NULLCMD=:
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+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
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
41
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
46   chmod +x conf$$.sh
47   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48     PATH_SEPARATOR=';'
49   else
50     PATH_SEPARATOR=:
51   fi
52   rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57   as_unset=unset
58 else
59   as_unset=false
60 fi
61
62
63 # IFS
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.)
68 as_nl='
69 '
70 IFS=" ""        $as_nl"
71
72 # Find who we are.  Look in the path if we contain no directory separator.
73 case $0 in
74   *[\\/]* ) as_myself=$0 ;;
75   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78   IFS=$as_save_IFS
79   test -z "$as_dir" && as_dir=.
80   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84      ;;
85 esac
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
89   as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93   { (exit 1); exit 1; }
94 fi
95
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
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
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 \
108   LC_TELEPHONE LC_TIME
109 do
110   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111     eval $as_var=C; export $as_var
112   else
113     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114   fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119    test "X`expr 00001 : '.*\(...\)'`" = X001; then
120   as_expr=expr
121 else
122   as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126   as_basename=basename
127 else
128   as_basename=false
129 fi
130
131
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 ||
137 echo X/"$0" |
138     sed '/^.*\/\([^/][^/]*\)\/*$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\/\)$/{
143             s//\1/
144             q
145           }
146           /^X\/\(\/\).*/{
147             s//\1/
148             q
149           }
150           s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157   if (eval ":") 2>/dev/null; then
158   as_have_required=yes
159 else
160   as_have_required=no
161 fi
162
163   if test $as_have_required = yes &&     (eval ":
164 (as_func_return () {
165   (exit \$1)
166 }
167 as_func_success () {
168   as_func_return 0
169 }
170 as_func_failure () {
171   as_func_return 1
172 }
173 as_func_ret_success () {
174   return 0
175 }
176 as_func_ret_failure () {
177   return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182   :
183 else
184   exitcode=1
185   echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189   exitcode=1
190   echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194   :
195 else
196   exitcode=1
197   echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201   exitcode=1
202   echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206   :
207 else
208   exitcode=1
209   echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215   as_lineno_1=\$LINENO
216   as_lineno_2=\$LINENO
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
220   :
221 else
222   as_candidate_shells=
223     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226   IFS=$as_save_IFS
227   test -z "$as_dir" && as_dir=.
228   case $as_dir in
229          /*)
230            for as_base in sh bash ksh sh5; do
231              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232            done;;
233        esac
234 done
235 IFS=$as_save_IFS
236
237
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
243   emulate sh
244   NULLCMD=:
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+"$@"}'='"$@"'
248   setopt NO_GLOB_SUBST
249 else
250   case `(set -o) 2>/dev/null` in
251   *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260   CONFIG_SHELL=$as_shell
261                as_have_required=yes
262                if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
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+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280   (exit $1)
281 }
282 as_func_success () {
283   as_func_return 0
284 }
285 as_func_failure () {
286   as_func_return 1
287 }
288 as_func_ret_success () {
289   return 0
290 }
291 as_func_ret_failure () {
292   return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297   :
298 else
299   exitcode=1
300   echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304   exitcode=1
305   echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309   :
310 else
311   exitcode=1
312   echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316   exitcode=1
317   echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321   :
322 else
323   exitcode=1
324   echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330   as_lineno_1=$LINENO
331   as_lineno_2=$LINENO
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; }
334
335 _ASEOF
336 }; then
337   break
338 fi
339
340 fi
341
342       done
343
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
347         done
348         export CONFIG_SHELL
349         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
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; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369   (exit \$1)
370 }
371 as_func_success () {
372   as_func_return 0
373 }
374 as_func_failure () {
375   as_func_return 1
376 }
377 as_func_ret_success () {
378   return 0
379 }
380 as_func_ret_failure () {
381   return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386   :
387 else
388   exitcode=1
389   echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393   exitcode=1
394   echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398   :
399 else
400   exitcode=1
401   echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405   exitcode=1
406   echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410   :
411 else
412   exitcode=1
413   echo positional parameters were not saved.
414 fi
415
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
420   echo message
421 }
422
423
424
425   as_lineno_1=$LINENO
426   as_lineno_2=$LINENO
427   test "x$as_lineno_1" != "x$as_lineno_2" &&
428   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
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
436   # case at line end.
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.  :-)
440   sed -n '
441     p
442     /[$]LINENO/=
443   ' <$as_myself |
444     sed '
445       s/[$]LINENO.*/&-/
446       t lineno
447       b
448       :lineno
449       N
450       :loop
451       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452       t loop
453       s/-\n.*//
454     ' >$as_me.lineno &&
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; }; }
458
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).
462   . "./$as_me.lineno"
463   # Exit status is that of the last command.
464   exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469   as_dirname=dirname
470 else
471   as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477   case `echo 'x\c'` in
478   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479   *)   ECHO_C='\c';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486    test "X`expr 00001 : '.*\(...\)'`" = X001; then
487   as_expr=expr
488 else
489   as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494   rm -f conf$$.dir/conf$$.file
495 else
496   rm -f conf$$.dir
497   mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s='ln -s'
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 ||
507     as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509   as_ln_s=ln
510 else
511   as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517   as_mkdir_p=:
518 else
519   test -d ./-p && rmdir ./-p
520   as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524   as_test_x='test -x'
525 else
526   if ls -dL / >/dev/null 2>&1; then
527     as_ls_L_option=L
528   else
529     as_ls_L_option=
530   fi
531   as_test_x='
532     eval sh -c '\''
533       if test -d "$1"; then
534         test -d "$1/.";
535       else
536         case $1 in
537         -*)set "./$1";;
538         esac;
539         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540         ???[sx]*):;;*)false;;esac;fi
541     '\'' sh
542   '
543 fi
544 as_executable_p=$as_test_x
545
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'"
548
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'"
551
552
553
554 exec 7<&0 </dev/null 6>&1
555
556 # Name of the host.
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`
560
561 #
562 # Initializations.
563 #
564 ac_default_prefix=/usr/local
565 ac_clean_files=
566 ac_config_libobj_dir=.
567 LIBOBJS=
568 cross_compiling=no
569 subdirs=
570 MFLAGS=
571 MAKEFLAGS=
572 SHELL=${CONFIG_SHELL-/bin/sh}
573
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'
580
581 ac_unique_file="arcfour.c"
582 # Factoring default headers for most tests.
583 ac_includes_default="\
584 #include <stdio.h>
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
587 #endif
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
590 #endif
591 #ifdef STDC_HEADERS
592 # include <stdlib.h>
593 # include <stddef.h>
594 #else
595 # ifdef HAVE_STDLIB_H
596 #  include <stdlib.h>
597 # endif
598 #endif
599 #ifdef HAVE_STRING_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601 #  include <memory.h>
602 # endif
603 # include <string.h>
604 #endif
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
607 #endif
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
610 #endif
611 #ifdef HAVE_STDINT_H
612 # include <stdint.h>
613 #endif
614 #ifdef HAVE_UNISTD_H
615 # include <unistd.h>
616 #endif"
617
618 ac_subst_vars='SHELL
619 PATH_SEPARATOR
620 PACKAGE_NAME
621 PACKAGE_TARNAME
622 PACKAGE_VERSION
623 PACKAGE_STRING
624 PACKAGE_BUGREPORT
625 exec_prefix
626 prefix
627 program_transform_name
628 bindir
629 sbindir
630 libexecdir
631 datarootdir
632 datadir
633 sysconfdir
634 sharedstatedir
635 localstatedir
636 includedir
637 oldincludedir
638 docdir
639 infodir
640 htmldir
641 dvidir
642 pdfdir
643 psdir
644 libdir
645 localedir
646 mandir
647 DEFS
648 ECHO_C
649 ECHO_N
650 ECHO_T
651 LIBS
652 build_alias
653 host_alias
654 target_alias
655 build
656 build_cpu
657 build_vendor
658 build_os
659 host
660 host_cpu
661 host_vendor
662 host_os
663 CC
664 CFLAGS
665 LDFLAGS
666 CPPFLAGS
667 ac_ct_CC
668 EXEEXT
669 OBJEXT
670 CXX
671 CXXFLAGS
672 ac_ct_CXX
673 CXX_TESTS
674 SET_MAKE
675 RANLIB
676 NM
677 OBJDUMP
678 INSTALL_PROGRAM
679 INSTALL_SCRIPT
680 INSTALL_DATA
681 DEP_INCLUDE
682 DEP_FLAGS
683 DEP_PROCESS
684 CCPIC
685 CCPIC_MAYBE
686 ASM_SYMBOL_PREFIX
687 ASM_ELF_STYLE
688 ASM_TYPE_FUNCTION
689 ASM_MARK_NOEXEC_STACK
690 ASM_ALIGN_LOG
691 SHLIBCFLAGS
692 LIBNETTLE_MAJOR
693 LIBNETTLE_MINOR
694 LIBNETTLE_FORLINK
695 LIBNETTLE_SONAME
696 LIBNETTLE_FILE
697 LIBNETTLE_LINK
698 LIBNETTLE_LIBS
699 LIBHOGWEED_MAJOR
700 LIBHOGWEED_MINOR
701 LIBHOGWEED_FORLINK
702 LIBHOGWEED_SONAME
703 LIBHOGWEED_FILE
704 LIBHOGWEED_LINK
705 LIBHOGWEED_LIBS
706 M4
707 CPP
708 GREP
709 EGREP
710 ALLOCA
711 LIBOBJS
712 IF_HOGWEED
713 IF_SHARED
714 OPENSSL_LIBFLAGS
715 LTLIBOBJS'
716 ac_subst_files=''
717       ac_precious_vars='build_alias
718 host_alias
719 target_alias
720 CC
721 CFLAGS
722 LDFLAGS
723 LIBS
724 CPPFLAGS
725 CXX
726 CXXFLAGS
727 CCC
728 CPP'
729
730
731 # Initialize some variables set by options.
732 ac_init_help=
733 ac_init_version=false
734 # The variables have the same names as the options, with
735 # dashes changed to underlines.
736 cache_file=/dev/null
737 exec_prefix=NONE
738 no_create=
739 no_recursion=
740 prefix=NONE
741 program_prefix=NONE
742 program_suffix=NONE
743 program_transform_name=s,x,x,
744 silent=
745 site=
746 srcdir=
747 verbose=
748 x_includes=NONE
749 x_libraries=NONE
750
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'
769 htmldir='${docdir}'
770 dvidir='${docdir}'
771 pdfdir='${docdir}'
772 psdir='${docdir}'
773 libdir='${exec_prefix}/lib'
774 localedir='${datarootdir}/locale'
775 mandir='${datarootdir}/man'
776
777 ac_prev=
778 ac_dashdash=
779 for ac_option
780 do
781   # If the previous option needs an argument, assign it.
782   if test -n "$ac_prev"; then
783     eval $ac_prev=\$ac_option
784     ac_prev=
785     continue
786   fi
787
788   case $ac_option in
789   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
790   *)    ac_optarg=yes ;;
791   esac
792
793   # Accept the important Cygnus configure options, so we can diagnose typos.
794
795   case $ac_dashdash$ac_option in
796   --)
797     ac_dashdash=yes ;;
798
799   -bindir | --bindir | --bindi | --bind | --bin | --bi)
800     ac_prev=bindir ;;
801   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
802     bindir=$ac_optarg ;;
803
804   -build | --build | --buil | --bui | --bu)
805     ac_prev=build_alias ;;
806   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
807     build_alias=$ac_optarg ;;
808
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 ;;
815
816   --config-cache | -C)
817     cache_file=config.cache ;;
818
819   -datadir | --datadir | --datadi | --datad)
820     ac_prev=datadir ;;
821   -datadir=* | --datadir=* | --datadi=* | --datad=*)
822     datadir=$ac_optarg ;;
823
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 ;;
830
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 ;;
839
840   -docdir | --docdir | --docdi | --doc | --do)
841     ac_prev=docdir ;;
842   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
843     docdir=$ac_optarg ;;
844
845   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
846     ac_prev=dvidir ;;
847   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
848     dvidir=$ac_optarg ;;
849
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 ;;
858
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 ;;
867
868   -gas | --gas | --ga | --g)
869     # Obsolete; use --with-gas.
870     with_gas=yes ;;
871
872   -help | --help | --hel | --he | -h)
873     ac_init_help=long ;;
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 ;;
878
879   -host | --host | --hos | --ho)
880     ac_prev=host_alias ;;
881   -host=* | --host=* | --hos=* | --ho=*)
882     host_alias=$ac_optarg ;;
883
884   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
885     ac_prev=htmldir ;;
886   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
887   | --ht=*)
888     htmldir=$ac_optarg ;;
889
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 ;;
896
897   -infodir | --infodir | --infodi | --infod | --info | --inf)
898     ac_prev=infodir ;;
899   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
900     infodir=$ac_optarg ;;
901
902   -libdir | --libdir | --libdi | --libd)
903     ac_prev=libdir ;;
904   -libdir=* | --libdir=* | --libdi=* | --libd=*)
905     libdir=$ac_optarg ;;
906
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 ;;
913
914   -localedir | --localedir | --localedi | --localed | --locale)
915     ac_prev=localedir ;;
916   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
917     localedir=$ac_optarg ;;
918
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 ;;
925
926   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
927     ac_prev=mandir ;;
928   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
929     mandir=$ac_optarg ;;
930
931   -nfp | --nfp | --nf)
932     # Obsolete; use --without-fp.
933     with_fp=no ;;
934
935   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
936   | --no-cr | --no-c | -n)
937     no_create=yes ;;
938
939   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
940   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
941     no_recursion=yes ;;
942
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 ;;
951
952   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
953     ac_prev=prefix ;;
954   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
955     prefix=$ac_optarg ;;
956
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 ;;
963
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 ;;
970
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 ;;
987
988   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
989     ac_prev=pdfdir ;;
990   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
991     pdfdir=$ac_optarg ;;
992
993   -psdir | --psdir | --psdi | --psd | --ps)
994     ac_prev=psdir ;;
995   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
996     psdir=$ac_optarg ;;
997
998   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
999   | -silent | --silent | --silen | --sile | --sil)
1000     silent=yes ;;
1001
1002   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1003     ac_prev=sbindir ;;
1004   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1005   | --sbi=* | --sb=*)
1006     sbindir=$ac_optarg ;;
1007
1008   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1009   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1010   | --sharedst | --shareds | --shared | --share | --shar \
1011   | --sha | --sh)
1012     ac_prev=sharedstatedir ;;
1013   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1014   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1015   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1016   | --sha=* | --sh=*)
1017     sharedstatedir=$ac_optarg ;;
1018
1019   -site | --site | --sit)
1020     ac_prev=site ;;
1021   -site=* | --site=* | --sit=*)
1022     site=$ac_optarg ;;
1023
1024   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1025     ac_prev=srcdir ;;
1026   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1027     srcdir=$ac_optarg ;;
1028
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 ;;
1035
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 ;;
1040
1041   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1042     verbose=yes ;;
1043
1044   -version | --version | --versio | --versi | --vers | -V)
1045     ac_init_version=: ;;
1046
1047   -with-* | --with-*)
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 ;;
1055
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 ;;
1064
1065   --x)
1066     # Obsolete; use --with-x.
1067     with_x=yes ;;
1068
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 ;;
1075
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 ;;
1082
1083   -*) { echo "$as_me: error: unrecognized option: $ac_option
1084 Try \`$0 --help' for more information." >&2
1085    { (exit 1); exit 1; }; }
1086     ;;
1087
1088   *=*)
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 ;;
1096
1097   *)
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}
1103     ;;
1104
1105   esac
1106 done
1107
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; }; }
1112 fi
1113
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
1119 do
1120   eval ac_val=\$$ac_var
1121   case $ac_val in
1122     [\\/$]* | ?:[\\/]* )  continue;;
1123     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1124   esac
1125   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1126    { (exit 1); exit 1; }; }
1127 done
1128
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.
1132 build=$build_alias
1133 host=$host_alias
1134 target=$target_alias
1135
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
1143     cross_compiling=yes
1144   fi
1145 fi
1146
1147 ac_tool_prefix=
1148 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1149
1150 test "$silent" = yes && exec 6>/dev/null
1151
1152
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; }; }
1161
1162
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 ||
1172 echo X"$0" |
1173     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1174             s//\1/
1175             q
1176           }
1177           /^X\(\/\/\)[^/].*/{
1178             s//\1/
1179             q
1180           }
1181           /^X\(\/\/\)$/{
1182             s//\1/
1183             q
1184           }
1185           /^X\(\/\).*/{
1186             s//\1/
1187             q
1188           }
1189           s/.*/./; q'`
1190   srcdir=$ac_confdir
1191   if test ! -r "$srcdir/$ac_unique_file"; then
1192     srcdir=..
1193   fi
1194 else
1195   ac_srcdir_defaulted=no
1196 fi
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; }; }
1201 fi
1202 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1203 ac_abs_confdir=`(
1204         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1205    { (exit 1); exit 1; }; }
1206         pwd)`
1207 # When building in place, set srcdir=.
1208 if test "$ac_abs_confdir" = "$ac_pwd"; then
1209   srcdir=.
1210 fi
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.
1214 case $srcdir in
1215 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1216 esac
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}
1222 done
1223
1224 #
1225 # Report the --help message.
1226 #
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.
1230   cat <<_ACEOF
1231 \`configure' configures nettle 2.1 to adapt to many kinds of systems.
1232
1233 Usage: $0 [OPTION]... [VAR=VALUE]...
1234
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.
1237
1238 Defaults for the options are specified in brackets.
1239
1240 Configuration:
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 \`..']
1250
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
1255                           [PREFIX]
1256
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'.
1261
1262 For better control, use the options below.
1263
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]
1284 _ACEOF
1285
1286   cat <<\_ACEOF
1287
1288 System types:
1289   --build=BUILD     configure for building on BUILD [guessed]
1290   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1291 _ACEOF
1292 fi
1293
1294 if test -n "$ac_init_help"; then
1295   case $ac_init_help in
1296      short | recursive ) echo "Configuration of nettle 2.1:";;
1297    esac
1298   cat <<\_ACEOF
1299
1300 Optional Features:
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
1307                           independent code
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
1312
1313 Optional Packages:
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
1317                           include files
1318   --with-lib-path         A colon-separated list of directories to search for
1319                           libraries
1320
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
1331   CPP         C preprocessor
1332
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.
1335
1336 Report bugs to <nettle-bugs@lists.lysator.liu.se>.
1337 _ACEOF
1338 ac_status=$?
1339 fi
1340
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
1345     ac_builddir=.
1346
1347 case "$ac_dir" in
1348 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1349 *)
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/ ;;
1356   esac ;;
1357 esac
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
1362
1363 case $srcdir in
1364   .)  # We are building in place.
1365     ac_srcdir=.
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 ;;
1372   *) # Relative name.
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 ;;
1376 esac
1377 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1378
1379     cd "$ac_dir" || { ac_status=$?; continue; }
1380     # Check for guested configure.
1381     if test -f "$ac_srcdir/configure.gnu"; then
1382       echo &&
1383       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1384     elif test -f "$ac_srcdir/configure"; then
1385       echo &&
1386       $SHELL "$ac_srcdir/configure" --help=recursive
1387     else
1388       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1389     fi || ac_status=$?
1390     cd "$ac_pwd" || { ac_status=$?; break; }
1391   done
1392 fi
1393
1394 test -n "$ac_init_help" && exit $ac_status
1395 if $ac_init_version; then
1396   cat <<\_ACEOF
1397 nettle configure 2.1
1398 generated by GNU Autoconf 2.61
1399
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.
1404 _ACEOF
1405   exit
1406 fi
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.
1410
1411 It was created by nettle $as_me 2.1, which was
1412 generated by GNU Autoconf 2.61.  Invocation command line was
1413
1414   $ $0 $@
1415
1416 _ACEOF
1417 exec 5>>config.log
1418 {
1419 cat <<_ASUNAME
1420 ## --------- ##
1421 ## Platform. ##
1422 ## --------- ##
1423
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`
1429
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`
1432
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`
1440
1441 _ASUNAME
1442
1443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1444 for as_dir in $PATH
1445 do
1446   IFS=$as_save_IFS
1447   test -z "$as_dir" && as_dir=.
1448   echo "PATH: $as_dir"
1449 done
1450 IFS=$as_save_IFS
1451
1452 } >&5
1453
1454 cat >&5 <<_ACEOF
1455
1456
1457 ## ----------- ##
1458 ## Core tests. ##
1459 ## ----------- ##
1460
1461 _ACEOF
1462
1463
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.
1469 ac_configure_args=
1470 ac_configure_args0=
1471 ac_configure_args1=
1472 ac_must_keep_next=false
1473 for ac_pass in 1 2
1474 do
1475   for ac_arg
1476   do
1477     case $ac_arg in
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)
1481       continue ;;
1482     *\'*)
1483       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1484     esac
1485     case $ac_pass in
1486     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1487     2)
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.
1491       else
1492         case $ac_arg in
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 ;;
1499             esac
1500             ;;
1501           -* ) ac_must_keep_next=true ;;
1502         esac
1503       fi
1504       ac_configure_args="$ac_configure_args '$ac_arg'"
1505       ;;
1506     esac
1507   done
1508 done
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; }
1511
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.
1519   {
1520     echo
1521
1522     cat <<\_ASBOX
1523 ## ---------------- ##
1524 ## Cache variables. ##
1525 ## ---------------- ##
1526 _ASBOX
1527     echo
1528     # The following way of writing the cache mishandles newlines in values,
1529 (
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
1532     case $ac_val in #(
1533     *${as_nl}*)
1534       case $ac_var in #(
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;} ;;
1537       esac
1538       case $ac_var in #(
1539       _ | IFS | as_nl) ;; #(
1540       *) $as_unset $ac_var ;;
1541       esac ;;
1542     esac
1543   done
1544   (set) 2>&1 |
1545     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1546     *${as_nl}ac_space=\ *)
1547       sed -n \
1548         "s/'\''/'\''\\\\'\'''\''/g;
1549           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1550       ;; #(
1551     *)
1552       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1553       ;;
1554     esac |
1555     sort
1556 )
1557     echo
1558
1559     cat <<\_ASBOX
1560 ## ----------------- ##
1561 ## Output variables. ##
1562 ## ----------------- ##
1563 _ASBOX
1564     echo
1565     for ac_var in $ac_subst_vars
1566     do
1567       eval ac_val=\$$ac_var
1568       case $ac_val in
1569       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1570       esac
1571       echo "$ac_var='\''$ac_val'\''"
1572     done | sort
1573     echo
1574
1575     if test -n "$ac_subst_files"; then
1576       cat <<\_ASBOX
1577 ## ------------------- ##
1578 ## File substitutions. ##
1579 ## ------------------- ##
1580 _ASBOX
1581       echo
1582       for ac_var in $ac_subst_files
1583       do
1584         eval ac_val=\$$ac_var
1585         case $ac_val in
1586         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1587         esac
1588         echo "$ac_var='\''$ac_val'\''"
1589       done | sort
1590       echo
1591     fi
1592
1593     if test -s confdefs.h; then
1594       cat <<\_ASBOX
1595 ## ----------- ##
1596 ## confdefs.h. ##
1597 ## ----------- ##
1598 _ASBOX
1599       echo
1600       cat confdefs.h
1601       echo
1602     fi
1603     test "$ac_signal" != 0 &&
1604       echo "$as_me: caught signal $ac_signal"
1605     echo "$as_me: exit $exit_status"
1606   } >&5
1607   rm -f core *.core core.conftest.* &&
1608     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1609     exit $exit_status
1610 ' 0
1611 for ac_signal in 1 2 13 15; do
1612   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1613 done
1614 ac_signal=0
1615
1616 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1617 rm -f -r conftest* confdefs.h
1618
1619 # Predefined preprocessor variables.
1620
1621 cat >>confdefs.h <<_ACEOF
1622 #define PACKAGE_NAME "$PACKAGE_NAME"
1623 _ACEOF
1624
1625
1626 cat >>confdefs.h <<_ACEOF
1627 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1628 _ACEOF
1629
1630
1631 cat >>confdefs.h <<_ACEOF
1632 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1633 _ACEOF
1634
1635
1636 cat >>confdefs.h <<_ACEOF
1637 #define PACKAGE_STRING "$PACKAGE_STRING"
1638 _ACEOF
1639
1640
1641 cat >>confdefs.h <<_ACEOF
1642 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1643 _ACEOF
1644
1645
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"
1652 else
1653   set x "$ac_default_prefix/share/config.site" \
1654         "$ac_default_prefix/etc/config.site"
1655 fi
1656 shift
1657 for ac_site_file
1658 do
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
1663     . "$ac_site_file"
1664   fi
1665 done
1666
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;}
1673     case $cache_file in
1674       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1675       *)                      . "./$cache_file";;
1676     esac
1677   fi
1678 else
1679   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1680 echo "$as_me: creating cache $cache_file" >&6;}
1681   >$cache_file
1682 fi
1683
1684 # Check that the precious variables saved in the cache have kept the same
1685 # value.
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
1693     set,)
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=: ;;
1697     ,set)
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=: ;;
1701     ,);;
1702     *)
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=:
1711       fi;;
1712   esac
1713   # Pass precious variables to config.status.
1714   if test "$ac_new_set" = set; then
1715     case $ac_new_val in
1716     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1717     *) ac_arg=$ac_var=$ac_new_val ;;
1718     esac
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'" ;;
1722     esac
1723   fi
1724 done
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; }; }
1731 fi
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757 ac_ext=c
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
1762
1763
1764
1765
1766 # Needed to stop autoconf from looking for files in parent directories.
1767 ac_aux_dir=
1768 for ac_dir in . "$srcdir"/.; do
1769   if test -f "$ac_dir/install-sh"; then
1770     ac_aux_dir=$ac_dir
1771     ac_install_sh="$ac_aux_dir/install-sh -c"
1772     break
1773   elif test -f "$ac_dir/install.sh"; then
1774     ac_aux_dir=$ac_dir
1775     ac_install_sh="$ac_aux_dir/install.sh -c"
1776     break
1777   elif test -f "$ac_dir/shtool"; then
1778     ac_aux_dir=$ac_dir
1779     ac_install_sh="$ac_aux_dir/shtool install -c"
1780     break
1781   fi
1782 done
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; }; }
1787 fi
1788
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.
1796
1797
1798
1799 ac_config_headers="$ac_config_headers config.h"
1800
1801
1802 LIBNETTLE_MAJOR=4
1803 LIBNETTLE_MINOR=0
1804
1805 LIBHOGWEED_MAJOR=2
1806 LIBHOGWEED_MINOR=0
1807
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; }; }
1813
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
1818 else
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; }; }
1830
1831 fi
1832 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1833 echo "${ECHO_T}$ac_cv_build" >&6; }
1834 case $ac_cv_build in
1835 *-*-*) ;;
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; }; };;
1839 esac
1840 build=$ac_cv_build
1841 ac_save_IFS=$IFS; IFS='-'
1842 set x $ac_cv_build
1843 shift
1844 build_cpu=$1
1845 build_vendor=$2
1846 shift; shift
1847 # Remember, the first character of IFS is used to create $*,
1848 # except with old shells:
1849 build_os=$*
1850 IFS=$ac_save_IFS
1851 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1852
1853
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
1858 else
1859   if test "x$host_alias" = x; then
1860   ac_cv_host=$ac_cv_build
1861 else
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; }; }
1866 fi
1867
1868 fi
1869 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1870 echo "${ECHO_T}$ac_cv_host" >&6; }
1871 case $ac_cv_host in
1872 *-*-*) ;;
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; }; };;
1876 esac
1877 host=$ac_cv_host
1878 ac_save_IFS=$IFS; IFS='-'
1879 set x $ac_cv_host
1880 shift
1881 host_cpu=$1
1882 host_vendor=$2
1883 shift; shift
1884 # Remember, the first character of IFS is used to create $*,
1885 # except with old shells:
1886 host_os=$*
1887 IFS=$ac_save_IFS
1888 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1889
1890
1891
1892 # Command line options
1893
1894 # Check whether --with-include-path was given.
1895 if test "${with_include_path+set}" = set; then
1896   withval=$with_include_path;
1897 else
1898   with_include_path=''
1899 fi
1900
1901
1902 if test x$with_include_path != x ; then
1903   CPPFLAGS="$CPPFLAGS -I`echo $with_include_path | sed 's/:/ -I/g'`"
1904 fi
1905
1906
1907 # Check whether --with-lib-path was given.
1908 if test "${with_lib_path+set}" = set; then
1909   withval=$with_lib_path;
1910 else
1911   with_lib_path=''
1912 fi
1913
1914
1915 if test x$with_lib_path != x ; then
1916   LDFLAGS="$LDFLAGS -L`echo $with_lib_path | sed 's/:/ -L/g'`"
1917 fi
1918
1919 # Check whether --enable-public-key was given.
1920 if test "${enable_public_key+set}" = set; then
1921   enableval=$enable_public_key;
1922 else
1923   enable_public_key=yes
1924 fi
1925
1926
1927 # Check whether --enable-assembler was given.
1928 if test "${enable_assembler+set}" = set; then
1929   enableval=$enable_assembler;
1930 else
1931   enable_assembler=yes
1932 fi
1933
1934
1935 # Check whether --enable-shared was given.
1936 if test "${enable_shared+set}" = set; then
1937   enableval=$enable_shared;
1938 else
1939   enable_shared=no
1940 fi
1941
1942
1943 # Check whether --enable-pic was given.
1944 if test "${enable_pic+set}" = set; then
1945   enableval=$enable_pic;
1946 else
1947   enable_pic=yes
1948 fi
1949
1950
1951 # Check whether --enable-openssl was given.
1952 if test "${enable_openssl+set}" = set; then
1953   enableval=$enable_openssl;
1954 else
1955   enable_openssl=yes
1956 fi
1957
1958
1959 { echo "$as_me:$LINENO: checking for -R flag" >&5
1960 echo $ECHO_N "checking for -R flag... $ECHO_C" >&6; }
1961 RPATHFLAG=''
1962 case "$host_os" in
1963   osf1*)                RPATHFLAG="-rpath " ;;
1964   irix6.*|irix5.*)      RPATHFLAG="-rpath " ;;
1965   solaris*)
1966     if test "$TCC" = "yes"; then
1967       # tcc doesn't know about -R
1968       RPATHFLAG="-Wl,-R,"
1969     else
1970       RPATHFLAG=-R
1971     fi
1972     ;;
1973   linux*)               RPATHFLAG="-Wl,-rpath," ;;
1974   *)                    RPATHFLAG="" ;;
1975 esac
1976
1977 if test x$RPATHFLAG = x ; then
1978   { echo "$as_me:$LINENO: result: none" >&5
1979 echo "${ECHO_T}none" >&6; }
1980 else
1981   { echo "$as_me:$LINENO: result: using $RPATHFLAG" >&5
1982 echo "${ECHO_T}using $RPATHFLAG" >&6; }
1983 fi
1984
1985 RPATH_CANDIDATE_REAL_DIRS=''
1986 RPATH_CANDIDATE_DIRS=''
1987
1988 { echo "$as_me:$LINENO: result: Searching for libraries" >&5
1989 echo "${ECHO_T}Searching for libraries" >&6; }
1990
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; }
1997 ac_exists=no
1998 if test -d "$d/." ; then
1999   ac_real_dir=`cd $d && pwd`
2000   if test -n "$ac_real_dir" ; then
2001     ac_exists=yes
2002     for old in RPATH_CANDIDATE_REAL_DIRS ; do
2003       ac_found=no
2004       if test x$ac_real_dir = x$old ; then
2005         ac_found=yes;
2006         break;
2007       fi
2008     done
2009     if test $ac_found = yes ; then
2010       { echo "$as_me:$LINENO: result: already added" >&5
2011 echo "${ECHO_T}already added" >&6; }
2012     else
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"
2018     fi
2019   fi
2020 fi
2021 if test $ac_exists = no ; then
2022   { echo "$as_me:$LINENO: result: not found" >&5
2023 echo "${ECHO_T}not found" >&6; }
2024 fi
2025
2026 done
2027
2028
2029 # Checks for programs.
2030 ac_ext=c
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
2042 else
2043   if test -n "$CC"; then
2044   ac_cv_prog_CC="$CC" # Let the user override the test.
2045 else
2046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2047 for as_dir in $PATH
2048 do
2049   IFS=$as_save_IFS
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
2055     break 2
2056   fi
2057 done
2058 done
2059 IFS=$as_save_IFS
2060
2061 fi
2062 fi
2063 CC=$ac_cv_prog_CC
2064 if test -n "$CC"; then
2065   { echo "$as_me:$LINENO: result: $CC" >&5
2066 echo "${ECHO_T}$CC" >&6; }
2067 else
2068   { echo "$as_me:$LINENO: result: no" >&5
2069 echo "${ECHO_T}no" >&6; }
2070 fi
2071
2072
2073 fi
2074 if test -z "$ac_cv_prog_CC"; then
2075   ac_ct_CC=$CC
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
2082 else
2083   if test -n "$ac_ct_CC"; then
2084   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2085 else
2086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2087 for as_dir in $PATH
2088 do
2089   IFS=$as_save_IFS
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
2095     break 2
2096   fi
2097 done
2098 done
2099 IFS=$as_save_IFS
2100
2101 fi
2102 fi
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; }
2107 else
2108   { echo "$as_me:$LINENO: result: no" >&5
2109 echo "${ECHO_T}no" >&6; }
2110 fi
2111
2112   if test "x$ac_ct_CC" = x; then
2113     CC=""
2114   else
2115     case $cross_compiling:$ac_tool_warned in
2116 yes:)
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 ;;
2124 esac
2125     CC=$ac_ct_CC
2126   fi
2127 else
2128   CC="$ac_cv_prog_CC"
2129 fi
2130
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
2139 else
2140   if test -n "$CC"; then
2141   ac_cv_prog_CC="$CC" # Let the user override the test.
2142 else
2143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2144 for as_dir in $PATH
2145 do
2146   IFS=$as_save_IFS
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
2152     break 2
2153   fi
2154 done
2155 done
2156 IFS=$as_save_IFS
2157
2158 fi
2159 fi
2160 CC=$ac_cv_prog_CC
2161 if test -n "$CC"; then
2162   { echo "$as_me:$LINENO: result: $CC" >&5
2163 echo "${ECHO_T}$CC" >&6; }
2164 else
2165   { echo "$as_me:$LINENO: result: no" >&5
2166 echo "${ECHO_T}no" >&6; }
2167 fi
2168
2169
2170   fi
2171 fi
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
2179 else
2180   if test -n "$CC"; then
2181   ac_cv_prog_CC="$CC" # Let the user override the test.
2182 else
2183   ac_prog_rejected=no
2184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2185 for as_dir in $PATH
2186 do
2187   IFS=$as_save_IFS
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
2193        continue
2194      fi
2195     ac_cv_prog_CC="cc"
2196     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2197     break 2
2198   fi
2199 done
2200 done
2201 IFS=$as_save_IFS
2202
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
2206   shift
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.
2211     shift
2212     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2213   fi
2214 fi
2215 fi
2216 fi
2217 CC=$ac_cv_prog_CC
2218 if test -n "$CC"; then
2219   { echo "$as_me:$LINENO: result: $CC" >&5
2220 echo "${ECHO_T}$CC" >&6; }
2221 else
2222   { echo "$as_me:$LINENO: result: no" >&5
2223 echo "${ECHO_T}no" >&6; }
2224 fi
2225
2226
2227 fi
2228 if test -z "$CC"; then
2229   if test -n "$ac_tool_prefix"; then
2230   for ac_prog in cl.exe
2231   do
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
2238 else
2239   if test -n "$CC"; then
2240   ac_cv_prog_CC="$CC" # Let the user override the test.
2241 else
2242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2243 for as_dir in $PATH
2244 do
2245   IFS=$as_save_IFS
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
2251     break 2
2252   fi
2253 done
2254 done
2255 IFS=$as_save_IFS
2256
2257 fi
2258 fi
2259 CC=$ac_cv_prog_CC
2260 if test -n "$CC"; then
2261   { echo "$as_me:$LINENO: result: $CC" >&5
2262 echo "${ECHO_T}$CC" >&6; }
2263 else
2264   { echo "$as_me:$LINENO: result: no" >&5
2265 echo "${ECHO_T}no" >&6; }
2266 fi
2267
2268
2269     test -n "$CC" && break
2270   done
2271 fi
2272 if test -z "$CC"; then
2273   ac_ct_CC=$CC
2274   for ac_prog in cl.exe
2275 do
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
2282 else
2283   if test -n "$ac_ct_CC"; then
2284   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2285 else
2286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2287 for as_dir in $PATH
2288 do
2289   IFS=$as_save_IFS
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
2295     break 2
2296   fi
2297 done
2298 done
2299 IFS=$as_save_IFS
2300
2301 fi
2302 fi
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; }
2307 else
2308   { echo "$as_me:$LINENO: result: no" >&5
2309 echo "${ECHO_T}no" >&6; }
2310 fi
2311
2312
2313   test -n "$ac_ct_CC" && break
2314 done
2315
2316   if test "x$ac_ct_CC" = x; then
2317     CC=""
2318   else
2319     case $cross_compiling:$ac_tool_warned in
2320 yes:)
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 ;;
2328 esac
2329     CC=$ac_ct_CC
2330   fi
2331 fi
2332
2333 fi
2334
2335
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; }; }
2341
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"
2346 case "(($ac_try" in
2347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2348   *) ac_try_echo=$ac_try;;
2349 esac
2350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2351   (eval "$ac_compiler --version >&5") 2>&5
2352   ac_status=$?
2353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354   (exit $ac_status); }
2355 { (ac_try="$ac_compiler -v >&5"
2356 case "(($ac_try" in
2357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2358   *) ac_try_echo=$ac_try;;
2359 esac
2360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2361   (eval "$ac_compiler -v >&5") 2>&5
2362   ac_status=$?
2363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364   (exit $ac_status); }
2365 { (ac_try="$ac_compiler -V >&5"
2366 case "(($ac_try" in
2367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2368   *) ac_try_echo=$ac_try;;
2369 esac
2370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2371   (eval "$ac_compiler -V >&5") 2>&5
2372   ac_status=$?
2373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374   (exit $ac_status); }
2375
2376 cat >conftest.$ac_ext <<_ACEOF
2377 /* confdefs.h.  */
2378 _ACEOF
2379 cat confdefs.h >>conftest.$ac_ext
2380 cat >>conftest.$ac_ext <<_ACEOF
2381 /* end confdefs.h.  */
2382
2383 int
2384 main ()
2385 {
2386
2387   ;
2388   return 0;
2389 }
2390 _ACEOF
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
2395 # of exeext.
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[^ ]*//'`
2399 #
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'
2404 #
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.
2408 ac_rmfiles=
2409 for ac_file in $ac_files
2410 do
2411   case $ac_file in
2412     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2413     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2414   esac
2415 done
2416 rm -f $ac_rmfiles
2417
2418 if { (ac_try="$ac_link_default"
2419 case "(($ac_try" in
2420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2421   *) ac_try_echo=$ac_try;;
2422 esac
2423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2424   (eval "$ac_link_default") 2>&5
2425   ac_status=$?
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
2432 # Autoconf.
2433 for ac_file in $ac_files ''
2434 do
2435   test -f "$ac_file" || continue
2436   case $ac_file in
2437     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2438         ;;
2439     [ab].out )
2440         # We found the default executable, but exeext='' is most
2441         # certainly right.
2442         break;;
2443     *.* )
2444         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2445         then :; else
2446            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2447         fi
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
2452         # actually working.
2453         break;;
2454     * )
2455         break;;
2456   esac
2457 done
2458 test "$ac_cv_exeext" = no && ac_cv_exeext=
2459
2460 else
2461   ac_file=''
2462 fi
2463
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
2469
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; }; }
2475 fi
2476
2477 ac_exeext=$ac_cv_exeext
2478
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;;
2490 esac
2491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2492   (eval "$ac_try") 2>&5
2493   ac_status=$?
2494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495   (exit $ac_status); }; }; then
2496     cross_compiling=no
2497   else
2498     if test "$cross_compiling" = maybe; then
2499         cross_compiling=yes
2500     else
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; }; }
2508     fi
2509   fi
2510 fi
2511 { echo "$as_me:$LINENO: result: yes" >&5
2512 echo "${ECHO_T}yes" >&6; }
2513
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; }
2522
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"
2526 case "(($ac_try" in
2527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2528   *) ac_try_echo=$ac_try;;
2529 esac
2530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2531   (eval "$ac_link") 2>&5
2532   ac_status=$?
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
2538 # `rm'.
2539 for ac_file in conftest.exe conftest conftest.*; do
2540   test -f "$ac_file" || continue
2541   case $ac_file in
2542     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2543     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2544           break;;
2545     * ) break;;
2546   esac
2547 done
2548 else
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; }; }
2554 fi
2555
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; }
2559
2560 rm -f conftest.$ac_ext
2561 EXEEXT=$ac_cv_exeext
2562 ac_exeext=$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
2567 else
2568   cat >conftest.$ac_ext <<_ACEOF
2569 /* confdefs.h.  */
2570 _ACEOF
2571 cat confdefs.h >>conftest.$ac_ext
2572 cat >>conftest.$ac_ext <<_ACEOF
2573 /* end confdefs.h.  */
2574
2575 int
2576 main ()
2577 {
2578
2579   ;
2580   return 0;
2581 }
2582 _ACEOF
2583 rm -f conftest.o conftest.obj
2584 if { (ac_try="$ac_compile"
2585 case "(($ac_try" in
2586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2587   *) ac_try_echo=$ac_try;;
2588 esac
2589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2590   (eval "$ac_compile") 2>&5
2591   ac_status=$?
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;
2596   case $ac_file in
2597     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2598     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2599        break;;
2600   esac
2601 done
2602 else
2603   echo "$as_me: failed program was:" >&5
2604 sed 's/^/| /' conftest.$ac_ext >&5
2605
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; }; }
2611 fi
2612
2613 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2614 fi
2615 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2616 echo "${ECHO_T}$ac_cv_objext" >&6; }
2617 OBJEXT=$ac_cv_objext
2618 ac_objext=$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
2623 else
2624   cat >conftest.$ac_ext <<_ACEOF
2625 /* confdefs.h.  */
2626 _ACEOF
2627 cat confdefs.h >>conftest.$ac_ext
2628 cat >>conftest.$ac_ext <<_ACEOF
2629 /* end confdefs.h.  */
2630
2631 int
2632 main ()
2633 {
2634 #ifndef __GNUC__
2635        choke me
2636 #endif
2637
2638   ;
2639   return 0;
2640 }
2641 _ACEOF
2642 rm -f conftest.$ac_objext
2643 if { (ac_try="$ac_compile"
2644 case "(($ac_try" in
2645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2646   *) ac_try_echo=$ac_try;;
2647 esac
2648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2649   (eval "$ac_compile") 2>conftest.er1
2650   ac_status=$?
2651   grep -v '^ *+' conftest.er1 >conftest.err
2652   rm -f conftest.er1
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
2659   ac_compiler_gnu=yes
2660 else
2661   echo "$as_me: failed program was:" >&5
2662 sed 's/^/| /' conftest.$ac_ext >&5
2663
2664         ac_compiler_gnu=no
2665 fi
2666
2667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2668 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2669
2670 fi
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
2680 else
2681   ac_save_c_werror_flag=$ac_c_werror_flag
2682    ac_c_werror_flag=yes
2683    ac_cv_prog_cc_g=no
2684    CFLAGS="-g"
2685    cat >conftest.$ac_ext <<_ACEOF
2686 /* confdefs.h.  */
2687 _ACEOF
2688 cat confdefs.h >>conftest.$ac_ext
2689 cat >>conftest.$ac_ext <<_ACEOF
2690 /* end confdefs.h.  */
2691
2692 int
2693 main ()
2694 {
2695
2696   ;
2697   return 0;
2698 }
2699 _ACEOF
2700 rm -f conftest.$ac_objext
2701 if { (ac_try="$ac_compile"
2702 case "(($ac_try" in
2703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704   *) ac_try_echo=$ac_try;;
2705 esac
2706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2707   (eval "$ac_compile") 2>conftest.er1
2708   ac_status=$?
2709   grep -v '^ *+' conftest.er1 >conftest.err
2710   rm -f conftest.er1
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
2717   ac_cv_prog_cc_g=yes
2718 else
2719   echo "$as_me: failed program was:" >&5
2720 sed 's/^/| /' conftest.$ac_ext >&5
2721
2722         CFLAGS=""
2723       cat >conftest.$ac_ext <<_ACEOF
2724 /* confdefs.h.  */
2725 _ACEOF
2726 cat confdefs.h >>conftest.$ac_ext
2727 cat >>conftest.$ac_ext <<_ACEOF
2728 /* end confdefs.h.  */
2729
2730 int
2731 main ()
2732 {
2733
2734   ;
2735   return 0;
2736 }
2737 _ACEOF
2738 rm -f conftest.$ac_objext
2739 if { (ac_try="$ac_compile"
2740 case "(($ac_try" in
2741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2742   *) ac_try_echo=$ac_try;;
2743 esac
2744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2745   (eval "$ac_compile") 2>conftest.er1
2746   ac_status=$?
2747   grep -v '^ *+' conftest.er1 >conftest.err
2748   rm -f conftest.er1
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
2755   :
2756 else
2757   echo "$as_me: failed program was:" >&5
2758 sed 's/^/| /' conftest.$ac_ext >&5
2759
2760         ac_c_werror_flag=$ac_save_c_werror_flag
2761          CFLAGS="-g"
2762          cat >conftest.$ac_ext <<_ACEOF
2763 /* confdefs.h.  */
2764 _ACEOF
2765 cat confdefs.h >>conftest.$ac_ext
2766 cat >>conftest.$ac_ext <<_ACEOF
2767 /* end confdefs.h.  */
2768
2769 int
2770 main ()
2771 {
2772
2773   ;
2774   return 0;
2775 }
2776 _ACEOF
2777 rm -f conftest.$ac_objext
2778 if { (ac_try="$ac_compile"
2779 case "(($ac_try" in
2780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2781   *) ac_try_echo=$ac_try;;
2782 esac
2783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2784   (eval "$ac_compile") 2>conftest.er1
2785   ac_status=$?
2786   grep -v '^ *+' conftest.er1 >conftest.err
2787   rm -f conftest.er1
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
2794   ac_cv_prog_cc_g=yes
2795 else
2796   echo "$as_me: failed program was:" >&5
2797 sed 's/^/| /' conftest.$ac_ext >&5
2798
2799
2800 fi
2801
2802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2803 fi
2804
2805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2806 fi
2807
2808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2809    ac_c_werror_flag=$ac_save_c_werror_flag
2810 fi
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
2817     CFLAGS="-g -O2"
2818   else
2819     CFLAGS="-g"
2820   fi
2821 else
2822   if test "$GCC" = yes; then
2823     CFLAGS="-O2"
2824   else
2825     CFLAGS=
2826   fi
2827 fi
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
2832 else
2833   ac_cv_prog_cc_c89=no
2834 ac_save_CC=$CC
2835 cat >conftest.$ac_ext <<_ACEOF
2836 /* confdefs.h.  */
2837 _ACEOF
2838 cat confdefs.h >>conftest.$ac_ext
2839 cat >>conftest.$ac_ext <<_ACEOF
2840 /* end confdefs.h.  */
2841 #include <stdarg.h>
2842 #include <stdio.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)
2849      char **p;
2850      int i;
2851 {
2852   return p[i];
2853 }
2854 static char *f (char * (*g) (char **, int), char **p, ...)
2855 {
2856   char *s;
2857   va_list v;
2858   va_start (v,p);
2859   s = g (p, va_arg (v,int));
2860   va_end (v);
2861   return s;
2862 }
2863
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];
2872
2873 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2874    inside strings and character constants.  */
2875 #define FOO(x) 'x'
2876 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2877
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);
2882 int argc;
2883 char **argv;
2884 int
2885 main ()
2886 {
2887 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2888   ;
2889   return 0;
2890 }
2891 _ACEOF
2892 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2893         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2894 do
2895   CC="$ac_save_CC $ac_arg"
2896   rm -f conftest.$ac_objext
2897 if { (ac_try="$ac_compile"
2898 case "(($ac_try" in
2899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2900   *) ac_try_echo=$ac_try;;
2901 esac
2902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2903   (eval "$ac_compile") 2>conftest.er1
2904   ac_status=$?
2905   grep -v '^ *+' conftest.er1 >conftest.err
2906   rm -f conftest.er1
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
2914 else
2915   echo "$as_me: failed program was:" >&5
2916 sed 's/^/| /' conftest.$ac_ext >&5
2917
2918
2919 fi
2920
2921 rm -f core conftest.err conftest.$ac_objext
2922   test "x$ac_cv_prog_cc_c89" != "xno" && break
2923 done
2924 rm -f conftest.$ac_ext
2925 CC=$ac_save_CC
2926
2927 fi
2928 # AC_CACHE_VAL
2929 case "x$ac_cv_prog_cc_c89" in
2930   x)
2931     { echo "$as_me:$LINENO: result: none needed" >&5
2932 echo "${ECHO_T}none needed" >&6; } ;;
2933   xno)
2934     { echo "$as_me:$LINENO: result: unsupported" >&5
2935 echo "${ECHO_T}unsupported" >&6; } ;;
2936   *)
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; } ;;
2940 esac
2941
2942
2943 ac_ext=c
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
2948
2949
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.
2956
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;}
2960     ac_exeext=''
2961     ac_cv_exeext=''
2962     EXEEXT=''
2963     enable_assembler=no
2964 fi
2965
2966 # Used by the testsuite only
2967 ac_ext=cpp
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
2974     CXX=$CCC
2975   else
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
2978   do
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
2985 else
2986   if test -n "$CXX"; then
2987   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2988 else
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 for as_dir in $PATH
2991 do
2992   IFS=$as_save_IFS
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
2998     break 2
2999   fi
3000 done
3001 done
3002 IFS=$as_save_IFS
3003
3004 fi
3005 fi
3006 CXX=$ac_cv_prog_CXX
3007 if test -n "$CXX"; then
3008   { echo "$as_me:$LINENO: result: $CXX" >&5
3009 echo "${ECHO_T}$CXX" >&6; }
3010 else
3011   { echo "$as_me:$LINENO: result: no" >&5
3012 echo "${ECHO_T}no" >&6; }
3013 fi
3014
3015
3016     test -n "$CXX" && break
3017   done
3018 fi
3019 if test -z "$CXX"; then
3020   ac_ct_CXX=$CXX
3021   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3022 do
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
3029 else
3030   if test -n "$ac_ct_CXX"; then
3031   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3032 else
3033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034 for as_dir in $PATH
3035 do
3036   IFS=$as_save_IFS
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
3042     break 2
3043   fi
3044 done
3045 done
3046 IFS=$as_save_IFS
3047
3048 fi
3049 fi
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; }
3054 else
3055   { echo "$as_me:$LINENO: result: no" >&5
3056 echo "${ECHO_T}no" >&6; }
3057 fi
3058
3059
3060   test -n "$ac_ct_CXX" && break
3061 done
3062
3063   if test "x$ac_ct_CXX" = x; then
3064     CXX="g++"
3065   else
3066     case $cross_compiling:$ac_tool_warned in
3067 yes:)
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 ;;
3075 esac
3076     CXX=$ac_ct_CXX
3077   fi
3078 fi
3079
3080   fi
3081 fi
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"
3086 case "(($ac_try" in
3087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088   *) ac_try_echo=$ac_try;;
3089 esac
3090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3091   (eval "$ac_compiler --version >&5") 2>&5
3092   ac_status=$?
3093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094   (exit $ac_status); }
3095 { (ac_try="$ac_compiler -v >&5"
3096 case "(($ac_try" in
3097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098   *) ac_try_echo=$ac_try;;
3099 esac
3100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101   (eval "$ac_compiler -v >&5") 2>&5
3102   ac_status=$?
3103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104   (exit $ac_status); }
3105 { (ac_try="$ac_compiler -V >&5"
3106 case "(($ac_try" in
3107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108   *) ac_try_echo=$ac_try;;
3109 esac
3110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3111   (eval "$ac_compiler -V >&5") 2>&5
3112   ac_status=$?
3113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114   (exit $ac_status); }
3115
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
3120 else
3121   cat >conftest.$ac_ext <<_ACEOF
3122 /* confdefs.h.  */
3123 _ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h.  */
3127
3128 int
3129 main ()
3130 {
3131 #ifndef __GNUC__
3132        choke me
3133 #endif
3134
3135   ;
3136   return 0;
3137 }
3138 _ACEOF
3139 rm -f conftest.$ac_objext
3140 if { (ac_try="$ac_compile"
3141 case "(($ac_try" in
3142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3143   *) ac_try_echo=$ac_try;;
3144 esac
3145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3146   (eval "$ac_compile") 2>conftest.er1
3147   ac_status=$?
3148   grep -v '^ *+' conftest.er1 >conftest.err
3149   rm -f conftest.er1
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
3156   ac_compiler_gnu=yes
3157 else
3158   echo "$as_me: failed program was:" >&5
3159 sed 's/^/| /' conftest.$ac_ext >&5
3160
3161         ac_compiler_gnu=no
3162 fi
3163
3164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3165 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3166
3167 fi
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
3177 else
3178   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3179    ac_cxx_werror_flag=yes
3180    ac_cv_prog_cxx_g=no
3181    CXXFLAGS="-g"
3182    cat >conftest.$ac_ext <<_ACEOF
3183 /* confdefs.h.  */
3184 _ACEOF
3185 cat confdefs.h >>conftest.$ac_ext
3186 cat >>conftest.$ac_ext <<_ACEOF
3187 /* end confdefs.h.  */
3188
3189 int
3190 main ()
3191 {
3192
3193   ;
3194   return 0;
3195 }
3196 _ACEOF
3197 rm -f conftest.$ac_objext
3198 if { (ac_try="$ac_compile"
3199 case "(($ac_try" in
3200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201   *) ac_try_echo=$ac_try;;
3202 esac
3203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3204   (eval "$ac_compile") 2>conftest.er1
3205   ac_status=$?
3206   grep -v '^ *+' conftest.er1 >conftest.err
3207   rm -f conftest.er1
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
3215 else
3216   echo "$as_me: failed program was:" >&5
3217 sed 's/^/| /' conftest.$ac_ext >&5
3218
3219         CXXFLAGS=""
3220       cat >conftest.$ac_ext <<_ACEOF
3221 /* confdefs.h.  */
3222 _ACEOF
3223 cat confdefs.h >>conftest.$ac_ext
3224 cat >>conftest.$ac_ext <<_ACEOF
3225 /* end confdefs.h.  */
3226
3227 int
3228 main ()
3229 {
3230
3231   ;
3232   return 0;
3233 }
3234 _ACEOF
3235 rm -f conftest.$ac_objext
3236 if { (ac_try="$ac_compile"
3237 case "(($ac_try" in
3238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3239   *) ac_try_echo=$ac_try;;
3240 esac
3241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3242   (eval "$ac_compile") 2>conftest.er1
3243   ac_status=$?
3244   grep -v '^ *+' conftest.er1 >conftest.err
3245   rm -f conftest.er1
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
3252   :
3253 else
3254   echo "$as_me: failed program was:" >&5
3255 sed 's/^/| /' conftest.$ac_ext >&5
3256
3257         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3258          CXXFLAGS="-g"
3259          cat >conftest.$ac_ext <<_ACEOF
3260 /* confdefs.h.  */
3261 _ACEOF
3262 cat confdefs.h >>conftest.$ac_ext
3263 cat >>conftest.$ac_ext <<_ACEOF
3264 /* end confdefs.h.  */
3265
3266 int
3267 main ()
3268 {
3269
3270   ;
3271   return 0;
3272 }
3273 _ACEOF
3274 rm -f conftest.$ac_objext
3275 if { (ac_try="$ac_compile"
3276 case "(($ac_try" in
3277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278   *) ac_try_echo=$ac_try;;
3279 esac
3280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3281   (eval "$ac_compile") 2>conftest.er1
3282   ac_status=$?
3283   grep -v '^ *+' conftest.er1 >conftest.err
3284   rm -f conftest.er1
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
3292 else
3293   echo "$as_me: failed program was:" >&5
3294 sed 's/^/| /' conftest.$ac_ext >&5
3295
3296
3297 fi
3298
3299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3300 fi
3301
3302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3303 fi
3304
3305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3306    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3307 fi
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
3314     CXXFLAGS="-g -O2"
3315   else
3316     CXXFLAGS="-g"
3317   fi
3318 else
3319   if test "$GXX" = yes; then
3320     CXXFLAGS="-O2"
3321   else
3322     CXXFLAGS=
3323   fi
3324 fi
3325 ac_ext=c
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
3330
3331
3332 ac_ext=cpp
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
3337
3338
3339 cat >conftest.$ac_ext <<_ACEOF
3340 /* confdefs.h.  */
3341 _ACEOF
3342 cat confdefs.h >>conftest.$ac_ext
3343 cat >>conftest.$ac_ext <<_ACEOF
3344 /* end confdefs.h.  */
3345
3346 int
3347 main ()
3348 {
3349 return 0;
3350   ;
3351   return 0;
3352 }
3353 _ACEOF
3354 rm -f conftest.$ac_objext
3355 if { (ac_try="$ac_compile"
3356 case "(($ac_try" in
3357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358   *) ac_try_echo=$ac_try;;
3359 esac
3360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3361   (eval "$ac_compile") 2>conftest.er1
3362   ac_status=$?
3363   grep -v '^ *+' conftest.er1 >conftest.err
3364   rm -f conftest.er1
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)'
3372 else
3373   echo "$as_me: failed program was:" >&5
3374 sed 's/^/| /' conftest.$ac_ext >&5
3375
3376         CXX_TESTS=''
3377 fi
3378
3379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3380
3381 ac_ext=c
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
3386
3387
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
3393 else
3394   cat >conftest.make <<\_ACEOF
3395 SHELL = /bin/sh
3396 all:
3397         @echo '@@@%%%=$(MAKE)=@@@%%%'
3398 _ACEOF
3399 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3400 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3401   *@@@%%%=?*=@@@%%%*)
3402     eval ac_cv_prog_make_${ac_make}_set=yes;;
3403   *)
3404     eval ac_cv_prog_make_${ac_make}_set=no;;
3405 esac
3406 rm -f conftest.make
3407 fi
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; }
3411   SET_MAKE=
3412 else
3413   { echo "$as_me:$LINENO: result: no" >&5
3414 echo "${ECHO_T}no" >&6; }
3415   SET_MAKE="MAKE=${MAKE-make}"
3416 fi
3417
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
3425 else
3426   if test -n "$RANLIB"; then
3427   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3428 else
3429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3430 for as_dir in $PATH
3431 do
3432   IFS=$as_save_IFS
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
3438     break 2
3439   fi
3440 done
3441 done
3442 IFS=$as_save_IFS
3443
3444 fi
3445 fi
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; }
3450 else
3451   { echo "$as_me:$LINENO: result: no" >&5
3452 echo "${ECHO_T}no" >&6; }
3453 fi
3454
3455
3456 fi
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
3465 else
3466   if test -n "$ac_ct_RANLIB"; then
3467   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3468 else
3469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470 for as_dir in $PATH
3471 do
3472   IFS=$as_save_IFS
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
3478     break 2
3479   fi
3480 done
3481 done
3482 IFS=$as_save_IFS
3483
3484 fi
3485 fi
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; }
3490 else
3491   { echo "$as_me:$LINENO: result: no" >&5
3492 echo "${ECHO_T}no" >&6; }
3493 fi
3494
3495   if test "x$ac_ct_RANLIB" = x; then
3496     RANLIB=":"
3497   else
3498     case $cross_compiling:$ac_tool_warned in
3499 yes:)
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 ;;
3507 esac
3508     RANLIB=$ac_ct_RANLIB
3509   fi
3510 else
3511   RANLIB="$ac_cv_prog_RANLIB"
3512 fi
3513
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
3521 else
3522   if test -n "$NM"; then
3523   ac_cv_prog_NM="$NM" # Let the user override the test.
3524 else
3525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526 for as_dir in $PATH
3527 do
3528   IFS=$as_save_IFS
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
3534     break 2
3535   fi
3536 done
3537 done
3538 IFS=$as_save_IFS
3539
3540 fi
3541 fi
3542 NM=$ac_cv_prog_NM
3543 if test -n "$NM"; then
3544   { echo "$as_me:$LINENO: result: $NM" >&5
3545 echo "${ECHO_T}$NM" >&6; }
3546 else
3547   { echo "$as_me:$LINENO: result: no" >&5
3548 echo "${ECHO_T}no" >&6; }
3549 fi
3550
3551
3552 fi
3553 if test -z "$ac_cv_prog_NM"; then
3554   ac_ct_NM=$NM
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
3561 else
3562   if test -n "$ac_ct_NM"; then
3563   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
3564 else
3565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566 for as_dir in $PATH
3567 do
3568   IFS=$as_save_IFS
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
3574     break 2
3575   fi
3576 done
3577 done
3578 IFS=$as_save_IFS
3579
3580 fi
3581 fi
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; }
3586 else
3587   { echo "$as_me:$LINENO: result: no" >&5
3588 echo "${ECHO_T}no" >&6; }
3589 fi
3590
3591   if test "x$ac_ct_NM" = x; then
3592     NM="strings"
3593   else
3594     case $cross_compiling:$ac_tool_warned in
3595 yes:)
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 ;;
3603 esac
3604     NM=$ac_ct_NM
3605   fi
3606 else
3607   NM="$ac_cv_prog_NM"
3608 fi
3609
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
3618 else
3619   if test -n "$OBJDUMP"; then
3620   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3621 else
3622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3623 for as_dir in $PATH
3624 do
3625   IFS=$as_save_IFS
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
3631     break 2
3632   fi
3633 done
3634 done
3635 IFS=$as_save_IFS
3636
3637 fi
3638 fi
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; }
3643 else
3644   { echo "$as_me:$LINENO: result: no" >&5
3645 echo "${ECHO_T}no" >&6; }
3646 fi
3647
3648
3649 fi
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
3658 else
3659   if test -n "$ac_ct_OBJDUMP"; then
3660   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
3661 else
3662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663 for as_dir in $PATH
3664 do
3665   IFS=$as_save_IFS
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
3671     break 2
3672   fi
3673 done
3674 done
3675 IFS=$as_save_IFS
3676
3677 fi
3678 fi
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; }
3683 else
3684   { echo "$as_me:$LINENO: result: no" >&5
3685 echo "${ECHO_T}no" >&6; }
3686 fi
3687
3688   if test "x$ac_ct_OBJDUMP" = x; then
3689     OBJDUMP="false"
3690   else
3691     case $cross_compiling:$ac_tool_warned in
3692 yes:)
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 ;;
3700 esac
3701     OBJDUMP=$ac_ct_OBJDUMP
3702   fi
3703 else
3704   OBJDUMP="$ac_cv_prog_OBJDUMP"
3705 fi
3706
3707
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; }; } #'
3712 fi
3713
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
3720 # AIX /bin/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
3732 else
3733   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3734 for as_dir in $PATH
3735 do
3736   IFS=$as_save_IFS
3737   test -z "$as_dir" && as_dir=.
3738   # Account for people who put trailing slashes in PATH elements.
3739 case $as_dir/ in
3740   ./ | .// | /cC/* | \
3741   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3742   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3743   /usr/ucb/* ) ;;
3744   *)
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
3747     # by default.
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.
3754             :
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.
3758             :
3759           else
3760             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3761             break 3
3762           fi
3763         fi
3764       done
3765     done
3766     ;;
3767 esac
3768 done
3769 IFS=$as_save_IFS
3770
3771
3772 fi
3773   if test "${ac_cv_path_install+set}" = set; then
3774     INSTALL=$ac_cv_path_install
3775   else
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
3781   fi
3782 fi
3783 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3784 echo "${ECHO_T}$INSTALL" >&6; }
3785
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}'
3789
3790 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3791
3792 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3793
3794
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
3802 else
3803   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3804 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3805 do
3806   IFS=$as_save_IFS
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
3816                break 3;;
3817            esac
3818          done
3819        done
3820 done
3821 IFS=$as_save_IFS
3822
3823 fi
3824
3825   if test "${ac_cv_path_mkdir+set}" = set; then
3826     MKDIR_P="$ac_cv_path_mkdir -p"
3827   else
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"
3834   fi
3835 fi
3836 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3837 echo "${ECHO_T}$MKDIR_P" >&6; }
3838
3839
3840 # Check whether --enable-dependency_tracking was given.
3841 if test "${enable_dependency_tracking+set}" = set; then
3842   enableval=$enable_dependency_tracking;
3843 else
3844   enable_dependency_tracking=yes
3845 fi
3846
3847
3848 DEP_FLAGS=''
3849 DEP_PROCESS='true'
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
3854       2.*|*[!0-9.]2.*)
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;}
3858       ;;
3859       *)
3860         DEP_FLAGS='-MT $@ -MD -MP -MF $@.d'
3861         DEP_PROCESS='true'
3862       ;;
3863     esac
3864   else
3865     enable_dependency_tracking=no
3866     { echo "$as_me:$LINENO: WARNING: Dependency tracking disabled" >&5
3867 echo "$as_me: WARNING: Dependency tracking disabled" >&2;}
3868   fi
3869 fi
3870
3871 if test x$enable_dependency_tracking = xyes ; then
3872   DEP_INCLUDE='include '
3873 else
3874   DEP_INCLUDE='# '
3875 fi
3876
3877
3878
3879
3880
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
3884   # actually needed.
3885
3886   ac_config_commands="$ac_config_commands dummy-dep-files"
3887
3888 fi
3889
3890 # Figure out ABI. Currently, configurable only be setting CFLAGS.
3891 ABI=standard
3892
3893 case "$host_cpu" in
3894   x86_64 | amd64)
3895
3896 cat >conftest.$ac_ext <<_ACEOF
3897 /* confdefs.h.  */
3898 _ACEOF
3899 cat confdefs.h >>conftest.$ac_ext
3900 cat >>conftest.$ac_ext <<_ACEOF
3901 /* end confdefs.h.  */
3902
3903 #if defined(__x86_64__) || defined(__arch64__)
3904 #error 64-bit x86
3905 #endif
3906
3907 int
3908 main ()
3909 {
3910
3911   ;
3912   return 0;
3913 }
3914 _ACEOF
3915 rm -f conftest.$ac_objext
3916 if { (ac_try="$ac_compile"
3917 case "(($ac_try" in
3918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3919   *) ac_try_echo=$ac_try;;
3920 esac
3921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3922   (eval "$ac_compile") 2>conftest.er1
3923   ac_status=$?
3924   grep -v '^ *+' conftest.er1 >conftest.err
3925   rm -f conftest.er1
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
3932
3933       ABI=32
3934
3935 else
3936   echo "$as_me: failed program was:" >&5
3937 sed 's/^/| /' conftest.$ac_ext >&5
3938
3939
3940       ABI=64
3941
3942 fi
3943
3944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3945     ;;
3946   *sparc*)
3947     cat >conftest.$ac_ext <<_ACEOF
3948 /* confdefs.h.  */
3949 _ACEOF
3950 cat confdefs.h >>conftest.$ac_ext
3951 cat >>conftest.$ac_ext <<_ACEOF
3952 /* end confdefs.h.  */
3953
3954 #if defined(__sparcv9) || defined(__arch64__)
3955 #error 64-bit sparc
3956 #endif
3957
3958 int
3959 main ()
3960 {
3961
3962   ;
3963   return 0;
3964 }
3965 _ACEOF
3966 rm -f conftest.$ac_objext
3967 if { (ac_try="$ac_compile"
3968 case "(($ac_try" in
3969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3970   *) ac_try_echo=$ac_try;;
3971 esac
3972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3973   (eval "$ac_compile") 2>conftest.er1
3974   ac_status=$?
3975   grep -v '^ *+' conftest.er1 >conftest.err
3976   rm -f conftest.er1
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
3983
3984       ABI=32
3985
3986 else
3987   echo "$as_me: failed program was:" >&5
3988 sed 's/^/| /' conftest.$ac_ext >&5
3989
3990
3991       ABI=64
3992
3993 fi
3994
3995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3996     ;;
3997 esac
3998
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'
4007         ;;
4008       *:solaris*:64|*:sunos*:64)
4009         libdir='${exec_prefix}/lib/64'
4010         ;;
4011       # According to the fhs, all architectures except IA64
4012       # puts 32-bit libraries in lib, and 64-bit in lib64.
4013       *:linux*:32)
4014         libdir='${exec_prefix}/lib'
4015         ;;
4016       *:linux*:64)
4017         libdir='${exec_prefix}/lib64'
4018         ;;
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?
4022       *:freebsd*:32)
4023         libdir='${exec_prefix}/lib32'
4024         ;;
4025       *:freebsd*:64)
4026         libdir='${exec_prefix}/lib'
4027         ;;
4028       *)
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;}; #'
4031
4032     esac
4033     { echo "$as_me:$LINENO: Libraries to be installed in $libdir." >&5
4034 echo "$as_me: Libraries to be installed in $libdir." >&6;}
4035   fi
4036 fi
4037
4038 # Select assembler code
4039 asm_path=
4040 case "$host_cpu" in
4041   i?86* | k[5-8]* | pentium* | athlon)
4042     asm_path=x86
4043     ;;
4044   x86_64 | amd64)
4045     if test "$ABI" = 64 ; then
4046       asm_path=x86_64
4047     else
4048       asm_path=x86
4049     fi
4050     ;;
4051   *sparc*)
4052     if test "$ABI" = 64 ; then
4053       asm_path=sparc64
4054     else
4055       asm_path=sparc32
4056     fi
4057     ;;
4058   *)
4059     enable_assembler=no
4060     ;;
4061 esac
4062
4063 # echo "enable_assembler: $enable_assembler, asm_path: $asm_path"
4064
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;}
4069     found=no
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
4075 #        echo found
4076         found=yes
4077         ac_config_links="$ac_config_links $tmp_f:$asm_path/$tmp_f"
4078
4079       fi
4080     done
4081     if test "$found" = no; then
4082       enable_assembler=no
4083       { echo "$as_me:$LINENO: WARNING: No assembler files found." >&5
4084 echo "$as_me: WARNING: No assembler files found." >&2;}
4085     fi
4086   fi
4087 fi
4088
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
4093 else
4094
4095   if test -z "$CCPIC" ; then
4096     if test "$GCC" = yes ; then
4097       case "$host_os" in
4098         bsdi4.*)        CCPIC="-fPIC" ;;
4099         bsdi*)          CCPIC="" ;;
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="" ;;
4105         *)              CCPIC="-fpic" ;;
4106       esac
4107     else
4108       case "$host_os" in
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" ;;
4116         *)              CCPIC="" ;;
4117       esac
4118     fi
4119   fi
4120   OLD_CFLAGS="$CFLAGS"
4121   CFLAGS="$CFLAGS $CCPIC"
4122   cat >conftest.$ac_ext <<_ACEOF
4123 /* confdefs.h.  */
4124 _ACEOF
4125 cat confdefs.h >>conftest.$ac_ext
4126 cat >>conftest.$ac_ext <<_ACEOF
4127 /* end confdefs.h.  */
4128
4129 int
4130 main ()
4131 {
4132 exit(0);
4133   ;
4134   return 0;
4135 }
4136 _ACEOF
4137 rm -f conftest.$ac_objext
4138 if { (ac_try="$ac_compile"
4139 case "(($ac_try" in
4140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4141   *) ac_try_echo=$ac_try;;
4142 esac
4143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4144   (eval "$ac_compile") 2>conftest.er1
4145   ac_status=$?
4146   grep -v '^ *+' conftest.er1 >conftest.err
4147   rm -f conftest.er1
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"
4155 else
4156   echo "$as_me: failed program was:" >&5
4157 sed 's/^/| /' conftest.$ac_ext >&5
4158
4159         lsh_cv_sys_ccpic=''
4160 fi
4161
4162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4163   CFLAGS="$OLD_CFLAGS"
4164
4165 fi
4166
4167 CCPIC="$lsh_cv_sys_ccpic"
4168 { echo "$as_me:$LINENO: result: $CCPIC" >&5
4169 echo "${ECHO_T}$CCPIC" >&6; }
4170
4171
4172 SHLIBCFLAGS="$CCPIC"
4173
4174 case "$host_os" in
4175   cygwin*)
4176     LIBNETTLE_FORLINK='cygnettle-$(LIBNETTLE_MAJOR)-$(LIBNETTLE_MINOR).dll'
4177     LIBNETTLE_SONAME=''
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)'
4181
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)'
4187     ;;
4188   darwin*)
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)'
4193     LIBNETTLE_LIBS=''
4194
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)'
4199     LIBHOGWEED_LIBS=''
4200     ;;
4201   *)
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)'
4206     LIBNETTLE_LIBS=''
4207
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'
4218     ;;
4219 esac
4220
4221 if test "x$enable_pic" = xyes; then
4222   CCPIC_MAYBE="$CCPIC"
4223 else
4224   CCPIC_MAYBE=''
4225 fi
4226
4227
4228 ASM_SYMBOL_PREFIX=''
4229 ASM_ELF_STYLE='no'
4230 ASM_TYPE_FUNCTION=''
4231 ASM_MARK_NOEXEC_STACK=''
4232 ASM_ALIGN_LOG=''
4233
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
4239 else
4240    # Default is no underscore
4241     nettle_cv_asm_underscore=no
4242     cat >conftest.$ac_ext <<_ACEOF
4243 int a_global_symbol;
4244 _ACEOF
4245 rm -f conftest.$ac_objext
4246 if { (ac_try="$ac_compile"
4247 case "(($ac_try" in
4248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4249   *) ac_try_echo=$ac_try;;
4250 esac
4251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4252   (eval "$ac_compile") 2>conftest.er1
4253   ac_status=$?
4254   grep -v '^ *+' conftest.er1 >conftest.err
4255   rm -f conftest.er1
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
4267         else
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;}
4270         fi
4271 else
4272   echo "$as_me: failed program was:" >&5
4273 sed 's/^/| /' conftest.$ac_ext >&5
4274
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;}
4277 fi
4278
4279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4280 fi
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='_'
4285   fi
4286
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
4291 else
4292    # Default
4293     nettle_cv_asm_gnu_stack=no
4294
4295     cat >conftest.c <<EOF
4296 int foo() { return 0; }
4297 EOF
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
4301   ac_status=$?
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
4307     else
4308       cat conftest.out >&5
4309       echo "configure: failed program was:" >&5
4310       cat conftest.s >&5
4311     fi
4312     rm -f conftest.*
4313 fi
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'
4318   fi
4319
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
4324 else
4325   cat >conftest.s <<EOF
4326
4327 .text
4328 .globl foo
4329 .type foo,%function
4330 foo:
4331 .Lend:
4332
4333 .size foo, .Lend - foo
4334
4335 EOF
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
4339   ac_status=$?
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
4344 else
4345   cat conftest.out >&5
4346   echo "configure: failed program was:" >&5
4347   cat conftest.s >&5
4348   nettle_cv_asm_type_percent_function=no
4349 fi
4350 rm -f conftest*
4351
4352 fi
4353 { echo "$as_me:$LINENO: result: $nettle_cv_asm_type_percent_function" >&5
4354 echo "${ECHO_T}$nettle_cv_asm_type_percent_function" >&6; }
4355
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
4360 else
4361   cat >conftest.s <<EOF
4362
4363 .text
4364 .globl foo
4365 .type foo,#function
4366 foo:
4367 .Lend:
4368
4369 .size foo, .Lend - foo
4370
4371 EOF
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
4375   ac_status=$?
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
4380 else
4381   cat conftest.out >&5
4382   echo "configure: failed program was:" >&5
4383   cat conftest.s >&5
4384   nettle_cv_asm_type_hash_function=no
4385 fi
4386 rm -f conftest*
4387
4388 fi
4389 { echo "$as_me:$LINENO: result: $nettle_cv_asm_type_hash_function" >&5
4390 echo "${ECHO_T}$nettle_cv_asm_type_hash_function" >&6; }
4391
4392   if test x$nettle_cv_asm_type_percent_function = xyes ; then
4393     ASM_ELF_STYLE='yes'
4394     ASM_TYPE_FUNCTION='%function'
4395   else
4396     if test x$nettle_cv_asm_type_hash_function = xyes ; then
4397       ASM_ELF_STYLE='yes'
4398       ASM_TYPE_FUNCTION='#function'
4399     fi
4400   fi
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
4405 else
4406   cat >conftest.s <<EOF
4407
4408 .align 3
4409
4410 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
4414   ac_status=$?
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
4419 else
4420   cat conftest.out >&5
4421   echo "configure: failed program was:" >&5
4422   cat conftest.s >&5
4423   nettle_cv_asm_align_log=no
4424 fi
4425 rm -f conftest*
4426
4427 fi
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
4431     ASM_ALIGN_LOG='yes'
4432   fi
4433 fi
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
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
4465 else
4466   case $M4 in
4467   [\\/]* | ?:[\\/]*)
4468   ac_cv_path_M4="$M4" # Let the user override the test with a path.
4469   ;;
4470   *)
4471   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472 for as_dir in $PATH
4473 do
4474   IFS=$as_save_IFS
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
4480     break 2
4481   fi
4482 done
4483 done
4484 IFS=$as_save_IFS
4485
4486   test -z "$ac_cv_path_M4" && ac_cv_path_M4="m4"
4487   ;;
4488 esac
4489 fi
4490 M4=$ac_cv_path_M4
4491 if test -n "$M4"; then
4492   { echo "$as_me:$LINENO: result: $M4" >&5
4493 echo "${ECHO_T}$M4" >&6; }
4494 else
4495   { echo "$as_me:$LINENO: result: no" >&5
4496 echo "${ECHO_T}no" >&6; }
4497 fi
4498
4499
4500
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
4506 else
4507   cat >conftest.$ac_ext <<_ACEOF
4508 /* confdefs.h.  */
4509 _ACEOF
4510 cat confdefs.h >>conftest.$ac_ext
4511 cat >>conftest.$ac_ext <<_ACEOF
4512 /* end confdefs.h.  */
4513
4514 int
4515 main ()
4516 {
4517 /* FIXME: Include the comments suggested by Paul. */
4518 #ifndef __cplusplus
4519   /* Ultrix mips cc rejects this.  */
4520   typedef int charset[2];
4521   const charset cs;
4522   /* SunOS 4.1.1 cc rejects this.  */
4523   char const *const *pcpcc;
4524   char **ppc;
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
4531      expression */
4532   const char *g = "string";
4533   pcpcc = &g + (g ? g-g : 0);
4534   /* HPUX 7.0 cc rejects these. */
4535   ++pcpcc;
4536   ppc = (char**) pcpcc;
4537   pcpcc = (char const *const *) ppc;
4538   { /* SCO 3.2v4 cc rejects this.  */
4539     char *t;
4540     char const *s = 0 ? (char *) 0 : (char const *) 0;
4541
4542     *t++ = 0;
4543     if (s) return 0;
4544   }
4545   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4546     int x[] = {25, 17};
4547     const int *foo = &x[0];
4548     ++foo;
4549   }
4550   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4551     typedef const int *iptr;
4552     iptr p = 0;
4553     ++p;
4554   }
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;
4559   }
4560   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4561     const int foo = 10;
4562     if (!foo) return 0;
4563   }
4564   return !cs[0] && !zero.x;
4565 #endif
4566
4567   ;
4568   return 0;
4569 }
4570 _ACEOF
4571 rm -f conftest.$ac_objext
4572 if { (ac_try="$ac_compile"
4573 case "(($ac_try" in
4574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4575   *) ac_try_echo=$ac_try;;
4576 esac
4577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4578   (eval "$ac_compile") 2>conftest.er1
4579   ac_status=$?
4580   grep -v '^ *+' conftest.er1 >conftest.err
4581   rm -f conftest.er1
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
4588   ac_cv_c_const=yes
4589 else
4590   echo "$as_me: failed program was:" >&5
4591 sed 's/^/| /' conftest.$ac_ext >&5
4592
4593         ac_cv_c_const=no
4594 fi
4595
4596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4597 fi
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
4601
4602 cat >>confdefs.h <<\_ACEOF
4603 #define const
4604 _ACEOF
4605
4606 fi
4607
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
4612 else
4613   ac_cv_c_inline=no
4614 for ac_kw in inline __inline__ __inline; do
4615   cat >conftest.$ac_ext <<_ACEOF
4616 /* confdefs.h.  */
4617 _ACEOF
4618 cat confdefs.h >>conftest.$ac_ext
4619 cat >>conftest.$ac_ext <<_ACEOF
4620 /* end confdefs.h.  */
4621 #ifndef __cplusplus
4622 typedef int foo_t;
4623 static $ac_kw foo_t static_foo () {return 0; }
4624 $ac_kw foo_t foo () {return 0; }
4625 #endif
4626
4627 _ACEOF
4628 rm -f conftest.$ac_objext
4629 if { (ac_try="$ac_compile"
4630 case "(($ac_try" in
4631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4632   *) ac_try_echo=$ac_try;;
4633 esac
4634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4635   (eval "$ac_compile") 2>conftest.er1
4636   ac_status=$?
4637   grep -v '^ *+' conftest.er1 >conftest.err
4638   rm -f conftest.er1
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
4646 else
4647   echo "$as_me: failed program was:" >&5
4648 sed 's/^/| /' conftest.$ac_ext >&5
4649
4650
4651 fi
4652
4653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4654   test "$ac_cv_c_inline" != no && break
4655 done
4656
4657 fi
4658 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4659 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
4660
4661
4662 case $ac_cv_c_inline in
4663   inline | yes) ;;
4664   *)
4665     case $ac_cv_c_inline in
4666       no) ac_val=;;
4667       *) ac_val=$ac_cv_c_inline;;
4668     esac
4669     cat >>confdefs.h <<_ACEOF
4670 #ifndef __cplusplus
4671 #define inline $ac_val
4672 #endif
4673 _ACEOF
4674     ;;
4675 esac
4676
4677 ac_ext=c
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
4686   CPP=
4687 fi
4688 if test -z "$CPP"; then
4689   if test "${ac_cv_prog_CPP+set}" = set; then
4690   echo $ECHO_N "(cached) $ECHO_C" >&6
4691 else
4692       # Double quotes because CPP needs to be expanded
4693     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4694     do
4695       ac_preproc_ok=false
4696 for ac_c_preproc_warn_flag in '' yes
4697 do
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
4705 /* confdefs.h.  */
4706 _ACEOF
4707 cat confdefs.h >>conftest.$ac_ext
4708 cat >>conftest.$ac_ext <<_ACEOF
4709 /* end confdefs.h.  */
4710 #ifdef __STDC__
4711 # include <limits.h>
4712 #else
4713 # include <assert.h>
4714 #endif
4715                      Syntax error
4716 _ACEOF
4717 if { (ac_try="$ac_cpp conftest.$ac_ext"
4718 case "(($ac_try" in
4719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4720   *) ac_try_echo=$ac_try;;
4721 esac
4722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4723   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4724   ac_status=$?
4725   grep -v '^ *+' conftest.er1 >conftest.err
4726   rm -f conftest.er1
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
4732        }; then
4733   :
4734 else
4735   echo "$as_me: failed program was:" >&5
4736 sed 's/^/| /' conftest.$ac_ext >&5
4737
4738   # Broken: fails on valid input.
4739 continue
4740 fi
4741
4742 rm -f conftest.err conftest.$ac_ext
4743
4744   # OK, works on sane cases.  Now check whether nonexistent headers
4745   # can be detected and how.
4746   cat >conftest.$ac_ext <<_ACEOF
4747 /* confdefs.h.  */
4748 _ACEOF
4749 cat confdefs.h >>conftest.$ac_ext
4750 cat >>conftest.$ac_ext <<_ACEOF
4751 /* end confdefs.h.  */
4752 #include <ac_nonexistent.h>
4753 _ACEOF
4754 if { (ac_try="$ac_cpp conftest.$ac_ext"
4755 case "(($ac_try" in
4756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4757   *) ac_try_echo=$ac_try;;
4758 esac
4759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4760   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4761   ac_status=$?
4762   grep -v '^ *+' conftest.er1 >conftest.err
4763   rm -f conftest.er1
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
4769        }; then
4770   # Broken: success on invalid input.
4771 continue
4772 else
4773   echo "$as_me: failed program was:" >&5
4774 sed 's/^/| /' conftest.$ac_ext >&5
4775
4776   # Passes both tests.
4777 ac_preproc_ok=:
4778 break
4779 fi
4780
4781 rm -f conftest.err conftest.$ac_ext
4782
4783 done
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
4787   break
4788 fi
4789
4790     done
4791     ac_cv_prog_CPP=$CPP
4792
4793 fi
4794   CPP=$ac_cv_prog_CPP
4795 else
4796   ac_cv_prog_CPP=$CPP
4797 fi
4798 { echo "$as_me:$LINENO: result: $CPP" >&5
4799 echo "${ECHO_T}$CPP" >&6; }
4800 ac_preproc_ok=false
4801 for ac_c_preproc_warn_flag in '' yes
4802 do
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
4810 /* confdefs.h.  */
4811 _ACEOF
4812 cat confdefs.h >>conftest.$ac_ext
4813 cat >>conftest.$ac_ext <<_ACEOF
4814 /* end confdefs.h.  */
4815 #ifdef __STDC__
4816 # include <limits.h>
4817 #else
4818 # include <assert.h>
4819 #endif
4820                      Syntax error
4821 _ACEOF
4822 if { (ac_try="$ac_cpp conftest.$ac_ext"
4823 case "(($ac_try" in
4824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4825   *) ac_try_echo=$ac_try;;
4826 esac
4827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4828   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4829   ac_status=$?
4830   grep -v '^ *+' conftest.er1 >conftest.err
4831   rm -f conftest.er1
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
4837        }; then
4838   :
4839 else
4840   echo "$as_me: failed program was:" >&5
4841 sed 's/^/| /' conftest.$ac_ext >&5
4842
4843   # Broken: fails on valid input.
4844 continue
4845 fi
4846
4847 rm -f conftest.err conftest.$ac_ext
4848
4849   # OK, works on sane cases.  Now check whether nonexistent headers
4850   # can be detected and how.
4851   cat >conftest.$ac_ext <<_ACEOF
4852 /* confdefs.h.  */
4853 _ACEOF
4854 cat confdefs.h >>conftest.$ac_ext
4855 cat >>conftest.$ac_ext <<_ACEOF
4856 /* end confdefs.h.  */
4857 #include <ac_nonexistent.h>
4858 _ACEOF
4859 if { (ac_try="$ac_cpp conftest.$ac_ext"
4860 case "(($ac_try" in
4861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4862   *) ac_try_echo=$ac_try;;
4863 esac
4864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4865   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4866   ac_status=$?
4867   grep -v '^ *+' conftest.er1 >conftest.err
4868   rm -f conftest.er1
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
4874        }; then
4875   # Broken: success on invalid input.
4876 continue
4877 else
4878   echo "$as_me: failed program was:" >&5
4879 sed 's/^/| /' conftest.$ac_ext >&5
4880
4881   # Passes both tests.
4882 ac_preproc_ok=:
4883 break
4884 fi
4885
4886 rm -f conftest.err conftest.$ac_ext
4887
4888 done
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
4892   :
4893 else
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; }; }
4899 fi
4900
4901 ac_ext=c
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
4906
4907
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
4912 else
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
4918 else
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
4923 do
4924   IFS=$as_save_IFS
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
4933 *GNU*)
4934   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4935 *)
4936   ac_count=0
4937   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4938   while :
4939   do
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
4951     fi
4952     # 10*(2^10) chars as input seems more than enough
4953     test $ac_count -gt 10 && break
4954   done
4955   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4956 esac
4957
4958
4959     $ac_path_GREP_found && break 3
4960   done
4961 done
4962
4963 done
4964 IFS=$as_save_IFS
4965
4966
4967 fi
4968
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; }; }
4974 fi
4975
4976 else
4977   ac_cv_path_GREP=$GREP
4978 fi
4979
4980
4981 fi
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"
4985
4986
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
4991 else
4992   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4993    then ac_cv_path_EGREP="$GREP -E"
4994    else
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
5000 else
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
5005 do
5006   IFS=$as_save_IFS
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
5015 *GNU*)
5016   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5017 *)
5018   ac_count=0
5019   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5020   while :
5021   do
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
5033     fi
5034     # 10*(2^10) chars as input seems more than enough
5035     test $ac_count -gt 10 && break
5036   done
5037   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5038 esac
5039
5040
5041     $ac_path_EGREP_found && break 3
5042   done
5043 done
5044
5045 done
5046 IFS=$as_save_IFS
5047
5048
5049 fi
5050
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; }; }
5056 fi
5057
5058 else
5059   ac_cv_path_EGREP=$EGREP
5060 fi
5061
5062
5063    fi
5064 fi
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"
5068
5069
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
5074 else
5075   cat >conftest.$ac_ext <<_ACEOF
5076 /* confdefs.h.  */
5077 _ACEOF
5078 cat confdefs.h >>conftest.$ac_ext
5079 cat >>conftest.$ac_ext <<_ACEOF
5080 /* end confdefs.h.  */
5081 #include <sys/types.h>
5082
5083 _ACEOF
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
5087 else
5088   ac_cv_type_uid_t=no
5089 fi
5090 rm -f conftest*
5091
5092 fi
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
5096
5097 cat >>confdefs.h <<\_ACEOF
5098 #define uid_t int
5099 _ACEOF
5100
5101
5102 cat >>confdefs.h <<\_ACEOF
5103 #define gid_t int
5104 _ACEOF
5105
5106 fi
5107
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
5112 else
5113   cat >conftest.$ac_ext <<_ACEOF
5114 /* confdefs.h.  */
5115 _ACEOF
5116 cat confdefs.h >>conftest.$ac_ext
5117 cat >>conftest.$ac_ext <<_ACEOF
5118 /* end confdefs.h.  */
5119 #include <stdlib.h>
5120 #include <stdarg.h>
5121 #include <string.h>
5122 #include <float.h>
5123
5124 int
5125 main ()
5126 {
5127
5128   ;
5129   return 0;
5130 }
5131 _ACEOF
5132 rm -f conftest.$ac_objext
5133 if { (ac_try="$ac_compile"
5134 case "(($ac_try" in
5135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5136   *) ac_try_echo=$ac_try;;
5137 esac
5138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5139   (eval "$ac_compile") 2>conftest.er1
5140   ac_status=$?
5141   grep -v '^ *+' conftest.er1 >conftest.err
5142   rm -f conftest.er1
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
5150 else
5151   echo "$as_me: failed program was:" >&5
5152 sed 's/^/| /' conftest.$ac_ext >&5
5153
5154         ac_cv_header_stdc=no
5155 fi
5156
5157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5158
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
5162 /* confdefs.h.  */
5163 _ACEOF
5164 cat confdefs.h >>conftest.$ac_ext
5165 cat >>conftest.$ac_ext <<_ACEOF
5166 /* end confdefs.h.  */
5167 #include <string.h>
5168
5169 _ACEOF
5170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5171   $EGREP "memchr" >/dev/null 2>&1; then
5172   :
5173 else
5174   ac_cv_header_stdc=no
5175 fi
5176 rm -f conftest*
5177
5178 fi
5179
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
5183 /* confdefs.h.  */
5184 _ACEOF
5185 cat confdefs.h >>conftest.$ac_ext
5186 cat >>conftest.$ac_ext <<_ACEOF
5187 /* end confdefs.h.  */
5188 #include <stdlib.h>
5189
5190 _ACEOF
5191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5192   $EGREP "free" >/dev/null 2>&1; then
5193   :
5194 else
5195   ac_cv_header_stdc=no
5196 fi
5197 rm -f conftest*
5198
5199 fi
5200
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
5204   :
5205 else
5206   cat >conftest.$ac_ext <<_ACEOF
5207 /* confdefs.h.  */
5208 _ACEOF
5209 cat confdefs.h >>conftest.$ac_ext
5210 cat >>conftest.$ac_ext <<_ACEOF
5211 /* end confdefs.h.  */
5212 #include <ctype.h>
5213 #include <stdlib.h>
5214 #if ((' ' & 0x0FF) == 0x020)
5215 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5216 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5217 #else
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))
5223 #endif
5224
5225 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5226 int
5227 main ()
5228 {
5229   int i;
5230   for (i = 0; i < 256; i++)
5231     if (XOR (islower (i), ISLOWER (i))
5232         || toupper (i) != TOUPPER (i))
5233       return 2;
5234   return 0;
5235 }
5236 _ACEOF
5237 rm -f conftest$ac_exeext
5238 if { (ac_try="$ac_link"
5239 case "(($ac_try" in
5240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5241   *) ac_try_echo=$ac_try;;
5242 esac
5243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5244   (eval "$ac_link") 2>&5
5245   ac_status=$?
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;;
5251 esac
5252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5253   (eval "$ac_try") 2>&5
5254   ac_status=$?
5255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256   (exit $ac_status); }; }; then
5257   :
5258 else
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
5262
5263 ( exit $ac_status )
5264 ac_cv_header_stdc=no
5265 fi
5266 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5267 fi
5268
5269
5270 fi
5271 fi
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
5275
5276 cat >>confdefs.h <<\_ACEOF
5277 #define STDC_HEADERS 1
5278 _ACEOF
5279
5280 fi
5281
5282 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5283
5284
5285
5286
5287
5288
5289
5290
5291
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
5294 do
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
5300 else
5301   cat >conftest.$ac_ext <<_ACEOF
5302 /* confdefs.h.  */
5303 _ACEOF
5304 cat confdefs.h >>conftest.$ac_ext
5305 cat >>conftest.$ac_ext <<_ACEOF
5306 /* end confdefs.h.  */
5307 $ac_includes_default
5308
5309 #include <$ac_header>
5310 _ACEOF
5311 rm -f conftest.$ac_objext
5312 if { (ac_try="$ac_compile"
5313 case "(($ac_try" in
5314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5315   *) ac_try_echo=$ac_try;;
5316 esac
5317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5318   (eval "$ac_compile") 2>conftest.er1
5319   ac_status=$?
5320   grep -v '^ *+' conftest.er1 >conftest.err
5321   rm -f conftest.er1
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"
5329 else
5330   echo "$as_me: failed program was:" >&5
5331 sed 's/^/| /' conftest.$ac_ext >&5
5332
5333         eval "$as_ac_Header=no"
5334 fi
5335
5336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5337 fi
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
5344 _ACEOF
5345
5346 fi
5347
5348 done
5349
5350
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
5355 else
5356   cat >conftest.$ac_ext <<_ACEOF
5357 /* confdefs.h.  */
5358 _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_;
5364 int
5365 main ()
5366 {
5367 if ((ac__type_new_ *) 0)
5368   return 0;
5369 if (sizeof (ac__type_new_))
5370   return 0;
5371   ;
5372   return 0;
5373 }
5374 _ACEOF
5375 rm -f conftest.$ac_objext
5376 if { (ac_try="$ac_compile"
5377 case "(($ac_try" in
5378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5379   *) ac_try_echo=$ac_try;;
5380 esac
5381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5382   (eval "$ac_compile") 2>conftest.er1
5383   ac_status=$?
5384   grep -v '^ *+' conftest.er1 >conftest.err
5385   rm -f conftest.er1
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
5393 else
5394   echo "$as_me: failed program was:" >&5
5395 sed 's/^/| /' conftest.$ac_ext >&5
5396
5397         ac_cv_type_size_t=no
5398 fi
5399
5400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5401 fi
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
5405   :
5406 else
5407
5408 cat >>confdefs.h <<_ACEOF
5409 #define size_t unsigned int
5410 _ACEOF
5411
5412 fi
5413
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
5418 else
5419   cat >conftest.$ac_ext <<_ACEOF
5420 /* confdefs.h.  */
5421 _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>
5427 #include <time.h>
5428
5429 int
5430 main ()
5431 {
5432 if ((struct tm *) 0)
5433 return 0;
5434   ;
5435   return 0;
5436 }
5437 _ACEOF
5438 rm -f conftest.$ac_objext
5439 if { (ac_try="$ac_compile"
5440 case "(($ac_try" in
5441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5442   *) ac_try_echo=$ac_try;;
5443 esac
5444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5445   (eval "$ac_compile") 2>conftest.er1
5446   ac_status=$?
5447   grep -v '^ *+' conftest.er1 >conftest.err
5448   rm -f conftest.er1
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
5456 else
5457   echo "$as_me: failed program was:" >&5
5458 sed 's/^/| /' conftest.$ac_ext >&5
5459
5460         ac_cv_header_time=no
5461 fi
5462
5463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5464 fi
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
5468
5469 cat >>confdefs.h <<\_ACEOF
5470 #define TIME_WITH_SYS_TIME 1
5471 _ACEOF
5472
5473 fi
5474
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
5480 else
5481   cat >conftest.$ac_ext <<_ACEOF
5482 /* confdefs.h.  */
5483 _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_;
5489 int
5490 main ()
5491 {
5492 if ((ac__type_new_ *) 0)
5493   return 0;
5494 if (sizeof (ac__type_new_))
5495   return 0;
5496   ;
5497   return 0;
5498 }
5499 _ACEOF
5500 rm -f conftest.$ac_objext
5501 if { (ac_try="$ac_compile"
5502 case "(($ac_try" in
5503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5504   *) ac_try_echo=$ac_try;;
5505 esac
5506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5507   (eval "$ac_compile") 2>conftest.er1
5508   ac_status=$?
5509   grep -v '^ *+' conftest.er1 >conftest.err
5510   rm -f conftest.er1
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
5517   ac_cv_type_long=yes
5518 else
5519   echo "$as_me: failed program was:" >&5
5520 sed 's/^/| /' conftest.$ac_ext >&5
5521
5522         ac_cv_type_long=no
5523 fi
5524
5525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5526 fi
5527 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5528 echo "${ECHO_T}$ac_cv_type_long" >&6; }
5529
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
5538 else
5539   if test "$cross_compiling" = yes; then
5540   # Depending upon the size, compute the lo and hi bounds.
5541 cat >conftest.$ac_ext <<_ACEOF
5542 /* confdefs.h.  */
5543 _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_;
5549 int
5550 main ()
5551 {
5552 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5553 test_array [0] = 0
5554
5555   ;
5556   return 0;
5557 }
5558 _ACEOF
5559 rm -f conftest.$ac_objext
5560 if { (ac_try="$ac_compile"
5561 case "(($ac_try" in
5562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5563   *) ac_try_echo=$ac_try;;
5564 esac
5565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5566   (eval "$ac_compile") 2>conftest.er1
5567   ac_status=$?
5568   grep -v '^ *+' conftest.er1 >conftest.err
5569   rm -f conftest.er1
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
5576   ac_lo=0 ac_mid=0
5577   while :; do
5578     cat >conftest.$ac_ext <<_ACEOF
5579 /* confdefs.h.  */
5580 _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_;
5586 int
5587 main ()
5588 {
5589 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5590 test_array [0] = 0
5591
5592   ;
5593   return 0;
5594 }
5595 _ACEOF
5596 rm -f conftest.$ac_objext
5597 if { (ac_try="$ac_compile"
5598 case "(($ac_try" in
5599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5600   *) ac_try_echo=$ac_try;;
5601 esac
5602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5603   (eval "$ac_compile") 2>conftest.er1
5604   ac_status=$?
5605   grep -v '^ *+' conftest.er1 >conftest.err
5606   rm -f conftest.er1
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
5614 else
5615   echo "$as_me: failed program was:" >&5
5616 sed 's/^/| /' conftest.$ac_ext >&5
5617
5618         ac_lo=`expr $ac_mid + 1`
5619                         if test $ac_lo -le $ac_mid; then
5620                           ac_lo= ac_hi=
5621                           break
5622                         fi
5623                         ac_mid=`expr 2 '*' $ac_mid + 1`
5624 fi
5625
5626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5627   done
5628 else
5629   echo "$as_me: failed program was:" >&5
5630 sed 's/^/| /' conftest.$ac_ext >&5
5631
5632         cat >conftest.$ac_ext <<_ACEOF
5633 /* confdefs.h.  */
5634 _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_;
5640 int
5641 main ()
5642 {
5643 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5644 test_array [0] = 0
5645
5646   ;
5647   return 0;
5648 }
5649 _ACEOF
5650 rm -f conftest.$ac_objext
5651 if { (ac_try="$ac_compile"
5652 case "(($ac_try" in
5653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5654   *) ac_try_echo=$ac_try;;
5655 esac
5656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5657   (eval "$ac_compile") 2>conftest.er1
5658   ac_status=$?
5659   grep -v '^ *+' conftest.er1 >conftest.err
5660   rm -f conftest.er1
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
5667   ac_hi=-1 ac_mid=-1
5668   while :; do
5669     cat >conftest.$ac_ext <<_ACEOF
5670 /* confdefs.h.  */
5671 _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_;
5677 int
5678 main ()
5679 {
5680 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5681 test_array [0] = 0
5682
5683   ;
5684   return 0;
5685 }
5686 _ACEOF
5687 rm -f conftest.$ac_objext
5688 if { (ac_try="$ac_compile"
5689 case "(($ac_try" in
5690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5691   *) ac_try_echo=$ac_try;;
5692 esac
5693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5694   (eval "$ac_compile") 2>conftest.er1
5695   ac_status=$?
5696   grep -v '^ *+' conftest.er1 >conftest.err
5697   rm -f conftest.er1
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
5705 else
5706   echo "$as_me: failed program was:" >&5
5707 sed 's/^/| /' conftest.$ac_ext >&5
5708
5709         ac_hi=`expr '(' $ac_mid ')' - 1`
5710                         if test $ac_mid -le $ac_hi; then
5711                           ac_lo= ac_hi=
5712                           break
5713                         fi
5714                         ac_mid=`expr 2 '*' $ac_mid`
5715 fi
5716
5717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5718   done
5719 else
5720   echo "$as_me: failed program was:" >&5
5721 sed 's/^/| /' conftest.$ac_ext >&5
5722
5723         ac_lo= ac_hi=
5724 fi
5725
5726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5727 fi
5728
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
5734 /* confdefs.h.  */
5735 _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_;
5741 int
5742 main ()
5743 {
5744 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5745 test_array [0] = 0
5746
5747   ;
5748   return 0;
5749 }
5750 _ACEOF
5751 rm -f conftest.$ac_objext
5752 if { (ac_try="$ac_compile"
5753 case "(($ac_try" in
5754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5755   *) ac_try_echo=$ac_try;;
5756 esac
5757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5758   (eval "$ac_compile") 2>conftest.er1
5759   ac_status=$?
5760   grep -v '^ *+' conftest.er1 >conftest.err
5761   rm -f conftest.er1
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
5768   ac_hi=$ac_mid
5769 else
5770   echo "$as_me: failed program was:" >&5
5771 sed 's/^/| /' conftest.$ac_ext >&5
5772
5773         ac_lo=`expr '(' $ac_mid ')' + 1`
5774 fi
5775
5776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5777 done
5778 case $ac_lo in
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; }; }
5786    else
5787      ac_cv_sizeof_long=0
5788    fi ;;
5789 esac
5790 else
5791   cat >conftest.$ac_ext <<_ACEOF
5792 /* confdefs.h.  */
5793 _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_)); }
5801 #include <stdio.h>
5802 #include <stdlib.h>
5803 int
5804 main ()
5805 {
5806
5807   FILE *f = fopen ("conftest.val", "w");
5808   if (! f)
5809     return 1;
5810   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5811     {
5812       long int i = longval ();
5813       if (i != ((long int) (sizeof (ac__type_sizeof_))))
5814         return 1;
5815       fprintf (f, "%ld\n", i);
5816     }
5817   else
5818     {
5819       unsigned long int i = ulongval ();
5820       if (i != ((long int) (sizeof (ac__type_sizeof_))))
5821         return 1;
5822       fprintf (f, "%lu\n", i);
5823     }
5824   return ferror (f) || fclose (f) != 0;
5825
5826   ;
5827   return 0;
5828 }
5829 _ACEOF
5830 rm -f conftest$ac_exeext
5831 if { (ac_try="$ac_link"
5832 case "(($ac_try" in
5833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5834   *) ac_try_echo=$ac_try;;
5835 esac
5836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5837   (eval "$ac_link") 2>&5
5838   ac_status=$?
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;;
5844 esac
5845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5846   (eval "$ac_try") 2>&5
5847   ac_status=$?
5848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849   (exit $ac_status); }; }; then
5850   ac_cv_sizeof_long=`cat conftest.val`
5851 else
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
5855
5856 ( exit $ac_status )
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; }; }
5863    else
5864      ac_cv_sizeof_long=0
5865    fi
5866 fi
5867 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5868 fi
5869 rm -f conftest.val
5870 fi
5871 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5872 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
5873
5874
5875
5876 cat >>confdefs.h <<_ACEOF
5877 #define SIZEOF_LONG $ac_cv_sizeof_long
5878 _ACEOF
5879
5880
5881
5882
5883
5884
5885
5886 for ac_header in openssl/blowfish.h openssl/des.h openssl/cast.h openssl/aes.h
5887 do
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
5894 fi
5895 ac_res=`eval echo '${'$as_ac_Header'}'`
5896                { echo "$as_me:$LINENO: result: $ac_res" >&5
5897 echo "${ECHO_T}$ac_res" >&6; }
5898 else
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
5903 /* confdefs.h.  */
5904 _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>
5910 _ACEOF
5911 rm -f conftest.$ac_objext
5912 if { (ac_try="$ac_compile"
5913 case "(($ac_try" in
5914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5915   *) ac_try_echo=$ac_try;;
5916 esac
5917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5918   (eval "$ac_compile") 2>conftest.er1
5919   ac_status=$?
5920   grep -v '^ *+' conftest.er1 >conftest.err
5921   rm -f conftest.er1
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
5929 else
5930   echo "$as_me: failed program was:" >&5
5931 sed 's/^/| /' conftest.$ac_ext >&5
5932
5933         ac_header_compiler=no
5934 fi
5935
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; }
5939
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
5944 /* confdefs.h.  */
5945 _ACEOF
5946 cat confdefs.h >>conftest.$ac_ext
5947 cat >>conftest.$ac_ext <<_ACEOF
5948 /* end confdefs.h.  */
5949 #include <$ac_header>
5950 _ACEOF
5951 if { (ac_try="$ac_cpp conftest.$ac_ext"
5952 case "(($ac_try" in
5953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5954   *) ac_try_echo=$ac_try;;
5955 esac
5956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5957   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5958   ac_status=$?
5959   grep -v '^ *+' conftest.er1 >conftest.err
5960   rm -f conftest.er1
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
5966        }; then
5967   ac_header_preproc=yes
5968 else
5969   echo "$as_me: failed program was:" >&5
5970 sed 's/^/| /' conftest.$ac_ext >&5
5971
5972   ac_header_preproc=no
5973 fi
5974
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; }
5978
5979 # So?  What about this header?
5980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5981   yes:no: )
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
5987     ;;
5988   no: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;}
6001     ( cat <<\_ASBOX
6002 ## ----------------------------------------------- ##
6003 ## Report this to nettle-bugs@lists.lysator.liu.se ##
6004 ## ----------------------------------------------- ##
6005 _ASBOX
6006      ) | sed "s/^/$as_me: WARNING:     /" >&2
6007     ;;
6008 esac
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
6013 else
6014   eval "$as_ac_Header=\$ac_header_preproc"
6015 fi
6016 ac_res=`eval echo '${'$as_ac_Header'}'`
6017                { echo "$as_me:$LINENO: result: $ac_res" >&5
6018 echo "${ECHO_T}$ac_res" >&6; }
6019
6020 fi
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
6024 _ACEOF
6025
6026 else
6027   enable_openssl=no
6028  break
6029 fi
6030
6031 done
6032
6033
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
6040 else
6041   cat >conftest.$ac_ext <<_ACEOF
6042 /* confdefs.h.  */
6043 _ACEOF
6044 cat confdefs.h >>conftest.$ac_ext
6045 cat >>conftest.$ac_ext <<_ACEOF
6046 /* end confdefs.h.  */
6047 #include <alloca.h>
6048 int
6049 main ()
6050 {
6051 char *p = (char *) alloca (2 * sizeof (int));
6052                           if (p) return 0;
6053   ;
6054   return 0;
6055 }
6056 _ACEOF
6057 rm -f conftest.$ac_objext conftest$ac_exeext
6058 if { (ac_try="$ac_link"
6059 case "(($ac_try" in
6060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6061   *) ac_try_echo=$ac_try;;
6062 esac
6063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6064   (eval "$ac_link") 2>conftest.er1
6065   ac_status=$?
6066   grep -v '^ *+' conftest.er1 >conftest.err
6067   rm -f conftest.er1
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
6076 else
6077   echo "$as_me: failed program was:" >&5
6078 sed 's/^/| /' conftest.$ac_ext >&5
6079
6080         ac_cv_working_alloca_h=no
6081 fi
6082
6083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6084       conftest$ac_exeext conftest.$ac_ext
6085 fi
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
6089
6090 cat >>confdefs.h <<\_ACEOF
6091 #define HAVE_ALLOCA_H 1
6092 _ACEOF
6093
6094 fi
6095
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
6100 else
6101   cat >conftest.$ac_ext <<_ACEOF
6102 /* confdefs.h.  */
6103 _ACEOF
6104 cat confdefs.h >>conftest.$ac_ext
6105 cat >>conftest.$ac_ext <<_ACEOF
6106 /* end confdefs.h.  */
6107 #ifdef __GNUC__
6108 # define alloca __builtin_alloca
6109 #else
6110 # ifdef _MSC_VER
6111 #  include <malloc.h>
6112 #  define alloca _alloca
6113 # else
6114 #  ifdef HAVE_ALLOCA_H
6115 #   include <alloca.h>
6116 #  else
6117 #   ifdef _AIX
6118  #pragma alloca
6119 #   else
6120 #    ifndef alloca /* predefined by HP cc +Olibcalls */
6121 char *alloca ();
6122 #    endif
6123 #   endif
6124 #  endif
6125 # endif
6126 #endif
6127
6128 int
6129 main ()
6130 {
6131 char *p = (char *) alloca (1);
6132                                     if (p) return 0;
6133   ;
6134   return 0;
6135 }
6136 _ACEOF
6137 rm -f conftest.$ac_objext conftest$ac_exeext
6138 if { (ac_try="$ac_link"
6139 case "(($ac_try" in
6140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6141   *) ac_try_echo=$ac_try;;
6142 esac
6143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6144   (eval "$ac_link") 2>conftest.er1
6145   ac_status=$?
6146   grep -v '^ *+' conftest.er1 >conftest.err
6147   rm -f conftest.er1
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
6156 else
6157   echo "$as_me: failed program was:" >&5
6158 sed 's/^/| /' conftest.$ac_ext >&5
6159
6160         ac_cv_func_alloca_works=no
6161 fi
6162
6163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6164       conftest$ac_exeext conftest.$ac_ext
6165 fi
6166 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6167 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
6168
6169 if test $ac_cv_func_alloca_works = yes; then
6170
6171 cat >>confdefs.h <<\_ACEOF
6172 #define HAVE_ALLOCA 1
6173 _ACEOF
6174
6175 else
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.
6180
6181 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6182
6183 cat >>confdefs.h <<\_ACEOF
6184 #define C_ALLOCA 1
6185 _ACEOF
6186
6187
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
6192 else
6193   cat >conftest.$ac_ext <<_ACEOF
6194 /* confdefs.h.  */
6195 _ACEOF
6196 cat confdefs.h >>conftest.$ac_ext
6197 cat >>conftest.$ac_ext <<_ACEOF
6198 /* end confdefs.h.  */
6199 #if defined CRAY && ! defined CRAY2
6200 webecray
6201 #else
6202 wenotbecray
6203 #endif
6204
6205 _ACEOF
6206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6207   $EGREP "webecray" >/dev/null 2>&1; then
6208   ac_cv_os_cray=yes
6209 else
6210   ac_cv_os_cray=no
6211 fi
6212 rm -f conftest*
6213
6214 fi
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
6224 else
6225   cat >conftest.$ac_ext <<_ACEOF
6226 /* confdefs.h.  */
6227 _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
6234
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.  */
6239
6240 #ifdef __STDC__
6241 # include <limits.h>
6242 #else
6243 # include <assert.h>
6244 #endif
6245
6246 #undef $ac_func
6247
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.  */
6251 #ifdef __cplusplus
6252 extern "C"
6253 #endif
6254 char $ac_func ();
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
6259 choke me
6260 #endif
6261
6262 int
6263 main ()
6264 {
6265 return $ac_func ();
6266   ;
6267   return 0;
6268 }
6269 _ACEOF
6270 rm -f conftest.$ac_objext conftest$ac_exeext
6271 if { (ac_try="$ac_link"
6272 case "(($ac_try" in
6273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6274   *) ac_try_echo=$ac_try;;
6275 esac
6276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6277   (eval "$ac_link") 2>conftest.er1
6278   ac_status=$?
6279   grep -v '^ *+' conftest.er1 >conftest.err
6280   rm -f conftest.er1
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"
6289 else
6290   echo "$as_me: failed program was:" >&5
6291 sed 's/^/| /' conftest.$ac_ext >&5
6292
6293         eval "$as_ac_var=no"
6294 fi
6295
6296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6297       conftest$ac_exeext conftest.$ac_ext
6298 fi
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
6303
6304 cat >>confdefs.h <<_ACEOF
6305 #define CRAY_STACKSEG_END $ac_func
6306 _ACEOF
6307
6308     break
6309 fi
6310
6311   done
6312 fi
6313
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
6318 else
6319   if test "$cross_compiling" = yes; then
6320   ac_cv_c_stack_direction=0
6321 else
6322   cat >conftest.$ac_ext <<_ACEOF
6323 /* confdefs.h.  */
6324 _ACEOF
6325 cat confdefs.h >>conftest.$ac_ext
6326 cat >>conftest.$ac_ext <<_ACEOF
6327 /* end confdefs.h.  */
6328 $ac_includes_default
6329 int
6330 find_stack_direction ()
6331 {
6332   static char *addr = 0;
6333   auto char dummy;
6334   if (addr == 0)
6335     {
6336       addr = &dummy;
6337       return find_stack_direction ();
6338     }
6339   else
6340     return (&dummy > addr) ? 1 : -1;
6341 }
6342
6343 int
6344 main ()
6345 {
6346   return find_stack_direction () < 0;
6347 }
6348 _ACEOF
6349 rm -f conftest$ac_exeext
6350 if { (ac_try="$ac_link"
6351 case "(($ac_try" in
6352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6353   *) ac_try_echo=$ac_try;;
6354 esac
6355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6356   (eval "$ac_link") 2>&5
6357   ac_status=$?
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;;
6363 esac
6364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6365   (eval "$ac_try") 2>&5
6366   ac_status=$?
6367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368   (exit $ac_status); }; }; then
6369   ac_cv_c_stack_direction=1
6370 else
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
6374
6375 ( exit $ac_status )
6376 ac_cv_c_stack_direction=-1
6377 fi
6378 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6379 fi
6380
6381
6382 fi
6383 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6384 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
6385
6386 cat >>confdefs.h <<_ACEOF
6387 #define STACK_DIRECTION $ac_cv_c_stack_direction
6388 _ACEOF
6389
6390
6391 fi
6392
6393
6394 for ac_header in malloc.h
6395 do
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
6402 fi
6403 ac_res=`eval echo '${'$as_ac_Header'}'`
6404                { echo "$as_me:$LINENO: result: $ac_res" >&5
6405 echo "${ECHO_T}$ac_res" >&6; }
6406 else
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
6411 /* confdefs.h.  */
6412 _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>
6418 _ACEOF
6419 rm -f conftest.$ac_objext
6420 if { (ac_try="$ac_compile"
6421 case "(($ac_try" in
6422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6423   *) ac_try_echo=$ac_try;;
6424 esac
6425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6426   (eval "$ac_compile") 2>conftest.er1
6427   ac_status=$?
6428   grep -v '^ *+' conftest.er1 >conftest.err
6429   rm -f conftest.er1
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
6437 else
6438   echo "$as_me: failed program was:" >&5
6439 sed 's/^/| /' conftest.$ac_ext >&5
6440
6441         ac_header_compiler=no
6442 fi
6443
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; }
6447
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
6452 /* confdefs.h.  */
6453 _ACEOF
6454 cat confdefs.h >>conftest.$ac_ext
6455 cat >>conftest.$ac_ext <<_ACEOF
6456 /* end confdefs.h.  */
6457 #include <$ac_header>
6458 _ACEOF
6459 if { (ac_try="$ac_cpp conftest.$ac_ext"
6460 case "(($ac_try" in
6461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6462   *) ac_try_echo=$ac_try;;
6463 esac
6464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6465   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6466   ac_status=$?
6467   grep -v '^ *+' conftest.er1 >conftest.err
6468   rm -f conftest.er1
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
6474        }; then
6475   ac_header_preproc=yes
6476 else
6477   echo "$as_me: failed program was:" >&5
6478 sed 's/^/| /' conftest.$ac_ext >&5
6479
6480   ac_header_preproc=no
6481 fi
6482
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; }
6486
6487 # So?  What about this header?
6488 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6489   yes:no: )
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
6495     ;;
6496   no: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;}
6509     ( cat <<\_ASBOX
6510 ## ----------------------------------------------- ##
6511 ## Report this to nettle-bugs@lists.lysator.liu.se ##
6512 ## ----------------------------------------------- ##
6513 _ASBOX
6514      ) | sed "s/^/$as_me: WARNING:     /" >&2
6515     ;;
6516 esac
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
6521 else
6522   eval "$as_ac_Header=\$ac_header_preproc"
6523 fi
6524 ac_res=`eval echo '${'$as_ac_Header'}'`
6525                { echo "$as_me:$LINENO: result: $ac_res" >&5
6526 echo "${ECHO_T}$ac_res" >&6; }
6527
6528 fi
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
6532 _ACEOF
6533
6534 fi
6535
6536 done
6537
6538
6539
6540
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
6546 else
6547   # See if sys/param.h defines the BYTE_ORDER macro.
6548 cat >conftest.$ac_ext <<_ACEOF
6549 /* confdefs.h.  */
6550 _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>
6556
6557 int
6558 main ()
6559 {
6560 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
6561         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
6562  bogus endian macros
6563 #endif
6564
6565   ;
6566   return 0;
6567 }
6568 _ACEOF
6569 rm -f conftest.$ac_objext
6570 if { (ac_try="$ac_compile"
6571 case "(($ac_try" in
6572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6573   *) ac_try_echo=$ac_try;;
6574 esac
6575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6576   (eval "$ac_compile") 2>conftest.er1
6577   ac_status=$?
6578   grep -v '^ *+' conftest.er1 >conftest.err
6579   rm -f conftest.er1
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
6588 /* confdefs.h.  */
6589 _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>
6595
6596 int
6597 main ()
6598 {
6599 #if BYTE_ORDER != BIG_ENDIAN
6600  not big endian
6601 #endif
6602
6603   ;
6604   return 0;
6605 }
6606 _ACEOF
6607 rm -f conftest.$ac_objext
6608 if { (ac_try="$ac_compile"
6609 case "(($ac_try" in
6610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6611   *) ac_try_echo=$ac_try;;
6612 esac
6613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6614   (eval "$ac_compile") 2>conftest.er1
6615   ac_status=$?
6616   grep -v '^ *+' conftest.er1 >conftest.err
6617   rm -f conftest.er1
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
6625 else
6626   echo "$as_me: failed program was:" >&5
6627 sed 's/^/| /' conftest.$ac_ext >&5
6628
6629         ac_cv_c_bigendian=no
6630 fi
6631
6632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6633 else
6634   echo "$as_me: failed program was:" >&5
6635 sed 's/^/| /' conftest.$ac_ext >&5
6636
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
6642 /* confdefs.h.  */
6643 _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; }
6653 int
6654 main ()
6655 {
6656  _ascii (); _ebcdic ();
6657   ;
6658   return 0;
6659 }
6660 _ACEOF
6661 rm -f conftest.$ac_objext
6662 if { (ac_try="$ac_compile"
6663 case "(($ac_try" in
6664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6665   *) ac_try_echo=$ac_try;;
6666 esac
6667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6668   (eval "$ac_compile") 2>conftest.er1
6669   ac_status=$?
6670   grep -v '^ *+' conftest.er1 >conftest.err
6671   rm -f conftest.er1
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
6680 fi
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
6684   else
6685     # finding both strings is unlikely to happen, but who knows?
6686     ac_cv_c_bigendian=unknown
6687   fi
6688 fi
6689 else
6690   echo "$as_me: failed program was:" >&5
6691 sed 's/^/| /' conftest.$ac_ext >&5
6692
6693
6694 fi
6695
6696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6697 else
6698   cat >conftest.$ac_ext <<_ACEOF
6699 /* confdefs.h.  */
6700 _ACEOF
6701 cat confdefs.h >>conftest.$ac_ext
6702 cat >>conftest.$ac_ext <<_ACEOF
6703 /* end confdefs.h.  */
6704 $ac_includes_default
6705 int
6706 main ()
6707 {
6708
6709   /* Are we little or big endian?  From Harbison&Steele.  */
6710   union
6711   {
6712     long int l;
6713     char c[sizeof (long int)];
6714   } u;
6715   u.l = 1;
6716   return u.c[sizeof (long int) - 1] == 1;
6717
6718   ;
6719   return 0;
6720 }
6721 _ACEOF
6722 rm -f conftest$ac_exeext
6723 if { (ac_try="$ac_link"
6724 case "(($ac_try" in
6725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6726   *) ac_try_echo=$ac_try;;
6727 esac
6728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6729   (eval "$ac_link") 2>&5
6730   ac_status=$?
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;;
6736 esac
6737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6738   (eval "$ac_try") 2>&5
6739   ac_status=$?
6740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741   (exit $ac_status); }; }; then
6742   ac_cv_c_bigendian=no
6743 else
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
6747
6748 ( exit $ac_status )
6749 ac_cv_c_bigendian=yes
6750 fi
6751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6752 fi
6753
6754
6755 fi
6756
6757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6758 fi
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
6762   yes)
6763
6764 cat >>confdefs.h <<\_ACEOF
6765 #define WORDS_BIGENDIAN 1
6766 _ACEOF
6767  ;;
6768   no)
6769      ;;
6770   *)
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; }; } ;;
6776 esac
6777
6778
6779 for ac_func in memxor
6780 do
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
6786 else
6787   cat >conftest.$ac_ext <<_ACEOF
6788 /* confdefs.h.  */
6789 _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
6796
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.  */
6801
6802 #ifdef __STDC__
6803 # include <limits.h>
6804 #else
6805 # include <assert.h>
6806 #endif
6807
6808 #undef $ac_func
6809
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.  */
6813 #ifdef __cplusplus
6814 extern "C"
6815 #endif
6816 char $ac_func ();
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
6821 choke me
6822 #endif
6823
6824 int
6825 main ()
6826 {
6827 return $ac_func ();
6828   ;
6829   return 0;
6830 }
6831 _ACEOF
6832 rm -f conftest.$ac_objext conftest$ac_exeext
6833 if { (ac_try="$ac_link"
6834 case "(($ac_try" in
6835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6836   *) ac_try_echo=$ac_try;;
6837 esac
6838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6839   (eval "$ac_link") 2>conftest.er1
6840   ac_status=$?
6841   grep -v '^ *+' conftest.er1 >conftest.err
6842   rm -f conftest.er1
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"
6851 else
6852   echo "$as_me: failed program was:" >&5
6853 sed 's/^/| /' conftest.$ac_ext >&5
6854
6855         eval "$as_ac_var=no"
6856 fi
6857
6858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6859       conftest$ac_exeext conftest.$ac_ext
6860 fi
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
6867 _ACEOF
6868
6869 else
6870   case " $LIBOBJS " in
6871   *" $ac_func.$ac_objext "* ) ;;
6872   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6873  ;;
6874 esac
6875
6876 fi
6877 done
6878
6879
6880
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
6885 else
6886    cat >conftest.$ac_ext <<_ACEOF
6887 /* confdefs.h.  */
6888 _ACEOF
6889 cat confdefs.h >>conftest.$ac_ext
6890 cat >>conftest.$ac_ext <<_ACEOF
6891 /* end confdefs.h.  */
6892
6893 #include <stdlib.h>
6894
6895 static void foo(void) __attribute__ ((noreturn));
6896
6897 static void __attribute__ ((noreturn))
6898 foo(void)
6899 {
6900   exit(1);
6901 }
6902
6903 int
6904 main ()
6905 {
6906
6907   ;
6908   return 0;
6909 }
6910 _ACEOF
6911 rm -f conftest.$ac_objext
6912 if { (ac_try="$ac_compile"
6913 case "(($ac_try" in
6914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6915   *) ac_try_echo=$ac_try;;
6916 esac
6917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6918   (eval "$ac_compile") 2>conftest.er1
6919   ac_status=$?
6920   grep -v '^ *+' conftest.er1 >conftest.err
6921   rm -f conftest.er1
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
6929 else
6930   echo "$as_me: failed program was:" >&5
6931 sed 's/^/| /' conftest.$ac_ext >&5
6932
6933         lsh_cv_c_attribute=no
6934 fi
6935
6936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6937 fi
6938 { echo "$as_me:$LINENO: result: $lsh_cv_c_attribute" >&5
6939 echo "${ECHO_T}$lsh_cv_c_attribute" >&6; }
6940
6941
6942
6943 if test "x$lsh_cv_c_attribute" = "xyes"; then
6944   cat >>confdefs.h <<\_ACEOF
6945 #define HAVE_GCC_ATTRIBUTE 1
6946 _ACEOF
6947
6948 fi
6949
6950
6951
6952
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
6963 else
6964
6965 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
6966 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
6967 old_CFLAGS="$CFLAGS"     ; CFLAGS=""
6968 cat >conftest.$ac_ext <<_ACEOF
6969 /* confdefs.h.  */
6970 _ACEOF
6971 cat confdefs.h >>conftest.$ac_ext
6972 cat >>conftest.$ac_ext <<_ACEOF
6973 /* end confdefs.h.  */
6974 #include <stdint.h>
6975 int
6976 main ()
6977 {
6978 int_least32_t v = 0;
6979   ;
6980   return 0;
6981 }
6982 _ACEOF
6983 rm -f conftest.$ac_objext
6984 if { (ac_try="$ac_compile"
6985 case "(($ac_try" in
6986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6987   *) ac_try_echo=$ac_try;;
6988 esac
6989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6990   (eval "$ac_compile") 2>conftest.er1
6991   ac_status=$?
6992   grep -v '^ *+' conftest.er1 >conftest.err
6993   rm -f conftest.er1
6994   cat conftest.err >&5
6995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996   (exit $ac_status); } && {
6997          test -z "$ac_c_werror_flag" ||
6998          test ! -s conftest.err
6999        } && test -s conftest.$ac_objext; then
7000   ac_cv_stdint_result="(assuming C99 compatible system)"
7001  ac_cv_header_stdint_t="stdint.h";
7002 else
7003   echo "$as_me: failed program was:" >&5
7004 sed 's/^/| /' conftest.$ac_ext >&5
7005
7006         ac_cv_header_stdint_t=""
7007 fi
7008
7009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7010 CXXFLAGS="$old_CXXFLAGS"
7011 CPPFLAGS="$old_CPPFLAGS"
7012 CFLAGS="$old_CFLAGS"
7013 fi
7014
7015
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; }
7026 else
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; }
7030 fi
7031
7032 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
7033
7034
7035 inttype_headers=`echo sys/types.h | sed -e 's/,/ /g'`
7036
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
7042 else
7043
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
7054 else
7055   cat >conftest.$ac_ext <<_ACEOF
7056 /* confdefs.h.  */
7057 _ACEOF
7058 cat confdefs.h >>conftest.$ac_ext
7059 cat >>conftest.$ac_ext <<_ACEOF
7060 /* end confdefs.h.  */
7061 #include <$i>
7062
7063 typedef uintptr_t ac__type_new_;
7064 int
7065 main ()
7066 {
7067 if ((ac__type_new_ *) 0)
7068   return 0;
7069 if (sizeof (ac__type_new_))
7070   return 0;
7071   ;
7072   return 0;
7073 }
7074 _ACEOF
7075 rm -f conftest.$ac_objext
7076 if { (ac_try="$ac_compile"
7077 case "(($ac_try" in
7078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7079   *) ac_try_echo=$ac_try;;
7080 esac
7081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7082   (eval "$ac_compile") 2>conftest.er1
7083   ac_status=$?
7084   grep -v '^ *+' conftest.er1 >conftest.err
7085   rm -f conftest.er1
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
7093 else
7094   echo "$as_me: failed program was:" >&5
7095 sed 's/^/| /' conftest.$ac_ext >&5
7096
7097         ac_cv_type_uintptr_t=no
7098 fi
7099
7100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7101 fi
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
7106 else
7107        continue
7108 fi
7109
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
7114 else
7115   cat >conftest.$ac_ext <<_ACEOF
7116 /* confdefs.h.  */
7117 _ACEOF
7118 cat confdefs.h >>conftest.$ac_ext
7119 cat >>conftest.$ac_ext <<_ACEOF
7120 /* end confdefs.h.  */
7121 #include<$i>
7122
7123 typedef uint64_t ac__type_new_;
7124 int
7125 main ()
7126 {
7127 if ((ac__type_new_ *) 0)
7128   return 0;
7129 if (sizeof (ac__type_new_))
7130   return 0;
7131   ;
7132   return 0;
7133 }
7134 _ACEOF
7135 rm -f conftest.$ac_objext
7136 if { (ac_try="$ac_compile"
7137 case "(($ac_try" in
7138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7139   *) ac_try_echo=$ac_try;;
7140 esac
7141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7142   (eval "$ac_compile") 2>conftest.er1
7143   ac_status=$?
7144   grep -v '^ *+' conftest.er1 >conftest.err
7145   rm -f conftest.er1
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
7153 else
7154   echo "$as_me: failed program was:" >&5
7155 sed 's/^/| /' conftest.$ac_ext >&5
7156
7157         ac_cv_type_uint64_t=no
7158 fi
7159
7160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7161 fi
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
7165   and64="/uint64_t"
7166 else
7167   and64=""
7168 fi
7169
7170    ac_cv_stdint_result="(seen uintptr_t$and64 in $i)"
7171    break;
7172   done
7173   { echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
7174 echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6; }
7175
7176 fi
7177 { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_x" >&5
7178 echo "${ECHO_T}$ac_cv_header_stdint_x" >&6; }
7179
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
7185 else
7186
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
7197 else
7198   cat >conftest.$ac_ext <<_ACEOF
7199 /* confdefs.h.  */
7200 _ACEOF
7201 cat confdefs.h >>conftest.$ac_ext
7202 cat >>conftest.$ac_ext <<_ACEOF
7203 /* end confdefs.h.  */
7204 #include <$i>
7205
7206 typedef uint32_t ac__type_new_;
7207 int
7208 main ()
7209 {
7210 if ((ac__type_new_ *) 0)
7211   return 0;
7212 if (sizeof (ac__type_new_))
7213   return 0;
7214   ;
7215   return 0;
7216 }
7217 _ACEOF
7218 rm -f conftest.$ac_objext
7219 if { (ac_try="$ac_compile"
7220 case "(($ac_try" in
7221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7222   *) ac_try_echo=$ac_try;;
7223 esac
7224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7225   (eval "$ac_compile") 2>conftest.er1
7226   ac_status=$?
7227   grep -v '^ *+' conftest.er1 >conftest.err
7228   rm -f conftest.er1
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
7236 else
7237   echo "$as_me: failed program was:" >&5
7238 sed 's/^/| /' conftest.$ac_ext >&5
7239
7240         ac_cv_type_uint32_t=no
7241 fi
7242
7243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7244 fi
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
7249 else
7250        continue
7251 fi
7252
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
7257 else
7258   cat >conftest.$ac_ext <<_ACEOF
7259 /* confdefs.h.  */
7260 _ACEOF
7261 cat confdefs.h >>conftest.$ac_ext
7262 cat >>conftest.$ac_ext <<_ACEOF
7263 /* end confdefs.h.  */
7264 #include<$i>
7265
7266 typedef uint64_t ac__type_new_;
7267 int
7268 main ()
7269 {
7270 if ((ac__type_new_ *) 0)
7271   return 0;
7272 if (sizeof (ac__type_new_))
7273   return 0;
7274   ;
7275   return 0;
7276 }
7277 _ACEOF
7278 rm -f conftest.$ac_objext
7279 if { (ac_try="$ac_compile"
7280 case "(($ac_try" in
7281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7282   *) ac_try_echo=$ac_try;;
7283 esac
7284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7285   (eval "$ac_compile") 2>conftest.er1
7286   ac_status=$?
7287   grep -v '^ *+' conftest.er1 >conftest.err
7288   rm -f conftest.er1
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
7296 else
7297   echo "$as_me: failed program was:" >&5
7298 sed 's/^/| /' conftest.$ac_ext >&5
7299
7300         ac_cv_type_uint64_t=no
7301 fi
7302
7303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7304 fi
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
7308   and64="/uint64_t"
7309 else
7310   and64=""
7311 fi
7312
7313    ac_cv_stdint_result="(seen uint32_t$and64 in $i)"
7314    break;
7315   done
7316   { echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
7317 echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6; }
7318
7319 fi
7320 { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_o" >&5
7321 echo "${ECHO_T}$ac_cv_header_stdint_o" >&6; }
7322 fi
7323
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
7330 else
7331
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
7342 else
7343   cat >conftest.$ac_ext <<_ACEOF
7344 /* confdefs.h.  */
7345 _ACEOF
7346 cat confdefs.h >>conftest.$ac_ext
7347 cat >>conftest.$ac_ext <<_ACEOF
7348 /* end confdefs.h.  */
7349 #include <$i>
7350
7351 typedef u_int32_t ac__type_new_;
7352 int
7353 main ()
7354 {
7355 if ((ac__type_new_ *) 0)
7356   return 0;
7357 if (sizeof (ac__type_new_))
7358   return 0;
7359   ;
7360   return 0;
7361 }
7362 _ACEOF
7363 rm -f conftest.$ac_objext
7364 if { (ac_try="$ac_compile"
7365 case "(($ac_try" in
7366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7367   *) ac_try_echo=$ac_try;;
7368 esac
7369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7370   (eval "$ac_compile") 2>conftest.er1
7371   ac_status=$?
7372   grep -v '^ *+' conftest.er1 >conftest.err
7373   rm -f conftest.er1
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
7381 else
7382   echo "$as_me: failed program was:" >&5
7383 sed 's/^/| /' conftest.$ac_ext >&5
7384
7385         ac_cv_type_u_int32_t=no
7386 fi
7387
7388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7389 fi
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
7394 else
7395        continue
7396 fi
7397
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
7402 else
7403   cat >conftest.$ac_ext <<_ACEOF
7404 /* confdefs.h.  */
7405 _ACEOF
7406 cat confdefs.h >>conftest.$ac_ext
7407 cat >>conftest.$ac_ext <<_ACEOF
7408 /* end confdefs.h.  */
7409 #include<$i>
7410
7411 typedef u_int64_t ac__type_new_;
7412 int
7413 main ()
7414 {
7415 if ((ac__type_new_ *) 0)
7416   return 0;
7417 if (sizeof (ac__type_new_))
7418   return 0;
7419   ;
7420   return 0;
7421 }
7422 _ACEOF
7423 rm -f conftest.$ac_objext
7424 if { (ac_try="$ac_compile"
7425 case "(($ac_try" in
7426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7427   *) ac_try_echo=$ac_try;;
7428 esac
7429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7430   (eval "$ac_compile") 2>conftest.er1
7431   ac_status=$?
7432   grep -v '^ *+' conftest.er1 >conftest.err
7433   rm -f conftest.er1
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
7441 else
7442   echo "$as_me: failed program was:" >&5
7443 sed 's/^/| /' conftest.$ac_ext >&5
7444
7445         ac_cv_type_u_int64_t=no
7446 fi
7447
7448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7449 fi
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
7453   and64="/u_int64_t"
7454 else
7455   and64=""
7456 fi
7457
7458    ac_cv_stdint_result="(seen u_int32_t$and64 in $i)"
7459    break;
7460   done
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; }
7463
7464 fi
7465 { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_u" >&5
7466 echo "${ECHO_T}$ac_cv_header_stdint_u" >&6; }
7467 fi fi
7468
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
7478 else
7479   cat >conftest.$ac_ext <<_ACEOF
7480 /* confdefs.h.  */
7481 _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_;
7487 int
7488 main ()
7489 {
7490 if ((ac__type_new_ *) 0)
7491   return 0;
7492 if (sizeof (ac__type_new_))
7493   return 0;
7494   ;
7495   return 0;
7496 }
7497 _ACEOF
7498 rm -f conftest.$ac_objext
7499 if { (ac_try="$ac_compile"
7500 case "(($ac_try" in
7501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7502   *) ac_try_echo=$ac_try;;
7503 esac
7504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7505   (eval "$ac_compile") 2>conftest.er1
7506   ac_status=$?
7507   grep -v '^ *+' conftest.er1 >conftest.err
7508   rm -f conftest.er1
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
7515   ac_cv_type_char=yes
7516 else
7517   echo "$as_me: failed program was:" >&5
7518 sed 's/^/| /' conftest.$ac_ext >&5
7519
7520         ac_cv_type_char=no
7521 fi
7522
7523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7524 fi
7525 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
7526 echo "${ECHO_T}$ac_cv_type_char" >&6; }
7527
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
7536 else
7537   if test "$cross_compiling" = yes; then
7538   # Depending upon the size, compute the lo and hi bounds.
7539 cat >conftest.$ac_ext <<_ACEOF
7540 /* confdefs.h.  */
7541 _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_;
7547 int
7548 main ()
7549 {
7550 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7551 test_array [0] = 0
7552
7553   ;
7554   return 0;
7555 }
7556 _ACEOF
7557 rm -f conftest.$ac_objext
7558 if { (ac_try="$ac_compile"
7559 case "(($ac_try" in
7560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7561   *) ac_try_echo=$ac_try;;
7562 esac
7563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7564   (eval "$ac_compile") 2>conftest.er1
7565   ac_status=$?
7566   grep -v '^ *+' conftest.er1 >conftest.err
7567   rm -f conftest.er1
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
7574   ac_lo=0 ac_mid=0
7575   while :; do
7576     cat >conftest.$ac_ext <<_ACEOF
7577 /* confdefs.h.  */
7578 _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_;
7584 int
7585 main ()
7586 {
7587 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7588 test_array [0] = 0
7589
7590   ;
7591   return 0;
7592 }
7593 _ACEOF
7594 rm -f conftest.$ac_objext
7595 if { (ac_try="$ac_compile"
7596 case "(($ac_try" in
7597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7598   *) ac_try_echo=$ac_try;;
7599 esac
7600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7601   (eval "$ac_compile") 2>conftest.er1
7602   ac_status=$?
7603   grep -v '^ *+' conftest.er1 >conftest.err
7604   rm -f conftest.er1
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
7612 else
7613   echo "$as_me: failed program was:" >&5
7614 sed 's/^/| /' conftest.$ac_ext >&5
7615
7616         ac_lo=`expr $ac_mid + 1`
7617                         if test $ac_lo -le $ac_mid; then
7618                           ac_lo= ac_hi=
7619                           break
7620                         fi
7621                         ac_mid=`expr 2 '*' $ac_mid + 1`
7622 fi
7623
7624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7625   done
7626 else
7627   echo "$as_me: failed program was:" >&5
7628 sed 's/^/| /' conftest.$ac_ext >&5
7629
7630         cat >conftest.$ac_ext <<_ACEOF
7631 /* confdefs.h.  */
7632 _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_;
7638 int
7639 main ()
7640 {
7641 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7642 test_array [0] = 0
7643
7644   ;
7645   return 0;
7646 }
7647 _ACEOF
7648 rm -f conftest.$ac_objext
7649 if { (ac_try="$ac_compile"
7650 case "(($ac_try" in
7651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7652   *) ac_try_echo=$ac_try;;
7653 esac
7654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7655   (eval "$ac_compile") 2>conftest.er1
7656   ac_status=$?
7657   grep -v '^ *+' conftest.er1 >conftest.err
7658   rm -f conftest.er1
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
7665   ac_hi=-1 ac_mid=-1
7666   while :; do
7667     cat >conftest.$ac_ext <<_ACEOF
7668 /* confdefs.h.  */
7669 _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_;
7675 int
7676 main ()
7677 {
7678 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7679 test_array [0] = 0
7680
7681   ;
7682   return 0;
7683 }
7684 _ACEOF
7685 rm -f conftest.$ac_objext
7686 if { (ac_try="$ac_compile"
7687 case "(($ac_try" in
7688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7689   *) ac_try_echo=$ac_try;;
7690 esac
7691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7692   (eval "$ac_compile") 2>conftest.er1
7693   ac_status=$?
7694   grep -v '^ *+' conftest.er1 >conftest.err
7695   rm -f conftest.er1
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
7703 else
7704   echo "$as_me: failed program was:" >&5
7705 sed 's/^/| /' conftest.$ac_ext >&5
7706
7707         ac_hi=`expr '(' $ac_mid ')' - 1`
7708                         if test $ac_mid -le $ac_hi; then
7709                           ac_lo= ac_hi=
7710                           break
7711                         fi
7712                         ac_mid=`expr 2 '*' $ac_mid`
7713 fi
7714
7715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7716   done
7717 else
7718   echo "$as_me: failed program was:" >&5
7719 sed 's/^/| /' conftest.$ac_ext >&5
7720
7721         ac_lo= ac_hi=
7722 fi
7723
7724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7725 fi
7726
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
7732 /* confdefs.h.  */
7733 _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_;
7739 int
7740 main ()
7741 {
7742 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7743 test_array [0] = 0
7744
7745   ;
7746   return 0;
7747 }
7748 _ACEOF
7749 rm -f conftest.$ac_objext
7750 if { (ac_try="$ac_compile"
7751 case "(($ac_try" in
7752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7753   *) ac_try_echo=$ac_try;;
7754 esac
7755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7756   (eval "$ac_compile") 2>conftest.er1
7757   ac_status=$?
7758   grep -v '^ *+' conftest.er1 >conftest.err
7759   rm -f conftest.er1
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
7766   ac_hi=$ac_mid
7767 else
7768   echo "$as_me: failed program was:" >&5
7769 sed 's/^/| /' conftest.$ac_ext >&5
7770
7771         ac_lo=`expr '(' $ac_mid ')' + 1`
7772 fi
7773
7774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7775 done
7776 case $ac_lo in
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; }; }
7784    else
7785      ac_cv_sizeof_char=0
7786    fi ;;
7787 esac
7788 else
7789   cat >conftest.$ac_ext <<_ACEOF
7790 /* confdefs.h.  */
7791 _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_)); }
7799 #include <stdio.h>
7800 #include <stdlib.h>
7801 int
7802 main ()
7803 {
7804
7805   FILE *f = fopen ("conftest.val", "w");
7806   if (! f)
7807     return 1;
7808   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7809     {
7810       long int i = longval ();
7811       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7812         return 1;
7813       fprintf (f, "%ld\n", i);
7814     }
7815   else
7816     {
7817       unsigned long int i = ulongval ();
7818       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7819         return 1;
7820       fprintf (f, "%lu\n", i);
7821     }
7822   return ferror (f) || fclose (f) != 0;
7823
7824   ;
7825   return 0;
7826 }
7827 _ACEOF
7828 rm -f conftest$ac_exeext
7829 if { (ac_try="$ac_link"
7830 case "(($ac_try" in
7831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7832   *) ac_try_echo=$ac_try;;
7833 esac
7834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7835   (eval "$ac_link") 2>&5
7836   ac_status=$?
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;;
7842 esac
7843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7844   (eval "$ac_try") 2>&5
7845   ac_status=$?
7846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847   (exit $ac_status); }; }; then
7848   ac_cv_sizeof_char=`cat conftest.val`
7849 else
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
7853
7854 ( exit $ac_status )
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; }; }
7861    else
7862      ac_cv_sizeof_char=0
7863    fi
7864 fi
7865 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7866 fi
7867 rm -f conftest.val
7868 fi
7869 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
7870 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
7871
7872
7873
7874 cat >>confdefs.h <<_ACEOF
7875 #define SIZEOF_CHAR $ac_cv_sizeof_char
7876 _ACEOF
7877
7878
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
7883 else
7884   cat >conftest.$ac_ext <<_ACEOF
7885 /* confdefs.h.  */
7886 _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_;
7892 int
7893 main ()
7894 {
7895 if ((ac__type_new_ *) 0)
7896   return 0;
7897 if (sizeof (ac__type_new_))
7898   return 0;
7899   ;
7900   return 0;
7901 }
7902 _ACEOF
7903 rm -f conftest.$ac_objext
7904 if { (ac_try="$ac_compile"
7905 case "(($ac_try" in
7906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7907   *) ac_try_echo=$ac_try;;
7908 esac
7909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7910   (eval "$ac_compile") 2>conftest.er1
7911   ac_status=$?
7912   grep -v '^ *+' conftest.er1 >conftest.err
7913   rm -f conftest.er1
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
7921 else
7922   echo "$as_me: failed program was:" >&5
7923 sed 's/^/| /' conftest.$ac_ext >&5
7924
7925         ac_cv_type_short=no
7926 fi
7927
7928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7929 fi
7930 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7931 echo "${ECHO_T}$ac_cv_type_short" >&6; }
7932
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
7941 else
7942   if test "$cross_compiling" = yes; then
7943   # Depending upon the size, compute the lo and hi bounds.
7944 cat >conftest.$ac_ext <<_ACEOF
7945 /* confdefs.h.  */
7946 _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_;
7952 int
7953 main ()
7954 {
7955 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7956 test_array [0] = 0
7957
7958   ;
7959   return 0;
7960 }
7961 _ACEOF
7962 rm -f conftest.$ac_objext
7963 if { (ac_try="$ac_compile"
7964 case "(($ac_try" in
7965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7966   *) ac_try_echo=$ac_try;;
7967 esac
7968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7969   (eval "$ac_compile") 2>conftest.er1
7970   ac_status=$?
7971   grep -v '^ *+' conftest.er1 >conftest.err
7972   rm -f conftest.er1
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
7979   ac_lo=0 ac_mid=0
7980   while :; do
7981     cat >conftest.$ac_ext <<_ACEOF
7982 /* confdefs.h.  */
7983 _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_;
7989 int
7990 main ()
7991 {
7992 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7993 test_array [0] = 0
7994
7995   ;
7996   return 0;
7997 }
7998 _ACEOF
7999 rm -f conftest.$ac_objext
8000 if { (ac_try="$ac_compile"
8001 case "(($ac_try" in
8002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8003   *) ac_try_echo=$ac_try;;
8004 esac
8005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8006   (eval "$ac_compile") 2>conftest.er1
8007   ac_status=$?
8008   grep -v '^ *+' conftest.er1 >conftest.err
8009   rm -f conftest.er1
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
8017 else
8018   echo "$as_me: failed program was:" >&5
8019 sed 's/^/| /' conftest.$ac_ext >&5
8020
8021         ac_lo=`expr $ac_mid + 1`
8022                         if test $ac_lo -le $ac_mid; then
8023                           ac_lo= ac_hi=
8024                           break
8025                         fi
8026                         ac_mid=`expr 2 '*' $ac_mid + 1`
8027 fi
8028
8029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8030   done
8031 else
8032   echo "$as_me: failed program was:" >&5
8033 sed 's/^/| /' conftest.$ac_ext >&5
8034
8035         cat >conftest.$ac_ext <<_ACEOF
8036 /* confdefs.h.  */
8037 _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_;
8043 int
8044 main ()
8045 {
8046 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8047 test_array [0] = 0
8048
8049   ;
8050   return 0;
8051 }
8052 _ACEOF
8053 rm -f conftest.$ac_objext
8054 if { (ac_try="$ac_compile"
8055 case "(($ac_try" in
8056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8057   *) ac_try_echo=$ac_try;;
8058 esac
8059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8060   (eval "$ac_compile") 2>conftest.er1
8061   ac_status=$?
8062   grep -v '^ *+' conftest.er1 >conftest.err
8063   rm -f conftest.er1
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
8070   ac_hi=-1 ac_mid=-1
8071   while :; do
8072     cat >conftest.$ac_ext <<_ACEOF
8073 /* confdefs.h.  */
8074 _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_;
8080 int
8081 main ()
8082 {
8083 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8084 test_array [0] = 0
8085
8086   ;
8087   return 0;
8088 }
8089 _ACEOF
8090 rm -f conftest.$ac_objext
8091 if { (ac_try="$ac_compile"
8092 case "(($ac_try" in
8093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8094   *) ac_try_echo=$ac_try;;
8095 esac
8096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8097   (eval "$ac_compile") 2>conftest.er1
8098   ac_status=$?
8099   grep -v '^ *+' conftest.er1 >conftest.err
8100   rm -f conftest.er1
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
8108 else
8109   echo "$as_me: failed program was:" >&5
8110 sed 's/^/| /' conftest.$ac_ext >&5
8111
8112         ac_hi=`expr '(' $ac_mid ')' - 1`
8113                         if test $ac_mid -le $ac_hi; then
8114                           ac_lo= ac_hi=
8115                           break
8116                         fi
8117                         ac_mid=`expr 2 '*' $ac_mid`
8118 fi
8119
8120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8121   done
8122 else
8123   echo "$as_me: failed program was:" >&5
8124 sed 's/^/| /' conftest.$ac_ext >&5
8125
8126         ac_lo= ac_hi=
8127 fi
8128
8129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8130 fi
8131
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
8137 /* confdefs.h.  */
8138 _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_;
8144 int
8145 main ()
8146 {
8147 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8148 test_array [0] = 0
8149
8150   ;
8151   return 0;
8152 }
8153 _ACEOF
8154 rm -f conftest.$ac_objext
8155 if { (ac_try="$ac_compile"
8156 case "(($ac_try" in
8157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8158   *) ac_try_echo=$ac_try;;
8159 esac
8160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8161   (eval "$ac_compile") 2>conftest.er1
8162   ac_status=$?
8163   grep -v '^ *+' conftest.er1 >conftest.err
8164   rm -f conftest.er1
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
8171   ac_hi=$ac_mid
8172 else
8173   echo "$as_me: failed program was:" >&5
8174 sed 's/^/| /' conftest.$ac_ext >&5
8175
8176         ac_lo=`expr '(' $ac_mid ')' + 1`
8177 fi
8178
8179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8180 done
8181 case $ac_lo in
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; }; }
8189    else
8190      ac_cv_sizeof_short=0
8191    fi ;;
8192 esac
8193 else
8194   cat >conftest.$ac_ext <<_ACEOF
8195 /* confdefs.h.  */
8196 _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_)); }
8204 #include <stdio.h>
8205 #include <stdlib.h>
8206 int
8207 main ()
8208 {
8209
8210   FILE *f = fopen ("conftest.val", "w");
8211   if (! f)
8212     return 1;
8213   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8214     {
8215       long int i = longval ();
8216       if (i != ((long int) (sizeof (ac__type_sizeof_))))
8217         return 1;
8218       fprintf (f, "%ld\n", i);
8219     }
8220   else
8221     {
8222       unsigned long int i = ulongval ();
8223       if (i != ((long int) (sizeof (ac__type_sizeof_))))
8224         return 1;
8225       fprintf (f, "%lu\n", i);
8226     }
8227   return ferror (f) || fclose (f) != 0;
8228
8229   ;
8230   return 0;
8231 }
8232 _ACEOF
8233 rm -f conftest$ac_exeext
8234 if { (ac_try="$ac_link"
8235 case "(($ac_try" in
8236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8237   *) ac_try_echo=$ac_try;;
8238 esac
8239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8240   (eval "$ac_link") 2>&5
8241   ac_status=$?
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;;
8247 esac
8248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8249   (eval "$ac_try") 2>&5
8250   ac_status=$?
8251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252   (exit $ac_status); }; }; then
8253   ac_cv_sizeof_short=`cat conftest.val`
8254 else
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
8258
8259 ( exit $ac_status )
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; }; }
8266    else
8267      ac_cv_sizeof_short=0
8268    fi
8269 fi
8270 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8271 fi
8272 rm -f conftest.val
8273 fi
8274 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8275 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
8276
8277
8278
8279 cat >>confdefs.h <<_ACEOF
8280 #define SIZEOF_SHORT $ac_cv_sizeof_short
8281 _ACEOF
8282
8283
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
8288 else
8289   cat >conftest.$ac_ext <<_ACEOF
8290 /* confdefs.h.  */
8291 _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_;
8297 int
8298 main ()
8299 {
8300 if ((ac__type_new_ *) 0)
8301   return 0;
8302 if (sizeof (ac__type_new_))
8303   return 0;
8304   ;
8305   return 0;
8306 }
8307 _ACEOF
8308 rm -f conftest.$ac_objext
8309 if { (ac_try="$ac_compile"
8310 case "(($ac_try" in
8311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8312   *) ac_try_echo=$ac_try;;
8313 esac
8314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8315   (eval "$ac_compile") 2>conftest.er1
8316   ac_status=$?
8317   grep -v '^ *+' conftest.er1 >conftest.err
8318   rm -f conftest.er1
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
8325   ac_cv_type_int=yes
8326 else
8327   echo "$as_me: failed program was:" >&5
8328 sed 's/^/| /' conftest.$ac_ext >&5
8329
8330         ac_cv_type_int=no
8331 fi
8332
8333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8334 fi
8335 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
8336 echo "${ECHO_T}$ac_cv_type_int" >&6; }
8337
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
8346 else
8347   if test "$cross_compiling" = yes; then
8348   # Depending upon the size, compute the lo and hi bounds.
8349 cat >conftest.$ac_ext <<_ACEOF
8350 /* confdefs.h.  */
8351 _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_;
8357 int
8358 main ()
8359 {
8360 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8361 test_array [0] = 0
8362
8363   ;
8364   return 0;
8365 }
8366 _ACEOF
8367 rm -f conftest.$ac_objext
8368 if { (ac_try="$ac_compile"
8369 case "(($ac_try" in
8370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8371   *) ac_try_echo=$ac_try;;
8372 esac
8373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8374   (eval "$ac_compile") 2>conftest.er1
8375   ac_status=$?
8376   grep -v '^ *+' conftest.er1 >conftest.err
8377   rm -f conftest.er1
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
8384   ac_lo=0 ac_mid=0
8385   while :; do
8386     cat >conftest.$ac_ext <<_ACEOF
8387 /* confdefs.h.  */
8388 _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_;
8394 int
8395 main ()
8396 {
8397 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8398 test_array [0] = 0
8399
8400   ;
8401   return 0;
8402 }
8403 _ACEOF
8404 rm -f conftest.$ac_objext
8405 if { (ac_try="$ac_compile"
8406 case "(($ac_try" in
8407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8408   *) ac_try_echo=$ac_try;;
8409 esac
8410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8411   (eval "$ac_compile") 2>conftest.er1
8412   ac_status=$?
8413   grep -v '^ *+' conftest.er1 >conftest.err
8414   rm -f conftest.er1
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
8422 else
8423   echo "$as_me: failed program was:" >&5
8424 sed 's/^/| /' conftest.$ac_ext >&5
8425
8426         ac_lo=`expr $ac_mid + 1`
8427                         if test $ac_lo -le $ac_mid; then
8428                           ac_lo= ac_hi=
8429                           break
8430                         fi
8431                         ac_mid=`expr 2 '*' $ac_mid + 1`
8432 fi
8433
8434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8435   done
8436 else
8437   echo "$as_me: failed program was:" >&5
8438 sed 's/^/| /' conftest.$ac_ext >&5
8439
8440         cat >conftest.$ac_ext <<_ACEOF
8441 /* confdefs.h.  */
8442 _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_;
8448 int
8449 main ()
8450 {
8451 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8452 test_array [0] = 0
8453
8454   ;
8455   return 0;
8456 }
8457 _ACEOF
8458 rm -f conftest.$ac_objext
8459 if { (ac_try="$ac_compile"
8460 case "(($ac_try" in
8461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8462   *) ac_try_echo=$ac_try;;
8463 esac
8464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8465   (eval "$ac_compile") 2>conftest.er1
8466   ac_status=$?
8467   grep -v '^ *+' conftest.er1 >conftest.err
8468   rm -f conftest.er1
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
8475   ac_hi=-1 ac_mid=-1
8476   while :; do
8477     cat >conftest.$ac_ext <<_ACEOF
8478 /* confdefs.h.  */
8479 _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_;
8485 int
8486 main ()
8487 {
8488 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8489 test_array [0] = 0
8490
8491   ;
8492   return 0;
8493 }
8494 _ACEOF
8495 rm -f conftest.$ac_objext
8496 if { (ac_try="$ac_compile"
8497 case "(($ac_try" in
8498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8499   *) ac_try_echo=$ac_try;;
8500 esac
8501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8502   (eval "$ac_compile") 2>conftest.er1
8503   ac_status=$?
8504   grep -v '^ *+' conftest.er1 >conftest.err
8505   rm -f conftest.er1
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
8513 else
8514   echo "$as_me: failed program was:" >&5
8515 sed 's/^/| /' conftest.$ac_ext >&5
8516
8517         ac_hi=`expr '(' $ac_mid ')' - 1`
8518                         if test $ac_mid -le $ac_hi; then
8519                           ac_lo= ac_hi=
8520                           break
8521                         fi
8522                         ac_mid=`expr 2 '*' $ac_mid`
8523 fi
8524
8525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8526   done
8527 else
8528   echo "$as_me: failed program was:" >&5
8529 sed 's/^/| /' conftest.$ac_ext >&5
8530
8531         ac_lo= ac_hi=
8532 fi
8533
8534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8535 fi
8536
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
8542 /* confdefs.h.  */
8543 _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_;
8549 int
8550 main ()
8551 {
8552 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8553 test_array [0] = 0
8554
8555   ;
8556   return 0;
8557 }
8558 _ACEOF
8559 rm -f conftest.$ac_objext
8560 if { (ac_try="$ac_compile"
8561 case "(($ac_try" in
8562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8563   *) ac_try_echo=$ac_try;;
8564 esac
8565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8566   (eval "$ac_compile") 2>conftest.er1
8567   ac_status=$?
8568   grep -v '^ *+' conftest.er1 >conftest.err
8569   rm -f conftest.er1
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
8576   ac_hi=$ac_mid
8577 else
8578   echo "$as_me: failed program was:" >&5
8579 sed 's/^/| /' conftest.$ac_ext >&5
8580
8581         ac_lo=`expr '(' $ac_mid ')' + 1`
8582 fi
8583
8584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8585 done
8586 case $ac_lo in
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; }; }
8594    else
8595      ac_cv_sizeof_int=0
8596    fi ;;
8597 esac
8598 else
8599   cat >conftest.$ac_ext <<_ACEOF
8600 /* confdefs.h.  */
8601 _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_)); }
8609 #include <stdio.h>
8610 #include <stdlib.h>
8611 int
8612 main ()
8613 {
8614
8615   FILE *f = fopen ("conftest.val", "w");
8616   if (! f)
8617     return 1;
8618   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8619     {
8620       long int i = longval ();
8621       if (i != ((long int) (sizeof (ac__type_sizeof_))))
8622         return 1;
8623       fprintf (f, "%ld\n", i);
8624     }
8625   else
8626     {
8627       unsigned long int i = ulongval ();
8628       if (i != ((long int) (sizeof (ac__type_sizeof_))))
8629         return 1;
8630       fprintf (f, "%lu\n", i);
8631     }
8632   return ferror (f) || fclose (f) != 0;
8633
8634   ;
8635   return 0;
8636 }
8637 _ACEOF
8638 rm -f conftest$ac_exeext
8639 if { (ac_try="$ac_link"
8640 case "(($ac_try" in
8641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8642   *) ac_try_echo=$ac_try;;
8643 esac
8644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8645   (eval "$ac_link") 2>&5
8646   ac_status=$?
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;;
8652 esac
8653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8654   (eval "$ac_try") 2>&5
8655   ac_status=$?
8656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657   (exit $ac_status); }; }; then
8658   ac_cv_sizeof_int=`cat conftest.val`
8659 else
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
8663
8664 ( exit $ac_status )
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; }; }
8671    else
8672      ac_cv_sizeof_int=0
8673    fi
8674 fi
8675 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8676 fi
8677 rm -f conftest.val
8678 fi
8679 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
8680 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
8681
8682
8683
8684 cat >>confdefs.h <<_ACEOF
8685 #define SIZEOF_INT $ac_cv_sizeof_int
8686 _ACEOF
8687
8688
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
8693 else
8694   cat >conftest.$ac_ext <<_ACEOF
8695 /* confdefs.h.  */
8696 _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_;
8702 int
8703 main ()
8704 {
8705 if ((ac__type_new_ *) 0)
8706   return 0;
8707 if (sizeof (ac__type_new_))
8708   return 0;
8709   ;
8710   return 0;
8711 }
8712 _ACEOF
8713 rm -f conftest.$ac_objext
8714 if { (ac_try="$ac_compile"
8715 case "(($ac_try" in
8716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8717   *) ac_try_echo=$ac_try;;
8718 esac
8719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8720   (eval "$ac_compile") 2>conftest.er1
8721   ac_status=$?
8722   grep -v '^ *+' conftest.er1 >conftest.err
8723   rm -f conftest.er1
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
8730   ac_cv_type_long=yes
8731 else
8732   echo "$as_me: failed program was:" >&5
8733 sed 's/^/| /' conftest.$ac_ext >&5
8734
8735         ac_cv_type_long=no
8736 fi
8737
8738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8739 fi
8740 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
8741 echo "${ECHO_T}$ac_cv_type_long" >&6; }
8742
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
8751 else
8752   if test "$cross_compiling" = yes; then
8753   # Depending upon the size, compute the lo and hi bounds.
8754 cat >conftest.$ac_ext <<_ACEOF
8755 /* confdefs.h.  */
8756 _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_;
8762 int
8763 main ()
8764 {
8765 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8766 test_array [0] = 0
8767
8768   ;
8769   return 0;
8770 }
8771 _ACEOF
8772 rm -f conftest.$ac_objext
8773 if { (ac_try="$ac_compile"
8774 case "(($ac_try" in
8775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8776   *) ac_try_echo=$ac_try;;
8777 esac
8778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8779   (eval "$ac_compile") 2>conftest.er1
8780   ac_status=$?
8781   grep -v '^ *+' conftest.er1 >conftest.err
8782   rm -f conftest.er1
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
8789   ac_lo=0 ac_mid=0
8790   while :; do
8791     cat >conftest.$ac_ext <<_ACEOF
8792 /* confdefs.h.  */
8793 _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_;
8799 int
8800 main ()
8801 {
8802 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8803 test_array [0] = 0
8804
8805   ;
8806   return 0;
8807 }
8808 _ACEOF
8809 rm -f conftest.$ac_objext
8810 if { (ac_try="$ac_compile"
8811 case "(($ac_try" in
8812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8813   *) ac_try_echo=$ac_try;;
8814 esac
8815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8816   (eval "$ac_compile") 2>conftest.er1
8817   ac_status=$?
8818   grep -v '^ *+' conftest.er1 >conftest.err
8819   rm -f conftest.er1
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
8827 else
8828   echo "$as_me: failed program was:" >&5
8829 sed 's/^/| /' conftest.$ac_ext >&5
8830
8831         ac_lo=`expr $ac_mid + 1`
8832                         if test $ac_lo -le $ac_mid; then
8833                           ac_lo= ac_hi=
8834                           break
8835                         fi
8836                         ac_mid=`expr 2 '*' $ac_mid + 1`
8837 fi
8838
8839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8840   done
8841 else
8842   echo "$as_me: failed program was:" >&5
8843 sed 's/^/| /' conftest.$ac_ext >&5
8844
8845         cat >conftest.$ac_ext <<_ACEOF
8846 /* confdefs.h.  */
8847 _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_;
8853 int
8854 main ()
8855 {
8856 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8857 test_array [0] = 0
8858
8859   ;
8860   return 0;
8861 }
8862 _ACEOF
8863 rm -f conftest.$ac_objext
8864 if { (ac_try="$ac_compile"
8865 case "(($ac_try" in
8866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8867   *) ac_try_echo=$ac_try;;
8868 esac
8869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8870   (eval "$ac_compile") 2>conftest.er1
8871   ac_status=$?
8872   grep -v '^ *+' conftest.er1 >conftest.err
8873   rm -f conftest.er1
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
8880   ac_hi=-1 ac_mid=-1
8881   while :; do
8882     cat >conftest.$ac_ext <<_ACEOF
8883 /* confdefs.h.  */
8884 _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_;
8890 int
8891 main ()
8892 {
8893 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8894 test_array [0] = 0
8895
8896   ;
8897   return 0;
8898 }
8899 _ACEOF
8900 rm -f conftest.$ac_objext
8901 if { (ac_try="$ac_compile"
8902 case "(($ac_try" in
8903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8904   *) ac_try_echo=$ac_try;;
8905 esac
8906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8907   (eval "$ac_compile") 2>conftest.er1
8908   ac_status=$?
8909   grep -v '^ *+' conftest.er1 >conftest.err
8910   rm -f conftest.er1
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
8918 else
8919   echo "$as_me: failed program was:" >&5
8920 sed 's/^/| /' conftest.$ac_ext >&5
8921
8922         ac_hi=`expr '(' $ac_mid ')' - 1`
8923                         if test $ac_mid -le $ac_hi; then
8924                           ac_lo= ac_hi=
8925                           break
8926                         fi
8927                         ac_mid=`expr 2 '*' $ac_mid`
8928 fi
8929
8930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8931   done
8932 else
8933   echo "$as_me: failed program was:" >&5
8934 sed 's/^/| /' conftest.$ac_ext >&5
8935
8936         ac_lo= ac_hi=
8937 fi
8938
8939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8940 fi
8941
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
8947 /* confdefs.h.  */
8948 _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_;
8954 int
8955 main ()
8956 {
8957 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8958 test_array [0] = 0
8959
8960   ;
8961   return 0;
8962 }
8963 _ACEOF
8964 rm -f conftest.$ac_objext
8965 if { (ac_try="$ac_compile"
8966 case "(($ac_try" in
8967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8968   *) ac_try_echo=$ac_try;;
8969 esac
8970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8971   (eval "$ac_compile") 2>conftest.er1
8972   ac_status=$?
8973   grep -v '^ *+' conftest.er1 >conftest.err
8974   rm -f conftest.er1
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
8981   ac_hi=$ac_mid
8982 else
8983   echo "$as_me: failed program was:" >&5
8984 sed 's/^/| /' conftest.$ac_ext >&5
8985
8986         ac_lo=`expr '(' $ac_mid ')' + 1`
8987 fi
8988
8989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8990 done
8991 case $ac_lo in
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; }; }
8999    else
9000      ac_cv_sizeof_long=0
9001    fi ;;
9002 esac
9003 else
9004   cat >conftest.$ac_ext <<_ACEOF
9005 /* confdefs.h.  */
9006 _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_)); }
9014 #include <stdio.h>
9015 #include <stdlib.h>
9016 int
9017 main ()
9018 {
9019
9020   FILE *f = fopen ("conftest.val", "w");
9021   if (! f)
9022     return 1;
9023   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9024     {
9025       long int i = longval ();
9026       if (i != ((long int) (sizeof (ac__type_sizeof_))))
9027         return 1;
9028       fprintf (f, "%ld\n", i);
9029     }
9030   else
9031     {
9032       unsigned long int i = ulongval ();
9033       if (i != ((long int) (sizeof (ac__type_sizeof_))))
9034         return 1;
9035       fprintf (f, "%lu\n", i);
9036     }
9037   return ferror (f) || fclose (f) != 0;
9038
9039   ;
9040   return 0;
9041 }
9042 _ACEOF
9043 rm -f conftest$ac_exeext
9044 if { (ac_try="$ac_link"
9045 case "(($ac_try" in
9046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9047   *) ac_try_echo=$ac_try;;
9048 esac
9049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9050   (eval "$ac_link") 2>&5
9051   ac_status=$?
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;;
9057 esac
9058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9059   (eval "$ac_try") 2>&5
9060   ac_status=$?
9061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062   (exit $ac_status); }; }; then
9063   ac_cv_sizeof_long=`cat conftest.val`
9064 else
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
9068
9069 ( exit $ac_status )
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; }; }
9076    else
9077      ac_cv_sizeof_long=0
9078    fi
9079 fi
9080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9081 fi
9082 rm -f conftest.val
9083 fi
9084 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
9085 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
9086
9087
9088
9089 cat >>confdefs.h <<_ACEOF
9090 #define SIZEOF_LONG $ac_cv_sizeof_long
9091 _ACEOF
9092
9093
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
9098 else
9099   cat >conftest.$ac_ext <<_ACEOF
9100 /* confdefs.h.  */
9101 _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_;
9107 int
9108 main ()
9109 {
9110 if ((ac__type_new_ *) 0)
9111   return 0;
9112 if (sizeof (ac__type_new_))
9113   return 0;
9114   ;
9115   return 0;
9116 }
9117 _ACEOF
9118 rm -f conftest.$ac_objext
9119 if { (ac_try="$ac_compile"
9120 case "(($ac_try" in
9121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9122   *) ac_try_echo=$ac_try;;
9123 esac
9124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9125   (eval "$ac_compile") 2>conftest.er1
9126   ac_status=$?
9127   grep -v '^ *+' conftest.er1 >conftest.err
9128   rm -f conftest.er1
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
9136 else
9137   echo "$as_me: failed program was:" >&5
9138 sed 's/^/| /' conftest.$ac_ext >&5
9139
9140         ac_cv_type_voidp=no
9141 fi
9142
9143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9144 fi
9145 { echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5
9146 echo "${ECHO_T}$ac_cv_type_voidp" >&6; }
9147
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
9156 else
9157   if test "$cross_compiling" = yes; then
9158   # Depending upon the size, compute the lo and hi bounds.
9159 cat >conftest.$ac_ext <<_ACEOF
9160 /* confdefs.h.  */
9161 _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_;
9167 int
9168 main ()
9169 {
9170 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9171 test_array [0] = 0
9172
9173   ;
9174   return 0;
9175 }
9176 _ACEOF
9177 rm -f conftest.$ac_objext
9178 if { (ac_try="$ac_compile"
9179 case "(($ac_try" in
9180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9181   *) ac_try_echo=$ac_try;;
9182 esac
9183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9184   (eval "$ac_compile") 2>conftest.er1
9185   ac_status=$?
9186   grep -v '^ *+' conftest.er1 >conftest.err
9187   rm -f conftest.er1
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
9194   ac_lo=0 ac_mid=0
9195   while :; do
9196     cat >conftest.$ac_ext <<_ACEOF
9197 /* confdefs.h.  */
9198 _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_;
9204 int
9205 main ()
9206 {
9207 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9208 test_array [0] = 0
9209
9210   ;
9211   return 0;
9212 }
9213 _ACEOF
9214 rm -f conftest.$ac_objext
9215 if { (ac_try="$ac_compile"
9216 case "(($ac_try" in
9217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9218   *) ac_try_echo=$ac_try;;
9219 esac
9220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9221   (eval "$ac_compile") 2>conftest.er1
9222   ac_status=$?
9223   grep -v '^ *+' conftest.er1 >conftest.err
9224   rm -f conftest.er1
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
9232 else
9233   echo "$as_me: failed program was:" >&5
9234 sed 's/^/| /' conftest.$ac_ext >&5
9235
9236         ac_lo=`expr $ac_mid + 1`
9237                         if test $ac_lo -le $ac_mid; then
9238                           ac_lo= ac_hi=
9239                           break
9240                         fi
9241                         ac_mid=`expr 2 '*' $ac_mid + 1`
9242 fi
9243
9244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9245   done
9246 else
9247   echo "$as_me: failed program was:" >&5
9248 sed 's/^/| /' conftest.$ac_ext >&5
9249
9250         cat >conftest.$ac_ext <<_ACEOF
9251 /* confdefs.h.  */
9252 _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_;
9258 int
9259 main ()
9260 {
9261 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9262 test_array [0] = 0
9263
9264   ;
9265   return 0;
9266 }
9267 _ACEOF
9268 rm -f conftest.$ac_objext
9269 if { (ac_try="$ac_compile"
9270 case "(($ac_try" in
9271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9272   *) ac_try_echo=$ac_try;;
9273 esac
9274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9275   (eval "$ac_compile") 2>conftest.er1
9276   ac_status=$?
9277   grep -v '^ *+' conftest.er1 >conftest.err
9278   rm -f conftest.er1
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
9285   ac_hi=-1 ac_mid=-1
9286   while :; do
9287     cat >conftest.$ac_ext <<_ACEOF
9288 /* confdefs.h.  */
9289 _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_;
9295 int
9296 main ()
9297 {
9298 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9299 test_array [0] = 0
9300
9301   ;
9302   return 0;
9303 }
9304 _ACEOF
9305 rm -f conftest.$ac_objext
9306 if { (ac_try="$ac_compile"
9307 case "(($ac_try" in
9308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9309   *) ac_try_echo=$ac_try;;
9310 esac
9311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9312   (eval "$ac_compile") 2>conftest.er1
9313   ac_status=$?
9314   grep -v '^ *+' conftest.er1 >conftest.err
9315   rm -f conftest.er1
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
9323 else
9324   echo "$as_me: failed program was:" >&5
9325 sed 's/^/| /' conftest.$ac_ext >&5
9326
9327         ac_hi=`expr '(' $ac_mid ')' - 1`
9328                         if test $ac_mid -le $ac_hi; then
9329                           ac_lo= ac_hi=
9330                           break
9331                         fi
9332                         ac_mid=`expr 2 '*' $ac_mid`
9333 fi
9334
9335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9336   done
9337 else
9338   echo "$as_me: failed program was:" >&5
9339 sed 's/^/| /' conftest.$ac_ext >&5
9340
9341         ac_lo= ac_hi=
9342 fi
9343
9344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9345 fi
9346
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
9352 /* confdefs.h.  */
9353 _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_;
9359 int
9360 main ()
9361 {
9362 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9363 test_array [0] = 0
9364
9365   ;
9366   return 0;
9367 }
9368 _ACEOF
9369 rm -f conftest.$ac_objext
9370 if { (ac_try="$ac_compile"
9371 case "(($ac_try" in
9372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9373   *) ac_try_echo=$ac_try;;
9374 esac
9375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9376   (eval "$ac_compile") 2>conftest.er1
9377   ac_status=$?
9378   grep -v '^ *+' conftest.er1 >conftest.err
9379   rm -f conftest.er1
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
9386   ac_hi=$ac_mid
9387 else
9388   echo "$as_me: failed program was:" >&5
9389 sed 's/^/| /' conftest.$ac_ext >&5
9390
9391         ac_lo=`expr '(' $ac_mid ')' + 1`
9392 fi
9393
9394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9395 done
9396 case $ac_lo in
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; }; }
9404    else
9405      ac_cv_sizeof_voidp=0
9406    fi ;;
9407 esac
9408 else
9409   cat >conftest.$ac_ext <<_ACEOF
9410 /* confdefs.h.  */
9411 _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_)); }
9419 #include <stdio.h>
9420 #include <stdlib.h>
9421 int
9422 main ()
9423 {
9424
9425   FILE *f = fopen ("conftest.val", "w");
9426   if (! f)
9427     return 1;
9428   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9429     {
9430       long int i = longval ();
9431       if (i != ((long int) (sizeof (ac__type_sizeof_))))
9432         return 1;
9433       fprintf (f, "%ld\n", i);
9434     }
9435   else
9436     {
9437       unsigned long int i = ulongval ();
9438       if (i != ((long int) (sizeof (ac__type_sizeof_))))
9439         return 1;
9440       fprintf (f, "%lu\n", i);
9441     }
9442   return ferror (f) || fclose (f) != 0;
9443
9444   ;
9445   return 0;
9446 }
9447 _ACEOF
9448 rm -f conftest$ac_exeext
9449 if { (ac_try="$ac_link"
9450 case "(($ac_try" in
9451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9452   *) ac_try_echo=$ac_try;;
9453 esac
9454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9455   (eval "$ac_link") 2>&5
9456   ac_status=$?
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;;
9462 esac
9463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9464   (eval "$ac_try") 2>&5
9465   ac_status=$?
9466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467   (exit $ac_status); }; }; then
9468   ac_cv_sizeof_voidp=`cat conftest.val`
9469 else
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
9473
9474 ( exit $ac_status )
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; }; }
9481    else
9482      ac_cv_sizeof_voidp=0
9483    fi
9484 fi
9485 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9486 fi
9487 rm -f conftest.val
9488 fi
9489 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
9490 echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6; }
9491
9492
9493
9494 cat >>confdefs.h <<_ACEOF
9495 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
9496 _ACEOF
9497
9498
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)" ;;
9520    esac
9521    { echo "$as_me:$LINENO: result: combined for stdint datatype model...  $name" >&5
9522 echo "${ECHO_T}combined for stdint datatype model...  $name" >&6; }
9523 fi
9524
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"
9531 else
9532    ac_cv_header_stdint="stddef.h"
9533 fi
9534
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
9545 else
9546   cat >conftest.$ac_ext <<_ACEOF
9547 /* confdefs.h.  */
9548 _ACEOF
9549 cat confdefs.h >>conftest.$ac_ext
9550 cat >>conftest.$ac_ext <<_ACEOF
9551 /* end confdefs.h.  */
9552 #include <$ac_cv_header_stdint>
9553
9554 typedef int_least32_t ac__type_new_;
9555 int
9556 main ()
9557 {
9558 if ((ac__type_new_ *) 0)
9559   return 0;
9560 if (sizeof (ac__type_new_))
9561   return 0;
9562   ;
9563   return 0;
9564 }
9565 _ACEOF
9566 rm -f conftest.$ac_objext
9567 if { (ac_try="$ac_compile"
9568 case "(($ac_try" in
9569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9570   *) ac_try_echo=$ac_try;;
9571 esac
9572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9573   (eval "$ac_compile") 2>conftest.er1
9574   ac_status=$?
9575   grep -v '^ *+' conftest.er1 >conftest.err
9576   rm -f conftest.er1
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
9584 else
9585   echo "$as_me: failed program was:" >&5
9586 sed 's/^/| /' conftest.$ac_ext >&5
9587
9588         ac_cv_type_int_least32_t=no
9589 fi
9590
9591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9592 fi
9593 { echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
9594 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6; }
9595
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
9600 else
9601   cat >conftest.$ac_ext <<_ACEOF
9602 /* confdefs.h.  */
9603 _ACEOF
9604 cat confdefs.h >>conftest.$ac_ext
9605 cat >>conftest.$ac_ext <<_ACEOF
9606 /* end confdefs.h.  */
9607 #include<$ac_cv_header_stdint>
9608
9609 typedef int_fast32_t ac__type_new_;
9610 int
9611 main ()
9612 {
9613 if ((ac__type_new_ *) 0)
9614   return 0;
9615 if (sizeof (ac__type_new_))
9616   return 0;
9617   ;
9618   return 0;
9619 }
9620 _ACEOF
9621 rm -f conftest.$ac_objext
9622 if { (ac_try="$ac_compile"
9623 case "(($ac_try" in
9624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9625   *) ac_try_echo=$ac_try;;
9626 esac
9627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9628   (eval "$ac_compile") 2>conftest.er1
9629   ac_status=$?
9630   grep -v '^ *+' conftest.er1 >conftest.err
9631   rm -f conftest.er1
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
9639 else
9640   echo "$as_me: failed program was:" >&5
9641 sed 's/^/| /' conftest.$ac_ext >&5
9642
9643         ac_cv_type_int_fast32_t=no
9644 fi
9645
9646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9647 fi
9648 { echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
9649 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6; }
9650
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
9655 else
9656   cat >conftest.$ac_ext <<_ACEOF
9657 /* confdefs.h.  */
9658 _ACEOF
9659 cat confdefs.h >>conftest.$ac_ext
9660 cat >>conftest.$ac_ext <<_ACEOF
9661 /* end confdefs.h.  */
9662 #include <$ac_cv_header_stdint>
9663
9664 typedef intmax_t ac__type_new_;
9665 int
9666 main ()
9667 {
9668 if ((ac__type_new_ *) 0)
9669   return 0;
9670 if (sizeof (ac__type_new_))
9671   return 0;
9672   ;
9673   return 0;
9674 }
9675 _ACEOF
9676 rm -f conftest.$ac_objext
9677 if { (ac_try="$ac_compile"
9678 case "(($ac_try" in
9679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9680   *) ac_try_echo=$ac_try;;
9681 esac
9682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9683   (eval "$ac_compile") 2>conftest.er1
9684   ac_status=$?
9685   grep -v '^ *+' conftest.er1 >conftest.err
9686   rm -f conftest.er1
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
9694 else
9695   echo "$as_me: failed program was:" >&5
9696 sed 's/^/| /' conftest.$ac_ext >&5
9697
9698         ac_cv_type_intmax_t=no
9699 fi
9700
9701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9702 fi
9703 { echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
9704 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6; }
9705
9706
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`
9711 else
9712 ac_cv_stdint_message="using $CC"
9713 fi
9714
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; }
9717
9718 # ----------------- DONE inttypes.h checks START header -------------
9719 ac_config_commands="$ac_config_commands $ac_stdint_h"
9720
9721
9722
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
9729 else
9730   cat >conftest.$ac_ext <<_ACEOF
9731 /* confdefs.h.  */
9732 _ACEOF
9733 cat confdefs.h >>conftest.$ac_ext
9734 cat >>conftest.$ac_ext <<_ACEOF
9735 /* end confdefs.h.  */
9736
9737 #if HAVE_SYS_TYPES_H
9738 # include <sys/types.h>
9739 #endif
9740 #if HAVE_UNISTD_H
9741 # include <unistd.h>
9742 #endif
9743 #include <fcntl.h>
9744
9745 int
9746 main ()
9747 {
9748
9749 int op = F_SETLKW;
9750 struct flock fl;
9751
9752   ;
9753   return 0;
9754 }
9755 _ACEOF
9756 rm -f conftest.$ac_objext
9757 if { (ac_try="$ac_compile"
9758 case "(($ac_try" in
9759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9760   *) ac_try_echo=$ac_try;;
9761 esac
9762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9763   (eval "$ac_compile") 2>conftest.er1
9764   ac_status=$?
9765   grep -v '^ *+' conftest.er1 >conftest.err
9766   rm -f conftest.er1
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
9774 else
9775   echo "$as_me: failed program was:" >&5
9776 sed 's/^/| /' conftest.$ac_ext >&5
9777
9778         nettle_cv_fcntl_locking=no
9779 fi
9780
9781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9782 fi
9783 { echo "$as_me:$LINENO: result: $nettle_cv_fcntl_locking" >&5
9784 echo "${ECHO_T}$nettle_cv_fcntl_locking" >&6; }
9785
9786
9787
9788 if test "x$nettle_cv_fcntl_locking" = "xyes" ; then
9789   cat >>confdefs.h <<\_ACEOF
9790 #define HAVE_FCNTL_LOCKING 1
9791 _ACEOF
9792
9793 fi
9794
9795 # Checks for libraries
9796
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
9801 else
9802   ac_check_lib_save_LIBS=$LIBS
9803 LIBS="-lgmp  $LIBS"
9804 cat >conftest.$ac_ext <<_ACEOF
9805 /* confdefs.h.  */
9806 _ACEOF
9807 cat confdefs.h >>conftest.$ac_ext
9808 cat >>conftest.$ac_ext <<_ACEOF
9809 /* end confdefs.h.  */
9810
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.  */
9814 #ifdef __cplusplus
9815 extern "C"
9816 #endif
9817 char __gmpz_getlimbn ();
9818 int
9819 main ()
9820 {
9821 return __gmpz_getlimbn ();
9822   ;
9823   return 0;
9824 }
9825 _ACEOF
9826 rm -f conftest.$ac_objext conftest$ac_exeext
9827 if { (ac_try="$ac_link"
9828 case "(($ac_try" in
9829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9830   *) ac_try_echo=$ac_try;;
9831 esac
9832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9833   (eval "$ac_link") 2>conftest.er1
9834   ac_status=$?
9835   grep -v '^ *+' conftest.er1 >conftest.err
9836   rm -f conftest.er1
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
9845 else
9846   echo "$as_me: failed program was:" >&5
9847 sed 's/^/| /' conftest.$ac_ext >&5
9848
9849         ac_cv_lib_gmp___gmpz_getlimbn=no
9850 fi
9851
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
9855 fi
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
9861 _ACEOF
9862
9863   LIBS="-lgmp $LIBS"
9864
9865 else
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
9871 fi
9872
9873
9874 # Add -R flags needed to run programs linked with gmp
9875 if test $cross_compiling = no -a "x$RPATHFLAG" != x ; then
9876   ac_success=no
9877   if test "$cross_compiling" = yes; then
9878   :
9879 else
9880   cat >conftest.$ac_ext <<_ACEOF
9881 /* confdefs.h.  */
9882 _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; }
9887 _ACEOF
9888 rm -f conftest$ac_exeext
9889 if { (ac_try="$ac_link"
9890 case "(($ac_try" in
9891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9892   *) ac_try_echo=$ac_try;;
9893 esac
9894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9895   (eval "$ac_link") 2>&5
9896   ac_status=$?
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;;
9902 esac
9903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9904   (eval "$ac_try") 2>&5
9905   ac_status=$?
9906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907   (exit $ac_status); }; }; then
9908   ac_success=yes
9909 else
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
9913
9914 ( exit $ac_status )
9915 ac_success=no
9916 fi
9917 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9918 fi
9919
9920
9921
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"
9930       else
9931         LDFLAGS="$RPATHFLAG$d $LDFLAGS"
9932         if test "$cross_compiling" = yes; then
9933   :
9934 else
9935   cat >conftest.$ac_ext <<_ACEOF
9936 /* confdefs.h.  */
9937 _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; }
9942 _ACEOF
9943 rm -f conftest$ac_exeext
9944 if { (ac_try="$ac_link"
9945 case "(($ac_try" in
9946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9947   *) ac_try_echo=$ac_try;;
9948 esac
9949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9950   (eval "$ac_link") 2>&5
9951   ac_status=$?
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;;
9957 esac
9958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9959   (eval "$ac_try") 2>&5
9960   ac_status=$?
9961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962   (exit $ac_status); }; }; then
9963   ac_success=yes
9964           ac_rpath_save_LDFLAGS="$LDFLAGS"
9965           { echo "$as_me:$LINENO: result: adding $RPATHFLAG$d" >&5
9966 echo "${ECHO_T}adding $RPATHFLAG$d" >&6; }
9967
9968 else
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
9972
9973 ( exit $ac_status )
9974 ac_remaining_dirs="$ac_remaining_dirs $d"
9975 fi
9976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9977 fi
9978
9979
9980         LDFLAGS="$ac_rpath_save_LDFLAGS"
9981       fi
9982     done
9983     RPATH_CANDIDATE_DIRS=$ac_remaining_dirs
9984   fi
9985   if test $ac_success = no ; then
9986     { echo "$as_me:$LINENO: result: failed" >&5
9987 echo "${ECHO_T}failed" >&6; }
9988   fi
9989 fi
9990
9991
9992
9993
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
9998 else
9999   cat >conftest.$ac_ext <<_ACEOF
10000 /* confdefs.h.  */
10001 _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
10008
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.  */
10013
10014 #ifdef __STDC__
10015 # include <limits.h>
10016 #else
10017 # include <assert.h>
10018 #endif
10019
10020 #undef __gmpz_powm_sec
10021
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.  */
10025 #ifdef __cplusplus
10026 extern "C"
10027 #endif
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
10033 choke me
10034 #endif
10035
10036 int
10037 main ()
10038 {
10039 return __gmpz_powm_sec ();
10040   ;
10041   return 0;
10042 }
10043 _ACEOF
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;;
10049 esac
10050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10051   (eval "$ac_link") 2>conftest.er1
10052   ac_status=$?
10053   grep -v '^ *+' conftest.er1 >conftest.err
10054   rm -f conftest.er1
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
10063 else
10064   echo "$as_me: failed program was:" >&5
10065 sed 's/^/| /' conftest.$ac_ext >&5
10066
10067         ac_cv_func___gmpz_powm_sec=no
10068 fi
10069
10070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10071       conftest$ac_exeext conftest.$ac_ext
10072 fi
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
10078 _ACEOF
10079
10080 fi
10081
10082
10083
10084
10085
10086 if test "x$enable_public_key" = xyes ; then
10087   cat >>confdefs.h <<\_ACEOF
10088 #define WITH_HOGWEED 1
10089 _ACEOF
10090
10091   IF_HOGWEED=''
10092 else
10093   IF_HOGWEED='#'
10094 fi
10095
10096 if test "x$enable_shared" = xyes ; then
10097   IF_SHARED=''
10098 else
10099   IF_SHARED='#'
10100 fi
10101
10102
10103
10104
10105 OPENSSL_LIBFLAGS=''
10106
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
10113 else
10114   ac_check_lib_save_LIBS=$LIBS
10115 LIBS="-lcrypto  $LIBS"
10116 cat >conftest.$ac_ext <<_ACEOF
10117 /* confdefs.h.  */
10118 _ACEOF
10119 cat confdefs.h >>conftest.$ac_ext
10120 cat >>conftest.$ac_ext <<_ACEOF
10121 /* end confdefs.h.  */
10122
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.  */
10126 #ifdef __cplusplus
10127 extern "C"
10128 #endif
10129 char BF_ecb_encrypt ();
10130 int
10131 main ()
10132 {
10133 return BF_ecb_encrypt ();
10134   ;
10135   return 0;
10136 }
10137 _ACEOF
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;;
10143 esac
10144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10145   (eval "$ac_link") 2>conftest.er1
10146   ac_status=$?
10147   grep -v '^ *+' conftest.er1 >conftest.err
10148   rm -f conftest.er1
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
10157 else
10158   echo "$as_me: failed program was:" >&5
10159 sed 's/^/| /' conftest.$ac_ext >&5
10160
10161         ac_cv_lib_crypto_BF_ecb_encrypt=no
10162 fi
10163
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
10167 fi
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'
10172 else
10173   enable_openssl=no
10174 fi
10175
10176 fi
10177
10178
10179
10180
10181 if test x$enable_openssl = xyes ; then
10182   cat >>confdefs.h <<\_ACEOF
10183 #define WITH_OPENSSL 1
10184 _ACEOF
10185
10186 fi
10187
10188
10189
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
10194     true
10195   else
10196     CFLAGS="$CFLAGS -ggdb3"
10197   fi
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"
10202   fi
10203   CFLAGS="$CFLAGS -Wall -W \
10204   -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes \
10205   -Wpointer-arith -Wbad-function-cast -Wnested-externs"
10206
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
10210 # inttypes.h.
10211 fi
10212
10213 ac_config_files="$ac_config_files config.make config.m4 Makefile"
10214
10215 ac_config_files="$ac_config_files tools/Makefile testsuite/Makefile examples/Makefile"
10216
10217
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.
10224 #
10225 # config.status only pays attention to the cache file if you give it
10226 # the --recheck option to rerun configure.
10227 #
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.
10231
10232 _ACEOF
10233
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.
10239 (
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
10242     case $ac_val in #(
10243     *${as_nl}*)
10244       case $ac_var in #(
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;} ;;
10247       esac
10248       case $ac_var in #(
10249       _ | IFS | as_nl) ;; #(
10250       *) $as_unset $ac_var ;;
10251       esac ;;
10252     esac
10253   done
10254
10255   (set) 2>&1 |
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 \).
10260       sed -n \
10261         "s/'/'\\\\''/g;
10262           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10263       ;; #(
10264     *)
10265       # `set' quotes correctly as required by POSIX, so do not add quotes.
10266       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10267       ;;
10268     esac |
10269     sort
10270 ) |
10271   sed '
10272      /^ac_cv_env_/b end
10273      t clear
10274      :clear
10275      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10276      t end
10277      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10278      :end' >>confcache
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
10285   else
10286     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10287 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10288   fi
10289 fi
10290 rm -f confcache
10291
10292 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10293 # Let make expand exec_prefix.
10294 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10295
10296 DEFS=-DHAVE_CONFIG_H
10297
10298 ac_libobjs=
10299 ac_ltlibobjs=
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'
10308 done
10309 LIBOBJS=$ac_libobjs
10310
10311 LTLIBOBJS=$ac_ltlibobjs
10312
10313
10314
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
10321 #! $SHELL
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.
10326
10327 debug=false
10328 ac_cs_recheck=false
10329 ac_cs_silent=false
10330 SHELL=\${CONFIG_SHELL-$SHELL}
10331 _ACEOF
10332
10333 cat >>$CONFIG_STATUS <<\_ACEOF
10334 ## --------------------- ##
10335 ## M4sh Initialization.  ##
10336 ## --------------------- ##
10337
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
10341   emulate sh
10342   NULLCMD=:
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
10347 else
10348   case `(set -o) 2>/dev/null` in
10349   *posix*) set -o posix ;;
10350 esac
10351
10352 fi
10353
10354
10355
10356
10357 # PATH needs CR
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
10364
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
10369   chmod +x conf$$.sh
10370   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10371     PATH_SEPARATOR=';'
10372   else
10373     PATH_SEPARATOR=:
10374   fi
10375   rm -f conf$$.sh
10376 fi
10377
10378 # Support unset when possible.
10379 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10380   as_unset=unset
10381 else
10382   as_unset=false
10383 fi
10384
10385
10386 # IFS
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.)
10391 as_nl='
10392 '
10393 IFS=" ""        $as_nl"
10394
10395 # Find who we are.  Look in the path if we contain no directory separator.
10396 case $0 in
10397   *[\\/]* ) as_myself=$0 ;;
10398   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10399 for as_dir in $PATH
10400 do
10401   IFS=$as_save_IFS
10402   test -z "$as_dir" && as_dir=.
10403   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10404 done
10405 IFS=$as_save_IFS
10406
10407      ;;
10408 esac
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
10412   as_myself=$0
10413 fi
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; }
10417 fi
10418
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
10422 done
10423 PS1='$ '
10424 PS2='> '
10425 PS4='+ '
10426
10427 # NLS nuisances.
10428 for as_var in \
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
10432 do
10433   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10434     eval $as_var=C; export $as_var
10435   else
10436     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10437   fi
10438 done
10439
10440 # Required to use basename.
10441 if expr a : '\(a\)' >/dev/null 2>&1 &&
10442    test "X`expr 00001 : '.*\(...\)'`" = X001; then
10443   as_expr=expr
10444 else
10445   as_expr=false
10446 fi
10447
10448 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10449   as_basename=basename
10450 else
10451   as_basename=false
10452 fi
10453
10454
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 ||
10460 echo X/"$0" |
10461     sed '/^.*\/\([^/][^/]*\)\/*$/{
10462             s//\1/
10463             q
10464           }
10465           /^X\/\(\/\/\)$/{
10466             s//\1/
10467             q
10468           }
10469           /^X\/\(\/\).*/{
10470             s//\1/
10471             q
10472           }
10473           s/.*/./; q'`
10474
10475 # CDPATH.
10476 $as_unset CDPATH
10477
10478
10479
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" || {
10484
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.  :-)
10495   sed -n '
10496     p
10497     /[$]LINENO/=
10498   ' <$as_myself |
10499     sed '
10500       s/[$]LINENO.*/&-/
10501       t lineno
10502       b
10503       :lineno
10504       N
10505       :loop
10506       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10507       t loop
10508       s/-\n.*//
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; }; }
10513
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.
10519   exit
10520 }
10521
10522
10523 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10524   as_dirname=dirname
10525 else
10526   as_dirname=false
10527 fi
10528
10529 ECHO_C= ECHO_N= ECHO_T=
10530 case `echo -n x` in
10531 -n*)
10532   case `echo 'x\c'` in
10533   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
10534   *)   ECHO_C='\c';;
10535   esac;;
10536 *)
10537   ECHO_N='-n';;
10538 esac
10539
10540 if expr a : '\(a\)' >/dev/null 2>&1 &&
10541    test "X`expr 00001 : '.*\(...\)'`" = X001; then
10542   as_expr=expr
10543 else
10544   as_expr=false
10545 fi
10546
10547 rm -f conf$$ conf$$.exe conf$$.file
10548 if test -d conf$$.dir; then
10549   rm -f conf$$.dir/conf$$.file
10550 else
10551   rm -f conf$$.dir
10552   mkdir conf$$.dir
10553 fi
10554 echo >conf$$.file
10555 if ln -s conf$$.file conf$$ 2>/dev/null; then
10556   as_ln_s='ln -s'
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 ||
10562     as_ln_s='cp -p'
10563 elif ln conf$$.file conf$$ 2>/dev/null; then
10564   as_ln_s=ln
10565 else
10566   as_ln_s='cp -p'
10567 fi
10568 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10569 rmdir conf$$.dir 2>/dev/null
10570
10571 if mkdir -p . 2>/dev/null; then
10572   as_mkdir_p=:
10573 else
10574   test -d ./-p && rmdir ./-p
10575   as_mkdir_p=false
10576 fi
10577
10578 if test -x / >/dev/null 2>&1; then
10579   as_test_x='test -x'
10580 else
10581   if ls -dL / >/dev/null 2>&1; then
10582     as_ls_L_option=L
10583   else
10584     as_ls_L_option=
10585   fi
10586   as_test_x='
10587     eval sh -c '\''
10588       if test -d "$1"; then
10589         test -d "$1/.";
10590       else
10591         case $1 in
10592         -*)set "./$1";;
10593         esac;
10594         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10595         ???[sx]*):;;*)false;;esac;fi
10596     '\'' sh
10597   '
10598 fi
10599 as_executable_p=$as_test_x
10600
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'"
10603
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'"
10606
10607
10608 exec 6>&1
10609
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.
10613 ac_log="
10614 This file was extended by nettle $as_me 2.1, which was
10615 generated by GNU Autoconf 2.61.  Invocation command line was
10616
10617   CONFIG_FILES    = $CONFIG_FILES
10618   CONFIG_HEADERS  = $CONFIG_HEADERS
10619   CONFIG_LINKS    = $CONFIG_LINKS
10620   CONFIG_COMMANDS = $CONFIG_COMMANDS
10621   $ $0 $@
10622
10623 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10624 "
10625
10626 _ACEOF
10627
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"
10634
10635 _ACEOF
10636
10637 cat >>$CONFIG_STATUS <<\_ACEOF
10638 ac_cs_usage="\
10639 \`$as_me' instantiates files from templates according to the
10640 current configuration.
10641
10642 Usage: $0 [OPTIONS] [FILE]...
10643
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
10653
10654 Configuration files:
10655 $config_files
10656
10657 Configuration headers:
10658 $config_headers
10659
10660 Configuration links:
10661 $config_links
10662
10663 Configuration commands:
10664 $config_commands
10665
10666 Report bugs to <bug-autoconf@gnu.org>."
10667
10668 _ACEOF
10669 cat >>$CONFIG_STATUS <<_ACEOF
10670 ac_cs_version="\\
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'`\\"
10674
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."
10678
10679 ac_pwd='$ac_pwd'
10680 srcdir='$srcdir'
10681 INSTALL='$INSTALL'
10682 MKDIR_P='$MKDIR_P'
10683 _ACEOF
10684
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.
10688 ac_need_defaults=:
10689 while test $# != 0
10690 do
10691   case $1 in
10692   --*=*)
10693     ac_option=`expr "X$1" : 'X\([^=]*\)='`
10694     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10695     ac_shift=:
10696     ;;
10697   *)
10698     ac_option=$1
10699     ac_optarg=$2
10700     ac_shift=shift
10701     ;;
10702   esac
10703
10704   case $ac_option in
10705   # Handling of the options.
10706   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10707     ac_cs_recheck=: ;;
10708   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10709     echo "$ac_cs_version"; exit ;;
10710   --debug | --debu | --deb | --de | --d | -d )
10711     debug=: ;;
10712   --file | --fil | --fi | --f )
10713     $ac_shift
10714     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10715     ac_need_defaults=false;;
10716   --header | --heade | --head | --hea )
10717     $ac_shift
10718     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10719     ac_need_defaults=false;;
10720   --he | --h)
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)
10729     ac_cs_silent=: ;;
10730
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; }; } ;;
10735
10736   *) ac_config_targets="$ac_config_targets $1"
10737      ac_need_defaults=false ;;
10738
10739   esac
10740   shift
10741 done
10742
10743 ac_configure_extra_args=
10744
10745 if $ac_cs_silent; then
10746   exec 6>/dev/null
10747   ac_configure_extra_args="$ac_configure_extra_args --silent"
10748 fi
10749
10750 _ACEOF
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
10757 fi
10758
10759 _ACEOF
10760 cat >>$CONFIG_STATUS <<\_ACEOF
10761 exec 5>>config.log
10762 {
10763   echo
10764   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10765 ## Running $as_me. ##
10766 _ASBOX
10767   echo "$ac_log"
10768 } >&5
10769
10770 _ACEOF
10771 cat >>$CONFIG_STATUS <<_ACEOF
10772 #
10773 # INIT-COMMANDS
10774 #
10775 # variables for create stdint.h replacement
10776 PACKAGE="$PACKAGE"
10777 VERSION="$VERSION"
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"
10792
10793
10794 _ACEOF
10795
10796 cat >>$CONFIG_STATUS <<\_ACEOF
10797
10798 # Handling of arguments.
10799 for ac_config_target in $ac_config_targets
10800 do
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" ;;
10812
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; }; };;
10816   esac
10817 done
10818
10819
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
10829 fi
10830
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'.
10837 $debug ||
10838 {
10839   tmp=
10840   trap 'exit_status=$?
10841   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10842 ' 0
10843   trap '{ (exit 1); exit 1; }' 1 2 13 15
10844 }
10845 # Create a (secure) tmp directory for tmp files.
10846
10847 {
10848   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10849   test -n "$tmp" && test -d "$tmp"
10850 }  ||
10851 {
10852   tmp=./conf$$-$RANDOM
10853   (umask 077 && mkdir "$tmp")
10854 } ||
10855 {
10856    echo "$me: cannot create a temporary directory in ." >&2
10857    { (exit 1); exit 1; }
10858 }
10859
10860 #
10861 # Set up the sed scripts for CONFIG_FILES section.
10862 #
10863
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
10867
10868 _ACEOF
10869
10870
10871
10872 ac_delim='%!_!# '
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
10920 CC!$CC$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
10927 CXX!$CXX$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
10933 NM!$NM$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
10963 M4!$M4$ac_delim
10964 CPP!$CPP$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
10972 _ACEOF
10973
10974   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
10975     break
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; }; }
10980   else
10981     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10982   fi
10983 done
10984
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`
10989 fi
10990
10991 cat >>$CONFIG_STATUS <<_ACEOF
10992 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
10993 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10994 _ACEOF
10995 sed '
10996 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10997 s/^/s,@/; s/!/@,|#_!!_#|/
10998 :n
10999 t n
11000 s/'"$ac_delim"'$/,g/; t
11001 s/$/\\/; p
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
11006 CEOF$ac_eof
11007 _ACEOF
11008
11009
11010 ac_delim='%!_!# '
11011 for ac_last_try in false false false false false :; do
11012   cat >conf$$subs.sed <<_ACEOF
11013 LTLIBOBJS!$LTLIBOBJS$ac_delim
11014 _ACEOF
11015
11016   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 1; then
11017     break
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; }; }
11022   else
11023     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11024   fi
11025 done
11026
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`
11031 fi
11032
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
11036 _ACEOF
11037 sed '
11038 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11039 s/^/s,@/; s/!/@,|#_!!_#|/
11040 :n
11041 t n
11042 s/'"$ac_delim"'$/,g/; t
11043 s/$/\\/; p
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
11048 :end
11049 s/|#_!!_#|//g
11050 CEOF$ac_eof
11051 _ACEOF
11052
11053
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}:*/:/
11062 s/:*@srcdir@:*/:/
11063 s/^\([^=]*=[     ]*\):*/\1/
11064 s/:*$//
11065 s/^[^=]*=[       ]*$//
11066 }'
11067 fi
11068
11069 cat >>$CONFIG_STATUS <<\_ACEOF
11070 fi # test -n "$CONFIG_FILES"
11071
11072
11073 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS
11074 do
11075   case $ac_tag in
11076   :[FHLC]) ac_mode=$ac_tag; continue;;
11077   esac
11078   case $ac_mode$ac_tag in
11079   :[FHL]*:*);;
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;;
11085   esac
11086   ac_save_IFS=$IFS
11087   IFS=:
11088   set x $ac_tag
11089   IFS=$ac_save_IFS
11090   shift
11091   ac_file=$1
11092   shift
11093
11094   case $ac_mode in
11095   :L) ac_source=$1;;
11096   :[FH])
11097     ac_file_inputs=
11098     for ac_f
11099     do
11100       case $ac_f 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 `:'.
11105          test -f "$ac_f" ||
11106            case $ac_f in
11107            [\\/$]*) false;;
11108            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11109            esac ||
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; }; };;
11113       esac
11114       ac_file_inputs="$ac_file_inputs $ac_f"
11115     done
11116
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;}
11126     fi
11127
11128     case $ac_tag in
11129     *:-:* | *:-) cat >"$tmp/stdin";;
11130     esac
11131     ;;
11132   esac
11133
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 ||
11139 echo X"$ac_file" |
11140     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11141             s//\1/
11142             q
11143           }
11144           /^X\(\/\/\)[^/].*/{
11145             s//\1/
11146             q
11147           }
11148           /^X\(\/\/\)$/{
11149             s//\1/
11150             q
11151           }
11152           /^X\(\/\).*/{
11153             s//\1/
11154             q
11155           }
11156           s/.*/./; q'`
11157   { as_dir="$ac_dir"
11158   case $as_dir in #(
11159   -*) as_dir=./$as_dir;;
11160   esac
11161   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11162     as_dirs=
11163     while :; do
11164       case $as_dir in #(
11165       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11166       *) as_qdir=$as_dir;;
11167       esac
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 ||
11174 echo X"$as_dir" |
11175     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11176             s//\1/
11177             q
11178           }
11179           /^X\(\/\/\)[^/].*/{
11180             s//\1/
11181             q
11182           }
11183           /^X\(\/\/\)$/{
11184             s//\1/
11185             q
11186           }
11187           /^X\(\/\).*/{
11188             s//\1/
11189             q
11190           }
11191           s/.*/./; q'`
11192       test -d "$as_dir" && break
11193     done
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; }; }; }
11198   ac_builddir=.
11199
11200 case "$ac_dir" in
11201 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11202 *)
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/ ;;
11209   esac ;;
11210 esac
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
11215
11216 case $srcdir in
11217   .)  # We are building in place.
11218     ac_srcdir=.
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 ;;
11229 esac
11230 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11231
11232
11233   case $ac_mode in
11234   :F)
11235   #
11236   # CONFIG_FILE
11237   #
11238
11239   case $INSTALL in
11240   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11241   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11242   esac
11243   ac_MKDIR_P=$MKDIR_P
11244   case $MKDIR_P in
11245   [\\/$]* | ?:[\\/]* ) ;;
11246   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11247   esac
11248 _ACEOF
11249
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=
11254
11255 case `sed -n '/datarootdir/ {
11256   p
11257   q
11258 }
11259 /@datadir@/p
11260 /@docdir@/p
11261 /@infodir@/p
11262 /@localedir@/p
11263 /@mandir@/p
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;}
11269 _ACEOF
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' ;;
11278 esac
11279 _ACEOF
11280
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
11285   sed "$ac_vpsub
11286 $extrasub
11287 _ACEOF
11288 cat >>$CONFIG_STATUS <<\_ACEOF
11289 :t
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
11304
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;}
11312
11313   rm -f "$tmp/stdin"
11314   case $ac_file in
11315   -) cat "$tmp/out"; rm -f "$tmp/out";;
11316   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
11317   esac
11318  ;;
11319   :H)
11320   #
11321   # CONFIG_HEADER
11322   #
11323 _ACEOF
11324
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'
11342 ac_dC=' '
11343 ac_dD=' ,'
11344
11345 uniq confdefs.h |
11346   sed -n '
11347         t rset
11348         :rset
11349         s/^[     ]*#[    ]*define[       ][      ]*//
11350         t ok
11351         d
11352         :ok
11353         s/[\\&,]/\\&/g
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
11357
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.)
11363 echo 's/ $//
11364 s,^[     #]*u.*,/* & */,' >>conftest.defines
11365
11366 # Break up conftest.defines:
11367 ac_max_sed_lines=50
11368
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"
11372 # et cetera.
11373 ac_in='$ac_file_inputs'
11374 ac_out='"$tmp/out1"'
11375 ac_nxt='"$tmp/out2"'
11376
11377 while :
11378 do
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
11385 b
11386 :def
11387 _ACEOF
11388   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
11389   echo 'CEOF
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
11396 done
11397 rm -f conftest.defines conftest.tail
11398
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;}
11407     else
11408       rm -f $ac_file
11409       mv "$tmp/config.h" $ac_file
11410     fi
11411   else
11412     echo "/* $configure_input  */"
11413     cat "$ac_result"
11414   fi
11415   rm -f "$tmp/out12"
11416  ;;
11417   :L)
11418   #
11419   # CONFIG_LINK
11420   #
11421
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;}
11424
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; }; }
11429   fi
11430   rm -f "$ac_file"
11431
11432   # Try a relative symlink, then a hard link, then a copy.
11433   case $srcdir in
11434   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
11435       *) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;;
11436   esac
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; }; }
11443  ;;
11444   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
11445 echo "$as_me: executing $ac_file commands" >&6;}
11446  ;;
11447   esac
11448
11449
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)
11453  ;;
11454     "$ac_stdint_h":C)
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
11458
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
11466 fi
11467
11468 cat >>$ac_stdint <<STDINT_EOF
11469
11470 /* ................... shortcircuit part ........................... */
11471
11472 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
11473 #include <stdint.h>
11474 #else
11475 #include <stddef.h>
11476
11477 /* .................... configured part ............................ */
11478
11479 STDINT_EOF
11480
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
11485 else
11486   echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
11487 fi
11488
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
11493 else
11494   echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
11495 fi
11496
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
11501 else
11502   echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
11503 fi
11504
11505 echo "" >>$ac_stdint
11506
11507 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
11508   echo "#include <$ac_header>" >>$ac_stdint
11509   echo "" >>$ac_stdint
11510 fi fi
11511
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
11515 else
11516 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
11517 fi
11518 if test "$ac_cv_type_u_int64_t" = "yes" ; then
11519 echo "#define   _STDINT_HAVE_U_INT64_T" "1"  >>$ac_stdint
11520 else
11521 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
11522 fi
11523 echo "" >>$ac_stdint
11524
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
11529 else
11530 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
11531 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
11532 fi
11533 echo "" >>$ac_stdint
11534
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
11538 else
11539 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
11540 fi
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
11544 else
11545 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
11546 fi
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
11550 else
11551 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
11552 fi
11553 echo "" >>$ac_stdint
11554
11555   cat >>$ac_stdint <<STDINT_EOF
11556 /* .................... detections part ............................ */
11557
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
11563 #else
11564 #define _STDINT_HAVE_U_INT_TYPES
11565 #endif
11566 #endif
11567 #endif
11568
11569 #ifdef _STDINT_HAVE_U_INT_TYPES
11570 #undef _STDINT_NEED_INT_MODEL_T
11571 #endif
11572
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
11577 #endif
11578 #endif
11579 #endif
11580
11581 #ifndef _STDINT_HAVE_INT_LEAST32_T
11582 #define _STDINT_NEED_INT_LEAST_T
11583 #endif
11584
11585 #ifndef _STDINT_HAVE_INT_FAST32_T
11586 #define _STDINT_NEED_INT_FAST_T
11587 #endif
11588
11589 #ifndef _STDINT_HEADER_INTPTR
11590 #define _STDINT_NEED_INTPTR_T
11591 #ifndef _STDINT_HAVE_INTMAX_T
11592 #define _STDINT_NEED_INTMAX_T
11593 #endif
11594 #endif
11595
11596
11597 /* .................... definition part ............................ */
11598
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;
11606 #endif
11607 #endif
11608
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;
11615
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;
11621
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;
11628 #endif
11629
11630 #elif defined __alpha || (defined __mips && defined _ABIN32)
11631 #if !defined _NO_LONGLONG
11632 typedef long int64_t;
11633 typedef unsigned long uint64_t;
11634 #endif
11635   /* compiler/cpu type to define int64_t */
11636 #endif
11637 #endif
11638 #endif
11639
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;
11645
11646 /* glibc compatibility */
11647 #ifndef __int8_t_defined
11648 #define __int8_t_defined
11649 #endif
11650 #endif
11651
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) */
11656
11657
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;
11669 #endif
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;
11681 #endif
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;
11693 #endif
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;
11699 #endif
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;
11710 #endif
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;
11716 #endif
11717 #else
11718 #define _STDINT_NO_INT32_T
11719 #endif
11720 #else
11721 #define _STDINT_NO_INT8_T
11722 #define _STDINT_NO_INT32_T
11723 #endif
11724 #endif
11725
11726 /*
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
11732  * implemented.
11733  */
11734
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;
11741 #endif
11742
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;
11748 #endif
11749   /* least types */
11750 #endif
11751
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;
11758 #endif
11759
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;
11765 #endif
11766   /* fast types */
11767 #endif
11768
11769 #ifdef _STDINT_NEED_INTMAX_T
11770 #ifdef _HAVE_UINT64_T
11771 typedef  int64_t       intmax_t;
11772 typedef uint64_t      uintmax_t;
11773 #else
11774 typedef          long  intmax_t;
11775 typedef unsigned long uintmax_t;
11776 #endif
11777 #endif
11778
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;
11795 #endif
11796 #endif
11797 #endif
11798
11799   /* shortcircuit*/
11800 #endif
11801   /* once */
11802 #endif
11803 #endif
11804 STDINT_EOF
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;}
11808     else
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11816             s//\1/
11817             q
11818           }
11819           /^X\(\/\/\)[^/].*/{
11820             s//\1/
11821             q
11822           }
11823           /^X\(\/\/\)$/{
11824             s//\1/
11825             q
11826           }
11827           /^X\(\/\).*/{
11828             s//\1/
11829             q
11830           }
11831           s/.*/./; q'`
11832       { as_dir="$ac_dir"
11833   case $as_dir in #(
11834   -*) as_dir=./$as_dir;;
11835   esac
11836   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11837     as_dirs=
11838     while :; do
11839       case $as_dir in #(
11840       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11841       *) as_qdir=$as_dir;;
11842       esac
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 ||
11849 echo X"$as_dir" |
11850     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11851             s//\1/
11852             q
11853           }
11854           /^X\(\/\/\)[^/].*/{
11855             s//\1/
11856             q
11857           }
11858           /^X\(\/\/\)$/{
11859             s//\1/
11860             q
11861           }
11862           /^X\(\/\).*/{
11863             s//\1/
11864             q
11865           }
11866           s/.*/./; q'`
11867       test -d "$as_dir" && break
11868     done
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; }; }; }
11873       rm -f $ac_stdint_h
11874       mv $ac_stdint $ac_stdint_h
11875     fi
11876  ;;
11877
11878   esac
11879 done # for ac_tag
11880
11881
11882 { (exit 0); exit 0; }
11883 _ACEOF
11884 chmod +x $CONFIG_STATUS
11885 ac_clean_files=$ac_clean_files_save
11886
11887
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
11897   ac_cs_success=:
11898   ac_config_status_args=
11899   test "$silent" = yes &&
11900     ac_config_status_args="$ac_config_status_args --quiet"
11901   exec 5>/dev/null
11902   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11903   exec 5>>config.log
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; }
11907 fi
11908
11909