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