Imported Upstream version 2.4
[platform/upstream/nettle.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for nettle 2.4.
4 #
5 # Report bugs to <nettle-bugs@lists.lysator.liu.se>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 case $0 in #((
95   *[\\/]* ) as_myself=$0 ;;
96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99   IFS=$as_save_IFS
100   test -z "$as_dir" && as_dir=.
101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102   done
103 IFS=$as_save_IFS
104
105      ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110   as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114   exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there.  '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140   emulate sh
141   NULLCMD=:
142   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143   # is contrary to our usage.  Disable this feature.
144   alias -g '\${1+\"\$@\"}'='\"\$@\"'
145   setopt NO_GLOB_SUBST
146 else
147   case \`(set -o) 2>/dev/null\` in #(
148   *posix*) :
149     set -o posix ;; #(
150   *) :
151      ;;
152 esac
153 fi
154 "
155   as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169   exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177   if (eval "$as_required") 2>/dev/null; then :
178   as_have_required=yes
179 else
180   as_have_required=no
181 fi
182   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184 else
185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 do
189   IFS=$as_save_IFS
190   test -z "$as_dir" && as_dir=.
191   as_found=:
192   case $as_dir in #(
193          /*)
194            for as_base in sh bash ksh sh5; do
195              # Try only shells that exist, to save several forks.
196              as_shell=$as_dir/$as_base
197              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   CONFIG_SHELL=$as_shell as_have_required=yes
200                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201   break 2
202 fi
203 fi
204            done;;
205        esac
206   as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210   CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
213
214
215       if test "x$CONFIG_SHELL" != x; then :
216   # We cannot yet assume a decent shell, so we have to provide a
217         # neutralization value for shells without unset; and this also
218         # works around shells that cannot unset nonexistent variables.
219         BASH_ENV=/dev/null
220         ENV=/dev/null
221         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222         export CONFIG_SHELL
223         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 fi
225
226     if test x$as_have_required = xno; then :
227   $as_echo "$0: This script requires a shell more modern than all"
228   $as_echo "$0: the shells that I found on your system."
229   if test x${ZSH_VERSION+set} = xset ; then
230     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232   else
233     $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: nettle-bugs@lists.lysator.liu.se about your system,
235 $0: including any error possibly output before this
236 $0: message. Then install a modern shell, or manually run
237 $0: the script under such a shell if you do have one."
238   fi
239   exit 1
240 fi
241 fi
242 fi
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
248
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
256 {
257   { eval $1=; unset $1;}
258 }
259 as_unset=as_fn_unset
260
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
265 {
266   return $1
267 } # as_fn_set_status
268
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
273 {
274   set +e
275   as_fn_set_status $1
276   exit $1
277 } # as_fn_exit
278
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
283 {
284
285   case $as_dir in #(
286   -*) as_dir=./$as_dir;;
287   esac
288   test -d "$as_dir" || eval $as_mkdir_p || {
289     as_dirs=
290     while :; do
291       case $as_dir in #(
292       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293       *) as_qdir=$as_dir;;
294       esac
295       as_dirs="'$as_qdir' $as_dirs"
296       as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298          X"$as_dir" : 'X\(//\)[^/]' \| \
299          X"$as_dir" : 'X\(//\)$' \| \
300          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303             s//\1/
304             q
305           }
306           /^X\(\/\/\)[^/].*/{
307             s//\1/
308             q
309           }
310           /^X\(\/\/\)$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\).*/{
315             s//\1/
316             q
317           }
318           s/.*/./; q'`
319       test -d "$as_dir" && break
320     done
321     test -z "$as_dirs" || eval "mkdir $as_dirs"
322   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
323
324
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333   eval 'as_fn_append ()
334   {
335     eval $1+=\$2
336   }'
337 else
338   as_fn_append ()
339   {
340     eval $1=\$$1\$2
341   }
342 fi # as_fn_append
343
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350   eval 'as_fn_arith ()
351   {
352     as_val=$(( $* ))
353   }'
354 else
355   as_fn_arith ()
356   {
357     as_val=`expr "$@" || test $? -eq 1`
358   }
359 fi # as_fn_arith
360
361
362 # as_fn_error STATUS ERROR [LINENO LOG_FD]
363 # ----------------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with STATUS, using 1 if that was 0.
367 as_fn_error ()
368 {
369   as_status=$1; test $as_status -eq 0 && as_status=1
370   if test "$4"; then
371     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
373   fi
374   $as_echo "$as_me: error: $2" >&2
375   as_fn_exit $as_status
376 } # as_fn_error
377
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379    test "X`expr 00001 : '.*\(...\)'`" = X001; then
380   as_expr=expr
381 else
382   as_expr=false
383 fi
384
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386   as_basename=basename
387 else
388   as_basename=false
389 fi
390
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392   as_dirname=dirname
393 else
394   as_dirname=false
395 fi
396
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399          X"$0" : 'X\(//\)$' \| \
400          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402     sed '/^.*\/\([^/][^/]*\)\/*$/{
403             s//\1/
404             q
405           }
406           /^X\/\(\/\/\)$/{
407             s//\1/
408             q
409           }
410           /^X\/\(\/\).*/{
411             s//\1/
412             q
413           }
414           s/.*/./; q'`
415
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424   as_lineno_1=$LINENO as_lineno_1a=$LINENO
425   as_lineno_2=$LINENO as_lineno_2a=$LINENO
426   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
429   sed -n '
430     p
431     /[$]LINENO/=
432   ' <$as_myself |
433     sed '
434       s/[$]LINENO.*/&-/
435       t lineno
436       b
437       :lineno
438       N
439       :loop
440       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441       t loop
442       s/-\n.*//
443     ' >$as_me.lineno &&
444   chmod +x "$as_me.lineno" ||
445     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447   # Don't try to exec as it changes $[0], causing all sort of problems
448   # (the dirname of $[0] is not the place where we might find the
449   # original and so on.  Autoconf is especially sensitive to this).
450   . "./$as_me.lineno"
451   # Exit status is that of the last command.
452   exit
453 }
454
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458   case `echo 'xy\c'` in
459   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
460   xy)  ECHO_C='\c';;
461   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
462        ECHO_T=' ';;
463   esac;;
464 *)
465   ECHO_N='-n';;
466 esac
467
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470   rm -f conf$$.dir/conf$$.file
471 else
472   rm -f conf$$.dir
473   mkdir conf$$.dir 2>/dev/null
474 fi
475 if (echo >conf$$.file) 2>/dev/null; then
476   if ln -s conf$$.file conf$$ 2>/dev/null; then
477     as_ln_s='ln -s'
478     # ... but there are two gotchas:
479     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481     # In both cases, we have to default to `cp -p'.
482     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483       as_ln_s='cp -p'
484   elif ln conf$$.file conf$$ 2>/dev/null; then
485     as_ln_s=ln
486   else
487     as_ln_s='cp -p'
488   fi
489 else
490   as_ln_s='cp -p'
491 fi
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
494
495 if mkdir -p . 2>/dev/null; then
496   as_mkdir_p='mkdir -p "$as_dir"'
497 else
498   test -d ./-p && rmdir ./-p
499   as_mkdir_p=false
500 fi
501
502 if test -x / >/dev/null 2>&1; then
503   as_test_x='test -x'
504 else
505   if ls -dL / >/dev/null 2>&1; then
506     as_ls_L_option=L
507   else
508     as_ls_L_option=
509   fi
510   as_test_x='
511     eval sh -c '\''
512       if test -d "$1"; then
513         test -d "$1/.";
514       else
515         case $1 in #(
516         -*)set "./$1";;
517         esac;
518         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519         ???[sx]*):;;*)false;;esac;fi
520     '\'' sh
521   '
522 fi
523 as_executable_p=$as_test_x
524
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532 test -n "$DJDIR" || exec 7<&0 </dev/null
533 exec 6>&1
534
535 # Name of the host.
536 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
537 # so uname gets run too.
538 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
539
540 #
541 # Initializations.
542 #
543 ac_default_prefix=/usr/local
544 ac_clean_files=
545 ac_config_libobj_dir=.
546 LIBOBJS=
547 cross_compiling=no
548 subdirs=
549 MFLAGS=
550 MAKEFLAGS=
551
552 # Identity of this package.
553 PACKAGE_NAME='nettle'
554 PACKAGE_TARNAME='nettle'
555 PACKAGE_VERSION='2.4'
556 PACKAGE_STRING='nettle 2.4'
557 PACKAGE_BUGREPORT='nettle-bugs@lists.lysator.liu.se'
558 PACKAGE_URL=''
559
560 ac_unique_file="arcfour.c"
561 # Factoring default headers for most tests.
562 ac_includes_default="\
563 #include <stdio.h>
564 #ifdef HAVE_SYS_TYPES_H
565 # include <sys/types.h>
566 #endif
567 #ifdef HAVE_SYS_STAT_H
568 # include <sys/stat.h>
569 #endif
570 #ifdef STDC_HEADERS
571 # include <stdlib.h>
572 # include <stddef.h>
573 #else
574 # ifdef HAVE_STDLIB_H
575 #  include <stdlib.h>
576 # endif
577 #endif
578 #ifdef HAVE_STRING_H
579 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
580 #  include <memory.h>
581 # endif
582 # include <string.h>
583 #endif
584 #ifdef HAVE_STRINGS_H
585 # include <strings.h>
586 #endif
587 #ifdef HAVE_INTTYPES_H
588 # include <inttypes.h>
589 #endif
590 #ifdef HAVE_STDINT_H
591 # include <stdint.h>
592 #endif
593 #ifdef HAVE_UNISTD_H
594 # include <unistd.h>
595 #endif"
596
597 ac_subst_vars='LTLIBOBJS
598 BENCH_LIBS
599 OPENSSL_LIBFLAGS
600 IF_SHARED
601 IF_HOGWEED
602 LIBOBJS
603 ALLOCA
604 EGREP
605 GREP
606 CPP
607 M4
608 LIBHOGWEED_LIBS
609 LIBHOGWEED_LINK
610 LIBHOGWEED_FILE
611 LIBHOGWEED_SONAME
612 LIBHOGWEED_FORLINK
613 LIBHOGWEED_MINOR
614 LIBHOGWEED_MAJOR
615 LIBNETTLE_LIBS
616 LIBNETTLE_LINK
617 LIBNETTLE_FILE
618 LIBNETTLE_SONAME
619 LIBNETTLE_FORLINK
620 LIBNETTLE_MINOR
621 LIBNETTLE_MAJOR
622 SHLIBCFLAGS
623 ASM_ALIGN_LOG
624 ASM_MARK_NOEXEC_STACK
625 ASM_TYPE_FUNCTION
626 ASM_ELF_STYLE
627 ASM_SYMBOL_PREFIX
628 CCPIC_MAYBE
629 CCPIC
630 DEP_PROCESS
631 DEP_FLAGS
632 DEP_INCLUDE
633 MKDIR_P
634 INSTALL_DATA
635 INSTALL_SCRIPT
636 INSTALL_PROGRAM
637 OBJDUMP
638 NM
639 RANLIB
640 SET_MAKE
641 CXX_TESTS
642 ac_ct_CXX
643 CXXFLAGS
644 CXX
645 OBJEXT
646 EXEEXT
647 ac_ct_CC
648 CPPFLAGS
649 LDFLAGS
650 CFLAGS
651 CC
652 host_os
653 host_vendor
654 host_cpu
655 host
656 build_os
657 build_vendor
658 build_cpu
659 build
660 target_alias
661 host_alias
662 build_alias
663 LIBS
664 ECHO_T
665 ECHO_N
666 ECHO_C
667 DEFS
668 mandir
669 localedir
670 libdir
671 psdir
672 pdfdir
673 dvidir
674 htmldir
675 infodir
676 docdir
677 oldincludedir
678 includedir
679 localstatedir
680 sharedstatedir
681 sysconfdir
682 datadir
683 datarootdir
684 libexecdir
685 sbindir
686 bindir
687 program_transform_name
688 prefix
689 exec_prefix
690 PACKAGE_URL
691 PACKAGE_BUGREPORT
692 PACKAGE_STRING
693 PACKAGE_VERSION
694 PACKAGE_TARNAME
695 PACKAGE_NAME
696 PATH_SEPARATOR
697 SHELL'
698 ac_subst_files=''
699 ac_user_opts='
700 enable_option_checking
701 with_include_path
702 with_lib_path
703 enable_public_key
704 enable_assembler
705 enable_shared
706 enable_pic
707 enable_openssl
708 enable_gcov
709 enable_dependency_tracking
710 '
711       ac_precious_vars='build_alias
712 host_alias
713 target_alias
714 CC
715 CFLAGS
716 LDFLAGS
717 LIBS
718 CPPFLAGS
719 CXX
720 CXXFLAGS
721 CCC
722 CPP'
723
724
725 # Initialize some variables set by options.
726 ac_init_help=
727 ac_init_version=false
728 ac_unrecognized_opts=
729 ac_unrecognized_sep=
730 # The variables have the same names as the options, with
731 # dashes changed to underlines.
732 cache_file=/dev/null
733 exec_prefix=NONE
734 no_create=
735 no_recursion=
736 prefix=NONE
737 program_prefix=NONE
738 program_suffix=NONE
739 program_transform_name=s,x,x,
740 silent=
741 site=
742 srcdir=
743 verbose=
744 x_includes=NONE
745 x_libraries=NONE
746
747 # Installation directory options.
748 # These are left unexpanded so users can "make install exec_prefix=/foo"
749 # and all the variables that are supposed to be based on exec_prefix
750 # by default will actually change.
751 # Use braces instead of parens because sh, perl, etc. also accept them.
752 # (The list follows the same order as the GNU Coding Standards.)
753 bindir='${exec_prefix}/bin'
754 sbindir='${exec_prefix}/sbin'
755 libexecdir='${exec_prefix}/libexec'
756 datarootdir='${prefix}/share'
757 datadir='${datarootdir}'
758 sysconfdir='${prefix}/etc'
759 sharedstatedir='${prefix}/com'
760 localstatedir='${prefix}/var'
761 includedir='${prefix}/include'
762 oldincludedir='/usr/include'
763 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
764 infodir='${datarootdir}/info'
765 htmldir='${docdir}'
766 dvidir='${docdir}'
767 pdfdir='${docdir}'
768 psdir='${docdir}'
769 libdir='${exec_prefix}/lib'
770 localedir='${datarootdir}/locale'
771 mandir='${datarootdir}/man'
772
773 ac_prev=
774 ac_dashdash=
775 for ac_option
776 do
777   # If the previous option needs an argument, assign it.
778   if test -n "$ac_prev"; then
779     eval $ac_prev=\$ac_option
780     ac_prev=
781     continue
782   fi
783
784   case $ac_option in
785   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
786   *=)   ac_optarg= ;;
787   *)    ac_optarg=yes ;;
788   esac
789
790   # Accept the important Cygnus configure options, so we can diagnose typos.
791
792   case $ac_dashdash$ac_option in
793   --)
794     ac_dashdash=yes ;;
795
796   -bindir | --bindir | --bindi | --bind | --bin | --bi)
797     ac_prev=bindir ;;
798   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
799     bindir=$ac_optarg ;;
800
801   -build | --build | --buil | --bui | --bu)
802     ac_prev=build_alias ;;
803   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
804     build_alias=$ac_optarg ;;
805
806   -cache-file | --cache-file | --cache-fil | --cache-fi \
807   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
808     ac_prev=cache_file ;;
809   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
810   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
811     cache_file=$ac_optarg ;;
812
813   --config-cache | -C)
814     cache_file=config.cache ;;
815
816   -datadir | --datadir | --datadi | --datad)
817     ac_prev=datadir ;;
818   -datadir=* | --datadir=* | --datadi=* | --datad=*)
819     datadir=$ac_optarg ;;
820
821   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
822   | --dataroo | --dataro | --datar)
823     ac_prev=datarootdir ;;
824   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
825   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
826     datarootdir=$ac_optarg ;;
827
828   -disable-* | --disable-*)
829     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
830     # Reject names that are not valid shell variable names.
831     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
832       as_fn_error $? "invalid feature name: $ac_useropt"
833     ac_useropt_orig=$ac_useropt
834     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
835     case $ac_user_opts in
836       *"
837 "enable_$ac_useropt"
838 "*) ;;
839       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
840          ac_unrecognized_sep=', ';;
841     esac
842     eval enable_$ac_useropt=no ;;
843
844   -docdir | --docdir | --docdi | --doc | --do)
845     ac_prev=docdir ;;
846   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
847     docdir=$ac_optarg ;;
848
849   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
850     ac_prev=dvidir ;;
851   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
852     dvidir=$ac_optarg ;;
853
854   -enable-* | --enable-*)
855     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
856     # Reject names that are not valid shell variable names.
857     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
858       as_fn_error $? "invalid feature name: $ac_useropt"
859     ac_useropt_orig=$ac_useropt
860     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
861     case $ac_user_opts in
862       *"
863 "enable_$ac_useropt"
864 "*) ;;
865       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
866          ac_unrecognized_sep=', ';;
867     esac
868     eval enable_$ac_useropt=\$ac_optarg ;;
869
870   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
871   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
872   | --exec | --exe | --ex)
873     ac_prev=exec_prefix ;;
874   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
875   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
876   | --exec=* | --exe=* | --ex=*)
877     exec_prefix=$ac_optarg ;;
878
879   -gas | --gas | --ga | --g)
880     # Obsolete; use --with-gas.
881     with_gas=yes ;;
882
883   -help | --help | --hel | --he | -h)
884     ac_init_help=long ;;
885   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
886     ac_init_help=recursive ;;
887   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
888     ac_init_help=short ;;
889
890   -host | --host | --hos | --ho)
891     ac_prev=host_alias ;;
892   -host=* | --host=* | --hos=* | --ho=*)
893     host_alias=$ac_optarg ;;
894
895   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
896     ac_prev=htmldir ;;
897   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
898   | --ht=*)
899     htmldir=$ac_optarg ;;
900
901   -includedir | --includedir | --includedi | --included | --include \
902   | --includ | --inclu | --incl | --inc)
903     ac_prev=includedir ;;
904   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
905   | --includ=* | --inclu=* | --incl=* | --inc=*)
906     includedir=$ac_optarg ;;
907
908   -infodir | --infodir | --infodi | --infod | --info | --inf)
909     ac_prev=infodir ;;
910   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
911     infodir=$ac_optarg ;;
912
913   -libdir | --libdir | --libdi | --libd)
914     ac_prev=libdir ;;
915   -libdir=* | --libdir=* | --libdi=* | --libd=*)
916     libdir=$ac_optarg ;;
917
918   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
919   | --libexe | --libex | --libe)
920     ac_prev=libexecdir ;;
921   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
922   | --libexe=* | --libex=* | --libe=*)
923     libexecdir=$ac_optarg ;;
924
925   -localedir | --localedir | --localedi | --localed | --locale)
926     ac_prev=localedir ;;
927   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
928     localedir=$ac_optarg ;;
929
930   -localstatedir | --localstatedir | --localstatedi | --localstated \
931   | --localstate | --localstat | --localsta | --localst | --locals)
932     ac_prev=localstatedir ;;
933   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
934   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
935     localstatedir=$ac_optarg ;;
936
937   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
938     ac_prev=mandir ;;
939   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
940     mandir=$ac_optarg ;;
941
942   -nfp | --nfp | --nf)
943     # Obsolete; use --without-fp.
944     with_fp=no ;;
945
946   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
947   | --no-cr | --no-c | -n)
948     no_create=yes ;;
949
950   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
951   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
952     no_recursion=yes ;;
953
954   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
955   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
956   | --oldin | --oldi | --old | --ol | --o)
957     ac_prev=oldincludedir ;;
958   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
959   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
960   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
961     oldincludedir=$ac_optarg ;;
962
963   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
964     ac_prev=prefix ;;
965   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
966     prefix=$ac_optarg ;;
967
968   -program-prefix | --program-prefix | --program-prefi | --program-pref \
969   | --program-pre | --program-pr | --program-p)
970     ac_prev=program_prefix ;;
971   -program-prefix=* | --program-prefix=* | --program-prefi=* \
972   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
973     program_prefix=$ac_optarg ;;
974
975   -program-suffix | --program-suffix | --program-suffi | --program-suff \
976   | --program-suf | --program-su | --program-s)
977     ac_prev=program_suffix ;;
978   -program-suffix=* | --program-suffix=* | --program-suffi=* \
979   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
980     program_suffix=$ac_optarg ;;
981
982   -program-transform-name | --program-transform-name \
983   | --program-transform-nam | --program-transform-na \
984   | --program-transform-n | --program-transform- \
985   | --program-transform | --program-transfor \
986   | --program-transfo | --program-transf \
987   | --program-trans | --program-tran \
988   | --progr-tra | --program-tr | --program-t)
989     ac_prev=program_transform_name ;;
990   -program-transform-name=* | --program-transform-name=* \
991   | --program-transform-nam=* | --program-transform-na=* \
992   | --program-transform-n=* | --program-transform-=* \
993   | --program-transform=* | --program-transfor=* \
994   | --program-transfo=* | --program-transf=* \
995   | --program-trans=* | --program-tran=* \
996   | --progr-tra=* | --program-tr=* | --program-t=*)
997     program_transform_name=$ac_optarg ;;
998
999   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1000     ac_prev=pdfdir ;;
1001   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1002     pdfdir=$ac_optarg ;;
1003
1004   -psdir | --psdir | --psdi | --psd | --ps)
1005     ac_prev=psdir ;;
1006   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1007     psdir=$ac_optarg ;;
1008
1009   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1010   | -silent | --silent | --silen | --sile | --sil)
1011     silent=yes ;;
1012
1013   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1014     ac_prev=sbindir ;;
1015   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1016   | --sbi=* | --sb=*)
1017     sbindir=$ac_optarg ;;
1018
1019   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1020   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1021   | --sharedst | --shareds | --shared | --share | --shar \
1022   | --sha | --sh)
1023     ac_prev=sharedstatedir ;;
1024   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1025   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1026   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1027   | --sha=* | --sh=*)
1028     sharedstatedir=$ac_optarg ;;
1029
1030   -site | --site | --sit)
1031     ac_prev=site ;;
1032   -site=* | --site=* | --sit=*)
1033     site=$ac_optarg ;;
1034
1035   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1036     ac_prev=srcdir ;;
1037   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1038     srcdir=$ac_optarg ;;
1039
1040   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1041   | --syscon | --sysco | --sysc | --sys | --sy)
1042     ac_prev=sysconfdir ;;
1043   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1044   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1045     sysconfdir=$ac_optarg ;;
1046
1047   -target | --target | --targe | --targ | --tar | --ta | --t)
1048     ac_prev=target_alias ;;
1049   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1050     target_alias=$ac_optarg ;;
1051
1052   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1053     verbose=yes ;;
1054
1055   -version | --version | --versio | --versi | --vers | -V)
1056     ac_init_version=: ;;
1057
1058   -with-* | --with-*)
1059     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1060     # Reject names that are not valid shell variable names.
1061     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1062       as_fn_error $? "invalid package name: $ac_useropt"
1063     ac_useropt_orig=$ac_useropt
1064     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1065     case $ac_user_opts in
1066       *"
1067 "with_$ac_useropt"
1068 "*) ;;
1069       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1070          ac_unrecognized_sep=', ';;
1071     esac
1072     eval with_$ac_useropt=\$ac_optarg ;;
1073
1074   -without-* | --without-*)
1075     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1076     # Reject names that are not valid shell variable names.
1077     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1078       as_fn_error $? "invalid package name: $ac_useropt"
1079     ac_useropt_orig=$ac_useropt
1080     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1081     case $ac_user_opts in
1082       *"
1083 "with_$ac_useropt"
1084 "*) ;;
1085       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1086          ac_unrecognized_sep=', ';;
1087     esac
1088     eval with_$ac_useropt=no ;;
1089
1090   --x)
1091     # Obsolete; use --with-x.
1092     with_x=yes ;;
1093
1094   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1095   | --x-incl | --x-inc | --x-in | --x-i)
1096     ac_prev=x_includes ;;
1097   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1098   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1099     x_includes=$ac_optarg ;;
1100
1101   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1102   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1103     ac_prev=x_libraries ;;
1104   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1105   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1106     x_libraries=$ac_optarg ;;
1107
1108   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1109 Try \`$0 --help' for more information"
1110     ;;
1111
1112   *=*)
1113     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1114     # Reject names that are not valid shell variable names.
1115     case $ac_envvar in #(
1116       '' | [0-9]* | *[!_$as_cr_alnum]* )
1117       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1118     esac
1119     eval $ac_envvar=\$ac_optarg
1120     export $ac_envvar ;;
1121
1122   *)
1123     # FIXME: should be removed in autoconf 3.0.
1124     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1125     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1126       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1127     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1128     ;;
1129
1130   esac
1131 done
1132
1133 if test -n "$ac_prev"; then
1134   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1135   as_fn_error $? "missing argument to $ac_option"
1136 fi
1137
1138 if test -n "$ac_unrecognized_opts"; then
1139   case $enable_option_checking in
1140     no) ;;
1141     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1142     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1143   esac
1144 fi
1145
1146 # Check all directory arguments for consistency.
1147 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1148                 datadir sysconfdir sharedstatedir localstatedir includedir \
1149                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1150                 libdir localedir mandir
1151 do
1152   eval ac_val=\$$ac_var
1153   # Remove trailing slashes.
1154   case $ac_val in
1155     */ )
1156       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1157       eval $ac_var=\$ac_val;;
1158   esac
1159   # Be sure to have absolute directory names.
1160   case $ac_val in
1161     [\\/$]* | ?:[\\/]* )  continue;;
1162     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1163   esac
1164   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1165 done
1166
1167 # There might be people who depend on the old broken behavior: `$host'
1168 # used to hold the argument of --host etc.
1169 # FIXME: To remove some day.
1170 build=$build_alias
1171 host=$host_alias
1172 target=$target_alias
1173
1174 # FIXME: To remove some day.
1175 if test "x$host_alias" != x; then
1176   if test "x$build_alias" = x; then
1177     cross_compiling=maybe
1178     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1179     If a cross compiler is detected then cross compile mode will be used" >&2
1180   elif test "x$build_alias" != "x$host_alias"; then
1181     cross_compiling=yes
1182   fi
1183 fi
1184
1185 ac_tool_prefix=
1186 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1187
1188 test "$silent" = yes && exec 6>/dev/null
1189
1190
1191 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1192 ac_ls_di=`ls -di .` &&
1193 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1194   as_fn_error $? "working directory cannot be determined"
1195 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1196   as_fn_error $? "pwd does not report name of working directory"
1197
1198
1199 # Find the source files, if location was not specified.
1200 if test -z "$srcdir"; then
1201   ac_srcdir_defaulted=yes
1202   # Try the directory containing this script, then the parent directory.
1203   ac_confdir=`$as_dirname -- "$as_myself" ||
1204 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1205          X"$as_myself" : 'X\(//\)[^/]' \| \
1206          X"$as_myself" : 'X\(//\)$' \| \
1207          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1208 $as_echo X"$as_myself" |
1209     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1210             s//\1/
1211             q
1212           }
1213           /^X\(\/\/\)[^/].*/{
1214             s//\1/
1215             q
1216           }
1217           /^X\(\/\/\)$/{
1218             s//\1/
1219             q
1220           }
1221           /^X\(\/\).*/{
1222             s//\1/
1223             q
1224           }
1225           s/.*/./; q'`
1226   srcdir=$ac_confdir
1227   if test ! -r "$srcdir/$ac_unique_file"; then
1228     srcdir=..
1229   fi
1230 else
1231   ac_srcdir_defaulted=no
1232 fi
1233 if test ! -r "$srcdir/$ac_unique_file"; then
1234   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1235   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1236 fi
1237 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1238 ac_abs_confdir=`(
1239         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1240         pwd)`
1241 # When building in place, set srcdir=.
1242 if test "$ac_abs_confdir" = "$ac_pwd"; then
1243   srcdir=.
1244 fi
1245 # Remove unnecessary trailing slashes from srcdir.
1246 # Double slashes in file names in object file debugging info
1247 # mess up M-x gdb in Emacs.
1248 case $srcdir in
1249 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1250 esac
1251 for ac_var in $ac_precious_vars; do
1252   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1253   eval ac_env_${ac_var}_value=\$${ac_var}
1254   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1255   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1256 done
1257
1258 #
1259 # Report the --help message.
1260 #
1261 if test "$ac_init_help" = "long"; then
1262   # Omit some internal or obsolete options to make the list less imposing.
1263   # This message is too long to be a string in the A/UX 3.1 sh.
1264   cat <<_ACEOF
1265 \`configure' configures nettle 2.4 to adapt to many kinds of systems.
1266
1267 Usage: $0 [OPTION]... [VAR=VALUE]...
1268
1269 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1270 VAR=VALUE.  See below for descriptions of some of the useful variables.
1271
1272 Defaults for the options are specified in brackets.
1273
1274 Configuration:
1275   -h, --help              display this help and exit
1276       --help=short        display options specific to this package
1277       --help=recursive    display the short help of all the included packages
1278   -V, --version           display version information and exit
1279   -q, --quiet, --silent   do not print \`checking ...' messages
1280       --cache-file=FILE   cache test results in FILE [disabled]
1281   -C, --config-cache      alias for \`--cache-file=config.cache'
1282   -n, --no-create         do not create output files
1283       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1284
1285 Installation directories:
1286   --prefix=PREFIX         install architecture-independent files in PREFIX
1287                           [$ac_default_prefix]
1288   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1289                           [PREFIX]
1290
1291 By default, \`make install' will install all the files in
1292 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1293 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1294 for instance \`--prefix=\$HOME'.
1295
1296 For better control, use the options below.
1297
1298 Fine tuning of the installation directories:
1299   --bindir=DIR            user executables [EPREFIX/bin]
1300   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1301   --libexecdir=DIR        program executables [EPREFIX/libexec]
1302   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1303   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1304   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1305   --libdir=DIR            object code libraries [EPREFIX/lib]
1306   --includedir=DIR        C header files [PREFIX/include]
1307   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1308   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1309   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1310   --infodir=DIR           info documentation [DATAROOTDIR/info]
1311   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1312   --mandir=DIR            man documentation [DATAROOTDIR/man]
1313   --docdir=DIR            documentation root [DATAROOTDIR/doc/nettle]
1314   --htmldir=DIR           html documentation [DOCDIR]
1315   --dvidir=DIR            dvi documentation [DOCDIR]
1316   --pdfdir=DIR            pdf documentation [DOCDIR]
1317   --psdir=DIR             ps documentation [DOCDIR]
1318 _ACEOF
1319
1320   cat <<\_ACEOF
1321
1322 System types:
1323   --build=BUILD     configure for building on BUILD [guessed]
1324   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1325 _ACEOF
1326 fi
1327
1328 if test -n "$ac_init_help"; then
1329   case $ac_init_help in
1330      short | recursive ) echo "Configuration of nettle 2.4:";;
1331    esac
1332   cat <<\_ACEOF
1333
1334 Optional Features:
1335   --disable-option-checking  ignore unrecognized --enable/--with options
1336   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1337   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1338   --disable-public-key    Disable public key algorithms
1339   --disable-assembler     Disable assembler code
1340   --enable-shared         Build a shared library
1341   --disable-pic           Do not try to compile library files as position
1342                           independent code
1343   --disable-openssl       Do not include openssl glue in the benchmark program
1344   --enable-gcov           Instrument for gcov (requires a modern gcc)
1345   --disable-dependency-tracking
1346                           Disable dependency tracking. Dependency tracking
1347                           doesn't work with BSD make
1348
1349 Optional Packages:
1350   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1351   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1352   --with-include-path     A colon-separated list of directories to search for
1353                           include files
1354   --with-lib-path         A colon-separated list of directories to search for
1355                           libraries
1356
1357 Some influential environment variables:
1358   CC          C compiler command
1359   CFLAGS      C compiler flags
1360   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1361               nonstandard directory <lib dir>
1362   LIBS        libraries to pass to the linker, e.g. -l<library>
1363   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1364               you have headers in a nonstandard directory <include dir>
1365   CXX         C++ compiler command
1366   CXXFLAGS    C++ compiler flags
1367   CPP         C preprocessor
1368
1369 Use these variables to override the choices made by `configure' or to help
1370 it to find libraries and programs with nonstandard names/locations.
1371
1372 Report bugs to <nettle-bugs@lists.lysator.liu.se>.
1373 _ACEOF
1374 ac_status=$?
1375 fi
1376
1377 if test "$ac_init_help" = "recursive"; then
1378   # If there are subdirs, report their specific --help.
1379   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1380     test -d "$ac_dir" ||
1381       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1382       continue
1383     ac_builddir=.
1384
1385 case "$ac_dir" in
1386 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1387 *)
1388   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1389   # A ".." for each directory in $ac_dir_suffix.
1390   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1391   case $ac_top_builddir_sub in
1392   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1393   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1394   esac ;;
1395 esac
1396 ac_abs_top_builddir=$ac_pwd
1397 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1398 # for backward compatibility:
1399 ac_top_builddir=$ac_top_build_prefix
1400
1401 case $srcdir in
1402   .)  # We are building in place.
1403     ac_srcdir=.
1404     ac_top_srcdir=$ac_top_builddir_sub
1405     ac_abs_top_srcdir=$ac_pwd ;;
1406   [\\/]* | ?:[\\/]* )  # Absolute name.
1407     ac_srcdir=$srcdir$ac_dir_suffix;
1408     ac_top_srcdir=$srcdir
1409     ac_abs_top_srcdir=$srcdir ;;
1410   *) # Relative name.
1411     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1412     ac_top_srcdir=$ac_top_build_prefix$srcdir
1413     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1414 esac
1415 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1416
1417     cd "$ac_dir" || { ac_status=$?; continue; }
1418     # Check for guested configure.
1419     if test -f "$ac_srcdir/configure.gnu"; then
1420       echo &&
1421       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1422     elif test -f "$ac_srcdir/configure"; then
1423       echo &&
1424       $SHELL "$ac_srcdir/configure" --help=recursive
1425     else
1426       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1427     fi || ac_status=$?
1428     cd "$ac_pwd" || { ac_status=$?; break; }
1429   done
1430 fi
1431
1432 test -n "$ac_init_help" && exit $ac_status
1433 if $ac_init_version; then
1434   cat <<\_ACEOF
1435 nettle configure 2.4
1436 generated by GNU Autoconf 2.67
1437
1438 Copyright (C) 2010 Free Software Foundation, Inc.
1439 This configure script is free software; the Free Software Foundation
1440 gives unlimited permission to copy, distribute and modify it.
1441 _ACEOF
1442   exit
1443 fi
1444
1445 ## ------------------------ ##
1446 ## Autoconf initialization. ##
1447 ## ------------------------ ##
1448
1449 # ac_fn_c_try_compile LINENO
1450 # --------------------------
1451 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1452 ac_fn_c_try_compile ()
1453 {
1454   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1455   rm -f conftest.$ac_objext
1456   if { { ac_try="$ac_compile"
1457 case "(($ac_try" in
1458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1459   *) ac_try_echo=$ac_try;;
1460 esac
1461 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1462 $as_echo "$ac_try_echo"; } >&5
1463   (eval "$ac_compile") 2>conftest.err
1464   ac_status=$?
1465   if test -s conftest.err; then
1466     grep -v '^ *+' conftest.err >conftest.er1
1467     cat conftest.er1 >&5
1468     mv -f conftest.er1 conftest.err
1469   fi
1470   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1471   test $ac_status = 0; } && {
1472          test -z "$ac_c_werror_flag" ||
1473          test ! -s conftest.err
1474        } && test -s conftest.$ac_objext; then :
1475   ac_retval=0
1476 else
1477   $as_echo "$as_me: failed program was:" >&5
1478 sed 's/^/| /' conftest.$ac_ext >&5
1479
1480         ac_retval=1
1481 fi
1482   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1483   as_fn_set_status $ac_retval
1484
1485 } # ac_fn_c_try_compile
1486
1487 # ac_fn_cxx_try_compile LINENO
1488 # ----------------------------
1489 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1490 ac_fn_cxx_try_compile ()
1491 {
1492   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1493   rm -f conftest.$ac_objext
1494   if { { ac_try="$ac_compile"
1495 case "(($ac_try" in
1496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1497   *) ac_try_echo=$ac_try;;
1498 esac
1499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1500 $as_echo "$ac_try_echo"; } >&5
1501   (eval "$ac_compile") 2>conftest.err
1502   ac_status=$?
1503   if test -s conftest.err; then
1504     grep -v '^ *+' conftest.err >conftest.er1
1505     cat conftest.er1 >&5
1506     mv -f conftest.er1 conftest.err
1507   fi
1508   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1509   test $ac_status = 0; } && {
1510          test -z "$ac_cxx_werror_flag" ||
1511          test ! -s conftest.err
1512        } && test -s conftest.$ac_objext; then :
1513   ac_retval=0
1514 else
1515   $as_echo "$as_me: failed program was:" >&5
1516 sed 's/^/| /' conftest.$ac_ext >&5
1517
1518         ac_retval=1
1519 fi
1520   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1521   as_fn_set_status $ac_retval
1522
1523 } # ac_fn_cxx_try_compile
1524
1525 # ac_fn_c_try_cpp LINENO
1526 # ----------------------
1527 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1528 ac_fn_c_try_cpp ()
1529 {
1530   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1531   if { { ac_try="$ac_cpp conftest.$ac_ext"
1532 case "(($ac_try" in
1533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1534   *) ac_try_echo=$ac_try;;
1535 esac
1536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1537 $as_echo "$ac_try_echo"; } >&5
1538   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1539   ac_status=$?
1540   if test -s conftest.err; then
1541     grep -v '^ *+' conftest.err >conftest.er1
1542     cat conftest.er1 >&5
1543     mv -f conftest.er1 conftest.err
1544   fi
1545   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1546   test $ac_status = 0; } > conftest.i && {
1547          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1548          test ! -s conftest.err
1549        }; then :
1550   ac_retval=0
1551 else
1552   $as_echo "$as_me: failed program was:" >&5
1553 sed 's/^/| /' conftest.$ac_ext >&5
1554
1555     ac_retval=1
1556 fi
1557   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1558   as_fn_set_status $ac_retval
1559
1560 } # ac_fn_c_try_cpp
1561
1562 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1563 # -------------------------------------------
1564 # Tests whether TYPE exists after having included INCLUDES, setting cache
1565 # variable VAR accordingly.
1566 ac_fn_c_check_type ()
1567 {
1568   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1569   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1570 $as_echo_n "checking for $2... " >&6; }
1571 if eval "test \"\${$3+set}\"" = set; then :
1572   $as_echo_n "(cached) " >&6
1573 else
1574   eval "$3=no"
1575   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1576 /* end confdefs.h.  */
1577 $4
1578 int
1579 main ()
1580 {
1581 if (sizeof ($2))
1582          return 0;
1583   ;
1584   return 0;
1585 }
1586 _ACEOF
1587 if ac_fn_c_try_compile "$LINENO"; then :
1588   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1589 /* end confdefs.h.  */
1590 $4
1591 int
1592 main ()
1593 {
1594 if (sizeof (($2)))
1595             return 0;
1596   ;
1597   return 0;
1598 }
1599 _ACEOF
1600 if ac_fn_c_try_compile "$LINENO"; then :
1601
1602 else
1603   eval "$3=yes"
1604 fi
1605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1606 fi
1607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1608 fi
1609 eval ac_res=\$$3
1610                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1611 $as_echo "$ac_res" >&6; }
1612   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1613
1614 } # ac_fn_c_check_type
1615
1616 # ac_fn_c_try_run LINENO
1617 # ----------------------
1618 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1619 # that executables *can* be run.
1620 ac_fn_c_try_run ()
1621 {
1622   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623   if { { ac_try="$ac_link"
1624 case "(($ac_try" in
1625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626   *) ac_try_echo=$ac_try;;
1627 esac
1628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629 $as_echo "$ac_try_echo"; } >&5
1630   (eval "$ac_link") 2>&5
1631   ac_status=$?
1632   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1634   { { case "(($ac_try" in
1635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636   *) ac_try_echo=$ac_try;;
1637 esac
1638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639 $as_echo "$ac_try_echo"; } >&5
1640   (eval "$ac_try") 2>&5
1641   ac_status=$?
1642   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643   test $ac_status = 0; }; }; then :
1644   ac_retval=0
1645 else
1646   $as_echo "$as_me: program exited with status $ac_status" >&5
1647        $as_echo "$as_me: failed program was:" >&5
1648 sed 's/^/| /' conftest.$ac_ext >&5
1649
1650        ac_retval=$ac_status
1651 fi
1652   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1653   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1654   as_fn_set_status $ac_retval
1655
1656 } # ac_fn_c_try_run
1657
1658 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1659 # -------------------------------------------------------
1660 # Tests whether HEADER exists and can be compiled using the include files in
1661 # INCLUDES, setting the cache variable VAR accordingly.
1662 ac_fn_c_check_header_compile ()
1663 {
1664   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1666 $as_echo_n "checking for $2... " >&6; }
1667 if eval "test \"\${$3+set}\"" = set; then :
1668   $as_echo_n "(cached) " >&6
1669 else
1670   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1671 /* end confdefs.h.  */
1672 $4
1673 #include <$2>
1674 _ACEOF
1675 if ac_fn_c_try_compile "$LINENO"; then :
1676   eval "$3=yes"
1677 else
1678   eval "$3=no"
1679 fi
1680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1681 fi
1682 eval ac_res=\$$3
1683                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1684 $as_echo "$ac_res" >&6; }
1685   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1686
1687 } # ac_fn_c_check_header_compile
1688
1689 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1690 # --------------------------------------------
1691 # Tries to find the compile-time value of EXPR in a program that includes
1692 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1693 # computed
1694 ac_fn_c_compute_int ()
1695 {
1696   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697   if test "$cross_compiling" = yes; then
1698     # Depending upon the size, compute the lo and hi bounds.
1699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1700 /* end confdefs.h.  */
1701 $4
1702 int
1703 main ()
1704 {
1705 static int test_array [1 - 2 * !(($2) >= 0)];
1706 test_array [0] = 0
1707
1708   ;
1709   return 0;
1710 }
1711 _ACEOF
1712 if ac_fn_c_try_compile "$LINENO"; then :
1713   ac_lo=0 ac_mid=0
1714   while :; do
1715     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1716 /* end confdefs.h.  */
1717 $4
1718 int
1719 main ()
1720 {
1721 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1722 test_array [0] = 0
1723
1724   ;
1725   return 0;
1726 }
1727 _ACEOF
1728 if ac_fn_c_try_compile "$LINENO"; then :
1729   ac_hi=$ac_mid; break
1730 else
1731   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1732                         if test $ac_lo -le $ac_mid; then
1733                           ac_lo= ac_hi=
1734                           break
1735                         fi
1736                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1737 fi
1738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1739   done
1740 else
1741   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1742 /* end confdefs.h.  */
1743 $4
1744 int
1745 main ()
1746 {
1747 static int test_array [1 - 2 * !(($2) < 0)];
1748 test_array [0] = 0
1749
1750   ;
1751   return 0;
1752 }
1753 _ACEOF
1754 if ac_fn_c_try_compile "$LINENO"; then :
1755   ac_hi=-1 ac_mid=-1
1756   while :; do
1757     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758 /* end confdefs.h.  */
1759 $4
1760 int
1761 main ()
1762 {
1763 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1764 test_array [0] = 0
1765
1766   ;
1767   return 0;
1768 }
1769 _ACEOF
1770 if ac_fn_c_try_compile "$LINENO"; then :
1771   ac_lo=$ac_mid; break
1772 else
1773   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1774                         if test $ac_mid -le $ac_hi; then
1775                           ac_lo= ac_hi=
1776                           break
1777                         fi
1778                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1779 fi
1780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1781   done
1782 else
1783   ac_lo= ac_hi=
1784 fi
1785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1786 fi
1787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1788 # Binary search between lo and hi bounds.
1789 while test "x$ac_lo" != "x$ac_hi"; do
1790   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1791   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792 /* end confdefs.h.  */
1793 $4
1794 int
1795 main ()
1796 {
1797 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1798 test_array [0] = 0
1799
1800   ;
1801   return 0;
1802 }
1803 _ACEOF
1804 if ac_fn_c_try_compile "$LINENO"; then :
1805   ac_hi=$ac_mid
1806 else
1807   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1808 fi
1809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1810 done
1811 case $ac_lo in #((
1812 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1813 '') ac_retval=1 ;;
1814 esac
1815   else
1816     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817 /* end confdefs.h.  */
1818 $4
1819 static long int longval () { return $2; }
1820 static unsigned long int ulongval () { return $2; }
1821 #include <stdio.h>
1822 #include <stdlib.h>
1823 int
1824 main ()
1825 {
1826
1827   FILE *f = fopen ("conftest.val", "w");
1828   if (! f)
1829     return 1;
1830   if (($2) < 0)
1831     {
1832       long int i = longval ();
1833       if (i != ($2))
1834         return 1;
1835       fprintf (f, "%ld", i);
1836     }
1837   else
1838     {
1839       unsigned long int i = ulongval ();
1840       if (i != ($2))
1841         return 1;
1842       fprintf (f, "%lu", i);
1843     }
1844   /* Do not output a trailing newline, as this causes \r\n confusion
1845      on some platforms.  */
1846   return ferror (f) || fclose (f) != 0;
1847
1848   ;
1849   return 0;
1850 }
1851 _ACEOF
1852 if ac_fn_c_try_run "$LINENO"; then :
1853   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1854 else
1855   ac_retval=1
1856 fi
1857 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1858   conftest.$ac_objext conftest.beam conftest.$ac_ext
1859 rm -f conftest.val
1860
1861   fi
1862   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1863   as_fn_set_status $ac_retval
1864
1865 } # ac_fn_c_compute_int
1866
1867 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1868 # -------------------------------------------------------
1869 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1870 # the include files in INCLUDES and setting the cache variable VAR
1871 # accordingly.
1872 ac_fn_c_check_header_mongrel ()
1873 {
1874   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875   if eval "test \"\${$3+set}\"" = set; then :
1876   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1877 $as_echo_n "checking for $2... " >&6; }
1878 if eval "test \"\${$3+set}\"" = set; then :
1879   $as_echo_n "(cached) " >&6
1880 fi
1881 eval ac_res=\$$3
1882                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1883 $as_echo "$ac_res" >&6; }
1884 else
1885   # Is the header compilable?
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1887 $as_echo_n "checking $2 usability... " >&6; }
1888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889 /* end confdefs.h.  */
1890 $4
1891 #include <$2>
1892 _ACEOF
1893 if ac_fn_c_try_compile "$LINENO"; then :
1894   ac_header_compiler=yes
1895 else
1896   ac_header_compiler=no
1897 fi
1898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1900 $as_echo "$ac_header_compiler" >&6; }
1901
1902 # Is the header present?
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1904 $as_echo_n "checking $2 presence... " >&6; }
1905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906 /* end confdefs.h.  */
1907 #include <$2>
1908 _ACEOF
1909 if ac_fn_c_try_cpp "$LINENO"; then :
1910   ac_header_preproc=yes
1911 else
1912   ac_header_preproc=no
1913 fi
1914 rm -f conftest.err conftest.i conftest.$ac_ext
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1916 $as_echo "$ac_header_preproc" >&6; }
1917
1918 # So?  What about this header?
1919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1920   yes:no: )
1921     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1922 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1923     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1924 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1925     ;;
1926   no:yes:* )
1927     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1928 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1929     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1930 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1931     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1932 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1933     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1934 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1935     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1936 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1937 ( $as_echo "## ----------------------------------------------- ##
1938 ## Report this to nettle-bugs@lists.lysator.liu.se ##
1939 ## ----------------------------------------------- ##"
1940      ) | sed "s/^/$as_me: WARNING:     /" >&2
1941     ;;
1942 esac
1943   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1944 $as_echo_n "checking for $2... " >&6; }
1945 if eval "test \"\${$3+set}\"" = set; then :
1946   $as_echo_n "(cached) " >&6
1947 else
1948   eval "$3=\$ac_header_compiler"
1949 fi
1950 eval ac_res=\$$3
1951                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1952 $as_echo "$ac_res" >&6; }
1953 fi
1954   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1955
1956 } # ac_fn_c_check_header_mongrel
1957
1958 # ac_fn_c_try_link LINENO
1959 # -----------------------
1960 # Try to link conftest.$ac_ext, and return whether this succeeded.
1961 ac_fn_c_try_link ()
1962 {
1963   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964   rm -f conftest.$ac_objext conftest$ac_exeext
1965   if { { ac_try="$ac_link"
1966 case "(($ac_try" in
1967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1968   *) ac_try_echo=$ac_try;;
1969 esac
1970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1971 $as_echo "$ac_try_echo"; } >&5
1972   (eval "$ac_link") 2>conftest.err
1973   ac_status=$?
1974   if test -s conftest.err; then
1975     grep -v '^ *+' conftest.err >conftest.er1
1976     cat conftest.er1 >&5
1977     mv -f conftest.er1 conftest.err
1978   fi
1979   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1980   test $ac_status = 0; } && {
1981          test -z "$ac_c_werror_flag" ||
1982          test ! -s conftest.err
1983        } && test -s conftest$ac_exeext && {
1984          test "$cross_compiling" = yes ||
1985          $as_test_x conftest$ac_exeext
1986        }; then :
1987   ac_retval=0
1988 else
1989   $as_echo "$as_me: failed program was:" >&5
1990 sed 's/^/| /' conftest.$ac_ext >&5
1991
1992         ac_retval=1
1993 fi
1994   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1995   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1996   # interfere with the next link command; also delete a directory that is
1997   # left behind by Apple's compiler.  We do this before executing the actions.
1998   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1999   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2000   as_fn_set_status $ac_retval
2001
2002 } # ac_fn_c_try_link
2003
2004 # ac_fn_c_check_func LINENO FUNC VAR
2005 # ----------------------------------
2006 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2007 ac_fn_c_check_func ()
2008 {
2009   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2010   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2011 $as_echo_n "checking for $2... " >&6; }
2012 if eval "test \"\${$3+set}\"" = set; then :
2013   $as_echo_n "(cached) " >&6
2014 else
2015   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016 /* end confdefs.h.  */
2017 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2018    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2019 #define $2 innocuous_$2
2020
2021 /* System header to define __stub macros and hopefully few prototypes,
2022     which can conflict with char $2 (); below.
2023     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2024     <limits.h> exists even on freestanding compilers.  */
2025
2026 #ifdef __STDC__
2027 # include <limits.h>
2028 #else
2029 # include <assert.h>
2030 #endif
2031
2032 #undef $2
2033
2034 /* Override any GCC internal prototype to avoid an error.
2035    Use char because int might match the return type of a GCC
2036    builtin and then its argument prototype would still apply.  */
2037 #ifdef __cplusplus
2038 extern "C"
2039 #endif
2040 char $2 ();
2041 /* The GNU C library defines this for functions which it implements
2042     to always fail with ENOSYS.  Some functions are actually named
2043     something starting with __ and the normal name is an alias.  */
2044 #if defined __stub_$2 || defined __stub___$2
2045 choke me
2046 #endif
2047
2048 int
2049 main ()
2050 {
2051 return $2 ();
2052   ;
2053   return 0;
2054 }
2055 _ACEOF
2056 if ac_fn_c_try_link "$LINENO"; then :
2057   eval "$3=yes"
2058 else
2059   eval "$3=no"
2060 fi
2061 rm -f core conftest.err conftest.$ac_objext \
2062     conftest$ac_exeext conftest.$ac_ext
2063 fi
2064 eval ac_res=\$$3
2065                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2066 $as_echo "$ac_res" >&6; }
2067   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2068
2069 } # ac_fn_c_check_func
2070 cat >config.log <<_ACEOF
2071 This file contains any messages produced by compilers while
2072 running configure, to aid debugging if configure makes a mistake.
2073
2074 It was created by nettle $as_me 2.4, which was
2075 generated by GNU Autoconf 2.67.  Invocation command line was
2076
2077   $ $0 $@
2078
2079 _ACEOF
2080 exec 5>>config.log
2081 {
2082 cat <<_ASUNAME
2083 ## --------- ##
2084 ## Platform. ##
2085 ## --------- ##
2086
2087 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2088 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2089 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2090 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2091 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2092
2093 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2094 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2095
2096 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2097 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2098 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2099 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2100 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2101 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2102 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2103
2104 _ASUNAME
2105
2106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2107 for as_dir in $PATH
2108 do
2109   IFS=$as_save_IFS
2110   test -z "$as_dir" && as_dir=.
2111     $as_echo "PATH: $as_dir"
2112   done
2113 IFS=$as_save_IFS
2114
2115 } >&5
2116
2117 cat >&5 <<_ACEOF
2118
2119
2120 ## ----------- ##
2121 ## Core tests. ##
2122 ## ----------- ##
2123
2124 _ACEOF
2125
2126
2127 # Keep a trace of the command line.
2128 # Strip out --no-create and --no-recursion so they do not pile up.
2129 # Strip out --silent because we don't want to record it for future runs.
2130 # Also quote any args containing shell meta-characters.
2131 # Make two passes to allow for proper duplicate-argument suppression.
2132 ac_configure_args=
2133 ac_configure_args0=
2134 ac_configure_args1=
2135 ac_must_keep_next=false
2136 for ac_pass in 1 2
2137 do
2138   for ac_arg
2139   do
2140     case $ac_arg in
2141     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2142     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2143     | -silent | --silent | --silen | --sile | --sil)
2144       continue ;;
2145     *\'*)
2146       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2147     esac
2148     case $ac_pass in
2149     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2150     2)
2151       as_fn_append ac_configure_args1 " '$ac_arg'"
2152       if test $ac_must_keep_next = true; then
2153         ac_must_keep_next=false # Got value, back to normal.
2154       else
2155         case $ac_arg in
2156           *=* | --config-cache | -C | -disable-* | --disable-* \
2157           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2158           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2159           | -with-* | --with-* | -without-* | --without-* | --x)
2160             case "$ac_configure_args0 " in
2161               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2162             esac
2163             ;;
2164           -* ) ac_must_keep_next=true ;;
2165         esac
2166       fi
2167       as_fn_append ac_configure_args " '$ac_arg'"
2168       ;;
2169     esac
2170   done
2171 done
2172 { ac_configure_args0=; unset ac_configure_args0;}
2173 { ac_configure_args1=; unset ac_configure_args1;}
2174
2175 # When interrupted or exit'd, cleanup temporary files, and complete
2176 # config.log.  We remove comments because anyway the quotes in there
2177 # would cause problems or look ugly.
2178 # WARNING: Use '\'' to represent an apostrophe within the trap.
2179 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2180 trap 'exit_status=$?
2181   # Save into config.log some information that might help in debugging.
2182   {
2183     echo
2184
2185     $as_echo "## ---------------- ##
2186 ## Cache variables. ##
2187 ## ---------------- ##"
2188     echo
2189     # The following way of writing the cache mishandles newlines in values,
2190 (
2191   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2192     eval ac_val=\$$ac_var
2193     case $ac_val in #(
2194     *${as_nl}*)
2195       case $ac_var in #(
2196       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2197 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2198       esac
2199       case $ac_var in #(
2200       _ | IFS | as_nl) ;; #(
2201       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2202       *) { eval $ac_var=; unset $ac_var;} ;;
2203       esac ;;
2204     esac
2205   done
2206   (set) 2>&1 |
2207     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2208     *${as_nl}ac_space=\ *)
2209       sed -n \
2210         "s/'\''/'\''\\\\'\'''\''/g;
2211           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2212       ;; #(
2213     *)
2214       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2215       ;;
2216     esac |
2217     sort
2218 )
2219     echo
2220
2221     $as_echo "## ----------------- ##
2222 ## Output variables. ##
2223 ## ----------------- ##"
2224     echo
2225     for ac_var in $ac_subst_vars
2226     do
2227       eval ac_val=\$$ac_var
2228       case $ac_val in
2229       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2230       esac
2231       $as_echo "$ac_var='\''$ac_val'\''"
2232     done | sort
2233     echo
2234
2235     if test -n "$ac_subst_files"; then
2236       $as_echo "## ------------------- ##
2237 ## File substitutions. ##
2238 ## ------------------- ##"
2239       echo
2240       for ac_var in $ac_subst_files
2241       do
2242         eval ac_val=\$$ac_var
2243         case $ac_val in
2244         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2245         esac
2246         $as_echo "$ac_var='\''$ac_val'\''"
2247       done | sort
2248       echo
2249     fi
2250
2251     if test -s confdefs.h; then
2252       $as_echo "## ----------- ##
2253 ## confdefs.h. ##
2254 ## ----------- ##"
2255       echo
2256       cat confdefs.h
2257       echo
2258     fi
2259     test "$ac_signal" != 0 &&
2260       $as_echo "$as_me: caught signal $ac_signal"
2261     $as_echo "$as_me: exit $exit_status"
2262   } >&5
2263   rm -f core *.core core.conftest.* &&
2264     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2265     exit $exit_status
2266 ' 0
2267 for ac_signal in 1 2 13 15; do
2268   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2269 done
2270 ac_signal=0
2271
2272 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2273 rm -f -r conftest* confdefs.h
2274
2275 $as_echo "/* confdefs.h */" > confdefs.h
2276
2277 # Predefined preprocessor variables.
2278
2279 cat >>confdefs.h <<_ACEOF
2280 #define PACKAGE_NAME "$PACKAGE_NAME"
2281 _ACEOF
2282
2283 cat >>confdefs.h <<_ACEOF
2284 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2285 _ACEOF
2286
2287 cat >>confdefs.h <<_ACEOF
2288 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2289 _ACEOF
2290
2291 cat >>confdefs.h <<_ACEOF
2292 #define PACKAGE_STRING "$PACKAGE_STRING"
2293 _ACEOF
2294
2295 cat >>confdefs.h <<_ACEOF
2296 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2297 _ACEOF
2298
2299 cat >>confdefs.h <<_ACEOF
2300 #define PACKAGE_URL "$PACKAGE_URL"
2301 _ACEOF
2302
2303
2304 # Let the site file select an alternate cache file if it wants to.
2305 # Prefer an explicitly selected file to automatically selected ones.
2306 ac_site_file1=NONE
2307 ac_site_file2=NONE
2308 if test -n "$CONFIG_SITE"; then
2309   # We do not want a PATH search for config.site.
2310   case $CONFIG_SITE in #((
2311     -*)  ac_site_file1=./$CONFIG_SITE;;
2312     */*) ac_site_file1=$CONFIG_SITE;;
2313     *)   ac_site_file1=./$CONFIG_SITE;;
2314   esac
2315 elif test "x$prefix" != xNONE; then
2316   ac_site_file1=$prefix/share/config.site
2317   ac_site_file2=$prefix/etc/config.site
2318 else
2319   ac_site_file1=$ac_default_prefix/share/config.site
2320   ac_site_file2=$ac_default_prefix/etc/config.site
2321 fi
2322 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2323 do
2324   test "x$ac_site_file" = xNONE && continue
2325   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2326     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2327 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2328     sed 's/^/| /' "$ac_site_file" >&5
2329     . "$ac_site_file" \
2330       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2331 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2332 as_fn_error $? "failed to load site script $ac_site_file
2333 See \`config.log' for more details" "$LINENO" 5 ; }
2334   fi
2335 done
2336
2337 if test -r "$cache_file"; then
2338   # Some versions of bash will fail to source /dev/null (special files
2339   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2340   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2341     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2342 $as_echo "$as_me: loading cache $cache_file" >&6;}
2343     case $cache_file in
2344       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2345       *)                      . "./$cache_file";;
2346     esac
2347   fi
2348 else
2349   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2350 $as_echo "$as_me: creating cache $cache_file" >&6;}
2351   >$cache_file
2352 fi
2353
2354 # Check that the precious variables saved in the cache have kept the same
2355 # value.
2356 ac_cache_corrupted=false
2357 for ac_var in $ac_precious_vars; do
2358   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2359   eval ac_new_set=\$ac_env_${ac_var}_set
2360   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2361   eval ac_new_val=\$ac_env_${ac_var}_value
2362   case $ac_old_set,$ac_new_set in
2363     set,)
2364       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2365 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2366       ac_cache_corrupted=: ;;
2367     ,set)
2368       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2369 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2370       ac_cache_corrupted=: ;;
2371     ,);;
2372     *)
2373       if test "x$ac_old_val" != "x$ac_new_val"; then
2374         # differences in whitespace do not lead to failure.
2375         ac_old_val_w=`echo x $ac_old_val`
2376         ac_new_val_w=`echo x $ac_new_val`
2377         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2378           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2379 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2380           ac_cache_corrupted=:
2381         else
2382           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2383 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2384           eval $ac_var=\$ac_old_val
2385         fi
2386         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2387 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2388         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2389 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2390       fi;;
2391   esac
2392   # Pass precious variables to config.status.
2393   if test "$ac_new_set" = set; then
2394     case $ac_new_val in
2395     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2396     *) ac_arg=$ac_var=$ac_new_val ;;
2397     esac
2398     case " $ac_configure_args " in
2399       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2400       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2401     esac
2402   fi
2403 done
2404 if $ac_cache_corrupted; then
2405   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2407   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2408 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2409   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2410 fi
2411 ## -------------------- ##
2412 ## Main body of script. ##
2413 ## -------------------- ##
2414
2415 ac_ext=c
2416 ac_cpp='$CPP $CPPFLAGS'
2417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2420
2421
2422
2423
2424 # Needed to stop autoconf from looking for files in parent directories.
2425 ac_aux_dir=
2426 for ac_dir in . "$srcdir"/.; do
2427   if test -f "$ac_dir/install-sh"; then
2428     ac_aux_dir=$ac_dir
2429     ac_install_sh="$ac_aux_dir/install-sh -c"
2430     break
2431   elif test -f "$ac_dir/install.sh"; then
2432     ac_aux_dir=$ac_dir
2433     ac_install_sh="$ac_aux_dir/install.sh -c"
2434     break
2435   elif test -f "$ac_dir/shtool"; then
2436     ac_aux_dir=$ac_dir
2437     ac_install_sh="$ac_aux_dir/shtool install -c"
2438     break
2439   fi
2440 done
2441 if test -z "$ac_aux_dir"; then
2442   as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2443 fi
2444
2445 # These three variables are undocumented and unsupported,
2446 # and are intended to be withdrawn in a future Autoconf release.
2447 # They can cause serious problems if a builder's source tree is in a directory
2448 # whose full name contains unusual characters.
2449 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2450 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2451 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2452
2453
2454
2455 ac_config_headers="$ac_config_headers config.h"
2456
2457
2458 LIBNETTLE_MAJOR=4
2459 LIBNETTLE_MINOR=3
2460
2461 LIBHOGWEED_MAJOR=2
2462 LIBHOGWEED_MINOR=1
2463
2464 # Make sure we can run config.sub.
2465 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2466   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2467
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2469 $as_echo_n "checking build system type... " >&6; }
2470 if test "${ac_cv_build+set}" = set; then :
2471   $as_echo_n "(cached) " >&6
2472 else
2473   ac_build_alias=$build_alias
2474 test "x$ac_build_alias" = x &&
2475   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2476 test "x$ac_build_alias" = x &&
2477   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2478 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2479   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2480
2481 fi
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2483 $as_echo "$ac_cv_build" >&6; }
2484 case $ac_cv_build in
2485 *-*-*) ;;
2486 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2487 esac
2488 build=$ac_cv_build
2489 ac_save_IFS=$IFS; IFS='-'
2490 set x $ac_cv_build
2491 shift
2492 build_cpu=$1
2493 build_vendor=$2
2494 shift; shift
2495 # Remember, the first character of IFS is used to create $*,
2496 # except with old shells:
2497 build_os=$*
2498 IFS=$ac_save_IFS
2499 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2500
2501
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2503 $as_echo_n "checking host system type... " >&6; }
2504 if test "${ac_cv_host+set}" = set; then :
2505   $as_echo_n "(cached) " >&6
2506 else
2507   if test "x$host_alias" = x; then
2508   ac_cv_host=$ac_cv_build
2509 else
2510   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2511     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2512 fi
2513
2514 fi
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2516 $as_echo "$ac_cv_host" >&6; }
2517 case $ac_cv_host in
2518 *-*-*) ;;
2519 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2520 esac
2521 host=$ac_cv_host
2522 ac_save_IFS=$IFS; IFS='-'
2523 set x $ac_cv_host
2524 shift
2525 host_cpu=$1
2526 host_vendor=$2
2527 shift; shift
2528 # Remember, the first character of IFS is used to create $*,
2529 # except with old shells:
2530 host_os=$*
2531 IFS=$ac_save_IFS
2532 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2533
2534
2535
2536 # Command line options
2537
2538 # Check whether --with-include-path was given.
2539 if test "${with_include_path+set}" = set; then :
2540   withval=$with_include_path;
2541 else
2542   with_include_path=''
2543 fi
2544
2545
2546 if test x$with_include_path != x ; then
2547   CPPFLAGS="$CPPFLAGS -I`echo $with_include_path | sed 's/:/ -I/g'`"
2548 fi
2549
2550
2551 # Check whether --with-lib-path was given.
2552 if test "${with_lib_path+set}" = set; then :
2553   withval=$with_lib_path;
2554 else
2555   with_lib_path=''
2556 fi
2557
2558
2559 if test x$with_lib_path != x ; then
2560   LDFLAGS="$LDFLAGS -L`echo $with_lib_path | sed 's/:/ -L/g'`"
2561 fi
2562
2563 # Check whether --enable-public-key was given.
2564 if test "${enable_public_key+set}" = set; then :
2565   enableval=$enable_public_key;
2566 else
2567   enable_public_key=yes
2568 fi
2569
2570
2571 # Check whether --enable-assembler was given.
2572 if test "${enable_assembler+set}" = set; then :
2573   enableval=$enable_assembler;
2574 else
2575   enable_assembler=yes
2576 fi
2577
2578
2579 # Check whether --enable-shared was given.
2580 if test "${enable_shared+set}" = set; then :
2581   enableval=$enable_shared;
2582 else
2583   enable_shared=no
2584 fi
2585
2586
2587 # Check whether --enable-pic was given.
2588 if test "${enable_pic+set}" = set; then :
2589   enableval=$enable_pic;
2590 else
2591   enable_pic=yes
2592 fi
2593
2594
2595 # Check whether --enable-openssl was given.
2596 if test "${enable_openssl+set}" = set; then :
2597   enableval=$enable_openssl;
2598 else
2599   enable_openssl=yes
2600 fi
2601
2602
2603 # Check whether --enable-gcov was given.
2604 if test "${enable_gcov+set}" = set; then :
2605   enableval=$enable_gcov;
2606 else
2607   enable_gcov=no
2608 fi
2609
2610
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -R flag" >&5
2612 $as_echo_n "checking for -R flag... " >&6; }
2613 RPATHFLAG=''
2614 case "$host_os" in
2615   osf1*)                RPATHFLAG="-rpath " ;;
2616   irix6.*|irix5.*)      RPATHFLAG="-rpath " ;;
2617   solaris*)
2618     if test "$TCC" = "yes"; then
2619       # tcc doesn't know about -R
2620       RPATHFLAG="-Wl,-R,"
2621     else
2622       RPATHFLAG=-R
2623     fi
2624     ;;
2625   linux*)               RPATHFLAG="-Wl,-rpath," ;;
2626   *)                    RPATHFLAG="" ;;
2627 esac
2628
2629 if test x$RPATHFLAG = x ; then
2630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
2631 $as_echo "none" >&6; }
2632 else
2633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $RPATHFLAG" >&5
2634 $as_echo "using $RPATHFLAG" >&6; }
2635 fi
2636
2637 RPATH_CANDIDATE_REAL_DIRS=''
2638 RPATH_CANDIDATE_DIRS=''
2639
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Searching for libraries" >&5
2641 $as_echo "Searching for libraries" >&6; }
2642
2643 for d in `echo $with_lib_path | sed 's/:/ /g'` \
2644     `echo $exec_prefix | sed "s@^NONE@$prefix/lib@g" | sed "s@^NONE@$ac_default_prefix/lib@g"` \
2645     /usr/local/lib /sw/local/lib /sw/lib \
2646     /usr/gnu/lib /opt/gnu/lib /sw/gnu/lib /usr/freeware/lib /usr/pkg/lib ; do
2647   { $as_echo "$as_me:${as_lineno-$LINENO}: checking $d" >&5
2648 $as_echo_n "checking $d... " >&6; }
2649 ac_exists=no
2650 if test -d "$d/." ; then
2651   ac_real_dir=`cd $d && pwd`
2652   if test -n "$ac_real_dir" ; then
2653     ac_exists=yes
2654     for old in RPATH_CANDIDATE_REAL_DIRS ; do
2655       ac_found=no
2656       if test x$ac_real_dir = x$old ; then
2657         ac_found=yes;
2658         break;
2659       fi
2660     done
2661     if test $ac_found = yes ; then
2662       { $as_echo "$as_me:${as_lineno-$LINENO}: result: already added" >&5
2663 $as_echo "already added" >&6; }
2664     else
2665       { $as_echo "$as_me:${as_lineno-$LINENO}: result: added" >&5
2666 $as_echo "added" >&6; }
2667       # LDFLAGS="$LDFLAGS -L $d"
2668       RPATH_CANDIDATE_REAL_DIRS="$ac_real_dir $RPATH_CANDIDATE_REAL_DIRS"
2669       RPATH_CANDIDATE_DIRS="$d $RPATH_CANDIDATE_DIRS"
2670     fi
2671   fi
2672 fi
2673 if test $ac_exists = no ; then
2674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
2675 $as_echo "not found" >&6; }
2676 fi
2677
2678 done
2679
2680
2681 # Checks for programs.
2682 ac_ext=c
2683 ac_cpp='$CPP $CPPFLAGS'
2684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2687 if test -n "$ac_tool_prefix"; then
2688   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2689 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2691 $as_echo_n "checking for $ac_word... " >&6; }
2692 if test "${ac_cv_prog_CC+set}" = set; then :
2693   $as_echo_n "(cached) " >&6
2694 else
2695   if test -n "$CC"; then
2696   ac_cv_prog_CC="$CC" # Let the user override the test.
2697 else
2698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2699 for as_dir in $PATH
2700 do
2701   IFS=$as_save_IFS
2702   test -z "$as_dir" && as_dir=.
2703     for ac_exec_ext in '' $ac_executable_extensions; do
2704   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2705     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2706     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2707     break 2
2708   fi
2709 done
2710   done
2711 IFS=$as_save_IFS
2712
2713 fi
2714 fi
2715 CC=$ac_cv_prog_CC
2716 if test -n "$CC"; then
2717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2718 $as_echo "$CC" >&6; }
2719 else
2720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2721 $as_echo "no" >&6; }
2722 fi
2723
2724
2725 fi
2726 if test -z "$ac_cv_prog_CC"; then
2727   ac_ct_CC=$CC
2728   # Extract the first word of "gcc", so it can be a program name with args.
2729 set dummy gcc; ac_word=$2
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2731 $as_echo_n "checking for $ac_word... " >&6; }
2732 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2733   $as_echo_n "(cached) " >&6
2734 else
2735   if test -n "$ac_ct_CC"; then
2736   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2737 else
2738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739 for as_dir in $PATH
2740 do
2741   IFS=$as_save_IFS
2742   test -z "$as_dir" && as_dir=.
2743     for ac_exec_ext in '' $ac_executable_extensions; do
2744   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2745     ac_cv_prog_ac_ct_CC="gcc"
2746     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2747     break 2
2748   fi
2749 done
2750   done
2751 IFS=$as_save_IFS
2752
2753 fi
2754 fi
2755 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2756 if test -n "$ac_ct_CC"; then
2757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2758 $as_echo "$ac_ct_CC" >&6; }
2759 else
2760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2761 $as_echo "no" >&6; }
2762 fi
2763
2764   if test "x$ac_ct_CC" = x; then
2765     CC=""
2766   else
2767     case $cross_compiling:$ac_tool_warned in
2768 yes:)
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2771 ac_tool_warned=yes ;;
2772 esac
2773     CC=$ac_ct_CC
2774   fi
2775 else
2776   CC="$ac_cv_prog_CC"
2777 fi
2778
2779 if test -z "$CC"; then
2780           if test -n "$ac_tool_prefix"; then
2781     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2782 set dummy ${ac_tool_prefix}cc; ac_word=$2
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2784 $as_echo_n "checking for $ac_word... " >&6; }
2785 if test "${ac_cv_prog_CC+set}" = set; then :
2786   $as_echo_n "(cached) " >&6
2787 else
2788   if test -n "$CC"; then
2789   ac_cv_prog_CC="$CC" # Let the user override the test.
2790 else
2791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792 for as_dir in $PATH
2793 do
2794   IFS=$as_save_IFS
2795   test -z "$as_dir" && as_dir=.
2796     for ac_exec_ext in '' $ac_executable_extensions; do
2797   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2798     ac_cv_prog_CC="${ac_tool_prefix}cc"
2799     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2800     break 2
2801   fi
2802 done
2803   done
2804 IFS=$as_save_IFS
2805
2806 fi
2807 fi
2808 CC=$ac_cv_prog_CC
2809 if test -n "$CC"; then
2810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2811 $as_echo "$CC" >&6; }
2812 else
2813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2814 $as_echo "no" >&6; }
2815 fi
2816
2817
2818   fi
2819 fi
2820 if test -z "$CC"; then
2821   # Extract the first word of "cc", so it can be a program name with args.
2822 set dummy cc; ac_word=$2
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2824 $as_echo_n "checking for $ac_word... " >&6; }
2825 if test "${ac_cv_prog_CC+set}" = set; then :
2826   $as_echo_n "(cached) " >&6
2827 else
2828   if test -n "$CC"; then
2829   ac_cv_prog_CC="$CC" # Let the user override the test.
2830 else
2831   ac_prog_rejected=no
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833 for as_dir in $PATH
2834 do
2835   IFS=$as_save_IFS
2836   test -z "$as_dir" && as_dir=.
2837     for ac_exec_ext in '' $ac_executable_extensions; do
2838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2839     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2840        ac_prog_rejected=yes
2841        continue
2842      fi
2843     ac_cv_prog_CC="cc"
2844     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2845     break 2
2846   fi
2847 done
2848   done
2849 IFS=$as_save_IFS
2850
2851 if test $ac_prog_rejected = yes; then
2852   # We found a bogon in the path, so make sure we never use it.
2853   set dummy $ac_cv_prog_CC
2854   shift
2855   if test $# != 0; then
2856     # We chose a different compiler from the bogus one.
2857     # However, it has the same basename, so the bogon will be chosen
2858     # first if we set CC to just the basename; use the full file name.
2859     shift
2860     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2861   fi
2862 fi
2863 fi
2864 fi
2865 CC=$ac_cv_prog_CC
2866 if test -n "$CC"; then
2867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2868 $as_echo "$CC" >&6; }
2869 else
2870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2871 $as_echo "no" >&6; }
2872 fi
2873
2874
2875 fi
2876 if test -z "$CC"; then
2877   if test -n "$ac_tool_prefix"; then
2878   for ac_prog in cl.exe
2879   do
2880     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2881 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2883 $as_echo_n "checking for $ac_word... " >&6; }
2884 if test "${ac_cv_prog_CC+set}" = set; then :
2885   $as_echo_n "(cached) " >&6
2886 else
2887   if test -n "$CC"; then
2888   ac_cv_prog_CC="$CC" # Let the user override the test.
2889 else
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 for as_dir in $PATH
2892 do
2893   IFS=$as_save_IFS
2894   test -z "$as_dir" && as_dir=.
2895     for ac_exec_ext in '' $ac_executable_extensions; do
2896   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2897     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2898     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2899     break 2
2900   fi
2901 done
2902   done
2903 IFS=$as_save_IFS
2904
2905 fi
2906 fi
2907 CC=$ac_cv_prog_CC
2908 if test -n "$CC"; then
2909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2910 $as_echo "$CC" >&6; }
2911 else
2912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2913 $as_echo "no" >&6; }
2914 fi
2915
2916
2917     test -n "$CC" && break
2918   done
2919 fi
2920 if test -z "$CC"; then
2921   ac_ct_CC=$CC
2922   for ac_prog in cl.exe
2923 do
2924   # Extract the first word of "$ac_prog", so it can be a program name with args.
2925 set dummy $ac_prog; ac_word=$2
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2927 $as_echo_n "checking for $ac_word... " >&6; }
2928 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2929   $as_echo_n "(cached) " >&6
2930 else
2931   if test -n "$ac_ct_CC"; then
2932   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2933 else
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935 for as_dir in $PATH
2936 do
2937   IFS=$as_save_IFS
2938   test -z "$as_dir" && as_dir=.
2939     for ac_exec_ext in '' $ac_executable_extensions; do
2940   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2941     ac_cv_prog_ac_ct_CC="$ac_prog"
2942     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2943     break 2
2944   fi
2945 done
2946   done
2947 IFS=$as_save_IFS
2948
2949 fi
2950 fi
2951 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2952 if test -n "$ac_ct_CC"; then
2953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2954 $as_echo "$ac_ct_CC" >&6; }
2955 else
2956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2957 $as_echo "no" >&6; }
2958 fi
2959
2960
2961   test -n "$ac_ct_CC" && break
2962 done
2963
2964   if test "x$ac_ct_CC" = x; then
2965     CC=""
2966   else
2967     case $cross_compiling:$ac_tool_warned in
2968 yes:)
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2970 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2971 ac_tool_warned=yes ;;
2972 esac
2973     CC=$ac_ct_CC
2974   fi
2975 fi
2976
2977 fi
2978
2979
2980 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2981 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2982 as_fn_error $? "no acceptable C compiler found in \$PATH
2983 See \`config.log' for more details" "$LINENO" 5 ; }
2984
2985 # Provide some information about the compiler.
2986 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2987 set X $ac_compile
2988 ac_compiler=$2
2989 for ac_option in --version -v -V -qversion; do
2990   { { ac_try="$ac_compiler $ac_option >&5"
2991 case "(($ac_try" in
2992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2993   *) ac_try_echo=$ac_try;;
2994 esac
2995 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2996 $as_echo "$ac_try_echo"; } >&5
2997   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2998   ac_status=$?
2999   if test -s conftest.err; then
3000     sed '10a\
3001 ... rest of stderr output deleted ...
3002          10q' conftest.err >conftest.er1
3003     cat conftest.er1 >&5
3004   fi
3005   rm -f conftest.er1 conftest.err
3006   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3007   test $ac_status = 0; }
3008 done
3009
3010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3011 /* end confdefs.h.  */
3012
3013 int
3014 main ()
3015 {
3016
3017   ;
3018   return 0;
3019 }
3020 _ACEOF
3021 ac_clean_files_save=$ac_clean_files
3022 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3023 # Try to create an executable without -o first, disregard a.out.
3024 # It will help us diagnose broken compilers, and finding out an intuition
3025 # of exeext.
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3027 $as_echo_n "checking whether the C compiler works... " >&6; }
3028 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3029
3030 # The possible output files:
3031 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3032
3033 ac_rmfiles=
3034 for ac_file in $ac_files
3035 do
3036   case $ac_file in
3037     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3038     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3039   esac
3040 done
3041 rm -f $ac_rmfiles
3042
3043 if { { ac_try="$ac_link_default"
3044 case "(($ac_try" in
3045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046   *) ac_try_echo=$ac_try;;
3047 esac
3048 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3049 $as_echo "$ac_try_echo"; } >&5
3050   (eval "$ac_link_default") 2>&5
3051   ac_status=$?
3052   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3053   test $ac_status = 0; }; then :
3054   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3055 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3056 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3057 # so that the user can short-circuit this test for compilers unknown to
3058 # Autoconf.
3059 for ac_file in $ac_files ''
3060 do
3061   test -f "$ac_file" || continue
3062   case $ac_file in
3063     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3064         ;;
3065     [ab].out )
3066         # We found the default executable, but exeext='' is most
3067         # certainly right.
3068         break;;
3069     *.* )
3070         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3071         then :; else
3072            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3073         fi
3074         # We set ac_cv_exeext here because the later test for it is not
3075         # safe: cross compilers may not add the suffix if given an `-o'
3076         # argument, so we may need to know it at that point already.
3077         # Even if this section looks crufty: it has the advantage of
3078         # actually working.
3079         break;;
3080     * )
3081         break;;
3082   esac
3083 done
3084 test "$ac_cv_exeext" = no && ac_cv_exeext=
3085
3086 else
3087   ac_file=''
3088 fi
3089 if test -z "$ac_file"; then :
3090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3091 $as_echo "no" >&6; }
3092 $as_echo "$as_me: failed program was:" >&5
3093 sed 's/^/| /' conftest.$ac_ext >&5
3094
3095 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3097 as_fn_error 77 "C compiler cannot create executables
3098 See \`config.log' for more details" "$LINENO" 5 ; }
3099 else
3100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3101 $as_echo "yes" >&6; }
3102 fi
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3104 $as_echo_n "checking for C compiler default output file name... " >&6; }
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3106 $as_echo "$ac_file" >&6; }
3107 ac_exeext=$ac_cv_exeext
3108
3109 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3110 ac_clean_files=$ac_clean_files_save
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3112 $as_echo_n "checking for suffix of executables... " >&6; }
3113 if { { ac_try="$ac_link"
3114 case "(($ac_try" in
3115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116   *) ac_try_echo=$ac_try;;
3117 esac
3118 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3119 $as_echo "$ac_try_echo"; } >&5
3120   (eval "$ac_link") 2>&5
3121   ac_status=$?
3122   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3123   test $ac_status = 0; }; then :
3124   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3125 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3126 # work properly (i.e., refer to `conftest.exe'), while it won't with
3127 # `rm'.
3128 for ac_file in conftest.exe conftest conftest.*; do
3129   test -f "$ac_file" || continue
3130   case $ac_file in
3131     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3132     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3133           break;;
3134     * ) break;;
3135   esac
3136 done
3137 else
3138   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3139 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3140 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3141 See \`config.log' for more details" "$LINENO" 5 ; }
3142 fi
3143 rm -f conftest conftest$ac_cv_exeext
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3145 $as_echo "$ac_cv_exeext" >&6; }
3146
3147 rm -f conftest.$ac_ext
3148 EXEEXT=$ac_cv_exeext
3149 ac_exeext=$EXEEXT
3150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3151 /* end confdefs.h.  */
3152 #include <stdio.h>
3153 int
3154 main ()
3155 {
3156 FILE *f = fopen ("conftest.out", "w");
3157  return ferror (f) || fclose (f) != 0;
3158
3159   ;
3160   return 0;
3161 }
3162 _ACEOF
3163 ac_clean_files="$ac_clean_files conftest.out"
3164 # Check that the compiler produces executables we can run.  If not, either
3165 # the compiler is broken, or we cross compile.
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3167 $as_echo_n "checking whether we are cross compiling... " >&6; }
3168 if test "$cross_compiling" != yes; then
3169   { { ac_try="$ac_link"
3170 case "(($ac_try" in
3171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172   *) ac_try_echo=$ac_try;;
3173 esac
3174 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3175 $as_echo "$ac_try_echo"; } >&5
3176   (eval "$ac_link") 2>&5
3177   ac_status=$?
3178   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3179   test $ac_status = 0; }
3180   if { ac_try='./conftest$ac_cv_exeext'
3181   { { case "(($ac_try" in
3182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183   *) ac_try_echo=$ac_try;;
3184 esac
3185 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3186 $as_echo "$ac_try_echo"; } >&5
3187   (eval "$ac_try") 2>&5
3188   ac_status=$?
3189   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3190   test $ac_status = 0; }; }; then
3191     cross_compiling=no
3192   else
3193     if test "$cross_compiling" = maybe; then
3194         cross_compiling=yes
3195     else
3196         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3198 as_fn_error $? "cannot run C compiled programs.
3199 If you meant to cross compile, use \`--host'.
3200 See \`config.log' for more details" "$LINENO" 5 ; }
3201     fi
3202   fi
3203 fi
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3205 $as_echo "$cross_compiling" >&6; }
3206
3207 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3208 ac_clean_files=$ac_clean_files_save
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3210 $as_echo_n "checking for suffix of object files... " >&6; }
3211 if test "${ac_cv_objext+set}" = set; then :
3212   $as_echo_n "(cached) " >&6
3213 else
3214   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3215 /* end confdefs.h.  */
3216
3217 int
3218 main ()
3219 {
3220
3221   ;
3222   return 0;
3223 }
3224 _ACEOF
3225 rm -f conftest.o conftest.obj
3226 if { { ac_try="$ac_compile"
3227 case "(($ac_try" in
3228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229   *) ac_try_echo=$ac_try;;
3230 esac
3231 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3232 $as_echo "$ac_try_echo"; } >&5
3233   (eval "$ac_compile") 2>&5
3234   ac_status=$?
3235   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3236   test $ac_status = 0; }; then :
3237   for ac_file in conftest.o conftest.obj conftest.*; do
3238   test -f "$ac_file" || continue;
3239   case $ac_file in
3240     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3241     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3242        break;;
3243   esac
3244 done
3245 else
3246   $as_echo "$as_me: failed program was:" >&5
3247 sed 's/^/| /' conftest.$ac_ext >&5
3248
3249 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3250 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3251 as_fn_error $? "cannot compute suffix of object files: cannot compile
3252 See \`config.log' for more details" "$LINENO" 5 ; }
3253 fi
3254 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3255 fi
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3257 $as_echo "$ac_cv_objext" >&6; }
3258 OBJEXT=$ac_cv_objext
3259 ac_objext=$OBJEXT
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3261 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3262 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3263   $as_echo_n "(cached) " >&6
3264 else
3265   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3266 /* end confdefs.h.  */
3267
3268 int
3269 main ()
3270 {
3271 #ifndef __GNUC__
3272        choke me
3273 #endif
3274
3275   ;
3276   return 0;
3277 }
3278 _ACEOF
3279 if ac_fn_c_try_compile "$LINENO"; then :
3280   ac_compiler_gnu=yes
3281 else
3282   ac_compiler_gnu=no
3283 fi
3284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3285 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3286
3287 fi
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3289 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3290 if test $ac_compiler_gnu = yes; then
3291   GCC=yes
3292 else
3293   GCC=
3294 fi
3295 ac_test_CFLAGS=${CFLAGS+set}
3296 ac_save_CFLAGS=$CFLAGS
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3298 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3299 if test "${ac_cv_prog_cc_g+set}" = set; then :
3300   $as_echo_n "(cached) " >&6
3301 else
3302   ac_save_c_werror_flag=$ac_c_werror_flag
3303    ac_c_werror_flag=yes
3304    ac_cv_prog_cc_g=no
3305    CFLAGS="-g"
3306    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3307 /* end confdefs.h.  */
3308
3309 int
3310 main ()
3311 {
3312
3313   ;
3314   return 0;
3315 }
3316 _ACEOF
3317 if ac_fn_c_try_compile "$LINENO"; then :
3318   ac_cv_prog_cc_g=yes
3319 else
3320   CFLAGS=""
3321       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3322 /* end confdefs.h.  */
3323
3324 int
3325 main ()
3326 {
3327
3328   ;
3329   return 0;
3330 }
3331 _ACEOF
3332 if ac_fn_c_try_compile "$LINENO"; then :
3333
3334 else
3335   ac_c_werror_flag=$ac_save_c_werror_flag
3336          CFLAGS="-g"
3337          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3338 /* end confdefs.h.  */
3339
3340 int
3341 main ()
3342 {
3343
3344   ;
3345   return 0;
3346 }
3347 _ACEOF
3348 if ac_fn_c_try_compile "$LINENO"; then :
3349   ac_cv_prog_cc_g=yes
3350 fi
3351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3352 fi
3353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3354 fi
3355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3356    ac_c_werror_flag=$ac_save_c_werror_flag
3357 fi
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3359 $as_echo "$ac_cv_prog_cc_g" >&6; }
3360 if test "$ac_test_CFLAGS" = set; then
3361   CFLAGS=$ac_save_CFLAGS
3362 elif test $ac_cv_prog_cc_g = yes; then
3363   if test "$GCC" = yes; then
3364     CFLAGS="-g -O2"
3365   else
3366     CFLAGS="-g"
3367   fi
3368 else
3369   if test "$GCC" = yes; then
3370     CFLAGS="-O2"
3371   else
3372     CFLAGS=
3373   fi
3374 fi
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3376 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3377 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3378   $as_echo_n "(cached) " >&6
3379 else
3380   ac_cv_prog_cc_c89=no
3381 ac_save_CC=$CC
3382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3383 /* end confdefs.h.  */
3384 #include <stdarg.h>
3385 #include <stdio.h>
3386 #include <sys/types.h>
3387 #include <sys/stat.h>
3388 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3389 struct buf { int x; };
3390 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3391 static char *e (p, i)
3392      char **p;
3393      int i;
3394 {
3395   return p[i];
3396 }
3397 static char *f (char * (*g) (char **, int), char **p, ...)
3398 {
3399   char *s;
3400   va_list v;
3401   va_start (v,p);
3402   s = g (p, va_arg (v,int));
3403   va_end (v);
3404   return s;
3405 }
3406
3407 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3408    function prototypes and stuff, but not '\xHH' hex character constants.
3409    These don't provoke an error unfortunately, instead are silently treated
3410    as 'x'.  The following induces an error, until -std is added to get
3411    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3412    array size at least.  It's necessary to write '\x00'==0 to get something
3413    that's true only with -std.  */
3414 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3415
3416 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3417    inside strings and character constants.  */
3418 #define FOO(x) 'x'
3419 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3420
3421 int test (int i, double x);
3422 struct s1 {int (*f) (int a);};
3423 struct s2 {int (*f) (double a);};
3424 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3425 int argc;
3426 char **argv;
3427 int
3428 main ()
3429 {
3430 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3431   ;
3432   return 0;
3433 }
3434 _ACEOF
3435 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3436         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3437 do
3438   CC="$ac_save_CC $ac_arg"
3439   if ac_fn_c_try_compile "$LINENO"; then :
3440   ac_cv_prog_cc_c89=$ac_arg
3441 fi
3442 rm -f core conftest.err conftest.$ac_objext
3443   test "x$ac_cv_prog_cc_c89" != "xno" && break
3444 done
3445 rm -f conftest.$ac_ext
3446 CC=$ac_save_CC
3447
3448 fi
3449 # AC_CACHE_VAL
3450 case "x$ac_cv_prog_cc_c89" in
3451   x)
3452     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3453 $as_echo "none needed" >&6; } ;;
3454   xno)
3455     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3456 $as_echo "unsupported" >&6; } ;;
3457   *)
3458     CC="$CC $ac_cv_prog_cc_c89"
3459     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3460 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3461 esac
3462 if test "x$ac_cv_prog_cc_c89" != xno; then :
3463
3464 fi
3465
3466 ac_ext=c
3467 ac_cpp='$CPP $CPPFLAGS'
3468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3471
3472
3473 # When $CC foo.c -o foo creates both foo and foo.exe, autoconf picks
3474 # up the foo.exe and sets exeext to .exe. That is correct for cygwin,
3475 # which has some kind of magic link from foo to foo.exe, but not for
3476 # rntcl. A better check for the cygwin case would check if the
3477 # contents of foo and foo.exe are equal; in the rntcl case, foo is a
3478 # sh script, and foo.exe is a windows executable.
3479
3480 if test "x$CC" = xrntcl ; then
3481     { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with rntcl; clearing EXEEXT and disabling assembler" >&5
3482 $as_echo "$as_me: Compiling with rntcl; clearing EXEEXT and disabling assembler" >&6;}
3483     ac_exeext=''
3484     ac_cv_exeext=''
3485     EXEEXT=''
3486     enable_assembler=no
3487 fi
3488
3489 # Used by the testsuite only
3490 ac_ext=cpp
3491 ac_cpp='$CXXCPP $CPPFLAGS'
3492 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3493 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3494 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3495 if test -z "$CXX"; then
3496   if test -n "$CCC"; then
3497     CXX=$CCC
3498   else
3499     if test -n "$ac_tool_prefix"; then
3500   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3501   do
3502     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3503 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3505 $as_echo_n "checking for $ac_word... " >&6; }
3506 if test "${ac_cv_prog_CXX+set}" = set; then :
3507   $as_echo_n "(cached) " >&6
3508 else
3509   if test -n "$CXX"; then
3510   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3511 else
3512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3513 for as_dir in $PATH
3514 do
3515   IFS=$as_save_IFS
3516   test -z "$as_dir" && as_dir=.
3517     for ac_exec_ext in '' $ac_executable_extensions; do
3518   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3519     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3520     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3521     break 2
3522   fi
3523 done
3524   done
3525 IFS=$as_save_IFS
3526
3527 fi
3528 fi
3529 CXX=$ac_cv_prog_CXX
3530 if test -n "$CXX"; then
3531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3532 $as_echo "$CXX" >&6; }
3533 else
3534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3535 $as_echo "no" >&6; }
3536 fi
3537
3538
3539     test -n "$CXX" && break
3540   done
3541 fi
3542 if test -z "$CXX"; then
3543   ac_ct_CXX=$CXX
3544   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3545 do
3546   # Extract the first word of "$ac_prog", so it can be a program name with args.
3547 set dummy $ac_prog; ac_word=$2
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3549 $as_echo_n "checking for $ac_word... " >&6; }
3550 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3551   $as_echo_n "(cached) " >&6
3552 else
3553   if test -n "$ac_ct_CXX"; then
3554   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3555 else
3556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3557 for as_dir in $PATH
3558 do
3559   IFS=$as_save_IFS
3560   test -z "$as_dir" && as_dir=.
3561     for ac_exec_ext in '' $ac_executable_extensions; do
3562   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3563     ac_cv_prog_ac_ct_CXX="$ac_prog"
3564     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3565     break 2
3566   fi
3567 done
3568   done
3569 IFS=$as_save_IFS
3570
3571 fi
3572 fi
3573 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3574 if test -n "$ac_ct_CXX"; then
3575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3576 $as_echo "$ac_ct_CXX" >&6; }
3577 else
3578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3579 $as_echo "no" >&6; }
3580 fi
3581
3582
3583   test -n "$ac_ct_CXX" && break
3584 done
3585
3586   if test "x$ac_ct_CXX" = x; then
3587     CXX="g++"
3588   else
3589     case $cross_compiling:$ac_tool_warned in
3590 yes:)
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3592 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3593 ac_tool_warned=yes ;;
3594 esac
3595     CXX=$ac_ct_CXX
3596   fi
3597 fi
3598
3599   fi
3600 fi
3601 # Provide some information about the compiler.
3602 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3603 set X $ac_compile
3604 ac_compiler=$2
3605 for ac_option in --version -v -V -qversion; do
3606   { { ac_try="$ac_compiler $ac_option >&5"
3607 case "(($ac_try" in
3608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609   *) ac_try_echo=$ac_try;;
3610 esac
3611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3612 $as_echo "$ac_try_echo"; } >&5
3613   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3614   ac_status=$?
3615   if test -s conftest.err; then
3616     sed '10a\
3617 ... rest of stderr output deleted ...
3618          10q' conftest.err >conftest.er1
3619     cat conftest.er1 >&5
3620   fi
3621   rm -f conftest.er1 conftest.err
3622   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3623   test $ac_status = 0; }
3624 done
3625
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3627 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3628 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3629   $as_echo_n "(cached) " >&6
3630 else
3631   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632 /* end confdefs.h.  */
3633
3634 int
3635 main ()
3636 {
3637 #ifndef __GNUC__
3638        choke me
3639 #endif
3640
3641   ;
3642   return 0;
3643 }
3644 _ACEOF
3645 if ac_fn_cxx_try_compile "$LINENO"; then :
3646   ac_compiler_gnu=yes
3647 else
3648   ac_compiler_gnu=no
3649 fi
3650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3651 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3652
3653 fi
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3655 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3656 if test $ac_compiler_gnu = yes; then
3657   GXX=yes
3658 else
3659   GXX=
3660 fi
3661 ac_test_CXXFLAGS=${CXXFLAGS+set}
3662 ac_save_CXXFLAGS=$CXXFLAGS
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3664 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3665 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3666   $as_echo_n "(cached) " >&6
3667 else
3668   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3669    ac_cxx_werror_flag=yes
3670    ac_cv_prog_cxx_g=no
3671    CXXFLAGS="-g"
3672    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3673 /* end confdefs.h.  */
3674
3675 int
3676 main ()
3677 {
3678
3679   ;
3680   return 0;
3681 }
3682 _ACEOF
3683 if ac_fn_cxx_try_compile "$LINENO"; then :
3684   ac_cv_prog_cxx_g=yes
3685 else
3686   CXXFLAGS=""
3687       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3688 /* end confdefs.h.  */
3689
3690 int
3691 main ()
3692 {
3693
3694   ;
3695   return 0;
3696 }
3697 _ACEOF
3698 if ac_fn_cxx_try_compile "$LINENO"; then :
3699
3700 else
3701   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3702          CXXFLAGS="-g"
3703          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3704 /* end confdefs.h.  */
3705
3706 int
3707 main ()
3708 {
3709
3710   ;
3711   return 0;
3712 }
3713 _ACEOF
3714 if ac_fn_cxx_try_compile "$LINENO"; then :
3715   ac_cv_prog_cxx_g=yes
3716 fi
3717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3718 fi
3719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3720 fi
3721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3722    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3723 fi
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3725 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3726 if test "$ac_test_CXXFLAGS" = set; then
3727   CXXFLAGS=$ac_save_CXXFLAGS
3728 elif test $ac_cv_prog_cxx_g = yes; then
3729   if test "$GXX" = yes; then
3730     CXXFLAGS="-g -O2"
3731   else
3732     CXXFLAGS="-g"
3733   fi
3734 else
3735   if test "$GXX" = yes; then
3736     CXXFLAGS="-O2"
3737   else
3738     CXXFLAGS=
3739   fi
3740 fi
3741 ac_ext=c
3742 ac_cpp='$CPP $CPPFLAGS'
3743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3746
3747
3748 ac_ext=cpp
3749 ac_cpp='$CXXCPP $CPPFLAGS'
3750 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3751 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3752 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3753
3754
3755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756 /* end confdefs.h.  */
3757
3758 int
3759 main ()
3760 {
3761 return 0;
3762   ;
3763   return 0;
3764 }
3765 _ACEOF
3766 if ac_fn_cxx_try_compile "$LINENO"; then :
3767   CXX_TESTS='cxx-test$(EXEEXT)'
3768 else
3769   CXX_TESTS=''
3770 fi
3771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3772
3773 ac_ext=c
3774 ac_cpp='$CPP $CPPFLAGS'
3775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3778
3779
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3781 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3782 set x ${MAKE-make}
3783 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3784 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3785   $as_echo_n "(cached) " >&6
3786 else
3787   cat >conftest.make <<\_ACEOF
3788 SHELL = /bin/sh
3789 all:
3790         @echo '@@@%%%=$(MAKE)=@@@%%%'
3791 _ACEOF
3792 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3793 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3794   *@@@%%%=?*=@@@%%%*)
3795     eval ac_cv_prog_make_${ac_make}_set=yes;;
3796   *)
3797     eval ac_cv_prog_make_${ac_make}_set=no;;
3798 esac
3799 rm -f conftest.make
3800 fi
3801 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3803 $as_echo "yes" >&6; }
3804   SET_MAKE=
3805 else
3806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3807 $as_echo "no" >&6; }
3808   SET_MAKE="MAKE=${MAKE-make}"
3809 fi
3810
3811 if test -n "$ac_tool_prefix"; then
3812   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3813 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3815 $as_echo_n "checking for $ac_word... " >&6; }
3816 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3817   $as_echo_n "(cached) " >&6
3818 else
3819   if test -n "$RANLIB"; then
3820   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3821 else
3822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3823 for as_dir in $PATH
3824 do
3825   IFS=$as_save_IFS
3826   test -z "$as_dir" && as_dir=.
3827     for ac_exec_ext in '' $ac_executable_extensions; do
3828   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3829     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3830     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3831     break 2
3832   fi
3833 done
3834   done
3835 IFS=$as_save_IFS
3836
3837 fi
3838 fi
3839 RANLIB=$ac_cv_prog_RANLIB
3840 if test -n "$RANLIB"; then
3841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3842 $as_echo "$RANLIB" >&6; }
3843 else
3844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3845 $as_echo "no" >&6; }
3846 fi
3847
3848
3849 fi
3850 if test -z "$ac_cv_prog_RANLIB"; then
3851   ac_ct_RANLIB=$RANLIB
3852   # Extract the first word of "ranlib", so it can be a program name with args.
3853 set dummy ranlib; ac_word=$2
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3855 $as_echo_n "checking for $ac_word... " >&6; }
3856 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3857   $as_echo_n "(cached) " >&6
3858 else
3859   if test -n "$ac_ct_RANLIB"; then
3860   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3861 else
3862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3863 for as_dir in $PATH
3864 do
3865   IFS=$as_save_IFS
3866   test -z "$as_dir" && as_dir=.
3867     for ac_exec_ext in '' $ac_executable_extensions; do
3868   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3869     ac_cv_prog_ac_ct_RANLIB="ranlib"
3870     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3871     break 2
3872   fi
3873 done
3874   done
3875 IFS=$as_save_IFS
3876
3877 fi
3878 fi
3879 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3880 if test -n "$ac_ct_RANLIB"; then
3881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3882 $as_echo "$ac_ct_RANLIB" >&6; }
3883 else
3884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3885 $as_echo "no" >&6; }
3886 fi
3887
3888   if test "x$ac_ct_RANLIB" = x; then
3889     RANLIB=":"
3890   else
3891     case $cross_compiling:$ac_tool_warned in
3892 yes:)
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3894 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3895 ac_tool_warned=yes ;;
3896 esac
3897     RANLIB=$ac_ct_RANLIB
3898   fi
3899 else
3900   RANLIB="$ac_cv_prog_RANLIB"
3901 fi
3902
3903 if test -n "$ac_tool_prefix"; then
3904   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
3905 set dummy ${ac_tool_prefix}nm; ac_word=$2
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3907 $as_echo_n "checking for $ac_word... " >&6; }
3908 if test "${ac_cv_prog_NM+set}" = set; then :
3909   $as_echo_n "(cached) " >&6
3910 else
3911   if test -n "$NM"; then
3912   ac_cv_prog_NM="$NM" # Let the user override the test.
3913 else
3914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915 for as_dir in $PATH
3916 do
3917   IFS=$as_save_IFS
3918   test -z "$as_dir" && as_dir=.
3919     for ac_exec_ext in '' $ac_executable_extensions; do
3920   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3921     ac_cv_prog_NM="${ac_tool_prefix}nm"
3922     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3923     break 2
3924   fi
3925 done
3926   done
3927 IFS=$as_save_IFS
3928
3929 fi
3930 fi
3931 NM=$ac_cv_prog_NM
3932 if test -n "$NM"; then
3933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
3934 $as_echo "$NM" >&6; }
3935 else
3936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3937 $as_echo "no" >&6; }
3938 fi
3939
3940
3941 fi
3942 if test -z "$ac_cv_prog_NM"; then
3943   ac_ct_NM=$NM
3944   # Extract the first word of "nm", so it can be a program name with args.
3945 set dummy nm; ac_word=$2
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3947 $as_echo_n "checking for $ac_word... " >&6; }
3948 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
3949   $as_echo_n "(cached) " >&6
3950 else
3951   if test -n "$ac_ct_NM"; then
3952   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
3953 else
3954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3955 for as_dir in $PATH
3956 do
3957   IFS=$as_save_IFS
3958   test -z "$as_dir" && as_dir=.
3959     for ac_exec_ext in '' $ac_executable_extensions; do
3960   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3961     ac_cv_prog_ac_ct_NM="nm"
3962     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3963     break 2
3964   fi
3965 done
3966   done
3967 IFS=$as_save_IFS
3968
3969 fi
3970 fi
3971 ac_ct_NM=$ac_cv_prog_ac_ct_NM
3972 if test -n "$ac_ct_NM"; then
3973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
3974 $as_echo "$ac_ct_NM" >&6; }
3975 else
3976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3977 $as_echo "no" >&6; }
3978 fi
3979
3980   if test "x$ac_ct_NM" = x; then
3981     NM="strings"
3982   else
3983     case $cross_compiling:$ac_tool_warned in
3984 yes:)
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3986 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3987 ac_tool_warned=yes ;;
3988 esac
3989     NM=$ac_ct_NM
3990   fi
3991 else
3992   NM="$ac_cv_prog_NM"
3993 fi
3994
3995 # Used only for the GNU-stack configure test.
3996 if test -n "$ac_tool_prefix"; then
3997   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3998 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4000 $as_echo_n "checking for $ac_word... " >&6; }
4001 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4002   $as_echo_n "(cached) " >&6
4003 else
4004   if test -n "$OBJDUMP"; then
4005   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4006 else
4007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4008 for as_dir in $PATH
4009 do
4010   IFS=$as_save_IFS
4011   test -z "$as_dir" && as_dir=.
4012     for ac_exec_ext in '' $ac_executable_extensions; do
4013   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4014     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4015     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4016     break 2
4017   fi
4018 done
4019   done
4020 IFS=$as_save_IFS
4021
4022 fi
4023 fi
4024 OBJDUMP=$ac_cv_prog_OBJDUMP
4025 if test -n "$OBJDUMP"; then
4026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4027 $as_echo "$OBJDUMP" >&6; }
4028 else
4029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4030 $as_echo "no" >&6; }
4031 fi
4032
4033
4034 fi
4035 if test -z "$ac_cv_prog_OBJDUMP"; then
4036   ac_ct_OBJDUMP=$OBJDUMP
4037   # Extract the first word of "objdump", so it can be a program name with args.
4038 set dummy objdump; ac_word=$2
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4040 $as_echo_n "checking for $ac_word... " >&6; }
4041 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4042   $as_echo_n "(cached) " >&6
4043 else
4044   if test -n "$ac_ct_OBJDUMP"; then
4045   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4046 else
4047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4048 for as_dir in $PATH
4049 do
4050   IFS=$as_save_IFS
4051   test -z "$as_dir" && as_dir=.
4052     for ac_exec_ext in '' $ac_executable_extensions; do
4053   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4054     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4055     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4056     break 2
4057   fi
4058 done
4059   done
4060 IFS=$as_save_IFS
4061
4062 fi
4063 fi
4064 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4065 if test -n "$ac_ct_OBJDUMP"; then
4066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4067 $as_echo "$ac_ct_OBJDUMP" >&6; }
4068 else
4069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4070 $as_echo "no" >&6; }
4071 fi
4072
4073   if test "x$ac_ct_OBJDUMP" = x; then
4074     OBJDUMP="false"
4075   else
4076     case $cross_compiling:$ac_tool_warned in
4077 yes:)
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4079 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4080 ac_tool_warned=yes ;;
4081 esac
4082     OBJDUMP=$ac_ct_OBJDUMP
4083   fi
4084 else
4085   OBJDUMP="$ac_cv_prog_OBJDUMP"
4086 fi
4087
4088
4089 if test "x$ac_cv_prog_cc_stdc" = xno ; then
4090   as_fn_error $? "the C compiler doesn't handle ANSI-C" "$LINENO" 5  #'
4091 fi
4092
4093 # Find a good install program.  We prefer a C program (faster),
4094 # so one script is as good as another.  But avoid the broken or
4095 # incompatible versions:
4096 # SysV /etc/install, /usr/sbin/install
4097 # SunOS /usr/etc/install
4098 # IRIX /sbin/install
4099 # AIX /bin/install
4100 # AmigaOS /C/install, which installs bootblocks on floppy discs
4101 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4102 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4103 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4104 # OS/2's system install, which has a completely different semantic
4105 # ./install, which can be erroneously created by make from ./install.sh.
4106 # Reject install programs that cannot install multiple files.
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4108 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4109 if test -z "$INSTALL"; then
4110 if test "${ac_cv_path_install+set}" = set; then :
4111   $as_echo_n "(cached) " >&6
4112 else
4113   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4114 for as_dir in $PATH
4115 do
4116   IFS=$as_save_IFS
4117   test -z "$as_dir" && as_dir=.
4118     # Account for people who put trailing slashes in PATH elements.
4119 case $as_dir/ in #((
4120   ./ | .// | /[cC]/* | \
4121   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4122   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4123   /usr/ucb/* ) ;;
4124   *)
4125     # OSF1 and SCO ODT 3.0 have their own names for install.
4126     # Don't use installbsd from OSF since it installs stuff as root
4127     # by default.
4128     for ac_prog in ginstall scoinst install; do
4129       for ac_exec_ext in '' $ac_executable_extensions; do
4130         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4131           if test $ac_prog = install &&
4132             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4133             # AIX install.  It has an incompatible calling convention.
4134             :
4135           elif test $ac_prog = install &&
4136             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4137             # program-specific install script used by HP pwplus--don't use.
4138             :
4139           else
4140             rm -rf conftest.one conftest.two conftest.dir
4141             echo one > conftest.one
4142             echo two > conftest.two
4143             mkdir conftest.dir
4144             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4145               test -s conftest.one && test -s conftest.two &&
4146               test -s conftest.dir/conftest.one &&
4147               test -s conftest.dir/conftest.two
4148             then
4149               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4150               break 3
4151             fi
4152           fi
4153         fi
4154       done
4155     done
4156     ;;
4157 esac
4158
4159   done
4160 IFS=$as_save_IFS
4161
4162 rm -rf conftest.one conftest.two conftest.dir
4163
4164 fi
4165   if test "${ac_cv_path_install+set}" = set; then
4166     INSTALL=$ac_cv_path_install
4167   else
4168     # As a last resort, use the slow shell script.  Don't cache a
4169     # value for INSTALL within a source directory, because that will
4170     # break other packages using the cache if that directory is
4171     # removed, or if the value is a relative name.
4172     INSTALL=$ac_install_sh
4173   fi
4174 fi
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4176 $as_echo "$INSTALL" >&6; }
4177
4178 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4179 # It thinks the first close brace ends the variable substitution.
4180 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4181
4182 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4183
4184 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4185
4186
4187 # According to the autoconf manual, needs install-sh from
4188 # autoconf-2.60 or automake-1.10 to avoid races.
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4190 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4191 if test -z "$MKDIR_P"; then
4192   if test "${ac_cv_path_mkdir+set}" = set; then :
4193   $as_echo_n "(cached) " >&6
4194 else
4195   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4196 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4197 do
4198   IFS=$as_save_IFS
4199   test -z "$as_dir" && as_dir=.
4200     for ac_prog in mkdir gmkdir; do
4201          for ac_exec_ext in '' $ac_executable_extensions; do
4202            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4203            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4204              'mkdir (GNU coreutils) '* | \
4205              'mkdir (coreutils) '* | \
4206              'mkdir (fileutils) '4.1*)
4207                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4208                break 3;;
4209            esac
4210          done
4211        done
4212   done
4213 IFS=$as_save_IFS
4214
4215 fi
4216
4217   test -d ./--version && rmdir ./--version
4218   if test "${ac_cv_path_mkdir+set}" = set; then
4219     MKDIR_P="$ac_cv_path_mkdir -p"
4220   else
4221     # As a last resort, use the slow shell script.  Don't cache a
4222     # value for MKDIR_P within a source directory, because that will
4223     # break other packages using the cache if that directory is
4224     # removed, or if the value is a relative name.
4225     MKDIR_P="$ac_install_sh -d"
4226   fi
4227 fi
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4229 $as_echo "$MKDIR_P" >&6; }
4230
4231
4232 # Check whether --enable-dependency_tracking was given.
4233 if test "${enable_dependency_tracking+set}" = set; then :
4234   enableval=$enable_dependency_tracking;
4235 else
4236   enable_dependency_tracking=yes
4237 fi
4238
4239
4240 DEP_FLAGS=''
4241 DEP_PROCESS='true'
4242 if test x$enable_dependency_tracking = xyes ; then
4243   if test x$GCC = xyes ; then
4244     gcc_version=`gcc --version | head -1`
4245     case "$gcc_version" in
4246       2.*|*[!0-9.]2.*)
4247         enable_dependency_tracking=no
4248         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Dependency tracking disabled, gcc-3.x is needed" >&5
4249 $as_echo "$as_me: WARNING: Dependency tracking disabled, gcc-3.x is needed" >&2;}
4250       ;;
4251       *)
4252         DEP_FLAGS='-MT $@ -MD -MP -MF $@.d'
4253         DEP_PROCESS='true'
4254       ;;
4255     esac
4256   else
4257     enable_dependency_tracking=no
4258     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Dependency tracking disabled" >&5
4259 $as_echo "$as_me: WARNING: Dependency tracking disabled" >&2;}
4260   fi
4261 fi
4262
4263 if test x$enable_dependency_tracking = xyes ; then
4264   DEP_INCLUDE='include '
4265 else
4266   DEP_INCLUDE='# '
4267 fi
4268
4269
4270
4271
4272
4273 if test x$enable_dependency_tracking = xyes ; then
4274   # Since the makefiles use include to get the dependency files, we must
4275   # make sure that the files exist. We generate some more files than are
4276   # actually needed.
4277
4278   ac_config_commands="$ac_config_commands dummy-dep-files"
4279
4280 fi
4281
4282 # Figure out ABI. Currently, configurable only by setting CFLAGS.
4283 ABI=standard
4284
4285 case "$host_cpu" in
4286   x86_64 | amd64)
4287
4288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4289 /* end confdefs.h.  */
4290
4291 #if defined(__x86_64__) || defined(__arch64__)
4292 #error 64-bit x86
4293 #endif
4294
4295 int
4296 main ()
4297 {
4298
4299   ;
4300   return 0;
4301 }
4302 _ACEOF
4303 if ac_fn_c_try_compile "$LINENO"; then :
4304
4305       ABI=32
4306
4307 else
4308
4309       ABI=64
4310
4311 fi
4312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4313     ;;
4314   *sparc*)
4315     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316 /* end confdefs.h.  */
4317
4318 #if defined(__sparcv9) || defined(__arch64__)
4319 #error 64-bit sparc
4320 #endif
4321
4322 int
4323 main ()
4324 {
4325
4326   ;
4327   return 0;
4328 }
4329 _ACEOF
4330 if ac_fn_c_try_compile "$LINENO"; then :
4331
4332       ABI=32
4333
4334 else
4335
4336       ABI=64
4337
4338 fi
4339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4340     ;;
4341 esac
4342
4343 if test "x$ABI" != xstandard ; then
4344   { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler uses $ABI-bit ABI. To change, set CC." >&5
4345 $as_echo "$as_me: Compiler uses $ABI-bit ABI. To change, set CC." >&6;}
4346   if test "$libdir" = '${exec_prefix}/lib' ; then
4347     # Try setting a better default
4348     case "$host_cpu:$host_os:$ABI" in
4349       *:solaris*:32|*:sunos*:32)
4350         libdir='${exec_prefix}/lib'
4351         ;;
4352       *:solaris*:64|*:sunos*:64)
4353         libdir='${exec_prefix}/lib/64'
4354         ;;
4355       # Linux conventions are a mess... According to the Linux File
4356       # Hierarchy Standard, all architectures except IA64 puts 32-bit
4357       # libraries in lib, and 64-bit in lib64. Some distributions,
4358       # e.g., Fedora and Gentoo, adhere to this standard, while at
4359       # least Debian has decided to put 64-bit libraries in lib and
4360       # 32-bit libraries in lib32.
4361
4362       # We try to figure out the convention, except if we're cross
4363       # compiling. We use lib${ABI} if /usr/lib${ABI} exists and
4364       # appears to not be a symlink to a different name.
4365       *:linux*:32|*:linux*:64)
4366         if test "$cross_compiling" = yes ; then
4367           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cross compiling for linux. Can't guess if libraries go in lib${ABI} or lib." >&5
4368 $as_echo "$as_me: WARNING: Cross compiling for linux. Can't guess if libraries go in lib${ABI} or lib." >&2;};  else
4369           # The dash builtin pwd tries to be "helpful" and remember
4370           # symlink names. Use -P option, and hope it's portable enough.
4371           test -d /usr/lib${ABI} \
4372             && (cd /usr/lib${ABI} && pwd -P | grep >/dev/null "/lib${ABI}"'$') \
4373             && libdir='${exec_prefix}/'"lib${ABI}"
4374         fi
4375         ;;
4376       # On freebsd, it seems 32-bit libraries are in lib32,
4377       # and 64-bit in lib. Don't know about "kfreebsd", does
4378       # it follow the Linux fhs conventions?
4379       *:freebsd*:32)
4380         libdir='${exec_prefix}/lib32'
4381         ;;
4382       *:freebsd*:64)
4383         libdir='${exec_prefix}/lib'
4384         ;;
4385       *)
4386         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Don't know where to install $ABI-bit libraries on this system." >&5
4387 $as_echo "$as_me: WARNING: Don't know where to install $ABI-bit libraries on this system." >&2;};
4388     esac
4389     { $as_echo "$as_me:${as_lineno-$LINENO}: Libraries to be installed in $libdir." >&5
4390 $as_echo "$as_me: Libraries to be installed in $libdir." >&6;}
4391   fi
4392 fi
4393
4394 # Select assembler code
4395 asm_path=
4396 if test "x$enable_assembler" = xyes ; then
4397   case "$host_cpu" in
4398     i?86* | k[5-8]* | pentium* | athlon)
4399       asm_path=x86
4400       ;;
4401     x86_64 | amd64)
4402       if test "$ABI" = 64 ; then
4403         asm_path=x86_64
4404       else
4405         asm_path=x86
4406       fi
4407       ;;
4408     *sparc*)
4409       if test "$ABI" = 64 ; then
4410         asm_path=sparc64
4411       else
4412         asm_path=sparc32
4413       fi
4414       ;;
4415     *)
4416       enable_assembler=no
4417       ;;
4418   esac
4419 fi
4420 # echo "enable_assembler: $enable_assembler, asm_path: $asm_path"
4421
4422 if test "x$enable_assembler" = xyes ; then
4423   if test -n "$asm_path"; then
4424     { $as_echo "$as_me:${as_lineno-$LINENO}: Looking for assembler files in $asm_path/." >&5
4425 $as_echo "$as_me: Looking for assembler files in $asm_path/." >&6;}
4426     found=no
4427     for tmp_f in aes-encrypt-internal.asm aes-decrypt-internal.asm \
4428                  arcfour-crypt.asm camellia-crypt-internal.asm \
4429                  md5-compress.asm memxor.asm \
4430                  serpent-encrypt.asm serpent-decrypt.asm \
4431                  sha1-compress.asm machine.m4; do
4432 #       echo "Looking for $srcdir/$asm_path/$tmp_f"
4433       if test -f "$srcdir/$asm_path/$tmp_f"; then
4434 #        echo found
4435         found=yes
4436         ac_config_links="$ac_config_links $tmp_f:$asm_path/$tmp_f"
4437
4438       fi
4439     done
4440     if test "$found" = no; then
4441       enable_assembler=no
4442       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No assembler files found." >&5
4443 $as_echo "$as_me: WARNING: No assembler files found." >&2;}
4444     fi
4445   fi
4446 fi
4447
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CCPIC" >&5
4449 $as_echo_n "checking CCPIC... " >&6; }
4450 if test "${lsh_cv_sys_ccpic+set}" = set; then :
4451   $as_echo_n "(cached) " >&6
4452 else
4453
4454   if test -z "$CCPIC" ; then
4455     if test "$GCC" = yes ; then
4456       case "$host_os" in
4457         bsdi4.*)        CCPIC="-fPIC" ;;
4458         bsdi*)          CCPIC="" ;;
4459         darwin*)        CCPIC="-fPIC" ;;
4460         # Could also use -fpic, depending on the number of symbol references
4461         solaris*)       CCPIC="-fPIC" ;;
4462         cygwin*)        CCPIC="" ;;
4463         mingw32*)       CCPIC="" ;;
4464         *)              CCPIC="-fpic" ;;
4465       esac
4466     else
4467       case "$host_os" in
4468         darwin*)        CCPIC="-fPIC" ;;
4469         irix*)          CCPIC="-share" ;;
4470         hpux*)          CCPIC="+z"; ;;
4471         *freebsd*)      CCPIC="-fpic" ;;
4472         sco*|sysv4.*)   CCPIC="-KPIC -dy -Bdynamic" ;;
4473         solaris*)       CCPIC="-KPIC -Bdynamic" ;;
4474         winnt*)         CCPIC="-shared" ;;
4475         *)              CCPIC="" ;;
4476       esac
4477     fi
4478   fi
4479   OLD_CFLAGS="$CFLAGS"
4480   CFLAGS="$CFLAGS $CCPIC"
4481   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4482 /* end confdefs.h.  */
4483
4484 int
4485 main ()
4486 {
4487 exit(0);
4488   ;
4489   return 0;
4490 }
4491 _ACEOF
4492 if ac_fn_c_try_compile "$LINENO"; then :
4493   lsh_cv_sys_ccpic="$CCPIC"
4494 else
4495   lsh_cv_sys_ccpic=''
4496 fi
4497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4498   CFLAGS="$OLD_CFLAGS"
4499
4500 fi
4501
4502 CCPIC="$lsh_cv_sys_ccpic"
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCPIC" >&5
4504 $as_echo "$CCPIC" >&6; }
4505
4506
4507 SHLIBCFLAGS="$CCPIC"
4508
4509 case "$host_os" in
4510   mingw32*)
4511     LIBNETTLE_FORLINK='libnettle-$(LIBNETTLE_MAJOR)-$(LIBNETTLE_MINOR).dll'
4512     LIBNETTLE_SONAME=''
4513     LIBNETTLE_FILE='libnettle.dll.a'
4514     LIBNETTLE_LINK='$(CC) $(LDFLAGS) -shared -Wl,--out-implib=$(LIBNETTLE_FILE) -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive'
4515     LIBNETTLE_LIBS='-Wl,--no-whole-archive $(LIBS)'
4516
4517     LIBHOGWEED_FORLINK='libhogweed-$(LIBHOGWEED_MAJOR)-$(LIBHOGWEED_MINOR).dll'
4518     LIBHOGWEED_SONAME=''
4519     LIBHOGWEED_FILE='libhogweed.dll.a'
4520     LIBHOGWEED_LINK='$(CC) $(LDFLAGS) -shared -Wl,--out-implib=$(LIBHOGWEED_FILE) -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive'
4521     LIBHOGWEED_LIBS='-Wl,--no-whole-archive $(LIBS) libnettle.dll.a'
4522     ;;
4523   cygwin*)
4524     LIBNETTLE_FORLINK='cygnettle-$(LIBNETTLE_MAJOR)-$(LIBNETTLE_MINOR).dll'
4525     LIBNETTLE_SONAME=''
4526     LIBNETTLE_FILE='libnettle.dll.a'
4527     LIBNETTLE_LINK='$(CC) $(LDFLAGS) -shared -Wl,--out-implib=$(LIBNETTLE_FILE) -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive'
4528     LIBNETTLE_LIBS='-Wl,--no-whole-archive $(LIBS)'
4529
4530     LIBHOGWEED_FORLINK='cyghogweed-$(LIBHOGWEED_MAJOR)-$(LIBHOGWEED_MINOR).dll'
4531     LIBHOGWEED_SONAME=''
4532     LIBHOGWEED_FILE='libhogweed.dll.a'
4533     LIBHOGWEED_LINK='$(CC) $(LDFLAGS) -shared -Wl,--out-implib=$(LIBHOGWEED_FILE) -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive'
4534     LIBHOGWEED_LIBS='-Wl,--no-whole-archive $(LIBS)'
4535     ;;
4536   darwin*)
4537     LIBNETTLE_FORLINK=libnettle.dylib
4538     LIBNETTLE_SONAME='$(LIBNETTLE_FORLINK).$(LIBNETTLE_MAJOR)'
4539     LIBNETTLE_FILE='$(LIBNETTLE_SONAME).$(LIBNETTLE_MINOR)'
4540     LIBNETTLE_LINK='$(CC) -dynamiclib $(LDFLAGS)'
4541     LIBNETTLE_LIBS=''
4542
4543     LIBHOGWEED_FORLINK=libhogweed.dylib
4544     LIBHOGWEED_SONAME='$(LIBHOGWEED_FORLINK).$(LIBHOGWEED_MAJOR)'
4545     LIBHOGWEED_FILE='$(LIBHOGWEED_SONAME).$(LIBHOGWEED_MINOR)'
4546     LIBHOGWEED_LINK='$(CC) -dynamiclib $(LDFLAGS)'
4547     LIBHOGWEED_LIBS=''
4548     ;;
4549   solaris*)
4550     # Sun's ld uses -h to set the soname, and this option is passed
4551     # through by both Sun's compiler and gcc. Might not work with GNU
4552     # ld, but it's unusual to use GNU ld on Solaris.
4553     LIBNETTLE_FORLINK=libnettle.so
4554     LIBNETTLE_SONAME='$(LIBNETTLE_FORLINK).$(LIBNETTLE_MAJOR)'
4555     LIBNETTLE_FILE='$(LIBNETTLE_SONAME).$(LIBNETTLE_MINOR)'
4556     LIBNETTLE_LINK='$(CC) $(LDFLAGS) -G -h $(LIBNETTLE_SONAME)'
4557     LIBNETTLE_LIBS=''
4558
4559     LIBHOGWEED_FORLINK=libhogweed.so
4560     LIBHOGWEED_SONAME='$(LIBHOGWEED_FORLINK).$(LIBHOGWEED_MAJOR)'
4561     LIBHOGWEED_FILE='$(LIBHOGWEED_SONAME).$(LIBHOGWEED_MINOR)'
4562     LIBHOGWEED_LINK='$(CC) $(LDFLAGS) -L. -G -h $(LIBHOGWEED_SONAME)'
4563     LIBHOGWEED_LIBS='-lnettle -lgmp'
4564     ;;
4565   *)
4566     LIBNETTLE_FORLINK=libnettle.so
4567     LIBNETTLE_SONAME='$(LIBNETTLE_FORLINK).$(LIBNETTLE_MAJOR)'
4568     LIBNETTLE_FILE='$(LIBNETTLE_SONAME).$(LIBNETTLE_MINOR)'
4569     LIBNETTLE_LINK='$(CC) $(LDFLAGS) -shared -Wl,-soname=$(LIBNETTLE_SONAME)'
4570     LIBNETTLE_LIBS=''
4571
4572     LIBHOGWEED_FORLINK=libhogweed.so
4573     LIBHOGWEED_SONAME='$(LIBHOGWEED_FORLINK).$(LIBHOGWEED_MAJOR)'
4574     LIBHOGWEED_FILE='$(LIBHOGWEED_SONAME).$(LIBHOGWEED_MINOR)'
4575     LIBHOGWEED_LINK='$(CC) $(LDFLAGS) -L. -shared -Wl,-soname=$(LIBHOGWEED_SONAME)'
4576     # Requested by debian, to make linking with only -lhogweed work
4577     # (does not work in general, e.g., with static linking all of
4578     # -lhogweed -lgmp -lnettle are still required). Also makes dlopen
4579     # of libhogweed.so work, without having to use RTLD_GLOBAL.
4580     # Depends on -L. above, to locate nettle.so.
4581     LIBHOGWEED_LIBS='-lnettle -lgmp'
4582     ;;
4583 esac
4584
4585 if test "x$enable_pic" = xyes; then
4586   CCPIC_MAYBE="$CCPIC"
4587 else
4588   CCPIC_MAYBE=''
4589 fi
4590
4591
4592 ASM_SYMBOL_PREFIX=''
4593 ASM_ELF_STYLE='no'
4594 ASM_TYPE_FUNCTION=''
4595 ASM_MARK_NOEXEC_STACK=''
4596 ASM_ALIGN_LOG=''
4597
4598 if test x$enable_assembler = xyes ; then
4599   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if globals are prefixed by underscore" >&5
4600 $as_echo_n "checking if globals are prefixed by underscore... " >&6; }
4601 if test "${nettle_cv_asm_underscore+set}" = set; then :
4602   $as_echo_n "(cached) " >&6
4603 else
4604    # Default is no underscore
4605     nettle_cv_asm_underscore=no
4606     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4607 /* end confdefs.h.  */
4608 int a_global_symbol;
4609 _ACEOF
4610 if ac_fn_c_try_compile "$LINENO"; then :
4611    $NM conftest.$OBJEXT >conftest.out
4612         if grep _a_global_symbol conftest.out >/dev/null ; then
4613           nettle_cv_asm_underscore=yes
4614         elif grep a_global_symbol conftest.out >/dev/null ; then
4615           nettle_cv_asm_underscore=no
4616         else
4617           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: nm doesn't list a_global_symbol at all" >&5
4618 $as_echo "$as_me: WARNING: nm doesn't list a_global_symbol at all" >&2;}
4619         fi
4620 else
4621   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: test program with a single global could not be compiled!?" >&5
4622 $as_echo "$as_me: WARNING: test program with a single global could not be compiled!?" >&2;}
4623 fi
4624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4625 fi
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_asm_underscore" >&5
4627 $as_echo "$nettle_cv_asm_underscore" >&6; }
4628   if test x$nettle_cv_asm_underscore = xyes ; then
4629     ASM_SYMBOL_PREFIX='_'
4630   fi
4631
4632   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use a .note.GNU-stack section" >&5
4633 $as_echo_n "checking if we should use a .note.GNU-stack section... " >&6; }
4634 if test "${nettle_cv_asm_gnu_stack+set}" = set; then :
4635   $as_echo_n "(cached) " >&6
4636 else
4637    # Default
4638     nettle_cv_asm_gnu_stack=no
4639
4640     cat >conftest.c <<EOF
4641 int foo() { return 0; }
4642 EOF
4643     nettle_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >conftest.out 2>&1"
4644     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$nettle_compile\""; } >&5
4645   (eval $nettle_compile) 2>&5
4646   ac_status=$?
4647   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4648   test $ac_status = 0; }; then
4649       cat conftest.out >&5
4650       $OBJDUMP -x conftest.o | grep '\.note\.GNU-stack' > /dev/null \
4651       && nettle_cv_asm_gnu_stack=yes
4652     else
4653       cat conftest.out >&5
4654       echo "configure: failed program was:" >&5
4655       cat conftest.s >&5
4656     fi
4657     rm -f conftest.*
4658 fi
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_asm_gnu_stack" >&5
4660 $as_echo "$nettle_cv_asm_gnu_stack" >&6; }
4661   if test x$nettle_cv_asm_gnu_stack = xyes ; then
4662     ASM_MARK_NOEXEC_STACK='.section .note.GNU-stack,"",@progbits'
4663   fi
4664
4665   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF-style .type,%function pseudo-ops" >&5
4666 $as_echo_n "checking for ELF-style .type,%function pseudo-ops... " >&6; }
4667 if test "${nettle_cv_asm_type_percent_function+set}" = set; then :
4668   $as_echo_n "(cached) " >&6
4669 else
4670   cat >conftest.s <<EOF
4671
4672 .text
4673 .globl foo
4674 .type foo,%function
4675 foo:
4676 .Lend:
4677
4678 .size foo, .Lend - foo
4679
4680 EOF
4681 gmp_assemble="$CC $CFLAGS $CPPFLAGS -c conftest.s >conftest.out 2>&1"
4682 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
4683   (eval $gmp_assemble) 2>&5
4684   ac_status=$?
4685   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4686   test $ac_status = 0; }; then
4687   cat conftest.out >&5
4688   nettle_cv_asm_type_percent_function=yes
4689 else
4690   cat conftest.out >&5
4691   echo "configure: failed program was:" >&5
4692   cat conftest.s >&5
4693   nettle_cv_asm_type_percent_function=no
4694 fi
4695 rm -f conftest*
4696
4697 fi
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_asm_type_percent_function" >&5
4699 $as_echo "$nettle_cv_asm_type_percent_function" >&6; }
4700
4701   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF-style .type,#function pseudo-ops" >&5
4702 $as_echo_n "checking for ELF-style .type,#function pseudo-ops... " >&6; }
4703 if test "${nettle_cv_asm_type_hash_function+set}" = set; then :
4704   $as_echo_n "(cached) " >&6
4705 else
4706   cat >conftest.s <<EOF
4707
4708 .text
4709 .globl foo
4710 .type foo,#function
4711 foo:
4712 .Lend:
4713
4714 .size foo, .Lend - foo
4715
4716 EOF
4717 gmp_assemble="$CC $CFLAGS $CPPFLAGS -c conftest.s >conftest.out 2>&1"
4718 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
4719   (eval $gmp_assemble) 2>&5
4720   ac_status=$?
4721   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4722   test $ac_status = 0; }; then
4723   cat conftest.out >&5
4724   nettle_cv_asm_type_hash_function=yes
4725 else
4726   cat conftest.out >&5
4727   echo "configure: failed program was:" >&5
4728   cat conftest.s >&5
4729   nettle_cv_asm_type_hash_function=no
4730 fi
4731 rm -f conftest*
4732
4733 fi
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_asm_type_hash_function" >&5
4735 $as_echo "$nettle_cv_asm_type_hash_function" >&6; }
4736
4737   if test x$nettle_cv_asm_type_percent_function = xyes ; then
4738     ASM_ELF_STYLE='yes'
4739     ASM_TYPE_FUNCTION='%function'
4740   else
4741     if test x$nettle_cv_asm_type_hash_function = xyes ; then
4742       ASM_ELF_STYLE='yes'
4743       ASM_TYPE_FUNCTION='#function'
4744     fi
4745   fi
4746   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if .align assembly directive is logarithmic" >&5
4747 $as_echo_n "checking if .align assembly directive is logarithmic... " >&6; }
4748 if test "${nettle_cv_asm_align_log+set}" = set; then :
4749   $as_echo_n "(cached) " >&6
4750 else
4751   cat >conftest.s <<EOF
4752
4753 .align 3
4754
4755 EOF
4756 gmp_assemble="$CC $CFLAGS $CPPFLAGS -c conftest.s >conftest.out 2>&1"
4757 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
4758   (eval $gmp_assemble) 2>&5
4759   ac_status=$?
4760   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4761   test $ac_status = 0; }; then
4762   cat conftest.out >&5
4763   nettle_cv_asm_align_log=yes
4764 else
4765   cat conftest.out >&5
4766   echo "configure: failed program was:" >&5
4767   cat conftest.s >&5
4768   nettle_cv_asm_align_log=no
4769 fi
4770 rm -f conftest*
4771
4772 fi
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_asm_align_log" >&5
4774 $as_echo "$nettle_cv_asm_align_log" >&6; }
4775   if test x$nettle_cv_asm_align_log = xyes ; then
4776     ASM_ALIGN_LOG='yes'
4777   fi
4778 fi
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804 # Extract the first word of "m4", so it can be a program name with args.
4805 set dummy m4; ac_word=$2
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4807 $as_echo_n "checking for $ac_word... " >&6; }
4808 if test "${ac_cv_path_M4+set}" = set; then :
4809   $as_echo_n "(cached) " >&6
4810 else
4811   case $M4 in
4812   [\\/]* | ?:[\\/]*)
4813   ac_cv_path_M4="$M4" # Let the user override the test with a path.
4814   ;;
4815   *)
4816   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817 for as_dir in $PATH
4818 do
4819   IFS=$as_save_IFS
4820   test -z "$as_dir" && as_dir=.
4821     for ac_exec_ext in '' $ac_executable_extensions; do
4822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4823     ac_cv_path_M4="$as_dir/$ac_word$ac_exec_ext"
4824     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4825     break 2
4826   fi
4827 done
4828   done
4829 IFS=$as_save_IFS
4830
4831   test -z "$ac_cv_path_M4" && ac_cv_path_M4="m4"
4832   ;;
4833 esac
4834 fi
4835 M4=$ac_cv_path_M4
4836 if test -n "$M4"; then
4837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
4838 $as_echo "$M4" >&6; }
4839 else
4840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4841 $as_echo "no" >&6; }
4842 fi
4843
4844
4845
4846 if test "x$enable_gcov" = "xyes"; then
4847   CFLAGS="$CFLAGS -ftest-coverage -fprofile-arcs"
4848 fi
4849
4850 # Checks for typedefs, structures, and compiler characteristics.
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4852 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4853 if test "${ac_cv_c_const+set}" = set; then :
4854   $as_echo_n "(cached) " >&6
4855 else
4856   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4857 /* end confdefs.h.  */
4858
4859 int
4860 main ()
4861 {
4862 /* FIXME: Include the comments suggested by Paul. */
4863 #ifndef __cplusplus
4864   /* Ultrix mips cc rejects this.  */
4865   typedef int charset[2];
4866   const charset cs;
4867   /* SunOS 4.1.1 cc rejects this.  */
4868   char const *const *pcpcc;
4869   char **ppc;
4870   /* NEC SVR4.0.2 mips cc rejects this.  */
4871   struct point {int x, y;};
4872   static struct point const zero = {0,0};
4873   /* AIX XL C 1.02.0.0 rejects this.
4874      It does not let you subtract one const X* pointer from another in
4875      an arm of an if-expression whose if-part is not a constant
4876      expression */
4877   const char *g = "string";
4878   pcpcc = &g + (g ? g-g : 0);
4879   /* HPUX 7.0 cc rejects these. */
4880   ++pcpcc;
4881   ppc = (char**) pcpcc;
4882   pcpcc = (char const *const *) ppc;
4883   { /* SCO 3.2v4 cc rejects this.  */
4884     char *t;
4885     char const *s = 0 ? (char *) 0 : (char const *) 0;
4886
4887     *t++ = 0;
4888     if (s) return 0;
4889   }
4890   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4891     int x[] = {25, 17};
4892     const int *foo = &x[0];
4893     ++foo;
4894   }
4895   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4896     typedef const int *iptr;
4897     iptr p = 0;
4898     ++p;
4899   }
4900   { /* AIX XL C 1.02.0.0 rejects this saying
4901        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4902     struct s { int j; const int *ap[3]; };
4903     struct s *b; b->j = 5;
4904   }
4905   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4906     const int foo = 10;
4907     if (!foo) return 0;
4908   }
4909   return !cs[0] && !zero.x;
4910 #endif
4911
4912   ;
4913   return 0;
4914 }
4915 _ACEOF
4916 if ac_fn_c_try_compile "$LINENO"; then :
4917   ac_cv_c_const=yes
4918 else
4919   ac_cv_c_const=no
4920 fi
4921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4922 fi
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4924 $as_echo "$ac_cv_c_const" >&6; }
4925 if test $ac_cv_c_const = no; then
4926
4927 $as_echo "#define const /**/" >>confdefs.h
4928
4929 fi
4930
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4932 $as_echo_n "checking for inline... " >&6; }
4933 if test "${ac_cv_c_inline+set}" = set; then :
4934   $as_echo_n "(cached) " >&6
4935 else
4936   ac_cv_c_inline=no
4937 for ac_kw in inline __inline__ __inline; do
4938   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4939 /* end confdefs.h.  */
4940 #ifndef __cplusplus
4941 typedef int foo_t;
4942 static $ac_kw foo_t static_foo () {return 0; }
4943 $ac_kw foo_t foo () {return 0; }
4944 #endif
4945
4946 _ACEOF
4947 if ac_fn_c_try_compile "$LINENO"; then :
4948   ac_cv_c_inline=$ac_kw
4949 fi
4950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4951   test "$ac_cv_c_inline" != no && break
4952 done
4953
4954 fi
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4956 $as_echo "$ac_cv_c_inline" >&6; }
4957
4958 case $ac_cv_c_inline in
4959   inline | yes) ;;
4960   *)
4961     case $ac_cv_c_inline in
4962       no) ac_val=;;
4963       *) ac_val=$ac_cv_c_inline;;
4964     esac
4965     cat >>confdefs.h <<_ACEOF
4966 #ifndef __cplusplus
4967 #define inline $ac_val
4968 #endif
4969 _ACEOF
4970     ;;
4971 esac
4972
4973 ac_ext=c
4974 ac_cpp='$CPP $CPPFLAGS'
4975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4979 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4980 # On Suns, sometimes $CPP names a directory.
4981 if test -n "$CPP" && test -d "$CPP"; then
4982   CPP=
4983 fi
4984 if test -z "$CPP"; then
4985   if test "${ac_cv_prog_CPP+set}" = set; then :
4986   $as_echo_n "(cached) " >&6
4987 else
4988       # Double quotes because CPP needs to be expanded
4989     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4990     do
4991       ac_preproc_ok=false
4992 for ac_c_preproc_warn_flag in '' yes
4993 do
4994   # Use a header file that comes with gcc, so configuring glibc
4995   # with a fresh cross-compiler works.
4996   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4997   # <limits.h> exists even on freestanding compilers.
4998   # On the NeXT, cc -E runs the code through the compiler's parser,
4999   # not just through cpp. "Syntax error" is here to catch this case.
5000   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5001 /* end confdefs.h.  */
5002 #ifdef __STDC__
5003 # include <limits.h>
5004 #else
5005 # include <assert.h>
5006 #endif
5007                      Syntax error
5008 _ACEOF
5009 if ac_fn_c_try_cpp "$LINENO"; then :
5010
5011 else
5012   # Broken: fails on valid input.
5013 continue
5014 fi
5015 rm -f conftest.err conftest.i conftest.$ac_ext
5016
5017   # OK, works on sane cases.  Now check whether nonexistent headers
5018   # can be detected and how.
5019   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5020 /* end confdefs.h.  */
5021 #include <ac_nonexistent.h>
5022 _ACEOF
5023 if ac_fn_c_try_cpp "$LINENO"; then :
5024   # Broken: success on invalid input.
5025 continue
5026 else
5027   # Passes both tests.
5028 ac_preproc_ok=:
5029 break
5030 fi
5031 rm -f conftest.err conftest.i conftest.$ac_ext
5032
5033 done
5034 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5035 rm -f conftest.i conftest.err conftest.$ac_ext
5036 if $ac_preproc_ok; then :
5037   break
5038 fi
5039
5040     done
5041     ac_cv_prog_CPP=$CPP
5042
5043 fi
5044   CPP=$ac_cv_prog_CPP
5045 else
5046   ac_cv_prog_CPP=$CPP
5047 fi
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5049 $as_echo "$CPP" >&6; }
5050 ac_preproc_ok=false
5051 for ac_c_preproc_warn_flag in '' yes
5052 do
5053   # Use a header file that comes with gcc, so configuring glibc
5054   # with a fresh cross-compiler works.
5055   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5056   # <limits.h> exists even on freestanding compilers.
5057   # On the NeXT, cc -E runs the code through the compiler's parser,
5058   # not just through cpp. "Syntax error" is here to catch this case.
5059   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5060 /* end confdefs.h.  */
5061 #ifdef __STDC__
5062 # include <limits.h>
5063 #else
5064 # include <assert.h>
5065 #endif
5066                      Syntax error
5067 _ACEOF
5068 if ac_fn_c_try_cpp "$LINENO"; then :
5069
5070 else
5071   # Broken: fails on valid input.
5072 continue
5073 fi
5074 rm -f conftest.err conftest.i conftest.$ac_ext
5075
5076   # OK, works on sane cases.  Now check whether nonexistent headers
5077   # can be detected and how.
5078   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5079 /* end confdefs.h.  */
5080 #include <ac_nonexistent.h>
5081 _ACEOF
5082 if ac_fn_c_try_cpp "$LINENO"; then :
5083   # Broken: success on invalid input.
5084 continue
5085 else
5086   # Passes both tests.
5087 ac_preproc_ok=:
5088 break
5089 fi
5090 rm -f conftest.err conftest.i conftest.$ac_ext
5091
5092 done
5093 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5094 rm -f conftest.i conftest.err conftest.$ac_ext
5095 if $ac_preproc_ok; then :
5096
5097 else
5098   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5100 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5101 See \`config.log' for more details" "$LINENO" 5 ; }
5102 fi
5103
5104 ac_ext=c
5105 ac_cpp='$CPP $CPPFLAGS'
5106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5109
5110
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5112 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5113 if test "${ac_cv_path_GREP+set}" = set; then :
5114   $as_echo_n "(cached) " >&6
5115 else
5116   if test -z "$GREP"; then
5117   ac_path_GREP_found=false
5118   # Loop through the user's path and test for each of PROGNAME-LIST
5119   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5120 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5121 do
5122   IFS=$as_save_IFS
5123   test -z "$as_dir" && as_dir=.
5124     for ac_prog in grep ggrep; do
5125     for ac_exec_ext in '' $ac_executable_extensions; do
5126       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5127       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5128 # Check for GNU ac_path_GREP and select it if it is found.
5129   # Check for GNU $ac_path_GREP
5130 case `"$ac_path_GREP" --version 2>&1` in
5131 *GNU*)
5132   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5133 *)
5134   ac_count=0
5135   $as_echo_n 0123456789 >"conftest.in"
5136   while :
5137   do
5138     cat "conftest.in" "conftest.in" >"conftest.tmp"
5139     mv "conftest.tmp" "conftest.in"
5140     cp "conftest.in" "conftest.nl"
5141     $as_echo 'GREP' >> "conftest.nl"
5142     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5143     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5144     as_fn_arith $ac_count + 1 && ac_count=$as_val
5145     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5146       # Best one so far, save it but keep looking for a better one
5147       ac_cv_path_GREP="$ac_path_GREP"
5148       ac_path_GREP_max=$ac_count
5149     fi
5150     # 10*(2^10) chars as input seems more than enough
5151     test $ac_count -gt 10 && break
5152   done
5153   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5154 esac
5155
5156       $ac_path_GREP_found && break 3
5157     done
5158   done
5159   done
5160 IFS=$as_save_IFS
5161   if test -z "$ac_cv_path_GREP"; then
5162     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5163   fi
5164 else
5165   ac_cv_path_GREP=$GREP
5166 fi
5167
5168 fi
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5170 $as_echo "$ac_cv_path_GREP" >&6; }
5171  GREP="$ac_cv_path_GREP"
5172
5173
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5175 $as_echo_n "checking for egrep... " >&6; }
5176 if test "${ac_cv_path_EGREP+set}" = set; then :
5177   $as_echo_n "(cached) " >&6
5178 else
5179   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5180    then ac_cv_path_EGREP="$GREP -E"
5181    else
5182      if test -z "$EGREP"; then
5183   ac_path_EGREP_found=false
5184   # Loop through the user's path and test for each of PROGNAME-LIST
5185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5187 do
5188   IFS=$as_save_IFS
5189   test -z "$as_dir" && as_dir=.
5190     for ac_prog in egrep; do
5191     for ac_exec_ext in '' $ac_executable_extensions; do
5192       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5193       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5194 # Check for GNU ac_path_EGREP and select it if it is found.
5195   # Check for GNU $ac_path_EGREP
5196 case `"$ac_path_EGREP" --version 2>&1` in
5197 *GNU*)
5198   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5199 *)
5200   ac_count=0
5201   $as_echo_n 0123456789 >"conftest.in"
5202   while :
5203   do
5204     cat "conftest.in" "conftest.in" >"conftest.tmp"
5205     mv "conftest.tmp" "conftest.in"
5206     cp "conftest.in" "conftest.nl"
5207     $as_echo 'EGREP' >> "conftest.nl"
5208     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5209     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5210     as_fn_arith $ac_count + 1 && ac_count=$as_val
5211     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5212       # Best one so far, save it but keep looking for a better one
5213       ac_cv_path_EGREP="$ac_path_EGREP"
5214       ac_path_EGREP_max=$ac_count
5215     fi
5216     # 10*(2^10) chars as input seems more than enough
5217     test $ac_count -gt 10 && break
5218   done
5219   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5220 esac
5221
5222       $ac_path_EGREP_found && break 3
5223     done
5224   done
5225   done
5226 IFS=$as_save_IFS
5227   if test -z "$ac_cv_path_EGREP"; then
5228     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5229   fi
5230 else
5231   ac_cv_path_EGREP=$EGREP
5232 fi
5233
5234    fi
5235 fi
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5237 $as_echo "$ac_cv_path_EGREP" >&6; }
5238  EGREP="$ac_cv_path_EGREP"
5239
5240
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5242 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5243 if test "${ac_cv_type_uid_t+set}" = set; then :
5244   $as_echo_n "(cached) " >&6
5245 else
5246   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5247 /* end confdefs.h.  */
5248 #include <sys/types.h>
5249
5250 _ACEOF
5251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5252   $EGREP "uid_t" >/dev/null 2>&1; then :
5253   ac_cv_type_uid_t=yes
5254 else
5255   ac_cv_type_uid_t=no
5256 fi
5257 rm -f conftest*
5258
5259 fi
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5261 $as_echo "$ac_cv_type_uid_t" >&6; }
5262 if test $ac_cv_type_uid_t = no; then
5263
5264 $as_echo "#define uid_t int" >>confdefs.h
5265
5266
5267 $as_echo "#define gid_t int" >>confdefs.h
5268
5269 fi
5270
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5272 $as_echo_n "checking for ANSI C header files... " >&6; }
5273 if test "${ac_cv_header_stdc+set}" = set; then :
5274   $as_echo_n "(cached) " >&6
5275 else
5276   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277 /* end confdefs.h.  */
5278 #include <stdlib.h>
5279 #include <stdarg.h>
5280 #include <string.h>
5281 #include <float.h>
5282
5283 int
5284 main ()
5285 {
5286
5287   ;
5288   return 0;
5289 }
5290 _ACEOF
5291 if ac_fn_c_try_compile "$LINENO"; then :
5292   ac_cv_header_stdc=yes
5293 else
5294   ac_cv_header_stdc=no
5295 fi
5296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5297
5298 if test $ac_cv_header_stdc = yes; then
5299   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5300   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5301 /* end confdefs.h.  */
5302 #include <string.h>
5303
5304 _ACEOF
5305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5306   $EGREP "memchr" >/dev/null 2>&1; then :
5307
5308 else
5309   ac_cv_header_stdc=no
5310 fi
5311 rm -f conftest*
5312
5313 fi
5314
5315 if test $ac_cv_header_stdc = yes; then
5316   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5317   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5318 /* end confdefs.h.  */
5319 #include <stdlib.h>
5320
5321 _ACEOF
5322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5323   $EGREP "free" >/dev/null 2>&1; then :
5324
5325 else
5326   ac_cv_header_stdc=no
5327 fi
5328 rm -f conftest*
5329
5330 fi
5331
5332 if test $ac_cv_header_stdc = yes; then
5333   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5334   if test "$cross_compiling" = yes; then :
5335   :
5336 else
5337   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5338 /* end confdefs.h.  */
5339 #include <ctype.h>
5340 #include <stdlib.h>
5341 #if ((' ' & 0x0FF) == 0x020)
5342 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5343 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5344 #else
5345 # define ISLOWER(c) \
5346                    (('a' <= (c) && (c) <= 'i') \
5347                      || ('j' <= (c) && (c) <= 'r') \
5348                      || ('s' <= (c) && (c) <= 'z'))
5349 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5350 #endif
5351
5352 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5353 int
5354 main ()
5355 {
5356   int i;
5357   for (i = 0; i < 256; i++)
5358     if (XOR (islower (i), ISLOWER (i))
5359         || toupper (i) != TOUPPER (i))
5360       return 2;
5361   return 0;
5362 }
5363 _ACEOF
5364 if ac_fn_c_try_run "$LINENO"; then :
5365
5366 else
5367   ac_cv_header_stdc=no
5368 fi
5369 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5370   conftest.$ac_objext conftest.beam conftest.$ac_ext
5371 fi
5372
5373 fi
5374 fi
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5376 $as_echo "$ac_cv_header_stdc" >&6; }
5377 if test $ac_cv_header_stdc = yes; then
5378
5379 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5380
5381 fi
5382
5383 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5384 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5385                   inttypes.h stdint.h unistd.h
5386 do :
5387   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5388 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5389 "
5390 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5391   cat >>confdefs.h <<_ACEOF
5392 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5393 _ACEOF
5394
5395 fi
5396
5397 done
5398
5399
5400 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5401 if test "x$ac_cv_type_size_t" = x""yes; then :
5402
5403 else
5404
5405 cat >>confdefs.h <<_ACEOF
5406 #define size_t unsigned int
5407 _ACEOF
5408
5409 fi
5410
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5412 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5413 if test "${ac_cv_header_time+set}" = set; then :
5414   $as_echo_n "(cached) " >&6
5415 else
5416   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5417 /* end confdefs.h.  */
5418 #include <sys/types.h>
5419 #include <sys/time.h>
5420 #include <time.h>
5421
5422 int
5423 main ()
5424 {
5425 if ((struct tm *) 0)
5426 return 0;
5427   ;
5428   return 0;
5429 }
5430 _ACEOF
5431 if ac_fn_c_try_compile "$LINENO"; then :
5432   ac_cv_header_time=yes
5433 else
5434   ac_cv_header_time=no
5435 fi
5436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5437 fi
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5439 $as_echo "$ac_cv_header_time" >&6; }
5440 if test $ac_cv_header_time = yes; then
5441
5442 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5443
5444 fi
5445
5446 # The cast to long int works around a bug in the HP C Compiler
5447 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5448 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5449 # This bug is HP SR number 8606223364.
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5451 $as_echo_n "checking size of long... " >&6; }
5452 if test "${ac_cv_sizeof_long+set}" = set; then :
5453   $as_echo_n "(cached) " >&6
5454 else
5455   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
5456
5457 else
5458   if test "$ac_cv_type_long" = yes; then
5459      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5460 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5461 as_fn_error 77 "cannot compute sizeof (long)
5462 See \`config.log' for more details" "$LINENO" 5 ; }
5463    else
5464      ac_cv_sizeof_long=0
5465    fi
5466 fi
5467
5468 fi
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5470 $as_echo "$ac_cv_sizeof_long" >&6; }
5471
5472
5473
5474 cat >>confdefs.h <<_ACEOF
5475 #define SIZEOF_LONG $ac_cv_sizeof_long
5476 _ACEOF
5477
5478
5479
5480 for ac_header in openssl/blowfish.h openssl/des.h openssl/cast.h openssl/aes.h
5481 do :
5482   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5483 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5484 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5485   cat >>confdefs.h <<_ACEOF
5486 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5487 _ACEOF
5488
5489 else
5490   enable_openssl=no
5491  break
5492 fi
5493
5494 done
5495
5496
5497 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5498 # for constant arguments.  Useless!
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5500 $as_echo_n "checking for working alloca.h... " >&6; }
5501 if test "${ac_cv_working_alloca_h+set}" = set; then :
5502   $as_echo_n "(cached) " >&6
5503 else
5504   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5505 /* end confdefs.h.  */
5506 #include <alloca.h>
5507 int
5508 main ()
5509 {
5510 char *p = (char *) alloca (2 * sizeof (int));
5511                           if (p) return 0;
5512   ;
5513   return 0;
5514 }
5515 _ACEOF
5516 if ac_fn_c_try_link "$LINENO"; then :
5517   ac_cv_working_alloca_h=yes
5518 else
5519   ac_cv_working_alloca_h=no
5520 fi
5521 rm -f core conftest.err conftest.$ac_objext \
5522     conftest$ac_exeext conftest.$ac_ext
5523 fi
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5525 $as_echo "$ac_cv_working_alloca_h" >&6; }
5526 if test $ac_cv_working_alloca_h = yes; then
5527
5528 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5529
5530 fi
5531
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5533 $as_echo_n "checking for alloca... " >&6; }
5534 if test "${ac_cv_func_alloca_works+set}" = set; then :
5535   $as_echo_n "(cached) " >&6
5536 else
5537   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5538 /* end confdefs.h.  */
5539 #ifdef __GNUC__
5540 # define alloca __builtin_alloca
5541 #else
5542 # ifdef _MSC_VER
5543 #  include <malloc.h>
5544 #  define alloca _alloca
5545 # else
5546 #  ifdef HAVE_ALLOCA_H
5547 #   include <alloca.h>
5548 #  else
5549 #   ifdef _AIX
5550  #pragma alloca
5551 #   else
5552 #    ifndef alloca /* predefined by HP cc +Olibcalls */
5553 char *alloca ();
5554 #    endif
5555 #   endif
5556 #  endif
5557 # endif
5558 #endif
5559
5560 int
5561 main ()
5562 {
5563 char *p = (char *) alloca (1);
5564                                     if (p) return 0;
5565   ;
5566   return 0;
5567 }
5568 _ACEOF
5569 if ac_fn_c_try_link "$LINENO"; then :
5570   ac_cv_func_alloca_works=yes
5571 else
5572   ac_cv_func_alloca_works=no
5573 fi
5574 rm -f core conftest.err conftest.$ac_objext \
5575     conftest$ac_exeext conftest.$ac_ext
5576 fi
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5578 $as_echo "$ac_cv_func_alloca_works" >&6; }
5579
5580 if test $ac_cv_func_alloca_works = yes; then
5581
5582 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5583
5584 else
5585   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5586 # that cause trouble.  Some versions do not even contain alloca or
5587 # contain a buggy version.  If you still want to use their alloca,
5588 # use ar to extract alloca.o from them instead of compiling alloca.c.
5589
5590 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5591
5592 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5593
5594
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5596 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5597 if test "${ac_cv_os_cray+set}" = set; then :
5598   $as_echo_n "(cached) " >&6
5599 else
5600   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5601 /* end confdefs.h.  */
5602 #if defined CRAY && ! defined CRAY2
5603 webecray
5604 #else
5605 wenotbecray
5606 #endif
5607
5608 _ACEOF
5609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5610   $EGREP "webecray" >/dev/null 2>&1; then :
5611   ac_cv_os_cray=yes
5612 else
5613   ac_cv_os_cray=no
5614 fi
5615 rm -f conftest*
5616
5617 fi
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5619 $as_echo "$ac_cv_os_cray" >&6; }
5620 if test $ac_cv_os_cray = yes; then
5621   for ac_func in _getb67 GETB67 getb67; do
5622     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5623 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5624 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5625
5626 cat >>confdefs.h <<_ACEOF
5627 #define CRAY_STACKSEG_END $ac_func
5628 _ACEOF
5629
5630     break
5631 fi
5632
5633   done
5634 fi
5635
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5637 $as_echo_n "checking stack direction for C alloca... " >&6; }
5638 if test "${ac_cv_c_stack_direction+set}" = set; then :
5639   $as_echo_n "(cached) " >&6
5640 else
5641   if test "$cross_compiling" = yes; then :
5642   ac_cv_c_stack_direction=0
5643 else
5644   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5645 /* end confdefs.h.  */
5646 $ac_includes_default
5647 int
5648 find_stack_direction ()
5649 {
5650   static char *addr = 0;
5651   auto char dummy;
5652   if (addr == 0)
5653     {
5654       addr = &dummy;
5655       return find_stack_direction ();
5656     }
5657   else
5658     return (&dummy > addr) ? 1 : -1;
5659 }
5660
5661 int
5662 main ()
5663 {
5664   return find_stack_direction () < 0;
5665 }
5666 _ACEOF
5667 if ac_fn_c_try_run "$LINENO"; then :
5668   ac_cv_c_stack_direction=1
5669 else
5670   ac_cv_c_stack_direction=-1
5671 fi
5672 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5673   conftest.$ac_objext conftest.beam conftest.$ac_ext
5674 fi
5675
5676 fi
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5678 $as_echo "$ac_cv_c_stack_direction" >&6; }
5679 cat >>confdefs.h <<_ACEOF
5680 #define STACK_DIRECTION $ac_cv_c_stack_direction
5681 _ACEOF
5682
5683
5684 fi
5685
5686 for ac_header in malloc.h
5687 do :
5688   ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
5689 if test "x$ac_cv_header_malloc_h" = x""yes; then :
5690   cat >>confdefs.h <<_ACEOF
5691 #define HAVE_MALLOC_H 1
5692 _ACEOF
5693
5694 fi
5695
5696 done
5697
5698
5699 for ac_func in strerror
5700 do :
5701   ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
5702 if test "x$ac_cv_func_strerror" = x""yes; then :
5703   cat >>confdefs.h <<_ACEOF
5704 #define HAVE_STRERROR 1
5705 _ACEOF
5706
5707 fi
5708 done
5709
5710
5711
5712 # Needed by the supplied memcmp.c
5713  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5714 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5715 if test "${ac_cv_c_bigendian+set}" = set; then :
5716   $as_echo_n "(cached) " >&6
5717 else
5718   ac_cv_c_bigendian=unknown
5719     # See if we're dealing with a universal compiler.
5720     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5721 /* end confdefs.h.  */
5722 #ifndef __APPLE_CC__
5723                not a universal capable compiler
5724              #endif
5725              typedef int dummy;
5726
5727 _ACEOF
5728 if ac_fn_c_try_compile "$LINENO"; then :
5729
5730         # Check for potential -arch flags.  It is not universal unless
5731         # there are at least two -arch flags with different values.
5732         ac_arch=
5733         ac_prev=
5734         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5735          if test -n "$ac_prev"; then
5736            case $ac_word in
5737              i?86 | x86_64 | ppc | ppc64)
5738                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5739                  ac_arch=$ac_word
5740                else
5741                  ac_cv_c_bigendian=universal
5742                  break
5743                fi
5744                ;;
5745            esac
5746            ac_prev=
5747          elif test "x$ac_word" = "x-arch"; then
5748            ac_prev=arch
5749          fi
5750        done
5751 fi
5752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5753     if test $ac_cv_c_bigendian = unknown; then
5754       # See if sys/param.h defines the BYTE_ORDER macro.
5755       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5756 /* end confdefs.h.  */
5757 #include <sys/types.h>
5758              #include <sys/param.h>
5759
5760 int
5761 main ()
5762 {
5763 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5764                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5765                      && LITTLE_ENDIAN)
5766               bogus endian macros
5767              #endif
5768
5769   ;
5770   return 0;
5771 }
5772 _ACEOF
5773 if ac_fn_c_try_compile "$LINENO"; then :
5774   # It does; now see whether it defined to BIG_ENDIAN or not.
5775          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5776 /* end confdefs.h.  */
5777 #include <sys/types.h>
5778                 #include <sys/param.h>
5779
5780 int
5781 main ()
5782 {
5783 #if BYTE_ORDER != BIG_ENDIAN
5784                  not big endian
5785                 #endif
5786
5787   ;
5788   return 0;
5789 }
5790 _ACEOF
5791 if ac_fn_c_try_compile "$LINENO"; then :
5792   ac_cv_c_bigendian=yes
5793 else
5794   ac_cv_c_bigendian=no
5795 fi
5796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5797 fi
5798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5799     fi
5800     if test $ac_cv_c_bigendian = unknown; then
5801       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5802       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5803 /* end confdefs.h.  */
5804 #include <limits.h>
5805
5806 int
5807 main ()
5808 {
5809 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5810               bogus endian macros
5811              #endif
5812
5813   ;
5814   return 0;
5815 }
5816 _ACEOF
5817 if ac_fn_c_try_compile "$LINENO"; then :
5818   # It does; now see whether it defined to _BIG_ENDIAN or not.
5819          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5820 /* end confdefs.h.  */
5821 #include <limits.h>
5822
5823 int
5824 main ()
5825 {
5826 #ifndef _BIG_ENDIAN
5827                  not big endian
5828                 #endif
5829
5830   ;
5831   return 0;
5832 }
5833 _ACEOF
5834 if ac_fn_c_try_compile "$LINENO"; then :
5835   ac_cv_c_bigendian=yes
5836 else
5837   ac_cv_c_bigendian=no
5838 fi
5839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5840 fi
5841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5842     fi
5843     if test $ac_cv_c_bigendian = unknown; then
5844       # Compile a test program.
5845       if test "$cross_compiling" = yes; then :
5846   # Try to guess by grepping values from an object file.
5847          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5848 /* end confdefs.h.  */
5849 short int ascii_mm[] =
5850                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5851                 short int ascii_ii[] =
5852                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5853                 int use_ascii (int i) {
5854                   return ascii_mm[i] + ascii_ii[i];
5855                 }
5856                 short int ebcdic_ii[] =
5857                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5858                 short int ebcdic_mm[] =
5859                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5860                 int use_ebcdic (int i) {
5861                   return ebcdic_mm[i] + ebcdic_ii[i];
5862                 }
5863                 extern int foo;
5864
5865 int
5866 main ()
5867 {
5868 return use_ascii (foo) == use_ebcdic (foo);
5869   ;
5870   return 0;
5871 }
5872 _ACEOF
5873 if ac_fn_c_try_compile "$LINENO"; then :
5874   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5875               ac_cv_c_bigendian=yes
5876             fi
5877             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5878               if test "$ac_cv_c_bigendian" = unknown; then
5879                 ac_cv_c_bigendian=no
5880               else
5881                 # finding both strings is unlikely to happen, but who knows?
5882                 ac_cv_c_bigendian=unknown
5883               fi
5884             fi
5885 fi
5886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5887 else
5888   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5889 /* end confdefs.h.  */
5890 $ac_includes_default
5891 int
5892 main ()
5893 {
5894
5895              /* Are we little or big endian?  From Harbison&Steele.  */
5896              union
5897              {
5898                long int l;
5899                char c[sizeof (long int)];
5900              } u;
5901              u.l = 1;
5902              return u.c[sizeof (long int) - 1] == 1;
5903
5904   ;
5905   return 0;
5906 }
5907 _ACEOF
5908 if ac_fn_c_try_run "$LINENO"; then :
5909   ac_cv_c_bigendian=no
5910 else
5911   ac_cv_c_bigendian=yes
5912 fi
5913 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5914   conftest.$ac_objext conftest.beam conftest.$ac_ext
5915 fi
5916
5917     fi
5918 fi
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5920 $as_echo "$ac_cv_c_bigendian" >&6; }
5921  case $ac_cv_c_bigendian in #(
5922    yes)
5923      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5924 ;; #(
5925    no)
5926       ;; #(
5927    universal)
5928
5929 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5930
5931      ;; #(
5932    *)
5933      as_fn_error $? "unknown endianness
5934  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5  ;;
5935  esac
5936
5937 ac_fn_c_check_func "$LINENO" "memxor" "ac_cv_func_memxor"
5938 if test "x$ac_cv_func_memxor" = x""yes; then :
5939   $as_echo "#define HAVE_MEMXOR 1" >>confdefs.h
5940
5941 else
5942   case " $LIBOBJS " in
5943   *" memxor.$ac_objext "* ) ;;
5944   *) LIBOBJS="$LIBOBJS memxor.$ac_objext"
5945  ;;
5946 esac
5947
5948 fi
5949
5950
5951
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
5953 $as_echo_n "checking for __attribute__... " >&6; }
5954 if test "${lsh_cv_c_attribute+set}" = set; then :
5955   $as_echo_n "(cached) " >&6
5956 else
5957    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5958 /* end confdefs.h.  */
5959
5960 #include <stdlib.h>
5961
5962 static void foo(void) __attribute__ ((noreturn));
5963
5964 static void __attribute__ ((noreturn))
5965 foo(void)
5966 {
5967   exit(1);
5968 }
5969
5970 int
5971 main ()
5972 {
5973
5974   ;
5975   return 0;
5976 }
5977 _ACEOF
5978 if ac_fn_c_try_compile "$LINENO"; then :
5979   lsh_cv_c_attribute=yes
5980 else
5981   lsh_cv_c_attribute=no
5982 fi
5983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5984 fi
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lsh_cv_c_attribute" >&5
5986 $as_echo "$lsh_cv_c_attribute" >&6; }
5987
5988
5989 if test "x$lsh_cv_c_attribute" = "xyes"; then
5990   $as_echo "#define HAVE_GCC_ATTRIBUTE 1" >>confdefs.h
5991
5992 fi
5993
5994
5995
5996 # According to Simon Josefsson, looking for uint32_t and friends in
5997 # sys/types.h is needed on some systems, in particular cygwin.
5998 # ------ AX CREATE STDINT H -------------------------------------
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint types" >&5
6000 $as_echo_n "checking for stdint types... " >&6; }
6001 ac_stdint_h=`echo nettle-stdint.h`
6002 # try to shortcircuit - if the default include path of the compiler
6003 # can find a "stdint.h" header then we assume that all compilers can.
6004 if test "${ac_cv_header_stdint_t+set}" = set; then :
6005   $as_echo_n "(cached) " >&6
6006 else
6007
6008 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
6009 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
6010 old_CFLAGS="$CFLAGS"     ; CFLAGS=""
6011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6012 /* end confdefs.h.  */
6013 #include <stdint.h>
6014 int
6015 main ()
6016 {
6017 int_least32_t v = 0;
6018   ;
6019   return 0;
6020 }
6021 _ACEOF
6022 if ac_fn_c_try_compile "$LINENO"; then :
6023   ac_cv_stdint_result="(assuming C99 compatible system)"
6024  ac_cv_header_stdint_t="stdint.h";
6025 else
6026   ac_cv_header_stdint_t=""
6027 fi
6028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6029 CXXFLAGS="$old_CXXFLAGS"
6030 CPPFLAGS="$old_CPPFLAGS"
6031 CFLAGS="$old_CFLAGS"
6032 fi
6033
6034
6035 v="... $ac_cv_header_stdint_h"
6036 if test "$ac_stdint_h" = "stdint.h" ; then
6037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./stdint.h?)" >&5
6038 $as_echo "(are you sure you want them in ./stdint.h?)" >&6; }
6039 elif test "$ac_stdint_h" = "inttypes.h" ; then
6040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./inttypes.h?)" >&5
6041 $as_echo "(are you sure you want them in ./inttypes.h?)" >&6; }
6042 elif test "_$ac_cv_header_stdint_t" = "_" ; then
6043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (putting them into $ac_stdint_h)$v" >&5
6044 $as_echo "(putting them into $ac_stdint_h)$v" >&6; }
6045 else
6046  ac_cv_header_stdint="$ac_cv_header_stdint_t"
6047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint (shortcircuit)" >&5
6048 $as_echo "$ac_cv_header_stdint (shortcircuit)" >&6; }
6049 fi
6050
6051 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
6052
6053
6054 inttype_headers=`echo sys/types.h | sed -e 's/,/ /g'`
6055
6056 ac_cv_stdint_result="(no helpful system typedefs seen)"
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
6058 $as_echo_n "checking for stdint uintptr_t... " >&6; }
6059 if test "${ac_cv_header_stdint_x+set}" = set; then :
6060   $as_echo_n "(cached) " >&6
6061 else
6062
6063  ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
6064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
6065 $as_echo "(..)" >&6; }
6066   for i in stdint.h inttypes.h sys/inttypes.h $inttype_headers ; do
6067    unset ac_cv_type_uintptr_t
6068    unset ac_cv_type_uint64_t
6069    ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i>
6070 "
6071 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6072   ac_cv_header_stdint_x=$i
6073 else
6074        continue
6075 fi
6076
6077    ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
6078 "
6079 if test "x$ac_cv_type_uint64_t" = x""yes; then :
6080   and64="/uint64_t"
6081 else
6082   and64=""
6083 fi
6084
6085    ac_cv_stdint_result="(seen uintptr_t$and64 in $i)"
6086    break;
6087   done
6088   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
6089 $as_echo_n "checking for stdint uintptr_t... " >&6; }
6090
6091 fi
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_x" >&5
6093 $as_echo "$ac_cv_header_stdint_x" >&6; }
6094
6095 if test "_$ac_cv_header_stdint_x" = "_" ; then
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
6097 $as_echo_n "checking for stdint uint32_t... " >&6; }
6098 if test "${ac_cv_header_stdint_o+set}" = set; then :
6099   $as_echo_n "(cached) " >&6
6100 else
6101
6102  ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
6103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
6104 $as_echo "(..)" >&6; }
6105   for i in inttypes.h sys/inttypes.h stdint.h $inttype_headers ; do
6106    unset ac_cv_type_uint32_t
6107    unset ac_cv_type_uint64_t
6108    ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i>
6109 "
6110 if test "x$ac_cv_type_uint32_t" = x""yes; then :
6111   ac_cv_header_stdint_o=$i
6112 else
6113        continue
6114 fi
6115
6116    ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
6117 "
6118 if test "x$ac_cv_type_uint64_t" = x""yes; then :
6119   and64="/uint64_t"
6120 else
6121   and64=""
6122 fi
6123
6124    ac_cv_stdint_result="(seen uint32_t$and64 in $i)"
6125    break;
6126   done
6127   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
6128 $as_echo_n "checking for stdint uint32_t... " >&6; }
6129
6130 fi
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_o" >&5
6132 $as_echo "$ac_cv_header_stdint_o" >&6; }
6133 fi
6134
6135 if test "_$ac_cv_header_stdint_x" = "_" ; then
6136 if test "_$ac_cv_header_stdint_o" = "_" ; then
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
6138 $as_echo_n "checking for stdint u_int32_t... " >&6; }
6139 if test "${ac_cv_header_stdint_u+set}" = set; then :
6140   $as_echo_n "(cached) " >&6
6141 else
6142
6143  ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
6144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
6145 $as_echo "(..)" >&6; }
6146   for i in sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
6147    unset ac_cv_type_u_int32_t
6148    unset ac_cv_type_u_int64_t
6149    ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i>
6150 "
6151 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
6152   ac_cv_header_stdint_u=$i
6153 else
6154        continue
6155 fi
6156
6157    ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include<$i>
6158 "
6159 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
6160   and64="/u_int64_t"
6161 else
6162   and64=""
6163 fi
6164
6165    ac_cv_stdint_result="(seen u_int32_t$and64 in $i)"
6166    break;
6167   done
6168   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
6169 $as_echo_n "checking for stdint u_int32_t... " >&6; }
6170
6171 fi
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_u" >&5
6173 $as_echo "$ac_cv_header_stdint_u" >&6; }
6174 fi fi
6175
6176 if test "_$ac_cv_header_stdint_x" = "_" ; then
6177    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint datatype model" >&5
6178 $as_echo_n "checking for stdint datatype model... " >&6; }
6179    { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
6180 $as_echo "(..)" >&6; }
6181    # The cast to long int works around a bug in the HP C Compiler
6182 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6183 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6184 # This bug is HP SR number 8606223364.
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
6186 $as_echo_n "checking size of char... " >&6; }
6187 if test "${ac_cv_sizeof_char+set}" = set; then :
6188   $as_echo_n "(cached) " >&6
6189 else
6190   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
6191
6192 else
6193   if test "$ac_cv_type_char" = yes; then
6194      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6196 as_fn_error 77 "cannot compute sizeof (char)
6197 See \`config.log' for more details" "$LINENO" 5 ; }
6198    else
6199      ac_cv_sizeof_char=0
6200    fi
6201 fi
6202
6203 fi
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
6205 $as_echo "$ac_cv_sizeof_char" >&6; }
6206
6207
6208
6209 cat >>confdefs.h <<_ACEOF
6210 #define SIZEOF_CHAR $ac_cv_sizeof_char
6211 _ACEOF
6212
6213
6214    # The cast to long int works around a bug in the HP C Compiler
6215 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6216 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6217 # This bug is HP SR number 8606223364.
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6219 $as_echo_n "checking size of short... " >&6; }
6220 if test "${ac_cv_sizeof_short+set}" = set; then :
6221   $as_echo_n "(cached) " >&6
6222 else
6223   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
6224
6225 else
6226   if test "$ac_cv_type_short" = yes; then
6227      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6229 as_fn_error 77 "cannot compute sizeof (short)
6230 See \`config.log' for more details" "$LINENO" 5 ; }
6231    else
6232      ac_cv_sizeof_short=0
6233    fi
6234 fi
6235
6236 fi
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6238 $as_echo "$ac_cv_sizeof_short" >&6; }
6239
6240
6241
6242 cat >>confdefs.h <<_ACEOF
6243 #define SIZEOF_SHORT $ac_cv_sizeof_short
6244 _ACEOF
6245
6246
6247    # The cast to long int works around a bug in the HP C Compiler
6248 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6249 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6250 # This bug is HP SR number 8606223364.
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6252 $as_echo_n "checking size of int... " >&6; }
6253 if test "${ac_cv_sizeof_int+set}" = set; then :
6254   $as_echo_n "(cached) " >&6
6255 else
6256   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
6257
6258 else
6259   if test "$ac_cv_type_int" = yes; then
6260      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6261 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6262 as_fn_error 77 "cannot compute sizeof (int)
6263 See \`config.log' for more details" "$LINENO" 5 ; }
6264    else
6265      ac_cv_sizeof_int=0
6266    fi
6267 fi
6268
6269 fi
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6271 $as_echo "$ac_cv_sizeof_int" >&6; }
6272
6273
6274
6275 cat >>confdefs.h <<_ACEOF
6276 #define SIZEOF_INT $ac_cv_sizeof_int
6277 _ACEOF
6278
6279
6280    # The cast to long int works around a bug in the HP C Compiler
6281 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6282 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6283 # This bug is HP SR number 8606223364.
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6285 $as_echo_n "checking size of long... " >&6; }
6286 if test "${ac_cv_sizeof_long+set}" = set; then :
6287   $as_echo_n "(cached) " >&6
6288 else
6289   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
6290
6291 else
6292   if test "$ac_cv_type_long" = yes; then
6293      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6295 as_fn_error 77 "cannot compute sizeof (long)
6296 See \`config.log' for more details" "$LINENO" 5 ; }
6297    else
6298      ac_cv_sizeof_long=0
6299    fi
6300 fi
6301
6302 fi
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6304 $as_echo "$ac_cv_sizeof_long" >&6; }
6305
6306
6307
6308 cat >>confdefs.h <<_ACEOF
6309 #define SIZEOF_LONG $ac_cv_sizeof_long
6310 _ACEOF
6311
6312
6313    # The cast to long int works around a bug in the HP C Compiler
6314 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6315 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6316 # This bug is HP SR number 8606223364.
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
6318 $as_echo_n "checking size of void*... " >&6; }
6319 if test "${ac_cv_sizeof_voidp+set}" = set; then :
6320   $as_echo_n "(cached) " >&6
6321 else
6322   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp"        "$ac_includes_default"; then :
6323
6324 else
6325   if test "$ac_cv_type_voidp" = yes; then
6326      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6327 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6328 as_fn_error 77 "cannot compute sizeof (void*)
6329 See \`config.log' for more details" "$LINENO" 5 ; }
6330    else
6331      ac_cv_sizeof_voidp=0
6332    fi
6333 fi
6334
6335 fi
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
6337 $as_echo "$ac_cv_sizeof_voidp" >&6; }
6338
6339
6340
6341 cat >>confdefs.h <<_ACEOF
6342 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
6343 _ACEOF
6344
6345
6346    ac_cv_stdint_char_model=""
6347    ac_cv_stdint_char_model="$ac_cv_stdint_char_model$ac_cv_sizeof_char"
6348    ac_cv_stdint_char_model="$ac_cv_stdint_char_model$ac_cv_sizeof_short"
6349    ac_cv_stdint_char_model="$ac_cv_stdint_char_model$ac_cv_sizeof_int"
6350    ac_cv_stdint_long_model=""
6351    ac_cv_stdint_long_model="$ac_cv_stdint_long_model$ac_cv_sizeof_int"
6352    ac_cv_stdint_long_model="$ac_cv_stdint_long_model$ac_cv_sizeof_long"
6353    ac_cv_stdint_long_model="$ac_cv_stdint_long_model$ac_cv_sizeof_voidp"
6354    name="$ac_cv_stdint_long_model"
6355    case "$ac_cv_stdint_char_model/$ac_cv_stdint_long_model" in
6356     122/242)     name="$name,  IP16 (standard 16bit machine)" ;;
6357     122/244)     name="$name,  LP32 (standard 32bit mac/win)" ;;
6358     122/*)       name="$name        (unusual int16 model)" ;;
6359     124/444)     name="$name, ILP32 (standard 32bit unixish)" ;;
6360     124/488)     name="$name,  LP64 (standard 64bit unixish)" ;;
6361     124/448)     name="$name, LLP64 (unusual  64bit unixish)" ;;
6362     124/*)       name="$name        (unusual int32 model)" ;;
6363     128/888)     name="$name, ILP64 (unusual  64bit numeric)" ;;
6364     128/*)       name="$name        (unusual int64 model)" ;;
6365     222/*|444/*) name="$name        (unusual dsptype)" ;;
6366      *)          name="$name        (very unusal model)" ;;
6367    esac
6368    { $as_echo "$as_me:${as_lineno-$LINENO}: result: combined for stdint datatype model...  $name" >&5
6369 $as_echo "combined for stdint datatype model...  $name" >&6; }
6370 fi
6371
6372 if test "_$ac_cv_header_stdint_x" != "_" ; then
6373    ac_cv_header_stdint="$ac_cv_header_stdint_x"
6374 elif  test "_$ac_cv_header_stdint_o" != "_" ; then
6375    ac_cv_header_stdint="$ac_cv_header_stdint_o"
6376 elif  test "_$ac_cv_header_stdint_u" != "_" ; then
6377    ac_cv_header_stdint="$ac_cv_header_stdint_u"
6378 else
6379    ac_cv_header_stdint="stddef.h"
6380 fi
6381
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra inttypes in chosen header" >&5
6383 $as_echo_n "checking for extra inttypes in chosen header... " >&6; }
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($ac_cv_header_stdint)" >&5
6385 $as_echo "($ac_cv_header_stdint)" >&6; }
6386 unset ac_cv_type_int_least32_t
6387 unset ac_cv_type_int_fast32_t
6388 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint>
6389 "
6390 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
6391
6392 fi
6393
6394 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint>
6395 "
6396 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
6397
6398 fi
6399
6400 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "#include <$ac_cv_header_stdint>
6401 "
6402 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6403
6404 fi
6405
6406
6407 fi # shortcircut to system "stdint.h"
6408 # ------------------ PREPARE VARIABLES ------------------------------
6409 if test "$GCC" = "yes" ; then
6410 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
6411 else
6412 ac_cv_stdint_message="using $CC"
6413 fi
6414
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
6416 $as_echo "make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; }
6417
6418 # ----------------- DONE inttypes.h checks START header -------------
6419 ac_config_commands="$ac_config_commands $ac_stdint_h"
6420
6421
6422
6423 # Check for file locking. We (AC_PROG_CC?) have already checked for
6424 # sys/types.h and unistd.h.
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcntl file locking" >&5
6426 $as_echo_n "checking for fcntl file locking... " >&6; }
6427 if test "${nettle_cv_fcntl_locking+set}" = set; then :
6428   $as_echo_n "(cached) " >&6
6429 else
6430   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6431 /* end confdefs.h.  */
6432
6433 #if HAVE_SYS_TYPES_H
6434 # include <sys/types.h>
6435 #endif
6436 #if HAVE_UNISTD_H
6437 # include <unistd.h>
6438 #endif
6439 #include <fcntl.h>
6440
6441 int
6442 main ()
6443 {
6444
6445 int op = F_SETLKW;
6446 struct flock fl;
6447
6448   ;
6449   return 0;
6450 }
6451 _ACEOF
6452 if ac_fn_c_try_compile "$LINENO"; then :
6453   nettle_cv_fcntl_locking=yes
6454 else
6455   nettle_cv_fcntl_locking=no
6456 fi
6457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6458 fi
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_fcntl_locking" >&5
6460 $as_echo "$nettle_cv_fcntl_locking" >&6; }
6461
6462
6463 if test "x$nettle_cv_fcntl_locking" = "xyes" ; then
6464   $as_echo "#define HAVE_FCNTL_LOCKING 1" >>confdefs.h
6465
6466 fi
6467
6468 # Checks for libraries
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_getlimbn in -lgmp" >&5
6470 $as_echo_n "checking for __gmpz_getlimbn in -lgmp... " >&6; }
6471 if test "${ac_cv_lib_gmp___gmpz_getlimbn+set}" = set; then :
6472   $as_echo_n "(cached) " >&6
6473 else
6474   ac_check_lib_save_LIBS=$LIBS
6475 LIBS="-lgmp  $LIBS"
6476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6477 /* end confdefs.h.  */
6478
6479 /* Override any GCC internal prototype to avoid an error.
6480    Use char because int might match the return type of a GCC
6481    builtin and then its argument prototype would still apply.  */
6482 #ifdef __cplusplus
6483 extern "C"
6484 #endif
6485 char __gmpz_getlimbn ();
6486 int
6487 main ()
6488 {
6489 return __gmpz_getlimbn ();
6490   ;
6491   return 0;
6492 }
6493 _ACEOF
6494 if ac_fn_c_try_link "$LINENO"; then :
6495   ac_cv_lib_gmp___gmpz_getlimbn=yes
6496 else
6497   ac_cv_lib_gmp___gmpz_getlimbn=no
6498 fi
6499 rm -f core conftest.err conftest.$ac_objext \
6500     conftest$ac_exeext conftest.$ac_ext
6501 LIBS=$ac_check_lib_save_LIBS
6502 fi
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_getlimbn" >&5
6504 $as_echo "$ac_cv_lib_gmp___gmpz_getlimbn" >&6; }
6505 if test "x$ac_cv_lib_gmp___gmpz_getlimbn" = x""yes; then :
6506   cat >>confdefs.h <<_ACEOF
6507 #define HAVE_LIBGMP 1
6508 _ACEOF
6509
6510   LIBS="-lgmp $LIBS"
6511
6512 else
6513   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNU MP not found, or not 3.1 or up, see http://gmplib.org/.
6514 Support for public key algorithms will be unavailable." >&5
6515 $as_echo "$as_me: WARNING: GNU MP not found, or not 3.1 or up, see http://gmplib.org/.
6516 Support for public key algorithms will be unavailable." >&2;}
6517     enable_public_key=no
6518 fi
6519
6520
6521 # Add -R flags needed to run programs linked with gmp
6522 if test $cross_compiling = no -a "x$RPATHFLAG" != x ; then
6523   ac_success=no
6524   if test "$cross_compiling" = yes; then :
6525   :
6526 else
6527   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6528 /* end confdefs.h.  */
6529 int main(int argc, char **argv) { return 0; }
6530 _ACEOF
6531 if ac_fn_c_try_run "$LINENO"; then :
6532   ac_success=yes
6533 else
6534   ac_success=no
6535 fi
6536 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6537   conftest.$ac_objext conftest.beam conftest.$ac_ext
6538 fi
6539
6540
6541   if test $ac_success = no ; then
6542     { $as_echo "$as_me:${as_lineno-$LINENO}: checking Running simple test program failed. Trying -R flags" >&5
6543 $as_echo_n "checking Running simple test program failed. Trying -R flags... " >&6; }
6544     ac_remaining_dirs=''
6545     ac_rpath_save_LDFLAGS="$LDFLAGS"
6546     for d in $RPATH_CANDIDATE_DIRS ; do
6547       if test $ac_success = yes ; then
6548         ac_remaining_dirs="$ac_remaining_dirs $d"
6549       else
6550         LDFLAGS="$RPATHFLAG$d $LDFLAGS"
6551         if test "$cross_compiling" = yes; then :
6552   :
6553 else
6554   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6555 /* end confdefs.h.  */
6556 int main(int argc, char **argv) { return 0; }
6557 _ACEOF
6558 if ac_fn_c_try_run "$LINENO"; then :
6559   ac_success=yes
6560           ac_rpath_save_LDFLAGS="$LDFLAGS"
6561           { $as_echo "$as_me:${as_lineno-$LINENO}: result: adding $RPATHFLAG$d" >&5
6562 $as_echo "adding $RPATHFLAG$d" >&6; }
6563
6564 else
6565   ac_remaining_dirs="$ac_remaining_dirs $d"
6566 fi
6567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6568   conftest.$ac_objext conftest.beam conftest.$ac_ext
6569 fi
6570
6571         LDFLAGS="$ac_rpath_save_LDFLAGS"
6572       fi
6573     done
6574     RPATH_CANDIDATE_DIRS=$ac_remaining_dirs
6575   fi
6576   if test $ac_success = no ; then
6577     { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6578 $as_echo "failed" >&6; }
6579   fi
6580 fi
6581
6582
6583
6584 ac_fn_c_check_func "$LINENO" "__gmpz_powm_sec" "ac_cv_func___gmpz_powm_sec"
6585 if test "x$ac_cv_func___gmpz_powm_sec" = x""yes; then :
6586   $as_echo "#define HAVE_MPZ_POWM_SEC 1" >>confdefs.h
6587
6588 fi
6589
6590
6591
6592
6593 if test "x$enable_public_key" = xyes ; then
6594   $as_echo "#define WITH_HOGWEED 1" >>confdefs.h
6595
6596   IF_HOGWEED=''
6597 else
6598   IF_HOGWEED='#'
6599 fi
6600
6601 if test "x$enable_shared" = xyes ; then
6602   IF_SHARED=''
6603 else
6604   IF_SHARED='#'
6605 fi
6606
6607
6608
6609
6610 OPENSSL_LIBFLAGS=''
6611
6612 # Check for openssl's libcrypto (used only for benchmarking)
6613 if test x$enable_openssl = xyes ; then
6614   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BF_ecb_encrypt in -lcrypto" >&5
6615 $as_echo_n "checking for BF_ecb_encrypt in -lcrypto... " >&6; }
6616 if test "${ac_cv_lib_crypto_BF_ecb_encrypt+set}" = set; then :
6617   $as_echo_n "(cached) " >&6
6618 else
6619   ac_check_lib_save_LIBS=$LIBS
6620 LIBS="-lcrypto  $LIBS"
6621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6622 /* end confdefs.h.  */
6623
6624 /* Override any GCC internal prototype to avoid an error.
6625    Use char because int might match the return type of a GCC
6626    builtin and then its argument prototype would still apply.  */
6627 #ifdef __cplusplus
6628 extern "C"
6629 #endif
6630 char BF_ecb_encrypt ();
6631 int
6632 main ()
6633 {
6634 return BF_ecb_encrypt ();
6635   ;
6636   return 0;
6637 }
6638 _ACEOF
6639 if ac_fn_c_try_link "$LINENO"; then :
6640   ac_cv_lib_crypto_BF_ecb_encrypt=yes
6641 else
6642   ac_cv_lib_crypto_BF_ecb_encrypt=no
6643 fi
6644 rm -f core conftest.err conftest.$ac_objext \
6645     conftest$ac_exeext conftest.$ac_ext
6646 LIBS=$ac_check_lib_save_LIBS
6647 fi
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_BF_ecb_encrypt" >&5
6649 $as_echo "$ac_cv_lib_crypto_BF_ecb_encrypt" >&6; }
6650 if test "x$ac_cv_lib_crypto_BF_ecb_encrypt" = x""yes; then :
6651   OPENSSL_LIBFLAGS='-lcrypto'
6652 else
6653   enable_openssl=no
6654 fi
6655
6656 fi
6657
6658
6659
6660 if test x$enable_openssl = xyes ; then
6661   $as_echo "#define WITH_OPENSSL 1" >>confdefs.h
6662
6663 fi
6664
6665
6666
6667 # Choose strategy for Camellia round
6668
6669
6670 # clock_gettime is in librt on *-*-osf5.1 and on glibc, so add -lrt to
6671 # BENCH_LIBS if needed. On linux (tested on x86_32, 2.6.26),
6672 # clock_getres reports ns accuracy, while in a quick test on osf
6673 # clock_getres said only 1 millisecond.
6674
6675 old_LIBS="$LIBS"
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
6677 $as_echo_n "checking for library containing clock_gettime... " >&6; }
6678 if test "${ac_cv_search_clock_gettime+set}" = set; then :
6679   $as_echo_n "(cached) " >&6
6680 else
6681   ac_func_search_save_LIBS=$LIBS
6682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6683 /* end confdefs.h.  */
6684
6685 /* Override any GCC internal prototype to avoid an error.
6686    Use char because int might match the return type of a GCC
6687    builtin and then its argument prototype would still apply.  */
6688 #ifdef __cplusplus
6689 extern "C"
6690 #endif
6691 char clock_gettime ();
6692 int
6693 main ()
6694 {
6695 return clock_gettime ();
6696   ;
6697   return 0;
6698 }
6699 _ACEOF
6700 for ac_lib in '' rt; do
6701   if test -z "$ac_lib"; then
6702     ac_res="none required"
6703   else
6704     ac_res=-l$ac_lib
6705     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6706   fi
6707   if ac_fn_c_try_link "$LINENO"; then :
6708   ac_cv_search_clock_gettime=$ac_res
6709 fi
6710 rm -f core conftest.err conftest.$ac_objext \
6711     conftest$ac_exeext
6712   if test "${ac_cv_search_clock_gettime+set}" = set; then :
6713   break
6714 fi
6715 done
6716 if test "${ac_cv_search_clock_gettime+set}" = set; then :
6717
6718 else
6719   ac_cv_search_clock_gettime=no
6720 fi
6721 rm conftest.$ac_ext
6722 LIBS=$ac_func_search_save_LIBS
6723 fi
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
6725 $as_echo "$ac_cv_search_clock_gettime" >&6; }
6726 ac_res=$ac_cv_search_clock_gettime
6727 if test "$ac_res" != no; then :
6728   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6729
6730
6731 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
6732
6733 fi
6734
6735 BENCH_LIBS="$LIBS"
6736 LIBS="$old_LIBS"
6737
6738
6739
6740 # Set these flags *last*, or else the test programs won't compile
6741 if test x$GCC = xyes ; then
6742   # Using -ggdb3 makes (some versions of) Redhat's gcc-2.96 dump core
6743   if $CC --version | grep '^2\.96$' 1>/dev/null 2>&1; then
6744     true
6745   else
6746     CFLAGS="$CFLAGS -ggdb3"
6747   fi
6748   # FIXME: It would be better to actually test if this option works and/or is needed.
6749   # Or perhaps use -funsigned-char.
6750   if $CC --version | grep 'gcc.* 4\.' 1>/dev/null 2>&1; then
6751     CFLAGS="$CFLAGS -Wno-pointer-sign"
6752   fi
6753   CFLAGS="$CFLAGS -Wall -W \
6754   -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes \
6755   -Wpointer-arith -Wbad-function-cast -Wnested-externs"
6756
6757 # Don't enable -Wcast-align as it results in tons of warnings in the
6758 # DES code. And when using stdio.
6759 # Don't enable -Waggregate-return, as that causes warnings for glibc
6760 # inttypes.h.
6761 fi
6762
6763 ac_config_files="$ac_config_files config.make config.m4 Makefile"
6764
6765 ac_config_files="$ac_config_files tools/Makefile testsuite/Makefile examples/Makefile"
6766
6767 ac_config_files="$ac_config_files nettle.pc hogweed.pc"
6768
6769
6770 cat >confcache <<\_ACEOF
6771 # This file is a shell script that caches the results of configure
6772 # tests run on this system so they can be shared between configure
6773 # scripts and configure runs, see configure's option --config-cache.
6774 # It is not useful on other systems.  If it contains results you don't
6775 # want to keep, you may remove or edit it.
6776 #
6777 # config.status only pays attention to the cache file if you give it
6778 # the --recheck option to rerun configure.
6779 #
6780 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6781 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6782 # following values.
6783
6784 _ACEOF
6785
6786 # The following way of writing the cache mishandles newlines in values,
6787 # but we know of no workaround that is simple, portable, and efficient.
6788 # So, we kill variables containing newlines.
6789 # Ultrix sh set writes to stderr and can't be redirected directly,
6790 # and sets the high bit in the cache file unless we assign to the vars.
6791 (
6792   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6793     eval ac_val=\$$ac_var
6794     case $ac_val in #(
6795     *${as_nl}*)
6796       case $ac_var in #(
6797       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6798 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6799       esac
6800       case $ac_var in #(
6801       _ | IFS | as_nl) ;; #(
6802       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6803       *) { eval $ac_var=; unset $ac_var;} ;;
6804       esac ;;
6805     esac
6806   done
6807
6808   (set) 2>&1 |
6809     case $as_nl`(ac_space=' '; set) 2>&1` in #(
6810     *${as_nl}ac_space=\ *)
6811       # `set' does not quote correctly, so add quotes: double-quote
6812       # substitution turns \\\\ into \\, and sed turns \\ into \.
6813       sed -n \
6814         "s/'/'\\\\''/g;
6815           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6816       ;; #(
6817     *)
6818       # `set' quotes correctly as required by POSIX, so do not add quotes.
6819       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6820       ;;
6821     esac |
6822     sort
6823 ) |
6824   sed '
6825      /^ac_cv_env_/b end
6826      t clear
6827      :clear
6828      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6829      t end
6830      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6831      :end' >>confcache
6832 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6833   if test -w "$cache_file"; then
6834     test "x$cache_file" != "x/dev/null" &&
6835       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6836 $as_echo "$as_me: updating cache $cache_file" >&6;}
6837     cat confcache >$cache_file
6838   else
6839     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6840 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6841   fi
6842 fi
6843 rm -f confcache
6844
6845 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6846 # Let make expand exec_prefix.
6847 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6848
6849 DEFS=-DHAVE_CONFIG_H
6850
6851 ac_libobjs=
6852 ac_ltlibobjs=
6853 U=
6854 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6855   # 1. Remove the extension, and $U if already installed.
6856   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6857   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6858   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
6859   #    will be set to the directory where LIBOBJS objects are built.
6860   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6861   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6862 done
6863 LIBOBJS=$ac_libobjs
6864
6865 LTLIBOBJS=$ac_ltlibobjs
6866
6867
6868
6869
6870 : ${CONFIG_STATUS=./config.status}
6871 ac_write_fail=0
6872 ac_clean_files_save=$ac_clean_files
6873 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6875 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6876 as_write_fail=0
6877 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6878 #! $SHELL
6879 # Generated by $as_me.
6880 # Run this file to recreate the current configuration.
6881 # Compiler output produced by configure, useful for debugging
6882 # configure, is in config.log if it exists.
6883
6884 debug=false
6885 ac_cs_recheck=false
6886 ac_cs_silent=false
6887
6888 SHELL=\${CONFIG_SHELL-$SHELL}
6889 export SHELL
6890 _ASEOF
6891 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6892 ## -------------------- ##
6893 ## M4sh Initialization. ##
6894 ## -------------------- ##
6895
6896 # Be more Bourne compatible
6897 DUALCASE=1; export DUALCASE # for MKS sh
6898 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6899   emulate sh
6900   NULLCMD=:
6901   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6902   # is contrary to our usage.  Disable this feature.
6903   alias -g '${1+"$@"}'='"$@"'
6904   setopt NO_GLOB_SUBST
6905 else
6906   case `(set -o) 2>/dev/null` in #(
6907   *posix*) :
6908     set -o posix ;; #(
6909   *) :
6910      ;;
6911 esac
6912 fi
6913
6914
6915 as_nl='
6916 '
6917 export as_nl
6918 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6919 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6920 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6921 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6922 # Prefer a ksh shell builtin over an external printf program on Solaris,
6923 # but without wasting forks for bash or zsh.
6924 if test -z "$BASH_VERSION$ZSH_VERSION" \
6925     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6926   as_echo='print -r --'
6927   as_echo_n='print -rn --'
6928 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6929   as_echo='printf %s\n'
6930   as_echo_n='printf %s'
6931 else
6932   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6933     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6934     as_echo_n='/usr/ucb/echo -n'
6935   else
6936     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6937     as_echo_n_body='eval
6938       arg=$1;
6939       case $arg in #(
6940       *"$as_nl"*)
6941         expr "X$arg" : "X\\(.*\\)$as_nl";
6942         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6943       esac;
6944       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6945     '
6946     export as_echo_n_body
6947     as_echo_n='sh -c $as_echo_n_body as_echo'
6948   fi
6949   export as_echo_body
6950   as_echo='sh -c $as_echo_body as_echo'
6951 fi
6952
6953 # The user is always right.
6954 if test "${PATH_SEPARATOR+set}" != set; then
6955   PATH_SEPARATOR=:
6956   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6957     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6958       PATH_SEPARATOR=';'
6959   }
6960 fi
6961
6962
6963 # IFS
6964 # We need space, tab and new line, in precisely that order.  Quoting is
6965 # there to prevent editors from complaining about space-tab.
6966 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6967 # splitting by setting IFS to empty value.)
6968 IFS=" ""        $as_nl"
6969
6970 # Find who we are.  Look in the path if we contain no directory separator.
6971 case $0 in #((
6972   *[\\/]* ) as_myself=$0 ;;
6973   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6974 for as_dir in $PATH
6975 do
6976   IFS=$as_save_IFS
6977   test -z "$as_dir" && as_dir=.
6978     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6979   done
6980 IFS=$as_save_IFS
6981
6982      ;;
6983 esac
6984 # We did not find ourselves, most probably we were run as `sh COMMAND'
6985 # in which case we are not to be found in the path.
6986 if test "x$as_myself" = x; then
6987   as_myself=$0
6988 fi
6989 if test ! -f "$as_myself"; then
6990   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6991   exit 1
6992 fi
6993
6994 # Unset variables that we do not need and which cause bugs (e.g. in
6995 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
6996 # suppresses any "Segmentation fault" message there.  '((' could
6997 # trigger a bug in pdksh 5.2.14.
6998 for as_var in BASH_ENV ENV MAIL MAILPATH
6999 do eval test x\${$as_var+set} = xset \
7000   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7001 done
7002 PS1='$ '
7003 PS2='> '
7004 PS4='+ '
7005
7006 # NLS nuisances.
7007 LC_ALL=C
7008 export LC_ALL
7009 LANGUAGE=C
7010 export LANGUAGE
7011
7012 # CDPATH.
7013 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7014
7015
7016 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7017 # ----------------------------------------
7018 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7019 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7020 # script with STATUS, using 1 if that was 0.
7021 as_fn_error ()
7022 {
7023   as_status=$1; test $as_status -eq 0 && as_status=1
7024   if test "$4"; then
7025     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7026     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7027   fi
7028   $as_echo "$as_me: error: $2" >&2
7029   as_fn_exit $as_status
7030 } # as_fn_error
7031
7032
7033 # as_fn_set_status STATUS
7034 # -----------------------
7035 # Set $? to STATUS, without forking.
7036 as_fn_set_status ()
7037 {
7038   return $1
7039 } # as_fn_set_status
7040
7041 # as_fn_exit STATUS
7042 # -----------------
7043 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7044 as_fn_exit ()
7045 {
7046   set +e
7047   as_fn_set_status $1
7048   exit $1
7049 } # as_fn_exit
7050
7051 # as_fn_unset VAR
7052 # ---------------
7053 # Portably unset VAR.
7054 as_fn_unset ()
7055 {
7056   { eval $1=; unset $1;}
7057 }
7058 as_unset=as_fn_unset
7059 # as_fn_append VAR VALUE
7060 # ----------------------
7061 # Append the text in VALUE to the end of the definition contained in VAR. Take
7062 # advantage of any shell optimizations that allow amortized linear growth over
7063 # repeated appends, instead of the typical quadratic growth present in naive
7064 # implementations.
7065 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7066   eval 'as_fn_append ()
7067   {
7068     eval $1+=\$2
7069   }'
7070 else
7071   as_fn_append ()
7072   {
7073     eval $1=\$$1\$2
7074   }
7075 fi # as_fn_append
7076
7077 # as_fn_arith ARG...
7078 # ------------------
7079 # Perform arithmetic evaluation on the ARGs, and store the result in the
7080 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7081 # must be portable across $(()) and expr.
7082 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7083   eval 'as_fn_arith ()
7084   {
7085     as_val=$(( $* ))
7086   }'
7087 else
7088   as_fn_arith ()
7089   {
7090     as_val=`expr "$@" || test $? -eq 1`
7091   }
7092 fi # as_fn_arith
7093
7094
7095 if expr a : '\(a\)' >/dev/null 2>&1 &&
7096    test "X`expr 00001 : '.*\(...\)'`" = X001; then
7097   as_expr=expr
7098 else
7099   as_expr=false
7100 fi
7101
7102 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7103   as_basename=basename
7104 else
7105   as_basename=false
7106 fi
7107
7108 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7109   as_dirname=dirname
7110 else
7111   as_dirname=false
7112 fi
7113
7114 as_me=`$as_basename -- "$0" ||
7115 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7116          X"$0" : 'X\(//\)$' \| \
7117          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7118 $as_echo X/"$0" |
7119     sed '/^.*\/\([^/][^/]*\)\/*$/{
7120             s//\1/
7121             q
7122           }
7123           /^X\/\(\/\/\)$/{
7124             s//\1/
7125             q
7126           }
7127           /^X\/\(\/\).*/{
7128             s//\1/
7129             q
7130           }
7131           s/.*/./; q'`
7132
7133 # Avoid depending upon Character Ranges.
7134 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7135 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7136 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7137 as_cr_digits='0123456789'
7138 as_cr_alnum=$as_cr_Letters$as_cr_digits
7139
7140 ECHO_C= ECHO_N= ECHO_T=
7141 case `echo -n x` in #(((((
7142 -n*)
7143   case `echo 'xy\c'` in
7144   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
7145   xy)  ECHO_C='\c';;
7146   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
7147        ECHO_T=' ';;
7148   esac;;
7149 *)
7150   ECHO_N='-n';;
7151 esac
7152
7153 rm -f conf$$ conf$$.exe conf$$.file
7154 if test -d conf$$.dir; then
7155   rm -f conf$$.dir/conf$$.file
7156 else
7157   rm -f conf$$.dir
7158   mkdir conf$$.dir 2>/dev/null
7159 fi
7160 if (echo >conf$$.file) 2>/dev/null; then
7161   if ln -s conf$$.file conf$$ 2>/dev/null; then
7162     as_ln_s='ln -s'
7163     # ... but there are two gotchas:
7164     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7165     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7166     # In both cases, we have to default to `cp -p'.
7167     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7168       as_ln_s='cp -p'
7169   elif ln conf$$.file conf$$ 2>/dev/null; then
7170     as_ln_s=ln
7171   else
7172     as_ln_s='cp -p'
7173   fi
7174 else
7175   as_ln_s='cp -p'
7176 fi
7177 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7178 rmdir conf$$.dir 2>/dev/null
7179
7180
7181 # as_fn_mkdir_p
7182 # -------------
7183 # Create "$as_dir" as a directory, including parents if necessary.
7184 as_fn_mkdir_p ()
7185 {
7186
7187   case $as_dir in #(
7188   -*) as_dir=./$as_dir;;
7189   esac
7190   test -d "$as_dir" || eval $as_mkdir_p || {
7191     as_dirs=
7192     while :; do
7193       case $as_dir in #(
7194       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7195       *) as_qdir=$as_dir;;
7196       esac
7197       as_dirs="'$as_qdir' $as_dirs"
7198       as_dir=`$as_dirname -- "$as_dir" ||
7199 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7200          X"$as_dir" : 'X\(//\)[^/]' \| \
7201          X"$as_dir" : 'X\(//\)$' \| \
7202          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7203 $as_echo X"$as_dir" |
7204     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7205             s//\1/
7206             q
7207           }
7208           /^X\(\/\/\)[^/].*/{
7209             s//\1/
7210             q
7211           }
7212           /^X\(\/\/\)$/{
7213             s//\1/
7214             q
7215           }
7216           /^X\(\/\).*/{
7217             s//\1/
7218             q
7219           }
7220           s/.*/./; q'`
7221       test -d "$as_dir" && break
7222     done
7223     test -z "$as_dirs" || eval "mkdir $as_dirs"
7224   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7225
7226
7227 } # as_fn_mkdir_p
7228 if mkdir -p . 2>/dev/null; then
7229   as_mkdir_p='mkdir -p "$as_dir"'
7230 else
7231   test -d ./-p && rmdir ./-p
7232   as_mkdir_p=false
7233 fi
7234
7235 if test -x / >/dev/null 2>&1; then
7236   as_test_x='test -x'
7237 else
7238   if ls -dL / >/dev/null 2>&1; then
7239     as_ls_L_option=L
7240   else
7241     as_ls_L_option=
7242   fi
7243   as_test_x='
7244     eval sh -c '\''
7245       if test -d "$1"; then
7246         test -d "$1/.";
7247       else
7248         case $1 in #(
7249         -*)set "./$1";;
7250         esac;
7251         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
7252         ???[sx]*):;;*)false;;esac;fi
7253     '\'' sh
7254   '
7255 fi
7256 as_executable_p=$as_test_x
7257
7258 # Sed expression to map a string onto a valid CPP name.
7259 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7260
7261 # Sed expression to map a string onto a valid variable name.
7262 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7263
7264
7265 exec 6>&1
7266 ## ----------------------------------- ##
7267 ## Main body of $CONFIG_STATUS script. ##
7268 ## ----------------------------------- ##
7269 _ASEOF
7270 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7271
7272 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7273 # Save the log message, to keep $0 and so on meaningful, and to
7274 # report actual input values of CONFIG_FILES etc. instead of their
7275 # values after options handling.
7276 ac_log="
7277 This file was extended by nettle $as_me 2.4, which was
7278 generated by GNU Autoconf 2.67.  Invocation command line was
7279
7280   CONFIG_FILES    = $CONFIG_FILES
7281   CONFIG_HEADERS  = $CONFIG_HEADERS
7282   CONFIG_LINKS    = $CONFIG_LINKS
7283   CONFIG_COMMANDS = $CONFIG_COMMANDS
7284   $ $0 $@
7285
7286 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7287 "
7288
7289 _ACEOF
7290
7291 case $ac_config_files in *"
7292 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7293 esac
7294
7295 case $ac_config_headers in *"
7296 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7297 esac
7298
7299
7300 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7301 # Files that config.status was made for.
7302 config_files="$ac_config_files"
7303 config_headers="$ac_config_headers"
7304 config_links="$ac_config_links"
7305 config_commands="$ac_config_commands"
7306
7307 _ACEOF
7308
7309 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7310 ac_cs_usage="\
7311 \`$as_me' instantiates files and other configuration actions
7312 from templates according to the current configuration.  Unless the files
7313 and actions are specified as TAGs, all are instantiated by default.
7314
7315 Usage: $0 [OPTION]... [TAG]...
7316
7317   -h, --help       print this help, then exit
7318   -V, --version    print version number and configuration settings, then exit
7319       --config     print configuration, then exit
7320   -q, --quiet, --silent
7321                    do not print progress messages
7322   -d, --debug      don't remove temporary files
7323       --recheck    update $as_me by reconfiguring in the same conditions
7324       --file=FILE[:TEMPLATE]
7325                    instantiate the configuration file FILE
7326       --header=FILE[:TEMPLATE]
7327                    instantiate the configuration header FILE
7328
7329 Configuration files:
7330 $config_files
7331
7332 Configuration headers:
7333 $config_headers
7334
7335 Configuration links:
7336 $config_links
7337
7338 Configuration commands:
7339 $config_commands
7340
7341 Report bugs to <nettle-bugs@lists.lysator.liu.se>."
7342
7343 _ACEOF
7344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7345 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7346 ac_cs_version="\\
7347 nettle config.status 2.4
7348 configured by $0, generated by GNU Autoconf 2.67,
7349   with options \\"\$ac_cs_config\\"
7350
7351 Copyright (C) 2010 Free Software Foundation, Inc.
7352 This config.status script is free software; the Free Software Foundation
7353 gives unlimited permission to copy, distribute and modify it."
7354
7355 ac_pwd='$ac_pwd'
7356 srcdir='$srcdir'
7357 INSTALL='$INSTALL'
7358 MKDIR_P='$MKDIR_P'
7359 test -n "\$AWK" || AWK=awk
7360 _ACEOF
7361
7362 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7363 # The default lists apply if the user does not specify any file.
7364 ac_need_defaults=:
7365 while test $# != 0
7366 do
7367   case $1 in
7368   --*=?*)
7369     ac_option=`expr "X$1" : 'X\([^=]*\)='`
7370     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7371     ac_shift=:
7372     ;;
7373   --*=)
7374     ac_option=`expr "X$1" : 'X\([^=]*\)='`
7375     ac_optarg=
7376     ac_shift=:
7377     ;;
7378   *)
7379     ac_option=$1
7380     ac_optarg=$2
7381     ac_shift=shift
7382     ;;
7383   esac
7384
7385   case $ac_option in
7386   # Handling of the options.
7387   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7388     ac_cs_recheck=: ;;
7389   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7390     $as_echo "$ac_cs_version"; exit ;;
7391   --config | --confi | --conf | --con | --co | --c )
7392     $as_echo "$ac_cs_config"; exit ;;
7393   --debug | --debu | --deb | --de | --d | -d )
7394     debug=: ;;
7395   --file | --fil | --fi | --f )
7396     $ac_shift
7397     case $ac_optarg in
7398     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7399     '') as_fn_error $? "missing file argument" ;;
7400     esac
7401     as_fn_append CONFIG_FILES " '$ac_optarg'"
7402     ac_need_defaults=false;;
7403   --header | --heade | --head | --hea )
7404     $ac_shift
7405     case $ac_optarg in
7406     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7407     esac
7408     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7409     ac_need_defaults=false;;
7410   --he | --h)
7411     # Conflict between --help and --header
7412     as_fn_error $? "ambiguous option: \`$1'
7413 Try \`$0 --help' for more information.";;
7414   --help | --hel | -h )
7415     $as_echo "$ac_cs_usage"; exit ;;
7416   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7417   | -silent | --silent | --silen | --sile | --sil | --si | --s)
7418     ac_cs_silent=: ;;
7419
7420   # This is an error.
7421   -*) as_fn_error $? "unrecognized option: \`$1'
7422 Try \`$0 --help' for more information." ;;
7423
7424   *) as_fn_append ac_config_targets " $1"
7425      ac_need_defaults=false ;;
7426
7427   esac
7428   shift
7429 done
7430
7431 ac_configure_extra_args=
7432
7433 if $ac_cs_silent; then
7434   exec 6>/dev/null
7435   ac_configure_extra_args="$ac_configure_extra_args --silent"
7436 fi
7437
7438 _ACEOF
7439 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7440 if \$ac_cs_recheck; then
7441   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7442   shift
7443   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7444   CONFIG_SHELL='$SHELL'
7445   export CONFIG_SHELL
7446   exec "\$@"
7447 fi
7448
7449 _ACEOF
7450 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7451 exec 5>>config.log
7452 {
7453   echo
7454   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7455 ## Running $as_me. ##
7456 _ASBOX
7457   $as_echo "$ac_log"
7458 } >&5
7459
7460 _ACEOF
7461 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7462 #
7463 # INIT-COMMANDS
7464 #
7465 # variables for create stdint.h replacement
7466 PACKAGE="$PACKAGE"
7467 VERSION="$VERSION"
7468 ac_stdint_h="$ac_stdint_h"
7469 _ac_stdint_h=`$as_echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
7470 ac_cv_stdint_message="$ac_cv_stdint_message"
7471 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
7472 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
7473 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
7474 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
7475 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
7476 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
7477 ac_cv_stdint_char_model="$ac_cv_stdint_char_model"
7478 ac_cv_stdint_long_model="$ac_cv_stdint_long_model"
7479 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
7480 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
7481 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
7482
7483
7484 _ACEOF
7485
7486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7487
7488 # Handling of arguments.
7489 for ac_config_target in $ac_config_targets
7490 do
7491   case $ac_config_target in
7492     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7493     "dummy-dep-files") CONFIG_COMMANDS="$CONFIG_COMMANDS dummy-dep-files" ;;
7494     "$tmp_f") CONFIG_LINKS="$CONFIG_LINKS $tmp_f:$asm_path/$tmp_f" ;;
7495     "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
7496     "config.make") CONFIG_FILES="$CONFIG_FILES config.make" ;;
7497     "config.m4") CONFIG_FILES="$CONFIG_FILES config.m4" ;;
7498     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7499     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
7500     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
7501     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
7502     "nettle.pc") CONFIG_FILES="$CONFIG_FILES nettle.pc" ;;
7503     "hogweed.pc") CONFIG_FILES="$CONFIG_FILES hogweed.pc" ;;
7504
7505   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
7506   esac
7507 done
7508
7509
7510 # If the user did not use the arguments to specify the items to instantiate,
7511 # then the envvar interface is used.  Set only those that are not.
7512 # We use the long form for the default assignment because of an extremely
7513 # bizarre bug on SunOS 4.1.3.
7514 if $ac_need_defaults; then
7515   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7516   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7517   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
7518   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7519 fi
7520
7521 # Have a temporary directory for convenience.  Make it in the build tree
7522 # simply because there is no reason against having it here, and in addition,
7523 # creating and moving files from /tmp can sometimes cause problems.
7524 # Hook for its removal unless debugging.
7525 # Note that there is a small window in which the directory will not be cleaned:
7526 # after its creation but before its name has been assigned to `$tmp'.
7527 $debug ||
7528 {
7529   tmp=
7530   trap 'exit_status=$?
7531   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7532 ' 0
7533   trap 'as_fn_exit 1' 1 2 13 15
7534 }
7535 # Create a (secure) tmp directory for tmp files.
7536
7537 {
7538   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7539   test -n "$tmp" && test -d "$tmp"
7540 }  ||
7541 {
7542   tmp=./conf$$-$RANDOM
7543   (umask 077 && mkdir "$tmp")
7544 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7545
7546 # Set up the scripts for CONFIG_FILES section.
7547 # No need to generate them if there are no CONFIG_FILES.
7548 # This happens for instance with `./config.status config.h'.
7549 if test -n "$CONFIG_FILES"; then
7550
7551
7552 ac_cr=`echo X | tr X '\015'`
7553 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7554 # But we know of no other shell where ac_cr would be empty at this
7555 # point, so we can use a bashism as a fallback.
7556 if test "x$ac_cr" = x; then
7557   eval ac_cr=\$\'\\r\'
7558 fi
7559 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7560 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7561   ac_cs_awk_cr='\\r'
7562 else
7563   ac_cs_awk_cr=$ac_cr
7564 fi
7565
7566 echo 'BEGIN {' >"$tmp/subs1.awk" &&
7567 _ACEOF
7568
7569
7570 {
7571   echo "cat >conf$$subs.awk <<_ACEOF" &&
7572   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7573   echo "_ACEOF"
7574 } >conf$$subs.sh ||
7575   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7576 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7577 ac_delim='%!_!# '
7578 for ac_last_try in false false false false false :; do
7579   . ./conf$$subs.sh ||
7580     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7581
7582   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7583   if test $ac_delim_n = $ac_delim_num; then
7584     break
7585   elif $ac_last_try; then
7586     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7587   else
7588     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7589   fi
7590 done
7591 rm -f conf$$subs.sh
7592
7593 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7594 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
7595 _ACEOF
7596 sed -n '
7597 h
7598 s/^/S["/; s/!.*/"]=/
7599 p
7600 g
7601 s/^[^!]*!//
7602 :repl
7603 t repl
7604 s/'"$ac_delim"'$//
7605 t delim
7606 :nl
7607 h
7608 s/\(.\{148\}\)..*/\1/
7609 t more1
7610 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7611 p
7612 n
7613 b repl
7614 :more1
7615 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7616 p
7617 g
7618 s/.\{148\}//
7619 t nl
7620 :delim
7621 h
7622 s/\(.\{148\}\)..*/\1/
7623 t more2
7624 s/["\\]/\\&/g; s/^/"/; s/$/"/
7625 p
7626 b
7627 :more2
7628 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7629 p
7630 g
7631 s/.\{148\}//
7632 t delim
7633 ' <conf$$subs.awk | sed '
7634 /^[^""]/{
7635   N
7636   s/\n//
7637 }
7638 ' >>$CONFIG_STATUS || ac_write_fail=1
7639 rm -f conf$$subs.awk
7640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7641 _ACAWK
7642 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
7643   for (key in S) S_is_set[key] = 1
7644   FS = "\a"
7645
7646 }
7647 {
7648   line = $ 0
7649   nfields = split(line, field, "@")
7650   substed = 0
7651   len = length(field[1])
7652   for (i = 2; i < nfields; i++) {
7653     key = field[i]
7654     keylen = length(key)
7655     if (S_is_set[key]) {
7656       value = S[key]
7657       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7658       len += length(value) + length(field[++i])
7659       substed = 1
7660     } else
7661       len += 1 + keylen
7662   }
7663
7664   print line
7665 }
7666
7667 _ACAWK
7668 _ACEOF
7669 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7670 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7671   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7672 else
7673   cat
7674 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
7675   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7676 _ACEOF
7677
7678 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7679 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7680 # trailing colons and then remove the whole line if VPATH becomes empty
7681 # (actually we leave an empty line to preserve line numbers).
7682 if test "x$srcdir" = x.; then
7683   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
7684 h
7685 s///
7686 s/^/:/
7687 s/[      ]*$/:/
7688 s/:\$(srcdir):/:/g
7689 s/:\${srcdir}:/:/g
7690 s/:@srcdir@:/:/g
7691 s/^:*//
7692 s/:*$//
7693 x
7694 s/\(=[   ]*\).*/\1/
7695 G
7696 s/\n//
7697 s/^[^=]*=[       ]*$//
7698 }'
7699 fi
7700
7701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7702 fi # test -n "$CONFIG_FILES"
7703
7704 # Set up the scripts for CONFIG_HEADERS section.
7705 # No need to generate them if there are no CONFIG_HEADERS.
7706 # This happens for instance with `./config.status Makefile'.
7707 if test -n "$CONFIG_HEADERS"; then
7708 cat >"$tmp/defines.awk" <<\_ACAWK ||
7709 BEGIN {
7710 _ACEOF
7711
7712 # Transform confdefs.h into an awk script `defines.awk', embedded as
7713 # here-document in config.status, that substitutes the proper values into
7714 # config.h.in to produce config.h.
7715
7716 # Create a delimiter string that does not exist in confdefs.h, to ease
7717 # handling of long lines.
7718 ac_delim='%!_!# '
7719 for ac_last_try in false false :; do
7720   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
7721   if test -z "$ac_t"; then
7722     break
7723   elif $ac_last_try; then
7724     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7725   else
7726     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7727   fi
7728 done
7729
7730 # For the awk script, D is an array of macro values keyed by name,
7731 # likewise P contains macro parameters if any.  Preserve backslash
7732 # newline sequences.
7733
7734 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7735 sed -n '
7736 s/.\{148\}/&'"$ac_delim"'/g
7737 t rset
7738 :rset
7739 s/^[     ]*#[    ]*define[       ][      ]*/ /
7740 t def
7741 d
7742 :def
7743 s/\\$//
7744 t bsnl
7745 s/["\\]/\\&/g
7746 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
7747 D["\1"]=" \3"/p
7748 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
7749 d
7750 :bsnl
7751 s/["\\]/\\&/g
7752 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
7753 D["\1"]=" \3\\\\\\n"\\/p
7754 t cont
7755 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7756 t cont
7757 d
7758 :cont
7759 n
7760 s/.\{148\}/&'"$ac_delim"'/g
7761 t clear
7762 :clear
7763 s/\\$//
7764 t bsnlc
7765 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7766 d
7767 :bsnlc
7768 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7769 b cont
7770 ' <confdefs.h | sed '
7771 s/'"$ac_delim"'/"\\\
7772 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7773
7774 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7775   for (key in D) D_is_set[key] = 1
7776   FS = "\a"
7777 }
7778 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7779   line = \$ 0
7780   split(line, arg, " ")
7781   if (arg[1] == "#") {
7782     defundef = arg[2]
7783     mac1 = arg[3]
7784   } else {
7785     defundef = substr(arg[1], 2)
7786     mac1 = arg[2]
7787   }
7788   split(mac1, mac2, "(") #)
7789   macro = mac2[1]
7790   prefix = substr(line, 1, index(line, defundef) - 1)
7791   if (D_is_set[macro]) {
7792     # Preserve the white space surrounding the "#".
7793     print prefix "define", macro P[macro] D[macro]
7794     next
7795   } else {
7796     # Replace #undef with comments.  This is necessary, for example,
7797     # in the case of _POSIX_SOURCE, which is predefined and required
7798     # on some systems where configure will not decide to define it.
7799     if (defundef == "undef") {
7800       print "/*", prefix defundef, macro, "*/"
7801       next
7802     }
7803   }
7804 }
7805 { print }
7806 _ACAWK
7807 _ACEOF
7808 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7809   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7810 fi # test -n "$CONFIG_HEADERS"
7811
7812
7813 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
7814 shift
7815 for ac_tag
7816 do
7817   case $ac_tag in
7818   :[FHLC]) ac_mode=$ac_tag; continue;;
7819   esac
7820   case $ac_mode$ac_tag in
7821   :[FHL]*:*);;
7822   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
7823   :[FH]-) ac_tag=-:-;;
7824   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7825   esac
7826   ac_save_IFS=$IFS
7827   IFS=:
7828   set x $ac_tag
7829   IFS=$ac_save_IFS
7830   shift
7831   ac_file=$1
7832   shift
7833
7834   case $ac_mode in
7835   :L) ac_source=$1;;
7836   :[FH])
7837     ac_file_inputs=
7838     for ac_f
7839     do
7840       case $ac_f in
7841       -) ac_f="$tmp/stdin";;
7842       *) # Look for the file first in the build tree, then in the source tree
7843          # (if the path is not absolute).  The absolute path cannot be DOS-style,
7844          # because $ac_f cannot contain `:'.
7845          test -f "$ac_f" ||
7846            case $ac_f in
7847            [\\/$]*) false;;
7848            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7849            esac ||
7850            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
7851       esac
7852       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7853       as_fn_append ac_file_inputs " '$ac_f'"
7854     done
7855
7856     # Let's still pretend it is `configure' which instantiates (i.e., don't
7857     # use $as_me), people would be surprised to read:
7858     #    /* config.h.  Generated by config.status.  */
7859     configure_input='Generated from '`
7860           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7861         `' by configure.'
7862     if test x"$ac_file" != x-; then
7863       configure_input="$ac_file.  $configure_input"
7864       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7865 $as_echo "$as_me: creating $ac_file" >&6;}
7866     fi
7867     # Neutralize special characters interpreted by sed in replacement strings.
7868     case $configure_input in #(
7869     *\&* | *\|* | *\\* )
7870        ac_sed_conf_input=`$as_echo "$configure_input" |
7871        sed 's/[\\\\&|]/\\\\&/g'`;; #(
7872     *) ac_sed_conf_input=$configure_input;;
7873     esac
7874
7875     case $ac_tag in
7876     *:-:* | *:-) cat >"$tmp/stdin" \
7877       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
7878     esac
7879     ;;
7880   esac
7881
7882   ac_dir=`$as_dirname -- "$ac_file" ||
7883 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7884          X"$ac_file" : 'X\(//\)[^/]' \| \
7885          X"$ac_file" : 'X\(//\)$' \| \
7886          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7887 $as_echo X"$ac_file" |
7888     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7889             s//\1/
7890             q
7891           }
7892           /^X\(\/\/\)[^/].*/{
7893             s//\1/
7894             q
7895           }
7896           /^X\(\/\/\)$/{
7897             s//\1/
7898             q
7899           }
7900           /^X\(\/\).*/{
7901             s//\1/
7902             q
7903           }
7904           s/.*/./; q'`
7905   as_dir="$ac_dir"; as_fn_mkdir_p
7906   ac_builddir=.
7907
7908 case "$ac_dir" in
7909 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7910 *)
7911   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7912   # A ".." for each directory in $ac_dir_suffix.
7913   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7914   case $ac_top_builddir_sub in
7915   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7916   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7917   esac ;;
7918 esac
7919 ac_abs_top_builddir=$ac_pwd
7920 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7921 # for backward compatibility:
7922 ac_top_builddir=$ac_top_build_prefix
7923
7924 case $srcdir in
7925   .)  # We are building in place.
7926     ac_srcdir=.
7927     ac_top_srcdir=$ac_top_builddir_sub
7928     ac_abs_top_srcdir=$ac_pwd ;;
7929   [\\/]* | ?:[\\/]* )  # Absolute name.
7930     ac_srcdir=$srcdir$ac_dir_suffix;
7931     ac_top_srcdir=$srcdir
7932     ac_abs_top_srcdir=$srcdir ;;
7933   *) # Relative name.
7934     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7935     ac_top_srcdir=$ac_top_build_prefix$srcdir
7936     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7937 esac
7938 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7939
7940
7941   case $ac_mode in
7942   :F)
7943   #
7944   # CONFIG_FILE
7945   #
7946
7947   case $INSTALL in
7948   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7949   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7950   esac
7951   ac_MKDIR_P=$MKDIR_P
7952   case $MKDIR_P in
7953   [\\/$]* | ?:[\\/]* ) ;;
7954   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7955   esac
7956 _ACEOF
7957
7958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7959 # If the template does not know about datarootdir, expand it.
7960 # FIXME: This hack should be removed a few years after 2.60.
7961 ac_datarootdir_hack=; ac_datarootdir_seen=
7962 ac_sed_dataroot='
7963 /datarootdir/ {
7964   p
7965   q
7966 }
7967 /@datadir@/p
7968 /@docdir@/p
7969 /@infodir@/p
7970 /@localedir@/p
7971 /@mandir@/p'
7972 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7973 *datarootdir*) ac_datarootdir_seen=yes;;
7974 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7975   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7976 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7977 _ACEOF
7978 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7979   ac_datarootdir_hack='
7980   s&@datadir@&$datadir&g
7981   s&@docdir@&$docdir&g
7982   s&@infodir@&$infodir&g
7983   s&@localedir@&$localedir&g
7984   s&@mandir@&$mandir&g
7985   s&\\\${datarootdir}&$datarootdir&g' ;;
7986 esac
7987 _ACEOF
7988
7989 # Neutralize VPATH when `$srcdir' = `.'.
7990 # Shell code in configure.ac might set extrasub.
7991 # FIXME: do we really want to maintain this feature?
7992 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7993 ac_sed_extra="$ac_vpsub
7994 $extrasub
7995 _ACEOF
7996 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7997 :t
7998 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7999 s|@configure_input@|$ac_sed_conf_input|;t t
8000 s&@top_builddir@&$ac_top_builddir_sub&;t t
8001 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8002 s&@srcdir@&$ac_srcdir&;t t
8003 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8004 s&@top_srcdir@&$ac_top_srcdir&;t t
8005 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8006 s&@builddir@&$ac_builddir&;t t
8007 s&@abs_builddir@&$ac_abs_builddir&;t t
8008 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8009 s&@INSTALL@&$ac_INSTALL&;t t
8010 s&@MKDIR_P@&$ac_MKDIR_P&;t t
8011 $ac_datarootdir_hack
8012 "
8013 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8014   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8015
8016 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8017   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8018   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8019   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8020 which seems to be undefined.  Please make sure it is defined" >&5
8021 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8022 which seems to be undefined.  Please make sure it is defined" >&2;}
8023
8024   rm -f "$tmp/stdin"
8025   case $ac_file in
8026   -) cat "$tmp/out" && rm -f "$tmp/out";;
8027   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8028   esac \
8029   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8030  ;;
8031   :H)
8032   #
8033   # CONFIG_HEADER
8034   #
8035   if test x"$ac_file" != x-; then
8036     {
8037       $as_echo "/* $configure_input  */" \
8038       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8039     } >"$tmp/config.h" \
8040       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8041     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8042       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8043 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8044     else
8045       rm -f "$ac_file"
8046       mv "$tmp/config.h" "$ac_file" \
8047         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8048     fi
8049   else
8050     $as_echo "/* $configure_input  */" \
8051       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8052       || as_fn_error $? "could not create -" "$LINENO" 5
8053   fi
8054  ;;
8055   :L)
8056   #
8057   # CONFIG_LINK
8058   #
8059
8060   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
8061     :
8062   else
8063     # Prefer the file from the source tree if names are identical.
8064     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
8065       ac_source=$srcdir/$ac_source
8066     fi
8067
8068     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
8069 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
8070
8071     if test ! -r "$ac_source"; then
8072       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
8073     fi
8074     rm -f "$ac_file"
8075
8076     # Try a relative symlink, then a hard link, then a copy.
8077     case $ac_source in
8078     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
8079         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
8080     esac
8081     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
8082       ln "$ac_source" "$ac_file" 2>/dev/null ||
8083       cp -p "$ac_source" "$ac_file" ||
8084       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
8085   fi
8086  ;;
8087   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8088 $as_echo "$as_me: executing $ac_file commands" >&6;}
8089  ;;
8090   esac
8091
8092
8093   case $ac_file$ac_mode in
8094     "dummy-dep-files":C) (cd "$srcdir" && find . -name '*.c' -print) \
8095  | sed 's/\.c$//' | (while read f; do echo > "$f.o.d"; echo > "$f.po.d"; done)
8096  ;;
8097     "$ac_stdint_h":C)
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_stdint_h : $_ac_stdint_h" >&5
8099 $as_echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
8100 ac_stdint=$tmp/_stdint.h
8101
8102 echo "#ifndef" $_ac_stdint_h >$ac_stdint
8103 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
8104 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
8105 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
8106 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
8107 if test "_$ac_cv_header_stdint_t" != "_" ; then
8108 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
8109 fi
8110
8111 cat >>$ac_stdint <<STDINT_EOF
8112
8113 /* ................... shortcircuit part ........................... */
8114
8115 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
8116 #include <stdint.h>
8117 #else
8118 #include <stddef.h>
8119
8120 /* .................... configured part ............................ */
8121
8122 STDINT_EOF
8123
8124 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
8125 if test "_$ac_cv_header_stdint_x" != "_" ; then
8126   ac_header="$ac_cv_header_stdint_x"
8127   echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
8128 else
8129   echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
8130 fi
8131
8132 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
8133 if  test "_$ac_cv_header_stdint_o" != "_" ; then
8134   ac_header="$ac_cv_header_stdint_o"
8135   echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
8136 else
8137   echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
8138 fi
8139
8140 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
8141 if  test "_$ac_cv_header_stdint_u" != "_" ; then
8142   ac_header="$ac_cv_header_stdint_u"
8143   echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
8144 else
8145   echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
8146 fi
8147
8148 echo "" >>$ac_stdint
8149
8150 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
8151   echo "#include <$ac_header>" >>$ac_stdint
8152   echo "" >>$ac_stdint
8153 fi fi
8154
8155 echo "/* which 64bit typedef has been found */" >>$ac_stdint
8156 if test "$ac_cv_type_uint64_t" = "yes" ; then
8157 echo "#define   _STDINT_HAVE_UINT64_T" "1"  >>$ac_stdint
8158 else
8159 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
8160 fi
8161 if test "$ac_cv_type_u_int64_t" = "yes" ; then
8162 echo "#define   _STDINT_HAVE_U_INT64_T" "1"  >>$ac_stdint
8163 else
8164 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
8165 fi
8166 echo "" >>$ac_stdint
8167
8168 echo "/* which type model has been detected */" >>$ac_stdint
8169 if test "_$ac_cv_stdint_char_model" != "_" ; then
8170 echo "#define   _STDINT_CHAR_MODEL" "$ac_cv_stdint_char_model" >>$ac_stdint
8171 echo "#define   _STDINT_LONG_MODEL" "$ac_cv_stdint_long_model" >>$ac_stdint
8172 else
8173 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
8174 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
8175 fi
8176 echo "" >>$ac_stdint
8177
8178 echo "/* whether int_least types were detected */" >>$ac_stdint
8179 if test "$ac_cv_type_int_least32_t" = "yes"; then
8180 echo "#define   _STDINT_HAVE_INT_LEAST32_T" "1"  >>$ac_stdint
8181 else
8182 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
8183 fi
8184 echo "/* whether int_fast types were detected */" >>$ac_stdint
8185 if test "$ac_cv_type_int_fast32_t" = "yes"; then
8186 echo "#define   _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
8187 else
8188 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
8189 fi
8190 echo "/* whether intmax_t type was detected */" >>$ac_stdint
8191 if test "$ac_cv_type_intmax_t" = "yes"; then
8192 echo "#define   _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
8193 else
8194 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
8195 fi
8196 echo "" >>$ac_stdint
8197
8198   cat >>$ac_stdint <<STDINT_EOF
8199 /* .................... detections part ............................ */
8200
8201 /* whether we need to define bitspecific types from compiler base types */
8202 #ifndef _STDINT_HEADER_INTPTR
8203 #ifndef _STDINT_HEADER_UINT32
8204 #ifndef _STDINT_HEADER_U_INT32
8205 #define _STDINT_NEED_INT_MODEL_T
8206 #else
8207 #define _STDINT_HAVE_U_INT_TYPES
8208 #endif
8209 #endif
8210 #endif
8211
8212 #ifdef _STDINT_HAVE_U_INT_TYPES
8213 #undef _STDINT_NEED_INT_MODEL_T
8214 #endif
8215
8216 #ifdef  _STDINT_CHAR_MODEL
8217 #if     _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
8218 #ifndef _STDINT_BYTE_MODEL
8219 #define _STDINT_BYTE_MODEL 12
8220 #endif
8221 #endif
8222 #endif
8223
8224 #ifndef _STDINT_HAVE_INT_LEAST32_T
8225 #define _STDINT_NEED_INT_LEAST_T
8226 #endif
8227
8228 #ifndef _STDINT_HAVE_INT_FAST32_T
8229 #define _STDINT_NEED_INT_FAST_T
8230 #endif
8231
8232 #ifndef _STDINT_HEADER_INTPTR
8233 #define _STDINT_NEED_INTPTR_T
8234 #ifndef _STDINT_HAVE_INTMAX_T
8235 #define _STDINT_NEED_INTMAX_T
8236 #endif
8237 #endif
8238
8239
8240 /* .................... definition part ............................ */
8241
8242 /* some system headers have good uint64_t */
8243 #ifndef _HAVE_UINT64_T
8244 #if     defined _STDINT_HAVE_UINT64_T  || defined HAVE_UINT64_T
8245 #define _HAVE_UINT64_T
8246 #elif   defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
8247 #define _HAVE_UINT64_T
8248 typedef u_int64_t uint64_t;
8249 #endif
8250 #endif
8251
8252 #ifndef _HAVE_UINT64_T
8253 /* .. here are some common heuristics using compiler runtime specifics */
8254 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
8255 #define _HAVE_UINT64_T
8256 typedef long long int64_t;
8257 typedef unsigned long long uint64_t;
8258
8259 #elif !defined __STRICT_ANSI__
8260 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
8261 #define _HAVE_UINT64_T
8262 typedef __int64 int64_t;
8263 typedef unsigned __int64 uint64_t;
8264
8265 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
8266 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
8267 #if !defined _NO_LONGLONG
8268 #define _HAVE_UINT64_T
8269 typedef long long int64_t;
8270 typedef unsigned long long uint64_t;
8271 #endif
8272
8273 #elif defined __alpha || (defined __mips && defined _ABIN32)
8274 #if !defined _NO_LONGLONG
8275 typedef long int64_t;
8276 typedef unsigned long uint64_t;
8277 #endif
8278   /* compiler/cpu type to define int64_t */
8279 #endif
8280 #endif
8281 #endif
8282
8283 #if defined _STDINT_HAVE_U_INT_TYPES
8284 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
8285 typedef u_int8_t uint8_t;
8286 typedef u_int16_t uint16_t;
8287 typedef u_int32_t uint32_t;
8288
8289 /* glibc compatibility */
8290 #ifndef __int8_t_defined
8291 #define __int8_t_defined
8292 #endif
8293 #endif
8294
8295 #ifdef _STDINT_NEED_INT_MODEL_T
8296 /* we must guess all the basic types. Apart from byte-adressable system, */
8297 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
8298 /* (btw, those nibble-addressable systems are way off, or so we assume) */
8299
8300
8301 #if defined _STDINT_BYTE_MODEL
8302 #if _STDINT_LONG_MODEL+0 == 242
8303 /* 2:4:2 =  IP16 = a normal 16-bit system                */
8304 typedef unsigned char   uint8_t;
8305 typedef unsigned short  uint16_t;
8306 typedef unsigned long   uint32_t;
8307 #ifndef __int8_t_defined
8308 #define __int8_t_defined
8309 typedef          char    int8_t;
8310 typedef          short   int16_t;
8311 typedef          long    int32_t;
8312 #endif
8313 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
8314 /* 2:4:4 =  LP32 = a 32-bit system derived from a 16-bit */
8315 /* 4:4:4 = ILP32 = a normal 32-bit system                */
8316 typedef unsigned char   uint8_t;
8317 typedef unsigned short  uint16_t;
8318 typedef unsigned int    uint32_t;
8319 #ifndef __int8_t_defined
8320 #define __int8_t_defined
8321 typedef          char    int8_t;
8322 typedef          short   int16_t;
8323 typedef          int     int32_t;
8324 #endif
8325 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
8326 /* 4:8:4 =  IP32 = a 32-bit system prepared for 64-bit    */
8327 /* 4:8:8 =  LP64 = a normal 64-bit system                 */
8328 typedef unsigned char   uint8_t;
8329 typedef unsigned short  uint16_t;
8330 typedef unsigned int    uint32_t;
8331 #ifndef __int8_t_defined
8332 #define __int8_t_defined
8333 typedef          char    int8_t;
8334 typedef          short   int16_t;
8335 typedef          int     int32_t;
8336 #endif
8337 /* this system has a "long" of 64bit */
8338 #ifndef _HAVE_UINT64_T
8339 #define _HAVE_UINT64_T
8340 typedef unsigned long   uint64_t;
8341 typedef          long    int64_t;
8342 #endif
8343 #elif _STDINT_LONG_MODEL+0 == 448
8344 /*      LLP64   a 64-bit system derived from a 32-bit system */
8345 typedef unsigned char   uint8_t;
8346 typedef unsigned short  uint16_t;
8347 typedef unsigned int    uint32_t;
8348 #ifndef __int8_t_defined
8349 #define __int8_t_defined
8350 typedef          char    int8_t;
8351 typedef          short   int16_t;
8352 typedef          int     int32_t;
8353 #endif
8354 /* assuming the system has a "long long" */
8355 #ifndef _HAVE_UINT64_T
8356 #define _HAVE_UINT64_T
8357 typedef unsigned long long uint64_t;
8358 typedef          long long  int64_t;
8359 #endif
8360 #else
8361 #define _STDINT_NO_INT32_T
8362 #endif
8363 #else
8364 #define _STDINT_NO_INT8_T
8365 #define _STDINT_NO_INT32_T
8366 #endif
8367 #endif
8368
8369 /*
8370  * quote from SunOS-5.8 sys/inttypes.h:
8371  * Use at your own risk.  As of February 1996, the committee is squarely
8372  * behind the fixed sized types; the "least" and "fast" types are still being
8373  * discussed.  The probability that the "fast" types may be removed before
8374  * the standard is finalized is high enough that they are not currently
8375  * implemented.
8376  */
8377
8378 #if defined _STDINT_NEED_INT_LEAST_T
8379 typedef  int8_t    int_least8_t;
8380 typedef  int16_t   int_least16_t;
8381 typedef  int32_t   int_least32_t;
8382 #ifdef _HAVE_UINT64_T
8383 typedef  int64_t   int_least64_t;
8384 #endif
8385
8386 typedef uint8_t   uint_least8_t;
8387 typedef uint16_t  uint_least16_t;
8388 typedef uint32_t  uint_least32_t;
8389 #ifdef _HAVE_UINT64_T
8390 typedef uint64_t  uint_least64_t;
8391 #endif
8392   /* least types */
8393 #endif
8394
8395 #if defined _STDINT_NEED_INT_FAST_T
8396 typedef  int8_t    int_fast8_t;
8397 typedef  int       int_fast16_t;
8398 typedef  int32_t   int_fast32_t;
8399 #ifdef _HAVE_UINT64_T
8400 typedef  int64_t   int_fast64_t;
8401 #endif
8402
8403 typedef uint8_t   uint_fast8_t;
8404 typedef unsigned  uint_fast16_t;
8405 typedef uint32_t  uint_fast32_t;
8406 #ifdef _HAVE_UINT64_T
8407 typedef uint64_t  uint_fast64_t;
8408 #endif
8409   /* fast types */
8410 #endif
8411
8412 #ifdef _STDINT_NEED_INTMAX_T
8413 #ifdef _HAVE_UINT64_T
8414 typedef  int64_t       intmax_t;
8415 typedef uint64_t      uintmax_t;
8416 #else
8417 typedef          long  intmax_t;
8418 typedef unsigned long uintmax_t;
8419 #endif
8420 #endif
8421
8422 #ifdef _STDINT_NEED_INTPTR_T
8423 #ifndef __intptr_t_defined
8424 #define __intptr_t_defined
8425 /* we encourage using "long" to store pointer values, never use "int" ! */
8426 #if   _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
8427 typedef  unsinged int   uintptr_t;
8428 typedef           int    intptr_t;
8429 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
8430 typedef  unsigned long  uintptr_t;
8431 typedef           long   intptr_t;
8432 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
8433 typedef        uint64_t uintptr_t;
8434 typedef         int64_t  intptr_t;
8435 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
8436 typedef  unsigned long  uintptr_t;
8437 typedef           long   intptr_t;
8438 #endif
8439 #endif
8440 #endif
8441
8442   /* shortcircuit*/
8443 #endif
8444   /* once */
8445 #endif
8446 #endif
8447 STDINT_EOF
8448     if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
8449       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_stdint_h is unchanged" >&5
8450 $as_echo "$as_me: $ac_stdint_h is unchanged" >&6;}
8451     else
8452       ac_dir=`$as_dirname -- "$ac_stdint_h" ||
8453 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8454          X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
8455          X"$ac_stdint_h" : 'X\(//\)$' \| \
8456          X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null ||
8457 $as_echo X"$ac_stdint_h" |
8458     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8459             s//\1/
8460             q
8461           }
8462           /^X\(\/\/\)[^/].*/{
8463             s//\1/
8464             q
8465           }
8466           /^X\(\/\/\)$/{
8467             s//\1/
8468             q
8469           }
8470           /^X\(\/\).*/{
8471             s//\1/
8472             q
8473           }
8474           s/.*/./; q'`
8475       as_dir="$ac_dir"; as_fn_mkdir_p
8476       rm -f $ac_stdint_h
8477       mv $ac_stdint $ac_stdint_h
8478     fi
8479  ;;
8480
8481   esac
8482 done # for ac_tag
8483
8484
8485 as_fn_exit 0
8486 _ACEOF
8487 ac_clean_files=$ac_clean_files_save
8488
8489 test $ac_write_fail = 0 ||
8490   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8491
8492
8493 # configure is writing to config.log, and then calls config.status.
8494 # config.status does its own redirection, appending to config.log.
8495 # Unfortunately, on DOS this fails, as config.log is still kept open
8496 # by configure, so config.status won't be able to write to it; its
8497 # output is simply discarded.  So we exec the FD to /dev/null,
8498 # effectively closing config.log, so it can be properly (re)opened and
8499 # appended to by config.status.  When coming back to configure, we
8500 # need to make the FD available again.
8501 if test "$no_create" != yes; then
8502   ac_cs_success=:
8503   ac_config_status_args=
8504   test "$silent" = yes &&
8505     ac_config_status_args="$ac_config_status_args --quiet"
8506   exec 5>/dev/null
8507   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8508   exec 5>>config.log
8509   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8510   # would make configure fail if this is the last instruction.
8511   $ac_cs_success || as_fn_exit 1
8512 fi
8513 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8514   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8515 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8516 fi
8517
8518
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: summary of build options:
8520
8521   Version:           ${PACKAGE_STRING}
8522   Host type:         ${host}
8523   ABI:               ${ABI}
8524   Assembly files:    ${asm_path:-none}
8525   Install prefix:    ${prefix}
8526   Library directory: ${libdir}
8527   Compiler:          ${CC}
8528   Shared libraries:  ${enable_shared}
8529   Public key crypto: ${enable_public_key}
8530 " >&5
8531 $as_echo "$as_me: summary of build options:
8532
8533   Version:           ${PACKAGE_STRING}
8534   Host type:         ${host}
8535   ABI:               ${ABI}
8536   Assembly files:    ${asm_path:-none}
8537   Install prefix:    ${prefix}
8538   Library directory: ${libdir}
8539   Compiler:          ${CC}
8540   Shared libraries:  ${enable_shared}
8541   Public key crypto: ${enable_public_key}
8542 " >&6;}