dropbar: Update to version 2013.60.1.
[tomato.git] / release / src / router / dropbear / configure
blob785e7ab3045fe23dc52829263f089e66c2f4a038
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
272 exit 1
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
510 ECHO_N='-n';;
511 esac
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 # Initializations.
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
585 ac_unique_file="buffer.c"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 # include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
622 ac_subst_vars='LTLIBOBJS
623 LIBOBJS
624 BUNDLED_LIBTOM
625 CRYPTLIB
626 EGREP
627 GREP
629 INSTALL
630 STRIP
631 RANLIB
633 host_os
634 host_vendor
635 host_cpu
636 host
637 build_os
638 build_vendor
639 build_cpu
640 build
642 SET_MAKE
643 OBJEXT
644 EXEEXT
645 ac_ct_CC
646 CPPFLAGS
647 LDFLAGS
648 CFLAGS
650 target_alias
651 host_alias
652 build_alias
653 LIBS
654 ECHO_T
655 ECHO_N
656 ECHO_C
657 DEFS
658 mandir
659 localedir
660 libdir
661 psdir
662 pdfdir
663 dvidir
664 htmldir
665 infodir
666 docdir
667 oldincludedir
668 includedir
669 localstatedir
670 sharedstatedir
671 sysconfdir
672 datadir
673 datarootdir
674 libexecdir
675 sbindir
676 bindir
677 program_transform_name
678 prefix
679 exec_prefix
680 PACKAGE_URL
681 PACKAGE_BUGREPORT
682 PACKAGE_STRING
683 PACKAGE_VERSION
684 PACKAGE_TARNAME
685 PACKAGE_NAME
686 PATH_SEPARATOR
687 SHELL'
688 ac_subst_files=''
689 ac_user_opts='
690 enable_option_checking
691 enable_largefile
692 with_zlib
693 enable_zlib
694 with_pam
695 enable_pam
696 enable_openpty
697 enable_syslog
698 enable_shadow
699 enable_bundled_libtom
700 enable_lastlog
701 enable_utmp
702 enable_utmpx
703 enable_wtmp
704 enable_wtmpx
705 enable_loginfunc
706 enable_pututline
707 enable_pututxline
708 with_lastlog
710 ac_precious_vars='build_alias
711 host_alias
712 target_alias
714 CFLAGS
715 LDFLAGS
716 LIBS
717 CPPFLAGS
718 CPP'
721 # Initialize some variables set by options.
722 ac_init_help=
723 ac_init_version=false
724 ac_unrecognized_opts=
725 ac_unrecognized_sep=
726 # The variables have the same names as the options, with
727 # dashes changed to underlines.
728 cache_file=/dev/null
729 exec_prefix=NONE
730 no_create=
731 no_recursion=
732 prefix=NONE
733 program_prefix=NONE
734 program_suffix=NONE
735 program_transform_name=s,x,x,
736 silent=
737 site=
738 srcdir=
739 verbose=
740 x_includes=NONE
741 x_libraries=NONE
743 # Installation directory options.
744 # These are left unexpanded so users can "make install exec_prefix=/foo"
745 # and all the variables that are supposed to be based on exec_prefix
746 # by default will actually change.
747 # Use braces instead of parens because sh, perl, etc. also accept them.
748 # (The list follows the same order as the GNU Coding Standards.)
749 bindir='${exec_prefix}/bin'
750 sbindir='${exec_prefix}/sbin'
751 libexecdir='${exec_prefix}/libexec'
752 datarootdir='${prefix}/share'
753 datadir='${datarootdir}'
754 sysconfdir='${prefix}/etc'
755 sharedstatedir='${prefix}/com'
756 localstatedir='${prefix}/var'
757 includedir='${prefix}/include'
758 oldincludedir='/usr/include'
759 docdir='${datarootdir}/doc/${PACKAGE}'
760 infodir='${datarootdir}/info'
761 htmldir='${docdir}'
762 dvidir='${docdir}'
763 pdfdir='${docdir}'
764 psdir='${docdir}'
765 libdir='${exec_prefix}/lib'
766 localedir='${datarootdir}/locale'
767 mandir='${datarootdir}/man'
769 ac_prev=
770 ac_dashdash=
771 for ac_option
773 # If the previous option needs an argument, assign it.
774 if test -n "$ac_prev"; then
775 eval $ac_prev=\$ac_option
776 ac_prev=
777 continue
780 case $ac_option in
781 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
782 *=) ac_optarg= ;;
783 *) ac_optarg=yes ;;
784 esac
786 # Accept the important Cygnus configure options, so we can diagnose typos.
788 case $ac_dashdash$ac_option in
790 ac_dashdash=yes ;;
792 -bindir | --bindir | --bindi | --bind | --bin | --bi)
793 ac_prev=bindir ;;
794 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
795 bindir=$ac_optarg ;;
797 -build | --build | --buil | --bui | --bu)
798 ac_prev=build_alias ;;
799 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
800 build_alias=$ac_optarg ;;
802 -cache-file | --cache-file | --cache-fil | --cache-fi \
803 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
804 ac_prev=cache_file ;;
805 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
806 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
807 cache_file=$ac_optarg ;;
809 --config-cache | -C)
810 cache_file=config.cache ;;
812 -datadir | --datadir | --datadi | --datad)
813 ac_prev=datadir ;;
814 -datadir=* | --datadir=* | --datadi=* | --datad=*)
815 datadir=$ac_optarg ;;
817 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
818 | --dataroo | --dataro | --datar)
819 ac_prev=datarootdir ;;
820 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
821 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
822 datarootdir=$ac_optarg ;;
824 -disable-* | --disable-*)
825 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
826 # Reject names that are not valid shell variable names.
827 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
828 as_fn_error $? "invalid feature name: $ac_useropt"
829 ac_useropt_orig=$ac_useropt
830 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
831 case $ac_user_opts in
833 "enable_$ac_useropt"
834 "*) ;;
835 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
836 ac_unrecognized_sep=', ';;
837 esac
838 eval enable_$ac_useropt=no ;;
840 -docdir | --docdir | --docdi | --doc | --do)
841 ac_prev=docdir ;;
842 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
843 docdir=$ac_optarg ;;
845 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
846 ac_prev=dvidir ;;
847 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
848 dvidir=$ac_optarg ;;
850 -enable-* | --enable-*)
851 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
852 # Reject names that are not valid shell variable names.
853 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
854 as_fn_error $? "invalid feature name: $ac_useropt"
855 ac_useropt_orig=$ac_useropt
856 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
857 case $ac_user_opts in
859 "enable_$ac_useropt"
860 "*) ;;
861 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
862 ac_unrecognized_sep=', ';;
863 esac
864 eval enable_$ac_useropt=\$ac_optarg ;;
866 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
867 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
868 | --exec | --exe | --ex)
869 ac_prev=exec_prefix ;;
870 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
871 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
872 | --exec=* | --exe=* | --ex=*)
873 exec_prefix=$ac_optarg ;;
875 -gas | --gas | --ga | --g)
876 # Obsolete; use --with-gas.
877 with_gas=yes ;;
879 -help | --help | --hel | --he | -h)
880 ac_init_help=long ;;
881 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
882 ac_init_help=recursive ;;
883 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
884 ac_init_help=short ;;
886 -host | --host | --hos | --ho)
887 ac_prev=host_alias ;;
888 -host=* | --host=* | --hos=* | --ho=*)
889 host_alias=$ac_optarg ;;
891 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
892 ac_prev=htmldir ;;
893 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
894 | --ht=*)
895 htmldir=$ac_optarg ;;
897 -includedir | --includedir | --includedi | --included | --include \
898 | --includ | --inclu | --incl | --inc)
899 ac_prev=includedir ;;
900 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
901 | --includ=* | --inclu=* | --incl=* | --inc=*)
902 includedir=$ac_optarg ;;
904 -infodir | --infodir | --infodi | --infod | --info | --inf)
905 ac_prev=infodir ;;
906 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
907 infodir=$ac_optarg ;;
909 -libdir | --libdir | --libdi | --libd)
910 ac_prev=libdir ;;
911 -libdir=* | --libdir=* | --libdi=* | --libd=*)
912 libdir=$ac_optarg ;;
914 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
915 | --libexe | --libex | --libe)
916 ac_prev=libexecdir ;;
917 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
918 | --libexe=* | --libex=* | --libe=*)
919 libexecdir=$ac_optarg ;;
921 -localedir | --localedir | --localedi | --localed | --locale)
922 ac_prev=localedir ;;
923 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
924 localedir=$ac_optarg ;;
926 -localstatedir | --localstatedir | --localstatedi | --localstated \
927 | --localstate | --localstat | --localsta | --localst | --locals)
928 ac_prev=localstatedir ;;
929 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
930 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
931 localstatedir=$ac_optarg ;;
933 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
934 ac_prev=mandir ;;
935 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
936 mandir=$ac_optarg ;;
938 -nfp | --nfp | --nf)
939 # Obsolete; use --without-fp.
940 with_fp=no ;;
942 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
943 | --no-cr | --no-c | -n)
944 no_create=yes ;;
946 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
947 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
948 no_recursion=yes ;;
950 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
951 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
952 | --oldin | --oldi | --old | --ol | --o)
953 ac_prev=oldincludedir ;;
954 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
955 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
956 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
957 oldincludedir=$ac_optarg ;;
959 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
960 ac_prev=prefix ;;
961 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
962 prefix=$ac_optarg ;;
964 -program-prefix | --program-prefix | --program-prefi | --program-pref \
965 | --program-pre | --program-pr | --program-p)
966 ac_prev=program_prefix ;;
967 -program-prefix=* | --program-prefix=* | --program-prefi=* \
968 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
969 program_prefix=$ac_optarg ;;
971 -program-suffix | --program-suffix | --program-suffi | --program-suff \
972 | --program-suf | --program-su | --program-s)
973 ac_prev=program_suffix ;;
974 -program-suffix=* | --program-suffix=* | --program-suffi=* \
975 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
976 program_suffix=$ac_optarg ;;
978 -program-transform-name | --program-transform-name \
979 | --program-transform-nam | --program-transform-na \
980 | --program-transform-n | --program-transform- \
981 | --program-transform | --program-transfor \
982 | --program-transfo | --program-transf \
983 | --program-trans | --program-tran \
984 | --progr-tra | --program-tr | --program-t)
985 ac_prev=program_transform_name ;;
986 -program-transform-name=* | --program-transform-name=* \
987 | --program-transform-nam=* | --program-transform-na=* \
988 | --program-transform-n=* | --program-transform-=* \
989 | --program-transform=* | --program-transfor=* \
990 | --program-transfo=* | --program-transf=* \
991 | --program-trans=* | --program-tran=* \
992 | --progr-tra=* | --program-tr=* | --program-t=*)
993 program_transform_name=$ac_optarg ;;
995 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
996 ac_prev=pdfdir ;;
997 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
998 pdfdir=$ac_optarg ;;
1000 -psdir | --psdir | --psdi | --psd | --ps)
1001 ac_prev=psdir ;;
1002 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1003 psdir=$ac_optarg ;;
1005 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1006 | -silent | --silent | --silen | --sile | --sil)
1007 silent=yes ;;
1009 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1010 ac_prev=sbindir ;;
1011 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1012 | --sbi=* | --sb=*)
1013 sbindir=$ac_optarg ;;
1015 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1016 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1017 | --sharedst | --shareds | --shared | --share | --shar \
1018 | --sha | --sh)
1019 ac_prev=sharedstatedir ;;
1020 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1021 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1022 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1023 | --sha=* | --sh=*)
1024 sharedstatedir=$ac_optarg ;;
1026 -site | --site | --sit)
1027 ac_prev=site ;;
1028 -site=* | --site=* | --sit=*)
1029 site=$ac_optarg ;;
1031 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1032 ac_prev=srcdir ;;
1033 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1034 srcdir=$ac_optarg ;;
1036 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1037 | --syscon | --sysco | --sysc | --sys | --sy)
1038 ac_prev=sysconfdir ;;
1039 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1040 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1041 sysconfdir=$ac_optarg ;;
1043 -target | --target | --targe | --targ | --tar | --ta | --t)
1044 ac_prev=target_alias ;;
1045 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1046 target_alias=$ac_optarg ;;
1048 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1049 verbose=yes ;;
1051 -version | --version | --versio | --versi | --vers | -V)
1052 ac_init_version=: ;;
1054 -with-* | --with-*)
1055 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1056 # Reject names that are not valid shell variable names.
1057 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1058 as_fn_error $? "invalid package name: $ac_useropt"
1059 ac_useropt_orig=$ac_useropt
1060 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1061 case $ac_user_opts in
1063 "with_$ac_useropt"
1064 "*) ;;
1065 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1066 ac_unrecognized_sep=', ';;
1067 esac
1068 eval with_$ac_useropt=\$ac_optarg ;;
1070 -without-* | --without-*)
1071 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1074 as_fn_error $? "invalid package name: $ac_useropt"
1075 ac_useropt_orig=$ac_useropt
1076 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1077 case $ac_user_opts in
1079 "with_$ac_useropt"
1080 "*) ;;
1081 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1082 ac_unrecognized_sep=', ';;
1083 esac
1084 eval with_$ac_useropt=no ;;
1086 --x)
1087 # Obsolete; use --with-x.
1088 with_x=yes ;;
1090 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1091 | --x-incl | --x-inc | --x-in | --x-i)
1092 ac_prev=x_includes ;;
1093 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1094 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1095 x_includes=$ac_optarg ;;
1097 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1098 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1099 ac_prev=x_libraries ;;
1100 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1101 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1102 x_libraries=$ac_optarg ;;
1104 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1105 Try \`$0 --help' for more information"
1108 *=*)
1109 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1110 # Reject names that are not valid shell variable names.
1111 case $ac_envvar in #(
1112 '' | [0-9]* | *[!_$as_cr_alnum]* )
1113 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1114 esac
1115 eval $ac_envvar=\$ac_optarg
1116 export $ac_envvar ;;
1119 # FIXME: should be removed in autoconf 3.0.
1120 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1121 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1122 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1123 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1126 esac
1127 done
1129 if test -n "$ac_prev"; then
1130 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1131 as_fn_error $? "missing argument to $ac_option"
1134 if test -n "$ac_unrecognized_opts"; then
1135 case $enable_option_checking in
1136 no) ;;
1137 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1138 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1139 esac
1142 # Check all directory arguments for consistency.
1143 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1144 datadir sysconfdir sharedstatedir localstatedir includedir \
1145 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1146 libdir localedir mandir
1148 eval ac_val=\$$ac_var
1149 # Remove trailing slashes.
1150 case $ac_val in
1151 */ )
1152 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1153 eval $ac_var=\$ac_val;;
1154 esac
1155 # Be sure to have absolute directory names.
1156 case $ac_val in
1157 [\\/$]* | ?:[\\/]* ) continue;;
1158 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1159 esac
1160 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1161 done
1163 # There might be people who depend on the old broken behavior: `$host'
1164 # used to hold the argument of --host etc.
1165 # FIXME: To remove some day.
1166 build=$build_alias
1167 host=$host_alias
1168 target=$target_alias
1170 # FIXME: To remove some day.
1171 if test "x$host_alias" != x; then
1172 if test "x$build_alias" = x; then
1173 cross_compiling=maybe
1174 elif test "x$build_alias" != "x$host_alias"; then
1175 cross_compiling=yes
1179 ac_tool_prefix=
1180 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1182 test "$silent" = yes && exec 6>/dev/null
1185 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1186 ac_ls_di=`ls -di .` &&
1187 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1188 as_fn_error $? "working directory cannot be determined"
1189 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1190 as_fn_error $? "pwd does not report name of working directory"
1193 # Find the source files, if location was not specified.
1194 if test -z "$srcdir"; then
1195 ac_srcdir_defaulted=yes
1196 # Try the directory containing this script, then the parent directory.
1197 ac_confdir=`$as_dirname -- "$as_myself" ||
1198 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1199 X"$as_myself" : 'X\(//\)[^/]' \| \
1200 X"$as_myself" : 'X\(//\)$' \| \
1201 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1202 $as_echo X"$as_myself" |
1203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1204 s//\1/
1207 /^X\(\/\/\)[^/].*/{
1208 s//\1/
1211 /^X\(\/\/\)$/{
1212 s//\1/
1215 /^X\(\/\).*/{
1216 s//\1/
1219 s/.*/./; q'`
1220 srcdir=$ac_confdir
1221 if test ! -r "$srcdir/$ac_unique_file"; then
1222 srcdir=..
1224 else
1225 ac_srcdir_defaulted=no
1227 if test ! -r "$srcdir/$ac_unique_file"; then
1228 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1229 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1231 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1232 ac_abs_confdir=`(
1233 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1234 pwd)`
1235 # When building in place, set srcdir=.
1236 if test "$ac_abs_confdir" = "$ac_pwd"; then
1237 srcdir=.
1239 # Remove unnecessary trailing slashes from srcdir.
1240 # Double slashes in file names in object file debugging info
1241 # mess up M-x gdb in Emacs.
1242 case $srcdir in
1243 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1244 esac
1245 for ac_var in $ac_precious_vars; do
1246 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1247 eval ac_env_${ac_var}_value=\$${ac_var}
1248 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1249 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1250 done
1253 # Report the --help message.
1255 if test "$ac_init_help" = "long"; then
1256 # Omit some internal or obsolete options to make the list less imposing.
1257 # This message is too long to be a string in the A/UX 3.1 sh.
1258 cat <<_ACEOF
1259 \`configure' configures this package to adapt to many kinds of systems.
1261 Usage: $0 [OPTION]... [VAR=VALUE]...
1263 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1264 VAR=VALUE. See below for descriptions of some of the useful variables.
1266 Defaults for the options are specified in brackets.
1268 Configuration:
1269 -h, --help display this help and exit
1270 --help=short display options specific to this package
1271 --help=recursive display the short help of all the included packages
1272 -V, --version display version information and exit
1273 -q, --quiet, --silent do not print \`checking ...' messages
1274 --cache-file=FILE cache test results in FILE [disabled]
1275 -C, --config-cache alias for \`--cache-file=config.cache'
1276 -n, --no-create do not create output files
1277 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1279 Installation directories:
1280 --prefix=PREFIX install architecture-independent files in PREFIX
1281 [$ac_default_prefix]
1282 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1283 [PREFIX]
1285 By default, \`make install' will install all the files in
1286 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1287 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1288 for instance \`--prefix=\$HOME'.
1290 For better control, use the options below.
1292 Fine tuning of the installation directories:
1293 --bindir=DIR user executables [EPREFIX/bin]
1294 --sbindir=DIR system admin executables [EPREFIX/sbin]
1295 --libexecdir=DIR program executables [EPREFIX/libexec]
1296 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1297 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1298 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1299 --libdir=DIR object code libraries [EPREFIX/lib]
1300 --includedir=DIR C header files [PREFIX/include]
1301 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1302 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1303 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1304 --infodir=DIR info documentation [DATAROOTDIR/info]
1305 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1306 --mandir=DIR man documentation [DATAROOTDIR/man]
1307 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1308 --htmldir=DIR html documentation [DOCDIR]
1309 --dvidir=DIR dvi documentation [DOCDIR]
1310 --pdfdir=DIR pdf documentation [DOCDIR]
1311 --psdir=DIR ps documentation [DOCDIR]
1312 _ACEOF
1314 cat <<\_ACEOF
1316 System types:
1317 --build=BUILD configure for building on BUILD [guessed]
1318 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1319 _ACEOF
1322 if test -n "$ac_init_help"; then
1324 cat <<\_ACEOF
1326 Optional Features:
1327 --disable-option-checking ignore unrecognized --enable/--with options
1328 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1329 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1330 --disable-largefile omit support for large files
1331 --disable-zlib Don't include zlib support
1332 --enable-pam Try to include PAM support
1333 --disable-openpty Don't use openpty, use alternative method
1334 --disable-syslog Don't include syslog support
1335 --disable-shadow Don't use shadow passwords (if available)
1336 --enable-bundled-libtom Force using bundled libtomcrypt/libtommath even if a system version exists.
1337 --disable-lastlog Disable use of lastlog even if detected no
1338 --disable-utmp Disable use of utmp even if detected no
1339 --disable-utmpx Disable use of utmpx even if detected no
1340 --disable-wtmp Disable use of wtmp even if detected no
1341 --disable-wtmpx Disable use of wtmpx even if detected no
1342 --disable-loginfunc Disable use of login() etc. no
1343 --disable-pututline Disable use of pututline() etc. (uwtmp) no
1344 --disable-pututxline Disable use of pututxline() etc. (uwtmpx) no
1346 Optional Packages:
1347 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1348 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1349 --with-zlib=PATH Use zlib in PATH
1350 --with-pam=PATH Use pam in PATH
1351 --with-lastlog=FILE|DIR specify lastlog location common locations
1353 Some influential environment variables:
1354 CC C compiler command
1355 CFLAGS C compiler flags
1356 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1357 nonstandard directory <lib dir>
1358 LIBS libraries to pass to the linker, e.g. -l<library>
1359 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1360 you have headers in a nonstandard directory <include dir>
1361 CPP C preprocessor
1363 Use these variables to override the choices made by `configure' or to help
1364 it to find libraries and programs with nonstandard names/locations.
1366 Report bugs to the package provider.
1367 _ACEOF
1368 ac_status=$?
1371 if test "$ac_init_help" = "recursive"; then
1372 # If there are subdirs, report their specific --help.
1373 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1374 test -d "$ac_dir" ||
1375 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1376 continue
1377 ac_builddir=.
1379 case "$ac_dir" in
1380 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1382 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1383 # A ".." for each directory in $ac_dir_suffix.
1384 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1385 case $ac_top_builddir_sub in
1386 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1387 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1388 esac ;;
1389 esac
1390 ac_abs_top_builddir=$ac_pwd
1391 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1392 # for backward compatibility:
1393 ac_top_builddir=$ac_top_build_prefix
1395 case $srcdir in
1396 .) # We are building in place.
1397 ac_srcdir=.
1398 ac_top_srcdir=$ac_top_builddir_sub
1399 ac_abs_top_srcdir=$ac_pwd ;;
1400 [\\/]* | ?:[\\/]* ) # Absolute name.
1401 ac_srcdir=$srcdir$ac_dir_suffix;
1402 ac_top_srcdir=$srcdir
1403 ac_abs_top_srcdir=$srcdir ;;
1404 *) # Relative name.
1405 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1406 ac_top_srcdir=$ac_top_build_prefix$srcdir
1407 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1408 esac
1409 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1411 cd "$ac_dir" || { ac_status=$?; continue; }
1412 # Check for guested configure.
1413 if test -f "$ac_srcdir/configure.gnu"; then
1414 echo &&
1415 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1416 elif test -f "$ac_srcdir/configure"; then
1417 echo &&
1418 $SHELL "$ac_srcdir/configure" --help=recursive
1419 else
1420 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1421 fi || ac_status=$?
1422 cd "$ac_pwd" || { ac_status=$?; break; }
1423 done
1426 test -n "$ac_init_help" && exit $ac_status
1427 if $ac_init_version; then
1428 cat <<\_ACEOF
1429 configure
1430 generated by GNU Autoconf 2.69
1432 Copyright (C) 2012 Free Software Foundation, Inc.
1433 This configure script is free software; the Free Software Foundation
1434 gives unlimited permission to copy, distribute and modify it.
1435 _ACEOF
1436 exit
1439 ## ------------------------ ##
1440 ## Autoconf initialization. ##
1441 ## ------------------------ ##
1443 # ac_fn_c_try_compile LINENO
1444 # --------------------------
1445 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1446 ac_fn_c_try_compile ()
1448 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1449 rm -f conftest.$ac_objext
1450 if { { ac_try="$ac_compile"
1451 case "(($ac_try" in
1452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1453 *) ac_try_echo=$ac_try;;
1454 esac
1455 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1456 $as_echo "$ac_try_echo"; } >&5
1457 (eval "$ac_compile") 2>conftest.err
1458 ac_status=$?
1459 if test -s conftest.err; then
1460 grep -v '^ *+' conftest.err >conftest.er1
1461 cat conftest.er1 >&5
1462 mv -f conftest.er1 conftest.err
1464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1465 test $ac_status = 0; } && {
1466 test -z "$ac_c_werror_flag" ||
1467 test ! -s conftest.err
1468 } && test -s conftest.$ac_objext; then :
1469 ac_retval=0
1470 else
1471 $as_echo "$as_me: failed program was:" >&5
1472 sed 's/^/| /' conftest.$ac_ext >&5
1474 ac_retval=1
1476 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1477 as_fn_set_status $ac_retval
1479 } # ac_fn_c_try_compile
1481 # ac_fn_c_try_link LINENO
1482 # -----------------------
1483 # Try to link conftest.$ac_ext, and return whether this succeeded.
1484 ac_fn_c_try_link ()
1486 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1487 rm -f conftest.$ac_objext conftest$ac_exeext
1488 if { { ac_try="$ac_link"
1489 case "(($ac_try" in
1490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1491 *) ac_try_echo=$ac_try;;
1492 esac
1493 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1494 $as_echo "$ac_try_echo"; } >&5
1495 (eval "$ac_link") 2>conftest.err
1496 ac_status=$?
1497 if test -s conftest.err; then
1498 grep -v '^ *+' conftest.err >conftest.er1
1499 cat conftest.er1 >&5
1500 mv -f conftest.er1 conftest.err
1502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1503 test $ac_status = 0; } && {
1504 test -z "$ac_c_werror_flag" ||
1505 test ! -s conftest.err
1506 } && test -s conftest$ac_exeext && {
1507 test "$cross_compiling" = yes ||
1508 test -x conftest$ac_exeext
1509 }; then :
1510 ac_retval=0
1511 else
1512 $as_echo "$as_me: failed program was:" >&5
1513 sed 's/^/| /' conftest.$ac_ext >&5
1515 ac_retval=1
1517 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1518 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1519 # interfere with the next link command; also delete a directory that is
1520 # left behind by Apple's compiler. We do this before executing the actions.
1521 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1522 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1523 as_fn_set_status $ac_retval
1525 } # ac_fn_c_try_link
1527 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1528 # ---------------------------------------------
1529 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1530 # accordingly.
1531 ac_fn_c_check_decl ()
1533 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1534 as_decl_name=`echo $2|sed 's/ *(.*//'`
1535 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1537 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1538 if eval \${$3+:} false; then :
1539 $as_echo_n "(cached) " >&6
1540 else
1541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1542 /* end confdefs.h. */
1545 main ()
1547 #ifndef $as_decl_name
1548 #ifdef __cplusplus
1549 (void) $as_decl_use;
1550 #else
1551 (void) $as_decl_name;
1552 #endif
1553 #endif
1556 return 0;
1558 _ACEOF
1559 if ac_fn_c_try_compile "$LINENO"; then :
1560 eval "$3=yes"
1561 else
1562 eval "$3=no"
1564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1566 eval ac_res=\$$3
1567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1568 $as_echo "$ac_res" >&6; }
1569 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1571 } # ac_fn_c_check_decl
1573 # ac_fn_c_try_cpp LINENO
1574 # ----------------------
1575 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1576 ac_fn_c_try_cpp ()
1578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579 if { { ac_try="$ac_cpp conftest.$ac_ext"
1580 case "(($ac_try" in
1581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1582 *) ac_try_echo=$ac_try;;
1583 esac
1584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1585 $as_echo "$ac_try_echo"; } >&5
1586 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1587 ac_status=$?
1588 if test -s conftest.err; then
1589 grep -v '^ *+' conftest.err >conftest.er1
1590 cat conftest.er1 >&5
1591 mv -f conftest.er1 conftest.err
1593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1594 test $ac_status = 0; } > conftest.i && {
1595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1596 test ! -s conftest.err
1597 }; then :
1598 ac_retval=0
1599 else
1600 $as_echo "$as_me: failed program was:" >&5
1601 sed 's/^/| /' conftest.$ac_ext >&5
1603 ac_retval=1
1605 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1606 as_fn_set_status $ac_retval
1608 } # ac_fn_c_try_cpp
1610 # ac_fn_c_try_run LINENO
1611 # ----------------------
1612 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1613 # that executables *can* be run.
1614 ac_fn_c_try_run ()
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 if { { ac_try="$ac_link"
1618 case "(($ac_try" in
1619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1620 *) ac_try_echo=$ac_try;;
1621 esac
1622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623 $as_echo "$ac_try_echo"; } >&5
1624 (eval "$ac_link") 2>&5
1625 ac_status=$?
1626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1627 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1628 { { case "(($ac_try" in
1629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630 *) ac_try_echo=$ac_try;;
1631 esac
1632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633 $as_echo "$ac_try_echo"; } >&5
1634 (eval "$ac_try") 2>&5
1635 ac_status=$?
1636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637 test $ac_status = 0; }; }; then :
1638 ac_retval=0
1639 else
1640 $as_echo "$as_me: program exited with status $ac_status" >&5
1641 $as_echo "$as_me: failed program was:" >&5
1642 sed 's/^/| /' conftest.$ac_ext >&5
1644 ac_retval=$ac_status
1646 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648 as_fn_set_status $ac_retval
1650 } # ac_fn_c_try_run
1652 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1653 # -------------------------------------------------------
1654 # Tests whether HEADER exists and can be compiled using the include files in
1655 # INCLUDES, setting the cache variable VAR accordingly.
1656 ac_fn_c_check_header_compile ()
1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1660 $as_echo_n "checking for $2... " >&6; }
1661 if eval \${$3+:} false; then :
1662 $as_echo_n "(cached) " >&6
1663 else
1664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1665 /* end confdefs.h. */
1667 #include <$2>
1668 _ACEOF
1669 if ac_fn_c_try_compile "$LINENO"; then :
1670 eval "$3=yes"
1671 else
1672 eval "$3=no"
1674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1676 eval ac_res=\$$3
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1678 $as_echo "$ac_res" >&6; }
1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1681 } # ac_fn_c_check_header_compile
1683 # ac_fn_c_check_func LINENO FUNC VAR
1684 # ----------------------------------
1685 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1686 ac_fn_c_check_func ()
1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1690 $as_echo_n "checking for $2... " >&6; }
1691 if eval \${$3+:} false; then :
1692 $as_echo_n "(cached) " >&6
1693 else
1694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1695 /* end confdefs.h. */
1696 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1698 #define $2 innocuous_$2
1700 /* System header to define __stub macros and hopefully few prototypes,
1701 which can conflict with char $2 (); below.
1702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1703 <limits.h> exists even on freestanding compilers. */
1705 #ifdef __STDC__
1706 # include <limits.h>
1707 #else
1708 # include <assert.h>
1709 #endif
1711 #undef $2
1713 /* Override any GCC internal prototype to avoid an error.
1714 Use char because int might match the return type of a GCC
1715 builtin and then its argument prototype would still apply. */
1716 #ifdef __cplusplus
1717 extern "C"
1718 #endif
1719 char $2 ();
1720 /* The GNU C library defines this for functions which it implements
1721 to always fail with ENOSYS. Some functions are actually named
1722 something starting with __ and the normal name is an alias. */
1723 #if defined __stub_$2 || defined __stub___$2
1724 choke me
1725 #endif
1728 main ()
1730 return $2 ();
1732 return 0;
1734 _ACEOF
1735 if ac_fn_c_try_link "$LINENO"; then :
1736 eval "$3=yes"
1737 else
1738 eval "$3=no"
1740 rm -f core conftest.err conftest.$ac_objext \
1741 conftest$ac_exeext conftest.$ac_ext
1743 eval ac_res=\$$3
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1745 $as_echo "$ac_res" >&6; }
1746 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1748 } # ac_fn_c_check_func
1750 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1751 # -------------------------------------------------------
1752 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1753 # the include files in INCLUDES and setting the cache variable VAR
1754 # accordingly.
1755 ac_fn_c_check_header_mongrel ()
1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758 if eval \${$3+:} false; then :
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1760 $as_echo_n "checking for $2... " >&6; }
1761 if eval \${$3+:} false; then :
1762 $as_echo_n "(cached) " >&6
1764 eval ac_res=\$$3
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1766 $as_echo "$ac_res" >&6; }
1767 else
1768 # Is the header compilable?
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1770 $as_echo_n "checking $2 usability... " >&6; }
1771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1772 /* end confdefs.h. */
1774 #include <$2>
1775 _ACEOF
1776 if ac_fn_c_try_compile "$LINENO"; then :
1777 ac_header_compiler=yes
1778 else
1779 ac_header_compiler=no
1781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1783 $as_echo "$ac_header_compiler" >&6; }
1785 # Is the header present?
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1787 $as_echo_n "checking $2 presence... " >&6; }
1788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1789 /* end confdefs.h. */
1790 #include <$2>
1791 _ACEOF
1792 if ac_fn_c_try_cpp "$LINENO"; then :
1793 ac_header_preproc=yes
1794 else
1795 ac_header_preproc=no
1797 rm -f conftest.err conftest.i conftest.$ac_ext
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1799 $as_echo "$ac_header_preproc" >&6; }
1801 # So? What about this header?
1802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1803 yes:no: )
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1805 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1807 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1809 no:yes:* )
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1811 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1813 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1815 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1817 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1819 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1821 esac
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1823 $as_echo_n "checking for $2... " >&6; }
1824 if eval \${$3+:} false; then :
1825 $as_echo_n "(cached) " >&6
1826 else
1827 eval "$3=\$ac_header_compiler"
1829 eval ac_res=\$$3
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1831 $as_echo "$ac_res" >&6; }
1833 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835 } # ac_fn_c_check_header_mongrel
1837 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1838 # -------------------------------------------
1839 # Tests whether TYPE exists after having included INCLUDES, setting cache
1840 # variable VAR accordingly.
1841 ac_fn_c_check_type ()
1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1845 $as_echo_n "checking for $2... " >&6; }
1846 if eval \${$3+:} false; then :
1847 $as_echo_n "(cached) " >&6
1848 else
1849 eval "$3=no"
1850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1851 /* end confdefs.h. */
1854 main ()
1856 if (sizeof ($2))
1857 return 0;
1859 return 0;
1861 _ACEOF
1862 if ac_fn_c_try_compile "$LINENO"; then :
1863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864 /* end confdefs.h. */
1867 main ()
1869 if (sizeof (($2)))
1870 return 0;
1872 return 0;
1874 _ACEOF
1875 if ac_fn_c_try_compile "$LINENO"; then :
1877 else
1878 eval "$3=yes"
1880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1884 eval ac_res=\$$3
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1886 $as_echo "$ac_res" >&6; }
1887 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889 } # ac_fn_c_check_type
1891 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1892 # ----------------------------------------------------
1893 # Tries to find if the field MEMBER exists in type AGGR, after including
1894 # INCLUDES, setting cache variable VAR accordingly.
1895 ac_fn_c_check_member ()
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1899 $as_echo_n "checking for $2.$3... " >&6; }
1900 if eval \${$4+:} false; then :
1901 $as_echo_n "(cached) " >&6
1902 else
1903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904 /* end confdefs.h. */
1907 main ()
1909 static $2 ac_aggr;
1910 if (ac_aggr.$3)
1911 return 0;
1913 return 0;
1915 _ACEOF
1916 if ac_fn_c_try_compile "$LINENO"; then :
1917 eval "$4=yes"
1918 else
1919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1920 /* end confdefs.h. */
1923 main ()
1925 static $2 ac_aggr;
1926 if (sizeof ac_aggr.$3)
1927 return 0;
1929 return 0;
1931 _ACEOF
1932 if ac_fn_c_try_compile "$LINENO"; then :
1933 eval "$4=yes"
1934 else
1935 eval "$4=no"
1937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1941 eval ac_res=\$$4
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1943 $as_echo "$ac_res" >&6; }
1944 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1946 } # ac_fn_c_check_member
1947 cat >config.log <<_ACEOF
1948 This file contains any messages produced by compilers while
1949 running configure, to aid debugging if configure makes a mistake.
1951 It was created by $as_me, which was
1952 generated by GNU Autoconf 2.69. Invocation command line was
1954 $ $0 $@
1956 _ACEOF
1957 exec 5>>config.log
1959 cat <<_ASUNAME
1960 ## --------- ##
1961 ## Platform. ##
1962 ## --------- ##
1964 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1965 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1966 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1967 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1968 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1970 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1971 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1973 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1974 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1975 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1976 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1977 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1978 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1979 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1981 _ASUNAME
1983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1984 for as_dir in $PATH
1986 IFS=$as_save_IFS
1987 test -z "$as_dir" && as_dir=.
1988 $as_echo "PATH: $as_dir"
1989 done
1990 IFS=$as_save_IFS
1992 } >&5
1994 cat >&5 <<_ACEOF
1997 ## ----------- ##
1998 ## Core tests. ##
1999 ## ----------- ##
2001 _ACEOF
2004 # Keep a trace of the command line.
2005 # Strip out --no-create and --no-recursion so they do not pile up.
2006 # Strip out --silent because we don't want to record it for future runs.
2007 # Also quote any args containing shell meta-characters.
2008 # Make two passes to allow for proper duplicate-argument suppression.
2009 ac_configure_args=
2010 ac_configure_args0=
2011 ac_configure_args1=
2012 ac_must_keep_next=false
2013 for ac_pass in 1 2
2015 for ac_arg
2017 case $ac_arg in
2018 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2019 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2020 | -silent | --silent | --silen | --sile | --sil)
2021 continue ;;
2022 *\'*)
2023 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2024 esac
2025 case $ac_pass in
2026 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2028 as_fn_append ac_configure_args1 " '$ac_arg'"
2029 if test $ac_must_keep_next = true; then
2030 ac_must_keep_next=false # Got value, back to normal.
2031 else
2032 case $ac_arg in
2033 *=* | --config-cache | -C | -disable-* | --disable-* \
2034 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2035 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2036 | -with-* | --with-* | -without-* | --without-* | --x)
2037 case "$ac_configure_args0 " in
2038 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2039 esac
2041 -* ) ac_must_keep_next=true ;;
2042 esac
2044 as_fn_append ac_configure_args " '$ac_arg'"
2046 esac
2047 done
2048 done
2049 { ac_configure_args0=; unset ac_configure_args0;}
2050 { ac_configure_args1=; unset ac_configure_args1;}
2052 # When interrupted or exit'd, cleanup temporary files, and complete
2053 # config.log. We remove comments because anyway the quotes in there
2054 # would cause problems or look ugly.
2055 # WARNING: Use '\'' to represent an apostrophe within the trap.
2056 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2057 trap 'exit_status=$?
2058 # Save into config.log some information that might help in debugging.
2060 echo
2062 $as_echo "## ---------------- ##
2063 ## Cache variables. ##
2064 ## ---------------- ##"
2065 echo
2066 # The following way of writing the cache mishandles newlines in values,
2068 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2069 eval ac_val=\$$ac_var
2070 case $ac_val in #(
2071 *${as_nl}*)
2072 case $ac_var in #(
2073 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2074 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2075 esac
2076 case $ac_var in #(
2077 _ | IFS | as_nl) ;; #(
2078 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2079 *) { eval $ac_var=; unset $ac_var;} ;;
2080 esac ;;
2081 esac
2082 done
2083 (set) 2>&1 |
2084 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2085 *${as_nl}ac_space=\ *)
2086 sed -n \
2087 "s/'\''/'\''\\\\'\'''\''/g;
2088 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2089 ;; #(
2091 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2093 esac |
2094 sort
2096 echo
2098 $as_echo "## ----------------- ##
2099 ## Output variables. ##
2100 ## ----------------- ##"
2101 echo
2102 for ac_var in $ac_subst_vars
2104 eval ac_val=\$$ac_var
2105 case $ac_val in
2106 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2107 esac
2108 $as_echo "$ac_var='\''$ac_val'\''"
2109 done | sort
2110 echo
2112 if test -n "$ac_subst_files"; then
2113 $as_echo "## ------------------- ##
2114 ## File substitutions. ##
2115 ## ------------------- ##"
2116 echo
2117 for ac_var in $ac_subst_files
2119 eval ac_val=\$$ac_var
2120 case $ac_val in
2121 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2122 esac
2123 $as_echo "$ac_var='\''$ac_val'\''"
2124 done | sort
2125 echo
2128 if test -s confdefs.h; then
2129 $as_echo "## ----------- ##
2130 ## confdefs.h. ##
2131 ## ----------- ##"
2132 echo
2133 cat confdefs.h
2134 echo
2136 test "$ac_signal" != 0 &&
2137 $as_echo "$as_me: caught signal $ac_signal"
2138 $as_echo "$as_me: exit $exit_status"
2139 } >&5
2140 rm -f core *.core core.conftest.* &&
2141 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2142 exit $exit_status
2144 for ac_signal in 1 2 13 15; do
2145 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2146 done
2147 ac_signal=0
2149 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2150 rm -f -r conftest* confdefs.h
2152 $as_echo "/* confdefs.h */" > confdefs.h
2154 # Predefined preprocessor variables.
2156 cat >>confdefs.h <<_ACEOF
2157 #define PACKAGE_NAME "$PACKAGE_NAME"
2158 _ACEOF
2160 cat >>confdefs.h <<_ACEOF
2161 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2162 _ACEOF
2164 cat >>confdefs.h <<_ACEOF
2165 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2166 _ACEOF
2168 cat >>confdefs.h <<_ACEOF
2169 #define PACKAGE_STRING "$PACKAGE_STRING"
2170 _ACEOF
2172 cat >>confdefs.h <<_ACEOF
2173 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2174 _ACEOF
2176 cat >>confdefs.h <<_ACEOF
2177 #define PACKAGE_URL "$PACKAGE_URL"
2178 _ACEOF
2181 # Let the site file select an alternate cache file if it wants to.
2182 # Prefer an explicitly selected file to automatically selected ones.
2183 ac_site_file1=NONE
2184 ac_site_file2=NONE
2185 if test -n "$CONFIG_SITE"; then
2186 # We do not want a PATH search for config.site.
2187 case $CONFIG_SITE in #((
2188 -*) ac_site_file1=./$CONFIG_SITE;;
2189 */*) ac_site_file1=$CONFIG_SITE;;
2190 *) ac_site_file1=./$CONFIG_SITE;;
2191 esac
2192 elif test "x$prefix" != xNONE; then
2193 ac_site_file1=$prefix/share/config.site
2194 ac_site_file2=$prefix/etc/config.site
2195 else
2196 ac_site_file1=$ac_default_prefix/share/config.site
2197 ac_site_file2=$ac_default_prefix/etc/config.site
2199 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2201 test "x$ac_site_file" = xNONE && continue
2202 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2204 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2205 sed 's/^/| /' "$ac_site_file" >&5
2206 . "$ac_site_file" \
2207 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2208 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2209 as_fn_error $? "failed to load site script $ac_site_file
2210 See \`config.log' for more details" "$LINENO" 5; }
2212 done
2214 if test -r "$cache_file"; then
2215 # Some versions of bash will fail to source /dev/null (special files
2216 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2217 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2219 $as_echo "$as_me: loading cache $cache_file" >&6;}
2220 case $cache_file in
2221 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2222 *) . "./$cache_file";;
2223 esac
2225 else
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2227 $as_echo "$as_me: creating cache $cache_file" >&6;}
2228 >$cache_file
2231 # Check that the precious variables saved in the cache have kept the same
2232 # value.
2233 ac_cache_corrupted=false
2234 for ac_var in $ac_precious_vars; do
2235 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2236 eval ac_new_set=\$ac_env_${ac_var}_set
2237 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2238 eval ac_new_val=\$ac_env_${ac_var}_value
2239 case $ac_old_set,$ac_new_set in
2240 set,)
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2242 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2243 ac_cache_corrupted=: ;;
2244 ,set)
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2246 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2247 ac_cache_corrupted=: ;;
2248 ,);;
2250 if test "x$ac_old_val" != "x$ac_new_val"; then
2251 # differences in whitespace do not lead to failure.
2252 ac_old_val_w=`echo x $ac_old_val`
2253 ac_new_val_w=`echo x $ac_new_val`
2254 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2256 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2257 ac_cache_corrupted=:
2258 else
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2260 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2261 eval $ac_var=\$ac_old_val
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2264 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2266 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2267 fi;;
2268 esac
2269 # Pass precious variables to config.status.
2270 if test "$ac_new_set" = set; then
2271 case $ac_new_val in
2272 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2273 *) ac_arg=$ac_var=$ac_new_val ;;
2274 esac
2275 case " $ac_configure_args " in
2276 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2277 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2278 esac
2280 done
2281 if $ac_cache_corrupted; then
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2283 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2285 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2286 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2288 ## -------------------- ##
2289 ## Main body of script. ##
2290 ## -------------------- ##
2292 ac_ext=c
2293 ac_cpp='$CPP $CPPFLAGS'
2294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2300 OLDCFLAGS=$CFLAGS
2301 # Checks for programs.
2302 ac_ext=c
2303 ac_cpp='$CPP $CPPFLAGS'
2304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2307 if test -n "$ac_tool_prefix"; then
2308 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2309 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2311 $as_echo_n "checking for $ac_word... " >&6; }
2312 if ${ac_cv_prog_CC+:} false; then :
2313 $as_echo_n "(cached) " >&6
2314 else
2315 if test -n "$CC"; then
2316 ac_cv_prog_CC="$CC" # Let the user override the test.
2317 else
2318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2319 for as_dir in $PATH
2321 IFS=$as_save_IFS
2322 test -z "$as_dir" && as_dir=.
2323 for ac_exec_ext in '' $ac_executable_extensions; do
2324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2325 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2327 break 2
2329 done
2330 done
2331 IFS=$as_save_IFS
2335 CC=$ac_cv_prog_CC
2336 if test -n "$CC"; then
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2338 $as_echo "$CC" >&6; }
2339 else
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2341 $as_echo "no" >&6; }
2346 if test -z "$ac_cv_prog_CC"; then
2347 ac_ct_CC=$CC
2348 # Extract the first word of "gcc", so it can be a program name with args.
2349 set dummy gcc; ac_word=$2
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2351 $as_echo_n "checking for $ac_word... " >&6; }
2352 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2353 $as_echo_n "(cached) " >&6
2354 else
2355 if test -n "$ac_ct_CC"; then
2356 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2357 else
2358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359 for as_dir in $PATH
2361 IFS=$as_save_IFS
2362 test -z "$as_dir" && as_dir=.
2363 for ac_exec_ext in '' $ac_executable_extensions; do
2364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2365 ac_cv_prog_ac_ct_CC="gcc"
2366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2367 break 2
2369 done
2370 done
2371 IFS=$as_save_IFS
2375 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2376 if test -n "$ac_ct_CC"; then
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2378 $as_echo "$ac_ct_CC" >&6; }
2379 else
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2381 $as_echo "no" >&6; }
2384 if test "x$ac_ct_CC" = x; then
2385 CC=""
2386 else
2387 case $cross_compiling:$ac_tool_warned in
2388 yes:)
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2390 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2391 ac_tool_warned=yes ;;
2392 esac
2393 CC=$ac_ct_CC
2395 else
2396 CC="$ac_cv_prog_CC"
2399 if test -z "$CC"; then
2400 if test -n "$ac_tool_prefix"; then
2401 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2402 set dummy ${ac_tool_prefix}cc; ac_word=$2
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2404 $as_echo_n "checking for $ac_word... " >&6; }
2405 if ${ac_cv_prog_CC+:} false; then :
2406 $as_echo_n "(cached) " >&6
2407 else
2408 if test -n "$CC"; then
2409 ac_cv_prog_CC="$CC" # Let the user override the test.
2410 else
2411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2412 for as_dir in $PATH
2414 IFS=$as_save_IFS
2415 test -z "$as_dir" && as_dir=.
2416 for ac_exec_ext in '' $ac_executable_extensions; do
2417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2418 ac_cv_prog_CC="${ac_tool_prefix}cc"
2419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2420 break 2
2422 done
2423 done
2424 IFS=$as_save_IFS
2428 CC=$ac_cv_prog_CC
2429 if test -n "$CC"; then
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2431 $as_echo "$CC" >&6; }
2432 else
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2434 $as_echo "no" >&6; }
2440 if test -z "$CC"; then
2441 # Extract the first word of "cc", so it can be a program name with args.
2442 set dummy cc; ac_word=$2
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2444 $as_echo_n "checking for $ac_word... " >&6; }
2445 if ${ac_cv_prog_CC+:} false; then :
2446 $as_echo_n "(cached) " >&6
2447 else
2448 if test -n "$CC"; then
2449 ac_cv_prog_CC="$CC" # Let the user override the test.
2450 else
2451 ac_prog_rejected=no
2452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453 for as_dir in $PATH
2455 IFS=$as_save_IFS
2456 test -z "$as_dir" && as_dir=.
2457 for ac_exec_ext in '' $ac_executable_extensions; do
2458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2459 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2460 ac_prog_rejected=yes
2461 continue
2463 ac_cv_prog_CC="cc"
2464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2465 break 2
2467 done
2468 done
2469 IFS=$as_save_IFS
2471 if test $ac_prog_rejected = yes; then
2472 # We found a bogon in the path, so make sure we never use it.
2473 set dummy $ac_cv_prog_CC
2474 shift
2475 if test $# != 0; then
2476 # We chose a different compiler from the bogus one.
2477 # However, it has the same basename, so the bogon will be chosen
2478 # first if we set CC to just the basename; use the full file name.
2479 shift
2480 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2485 CC=$ac_cv_prog_CC
2486 if test -n "$CC"; then
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2488 $as_echo "$CC" >&6; }
2489 else
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2491 $as_echo "no" >&6; }
2496 if test -z "$CC"; then
2497 if test -n "$ac_tool_prefix"; then
2498 for ac_prog in cl.exe
2500 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2501 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2503 $as_echo_n "checking for $ac_word... " >&6; }
2504 if ${ac_cv_prog_CC+:} false; then :
2505 $as_echo_n "(cached) " >&6
2506 else
2507 if test -n "$CC"; then
2508 ac_cv_prog_CC="$CC" # Let the user override the test.
2509 else
2510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511 for as_dir in $PATH
2513 IFS=$as_save_IFS
2514 test -z "$as_dir" && as_dir=.
2515 for ac_exec_ext in '' $ac_executable_extensions; do
2516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2517 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2519 break 2
2521 done
2522 done
2523 IFS=$as_save_IFS
2527 CC=$ac_cv_prog_CC
2528 if test -n "$CC"; then
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2530 $as_echo "$CC" >&6; }
2531 else
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2533 $as_echo "no" >&6; }
2537 test -n "$CC" && break
2538 done
2540 if test -z "$CC"; then
2541 ac_ct_CC=$CC
2542 for ac_prog in cl.exe
2544 # Extract the first word of "$ac_prog", so it can be a program name with args.
2545 set dummy $ac_prog; ac_word=$2
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2547 $as_echo_n "checking for $ac_word... " >&6; }
2548 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2549 $as_echo_n "(cached) " >&6
2550 else
2551 if test -n "$ac_ct_CC"; then
2552 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2553 else
2554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2555 for as_dir in $PATH
2557 IFS=$as_save_IFS
2558 test -z "$as_dir" && as_dir=.
2559 for ac_exec_ext in '' $ac_executable_extensions; do
2560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2561 ac_cv_prog_ac_ct_CC="$ac_prog"
2562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2563 break 2
2565 done
2566 done
2567 IFS=$as_save_IFS
2571 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2572 if test -n "$ac_ct_CC"; then
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2574 $as_echo "$ac_ct_CC" >&6; }
2575 else
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2577 $as_echo "no" >&6; }
2581 test -n "$ac_ct_CC" && break
2582 done
2584 if test "x$ac_ct_CC" = x; then
2585 CC=""
2586 else
2587 case $cross_compiling:$ac_tool_warned in
2588 yes:)
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2591 ac_tool_warned=yes ;;
2592 esac
2593 CC=$ac_ct_CC
2600 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2601 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2602 as_fn_error $? "no acceptable C compiler found in \$PATH
2603 See \`config.log' for more details" "$LINENO" 5; }
2605 # Provide some information about the compiler.
2606 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2607 set X $ac_compile
2608 ac_compiler=$2
2609 for ac_option in --version -v -V -qversion; do
2610 { { ac_try="$ac_compiler $ac_option >&5"
2611 case "(($ac_try" in
2612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2613 *) ac_try_echo=$ac_try;;
2614 esac
2615 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2616 $as_echo "$ac_try_echo"; } >&5
2617 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2618 ac_status=$?
2619 if test -s conftest.err; then
2620 sed '10a\
2621 ... rest of stderr output deleted ...
2622 10q' conftest.err >conftest.er1
2623 cat conftest.er1 >&5
2625 rm -f conftest.er1 conftest.err
2626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2627 test $ac_status = 0; }
2628 done
2630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2631 /* end confdefs.h. */
2634 main ()
2638 return 0;
2640 _ACEOF
2641 ac_clean_files_save=$ac_clean_files
2642 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2643 # Try to create an executable without -o first, disregard a.out.
2644 # It will help us diagnose broken compilers, and finding out an intuition
2645 # of exeext.
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2647 $as_echo_n "checking whether the C compiler works... " >&6; }
2648 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2650 # The possible output files:
2651 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2653 ac_rmfiles=
2654 for ac_file in $ac_files
2656 case $ac_file in
2657 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2658 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2659 esac
2660 done
2661 rm -f $ac_rmfiles
2663 if { { ac_try="$ac_link_default"
2664 case "(($ac_try" in
2665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2666 *) ac_try_echo=$ac_try;;
2667 esac
2668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2669 $as_echo "$ac_try_echo"; } >&5
2670 (eval "$ac_link_default") 2>&5
2671 ac_status=$?
2672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2673 test $ac_status = 0; }; then :
2674 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2675 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2676 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2677 # so that the user can short-circuit this test for compilers unknown to
2678 # Autoconf.
2679 for ac_file in $ac_files ''
2681 test -f "$ac_file" || continue
2682 case $ac_file in
2683 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2685 [ab].out )
2686 # We found the default executable, but exeext='' is most
2687 # certainly right.
2688 break;;
2689 *.* )
2690 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2691 then :; else
2692 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2694 # We set ac_cv_exeext here because the later test for it is not
2695 # safe: cross compilers may not add the suffix if given an `-o'
2696 # argument, so we may need to know it at that point already.
2697 # Even if this section looks crufty: it has the advantage of
2698 # actually working.
2699 break;;
2701 break;;
2702 esac
2703 done
2704 test "$ac_cv_exeext" = no && ac_cv_exeext=
2706 else
2707 ac_file=''
2709 if test -z "$ac_file"; then :
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2711 $as_echo "no" >&6; }
2712 $as_echo "$as_me: failed program was:" >&5
2713 sed 's/^/| /' conftest.$ac_ext >&5
2715 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2716 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2717 as_fn_error 77 "C compiler cannot create executables
2718 See \`config.log' for more details" "$LINENO" 5; }
2719 else
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2721 $as_echo "yes" >&6; }
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2724 $as_echo_n "checking for C compiler default output file name... " >&6; }
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2726 $as_echo "$ac_file" >&6; }
2727 ac_exeext=$ac_cv_exeext
2729 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2730 ac_clean_files=$ac_clean_files_save
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2732 $as_echo_n "checking for suffix of executables... " >&6; }
2733 if { { ac_try="$ac_link"
2734 case "(($ac_try" in
2735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2736 *) ac_try_echo=$ac_try;;
2737 esac
2738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2739 $as_echo "$ac_try_echo"; } >&5
2740 (eval "$ac_link") 2>&5
2741 ac_status=$?
2742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2743 test $ac_status = 0; }; then :
2744 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2745 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2746 # work properly (i.e., refer to `conftest.exe'), while it won't with
2747 # `rm'.
2748 for ac_file in conftest.exe conftest conftest.*; do
2749 test -f "$ac_file" || continue
2750 case $ac_file in
2751 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2752 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2753 break;;
2754 * ) break;;
2755 esac
2756 done
2757 else
2758 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2759 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2760 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2761 See \`config.log' for more details" "$LINENO" 5; }
2763 rm -f conftest conftest$ac_cv_exeext
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2765 $as_echo "$ac_cv_exeext" >&6; }
2767 rm -f conftest.$ac_ext
2768 EXEEXT=$ac_cv_exeext
2769 ac_exeext=$EXEEXT
2770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2771 /* end confdefs.h. */
2772 #include <stdio.h>
2774 main ()
2776 FILE *f = fopen ("conftest.out", "w");
2777 return ferror (f) || fclose (f) != 0;
2780 return 0;
2782 _ACEOF
2783 ac_clean_files="$ac_clean_files conftest.out"
2784 # Check that the compiler produces executables we can run. If not, either
2785 # the compiler is broken, or we cross compile.
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2787 $as_echo_n "checking whether we are cross compiling... " >&6; }
2788 if test "$cross_compiling" != yes; then
2789 { { ac_try="$ac_link"
2790 case "(($ac_try" in
2791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2792 *) ac_try_echo=$ac_try;;
2793 esac
2794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2795 $as_echo "$ac_try_echo"; } >&5
2796 (eval "$ac_link") 2>&5
2797 ac_status=$?
2798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2799 test $ac_status = 0; }
2800 if { ac_try='./conftest$ac_cv_exeext'
2801 { { case "(($ac_try" in
2802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2803 *) ac_try_echo=$ac_try;;
2804 esac
2805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2806 $as_echo "$ac_try_echo"; } >&5
2807 (eval "$ac_try") 2>&5
2808 ac_status=$?
2809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2810 test $ac_status = 0; }; }; then
2811 cross_compiling=no
2812 else
2813 if test "$cross_compiling" = maybe; then
2814 cross_compiling=yes
2815 else
2816 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2818 as_fn_error $? "cannot run C compiled programs.
2819 If you meant to cross compile, use \`--host'.
2820 See \`config.log' for more details" "$LINENO" 5; }
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2825 $as_echo "$cross_compiling" >&6; }
2827 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2828 ac_clean_files=$ac_clean_files_save
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2830 $as_echo_n "checking for suffix of object files... " >&6; }
2831 if ${ac_cv_objext+:} false; then :
2832 $as_echo_n "(cached) " >&6
2833 else
2834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2835 /* end confdefs.h. */
2838 main ()
2842 return 0;
2844 _ACEOF
2845 rm -f conftest.o conftest.obj
2846 if { { ac_try="$ac_compile"
2847 case "(($ac_try" in
2848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2849 *) ac_try_echo=$ac_try;;
2850 esac
2851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2852 $as_echo "$ac_try_echo"; } >&5
2853 (eval "$ac_compile") 2>&5
2854 ac_status=$?
2855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2856 test $ac_status = 0; }; then :
2857 for ac_file in conftest.o conftest.obj conftest.*; do
2858 test -f "$ac_file" || continue;
2859 case $ac_file in
2860 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2861 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2862 break;;
2863 esac
2864 done
2865 else
2866 $as_echo "$as_me: failed program was:" >&5
2867 sed 's/^/| /' conftest.$ac_ext >&5
2869 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2870 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2871 as_fn_error $? "cannot compute suffix of object files: cannot compile
2872 See \`config.log' for more details" "$LINENO" 5; }
2874 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2877 $as_echo "$ac_cv_objext" >&6; }
2878 OBJEXT=$ac_cv_objext
2879 ac_objext=$OBJEXT
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2881 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2882 if ${ac_cv_c_compiler_gnu+:} false; then :
2883 $as_echo_n "(cached) " >&6
2884 else
2885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2886 /* end confdefs.h. */
2889 main ()
2891 #ifndef __GNUC__
2892 choke me
2893 #endif
2896 return 0;
2898 _ACEOF
2899 if ac_fn_c_try_compile "$LINENO"; then :
2900 ac_compiler_gnu=yes
2901 else
2902 ac_compiler_gnu=no
2904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2905 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2909 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2910 if test $ac_compiler_gnu = yes; then
2911 GCC=yes
2912 else
2913 GCC=
2915 ac_test_CFLAGS=${CFLAGS+set}
2916 ac_save_CFLAGS=$CFLAGS
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2918 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2919 if ${ac_cv_prog_cc_g+:} false; then :
2920 $as_echo_n "(cached) " >&6
2921 else
2922 ac_save_c_werror_flag=$ac_c_werror_flag
2923 ac_c_werror_flag=yes
2924 ac_cv_prog_cc_g=no
2925 CFLAGS="-g"
2926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2927 /* end confdefs.h. */
2930 main ()
2934 return 0;
2936 _ACEOF
2937 if ac_fn_c_try_compile "$LINENO"; then :
2938 ac_cv_prog_cc_g=yes
2939 else
2940 CFLAGS=""
2941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2942 /* end confdefs.h. */
2945 main ()
2949 return 0;
2951 _ACEOF
2952 if ac_fn_c_try_compile "$LINENO"; then :
2954 else
2955 ac_c_werror_flag=$ac_save_c_werror_flag
2956 CFLAGS="-g"
2957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2958 /* end confdefs.h. */
2961 main ()
2965 return 0;
2967 _ACEOF
2968 if ac_fn_c_try_compile "$LINENO"; then :
2969 ac_cv_prog_cc_g=yes
2971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2976 ac_c_werror_flag=$ac_save_c_werror_flag
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2979 $as_echo "$ac_cv_prog_cc_g" >&6; }
2980 if test "$ac_test_CFLAGS" = set; then
2981 CFLAGS=$ac_save_CFLAGS
2982 elif test $ac_cv_prog_cc_g = yes; then
2983 if test "$GCC" = yes; then
2984 CFLAGS="-g -O2"
2985 else
2986 CFLAGS="-g"
2988 else
2989 if test "$GCC" = yes; then
2990 CFLAGS="-O2"
2991 else
2992 CFLAGS=
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2996 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2997 if ${ac_cv_prog_cc_c89+:} false; then :
2998 $as_echo_n "(cached) " >&6
2999 else
3000 ac_cv_prog_cc_c89=no
3001 ac_save_CC=$CC
3002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3003 /* end confdefs.h. */
3004 #include <stdarg.h>
3005 #include <stdio.h>
3006 struct stat;
3007 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3008 struct buf { int x; };
3009 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3010 static char *e (p, i)
3011 char **p;
3012 int i;
3014 return p[i];
3016 static char *f (char * (*g) (char **, int), char **p, ...)
3018 char *s;
3019 va_list v;
3020 va_start (v,p);
3021 s = g (p, va_arg (v,int));
3022 va_end (v);
3023 return s;
3026 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3027 function prototypes and stuff, but not '\xHH' hex character constants.
3028 These don't provoke an error unfortunately, instead are silently treated
3029 as 'x'. The following induces an error, until -std is added to get
3030 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3031 array size at least. It's necessary to write '\x00'==0 to get something
3032 that's true only with -std. */
3033 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3035 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3036 inside strings and character constants. */
3037 #define FOO(x) 'x'
3038 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3040 int test (int i, double x);
3041 struct s1 {int (*f) (int a);};
3042 struct s2 {int (*f) (double a);};
3043 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3044 int argc;
3045 char **argv;
3047 main ()
3049 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3051 return 0;
3053 _ACEOF
3054 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3055 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3057 CC="$ac_save_CC $ac_arg"
3058 if ac_fn_c_try_compile "$LINENO"; then :
3059 ac_cv_prog_cc_c89=$ac_arg
3061 rm -f core conftest.err conftest.$ac_objext
3062 test "x$ac_cv_prog_cc_c89" != "xno" && break
3063 done
3064 rm -f conftest.$ac_ext
3065 CC=$ac_save_CC
3068 # AC_CACHE_VAL
3069 case "x$ac_cv_prog_cc_c89" in
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3072 $as_echo "none needed" >&6; } ;;
3073 xno)
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3075 $as_echo "unsupported" >&6; } ;;
3077 CC="$CC $ac_cv_prog_cc_c89"
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3079 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3080 esac
3081 if test "x$ac_cv_prog_cc_c89" != xno; then :
3085 ac_ext=c
3086 ac_cpp='$CPP $CPPFLAGS'
3087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3092 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3093 set x ${MAKE-make}
3094 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3095 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3096 $as_echo_n "(cached) " >&6
3097 else
3098 cat >conftest.make <<\_ACEOF
3099 SHELL = /bin/sh
3100 all:
3101 @echo '@@@%%%=$(MAKE)=@@@%%%'
3102 _ACEOF
3103 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3104 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3105 *@@@%%%=?*=@@@%%%*)
3106 eval ac_cv_prog_make_${ac_make}_set=yes;;
3108 eval ac_cv_prog_make_${ac_make}_set=no;;
3109 esac
3110 rm -f conftest.make
3112 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3114 $as_echo "yes" >&6; }
3115 SET_MAKE=
3116 else
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3118 $as_echo "no" >&6; }
3119 SET_MAKE="MAKE=${MAKE-make}"
3123 if test -z "$LD" ; then
3124 LD=$CC
3128 if test -z "$OLDCFLAGS" && test "$GCC" = "yes"; then
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: No \$CFLAGS set... using \"-Os -W -Wall\" for GCC" >&5
3130 $as_echo "$as_me: No \$CFLAGS set... using \"-Os -W -Wall\" for GCC" >&6;}
3131 CFLAGS="-Os -W -Wall"
3134 # large file support is useful for scp
3136 # Check whether --enable-largefile was given.
3137 if test "${enable_largefile+set}" = set; then :
3138 enableval=$enable_largefile;
3141 if test "$enable_largefile" != no; then
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3144 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3145 if ${ac_cv_sys_largefile_CC+:} false; then :
3146 $as_echo_n "(cached) " >&6
3147 else
3148 ac_cv_sys_largefile_CC=no
3149 if test "$GCC" != yes; then
3150 ac_save_CC=$CC
3151 while :; do
3152 # IRIX 6.2 and later do not support large files by default,
3153 # so use the C compiler's -n32 option if that helps.
3154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3155 /* end confdefs.h. */
3156 #include <sys/types.h>
3157 /* Check that off_t can represent 2**63 - 1 correctly.
3158 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3159 since some C++ compilers masquerading as C compilers
3160 incorrectly reject 9223372036854775807. */
3161 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3162 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3163 && LARGE_OFF_T % 2147483647 == 1)
3164 ? 1 : -1];
3166 main ()
3170 return 0;
3172 _ACEOF
3173 if ac_fn_c_try_compile "$LINENO"; then :
3174 break
3176 rm -f core conftest.err conftest.$ac_objext
3177 CC="$CC -n32"
3178 if ac_fn_c_try_compile "$LINENO"; then :
3179 ac_cv_sys_largefile_CC=' -n32'; break
3181 rm -f core conftest.err conftest.$ac_objext
3182 break
3183 done
3184 CC=$ac_save_CC
3185 rm -f conftest.$ac_ext
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3189 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
3190 if test "$ac_cv_sys_largefile_CC" != no; then
3191 CC=$CC$ac_cv_sys_largefile_CC
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3195 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3196 if ${ac_cv_sys_file_offset_bits+:} false; then :
3197 $as_echo_n "(cached) " >&6
3198 else
3199 while :; do
3200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3201 /* end confdefs.h. */
3202 #include <sys/types.h>
3203 /* Check that off_t can represent 2**63 - 1 correctly.
3204 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3205 since some C++ compilers masquerading as C compilers
3206 incorrectly reject 9223372036854775807. */
3207 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3208 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3209 && LARGE_OFF_T % 2147483647 == 1)
3210 ? 1 : -1];
3212 main ()
3216 return 0;
3218 _ACEOF
3219 if ac_fn_c_try_compile "$LINENO"; then :
3220 ac_cv_sys_file_offset_bits=no; break
3222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3224 /* end confdefs.h. */
3225 #define _FILE_OFFSET_BITS 64
3226 #include <sys/types.h>
3227 /* Check that off_t can represent 2**63 - 1 correctly.
3228 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3229 since some C++ compilers masquerading as C compilers
3230 incorrectly reject 9223372036854775807. */
3231 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3232 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3233 && LARGE_OFF_T % 2147483647 == 1)
3234 ? 1 : -1];
3236 main ()
3240 return 0;
3242 _ACEOF
3243 if ac_fn_c_try_compile "$LINENO"; then :
3244 ac_cv_sys_file_offset_bits=64; break
3246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3247 ac_cv_sys_file_offset_bits=unknown
3248 break
3249 done
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
3252 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
3253 case $ac_cv_sys_file_offset_bits in #(
3254 no | unknown) ;;
3256 cat >>confdefs.h <<_ACEOF
3257 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3258 _ACEOF
3260 esac
3261 rm -rf conftest*
3262 if test $ac_cv_sys_file_offset_bits = unknown; then
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
3264 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
3265 if ${ac_cv_sys_large_files+:} false; then :
3266 $as_echo_n "(cached) " >&6
3267 else
3268 while :; do
3269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3270 /* end confdefs.h. */
3271 #include <sys/types.h>
3272 /* Check that off_t can represent 2**63 - 1 correctly.
3273 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3274 since some C++ compilers masquerading as C compilers
3275 incorrectly reject 9223372036854775807. */
3276 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3277 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3278 && LARGE_OFF_T % 2147483647 == 1)
3279 ? 1 : -1];
3281 main ()
3285 return 0;
3287 _ACEOF
3288 if ac_fn_c_try_compile "$LINENO"; then :
3289 ac_cv_sys_large_files=no; break
3291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3293 /* end confdefs.h. */
3294 #define _LARGE_FILES 1
3295 #include <sys/types.h>
3296 /* Check that off_t can represent 2**63 - 1 correctly.
3297 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3298 since some C++ compilers masquerading as C compilers
3299 incorrectly reject 9223372036854775807. */
3300 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3301 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3302 && LARGE_OFF_T % 2147483647 == 1)
3303 ? 1 : -1];
3305 main ()
3309 return 0;
3311 _ACEOF
3312 if ac_fn_c_try_compile "$LINENO"; then :
3313 ac_cv_sys_large_files=1; break
3315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3316 ac_cv_sys_large_files=unknown
3317 break
3318 done
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
3321 $as_echo "$ac_cv_sys_large_files" >&6; }
3322 case $ac_cv_sys_large_files in #(
3323 no | unknown) ;;
3325 cat >>confdefs.h <<_ACEOF
3326 #define _LARGE_FILES $ac_cv_sys_large_files
3327 _ACEOF
3329 esac
3330 rm -rf conftest*
3337 # Host specific options
3338 # this isn't a definitive list of hosts, they are just added as required
3339 ac_aux_dir=
3340 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3341 if test -f "$ac_dir/install-sh"; then
3342 ac_aux_dir=$ac_dir
3343 ac_install_sh="$ac_aux_dir/install-sh -c"
3344 break
3345 elif test -f "$ac_dir/install.sh"; then
3346 ac_aux_dir=$ac_dir
3347 ac_install_sh="$ac_aux_dir/install.sh -c"
3348 break
3349 elif test -f "$ac_dir/shtool"; then
3350 ac_aux_dir=$ac_dir
3351 ac_install_sh="$ac_aux_dir/shtool install -c"
3352 break
3354 done
3355 if test -z "$ac_aux_dir"; then
3356 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3359 # These three variables are undocumented and unsupported,
3360 # and are intended to be withdrawn in a future Autoconf release.
3361 # They can cause serious problems if a builder's source tree is in a directory
3362 # whose full name contains unusual characters.
3363 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3364 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3365 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3368 # Make sure we can run config.sub.
3369 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3370 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3373 $as_echo_n "checking build system type... " >&6; }
3374 if ${ac_cv_build+:} false; then :
3375 $as_echo_n "(cached) " >&6
3376 else
3377 ac_build_alias=$build_alias
3378 test "x$ac_build_alias" = x &&
3379 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3380 test "x$ac_build_alias" = x &&
3381 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3382 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3383 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3387 $as_echo "$ac_cv_build" >&6; }
3388 case $ac_cv_build in
3389 *-*-*) ;;
3390 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3391 esac
3392 build=$ac_cv_build
3393 ac_save_IFS=$IFS; IFS='-'
3394 set x $ac_cv_build
3395 shift
3396 build_cpu=$1
3397 build_vendor=$2
3398 shift; shift
3399 # Remember, the first character of IFS is used to create $*,
3400 # except with old shells:
3401 build_os=$*
3402 IFS=$ac_save_IFS
3403 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3407 $as_echo_n "checking host system type... " >&6; }
3408 if ${ac_cv_host+:} false; then :
3409 $as_echo_n "(cached) " >&6
3410 else
3411 if test "x$host_alias" = x; then
3412 ac_cv_host=$ac_cv_build
3413 else
3414 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3415 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3420 $as_echo "$ac_cv_host" >&6; }
3421 case $ac_cv_host in
3422 *-*-*) ;;
3423 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3424 esac
3425 host=$ac_cv_host
3426 ac_save_IFS=$IFS; IFS='-'
3427 set x $ac_cv_host
3428 shift
3429 host_cpu=$1
3430 host_vendor=$2
3431 shift; shift
3432 # Remember, the first character of IFS is used to create $*,
3433 # except with old shells:
3434 host_os=$*
3435 IFS=$ac_save_IFS
3436 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3440 case "$host" in
3442 *-*-linux*)
3443 no_ptmx_check=1
3446 *-*-solaris*)
3447 CFLAGS="$CFLAGS -I/usr/local/include"
3448 LDFLAGS="$LDFLAGS -L/usr/local/lib -R/usr/local/lib"
3449 conf_lastlog_location="/var/adm/lastlog"
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obsolete utmp and wtmp in solaris2.x" >&5
3451 $as_echo_n "checking for obsolete utmp and wtmp in solaris2.x... " >&6; }
3452 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
3453 if test "$sol2ver" -ge 8; then
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3455 $as_echo "yes" >&6; }
3457 $as_echo "#define DISABLE_UTMP /**/" >>confdefs.h
3460 $as_echo "#define DISABLE_WTMP /**/" >>confdefs.h
3462 else
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3464 $as_echo "no" >&6; }
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
3467 $as_echo_n "checking for socket in -lsocket... " >&6; }
3468 if ${ac_cv_lib_socket_socket+:} false; then :
3469 $as_echo_n "(cached) " >&6
3470 else
3471 ac_check_lib_save_LIBS=$LIBS
3472 LIBS="-lsocket $LIBS"
3473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3474 /* end confdefs.h. */
3476 /* Override any GCC internal prototype to avoid an error.
3477 Use char because int might match the return type of a GCC
3478 builtin and then its argument prototype would still apply. */
3479 #ifdef __cplusplus
3480 extern "C"
3481 #endif
3482 char socket ();
3484 main ()
3486 return socket ();
3488 return 0;
3490 _ACEOF
3491 if ac_fn_c_try_link "$LINENO"; then :
3492 ac_cv_lib_socket_socket=yes
3493 else
3494 ac_cv_lib_socket_socket=no
3496 rm -f core conftest.err conftest.$ac_objext \
3497 conftest$ac_exeext conftest.$ac_ext
3498 LIBS=$ac_check_lib_save_LIBS
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
3501 $as_echo "$ac_cv_lib_socket_socket" >&6; }
3502 if test "x$ac_cv_lib_socket_socket" = xyes; then :
3503 LIBS="$LIBS -lsocket"
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yp_match in -lnsl" >&5
3507 $as_echo_n "checking for yp_match in -lnsl... " >&6; }
3508 if ${ac_cv_lib_nsl_yp_match+:} false; then :
3509 $as_echo_n "(cached) " >&6
3510 else
3511 ac_check_lib_save_LIBS=$LIBS
3512 LIBS="-lnsl $LIBS"
3513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3514 /* end confdefs.h. */
3516 /* Override any GCC internal prototype to avoid an error.
3517 Use char because int might match the return type of a GCC
3518 builtin and then its argument prototype would still apply. */
3519 #ifdef __cplusplus
3520 extern "C"
3521 #endif
3522 char yp_match ();
3524 main ()
3526 return yp_match ();
3528 return 0;
3530 _ACEOF
3531 if ac_fn_c_try_link "$LINENO"; then :
3532 ac_cv_lib_nsl_yp_match=yes
3533 else
3534 ac_cv_lib_nsl_yp_match=no
3536 rm -f core conftest.err conftest.$ac_objext \
3537 conftest$ac_exeext conftest.$ac_ext
3538 LIBS=$ac_check_lib_save_LIBS
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_yp_match" >&5
3541 $as_echo "$ac_cv_lib_nsl_yp_match" >&6; }
3542 if test "x$ac_cv_lib_nsl_yp_match" = xyes; then :
3543 LIBS="$LIBS -lnsl"
3548 *-*-aix*)
3550 $as_echo "#define AIX /**/" >>confdefs.h
3552 # OpenSSH thinks it's broken. If it isn't, let me know.
3554 $as_echo "#define BROKEN_GETADDRINFO /**/" >>confdefs.h
3558 *-*-hpux*)
3559 LIBS="$LIBS -lsec"
3560 # It's probably broken.
3562 $as_echo "#define BROKEN_GETADDRINFO /**/" >>confdefs.h
3565 *-dec-osf*)
3567 $as_echo "#define BROKEN_GETADDRINFO /**/" >>confdefs.h
3570 esac
3572 if test -n "$ac_tool_prefix"; then
3573 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3574 set dummy ${ac_tool_prefix}ar; ac_word=$2
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3576 $as_echo_n "checking for $ac_word... " >&6; }
3577 if ${ac_cv_prog_AR+:} false; then :
3578 $as_echo_n "(cached) " >&6
3579 else
3580 if test -n "$AR"; then
3581 ac_cv_prog_AR="$AR" # Let the user override the test.
3582 else
3583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3584 for as_dir in $PATH
3586 IFS=$as_save_IFS
3587 test -z "$as_dir" && as_dir=.
3588 for ac_exec_ext in '' $ac_executable_extensions; do
3589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3590 ac_cv_prog_AR="${ac_tool_prefix}ar"
3591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3592 break 2
3594 done
3595 done
3596 IFS=$as_save_IFS
3600 AR=$ac_cv_prog_AR
3601 if test -n "$AR"; then
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3603 $as_echo "$AR" >&6; }
3604 else
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3606 $as_echo "no" >&6; }
3611 if test -z "$ac_cv_prog_AR"; then
3612 ac_ct_AR=$AR
3613 # Extract the first word of "ar", so it can be a program name with args.
3614 set dummy ar; ac_word=$2
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3616 $as_echo_n "checking for $ac_word... " >&6; }
3617 if ${ac_cv_prog_ac_ct_AR+:} false; then :
3618 $as_echo_n "(cached) " >&6
3619 else
3620 if test -n "$ac_ct_AR"; then
3621 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3622 else
3623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3624 for as_dir in $PATH
3626 IFS=$as_save_IFS
3627 test -z "$as_dir" && as_dir=.
3628 for ac_exec_ext in '' $ac_executable_extensions; do
3629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3630 ac_cv_prog_ac_ct_AR="ar"
3631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3632 break 2
3634 done
3635 done
3636 IFS=$as_save_IFS
3640 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3641 if test -n "$ac_ct_AR"; then
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3643 $as_echo "$ac_ct_AR" >&6; }
3644 else
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3646 $as_echo "no" >&6; }
3649 if test "x$ac_ct_AR" = x; then
3650 AR=":"
3651 else
3652 case $cross_compiling:$ac_tool_warned in
3653 yes:)
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3655 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3656 ac_tool_warned=yes ;;
3657 esac
3658 AR=$ac_ct_AR
3660 else
3661 AR="$ac_cv_prog_AR"
3664 if test -n "$ac_tool_prefix"; then
3665 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3666 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3668 $as_echo_n "checking for $ac_word... " >&6; }
3669 if ${ac_cv_prog_RANLIB+:} false; then :
3670 $as_echo_n "(cached) " >&6
3671 else
3672 if test -n "$RANLIB"; then
3673 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3674 else
3675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3676 for as_dir in $PATH
3678 IFS=$as_save_IFS
3679 test -z "$as_dir" && as_dir=.
3680 for ac_exec_ext in '' $ac_executable_extensions; do
3681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3682 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3684 break 2
3686 done
3687 done
3688 IFS=$as_save_IFS
3692 RANLIB=$ac_cv_prog_RANLIB
3693 if test -n "$RANLIB"; then
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3695 $as_echo "$RANLIB" >&6; }
3696 else
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3698 $as_echo "no" >&6; }
3703 if test -z "$ac_cv_prog_RANLIB"; then
3704 ac_ct_RANLIB=$RANLIB
3705 # Extract the first word of "ranlib", so it can be a program name with args.
3706 set dummy ranlib; ac_word=$2
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3708 $as_echo_n "checking for $ac_word... " >&6; }
3709 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3710 $as_echo_n "(cached) " >&6
3711 else
3712 if test -n "$ac_ct_RANLIB"; then
3713 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3714 else
3715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3716 for as_dir in $PATH
3718 IFS=$as_save_IFS
3719 test -z "$as_dir" && as_dir=.
3720 for ac_exec_ext in '' $ac_executable_extensions; do
3721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3722 ac_cv_prog_ac_ct_RANLIB="ranlib"
3723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3724 break 2
3726 done
3727 done
3728 IFS=$as_save_IFS
3732 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3733 if test -n "$ac_ct_RANLIB"; then
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3735 $as_echo "$ac_ct_RANLIB" >&6; }
3736 else
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3738 $as_echo "no" >&6; }
3741 if test "x$ac_ct_RANLIB" = x; then
3742 RANLIB=":"
3743 else
3744 case $cross_compiling:$ac_tool_warned in
3745 yes:)
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3747 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3748 ac_tool_warned=yes ;;
3749 esac
3750 RANLIB=$ac_ct_RANLIB
3752 else
3753 RANLIB="$ac_cv_prog_RANLIB"
3756 if test -n "$ac_tool_prefix"; then
3757 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3758 set dummy ${ac_tool_prefix}strip; ac_word=$2
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3760 $as_echo_n "checking for $ac_word... " >&6; }
3761 if ${ac_cv_prog_STRIP+:} false; then :
3762 $as_echo_n "(cached) " >&6
3763 else
3764 if test -n "$STRIP"; then
3765 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3766 else
3767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768 for as_dir in $PATH
3770 IFS=$as_save_IFS
3771 test -z "$as_dir" && as_dir=.
3772 for ac_exec_ext in '' $ac_executable_extensions; do
3773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3774 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3776 break 2
3778 done
3779 done
3780 IFS=$as_save_IFS
3784 STRIP=$ac_cv_prog_STRIP
3785 if test -n "$STRIP"; then
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3787 $as_echo "$STRIP" >&6; }
3788 else
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3790 $as_echo "no" >&6; }
3795 if test -z "$ac_cv_prog_STRIP"; then
3796 ac_ct_STRIP=$STRIP
3797 # Extract the first word of "strip", so it can be a program name with args.
3798 set dummy strip; ac_word=$2
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3800 $as_echo_n "checking for $ac_word... " >&6; }
3801 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3802 $as_echo_n "(cached) " >&6
3803 else
3804 if test -n "$ac_ct_STRIP"; then
3805 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3806 else
3807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808 for as_dir in $PATH
3810 IFS=$as_save_IFS
3811 test -z "$as_dir" && as_dir=.
3812 for ac_exec_ext in '' $ac_executable_extensions; do
3813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3814 ac_cv_prog_ac_ct_STRIP="strip"
3815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3816 break 2
3818 done
3819 done
3820 IFS=$as_save_IFS
3824 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3825 if test -n "$ac_ct_STRIP"; then
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3827 $as_echo "$ac_ct_STRIP" >&6; }
3828 else
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3830 $as_echo "no" >&6; }
3833 if test "x$ac_ct_STRIP" = x; then
3834 STRIP=":"
3835 else
3836 case $cross_compiling:$ac_tool_warned in
3837 yes:)
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3839 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3840 ac_tool_warned=yes ;;
3841 esac
3842 STRIP=$ac_ct_STRIP
3844 else
3845 STRIP="$ac_cv_prog_STRIP"
3848 if test -n "$ac_tool_prefix"; then
3849 # Extract the first word of "${ac_tool_prefix}install", so it can be a program name with args.
3850 set dummy ${ac_tool_prefix}install; ac_word=$2
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3852 $as_echo_n "checking for $ac_word... " >&6; }
3853 if ${ac_cv_prog_INSTALL+:} false; then :
3854 $as_echo_n "(cached) " >&6
3855 else
3856 if test -n "$INSTALL"; then
3857 ac_cv_prog_INSTALL="$INSTALL" # Let the user override the test.
3858 else
3859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3860 for as_dir in $PATH
3862 IFS=$as_save_IFS
3863 test -z "$as_dir" && as_dir=.
3864 for ac_exec_ext in '' $ac_executable_extensions; do
3865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3866 ac_cv_prog_INSTALL="${ac_tool_prefix}install"
3867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3868 break 2
3870 done
3871 done
3872 IFS=$as_save_IFS
3876 INSTALL=$ac_cv_prog_INSTALL
3877 if test -n "$INSTALL"; then
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3879 $as_echo "$INSTALL" >&6; }
3880 else
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3882 $as_echo "no" >&6; }
3887 if test -z "$ac_cv_prog_INSTALL"; then
3888 ac_ct_INSTALL=$INSTALL
3889 # Extract the first word of "install", so it can be a program name with args.
3890 set dummy install; ac_word=$2
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3892 $as_echo_n "checking for $ac_word... " >&6; }
3893 if ${ac_cv_prog_ac_ct_INSTALL+:} false; then :
3894 $as_echo_n "(cached) " >&6
3895 else
3896 if test -n "$ac_ct_INSTALL"; then
3897 ac_cv_prog_ac_ct_INSTALL="$ac_ct_INSTALL" # Let the user override the test.
3898 else
3899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3900 for as_dir in $PATH
3902 IFS=$as_save_IFS
3903 test -z "$as_dir" && as_dir=.
3904 for ac_exec_ext in '' $ac_executable_extensions; do
3905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3906 ac_cv_prog_ac_ct_INSTALL="install"
3907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3908 break 2
3910 done
3911 done
3912 IFS=$as_save_IFS
3916 ac_ct_INSTALL=$ac_cv_prog_ac_ct_INSTALL
3917 if test -n "$ac_ct_INSTALL"; then
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_INSTALL" >&5
3919 $as_echo "$ac_ct_INSTALL" >&6; }
3920 else
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3922 $as_echo "no" >&6; }
3925 if test "x$ac_ct_INSTALL" = x; then
3926 INSTALL=":"
3927 else
3928 case $cross_compiling:$ac_tool_warned in
3929 yes:)
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3932 ac_tool_warned=yes ;;
3933 esac
3934 INSTALL=$ac_ct_INSTALL
3936 else
3937 INSTALL="$ac_cv_prog_INSTALL"
3941 ac_ext=c
3942 ac_cpp='$CPP $CPPFLAGS'
3943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3947 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3948 # On Suns, sometimes $CPP names a directory.
3949 if test -n "$CPP" && test -d "$CPP"; then
3950 CPP=
3952 if test -z "$CPP"; then
3953 if ${ac_cv_prog_CPP+:} false; then :
3954 $as_echo_n "(cached) " >&6
3955 else
3956 # Double quotes because CPP needs to be expanded
3957 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3959 ac_preproc_ok=false
3960 for ac_c_preproc_warn_flag in '' yes
3962 # Use a header file that comes with gcc, so configuring glibc
3963 # with a fresh cross-compiler works.
3964 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3965 # <limits.h> exists even on freestanding compilers.
3966 # On the NeXT, cc -E runs the code through the compiler's parser,
3967 # not just through cpp. "Syntax error" is here to catch this case.
3968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3969 /* end confdefs.h. */
3970 #ifdef __STDC__
3971 # include <limits.h>
3972 #else
3973 # include <assert.h>
3974 #endif
3975 Syntax error
3976 _ACEOF
3977 if ac_fn_c_try_cpp "$LINENO"; then :
3979 else
3980 # Broken: fails on valid input.
3981 continue
3983 rm -f conftest.err conftest.i conftest.$ac_ext
3985 # OK, works on sane cases. Now check whether nonexistent headers
3986 # can be detected and how.
3987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3988 /* end confdefs.h. */
3989 #include <ac_nonexistent.h>
3990 _ACEOF
3991 if ac_fn_c_try_cpp "$LINENO"; then :
3992 # Broken: success on invalid input.
3993 continue
3994 else
3995 # Passes both tests.
3996 ac_preproc_ok=:
3997 break
3999 rm -f conftest.err conftest.i conftest.$ac_ext
4001 done
4002 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4003 rm -f conftest.i conftest.err conftest.$ac_ext
4004 if $ac_preproc_ok; then :
4005 break
4008 done
4009 ac_cv_prog_CPP=$CPP
4012 CPP=$ac_cv_prog_CPP
4013 else
4014 ac_cv_prog_CPP=$CPP
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4017 $as_echo "$CPP" >&6; }
4018 ac_preproc_ok=false
4019 for ac_c_preproc_warn_flag in '' yes
4021 # Use a header file that comes with gcc, so configuring glibc
4022 # with a fresh cross-compiler works.
4023 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4024 # <limits.h> exists even on freestanding compilers.
4025 # On the NeXT, cc -E runs the code through the compiler's parser,
4026 # not just through cpp. "Syntax error" is here to catch this case.
4027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4028 /* end confdefs.h. */
4029 #ifdef __STDC__
4030 # include <limits.h>
4031 #else
4032 # include <assert.h>
4033 #endif
4034 Syntax error
4035 _ACEOF
4036 if ac_fn_c_try_cpp "$LINENO"; then :
4038 else
4039 # Broken: fails on valid input.
4040 continue
4042 rm -f conftest.err conftest.i conftest.$ac_ext
4044 # OK, works on sane cases. Now check whether nonexistent headers
4045 # can be detected and how.
4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047 /* end confdefs.h. */
4048 #include <ac_nonexistent.h>
4049 _ACEOF
4050 if ac_fn_c_try_cpp "$LINENO"; then :
4051 # Broken: success on invalid input.
4052 continue
4053 else
4054 # Passes both tests.
4055 ac_preproc_ok=:
4056 break
4058 rm -f conftest.err conftest.i conftest.$ac_ext
4060 done
4061 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4062 rm -f conftest.i conftest.err conftest.$ac_ext
4063 if $ac_preproc_ok; then :
4065 else
4066 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4067 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4068 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4069 See \`config.log' for more details" "$LINENO" 5; }
4072 ac_ext=c
4073 ac_cpp='$CPP $CPPFLAGS'
4074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4080 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4081 if ${ac_cv_path_GREP+:} false; then :
4082 $as_echo_n "(cached) " >&6
4083 else
4084 if test -z "$GREP"; then
4085 ac_path_GREP_found=false
4086 # Loop through the user's path and test for each of PROGNAME-LIST
4087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4088 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4090 IFS=$as_save_IFS
4091 test -z "$as_dir" && as_dir=.
4092 for ac_prog in grep ggrep; do
4093 for ac_exec_ext in '' $ac_executable_extensions; do
4094 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4095 as_fn_executable_p "$ac_path_GREP" || continue
4096 # Check for GNU ac_path_GREP and select it if it is found.
4097 # Check for GNU $ac_path_GREP
4098 case `"$ac_path_GREP" --version 2>&1` in
4099 *GNU*)
4100 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4102 ac_count=0
4103 $as_echo_n 0123456789 >"conftest.in"
4104 while :
4106 cat "conftest.in" "conftest.in" >"conftest.tmp"
4107 mv "conftest.tmp" "conftest.in"
4108 cp "conftest.in" "conftest.nl"
4109 $as_echo 'GREP' >> "conftest.nl"
4110 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4111 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4112 as_fn_arith $ac_count + 1 && ac_count=$as_val
4113 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4114 # Best one so far, save it but keep looking for a better one
4115 ac_cv_path_GREP="$ac_path_GREP"
4116 ac_path_GREP_max=$ac_count
4118 # 10*(2^10) chars as input seems more than enough
4119 test $ac_count -gt 10 && break
4120 done
4121 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4122 esac
4124 $ac_path_GREP_found && break 3
4125 done
4126 done
4127 done
4128 IFS=$as_save_IFS
4129 if test -z "$ac_cv_path_GREP"; then
4130 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4132 else
4133 ac_cv_path_GREP=$GREP
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4138 $as_echo "$ac_cv_path_GREP" >&6; }
4139 GREP="$ac_cv_path_GREP"
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4143 $as_echo_n "checking for egrep... " >&6; }
4144 if ${ac_cv_path_EGREP+:} false; then :
4145 $as_echo_n "(cached) " >&6
4146 else
4147 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4148 then ac_cv_path_EGREP="$GREP -E"
4149 else
4150 if test -z "$EGREP"; then
4151 ac_path_EGREP_found=false
4152 # Loop through the user's path and test for each of PROGNAME-LIST
4153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4154 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4156 IFS=$as_save_IFS
4157 test -z "$as_dir" && as_dir=.
4158 for ac_prog in egrep; do
4159 for ac_exec_ext in '' $ac_executable_extensions; do
4160 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4161 as_fn_executable_p "$ac_path_EGREP" || continue
4162 # Check for GNU ac_path_EGREP and select it if it is found.
4163 # Check for GNU $ac_path_EGREP
4164 case `"$ac_path_EGREP" --version 2>&1` in
4165 *GNU*)
4166 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4168 ac_count=0
4169 $as_echo_n 0123456789 >"conftest.in"
4170 while :
4172 cat "conftest.in" "conftest.in" >"conftest.tmp"
4173 mv "conftest.tmp" "conftest.in"
4174 cp "conftest.in" "conftest.nl"
4175 $as_echo 'EGREP' >> "conftest.nl"
4176 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4177 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4178 as_fn_arith $ac_count + 1 && ac_count=$as_val
4179 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4180 # Best one so far, save it but keep looking for a better one
4181 ac_cv_path_EGREP="$ac_path_EGREP"
4182 ac_path_EGREP_max=$ac_count
4184 # 10*(2^10) chars as input seems more than enough
4185 test $ac_count -gt 10 && break
4186 done
4187 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4188 esac
4190 $ac_path_EGREP_found && break 3
4191 done
4192 done
4193 done
4194 IFS=$as_save_IFS
4195 if test -z "$ac_cv_path_EGREP"; then
4196 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4198 else
4199 ac_cv_path_EGREP=$EGREP
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4205 $as_echo "$ac_cv_path_EGREP" >&6; }
4206 EGREP="$ac_cv_path_EGREP"
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4210 $as_echo_n "checking for ANSI C header files... " >&6; }
4211 if ${ac_cv_header_stdc+:} false; then :
4212 $as_echo_n "(cached) " >&6
4213 else
4214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4215 /* end confdefs.h. */
4216 #include <stdlib.h>
4217 #include <stdarg.h>
4218 #include <string.h>
4219 #include <float.h>
4222 main ()
4226 return 0;
4228 _ACEOF
4229 if ac_fn_c_try_compile "$LINENO"; then :
4230 ac_cv_header_stdc=yes
4231 else
4232 ac_cv_header_stdc=no
4234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4236 if test $ac_cv_header_stdc = yes; then
4237 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239 /* end confdefs.h. */
4240 #include <string.h>
4242 _ACEOF
4243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4244 $EGREP "memchr" >/dev/null 2>&1; then :
4246 else
4247 ac_cv_header_stdc=no
4249 rm -f conftest*
4253 if test $ac_cv_header_stdc = yes; then
4254 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4256 /* end confdefs.h. */
4257 #include <stdlib.h>
4259 _ACEOF
4260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4261 $EGREP "free" >/dev/null 2>&1; then :
4263 else
4264 ac_cv_header_stdc=no
4266 rm -f conftest*
4270 if test $ac_cv_header_stdc = yes; then
4271 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4272 if test "$cross_compiling" = yes; then :
4274 else
4275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276 /* end confdefs.h. */
4277 #include <ctype.h>
4278 #include <stdlib.h>
4279 #if ((' ' & 0x0FF) == 0x020)
4280 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4281 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4282 #else
4283 # define ISLOWER(c) \
4284 (('a' <= (c) && (c) <= 'i') \
4285 || ('j' <= (c) && (c) <= 'r') \
4286 || ('s' <= (c) && (c) <= 'z'))
4287 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4288 #endif
4290 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4292 main ()
4294 int i;
4295 for (i = 0; i < 256; i++)
4296 if (XOR (islower (i), ISLOWER (i))
4297 || toupper (i) != TOUPPER (i))
4298 return 2;
4299 return 0;
4301 _ACEOF
4302 if ac_fn_c_try_run "$LINENO"; then :
4304 else
4305 ac_cv_header_stdc=no
4307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4308 conftest.$ac_objext conftest.beam conftest.$ac_ext
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4314 $as_echo "$ac_cv_header_stdc" >&6; }
4315 if test $ac_cv_header_stdc = yes; then
4317 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4321 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4322 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4323 inttypes.h stdint.h unistd.h
4324 do :
4325 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4326 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4328 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4329 cat >>confdefs.h <<_ACEOF
4330 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4331 _ACEOF
4335 done
4338 ac_fn_c_check_decl "$LINENO" "__UCLIBC__" "ac_cv_have_decl___UCLIBC__" "$ac_includes_default"
4339 if test "x$ac_cv_have_decl___UCLIBC__" = xyes; then :
4341 no_loginfunc_check=1
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: Using uClibc - login() and logout() probably don't work, so we won't use them." >&5
4343 $as_echo "$as_me: Using uClibc - login() and logout() probably don't work, so we won't use them." >&6;}
4348 # Checks for libraries.
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
4350 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
4351 if ${ac_cv_lib_crypt_crypt+:} false; then :
4352 $as_echo_n "(cached) " >&6
4353 else
4354 ac_check_lib_save_LIBS=$LIBS
4355 LIBS="-lcrypt $LIBS"
4356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4357 /* end confdefs.h. */
4359 /* Override any GCC internal prototype to avoid an error.
4360 Use char because int might match the return type of a GCC
4361 builtin and then its argument prototype would still apply. */
4362 #ifdef __cplusplus
4363 extern "C"
4364 #endif
4365 char crypt ();
4367 main ()
4369 return crypt ();
4371 return 0;
4373 _ACEOF
4374 if ac_fn_c_try_link "$LINENO"; then :
4375 ac_cv_lib_crypt_crypt=yes
4376 else
4377 ac_cv_lib_crypt_crypt=no
4379 rm -f core conftest.err conftest.$ac_objext \
4380 conftest$ac_exeext conftest.$ac_ext
4381 LIBS=$ac_check_lib_save_LIBS
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
4384 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
4385 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
4386 CRYPTLIB="-lcrypt"
4391 # Check if zlib is needed
4393 # Check whether --with-zlib was given.
4394 if test "${with_zlib+set}" = set; then :
4395 withval=$with_zlib;
4396 # option is given
4397 if test -d "$withval/lib"; then
4398 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
4399 else
4400 LDFLAGS="-L${withval} ${LDFLAGS}"
4402 if test -d "$withval/include"; then
4403 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
4404 else
4405 CPPFLAGS="-I${withval} ${CPPFLAGS}"
4412 # Check whether --enable-zlib was given.
4413 if test "${enable_zlib+set}" = set; then :
4414 enableval=$enable_zlib;
4415 if test "x$enableval" = "xno"; then
4417 $as_echo "#define DISABLE_ZLIB /**/" >>confdefs.h
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling zlib" >&5
4420 $as_echo "$as_me: Disabling zlib" >&6;}
4421 else
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
4423 $as_echo_n "checking for deflate in -lz... " >&6; }
4424 if ${ac_cv_lib_z_deflate+:} false; then :
4425 $as_echo_n "(cached) " >&6
4426 else
4427 ac_check_lib_save_LIBS=$LIBS
4428 LIBS="-lz $LIBS"
4429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4430 /* end confdefs.h. */
4432 /* Override any GCC internal prototype to avoid an error.
4433 Use char because int might match the return type of a GCC
4434 builtin and then its argument prototype would still apply. */
4435 #ifdef __cplusplus
4436 extern "C"
4437 #endif
4438 char deflate ();
4440 main ()
4442 return deflate ();
4444 return 0;
4446 _ACEOF
4447 if ac_fn_c_try_link "$LINENO"; then :
4448 ac_cv_lib_z_deflate=yes
4449 else
4450 ac_cv_lib_z_deflate=no
4452 rm -f core conftest.err conftest.$ac_objext \
4453 conftest$ac_exeext conftest.$ac_ext
4454 LIBS=$ac_check_lib_save_LIBS
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
4457 $as_echo "$ac_cv_lib_z_deflate" >&6; }
4458 if test "x$ac_cv_lib_z_deflate" = xyes; then :
4459 cat >>confdefs.h <<_ACEOF
4460 #define HAVE_LIBZ 1
4461 _ACEOF
4463 LIBS="-lz $LIBS"
4465 else
4466 as_fn_error $? "*** zlib missing - install first or check config.log ***" "$LINENO" 5
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling zlib" >&5
4470 $as_echo "$as_me: Enabling zlib" >&6;}
4473 else
4475 # if not disabled, check for zlib
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
4477 $as_echo_n "checking for deflate in -lz... " >&6; }
4478 if ${ac_cv_lib_z_deflate+:} false; then :
4479 $as_echo_n "(cached) " >&6
4480 else
4481 ac_check_lib_save_LIBS=$LIBS
4482 LIBS="-lz $LIBS"
4483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4484 /* end confdefs.h. */
4486 /* Override any GCC internal prototype to avoid an error.
4487 Use char because int might match the return type of a GCC
4488 builtin and then its argument prototype would still apply. */
4489 #ifdef __cplusplus
4490 extern "C"
4491 #endif
4492 char deflate ();
4494 main ()
4496 return deflate ();
4498 return 0;
4500 _ACEOF
4501 if ac_fn_c_try_link "$LINENO"; then :
4502 ac_cv_lib_z_deflate=yes
4503 else
4504 ac_cv_lib_z_deflate=no
4506 rm -f core conftest.err conftest.$ac_objext \
4507 conftest$ac_exeext conftest.$ac_ext
4508 LIBS=$ac_check_lib_save_LIBS
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
4511 $as_echo "$ac_cv_lib_z_deflate" >&6; }
4512 if test "x$ac_cv_lib_z_deflate" = xyes; then :
4513 cat >>confdefs.h <<_ACEOF
4514 #define HAVE_LIBZ 1
4515 _ACEOF
4517 LIBS="-lz $LIBS"
4519 else
4520 as_fn_error $? "*** zlib missing - install first or check config.log ***" "$LINENO" 5
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling zlib" >&5
4524 $as_echo "$as_me: Enabling zlib" >&6;}
4530 # Check if pam is needed
4532 # Check whether --with-pam was given.
4533 if test "${with_pam+set}" = set; then :
4534 withval=$with_pam;
4535 # option is given
4536 if test -d "$withval/lib"; then
4537 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
4538 else
4539 LDFLAGS="-L${withval} ${LDFLAGS}"
4541 if test -d "$withval/include"; then
4542 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
4543 else
4544 CPPFLAGS="-I${withval} ${CPPFLAGS}"
4552 # Check whether --enable-pam was given.
4553 if test "${enable_pam+set}" = set; then :
4554 enableval=$enable_pam;
4555 if test "x$enableval" = "xyes"; then
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_authenticate in -lpam" >&5
4557 $as_echo_n "checking for pam_authenticate in -lpam... " >&6; }
4558 if ${ac_cv_lib_pam_pam_authenticate+:} false; then :
4559 $as_echo_n "(cached) " >&6
4560 else
4561 ac_check_lib_save_LIBS=$LIBS
4562 LIBS="-lpam $LIBS"
4563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4564 /* end confdefs.h. */
4566 /* Override any GCC internal prototype to avoid an error.
4567 Use char because int might match the return type of a GCC
4568 builtin and then its argument prototype would still apply. */
4569 #ifdef __cplusplus
4570 extern "C"
4571 #endif
4572 char pam_authenticate ();
4574 main ()
4576 return pam_authenticate ();
4578 return 0;
4580 _ACEOF
4581 if ac_fn_c_try_link "$LINENO"; then :
4582 ac_cv_lib_pam_pam_authenticate=yes
4583 else
4584 ac_cv_lib_pam_pam_authenticate=no
4586 rm -f core conftest.err conftest.$ac_objext \
4587 conftest$ac_exeext conftest.$ac_ext
4588 LIBS=$ac_check_lib_save_LIBS
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_authenticate" >&5
4591 $as_echo "$ac_cv_lib_pam_pam_authenticate" >&6; }
4592 if test "x$ac_cv_lib_pam_pam_authenticate" = xyes; then :
4593 cat >>confdefs.h <<_ACEOF
4594 #define HAVE_LIBPAM 1
4595 _ACEOF
4597 LIBS="-lpam $LIBS"
4599 else
4600 as_fn_error $? "*** PAM missing - install first or check config.log ***" "$LINENO" 5
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling PAM" >&5
4604 $as_echo "$as_me: Enabling PAM" >&6;}
4605 for ac_func in pam_fail_delay
4606 do :
4607 ac_fn_c_check_func "$LINENO" "pam_fail_delay" "ac_cv_func_pam_fail_delay"
4608 if test "x$ac_cv_func_pam_fail_delay" = xyes; then :
4609 cat >>confdefs.h <<_ACEOF
4610 #define HAVE_PAM_FAIL_DELAY 1
4611 _ACEOF
4614 done
4616 else
4618 $as_echo "#define DISABLE_PAM /**/" >>confdefs.h
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling PAM" >&5
4621 $as_echo "$as_me: Disabling PAM" >&6;}
4624 else
4626 # disable it by default
4628 $as_echo "#define DISABLE_PAM /**/" >>confdefs.h
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling PAM" >&5
4631 $as_echo "$as_me: Disabling PAM" >&6;}
4637 # Check whether --enable-openpty was given.
4638 if test "${enable_openpty+set}" = set; then :
4639 enableval=$enable_openpty;
4640 if test "x$enableval" = "xno"; then
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: Not using openpty" >&5
4642 $as_echo "$as_me: Not using openpty" >&6;}
4643 else
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: Using openpty if available" >&5
4645 $as_echo "$as_me: Using openpty if available" >&6;}
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
4647 $as_echo_n "checking for library containing openpty... " >&6; }
4648 if ${ac_cv_search_openpty+:} false; then :
4649 $as_echo_n "(cached) " >&6
4650 else
4651 ac_func_search_save_LIBS=$LIBS
4652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4653 /* end confdefs.h. */
4655 /* Override any GCC internal prototype to avoid an error.
4656 Use char because int might match the return type of a GCC
4657 builtin and then its argument prototype would still apply. */
4658 #ifdef __cplusplus
4659 extern "C"
4660 #endif
4661 char openpty ();
4663 main ()
4665 return openpty ();
4667 return 0;
4669 _ACEOF
4670 for ac_lib in '' util; do
4671 if test -z "$ac_lib"; then
4672 ac_res="none required"
4673 else
4674 ac_res=-l$ac_lib
4675 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4677 if ac_fn_c_try_link "$LINENO"; then :
4678 ac_cv_search_openpty=$ac_res
4680 rm -f core conftest.err conftest.$ac_objext \
4681 conftest$ac_exeext
4682 if ${ac_cv_search_openpty+:} false; then :
4683 break
4685 done
4686 if ${ac_cv_search_openpty+:} false; then :
4688 else
4689 ac_cv_search_openpty=no
4691 rm conftest.$ac_ext
4692 LIBS=$ac_func_search_save_LIBS
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
4695 $as_echo "$ac_cv_search_openpty" >&6; }
4696 ac_res=$ac_cv_search_openpty
4697 if test "$ac_res" != no; then :
4698 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4700 $as_echo "#define HAVE_OPENPTY /**/" >>confdefs.h
4706 else
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: Using openpty if available" >&5
4709 $as_echo "$as_me: Using openpty if available" >&6;}
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
4711 $as_echo_n "checking for library containing openpty... " >&6; }
4712 if ${ac_cv_search_openpty+:} false; then :
4713 $as_echo_n "(cached) " >&6
4714 else
4715 ac_func_search_save_LIBS=$LIBS
4716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4717 /* end confdefs.h. */
4719 /* Override any GCC internal prototype to avoid an error.
4720 Use char because int might match the return type of a GCC
4721 builtin and then its argument prototype would still apply. */
4722 #ifdef __cplusplus
4723 extern "C"
4724 #endif
4725 char openpty ();
4727 main ()
4729 return openpty ();
4731 return 0;
4733 _ACEOF
4734 for ac_lib in '' util; do
4735 if test -z "$ac_lib"; then
4736 ac_res="none required"
4737 else
4738 ac_res=-l$ac_lib
4739 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4741 if ac_fn_c_try_link "$LINENO"; then :
4742 ac_cv_search_openpty=$ac_res
4744 rm -f core conftest.err conftest.$ac_objext \
4745 conftest$ac_exeext
4746 if ${ac_cv_search_openpty+:} false; then :
4747 break
4749 done
4750 if ${ac_cv_search_openpty+:} false; then :
4752 else
4753 ac_cv_search_openpty=no
4755 rm conftest.$ac_ext
4756 LIBS=$ac_func_search_save_LIBS
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
4759 $as_echo "$ac_cv_search_openpty" >&6; }
4760 ac_res=$ac_cv_search_openpty
4761 if test "$ac_res" != no; then :
4762 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4763 $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
4773 # Check whether --enable-syslog was given.
4774 if test "${enable_syslog+set}" = set; then :
4775 enableval=$enable_syslog;
4776 if test "x$enableval" = "xno"; then
4778 $as_echo "#define DISABLE_SYSLOG /**/" >>confdefs.h
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling syslog" >&5
4781 $as_echo "$as_me: Disabling syslog" >&6;}
4782 else
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling syslog" >&5
4784 $as_echo "$as_me: Enabling syslog" >&6;}
4787 else
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling syslog" >&5
4790 $as_echo "$as_me: Enabling syslog" >&6;}
4796 # Check whether --enable-shadow was given.
4797 if test "${enable_shadow+set}" = set; then :
4798 enableval=$enable_shadow;
4799 if test "x$enableval" = "xno"; then
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: Not using shadow passwords" >&5
4801 $as_echo "$as_me: Not using shadow passwords" >&6;}
4802 else
4803 for ac_header in shadow.h
4804 do :
4805 ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
4806 if test "x$ac_cv_header_shadow_h" = xyes; then :
4807 cat >>confdefs.h <<_ACEOF
4808 #define HAVE_SHADOW_H 1
4809 _ACEOF
4813 done
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: Using shadow passwords if available" >&5
4816 $as_echo "$as_me: Using shadow passwords if available" >&6;}
4819 else
4821 for ac_header in shadow.h
4822 do :
4823 ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
4824 if test "x$ac_cv_header_shadow_h" = xyes; then :
4825 cat >>confdefs.h <<_ACEOF
4826 #define HAVE_SHADOW_H 1
4827 _ACEOF
4831 done
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: Using shadow passwords if available" >&5
4834 $as_echo "$as_me: Using shadow passwords if available" >&6;}
4841 # Checks for header files.
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4843 $as_echo_n "checking for ANSI C header files... " >&6; }
4844 if ${ac_cv_header_stdc+:} false; then :
4845 $as_echo_n "(cached) " >&6
4846 else
4847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4848 /* end confdefs.h. */
4849 #include <stdlib.h>
4850 #include <stdarg.h>
4851 #include <string.h>
4852 #include <float.h>
4855 main ()
4859 return 0;
4861 _ACEOF
4862 if ac_fn_c_try_compile "$LINENO"; then :
4863 ac_cv_header_stdc=yes
4864 else
4865 ac_cv_header_stdc=no
4867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4869 if test $ac_cv_header_stdc = yes; then
4870 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4872 /* end confdefs.h. */
4873 #include <string.h>
4875 _ACEOF
4876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4877 $EGREP "memchr" >/dev/null 2>&1; then :
4879 else
4880 ac_cv_header_stdc=no
4882 rm -f conftest*
4886 if test $ac_cv_header_stdc = yes; then
4887 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4889 /* end confdefs.h. */
4890 #include <stdlib.h>
4892 _ACEOF
4893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4894 $EGREP "free" >/dev/null 2>&1; then :
4896 else
4897 ac_cv_header_stdc=no
4899 rm -f conftest*
4903 if test $ac_cv_header_stdc = yes; then
4904 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4905 if test "$cross_compiling" = yes; then :
4907 else
4908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4909 /* end confdefs.h. */
4910 #include <ctype.h>
4911 #include <stdlib.h>
4912 #if ((' ' & 0x0FF) == 0x020)
4913 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4914 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4915 #else
4916 # define ISLOWER(c) \
4917 (('a' <= (c) && (c) <= 'i') \
4918 || ('j' <= (c) && (c) <= 'r') \
4919 || ('s' <= (c) && (c) <= 'z'))
4920 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4921 #endif
4923 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4925 main ()
4927 int i;
4928 for (i = 0; i < 256; i++)
4929 if (XOR (islower (i), ISLOWER (i))
4930 || toupper (i) != TOUPPER (i))
4931 return 2;
4932 return 0;
4934 _ACEOF
4935 if ac_fn_c_try_run "$LINENO"; then :
4937 else
4938 ac_cv_header_stdc=no
4940 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4941 conftest.$ac_objext conftest.beam conftest.$ac_ext
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4947 $as_echo "$ac_cv_header_stdc" >&6; }
4948 if test $ac_cv_header_stdc = yes; then
4950 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4955 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4956 if ${ac_cv_header_sys_wait_h+:} false; then :
4957 $as_echo_n "(cached) " >&6
4958 else
4959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4960 /* end confdefs.h. */
4961 #include <sys/types.h>
4962 #include <sys/wait.h>
4963 #ifndef WEXITSTATUS
4964 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4965 #endif
4966 #ifndef WIFEXITED
4967 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4968 #endif
4971 main ()
4973 int s;
4974 wait (&s);
4975 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4977 return 0;
4979 _ACEOF
4980 if ac_fn_c_try_compile "$LINENO"; then :
4981 ac_cv_header_sys_wait_h=yes
4982 else
4983 ac_cv_header_sys_wait_h=no
4985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4988 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
4989 if test $ac_cv_header_sys_wait_h = yes; then
4991 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4995 for ac_header in fcntl.h limits.h netinet/in.h netinet/tcp.h stdlib.h string.h sys/socket.h sys/time.h termios.h unistd.h crypt.h pty.h ioctl.h libutil.h libgen.h inttypes.h stropts.h utmp.h utmpx.h lastlog.h paths.h util.h netdb.h security/pam_appl.h pam/pam_appl.h netinet/in_systm.h sys/uio.h
4996 do :
4997 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4998 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4999 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5000 cat >>confdefs.h <<_ACEOF
5001 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5002 _ACEOF
5006 done
5009 # Checks for typedefs, structures, and compiler characteristics.
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5011 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5012 if ${ac_cv_c_const+:} false; then :
5013 $as_echo_n "(cached) " >&6
5014 else
5015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5016 /* end confdefs.h. */
5019 main ()
5022 #ifndef __cplusplus
5023 /* Ultrix mips cc rejects this sort of thing. */
5024 typedef int charset[2];
5025 const charset cs = { 0, 0 };
5026 /* SunOS 4.1.1 cc rejects this. */
5027 char const *const *pcpcc;
5028 char **ppc;
5029 /* NEC SVR4.0.2 mips cc rejects this. */
5030 struct point {int x, y;};
5031 static struct point const zero = {0,0};
5032 /* AIX XL C 1.02.0.0 rejects this.
5033 It does not let you subtract one const X* pointer from another in
5034 an arm of an if-expression whose if-part is not a constant
5035 expression */
5036 const char *g = "string";
5037 pcpcc = &g + (g ? g-g : 0);
5038 /* HPUX 7.0 cc rejects these. */
5039 ++pcpcc;
5040 ppc = (char**) pcpcc;
5041 pcpcc = (char const *const *) ppc;
5042 { /* SCO 3.2v4 cc rejects this sort of thing. */
5043 char tx;
5044 char *t = &tx;
5045 char const *s = 0 ? (char *) 0 : (char const *) 0;
5047 *t++ = 0;
5048 if (s) return 0;
5050 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5051 int x[] = {25, 17};
5052 const int *foo = &x[0];
5053 ++foo;
5055 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5056 typedef const int *iptr;
5057 iptr p = 0;
5058 ++p;
5060 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5061 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5062 struct s { int j; const int *ap[3]; } bx;
5063 struct s *b = &bx; b->j = 5;
5065 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5066 const int foo = 10;
5067 if (!foo) return 0;
5069 return !cs[0] && !zero.x;
5070 #endif
5073 return 0;
5075 _ACEOF
5076 if ac_fn_c_try_compile "$LINENO"; then :
5077 ac_cv_c_const=yes
5078 else
5079 ac_cv_c_const=no
5081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5084 $as_echo "$ac_cv_c_const" >&6; }
5085 if test $ac_cv_c_const = no; then
5087 $as_echo "#define const /**/" >>confdefs.h
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5092 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5093 if ${ac_cv_type_uid_t+:} false; then :
5094 $as_echo_n "(cached) " >&6
5095 else
5096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5097 /* end confdefs.h. */
5098 #include <sys/types.h>
5100 _ACEOF
5101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5102 $EGREP "uid_t" >/dev/null 2>&1; then :
5103 ac_cv_type_uid_t=yes
5104 else
5105 ac_cv_type_uid_t=no
5107 rm -f conftest*
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5111 $as_echo "$ac_cv_type_uid_t" >&6; }
5112 if test $ac_cv_type_uid_t = no; then
5114 $as_echo "#define uid_t int" >>confdefs.h
5117 $as_echo "#define gid_t int" >>confdefs.h
5121 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5122 if test "x$ac_cv_type_mode_t" = xyes; then :
5124 else
5126 cat >>confdefs.h <<_ACEOF
5127 #define mode_t int
5128 _ACEOF
5132 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5133 if test "x$ac_cv_type_pid_t" = xyes; then :
5135 else
5137 cat >>confdefs.h <<_ACEOF
5138 #define pid_t int
5139 _ACEOF
5143 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5144 if test "x$ac_cv_type_size_t" = xyes; then :
5146 else
5148 cat >>confdefs.h <<_ACEOF
5149 #define size_t unsigned int
5150 _ACEOF
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5155 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5156 if ${ac_cv_header_time+:} false; then :
5157 $as_echo_n "(cached) " >&6
5158 else
5159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5160 /* end confdefs.h. */
5161 #include <sys/types.h>
5162 #include <sys/time.h>
5163 #include <time.h>
5166 main ()
5168 if ((struct tm *) 0)
5169 return 0;
5171 return 0;
5173 _ACEOF
5174 if ac_fn_c_try_compile "$LINENO"; then :
5175 ac_cv_header_time=yes
5176 else
5177 ac_cv_header_time=no
5179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5182 $as_echo "$ac_cv_header_time" >&6; }
5183 if test $ac_cv_header_time = yes; then
5185 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5190 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
5191 if test "x$ac_cv_type_uint16_t" = xyes; then :
5193 cat >>confdefs.h <<_ACEOF
5194 #define HAVE_UINT16_T 1
5195 _ACEOF
5199 ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
5200 if test "x$ac_cv_type_u_int16_t" = xyes; then :
5202 cat >>confdefs.h <<_ACEOF
5203 #define HAVE_U_INT16_T 1
5204 _ACEOF
5208 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "$ac_includes_default"
5209 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
5211 cat >>confdefs.h <<_ACEOF
5212 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
5213 _ACEOF
5218 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
5219 #include <sys/socket.h>
5221 if test "x$ac_cv_type_socklen_t" = xyes; then :
5223 else
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
5226 $as_echo_n "checking for socklen_t equivalent... " >&6; }
5227 if ${curl_cv_socklen_t_equiv+:} false; then :
5228 $as_echo_n "(cached) " >&6
5229 else
5231 # Systems have either "struct sockaddr *" or
5232 # "void *" as the second argument to getpeername
5233 curl_cv_socklen_t_equiv=
5234 for arg2 in "struct sockaddr" void; do
5235 for t in int size_t unsigned long "unsigned long"; do
5236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5237 /* end confdefs.h. */
5239 #include <sys/types.h>
5240 #include <sys/socket.h>
5242 int getpeername (int, $arg2 *, $t *);
5245 main ()
5248 $t len;
5249 getpeername(0,0,&len);
5252 return 0;
5254 _ACEOF
5255 if ac_fn_c_try_compile "$LINENO"; then :
5257 curl_cv_socklen_t_equiv="$t"
5258 break
5261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5262 done
5263 done
5265 if test "x$curl_cv_socklen_t_equiv" = x; then
5266 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_socklen_t_equiv" >&5
5272 $as_echo "$curl_cv_socklen_t_equiv" >&6; }
5274 cat >>confdefs.h <<_ACEOF
5275 #define socklen_t $curl_cv_socklen_t_equiv
5276 _ACEOF
5281 # for the fake-rfc2553 stuff - straight from OpenSSH
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
5284 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
5285 if ${ac_cv_have_struct_sockaddr_storage+:} false; then :
5286 $as_echo_n "(cached) " >&6
5287 else
5289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5290 /* end confdefs.h. */
5292 #include <sys/types.h>
5293 #include <sys/socket.h>
5296 main ()
5298 struct sockaddr_storage s;
5300 return 0;
5302 _ACEOF
5303 if ac_fn_c_try_compile "$LINENO"; then :
5304 ac_cv_have_struct_sockaddr_storage="yes"
5305 else
5306 ac_cv_have_struct_sockaddr_storage="no"
5309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_storage" >&5
5313 $as_echo "$ac_cv_have_struct_sockaddr_storage" >&6; }
5314 if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
5315 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6" >&5
5320 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
5321 if ${ac_cv_have_struct_sockaddr_in6+:} false; then :
5322 $as_echo_n "(cached) " >&6
5323 else
5325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5326 /* end confdefs.h. */
5328 #include <sys/types.h>
5329 #include <netinet/in.h>
5332 main ()
5334 struct sockaddr_in6 s; s.sin6_family = 0;
5336 return 0;
5338 _ACEOF
5339 if ac_fn_c_try_compile "$LINENO"; then :
5340 ac_cv_have_struct_sockaddr_in6="yes"
5341 else
5342 ac_cv_have_struct_sockaddr_in6="no"
5345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_in6" >&5
5349 $as_echo "$ac_cv_have_struct_sockaddr_in6" >&6; }
5350 if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
5352 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 /**/" >>confdefs.h
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct in6_addr" >&5
5357 $as_echo_n "checking for struct in6_addr... " >&6; }
5358 if ${ac_cv_have_struct_in6_addr+:} false; then :
5359 $as_echo_n "(cached) " >&6
5360 else
5362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5363 /* end confdefs.h. */
5365 #include <sys/types.h>
5366 #include <netinet/in.h>
5369 main ()
5371 struct in6_addr s; s.s6_addr[0] = 0;
5373 return 0;
5375 _ACEOF
5376 if ac_fn_c_try_compile "$LINENO"; then :
5377 ac_cv_have_struct_in6_addr="yes"
5378 else
5379 ac_cv_have_struct_in6_addr="no"
5382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_in6_addr" >&5
5386 $as_echo "$ac_cv_have_struct_in6_addr" >&6; }
5387 if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
5389 $as_echo "#define HAVE_STRUCT_IN6_ADDR /**/" >>confdefs.h
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5
5394 $as_echo_n "checking for struct addrinfo... " >&6; }
5395 if ${ac_cv_have_struct_addrinfo+:} false; then :
5396 $as_echo_n "(cached) " >&6
5397 else
5399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5400 /* end confdefs.h. */
5402 #include <sys/types.h>
5403 #include <sys/socket.h>
5404 #include <netdb.h>
5407 main ()
5409 struct addrinfo s; s.ai_flags = AI_PASSIVE;
5411 return 0;
5413 _ACEOF
5414 if ac_fn_c_try_compile "$LINENO"; then :
5415 ac_cv_have_struct_addrinfo="yes"
5416 else
5417 ac_cv_have_struct_addrinfo="no"
5420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_addrinfo" >&5
5424 $as_echo "$ac_cv_have_struct_addrinfo" >&6; }
5425 if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
5427 $as_echo "#define HAVE_STRUCT_ADDRINFO /**/" >>confdefs.h
5432 # IRIX has a const char return value for gai_strerror()
5433 for ac_func in gai_strerror
5434 do :
5435 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
5436 if test "x$ac_cv_func_gai_strerror" = xyes; then :
5437 cat >>confdefs.h <<_ACEOF
5438 #define HAVE_GAI_STRERROR 1
5439 _ACEOF
5441 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
5443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5444 /* end confdefs.h. */
5446 #include <sys/types.h>
5447 #include <sys/socket.h>
5448 #include <netdb.h>
5450 const char *gai_strerror(int);
5452 main ()
5455 char *str;
5457 str = gai_strerror(0);
5459 return 0;
5461 _ACEOF
5462 if ac_fn_c_try_compile "$LINENO"; then :
5465 $as_echo "#define HAVE_CONST_GAI_STRERROR_PROTO 1" >>confdefs.h
5468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5470 done
5473 # for loginrec.c
5475 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" "
5476 #include <sys/types.h>
5477 #if HAVE_UTMP_H
5478 #include <utmp.h>
5479 #endif
5482 if test "x$ac_cv_member_struct_utmp_ut_host" = xyes; then :
5484 cat >>confdefs.h <<_ACEOF
5485 #define HAVE_STRUCT_UTMP_UT_HOST 1
5486 _ACEOF
5490 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" "
5491 #include <sys/types.h>
5492 #if HAVE_UTMP_H
5493 #include <utmp.h>
5494 #endif
5497 if test "x$ac_cv_member_struct_utmp_ut_pid" = xyes; then :
5499 cat >>confdefs.h <<_ACEOF
5500 #define HAVE_STRUCT_UTMP_UT_PID 1
5501 _ACEOF
5505 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_type" "ac_cv_member_struct_utmp_ut_type" "
5506 #include <sys/types.h>
5507 #if HAVE_UTMP_H
5508 #include <utmp.h>
5509 #endif
5512 if test "x$ac_cv_member_struct_utmp_ut_type" = xyes; then :
5514 cat >>confdefs.h <<_ACEOF
5515 #define HAVE_STRUCT_UTMP_UT_TYPE 1
5516 _ACEOF
5520 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_tv" "ac_cv_member_struct_utmp_ut_tv" "
5521 #include <sys/types.h>
5522 #if HAVE_UTMP_H
5523 #include <utmp.h>
5524 #endif
5527 if test "x$ac_cv_member_struct_utmp_ut_tv" = xyes; then :
5529 cat >>confdefs.h <<_ACEOF
5530 #define HAVE_STRUCT_UTMP_UT_TV 1
5531 _ACEOF
5535 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_id" "ac_cv_member_struct_utmp_ut_id" "
5536 #include <sys/types.h>
5537 #if HAVE_UTMP_H
5538 #include <utmp.h>
5539 #endif
5542 if test "x$ac_cv_member_struct_utmp_ut_id" = xyes; then :
5544 cat >>confdefs.h <<_ACEOF
5545 #define HAVE_STRUCT_UTMP_UT_ID 1
5546 _ACEOF
5550 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_addr" "ac_cv_member_struct_utmp_ut_addr" "
5551 #include <sys/types.h>
5552 #if HAVE_UTMP_H
5553 #include <utmp.h>
5554 #endif
5557 if test "x$ac_cv_member_struct_utmp_ut_addr" = xyes; then :
5559 cat >>confdefs.h <<_ACEOF
5560 #define HAVE_STRUCT_UTMP_UT_ADDR 1
5561 _ACEOF
5565 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_addr_v6" "ac_cv_member_struct_utmp_ut_addr_v6" "
5566 #include <sys/types.h>
5567 #if HAVE_UTMP_H
5568 #include <utmp.h>
5569 #endif
5572 if test "x$ac_cv_member_struct_utmp_ut_addr_v6" = xyes; then :
5574 cat >>confdefs.h <<_ACEOF
5575 #define HAVE_STRUCT_UTMP_UT_ADDR_V6 1
5576 _ACEOF
5580 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_exit" "ac_cv_member_struct_utmp_ut_exit" "
5581 #include <sys/types.h>
5582 #if HAVE_UTMP_H
5583 #include <utmp.h>
5584 #endif
5587 if test "x$ac_cv_member_struct_utmp_ut_exit" = xyes; then :
5589 cat >>confdefs.h <<_ACEOF
5590 #define HAVE_STRUCT_UTMP_UT_EXIT 1
5591 _ACEOF
5595 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_time" "ac_cv_member_struct_utmp_ut_time" "
5596 #include <sys/types.h>
5597 #if HAVE_UTMP_H
5598 #include <utmp.h>
5599 #endif
5602 if test "x$ac_cv_member_struct_utmp_ut_time" = xyes; then :
5604 cat >>confdefs.h <<_ACEOF
5605 #define HAVE_STRUCT_UTMP_UT_TIME 1
5606 _ACEOF
5612 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_host" "ac_cv_member_struct_utmpx_ut_host" "
5613 #include <sys/types.h>
5614 #include <sys/socket.h>
5615 #if HAVE_UTMPX_H
5616 #include <utmpx.h>
5617 #endif
5620 if test "x$ac_cv_member_struct_utmpx_ut_host" = xyes; then :
5622 cat >>confdefs.h <<_ACEOF
5623 #define HAVE_STRUCT_UTMPX_UT_HOST 1
5624 _ACEOF
5628 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_syslen" "ac_cv_member_struct_utmpx_ut_syslen" "
5629 #include <sys/types.h>
5630 #include <sys/socket.h>
5631 #if HAVE_UTMPX_H
5632 #include <utmpx.h>
5633 #endif
5636 if test "x$ac_cv_member_struct_utmpx_ut_syslen" = xyes; then :
5638 cat >>confdefs.h <<_ACEOF
5639 #define HAVE_STRUCT_UTMPX_UT_SYSLEN 1
5640 _ACEOF
5644 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_type" "ac_cv_member_struct_utmpx_ut_type" "
5645 #include <sys/types.h>
5646 #include <sys/socket.h>
5647 #if HAVE_UTMPX_H
5648 #include <utmpx.h>
5649 #endif
5652 if test "x$ac_cv_member_struct_utmpx_ut_type" = xyes; then :
5654 cat >>confdefs.h <<_ACEOF
5655 #define HAVE_STRUCT_UTMPX_UT_TYPE 1
5656 _ACEOF
5660 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_id" "ac_cv_member_struct_utmpx_ut_id" "
5661 #include <sys/types.h>
5662 #include <sys/socket.h>
5663 #if HAVE_UTMPX_H
5664 #include <utmpx.h>
5665 #endif
5668 if test "x$ac_cv_member_struct_utmpx_ut_id" = xyes; then :
5670 cat >>confdefs.h <<_ACEOF
5671 #define HAVE_STRUCT_UTMPX_UT_ID 1
5672 _ACEOF
5676 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_addr" "ac_cv_member_struct_utmpx_ut_addr" "
5677 #include <sys/types.h>
5678 #include <sys/socket.h>
5679 #if HAVE_UTMPX_H
5680 #include <utmpx.h>
5681 #endif
5684 if test "x$ac_cv_member_struct_utmpx_ut_addr" = xyes; then :
5686 cat >>confdefs.h <<_ACEOF
5687 #define HAVE_STRUCT_UTMPX_UT_ADDR 1
5688 _ACEOF
5692 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_addr_v6" "ac_cv_member_struct_utmpx_ut_addr_v6" "
5693 #include <sys/types.h>
5694 #include <sys/socket.h>
5695 #if HAVE_UTMPX_H
5696 #include <utmpx.h>
5697 #endif
5700 if test "x$ac_cv_member_struct_utmpx_ut_addr_v6" = xyes; then :
5702 cat >>confdefs.h <<_ACEOF
5703 #define HAVE_STRUCT_UTMPX_UT_ADDR_V6 1
5704 _ACEOF
5708 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_time" "ac_cv_member_struct_utmpx_ut_time" "
5709 #include <sys/types.h>
5710 #include <sys/socket.h>
5711 #if HAVE_UTMPX_H
5712 #include <utmpx.h>
5713 #endif
5716 if test "x$ac_cv_member_struct_utmpx_ut_time" = xyes; then :
5718 cat >>confdefs.h <<_ACEOF
5719 #define HAVE_STRUCT_UTMPX_UT_TIME 1
5720 _ACEOF
5724 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_tv" "ac_cv_member_struct_utmpx_ut_tv" "
5725 #include <sys/types.h>
5726 #include <sys/socket.h>
5727 #if HAVE_UTMPX_H
5728 #include <utmpx.h>
5729 #endif
5732 if test "x$ac_cv_member_struct_utmpx_ut_tv" = xyes; then :
5734 cat >>confdefs.h <<_ACEOF
5735 #define HAVE_STRUCT_UTMPX_UT_TV 1
5736 _ACEOF
5742 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "
5743 #include <sys/types.h>
5744 #include <sys/socket.h>
5747 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
5749 cat >>confdefs.h <<_ACEOF
5750 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
5751 _ACEOF
5757 for ac_func in endutent getutent getutid getutline pututline setutent
5758 do :
5759 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5760 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5761 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5762 cat >>confdefs.h <<_ACEOF
5763 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5764 _ACEOF
5767 done
5769 for ac_func in utmpname
5770 do :
5771 ac_fn_c_check_func "$LINENO" "utmpname" "ac_cv_func_utmpname"
5772 if test "x$ac_cv_func_utmpname" = xyes; then :
5773 cat >>confdefs.h <<_ACEOF
5774 #define HAVE_UTMPNAME 1
5775 _ACEOF
5778 done
5780 for ac_func in endutxent getutxent getutxid getutxline pututxline
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
5790 done
5792 for ac_func in setutxent utmpxname
5793 do :
5794 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5795 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5796 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5797 cat >>confdefs.h <<_ACEOF
5798 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5799 _ACEOF
5802 done
5804 for ac_func in logout updwtmp logwtmp
5805 do :
5806 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5807 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5808 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5809 cat >>confdefs.h <<_ACEOF
5810 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5811 _ACEOF
5814 done
5817 # Check whether --enable-bundled-libtom was given.
5818 if test "${enable_bundled_libtom+set}" = set; then :
5819 enableval=$enable_bundled_libtom;
5820 if test "x$enableval" = "xyes"; then
5821 BUNDLED_LIBTOM=1
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: Forcing bundled libtom*" >&5
5823 $as_echo "$as_me: Forcing bundled libtom*" >&6;}
5824 else
5825 BUNDLED_LIBTOM=0
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for register_cipher in -ltomcrypt" >&5
5827 $as_echo_n "checking for register_cipher in -ltomcrypt... " >&6; }
5828 if ${ac_cv_lib_tomcrypt_register_cipher+:} false; then :
5829 $as_echo_n "(cached) " >&6
5830 else
5831 ac_check_lib_save_LIBS=$LIBS
5832 LIBS="-ltomcrypt $LIBS"
5833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5834 /* end confdefs.h. */
5836 /* Override any GCC internal prototype to avoid an error.
5837 Use char because int might match the return type of a GCC
5838 builtin and then its argument prototype would still apply. */
5839 #ifdef __cplusplus
5840 extern "C"
5841 #endif
5842 char register_cipher ();
5844 main ()
5846 return register_cipher ();
5848 return 0;
5850 _ACEOF
5851 if ac_fn_c_try_link "$LINENO"; then :
5852 ac_cv_lib_tomcrypt_register_cipher=yes
5853 else
5854 ac_cv_lib_tomcrypt_register_cipher=no
5856 rm -f core conftest.err conftest.$ac_objext \
5857 conftest$ac_exeext conftest.$ac_ext
5858 LIBS=$ac_check_lib_save_LIBS
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tomcrypt_register_cipher" >&5
5861 $as_echo "$ac_cv_lib_tomcrypt_register_cipher" >&6; }
5862 if test "x$ac_cv_lib_tomcrypt_register_cipher" = xyes; then :
5863 cat >>confdefs.h <<_ACEOF
5864 #define HAVE_LIBTOMCRYPT 1
5865 _ACEOF
5867 LIBS="-ltomcrypt $LIBS"
5869 else
5870 as_fn_error $? "Missing system libtomcrypt and --disable-bundled-libtom was specified" "$LINENO" 5
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_exptmod in -ltommath" >&5
5874 $as_echo_n "checking for mp_exptmod in -ltommath... " >&6; }
5875 if ${ac_cv_lib_tommath_mp_exptmod+:} false; then :
5876 $as_echo_n "(cached) " >&6
5877 else
5878 ac_check_lib_save_LIBS=$LIBS
5879 LIBS="-ltommath $LIBS"
5880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5881 /* end confdefs.h. */
5883 /* Override any GCC internal prototype to avoid an error.
5884 Use char because int might match the return type of a GCC
5885 builtin and then its argument prototype would still apply. */
5886 #ifdef __cplusplus
5887 extern "C"
5888 #endif
5889 char mp_exptmod ();
5891 main ()
5893 return mp_exptmod ();
5895 return 0;
5897 _ACEOF
5898 if ac_fn_c_try_link "$LINENO"; then :
5899 ac_cv_lib_tommath_mp_exptmod=yes
5900 else
5901 ac_cv_lib_tommath_mp_exptmod=no
5903 rm -f core conftest.err conftest.$ac_objext \
5904 conftest$ac_exeext conftest.$ac_ext
5905 LIBS=$ac_check_lib_save_LIBS
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tommath_mp_exptmod" >&5
5908 $as_echo "$ac_cv_lib_tommath_mp_exptmod" >&6; }
5909 if test "x$ac_cv_lib_tommath_mp_exptmod" = xyes; then :
5910 cat >>confdefs.h <<_ACEOF
5911 #define HAVE_LIBTOMMATH 1
5912 _ACEOF
5914 LIBS="-ltommath $LIBS"
5916 else
5917 as_fn_error $? "Missing system libtomcrypt and --disable-bundled-libtom was specified" "$LINENO" 5
5922 else
5924 BUNDLED_LIBTOM=0
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for register_cipher in -ltomcrypt" >&5
5926 $as_echo_n "checking for register_cipher in -ltomcrypt... " >&6; }
5927 if ${ac_cv_lib_tomcrypt_register_cipher+:} false; then :
5928 $as_echo_n "(cached) " >&6
5929 else
5930 ac_check_lib_save_LIBS=$LIBS
5931 LIBS="-ltomcrypt $LIBS"
5932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5933 /* end confdefs.h. */
5935 /* Override any GCC internal prototype to avoid an error.
5936 Use char because int might match the return type of a GCC
5937 builtin and then its argument prototype would still apply. */
5938 #ifdef __cplusplus
5939 extern "C"
5940 #endif
5941 char register_cipher ();
5943 main ()
5945 return register_cipher ();
5947 return 0;
5949 _ACEOF
5950 if ac_fn_c_try_link "$LINENO"; then :
5951 ac_cv_lib_tomcrypt_register_cipher=yes
5952 else
5953 ac_cv_lib_tomcrypt_register_cipher=no
5955 rm -f core conftest.err conftest.$ac_objext \
5956 conftest$ac_exeext conftest.$ac_ext
5957 LIBS=$ac_check_lib_save_LIBS
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tomcrypt_register_cipher" >&5
5960 $as_echo "$ac_cv_lib_tomcrypt_register_cipher" >&6; }
5961 if test "x$ac_cv_lib_tomcrypt_register_cipher" = xyes; then :
5962 cat >>confdefs.h <<_ACEOF
5963 #define HAVE_LIBTOMCRYPT 1
5964 _ACEOF
5966 LIBS="-ltomcrypt $LIBS"
5968 else
5969 BUNDLED_LIBTOM=1
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_exptmod in -ltommath" >&5
5973 $as_echo_n "checking for mp_exptmod in -ltommath... " >&6; }
5974 if ${ac_cv_lib_tommath_mp_exptmod+:} false; then :
5975 $as_echo_n "(cached) " >&6
5976 else
5977 ac_check_lib_save_LIBS=$LIBS
5978 LIBS="-ltommath $LIBS"
5979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5980 /* end confdefs.h. */
5982 /* Override any GCC internal prototype to avoid an error.
5983 Use char because int might match the return type of a GCC
5984 builtin and then its argument prototype would still apply. */
5985 #ifdef __cplusplus
5986 extern "C"
5987 #endif
5988 char mp_exptmod ();
5990 main ()
5992 return mp_exptmod ();
5994 return 0;
5996 _ACEOF
5997 if ac_fn_c_try_link "$LINENO"; then :
5998 ac_cv_lib_tommath_mp_exptmod=yes
5999 else
6000 ac_cv_lib_tommath_mp_exptmod=no
6002 rm -f core conftest.err conftest.$ac_objext \
6003 conftest$ac_exeext conftest.$ac_ext
6004 LIBS=$ac_check_lib_save_LIBS
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tommath_mp_exptmod" >&5
6007 $as_echo "$ac_cv_lib_tommath_mp_exptmod" >&6; }
6008 if test "x$ac_cv_lib_tommath_mp_exptmod" = xyes; then :
6009 cat >>confdefs.h <<_ACEOF
6010 #define HAVE_LIBTOMMATH 1
6011 _ACEOF
6013 LIBS="-ltommath $LIBS"
6015 else
6016 BUNDLED_LIBTOM=1
6024 if test $BUNDLED_LIBTOM = 1 ; then
6026 $as_echo "#define BUNDLED_LIBTOM /**/" >>confdefs.h
6033 # Check whether --enable-lastlog was given.
6034 if test "${enable_lastlog+set}" = set; then :
6035 enableval=$enable_lastlog;
6036 $as_echo "#define DISABLE_LASTLOG /**/" >>confdefs.h
6041 # Check whether --enable-utmp was given.
6042 if test "${enable_utmp+set}" = set; then :
6043 enableval=$enable_utmp;
6044 $as_echo "#define DISABLE_UTMP /**/" >>confdefs.h
6049 # Check whether --enable-utmpx was given.
6050 if test "${enable_utmpx+set}" = set; then :
6051 enableval=$enable_utmpx;
6052 $as_echo "#define DISABLE_UTMPX /**/" >>confdefs.h
6057 # Check whether --enable-wtmp was given.
6058 if test "${enable_wtmp+set}" = set; then :
6059 enableval=$enable_wtmp;
6060 $as_echo "#define DISABLE_WTMP /**/" >>confdefs.h
6065 # Check whether --enable-wtmpx was given.
6066 if test "${enable_wtmpx+set}" = set; then :
6067 enableval=$enable_wtmpx;
6068 $as_echo "#define DISABLE_WTMPX /**/" >>confdefs.h
6073 # Check whether --enable-loginfunc was given.
6074 if test "${enable_loginfunc+set}" = set; then :
6075 enableval=$enable_loginfunc; no_loginfunc_check=1
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: Not using login() etc" >&5
6077 $as_echo "$as_me: Not using login() etc" >&6;}
6081 # Check whether --enable-pututline was given.
6082 if test "${enable_pututline+set}" = set; then :
6083 enableval=$enable_pututline;
6084 $as_echo "#define DISABLE_PUTUTLINE /**/" >>confdefs.h
6089 # Check whether --enable-pututxline was given.
6090 if test "${enable_pututxline+set}" = set; then :
6091 enableval=$enable_pututxline;
6092 $as_echo "#define DISABLE_PUTUTXLINE /**/" >>confdefs.h
6098 # Check whether --with-lastlog was given.
6099 if test "${with_lastlog+set}" = set; then :
6100 withval=$with_lastlog;
6101 if test "x$withval" = "xno" ; then
6102 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
6104 else
6105 conf_lastlog_location=$withval
6112 if test -z "$no_loginfunc_check"; then
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing login" >&5
6114 $as_echo_n "checking for library containing login... " >&6; }
6115 if ${ac_cv_search_login+:} false; then :
6116 $as_echo_n "(cached) " >&6
6117 else
6118 ac_func_search_save_LIBS=$LIBS
6119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6120 /* end confdefs.h. */
6122 /* Override any GCC internal prototype to avoid an error.
6123 Use char because int might match the return type of a GCC
6124 builtin and then its argument prototype would still apply. */
6125 #ifdef __cplusplus
6126 extern "C"
6127 #endif
6128 char login ();
6130 main ()
6132 return login ();
6134 return 0;
6136 _ACEOF
6137 for ac_lib in '' util bsd; do
6138 if test -z "$ac_lib"; then
6139 ac_res="none required"
6140 else
6141 ac_res=-l$ac_lib
6142 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6144 if ac_fn_c_try_link "$LINENO"; then :
6145 ac_cv_search_login=$ac_res
6147 rm -f core conftest.err conftest.$ac_objext \
6148 conftest$ac_exeext
6149 if ${ac_cv_search_login+:} false; then :
6150 break
6152 done
6153 if ${ac_cv_search_login+:} false; then :
6155 else
6156 ac_cv_search_login=no
6158 rm conftest.$ac_ext
6159 LIBS=$ac_func_search_save_LIBS
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_login" >&5
6162 $as_echo "$ac_cv_search_login" >&6; }
6163 ac_res=$ac_cv_search_login
6164 if test "$ac_res" != no; then :
6165 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6167 $as_echo "#define HAVE_LOGIN /**/" >>confdefs.h
6171 for ac_func in logout updwtmp logwtmp
6172 do :
6173 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6174 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6175 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6176 cat >>confdefs.h <<_ACEOF
6177 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6178 _ACEOF
6181 done
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines LASTLOG_FILE" >&5
6187 $as_echo_n "checking if your system defines LASTLOG_FILE... " >&6; }
6188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6189 /* end confdefs.h. */
6191 #include <sys/types.h>
6192 #include <utmp.h>
6193 #ifdef HAVE_LASTLOG_H
6194 # include <lastlog.h>
6195 #endif
6196 #ifdef HAVE_PATHS_H
6197 # include <paths.h>
6198 #endif
6199 #ifdef HAVE_LOGIN_H
6200 # include <login.h>
6201 #endif
6204 main ()
6206 char *lastlog = LASTLOG_FILE;
6208 return 0;
6210 _ACEOF
6211 if ac_fn_c_try_compile "$LINENO"; then :
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6213 $as_echo "yes" >&6; }
6214 else
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6217 $as_echo "no" >&6; }
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines _PATH_LASTLOG" >&5
6219 $as_echo_n "checking if your system defines _PATH_LASTLOG... " >&6; }
6220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6221 /* end confdefs.h. */
6223 #include <sys/types.h>
6224 #include <utmp.h>
6225 #ifdef HAVE_LASTLOG_H
6226 # include <lastlog.h>
6227 #endif
6228 #ifdef HAVE_PATHS_H
6229 # include <paths.h>
6230 #endif
6233 main ()
6235 char *lastlog = _PATH_LASTLOG;
6237 return 0;
6239 _ACEOF
6240 if ac_fn_c_try_compile "$LINENO"; then :
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6242 $as_echo "yes" >&6; }
6243 else
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6246 $as_echo "no" >&6; }
6247 system_lastlog_path=no
6250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6256 if test -z "$conf_lastlog_location"; then
6257 if test x"$system_lastlog_path" = x"no" ; then
6258 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
6259 if (test -d "$f" || test -f "$f") ; then
6260 conf_lastlog_location=$f
6262 done
6263 if test -z "$conf_lastlog_location"; then
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Cannot find lastlog **" >&5
6265 $as_echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
6270 if test -n "$conf_lastlog_location"; then
6272 cat >>confdefs.h <<_ACEOF
6273 #define CONF_LASTLOG_FILE "$conf_lastlog_location"
6274 _ACEOF
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines UTMP_FILE" >&5
6279 $as_echo_n "checking if your system defines UTMP_FILE... " >&6; }
6280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6281 /* end confdefs.h. */
6283 #include <sys/types.h>
6284 #include <utmp.h>
6285 #ifdef HAVE_PATHS_H
6286 # include <paths.h>
6287 #endif
6290 main ()
6292 char *utmp = UTMP_FILE;
6294 return 0;
6296 _ACEOF
6297 if ac_fn_c_try_compile "$LINENO"; then :
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6299 $as_echo "yes" >&6; }
6300 else
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6302 $as_echo "no" >&6; }
6303 system_utmp_path=no
6306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6307 if test -z "$conf_utmp_location"; then
6308 if test x"$system_utmp_path" = x"no" ; then
6309 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
6310 if test -f $f ; then
6311 conf_utmp_location=$f
6313 done
6314 if test -z "$conf_utmp_location"; then
6315 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
6320 if test -n "$conf_utmp_location"; then
6322 cat >>confdefs.h <<_ACEOF
6323 #define CONF_UTMP_FILE "$conf_utmp_location"
6324 _ACEOF
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMP_FILE" >&5
6329 $as_echo_n "checking if your system defines WTMP_FILE... " >&6; }
6330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6331 /* end confdefs.h. */
6333 #include <sys/types.h>
6334 #include <utmp.h>
6335 #ifdef HAVE_PATHS_H
6336 # include <paths.h>
6337 #endif
6340 main ()
6342 char *wtmp = WTMP_FILE;
6344 return 0;
6346 _ACEOF
6347 if ac_fn_c_try_compile "$LINENO"; then :
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6349 $as_echo "yes" >&6; }
6350 else
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6352 $as_echo "no" >&6; }
6353 system_wtmp_path=no
6356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6357 if test -z "$conf_wtmp_location"; then
6358 if test x"$system_wtmp_path" = x"no" ; then
6359 for f in /usr/adm/wtmp /var/log/wtmp; do
6360 if test -f $f ; then
6361 conf_wtmp_location=$f
6363 done
6364 if test -z "$conf_wtmp_location"; then
6365 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
6370 if test -n "$conf_wtmp_location"; then
6372 cat >>confdefs.h <<_ACEOF
6373 #define CONF_WTMP_FILE "$conf_wtmp_location"
6374 _ACEOF
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines UTMPX_FILE" >&5
6380 $as_echo_n "checking if your system defines UTMPX_FILE... " >&6; }
6381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6382 /* end confdefs.h. */
6384 #include <sys/types.h>
6385 #include <utmp.h>
6386 #ifdef HAVE_UTMPX_H
6387 #include <utmpx.h>
6388 #endif
6389 #ifdef HAVE_PATHS_H
6390 # include <paths.h>
6391 #endif
6394 main ()
6396 char *utmpx = UTMPX_FILE;
6398 return 0;
6400 _ACEOF
6401 if ac_fn_c_try_compile "$LINENO"; then :
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6403 $as_echo "yes" >&6; }
6404 else
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6406 $as_echo "no" >&6; }
6407 system_utmpx_path=no
6410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6411 if test -z "$conf_utmpx_location"; then
6412 if test x"$system_utmpx_path" = x"no" ; then
6413 $as_echo "#define DISABLE_UTMPX 1" >>confdefs.h
6416 else
6418 cat >>confdefs.h <<_ACEOF
6419 #define CONF_UTMPX_FILE "$conf_utmpx_location"
6420 _ACEOF
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMPX_FILE" >&5
6425 $as_echo_n "checking if your system defines WTMPX_FILE... " >&6; }
6426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6427 /* end confdefs.h. */
6429 #include <sys/types.h>
6430 #include <utmp.h>
6431 #ifdef HAVE_UTMPX_H
6432 #include <utmpx.h>
6433 #endif
6434 #ifdef HAVE_PATHS_H
6435 # include <paths.h>
6436 #endif
6439 main ()
6441 char *wtmpx = WTMPX_FILE;
6443 return 0;
6445 _ACEOF
6446 if ac_fn_c_try_compile "$LINENO"; then :
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6448 $as_echo "yes" >&6; }
6449 else
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6451 $as_echo "no" >&6; }
6452 system_wtmpx_path=no
6455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6456 if test -z "$conf_wtmpx_location"; then
6457 if test x"$system_wtmpx_path" = x"no" ; then
6458 $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h
6461 else
6463 cat >>confdefs.h <<_ACEOF
6464 #define CONF_WTMPX_FILE "$conf_wtmpx_location"
6465 _ACEOF
6469 # Checks for library functions.
6470 if test $ac_cv_c_compiler_gnu = yes; then
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
6472 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
6473 if ${ac_cv_prog_gcc_traditional+:} false; then :
6474 $as_echo_n "(cached) " >&6
6475 else
6476 ac_pattern="Autoconf.*'x'"
6477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6478 /* end confdefs.h. */
6479 #include <sgtty.h>
6480 Autoconf TIOCGETP
6481 _ACEOF
6482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6483 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
6484 ac_cv_prog_gcc_traditional=yes
6485 else
6486 ac_cv_prog_gcc_traditional=no
6488 rm -f conftest*
6491 if test $ac_cv_prog_gcc_traditional = no; then
6492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6493 /* end confdefs.h. */
6494 #include <termio.h>
6495 Autoconf TCGETA
6496 _ACEOF
6497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6498 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
6499 ac_cv_prog_gcc_traditional=yes
6501 rm -f conftest*
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
6506 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
6507 if test $ac_cv_prog_gcc_traditional = yes; then
6508 CC="$CC -traditional"
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
6513 $as_echo_n "checking for working memcmp... " >&6; }
6514 if ${ac_cv_func_memcmp_working+:} false; then :
6515 $as_echo_n "(cached) " >&6
6516 else
6517 if test "$cross_compiling" = yes; then :
6518 ac_cv_func_memcmp_working=no
6519 else
6520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6521 /* end confdefs.h. */
6522 $ac_includes_default
6524 main ()
6527 /* Some versions of memcmp are not 8-bit clean. */
6528 char c0 = '\100', c1 = '\200', c2 = '\201';
6529 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
6530 return 1;
6532 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6533 or more and with at least one buffer not starting on a 4-byte boundary.
6534 William Lewis provided this test program. */
6536 char foo[21];
6537 char bar[21];
6538 int i;
6539 for (i = 0; i < 4; i++)
6541 char *a = foo + i;
6542 char *b = bar + i;
6543 strcpy (a, "--------01111111");
6544 strcpy (b, "--------10000000");
6545 if (memcmp (a, b, 16) >= 0)
6546 return 1;
6548 return 0;
6552 return 0;
6554 _ACEOF
6555 if ac_fn_c_try_run "$LINENO"; then :
6556 ac_cv_func_memcmp_working=yes
6557 else
6558 ac_cv_func_memcmp_working=no
6560 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6561 conftest.$ac_objext conftest.beam conftest.$ac_ext
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
6566 $as_echo "$ac_cv_func_memcmp_working" >&6; }
6567 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
6568 *" memcmp.$ac_objext "* ) ;;
6569 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
6571 esac
6574 for ac_header in sys/select.h sys/socket.h
6575 do :
6576 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6577 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6578 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6579 cat >>confdefs.h <<_ACEOF
6580 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6581 _ACEOF
6585 done
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
6588 $as_echo_n "checking types of arguments for select... " >&6; }
6589 if ${ac_cv_func_select_args+:} false; then :
6590 $as_echo_n "(cached) " >&6
6591 else
6592 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
6593 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
6594 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
6595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6596 /* end confdefs.h. */
6597 $ac_includes_default
6598 #ifdef HAVE_SYS_SELECT_H
6599 # include <sys/select.h>
6600 #endif
6601 #ifdef HAVE_SYS_SOCKET_H
6602 # include <sys/socket.h>
6603 #endif
6606 main ()
6608 extern int select ($ac_arg1,
6609 $ac_arg234, $ac_arg234, $ac_arg234,
6610 $ac_arg5);
6612 return 0;
6614 _ACEOF
6615 if ac_fn_c_try_compile "$LINENO"; then :
6616 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
6618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6619 done
6620 done
6621 done
6622 # Provide a safe default value.
6623 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
6627 $as_echo "$ac_cv_func_select_args" >&6; }
6628 ac_save_IFS=$IFS; IFS=','
6629 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
6630 IFS=$ac_save_IFS
6631 shift
6633 cat >>confdefs.h <<_ACEOF
6634 #define SELECT_TYPE_ARG1 $1
6635 _ACEOF
6638 cat >>confdefs.h <<_ACEOF
6639 #define SELECT_TYPE_ARG234 ($2)
6640 _ACEOF
6643 cat >>confdefs.h <<_ACEOF
6644 #define SELECT_TYPE_ARG5 ($3)
6645 _ACEOF
6647 rm -f conftest*
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6650 $as_echo_n "checking return type of signal handlers... " >&6; }
6651 if ${ac_cv_type_signal+:} false; then :
6652 $as_echo_n "(cached) " >&6
6653 else
6654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6655 /* end confdefs.h. */
6656 #include <sys/types.h>
6657 #include <signal.h>
6660 main ()
6662 return *(signal (0, 0)) (0) == 1;
6664 return 0;
6666 _ACEOF
6667 if ac_fn_c_try_compile "$LINENO"; then :
6668 ac_cv_type_signal=int
6669 else
6670 ac_cv_type_signal=void
6672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
6675 $as_echo "$ac_cv_type_signal" >&6; }
6677 cat >>confdefs.h <<_ACEOF
6678 #define RETSIGTYPE $ac_cv_type_signal
6679 _ACEOF
6682 for ac_func in dup2 getspnam getusershell memset putenv select socket strdup clearenv strlcpy strlcat daemon basename _getpty getaddrinfo freeaddrinfo getnameinfo fork writev
6683 do :
6684 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6685 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6686 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6687 cat >>confdefs.h <<_ACEOF
6688 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6689 _ACEOF
6692 done
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing basename" >&5
6696 $as_echo_n "checking for library containing basename... " >&6; }
6697 if ${ac_cv_search_basename+:} false; then :
6698 $as_echo_n "(cached) " >&6
6699 else
6700 ac_func_search_save_LIBS=$LIBS
6701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6702 /* end confdefs.h. */
6704 /* Override any GCC internal prototype to avoid an error.
6705 Use char because int might match the return type of a GCC
6706 builtin and then its argument prototype would still apply. */
6707 #ifdef __cplusplus
6708 extern "C"
6709 #endif
6710 char basename ();
6712 main ()
6714 return basename ();
6716 return 0;
6718 _ACEOF
6719 for ac_lib in '' gen; do
6720 if test -z "$ac_lib"; then
6721 ac_res="none required"
6722 else
6723 ac_res=-l$ac_lib
6724 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6726 if ac_fn_c_try_link "$LINENO"; then :
6727 ac_cv_search_basename=$ac_res
6729 rm -f core conftest.err conftest.$ac_objext \
6730 conftest$ac_exeext
6731 if ${ac_cv_search_basename+:} false; then :
6732 break
6734 done
6735 if ${ac_cv_search_basename+:} false; then :
6737 else
6738 ac_cv_search_basename=no
6740 rm conftest.$ac_ext
6741 LIBS=$ac_func_search_save_LIBS
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_basename" >&5
6744 $as_echo "$ac_cv_search_basename" >&6; }
6745 ac_res=$ac_cv_search_basename
6746 if test "$ac_res" != no; then :
6747 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6748 $as_echo "#define HAVE_BASENAME 1" >>confdefs.h
6753 # Solaris needs ptmx
6754 if test -z "$no_ptmx_check" ; then
6755 if test x"$cross_compiling" = x"no" ; then
6756 as_ac_File=`$as_echo "ac_cv_file_"/dev/ptmx"" | $as_tr_sh`
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptmx\"" >&5
6758 $as_echo_n "checking for \"/dev/ptmx\"... " >&6; }
6759 if eval \${$as_ac_File+:} false; then :
6760 $as_echo_n "(cached) " >&6
6761 else
6762 test "$cross_compiling" = yes &&
6763 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
6764 if test -r ""/dev/ptmx""; then
6765 eval "$as_ac_File=yes"
6766 else
6767 eval "$as_ac_File=no"
6770 eval ac_res=\$$as_ac_File
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6772 $as_echo "$ac_res" >&6; }
6773 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
6775 $as_echo "#define USE_DEV_PTMX /**/" >>confdefs.h
6779 else
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: Not checking for /dev/ptmx, we're cross-compiling" >&5
6781 $as_echo "$as_me: Not checking for /dev/ptmx, we're cross-compiling" >&6;}
6785 if test -z "$no_ptc_check" ; then
6786 if test x"$cross_compiling" = x"no" ; then
6787 as_ac_File=`$as_echo "ac_cv_file_"/dev/ptc"" | $as_tr_sh`
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptc\"" >&5
6789 $as_echo_n "checking for \"/dev/ptc\"... " >&6; }
6790 if eval \${$as_ac_File+:} false; then :
6791 $as_echo_n "(cached) " >&6
6792 else
6793 test "$cross_compiling" = yes &&
6794 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
6795 if test -r ""/dev/ptc""; then
6796 eval "$as_ac_File=yes"
6797 else
6798 eval "$as_ac_File=no"
6801 eval ac_res=\$$as_ac_File
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6803 $as_echo "$ac_res" >&6; }
6804 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
6806 $as_echo "#define HAVE_DEV_PTS_AND_PTC /**/" >>confdefs.h
6810 else
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: Not checking for /dev/ptc & /dev/pts since we're cross-compiling" >&5
6812 $as_echo "$as_me: Not checking for /dev/ptc & /dev/pts since we're cross-compiling" >&6;}
6818 # XXX there must be a nicer way to do this
6819 as_dir=libtomcrypt/src/ciphers/aes; as_fn_mkdir_p
6820 as_dir=libtomcrypt/src/ciphers/safer; as_fn_mkdir_p
6821 as_dir=libtomcrypt/src/ciphers/twofish; as_fn_mkdir_p
6822 as_dir=libtomcrypt/src/encauth/ccm; as_fn_mkdir_p
6823 as_dir=libtomcrypt/src/encauth/eax; as_fn_mkdir_p
6824 as_dir=libtomcrypt/src/encauth/gcm; as_fn_mkdir_p
6825 as_dir=libtomcrypt/src/encauth/ocb; as_fn_mkdir_p
6826 as_dir=libtomcrypt/src/hashes; as_fn_mkdir_p
6827 as_dir=libtomcrypt/src/hashes/chc; as_fn_mkdir_p
6828 as_dir=libtomcrypt/src/hashes/helper; as_fn_mkdir_p
6829 as_dir=libtomcrypt/src/hashes/sha2; as_fn_mkdir_p
6830 as_dir=libtomcrypt/src/hashes/whirl; as_fn_mkdir_p
6831 as_dir=libtomcrypt/src/mac/hmac; as_fn_mkdir_p
6832 as_dir=libtomcrypt/src/mac/omac; as_fn_mkdir_p
6833 as_dir=libtomcrypt/src/mac/pelican; as_fn_mkdir_p
6834 as_dir=libtomcrypt/src/mac/pmac; as_fn_mkdir_p
6835 as_dir=libtomcrypt/src/mac/f9; as_fn_mkdir_p
6836 as_dir=libtomcrypt/src/mac/xcbc; as_fn_mkdir_p
6837 as_dir=libtomcrypt/src/math/fp; as_fn_mkdir_p
6838 as_dir=libtomcrypt/src/misc/base64; as_fn_mkdir_p
6839 as_dir=libtomcrypt/src/misc/crypt; as_fn_mkdir_p
6840 as_dir=libtomcrypt/src/misc/mpi; as_fn_mkdir_p
6841 as_dir=libtomcrypt/src/misc/pkcs5; as_fn_mkdir_p
6842 as_dir=libtomcrypt/src/modes/cbc; as_fn_mkdir_p
6843 as_dir=libtomcrypt/src/modes/cfb; as_fn_mkdir_p
6844 as_dir=libtomcrypt/src/modes/ctr; as_fn_mkdir_p
6845 as_dir=libtomcrypt/src/modes/ecb; as_fn_mkdir_p
6846 as_dir=libtomcrypt/src/modes/ofb; as_fn_mkdir_p
6847 as_dir=libtomcrypt/src/modes/f8; as_fn_mkdir_p
6848 as_dir=libtomcrypt/src/modes/lrw; as_fn_mkdir_p
6849 as_dir=libtomcrypt/src/pk/asn1/der/bit; as_fn_mkdir_p
6850 as_dir=libtomcrypt/src/pk/asn1/der/choice; as_fn_mkdir_p
6851 as_dir=libtomcrypt/src/pk/asn1/der/ia5; as_fn_mkdir_p
6852 as_dir=libtomcrypt/src/pk/asn1/der/integer; as_fn_mkdir_p
6853 as_dir=libtomcrypt/src/pk/asn1/der/object_identifier; as_fn_mkdir_p
6854 as_dir=libtomcrypt/src/pk/asn1/der/octet; as_fn_mkdir_p
6855 as_dir=libtomcrypt/src/pk/asn1/der/printable_string; as_fn_mkdir_p
6856 as_dir=libtomcrypt/src/pk/asn1/der/sequence; as_fn_mkdir_p
6857 as_dir=libtomcrypt/src/pk/asn1/der/short_integer; as_fn_mkdir_p
6858 as_dir=libtomcrypt/src/pk/asn1/der/utctime; as_fn_mkdir_p
6859 as_dir=libtomcrypt/src/pk/dh; as_fn_mkdir_p
6860 as_dir=libtomcrypt/src/pk/dsa; as_fn_mkdir_p
6861 as_dir=libtomcrypt/src/pk/ecc; as_fn_mkdir_p
6862 as_dir=libtomcrypt/src/pk/pkcs1; as_fn_mkdir_p
6863 as_dir=libtomcrypt/src/pk/rsa; as_fn_mkdir_p
6864 as_dir=libtomcrypt/src/prng; as_fn_mkdir_p
6865 ac_config_headers="$ac_config_headers config.h"
6867 ac_config_files="$ac_config_files Makefile"
6869 cat >confcache <<\_ACEOF
6870 # This file is a shell script that caches the results of configure
6871 # tests run on this system so they can be shared between configure
6872 # scripts and configure runs, see configure's option --config-cache.
6873 # It is not useful on other systems. If it contains results you don't
6874 # want to keep, you may remove or edit it.
6876 # config.status only pays attention to the cache file if you give it
6877 # the --recheck option to rerun configure.
6879 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6880 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6881 # following values.
6883 _ACEOF
6885 # The following way of writing the cache mishandles newlines in values,
6886 # but we know of no workaround that is simple, portable, and efficient.
6887 # So, we kill variables containing newlines.
6888 # Ultrix sh set writes to stderr and can't be redirected directly,
6889 # and sets the high bit in the cache file unless we assign to the vars.
6891 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6892 eval ac_val=\$$ac_var
6893 case $ac_val in #(
6894 *${as_nl}*)
6895 case $ac_var in #(
6896 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6897 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6898 esac
6899 case $ac_var in #(
6900 _ | IFS | as_nl) ;; #(
6901 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6902 *) { eval $ac_var=; unset $ac_var;} ;;
6903 esac ;;
6904 esac
6905 done
6907 (set) 2>&1 |
6908 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6909 *${as_nl}ac_space=\ *)
6910 # `set' does not quote correctly, so add quotes: double-quote
6911 # substitution turns \\\\ into \\, and sed turns \\ into \.
6912 sed -n \
6913 "s/'/'\\\\''/g;
6914 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6915 ;; #(
6917 # `set' quotes correctly as required by POSIX, so do not add quotes.
6918 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6920 esac |
6921 sort
6923 sed '
6924 /^ac_cv_env_/b end
6925 t clear
6926 :clear
6927 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6928 t end
6929 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6930 :end' >>confcache
6931 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6932 if test -w "$cache_file"; then
6933 if test "x$cache_file" != "x/dev/null"; then
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6935 $as_echo "$as_me: updating cache $cache_file" >&6;}
6936 if test ! -f "$cache_file" || test -h "$cache_file"; then
6937 cat confcache >"$cache_file"
6938 else
6939 case $cache_file in #(
6940 */* | ?:*)
6941 mv -f confcache "$cache_file"$$ &&
6942 mv -f "$cache_file"$$ "$cache_file" ;; #(
6944 mv -f confcache "$cache_file" ;;
6945 esac
6948 else
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6950 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6953 rm -f confcache
6955 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6956 # Let make expand exec_prefix.
6957 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6959 DEFS=-DHAVE_CONFIG_H
6961 ac_libobjs=
6962 ac_ltlibobjs=
6964 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6965 # 1. Remove the extension, and $U if already installed.
6966 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6967 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6968 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6969 # will be set to the directory where LIBOBJS objects are built.
6970 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6971 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6972 done
6973 LIBOBJS=$ac_libobjs
6975 LTLIBOBJS=$ac_ltlibobjs
6979 : "${CONFIG_STATUS=./config.status}"
6980 ac_write_fail=0
6981 ac_clean_files_save=$ac_clean_files
6982 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6984 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6985 as_write_fail=0
6986 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6987 #! $SHELL
6988 # Generated by $as_me.
6989 # Run this file to recreate the current configuration.
6990 # Compiler output produced by configure, useful for debugging
6991 # configure, is in config.log if it exists.
6993 debug=false
6994 ac_cs_recheck=false
6995 ac_cs_silent=false
6997 SHELL=\${CONFIG_SHELL-$SHELL}
6998 export SHELL
6999 _ASEOF
7000 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7001 ## -------------------- ##
7002 ## M4sh Initialization. ##
7003 ## -------------------- ##
7005 # Be more Bourne compatible
7006 DUALCASE=1; export DUALCASE # for MKS sh
7007 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7008 emulate sh
7009 NULLCMD=:
7010 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7011 # is contrary to our usage. Disable this feature.
7012 alias -g '${1+"$@"}'='"$@"'
7013 setopt NO_GLOB_SUBST
7014 else
7015 case `(set -o) 2>/dev/null` in #(
7016 *posix*) :
7017 set -o posix ;; #(
7018 *) :
7020 esac
7024 as_nl='
7026 export as_nl
7027 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7028 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7029 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7030 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7031 # Prefer a ksh shell builtin over an external printf program on Solaris,
7032 # but without wasting forks for bash or zsh.
7033 if test -z "$BASH_VERSION$ZSH_VERSION" \
7034 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7035 as_echo='print -r --'
7036 as_echo_n='print -rn --'
7037 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7038 as_echo='printf %s\n'
7039 as_echo_n='printf %s'
7040 else
7041 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7042 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7043 as_echo_n='/usr/ucb/echo -n'
7044 else
7045 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7046 as_echo_n_body='eval
7047 arg=$1;
7048 case $arg in #(
7049 *"$as_nl"*)
7050 expr "X$arg" : "X\\(.*\\)$as_nl";
7051 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7052 esac;
7053 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7055 export as_echo_n_body
7056 as_echo_n='sh -c $as_echo_n_body as_echo'
7058 export as_echo_body
7059 as_echo='sh -c $as_echo_body as_echo'
7062 # The user is always right.
7063 if test "${PATH_SEPARATOR+set}" != set; then
7064 PATH_SEPARATOR=:
7065 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7066 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7067 PATH_SEPARATOR=';'
7072 # IFS
7073 # We need space, tab and new line, in precisely that order. Quoting is
7074 # there to prevent editors from complaining about space-tab.
7075 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7076 # splitting by setting IFS to empty value.)
7077 IFS=" "" $as_nl"
7079 # Find who we are. Look in the path if we contain no directory separator.
7080 as_myself=
7081 case $0 in #((
7082 *[\\/]* ) as_myself=$0 ;;
7083 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7084 for as_dir in $PATH
7086 IFS=$as_save_IFS
7087 test -z "$as_dir" && as_dir=.
7088 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7089 done
7090 IFS=$as_save_IFS
7093 esac
7094 # We did not find ourselves, most probably we were run as `sh COMMAND'
7095 # in which case we are not to be found in the path.
7096 if test "x$as_myself" = x; then
7097 as_myself=$0
7099 if test ! -f "$as_myself"; then
7100 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7101 exit 1
7104 # Unset variables that we do not need and which cause bugs (e.g. in
7105 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7106 # suppresses any "Segmentation fault" message there. '((' could
7107 # trigger a bug in pdksh 5.2.14.
7108 for as_var in BASH_ENV ENV MAIL MAILPATH
7109 do eval test x\${$as_var+set} = xset \
7110 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7111 done
7112 PS1='$ '
7113 PS2='> '
7114 PS4='+ '
7116 # NLS nuisances.
7117 LC_ALL=C
7118 export LC_ALL
7119 LANGUAGE=C
7120 export LANGUAGE
7122 # CDPATH.
7123 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7126 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7127 # ----------------------------------------
7128 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7129 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7130 # script with STATUS, using 1 if that was 0.
7131 as_fn_error ()
7133 as_status=$1; test $as_status -eq 0 && as_status=1
7134 if test "$4"; then
7135 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7136 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7138 $as_echo "$as_me: error: $2" >&2
7139 as_fn_exit $as_status
7140 } # as_fn_error
7143 # as_fn_set_status STATUS
7144 # -----------------------
7145 # Set $? to STATUS, without forking.
7146 as_fn_set_status ()
7148 return $1
7149 } # as_fn_set_status
7151 # as_fn_exit STATUS
7152 # -----------------
7153 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7154 as_fn_exit ()
7156 set +e
7157 as_fn_set_status $1
7158 exit $1
7159 } # as_fn_exit
7161 # as_fn_unset VAR
7162 # ---------------
7163 # Portably unset VAR.
7164 as_fn_unset ()
7166 { eval $1=; unset $1;}
7168 as_unset=as_fn_unset
7169 # as_fn_append VAR VALUE
7170 # ----------------------
7171 # Append the text in VALUE to the end of the definition contained in VAR. Take
7172 # advantage of any shell optimizations that allow amortized linear growth over
7173 # repeated appends, instead of the typical quadratic growth present in naive
7174 # implementations.
7175 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7176 eval 'as_fn_append ()
7178 eval $1+=\$2
7180 else
7181 as_fn_append ()
7183 eval $1=\$$1\$2
7185 fi # as_fn_append
7187 # as_fn_arith ARG...
7188 # ------------------
7189 # Perform arithmetic evaluation on the ARGs, and store the result in the
7190 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7191 # must be portable across $(()) and expr.
7192 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7193 eval 'as_fn_arith ()
7195 as_val=$(( $* ))
7197 else
7198 as_fn_arith ()
7200 as_val=`expr "$@" || test $? -eq 1`
7202 fi # as_fn_arith
7205 if expr a : '\(a\)' >/dev/null 2>&1 &&
7206 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7207 as_expr=expr
7208 else
7209 as_expr=false
7212 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7213 as_basename=basename
7214 else
7215 as_basename=false
7218 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7219 as_dirname=dirname
7220 else
7221 as_dirname=false
7224 as_me=`$as_basename -- "$0" ||
7225 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7226 X"$0" : 'X\(//\)$' \| \
7227 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7228 $as_echo X/"$0" |
7229 sed '/^.*\/\([^/][^/]*\)\/*$/{
7230 s//\1/
7233 /^X\/\(\/\/\)$/{
7234 s//\1/
7237 /^X\/\(\/\).*/{
7238 s//\1/
7241 s/.*/./; q'`
7243 # Avoid depending upon Character Ranges.
7244 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7245 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7246 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7247 as_cr_digits='0123456789'
7248 as_cr_alnum=$as_cr_Letters$as_cr_digits
7250 ECHO_C= ECHO_N= ECHO_T=
7251 case `echo -n x` in #(((((
7252 -n*)
7253 case `echo 'xy\c'` in
7254 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7255 xy) ECHO_C='\c';;
7256 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7257 ECHO_T=' ';;
7258 esac;;
7260 ECHO_N='-n';;
7261 esac
7263 rm -f conf$$ conf$$.exe conf$$.file
7264 if test -d conf$$.dir; then
7265 rm -f conf$$.dir/conf$$.file
7266 else
7267 rm -f conf$$.dir
7268 mkdir conf$$.dir 2>/dev/null
7270 if (echo >conf$$.file) 2>/dev/null; then
7271 if ln -s conf$$.file conf$$ 2>/dev/null; then
7272 as_ln_s='ln -s'
7273 # ... but there are two gotchas:
7274 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7275 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7276 # In both cases, we have to default to `cp -pR'.
7277 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7278 as_ln_s='cp -pR'
7279 elif ln conf$$.file conf$$ 2>/dev/null; then
7280 as_ln_s=ln
7281 else
7282 as_ln_s='cp -pR'
7284 else
7285 as_ln_s='cp -pR'
7287 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7288 rmdir conf$$.dir 2>/dev/null
7291 # as_fn_mkdir_p
7292 # -------------
7293 # Create "$as_dir" as a directory, including parents if necessary.
7294 as_fn_mkdir_p ()
7297 case $as_dir in #(
7298 -*) as_dir=./$as_dir;;
7299 esac
7300 test -d "$as_dir" || eval $as_mkdir_p || {
7301 as_dirs=
7302 while :; do
7303 case $as_dir in #(
7304 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7305 *) as_qdir=$as_dir;;
7306 esac
7307 as_dirs="'$as_qdir' $as_dirs"
7308 as_dir=`$as_dirname -- "$as_dir" ||
7309 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7310 X"$as_dir" : 'X\(//\)[^/]' \| \
7311 X"$as_dir" : 'X\(//\)$' \| \
7312 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7313 $as_echo X"$as_dir" |
7314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7315 s//\1/
7318 /^X\(\/\/\)[^/].*/{
7319 s//\1/
7322 /^X\(\/\/\)$/{
7323 s//\1/
7326 /^X\(\/\).*/{
7327 s//\1/
7330 s/.*/./; q'`
7331 test -d "$as_dir" && break
7332 done
7333 test -z "$as_dirs" || eval "mkdir $as_dirs"
7334 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7337 } # as_fn_mkdir_p
7338 if mkdir -p . 2>/dev/null; then
7339 as_mkdir_p='mkdir -p "$as_dir"'
7340 else
7341 test -d ./-p && rmdir ./-p
7342 as_mkdir_p=false
7346 # as_fn_executable_p FILE
7347 # -----------------------
7348 # Test if FILE is an executable regular file.
7349 as_fn_executable_p ()
7351 test -f "$1" && test -x "$1"
7352 } # as_fn_executable_p
7353 as_test_x='test -x'
7354 as_executable_p=as_fn_executable_p
7356 # Sed expression to map a string onto a valid CPP name.
7357 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7359 # Sed expression to map a string onto a valid variable name.
7360 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7363 exec 6>&1
7364 ## ----------------------------------- ##
7365 ## Main body of $CONFIG_STATUS script. ##
7366 ## ----------------------------------- ##
7367 _ASEOF
7368 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7370 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7371 # Save the log message, to keep $0 and so on meaningful, and to
7372 # report actual input values of CONFIG_FILES etc. instead of their
7373 # values after options handling.
7374 ac_log="
7375 This file was extended by $as_me, which was
7376 generated by GNU Autoconf 2.69. Invocation command line was
7378 CONFIG_FILES = $CONFIG_FILES
7379 CONFIG_HEADERS = $CONFIG_HEADERS
7380 CONFIG_LINKS = $CONFIG_LINKS
7381 CONFIG_COMMANDS = $CONFIG_COMMANDS
7382 $ $0 $@
7384 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7387 _ACEOF
7389 case $ac_config_files in *"
7390 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7391 esac
7393 case $ac_config_headers in *"
7394 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7395 esac
7398 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7399 # Files that config.status was made for.
7400 config_files="$ac_config_files"
7401 config_headers="$ac_config_headers"
7403 _ACEOF
7405 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7406 ac_cs_usage="\
7407 \`$as_me' instantiates files and other configuration actions
7408 from templates according to the current configuration. Unless the files
7409 and actions are specified as TAGs, all are instantiated by default.
7411 Usage: $0 [OPTION]... [TAG]...
7413 -h, --help print this help, then exit
7414 -V, --version print version number and configuration settings, then exit
7415 --config print configuration, then exit
7416 -q, --quiet, --silent
7417 do not print progress messages
7418 -d, --debug don't remove temporary files
7419 --recheck update $as_me by reconfiguring in the same conditions
7420 --file=FILE[:TEMPLATE]
7421 instantiate the configuration file FILE
7422 --header=FILE[:TEMPLATE]
7423 instantiate the configuration header FILE
7425 Configuration files:
7426 $config_files
7428 Configuration headers:
7429 $config_headers
7431 Report bugs to the package provider."
7433 _ACEOF
7434 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7435 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7436 ac_cs_version="\\
7437 config.status
7438 configured by $0, generated by GNU Autoconf 2.69,
7439 with options \\"\$ac_cs_config\\"
7441 Copyright (C) 2012 Free Software Foundation, Inc.
7442 This config.status script is free software; the Free Software Foundation
7443 gives unlimited permission to copy, distribute and modify it."
7445 ac_pwd='$ac_pwd'
7446 srcdir='$srcdir'
7447 test -n "\$AWK" || AWK=awk
7448 _ACEOF
7450 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7451 # The default lists apply if the user does not specify any file.
7452 ac_need_defaults=:
7453 while test $# != 0
7455 case $1 in
7456 --*=?*)
7457 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7458 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7459 ac_shift=:
7461 --*=)
7462 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7463 ac_optarg=
7464 ac_shift=:
7467 ac_option=$1
7468 ac_optarg=$2
7469 ac_shift=shift
7471 esac
7473 case $ac_option in
7474 # Handling of the options.
7475 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7476 ac_cs_recheck=: ;;
7477 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7478 $as_echo "$ac_cs_version"; exit ;;
7479 --config | --confi | --conf | --con | --co | --c )
7480 $as_echo "$ac_cs_config"; exit ;;
7481 --debug | --debu | --deb | --de | --d | -d )
7482 debug=: ;;
7483 --file | --fil | --fi | --f )
7484 $ac_shift
7485 case $ac_optarg in
7486 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7487 '') as_fn_error $? "missing file argument" ;;
7488 esac
7489 as_fn_append CONFIG_FILES " '$ac_optarg'"
7490 ac_need_defaults=false;;
7491 --header | --heade | --head | --hea )
7492 $ac_shift
7493 case $ac_optarg in
7494 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7495 esac
7496 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7497 ac_need_defaults=false;;
7498 --he | --h)
7499 # Conflict between --help and --header
7500 as_fn_error $? "ambiguous option: \`$1'
7501 Try \`$0 --help' for more information.";;
7502 --help | --hel | -h )
7503 $as_echo "$ac_cs_usage"; exit ;;
7504 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7505 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7506 ac_cs_silent=: ;;
7508 # This is an error.
7509 -*) as_fn_error $? "unrecognized option: \`$1'
7510 Try \`$0 --help' for more information." ;;
7512 *) as_fn_append ac_config_targets " $1"
7513 ac_need_defaults=false ;;
7515 esac
7516 shift
7517 done
7519 ac_configure_extra_args=
7521 if $ac_cs_silent; then
7522 exec 6>/dev/null
7523 ac_configure_extra_args="$ac_configure_extra_args --silent"
7526 _ACEOF
7527 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7528 if \$ac_cs_recheck; then
7529 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7530 shift
7531 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7532 CONFIG_SHELL='$SHELL'
7533 export CONFIG_SHELL
7534 exec "\$@"
7537 _ACEOF
7538 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7539 exec 5>>config.log
7541 echo
7542 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7543 ## Running $as_me. ##
7544 _ASBOX
7545 $as_echo "$ac_log"
7546 } >&5
7548 _ACEOF
7549 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7550 _ACEOF
7552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7554 # Handling of arguments.
7555 for ac_config_target in $ac_config_targets
7557 case $ac_config_target in
7558 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7559 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7561 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7562 esac
7563 done
7566 # If the user did not use the arguments to specify the items to instantiate,
7567 # then the envvar interface is used. Set only those that are not.
7568 # We use the long form for the default assignment because of an extremely
7569 # bizarre bug on SunOS 4.1.3.
7570 if $ac_need_defaults; then
7571 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7572 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7575 # Have a temporary directory for convenience. Make it in the build tree
7576 # simply because there is no reason against having it here, and in addition,
7577 # creating and moving files from /tmp can sometimes cause problems.
7578 # Hook for its removal unless debugging.
7579 # Note that there is a small window in which the directory will not be cleaned:
7580 # after its creation but before its name has been assigned to `$tmp'.
7581 $debug ||
7583 tmp= ac_tmp=
7584 trap 'exit_status=$?
7585 : "${ac_tmp:=$tmp}"
7586 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7588 trap 'as_fn_exit 1' 1 2 13 15
7590 # Create a (secure) tmp directory for tmp files.
7593 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7594 test -d "$tmp"
7595 } ||
7597 tmp=./conf$$-$RANDOM
7598 (umask 077 && mkdir "$tmp")
7599 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7600 ac_tmp=$tmp
7602 # Set up the scripts for CONFIG_FILES section.
7603 # No need to generate them if there are no CONFIG_FILES.
7604 # This happens for instance with `./config.status config.h'.
7605 if test -n "$CONFIG_FILES"; then
7608 ac_cr=`echo X | tr X '\015'`
7609 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7610 # But we know of no other shell where ac_cr would be empty at this
7611 # point, so we can use a bashism as a fallback.
7612 if test "x$ac_cr" = x; then
7613 eval ac_cr=\$\'\\r\'
7615 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7616 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7617 ac_cs_awk_cr='\\r'
7618 else
7619 ac_cs_awk_cr=$ac_cr
7622 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7623 _ACEOF
7627 echo "cat >conf$$subs.awk <<_ACEOF" &&
7628 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7629 echo "_ACEOF"
7630 } >conf$$subs.sh ||
7631 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7632 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7633 ac_delim='%!_!# '
7634 for ac_last_try in false false false false false :; do
7635 . ./conf$$subs.sh ||
7636 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7638 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7639 if test $ac_delim_n = $ac_delim_num; then
7640 break
7641 elif $ac_last_try; then
7642 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7643 else
7644 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7646 done
7647 rm -f conf$$subs.sh
7649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7650 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7651 _ACEOF
7652 sed -n '
7654 s/^/S["/; s/!.*/"]=/
7657 s/^[^!]*!//
7658 :repl
7659 t repl
7660 s/'"$ac_delim"'$//
7661 t delim
7664 s/\(.\{148\}\)..*/\1/
7665 t more1
7666 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7669 b repl
7670 :more1
7671 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7674 s/.\{148\}//
7675 t nl
7676 :delim
7678 s/\(.\{148\}\)..*/\1/
7679 t more2
7680 s/["\\]/\\&/g; s/^/"/; s/$/"/
7683 :more2
7684 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7687 s/.\{148\}//
7688 t delim
7689 ' <conf$$subs.awk | sed '
7690 /^[^""]/{
7692 s/\n//
7694 ' >>$CONFIG_STATUS || ac_write_fail=1
7695 rm -f conf$$subs.awk
7696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7697 _ACAWK
7698 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7699 for (key in S) S_is_set[key] = 1
7700 FS = "\a"
7704 line = $ 0
7705 nfields = split(line, field, "@")
7706 substed = 0
7707 len = length(field[1])
7708 for (i = 2; i < nfields; i++) {
7709 key = field[i]
7710 keylen = length(key)
7711 if (S_is_set[key]) {
7712 value = S[key]
7713 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7714 len += length(value) + length(field[++i])
7715 substed = 1
7716 } else
7717 len += 1 + keylen
7720 print line
7723 _ACAWK
7724 _ACEOF
7725 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7726 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7727 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7728 else
7730 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7731 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7732 _ACEOF
7734 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7735 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7736 # trailing colons and then remove the whole line if VPATH becomes empty
7737 # (actually we leave an empty line to preserve line numbers).
7738 if test "x$srcdir" = x.; then
7739 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7741 s///
7742 s/^/:/
7743 s/[ ]*$/:/
7744 s/:\$(srcdir):/:/g
7745 s/:\${srcdir}:/:/g
7746 s/:@srcdir@:/:/g
7747 s/^:*//
7748 s/:*$//
7750 s/\(=[ ]*\).*/\1/
7752 s/\n//
7753 s/^[^=]*=[ ]*$//
7757 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7758 fi # test -n "$CONFIG_FILES"
7760 # Set up the scripts for CONFIG_HEADERS section.
7761 # No need to generate them if there are no CONFIG_HEADERS.
7762 # This happens for instance with `./config.status Makefile'.
7763 if test -n "$CONFIG_HEADERS"; then
7764 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7765 BEGIN {
7766 _ACEOF
7768 # Transform confdefs.h into an awk script `defines.awk', embedded as
7769 # here-document in config.status, that substitutes the proper values into
7770 # config.h.in to produce config.h.
7772 # Create a delimiter string that does not exist in confdefs.h, to ease
7773 # handling of long lines.
7774 ac_delim='%!_!# '
7775 for ac_last_try in false false :; do
7776 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7777 if test -z "$ac_tt"; then
7778 break
7779 elif $ac_last_try; then
7780 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7781 else
7782 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7784 done
7786 # For the awk script, D is an array of macro values keyed by name,
7787 # likewise P contains macro parameters if any. Preserve backslash
7788 # newline sequences.
7790 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7791 sed -n '
7792 s/.\{148\}/&'"$ac_delim"'/g
7793 t rset
7794 :rset
7795 s/^[ ]*#[ ]*define[ ][ ]*/ /
7796 t def
7798 :def
7799 s/\\$//
7800 t bsnl
7801 s/["\\]/\\&/g
7802 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7803 D["\1"]=" \3"/p
7804 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7806 :bsnl
7807 s/["\\]/\\&/g
7808 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7809 D["\1"]=" \3\\\\\\n"\\/p
7810 t cont
7811 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7812 t cont
7814 :cont
7816 s/.\{148\}/&'"$ac_delim"'/g
7817 t clear
7818 :clear
7819 s/\\$//
7820 t bsnlc
7821 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7823 :bsnlc
7824 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7825 b cont
7826 ' <confdefs.h | sed '
7827 s/'"$ac_delim"'/"\\\
7828 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7830 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7831 for (key in D) D_is_set[key] = 1
7832 FS = "\a"
7834 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7835 line = \$ 0
7836 split(line, arg, " ")
7837 if (arg[1] == "#") {
7838 defundef = arg[2]
7839 mac1 = arg[3]
7840 } else {
7841 defundef = substr(arg[1], 2)
7842 mac1 = arg[2]
7844 split(mac1, mac2, "(") #)
7845 macro = mac2[1]
7846 prefix = substr(line, 1, index(line, defundef) - 1)
7847 if (D_is_set[macro]) {
7848 # Preserve the white space surrounding the "#".
7849 print prefix "define", macro P[macro] D[macro]
7850 next
7851 } else {
7852 # Replace #undef with comments. This is necessary, for example,
7853 # in the case of _POSIX_SOURCE, which is predefined and required
7854 # on some systems where configure will not decide to define it.
7855 if (defundef == "undef") {
7856 print "/*", prefix defundef, macro, "*/"
7857 next
7861 { print }
7862 _ACAWK
7863 _ACEOF
7864 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7865 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7866 fi # test -n "$CONFIG_HEADERS"
7869 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
7870 shift
7871 for ac_tag
7873 case $ac_tag in
7874 :[FHLC]) ac_mode=$ac_tag; continue;;
7875 esac
7876 case $ac_mode$ac_tag in
7877 :[FHL]*:*);;
7878 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7879 :[FH]-) ac_tag=-:-;;
7880 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7881 esac
7882 ac_save_IFS=$IFS
7883 IFS=:
7884 set x $ac_tag
7885 IFS=$ac_save_IFS
7886 shift
7887 ac_file=$1
7888 shift
7890 case $ac_mode in
7891 :L) ac_source=$1;;
7892 :[FH])
7893 ac_file_inputs=
7894 for ac_f
7896 case $ac_f in
7897 -) ac_f="$ac_tmp/stdin";;
7898 *) # Look for the file first in the build tree, then in the source tree
7899 # (if the path is not absolute). The absolute path cannot be DOS-style,
7900 # because $ac_f cannot contain `:'.
7901 test -f "$ac_f" ||
7902 case $ac_f in
7903 [\\/$]*) false;;
7904 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7905 esac ||
7906 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7907 esac
7908 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7909 as_fn_append ac_file_inputs " '$ac_f'"
7910 done
7912 # Let's still pretend it is `configure' which instantiates (i.e., don't
7913 # use $as_me), people would be surprised to read:
7914 # /* config.h. Generated by config.status. */
7915 configure_input='Generated from '`
7916 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7917 `' by configure.'
7918 if test x"$ac_file" != x-; then
7919 configure_input="$ac_file. $configure_input"
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7921 $as_echo "$as_me: creating $ac_file" >&6;}
7923 # Neutralize special characters interpreted by sed in replacement strings.
7924 case $configure_input in #(
7925 *\&* | *\|* | *\\* )
7926 ac_sed_conf_input=`$as_echo "$configure_input" |
7927 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7928 *) ac_sed_conf_input=$configure_input;;
7929 esac
7931 case $ac_tag in
7932 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7933 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7934 esac
7936 esac
7938 ac_dir=`$as_dirname -- "$ac_file" ||
7939 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7940 X"$ac_file" : 'X\(//\)[^/]' \| \
7941 X"$ac_file" : 'X\(//\)$' \| \
7942 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7943 $as_echo X"$ac_file" |
7944 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7945 s//\1/
7948 /^X\(\/\/\)[^/].*/{
7949 s//\1/
7952 /^X\(\/\/\)$/{
7953 s//\1/
7956 /^X\(\/\).*/{
7957 s//\1/
7960 s/.*/./; q'`
7961 as_dir="$ac_dir"; as_fn_mkdir_p
7962 ac_builddir=.
7964 case "$ac_dir" in
7965 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7967 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7968 # A ".." for each directory in $ac_dir_suffix.
7969 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7970 case $ac_top_builddir_sub in
7971 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7972 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7973 esac ;;
7974 esac
7975 ac_abs_top_builddir=$ac_pwd
7976 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7977 # for backward compatibility:
7978 ac_top_builddir=$ac_top_build_prefix
7980 case $srcdir in
7981 .) # We are building in place.
7982 ac_srcdir=.
7983 ac_top_srcdir=$ac_top_builddir_sub
7984 ac_abs_top_srcdir=$ac_pwd ;;
7985 [\\/]* | ?:[\\/]* ) # Absolute name.
7986 ac_srcdir=$srcdir$ac_dir_suffix;
7987 ac_top_srcdir=$srcdir
7988 ac_abs_top_srcdir=$srcdir ;;
7989 *) # Relative name.
7990 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7991 ac_top_srcdir=$ac_top_build_prefix$srcdir
7992 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7993 esac
7994 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7997 case $ac_mode in
8000 # CONFIG_FILE
8003 _ACEOF
8005 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8006 # If the template does not know about datarootdir, expand it.
8007 # FIXME: This hack should be removed a few years after 2.60.
8008 ac_datarootdir_hack=; ac_datarootdir_seen=
8009 ac_sed_dataroot='
8010 /datarootdir/ {
8014 /@datadir@/p
8015 /@docdir@/p
8016 /@infodir@/p
8017 /@localedir@/p
8018 /@mandir@/p'
8019 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8020 *datarootdir*) ac_datarootdir_seen=yes;;
8021 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8023 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8024 _ACEOF
8025 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8026 ac_datarootdir_hack='
8027 s&@datadir@&$datadir&g
8028 s&@docdir@&$docdir&g
8029 s&@infodir@&$infodir&g
8030 s&@localedir@&$localedir&g
8031 s&@mandir@&$mandir&g
8032 s&\\\${datarootdir}&$datarootdir&g' ;;
8033 esac
8034 _ACEOF
8036 # Neutralize VPATH when `$srcdir' = `.'.
8037 # Shell code in configure.ac might set extrasub.
8038 # FIXME: do we really want to maintain this feature?
8039 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8040 ac_sed_extra="$ac_vpsub
8041 $extrasub
8042 _ACEOF
8043 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8045 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8046 s|@configure_input@|$ac_sed_conf_input|;t t
8047 s&@top_builddir@&$ac_top_builddir_sub&;t t
8048 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8049 s&@srcdir@&$ac_srcdir&;t t
8050 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8051 s&@top_srcdir@&$ac_top_srcdir&;t t
8052 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8053 s&@builddir@&$ac_builddir&;t t
8054 s&@abs_builddir@&$ac_abs_builddir&;t t
8055 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8056 $ac_datarootdir_hack
8058 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8059 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8061 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8062 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8063 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8064 "$ac_tmp/out"`; test -z "$ac_out"; } &&
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8066 which seems to be undefined. Please make sure it is defined" >&5
8067 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8068 which seems to be undefined. Please make sure it is defined" >&2;}
8070 rm -f "$ac_tmp/stdin"
8071 case $ac_file in
8072 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8073 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8074 esac \
8075 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8079 # CONFIG_HEADER
8081 if test x"$ac_file" != x-; then
8083 $as_echo "/* $configure_input */" \
8084 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8085 } >"$ac_tmp/config.h" \
8086 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8087 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8089 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8090 else
8091 rm -f "$ac_file"
8092 mv "$ac_tmp/config.h" "$ac_file" \
8093 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8095 else
8096 $as_echo "/* $configure_input */" \
8097 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8098 || as_fn_error $? "could not create -" "$LINENO" 5
8103 esac
8105 done # for ac_tag
8108 as_fn_exit 0
8109 _ACEOF
8110 ac_clean_files=$ac_clean_files_save
8112 test $ac_write_fail = 0 ||
8113 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8116 # configure is writing to config.log, and then calls config.status.
8117 # config.status does its own redirection, appending to config.log.
8118 # Unfortunately, on DOS this fails, as config.log is still kept open
8119 # by configure, so config.status won't be able to write to it; its
8120 # output is simply discarded. So we exec the FD to /dev/null,
8121 # effectively closing config.log, so it can be properly (re)opened and
8122 # appended to by config.status. When coming back to configure, we
8123 # need to make the FD available again.
8124 if test "$no_create" != yes; then
8125 ac_cs_success=:
8126 ac_config_status_args=
8127 test "$silent" = yes &&
8128 ac_config_status_args="$ac_config_status_args --quiet"
8129 exec 5>/dev/null
8130 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8131 exec 5>>config.log
8132 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8133 # would make configure fail if this is the last instruction.
8134 $ac_cs_success || as_fn_exit 1
8136 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8138 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8141 ac_config_files="$ac_config_files libtomcrypt/Makefile"
8143 cat >confcache <<\_ACEOF
8144 # This file is a shell script that caches the results of configure
8145 # tests run on this system so they can be shared between configure
8146 # scripts and configure runs, see configure's option --config-cache.
8147 # It is not useful on other systems. If it contains results you don't
8148 # want to keep, you may remove or edit it.
8150 # config.status only pays attention to the cache file if you give it
8151 # the --recheck option to rerun configure.
8153 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8154 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8155 # following values.
8157 _ACEOF
8159 # The following way of writing the cache mishandles newlines in values,
8160 # but we know of no workaround that is simple, portable, and efficient.
8161 # So, we kill variables containing newlines.
8162 # Ultrix sh set writes to stderr and can't be redirected directly,
8163 # and sets the high bit in the cache file unless we assign to the vars.
8165 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8166 eval ac_val=\$$ac_var
8167 case $ac_val in #(
8168 *${as_nl}*)
8169 case $ac_var in #(
8170 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8171 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8172 esac
8173 case $ac_var in #(
8174 _ | IFS | as_nl) ;; #(
8175 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8176 *) { eval $ac_var=; unset $ac_var;} ;;
8177 esac ;;
8178 esac
8179 done
8181 (set) 2>&1 |
8182 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8183 *${as_nl}ac_space=\ *)
8184 # `set' does not quote correctly, so add quotes: double-quote
8185 # substitution turns \\\\ into \\, and sed turns \\ into \.
8186 sed -n \
8187 "s/'/'\\\\''/g;
8188 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8189 ;; #(
8191 # `set' quotes correctly as required by POSIX, so do not add quotes.
8192 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8194 esac |
8195 sort
8197 sed '
8198 /^ac_cv_env_/b end
8199 t clear
8200 :clear
8201 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8202 t end
8203 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8204 :end' >>confcache
8205 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8206 if test -w "$cache_file"; then
8207 if test "x$cache_file" != "x/dev/null"; then
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8209 $as_echo "$as_me: updating cache $cache_file" >&6;}
8210 if test ! -f "$cache_file" || test -h "$cache_file"; then
8211 cat confcache >"$cache_file"
8212 else
8213 case $cache_file in #(
8214 */* | ?:*)
8215 mv -f confcache "$cache_file"$$ &&
8216 mv -f "$cache_file"$$ "$cache_file" ;; #(
8218 mv -f confcache "$cache_file" ;;
8219 esac
8222 else
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8224 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8227 rm -f confcache
8229 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8230 # Let make expand exec_prefix.
8231 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8233 DEFS=-DHAVE_CONFIG_H
8235 ac_libobjs=
8236 ac_ltlibobjs=
8238 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8239 # 1. Remove the extension, and $U if already installed.
8240 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8241 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8242 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8243 # will be set to the directory where LIBOBJS objects are built.
8244 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8245 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8246 done
8247 LIBOBJS=$ac_libobjs
8249 LTLIBOBJS=$ac_ltlibobjs
8253 : "${CONFIG_STATUS=./config.status}"
8254 ac_write_fail=0
8255 ac_clean_files_save=$ac_clean_files
8256 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8258 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8259 as_write_fail=0
8260 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8261 #! $SHELL
8262 # Generated by $as_me.
8263 # Run this file to recreate the current configuration.
8264 # Compiler output produced by configure, useful for debugging
8265 # configure, is in config.log if it exists.
8267 debug=false
8268 ac_cs_recheck=false
8269 ac_cs_silent=false
8271 SHELL=\${CONFIG_SHELL-$SHELL}
8272 export SHELL
8273 _ASEOF
8274 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8275 ## -------------------- ##
8276 ## M4sh Initialization. ##
8277 ## -------------------- ##
8279 # Be more Bourne compatible
8280 DUALCASE=1; export DUALCASE # for MKS sh
8281 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8282 emulate sh
8283 NULLCMD=:
8284 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8285 # is contrary to our usage. Disable this feature.
8286 alias -g '${1+"$@"}'='"$@"'
8287 setopt NO_GLOB_SUBST
8288 else
8289 case `(set -o) 2>/dev/null` in #(
8290 *posix*) :
8291 set -o posix ;; #(
8292 *) :
8294 esac
8298 as_nl='
8300 export as_nl
8301 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8302 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8303 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8304 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8305 # Prefer a ksh shell builtin over an external printf program on Solaris,
8306 # but without wasting forks for bash or zsh.
8307 if test -z "$BASH_VERSION$ZSH_VERSION" \
8308 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8309 as_echo='print -r --'
8310 as_echo_n='print -rn --'
8311 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8312 as_echo='printf %s\n'
8313 as_echo_n='printf %s'
8314 else
8315 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8316 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8317 as_echo_n='/usr/ucb/echo -n'
8318 else
8319 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8320 as_echo_n_body='eval
8321 arg=$1;
8322 case $arg in #(
8323 *"$as_nl"*)
8324 expr "X$arg" : "X\\(.*\\)$as_nl";
8325 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8326 esac;
8327 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8329 export as_echo_n_body
8330 as_echo_n='sh -c $as_echo_n_body as_echo'
8332 export as_echo_body
8333 as_echo='sh -c $as_echo_body as_echo'
8336 # The user is always right.
8337 if test "${PATH_SEPARATOR+set}" != set; then
8338 PATH_SEPARATOR=:
8339 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8340 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8341 PATH_SEPARATOR=';'
8346 # IFS
8347 # We need space, tab and new line, in precisely that order. Quoting is
8348 # there to prevent editors from complaining about space-tab.
8349 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8350 # splitting by setting IFS to empty value.)
8351 IFS=" "" $as_nl"
8353 # Find who we are. Look in the path if we contain no directory separator.
8354 as_myself=
8355 case $0 in #((
8356 *[\\/]* ) as_myself=$0 ;;
8357 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8358 for as_dir in $PATH
8360 IFS=$as_save_IFS
8361 test -z "$as_dir" && as_dir=.
8362 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8363 done
8364 IFS=$as_save_IFS
8367 esac
8368 # We did not find ourselves, most probably we were run as `sh COMMAND'
8369 # in which case we are not to be found in the path.
8370 if test "x$as_myself" = x; then
8371 as_myself=$0
8373 if test ! -f "$as_myself"; then
8374 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8375 exit 1
8378 # Unset variables that we do not need and which cause bugs (e.g. in
8379 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8380 # suppresses any "Segmentation fault" message there. '((' could
8381 # trigger a bug in pdksh 5.2.14.
8382 for as_var in BASH_ENV ENV MAIL MAILPATH
8383 do eval test x\${$as_var+set} = xset \
8384 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8385 done
8386 PS1='$ '
8387 PS2='> '
8388 PS4='+ '
8390 # NLS nuisances.
8391 LC_ALL=C
8392 export LC_ALL
8393 LANGUAGE=C
8394 export LANGUAGE
8396 # CDPATH.
8397 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8400 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8401 # ----------------------------------------
8402 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8403 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8404 # script with STATUS, using 1 if that was 0.
8405 as_fn_error ()
8407 as_status=$1; test $as_status -eq 0 && as_status=1
8408 if test "$4"; then
8409 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8410 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8412 $as_echo "$as_me: error: $2" >&2
8413 as_fn_exit $as_status
8414 } # as_fn_error
8417 # as_fn_set_status STATUS
8418 # -----------------------
8419 # Set $? to STATUS, without forking.
8420 as_fn_set_status ()
8422 return $1
8423 } # as_fn_set_status
8425 # as_fn_exit STATUS
8426 # -----------------
8427 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8428 as_fn_exit ()
8430 set +e
8431 as_fn_set_status $1
8432 exit $1
8433 } # as_fn_exit
8435 # as_fn_unset VAR
8436 # ---------------
8437 # Portably unset VAR.
8438 as_fn_unset ()
8440 { eval $1=; unset $1;}
8442 as_unset=as_fn_unset
8443 # as_fn_append VAR VALUE
8444 # ----------------------
8445 # Append the text in VALUE to the end of the definition contained in VAR. Take
8446 # advantage of any shell optimizations that allow amortized linear growth over
8447 # repeated appends, instead of the typical quadratic growth present in naive
8448 # implementations.
8449 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8450 eval 'as_fn_append ()
8452 eval $1+=\$2
8454 else
8455 as_fn_append ()
8457 eval $1=\$$1\$2
8459 fi # as_fn_append
8461 # as_fn_arith ARG...
8462 # ------------------
8463 # Perform arithmetic evaluation on the ARGs, and store the result in the
8464 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8465 # must be portable across $(()) and expr.
8466 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8467 eval 'as_fn_arith ()
8469 as_val=$(( $* ))
8471 else
8472 as_fn_arith ()
8474 as_val=`expr "$@" || test $? -eq 1`
8476 fi # as_fn_arith
8479 if expr a : '\(a\)' >/dev/null 2>&1 &&
8480 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8481 as_expr=expr
8482 else
8483 as_expr=false
8486 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8487 as_basename=basename
8488 else
8489 as_basename=false
8492 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8493 as_dirname=dirname
8494 else
8495 as_dirname=false
8498 as_me=`$as_basename -- "$0" ||
8499 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8500 X"$0" : 'X\(//\)$' \| \
8501 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8502 $as_echo X/"$0" |
8503 sed '/^.*\/\([^/][^/]*\)\/*$/{
8504 s//\1/
8507 /^X\/\(\/\/\)$/{
8508 s//\1/
8511 /^X\/\(\/\).*/{
8512 s//\1/
8515 s/.*/./; q'`
8517 # Avoid depending upon Character Ranges.
8518 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8519 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8520 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8521 as_cr_digits='0123456789'
8522 as_cr_alnum=$as_cr_Letters$as_cr_digits
8524 ECHO_C= ECHO_N= ECHO_T=
8525 case `echo -n x` in #(((((
8526 -n*)
8527 case `echo 'xy\c'` in
8528 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8529 xy) ECHO_C='\c';;
8530 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8531 ECHO_T=' ';;
8532 esac;;
8534 ECHO_N='-n';;
8535 esac
8537 rm -f conf$$ conf$$.exe conf$$.file
8538 if test -d conf$$.dir; then
8539 rm -f conf$$.dir/conf$$.file
8540 else
8541 rm -f conf$$.dir
8542 mkdir conf$$.dir 2>/dev/null
8544 if (echo >conf$$.file) 2>/dev/null; then
8545 if ln -s conf$$.file conf$$ 2>/dev/null; then
8546 as_ln_s='ln -s'
8547 # ... but there are two gotchas:
8548 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8549 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8550 # In both cases, we have to default to `cp -pR'.
8551 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8552 as_ln_s='cp -pR'
8553 elif ln conf$$.file conf$$ 2>/dev/null; then
8554 as_ln_s=ln
8555 else
8556 as_ln_s='cp -pR'
8558 else
8559 as_ln_s='cp -pR'
8561 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8562 rmdir conf$$.dir 2>/dev/null
8565 # as_fn_mkdir_p
8566 # -------------
8567 # Create "$as_dir" as a directory, including parents if necessary.
8568 as_fn_mkdir_p ()
8571 case $as_dir in #(
8572 -*) as_dir=./$as_dir;;
8573 esac
8574 test -d "$as_dir" || eval $as_mkdir_p || {
8575 as_dirs=
8576 while :; do
8577 case $as_dir in #(
8578 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8579 *) as_qdir=$as_dir;;
8580 esac
8581 as_dirs="'$as_qdir' $as_dirs"
8582 as_dir=`$as_dirname -- "$as_dir" ||
8583 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8584 X"$as_dir" : 'X\(//\)[^/]' \| \
8585 X"$as_dir" : 'X\(//\)$' \| \
8586 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8587 $as_echo X"$as_dir" |
8588 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8589 s//\1/
8592 /^X\(\/\/\)[^/].*/{
8593 s//\1/
8596 /^X\(\/\/\)$/{
8597 s//\1/
8600 /^X\(\/\).*/{
8601 s//\1/
8604 s/.*/./; q'`
8605 test -d "$as_dir" && break
8606 done
8607 test -z "$as_dirs" || eval "mkdir $as_dirs"
8608 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8611 } # as_fn_mkdir_p
8612 if mkdir -p . 2>/dev/null; then
8613 as_mkdir_p='mkdir -p "$as_dir"'
8614 else
8615 test -d ./-p && rmdir ./-p
8616 as_mkdir_p=false
8620 # as_fn_executable_p FILE
8621 # -----------------------
8622 # Test if FILE is an executable regular file.
8623 as_fn_executable_p ()
8625 test -f "$1" && test -x "$1"
8626 } # as_fn_executable_p
8627 as_test_x='test -x'
8628 as_executable_p=as_fn_executable_p
8630 # Sed expression to map a string onto a valid CPP name.
8631 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8633 # Sed expression to map a string onto a valid variable name.
8634 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8637 exec 6>&1
8638 ## ----------------------------------- ##
8639 ## Main body of $CONFIG_STATUS script. ##
8640 ## ----------------------------------- ##
8641 _ASEOF
8642 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8644 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8645 # Save the log message, to keep $0 and so on meaningful, and to
8646 # report actual input values of CONFIG_FILES etc. instead of their
8647 # values after options handling.
8648 ac_log="
8649 This file was extended by $as_me, which was
8650 generated by GNU Autoconf 2.69. Invocation command line was
8652 CONFIG_FILES = $CONFIG_FILES
8653 CONFIG_HEADERS = $CONFIG_HEADERS
8654 CONFIG_LINKS = $CONFIG_LINKS
8655 CONFIG_COMMANDS = $CONFIG_COMMANDS
8656 $ $0 $@
8658 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8661 _ACEOF
8663 case $ac_config_files in *"
8664 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8665 esac
8667 case $ac_config_headers in *"
8668 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8669 esac
8672 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8673 # Files that config.status was made for.
8674 config_files="$ac_config_files"
8675 config_headers="$ac_config_headers"
8677 _ACEOF
8679 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8680 ac_cs_usage="\
8681 \`$as_me' instantiates files and other configuration actions
8682 from templates according to the current configuration. Unless the files
8683 and actions are specified as TAGs, all are instantiated by default.
8685 Usage: $0 [OPTION]... [TAG]...
8687 -h, --help print this help, then exit
8688 -V, --version print version number and configuration settings, then exit
8689 --config print configuration, then exit
8690 -q, --quiet, --silent
8691 do not print progress messages
8692 -d, --debug don't remove temporary files
8693 --recheck update $as_me by reconfiguring in the same conditions
8694 --file=FILE[:TEMPLATE]
8695 instantiate the configuration file FILE
8696 --header=FILE[:TEMPLATE]
8697 instantiate the configuration header FILE
8699 Configuration files:
8700 $config_files
8702 Configuration headers:
8703 $config_headers
8705 Report bugs to the package provider."
8707 _ACEOF
8708 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8709 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8710 ac_cs_version="\\
8711 config.status
8712 configured by $0, generated by GNU Autoconf 2.69,
8713 with options \\"\$ac_cs_config\\"
8715 Copyright (C) 2012 Free Software Foundation, Inc.
8716 This config.status script is free software; the Free Software Foundation
8717 gives unlimited permission to copy, distribute and modify it."
8719 ac_pwd='$ac_pwd'
8720 srcdir='$srcdir'
8721 test -n "\$AWK" || AWK=awk
8722 _ACEOF
8724 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8725 # The default lists apply if the user does not specify any file.
8726 ac_need_defaults=:
8727 while test $# != 0
8729 case $1 in
8730 --*=?*)
8731 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8732 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8733 ac_shift=:
8735 --*=)
8736 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8737 ac_optarg=
8738 ac_shift=:
8741 ac_option=$1
8742 ac_optarg=$2
8743 ac_shift=shift
8745 esac
8747 case $ac_option in
8748 # Handling of the options.
8749 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8750 ac_cs_recheck=: ;;
8751 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8752 $as_echo "$ac_cs_version"; exit ;;
8753 --config | --confi | --conf | --con | --co | --c )
8754 $as_echo "$ac_cs_config"; exit ;;
8755 --debug | --debu | --deb | --de | --d | -d )
8756 debug=: ;;
8757 --file | --fil | --fi | --f )
8758 $ac_shift
8759 case $ac_optarg in
8760 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8761 '') as_fn_error $? "missing file argument" ;;
8762 esac
8763 as_fn_append CONFIG_FILES " '$ac_optarg'"
8764 ac_need_defaults=false;;
8765 --header | --heade | --head | --hea )
8766 $ac_shift
8767 case $ac_optarg in
8768 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8769 esac
8770 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8771 ac_need_defaults=false;;
8772 --he | --h)
8773 # Conflict between --help and --header
8774 as_fn_error $? "ambiguous option: \`$1'
8775 Try \`$0 --help' for more information.";;
8776 --help | --hel | -h )
8777 $as_echo "$ac_cs_usage"; exit ;;
8778 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8779 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8780 ac_cs_silent=: ;;
8782 # This is an error.
8783 -*) as_fn_error $? "unrecognized option: \`$1'
8784 Try \`$0 --help' for more information." ;;
8786 *) as_fn_append ac_config_targets " $1"
8787 ac_need_defaults=false ;;
8789 esac
8790 shift
8791 done
8793 ac_configure_extra_args=
8795 if $ac_cs_silent; then
8796 exec 6>/dev/null
8797 ac_configure_extra_args="$ac_configure_extra_args --silent"
8800 _ACEOF
8801 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8802 if \$ac_cs_recheck; then
8803 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8804 shift
8805 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8806 CONFIG_SHELL='$SHELL'
8807 export CONFIG_SHELL
8808 exec "\$@"
8811 _ACEOF
8812 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8813 exec 5>>config.log
8815 echo
8816 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8817 ## Running $as_me. ##
8818 _ASBOX
8819 $as_echo "$ac_log"
8820 } >&5
8822 _ACEOF
8823 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8824 _ACEOF
8826 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8828 # Handling of arguments.
8829 for ac_config_target in $ac_config_targets
8831 case $ac_config_target in
8832 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8833 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8834 "libtomcrypt/Makefile") CONFIG_FILES="$CONFIG_FILES libtomcrypt/Makefile" ;;
8836 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8837 esac
8838 done
8841 # If the user did not use the arguments to specify the items to instantiate,
8842 # then the envvar interface is used. Set only those that are not.
8843 # We use the long form for the default assignment because of an extremely
8844 # bizarre bug on SunOS 4.1.3.
8845 if $ac_need_defaults; then
8846 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8847 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8850 # Have a temporary directory for convenience. Make it in the build tree
8851 # simply because there is no reason against having it here, and in addition,
8852 # creating and moving files from /tmp can sometimes cause problems.
8853 # Hook for its removal unless debugging.
8854 # Note that there is a small window in which the directory will not be cleaned:
8855 # after its creation but before its name has been assigned to `$tmp'.
8856 $debug ||
8858 tmp= ac_tmp=
8859 trap 'exit_status=$?
8860 : "${ac_tmp:=$tmp}"
8861 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8863 trap 'as_fn_exit 1' 1 2 13 15
8865 # Create a (secure) tmp directory for tmp files.
8868 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8869 test -d "$tmp"
8870 } ||
8872 tmp=./conf$$-$RANDOM
8873 (umask 077 && mkdir "$tmp")
8874 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8875 ac_tmp=$tmp
8877 # Set up the scripts for CONFIG_FILES section.
8878 # No need to generate them if there are no CONFIG_FILES.
8879 # This happens for instance with `./config.status config.h'.
8880 if test -n "$CONFIG_FILES"; then
8883 ac_cr=`echo X | tr X '\015'`
8884 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8885 # But we know of no other shell where ac_cr would be empty at this
8886 # point, so we can use a bashism as a fallback.
8887 if test "x$ac_cr" = x; then
8888 eval ac_cr=\$\'\\r\'
8890 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8891 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8892 ac_cs_awk_cr='\\r'
8893 else
8894 ac_cs_awk_cr=$ac_cr
8897 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8898 _ACEOF
8902 echo "cat >conf$$subs.awk <<_ACEOF" &&
8903 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8904 echo "_ACEOF"
8905 } >conf$$subs.sh ||
8906 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8907 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8908 ac_delim='%!_!# '
8909 for ac_last_try in false false false false false :; do
8910 . ./conf$$subs.sh ||
8911 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8913 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8914 if test $ac_delim_n = $ac_delim_num; then
8915 break
8916 elif $ac_last_try; then
8917 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8918 else
8919 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8921 done
8922 rm -f conf$$subs.sh
8924 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8925 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8926 _ACEOF
8927 sed -n '
8929 s/^/S["/; s/!.*/"]=/
8932 s/^[^!]*!//
8933 :repl
8934 t repl
8935 s/'"$ac_delim"'$//
8936 t delim
8939 s/\(.\{148\}\)..*/\1/
8940 t more1
8941 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8944 b repl
8945 :more1
8946 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8949 s/.\{148\}//
8950 t nl
8951 :delim
8953 s/\(.\{148\}\)..*/\1/
8954 t more2
8955 s/["\\]/\\&/g; s/^/"/; s/$/"/
8958 :more2
8959 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8962 s/.\{148\}//
8963 t delim
8964 ' <conf$$subs.awk | sed '
8965 /^[^""]/{
8967 s/\n//
8969 ' >>$CONFIG_STATUS || ac_write_fail=1
8970 rm -f conf$$subs.awk
8971 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8972 _ACAWK
8973 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8974 for (key in S) S_is_set[key] = 1
8975 FS = "\a"
8979 line = $ 0
8980 nfields = split(line, field, "@")
8981 substed = 0
8982 len = length(field[1])
8983 for (i = 2; i < nfields; i++) {
8984 key = field[i]
8985 keylen = length(key)
8986 if (S_is_set[key]) {
8987 value = S[key]
8988 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8989 len += length(value) + length(field[++i])
8990 substed = 1
8991 } else
8992 len += 1 + keylen
8995 print line
8998 _ACAWK
8999 _ACEOF
9000 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9001 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9002 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9003 else
9005 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9006 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9007 _ACEOF
9009 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9010 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9011 # trailing colons and then remove the whole line if VPATH becomes empty
9012 # (actually we leave an empty line to preserve line numbers).
9013 if test "x$srcdir" = x.; then
9014 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9016 s///
9017 s/^/:/
9018 s/[ ]*$/:/
9019 s/:\$(srcdir):/:/g
9020 s/:\${srcdir}:/:/g
9021 s/:@srcdir@:/:/g
9022 s/^:*//
9023 s/:*$//
9025 s/\(=[ ]*\).*/\1/
9027 s/\n//
9028 s/^[^=]*=[ ]*$//
9032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9033 fi # test -n "$CONFIG_FILES"
9035 # Set up the scripts for CONFIG_HEADERS section.
9036 # No need to generate them if there are no CONFIG_HEADERS.
9037 # This happens for instance with `./config.status Makefile'.
9038 if test -n "$CONFIG_HEADERS"; then
9039 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9040 BEGIN {
9041 _ACEOF
9043 # Transform confdefs.h into an awk script `defines.awk', embedded as
9044 # here-document in config.status, that substitutes the proper values into
9045 # config.h.in to produce config.h.
9047 # Create a delimiter string that does not exist in confdefs.h, to ease
9048 # handling of long lines.
9049 ac_delim='%!_!# '
9050 for ac_last_try in false false :; do
9051 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9052 if test -z "$ac_tt"; then
9053 break
9054 elif $ac_last_try; then
9055 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9056 else
9057 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9059 done
9061 # For the awk script, D is an array of macro values keyed by name,
9062 # likewise P contains macro parameters if any. Preserve backslash
9063 # newline sequences.
9065 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9066 sed -n '
9067 s/.\{148\}/&'"$ac_delim"'/g
9068 t rset
9069 :rset
9070 s/^[ ]*#[ ]*define[ ][ ]*/ /
9071 t def
9073 :def
9074 s/\\$//
9075 t bsnl
9076 s/["\\]/\\&/g
9077 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9078 D["\1"]=" \3"/p
9079 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9081 :bsnl
9082 s/["\\]/\\&/g
9083 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9084 D["\1"]=" \3\\\\\\n"\\/p
9085 t cont
9086 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9087 t cont
9089 :cont
9091 s/.\{148\}/&'"$ac_delim"'/g
9092 t clear
9093 :clear
9094 s/\\$//
9095 t bsnlc
9096 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9098 :bsnlc
9099 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9100 b cont
9101 ' <confdefs.h | sed '
9102 s/'"$ac_delim"'/"\\\
9103 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9105 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9106 for (key in D) D_is_set[key] = 1
9107 FS = "\a"
9109 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9110 line = \$ 0
9111 split(line, arg, " ")
9112 if (arg[1] == "#") {
9113 defundef = arg[2]
9114 mac1 = arg[3]
9115 } else {
9116 defundef = substr(arg[1], 2)
9117 mac1 = arg[2]
9119 split(mac1, mac2, "(") #)
9120 macro = mac2[1]
9121 prefix = substr(line, 1, index(line, defundef) - 1)
9122 if (D_is_set[macro]) {
9123 # Preserve the white space surrounding the "#".
9124 print prefix "define", macro P[macro] D[macro]
9125 next
9126 } else {
9127 # Replace #undef with comments. This is necessary, for example,
9128 # in the case of _POSIX_SOURCE, which is predefined and required
9129 # on some systems where configure will not decide to define it.
9130 if (defundef == "undef") {
9131 print "/*", prefix defundef, macro, "*/"
9132 next
9136 { print }
9137 _ACAWK
9138 _ACEOF
9139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9140 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9141 fi # test -n "$CONFIG_HEADERS"
9144 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
9145 shift
9146 for ac_tag
9148 case $ac_tag in
9149 :[FHLC]) ac_mode=$ac_tag; continue;;
9150 esac
9151 case $ac_mode$ac_tag in
9152 :[FHL]*:*);;
9153 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9154 :[FH]-) ac_tag=-:-;;
9155 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9156 esac
9157 ac_save_IFS=$IFS
9158 IFS=:
9159 set x $ac_tag
9160 IFS=$ac_save_IFS
9161 shift
9162 ac_file=$1
9163 shift
9165 case $ac_mode in
9166 :L) ac_source=$1;;
9167 :[FH])
9168 ac_file_inputs=
9169 for ac_f
9171 case $ac_f in
9172 -) ac_f="$ac_tmp/stdin";;
9173 *) # Look for the file first in the build tree, then in the source tree
9174 # (if the path is not absolute). The absolute path cannot be DOS-style,
9175 # because $ac_f cannot contain `:'.
9176 test -f "$ac_f" ||
9177 case $ac_f in
9178 [\\/$]*) false;;
9179 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9180 esac ||
9181 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9182 esac
9183 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9184 as_fn_append ac_file_inputs " '$ac_f'"
9185 done
9187 # Let's still pretend it is `configure' which instantiates (i.e., don't
9188 # use $as_me), people would be surprised to read:
9189 # /* config.h. Generated by config.status. */
9190 configure_input='Generated from '`
9191 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9192 `' by configure.'
9193 if test x"$ac_file" != x-; then
9194 configure_input="$ac_file. $configure_input"
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9196 $as_echo "$as_me: creating $ac_file" >&6;}
9198 # Neutralize special characters interpreted by sed in replacement strings.
9199 case $configure_input in #(
9200 *\&* | *\|* | *\\* )
9201 ac_sed_conf_input=`$as_echo "$configure_input" |
9202 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9203 *) ac_sed_conf_input=$configure_input;;
9204 esac
9206 case $ac_tag in
9207 *:-:* | *:-) cat >"$ac_tmp/stdin" \
9208 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9209 esac
9211 esac
9213 ac_dir=`$as_dirname -- "$ac_file" ||
9214 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9215 X"$ac_file" : 'X\(//\)[^/]' \| \
9216 X"$ac_file" : 'X\(//\)$' \| \
9217 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9218 $as_echo X"$ac_file" |
9219 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9220 s//\1/
9223 /^X\(\/\/\)[^/].*/{
9224 s//\1/
9227 /^X\(\/\/\)$/{
9228 s//\1/
9231 /^X\(\/\).*/{
9232 s//\1/
9235 s/.*/./; q'`
9236 as_dir="$ac_dir"; as_fn_mkdir_p
9237 ac_builddir=.
9239 case "$ac_dir" in
9240 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9242 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9243 # A ".." for each directory in $ac_dir_suffix.
9244 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9245 case $ac_top_builddir_sub in
9246 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9247 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9248 esac ;;
9249 esac
9250 ac_abs_top_builddir=$ac_pwd
9251 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9252 # for backward compatibility:
9253 ac_top_builddir=$ac_top_build_prefix
9255 case $srcdir in
9256 .) # We are building in place.
9257 ac_srcdir=.
9258 ac_top_srcdir=$ac_top_builddir_sub
9259 ac_abs_top_srcdir=$ac_pwd ;;
9260 [\\/]* | ?:[\\/]* ) # Absolute name.
9261 ac_srcdir=$srcdir$ac_dir_suffix;
9262 ac_top_srcdir=$srcdir
9263 ac_abs_top_srcdir=$srcdir ;;
9264 *) # Relative name.
9265 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9266 ac_top_srcdir=$ac_top_build_prefix$srcdir
9267 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9268 esac
9269 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9272 case $ac_mode in
9275 # CONFIG_FILE
9278 _ACEOF
9280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9281 # If the template does not know about datarootdir, expand it.
9282 # FIXME: This hack should be removed a few years after 2.60.
9283 ac_datarootdir_hack=; ac_datarootdir_seen=
9284 ac_sed_dataroot='
9285 /datarootdir/ {
9289 /@datadir@/p
9290 /@docdir@/p
9291 /@infodir@/p
9292 /@localedir@/p
9293 /@mandir@/p'
9294 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9295 *datarootdir*) ac_datarootdir_seen=yes;;
9296 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9298 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9299 _ACEOF
9300 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9301 ac_datarootdir_hack='
9302 s&@datadir@&$datadir&g
9303 s&@docdir@&$docdir&g
9304 s&@infodir@&$infodir&g
9305 s&@localedir@&$localedir&g
9306 s&@mandir@&$mandir&g
9307 s&\\\${datarootdir}&$datarootdir&g' ;;
9308 esac
9309 _ACEOF
9311 # Neutralize VPATH when `$srcdir' = `.'.
9312 # Shell code in configure.ac might set extrasub.
9313 # FIXME: do we really want to maintain this feature?
9314 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9315 ac_sed_extra="$ac_vpsub
9316 $extrasub
9317 _ACEOF
9318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9320 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9321 s|@configure_input@|$ac_sed_conf_input|;t t
9322 s&@top_builddir@&$ac_top_builddir_sub&;t t
9323 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9324 s&@srcdir@&$ac_srcdir&;t t
9325 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9326 s&@top_srcdir@&$ac_top_srcdir&;t t
9327 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9328 s&@builddir@&$ac_builddir&;t t
9329 s&@abs_builddir@&$ac_abs_builddir&;t t
9330 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9331 $ac_datarootdir_hack
9333 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9334 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9336 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9337 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9338 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9339 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9341 which seems to be undefined. Please make sure it is defined" >&5
9342 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9343 which seems to be undefined. Please make sure it is defined" >&2;}
9345 rm -f "$ac_tmp/stdin"
9346 case $ac_file in
9347 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9348 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9349 esac \
9350 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9354 # CONFIG_HEADER
9356 if test x"$ac_file" != x-; then
9358 $as_echo "/* $configure_input */" \
9359 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9360 } >"$ac_tmp/config.h" \
9361 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9362 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9364 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9365 else
9366 rm -f "$ac_file"
9367 mv "$ac_tmp/config.h" "$ac_file" \
9368 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9370 else
9371 $as_echo "/* $configure_input */" \
9372 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9373 || as_fn_error $? "could not create -" "$LINENO" 5
9378 esac
9380 done # for ac_tag
9383 as_fn_exit 0
9384 _ACEOF
9385 ac_clean_files=$ac_clean_files_save
9387 test $ac_write_fail = 0 ||
9388 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9391 # configure is writing to config.log, and then calls config.status.
9392 # config.status does its own redirection, appending to config.log.
9393 # Unfortunately, on DOS this fails, as config.log is still kept open
9394 # by configure, so config.status won't be able to write to it; its
9395 # output is simply discarded. So we exec the FD to /dev/null,
9396 # effectively closing config.log, so it can be properly (re)opened and
9397 # appended to by config.status. When coming back to configure, we
9398 # need to make the FD available again.
9399 if test "$no_create" != yes; then
9400 ac_cs_success=:
9401 ac_config_status_args=
9402 test "$silent" = yes &&
9403 ac_config_status_args="$ac_config_status_args --quiet"
9404 exec 5>/dev/null
9405 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9406 exec 5>>config.log
9407 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9408 # would make configure fail if this is the last instruction.
9409 $ac_cs_success || as_fn_exit 1
9411 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9413 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9416 ac_config_files="$ac_config_files libtommath/Makefile"
9418 cat >confcache <<\_ACEOF
9419 # This file is a shell script that caches the results of configure
9420 # tests run on this system so they can be shared between configure
9421 # scripts and configure runs, see configure's option --config-cache.
9422 # It is not useful on other systems. If it contains results you don't
9423 # want to keep, you may remove or edit it.
9425 # config.status only pays attention to the cache file if you give it
9426 # the --recheck option to rerun configure.
9428 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9429 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9430 # following values.
9432 _ACEOF
9434 # The following way of writing the cache mishandles newlines in values,
9435 # but we know of no workaround that is simple, portable, and efficient.
9436 # So, we kill variables containing newlines.
9437 # Ultrix sh set writes to stderr and can't be redirected directly,
9438 # and sets the high bit in the cache file unless we assign to the vars.
9440 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9441 eval ac_val=\$$ac_var
9442 case $ac_val in #(
9443 *${as_nl}*)
9444 case $ac_var in #(
9445 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9446 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9447 esac
9448 case $ac_var in #(
9449 _ | IFS | as_nl) ;; #(
9450 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9451 *) { eval $ac_var=; unset $ac_var;} ;;
9452 esac ;;
9453 esac
9454 done
9456 (set) 2>&1 |
9457 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9458 *${as_nl}ac_space=\ *)
9459 # `set' does not quote correctly, so add quotes: double-quote
9460 # substitution turns \\\\ into \\, and sed turns \\ into \.
9461 sed -n \
9462 "s/'/'\\\\''/g;
9463 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9464 ;; #(
9466 # `set' quotes correctly as required by POSIX, so do not add quotes.
9467 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9469 esac |
9470 sort
9472 sed '
9473 /^ac_cv_env_/b end
9474 t clear
9475 :clear
9476 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9477 t end
9478 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9479 :end' >>confcache
9480 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9481 if test -w "$cache_file"; then
9482 if test "x$cache_file" != "x/dev/null"; then
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9484 $as_echo "$as_me: updating cache $cache_file" >&6;}
9485 if test ! -f "$cache_file" || test -h "$cache_file"; then
9486 cat confcache >"$cache_file"
9487 else
9488 case $cache_file in #(
9489 */* | ?:*)
9490 mv -f confcache "$cache_file"$$ &&
9491 mv -f "$cache_file"$$ "$cache_file" ;; #(
9493 mv -f confcache "$cache_file" ;;
9494 esac
9497 else
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9499 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9502 rm -f confcache
9504 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9505 # Let make expand exec_prefix.
9506 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9508 DEFS=-DHAVE_CONFIG_H
9510 ac_libobjs=
9511 ac_ltlibobjs=
9513 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9514 # 1. Remove the extension, and $U if already installed.
9515 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9516 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9517 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9518 # will be set to the directory where LIBOBJS objects are built.
9519 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9520 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9521 done
9522 LIBOBJS=$ac_libobjs
9524 LTLIBOBJS=$ac_ltlibobjs
9528 : "${CONFIG_STATUS=./config.status}"
9529 ac_write_fail=0
9530 ac_clean_files_save=$ac_clean_files
9531 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9533 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9534 as_write_fail=0
9535 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9536 #! $SHELL
9537 # Generated by $as_me.
9538 # Run this file to recreate the current configuration.
9539 # Compiler output produced by configure, useful for debugging
9540 # configure, is in config.log if it exists.
9542 debug=false
9543 ac_cs_recheck=false
9544 ac_cs_silent=false
9546 SHELL=\${CONFIG_SHELL-$SHELL}
9547 export SHELL
9548 _ASEOF
9549 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9550 ## -------------------- ##
9551 ## M4sh Initialization. ##
9552 ## -------------------- ##
9554 # Be more Bourne compatible
9555 DUALCASE=1; export DUALCASE # for MKS sh
9556 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9557 emulate sh
9558 NULLCMD=:
9559 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9560 # is contrary to our usage. Disable this feature.
9561 alias -g '${1+"$@"}'='"$@"'
9562 setopt NO_GLOB_SUBST
9563 else
9564 case `(set -o) 2>/dev/null` in #(
9565 *posix*) :
9566 set -o posix ;; #(
9567 *) :
9569 esac
9573 as_nl='
9575 export as_nl
9576 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9577 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9578 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9579 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9580 # Prefer a ksh shell builtin over an external printf program on Solaris,
9581 # but without wasting forks for bash or zsh.
9582 if test -z "$BASH_VERSION$ZSH_VERSION" \
9583 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9584 as_echo='print -r --'
9585 as_echo_n='print -rn --'
9586 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9587 as_echo='printf %s\n'
9588 as_echo_n='printf %s'
9589 else
9590 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9591 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9592 as_echo_n='/usr/ucb/echo -n'
9593 else
9594 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9595 as_echo_n_body='eval
9596 arg=$1;
9597 case $arg in #(
9598 *"$as_nl"*)
9599 expr "X$arg" : "X\\(.*\\)$as_nl";
9600 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9601 esac;
9602 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9604 export as_echo_n_body
9605 as_echo_n='sh -c $as_echo_n_body as_echo'
9607 export as_echo_body
9608 as_echo='sh -c $as_echo_body as_echo'
9611 # The user is always right.
9612 if test "${PATH_SEPARATOR+set}" != set; then
9613 PATH_SEPARATOR=:
9614 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9615 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9616 PATH_SEPARATOR=';'
9621 # IFS
9622 # We need space, tab and new line, in precisely that order. Quoting is
9623 # there to prevent editors from complaining about space-tab.
9624 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9625 # splitting by setting IFS to empty value.)
9626 IFS=" "" $as_nl"
9628 # Find who we are. Look in the path if we contain no directory separator.
9629 as_myself=
9630 case $0 in #((
9631 *[\\/]* ) as_myself=$0 ;;
9632 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9633 for as_dir in $PATH
9635 IFS=$as_save_IFS
9636 test -z "$as_dir" && as_dir=.
9637 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9638 done
9639 IFS=$as_save_IFS
9642 esac
9643 # We did not find ourselves, most probably we were run as `sh COMMAND'
9644 # in which case we are not to be found in the path.
9645 if test "x$as_myself" = x; then
9646 as_myself=$0
9648 if test ! -f "$as_myself"; then
9649 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9650 exit 1
9653 # Unset variables that we do not need and which cause bugs (e.g. in
9654 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9655 # suppresses any "Segmentation fault" message there. '((' could
9656 # trigger a bug in pdksh 5.2.14.
9657 for as_var in BASH_ENV ENV MAIL MAILPATH
9658 do eval test x\${$as_var+set} = xset \
9659 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9660 done
9661 PS1='$ '
9662 PS2='> '
9663 PS4='+ '
9665 # NLS nuisances.
9666 LC_ALL=C
9667 export LC_ALL
9668 LANGUAGE=C
9669 export LANGUAGE
9671 # CDPATH.
9672 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9675 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9676 # ----------------------------------------
9677 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9678 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9679 # script with STATUS, using 1 if that was 0.
9680 as_fn_error ()
9682 as_status=$1; test $as_status -eq 0 && as_status=1
9683 if test "$4"; then
9684 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9685 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9687 $as_echo "$as_me: error: $2" >&2
9688 as_fn_exit $as_status
9689 } # as_fn_error
9692 # as_fn_set_status STATUS
9693 # -----------------------
9694 # Set $? to STATUS, without forking.
9695 as_fn_set_status ()
9697 return $1
9698 } # as_fn_set_status
9700 # as_fn_exit STATUS
9701 # -----------------
9702 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9703 as_fn_exit ()
9705 set +e
9706 as_fn_set_status $1
9707 exit $1
9708 } # as_fn_exit
9710 # as_fn_unset VAR
9711 # ---------------
9712 # Portably unset VAR.
9713 as_fn_unset ()
9715 { eval $1=; unset $1;}
9717 as_unset=as_fn_unset
9718 # as_fn_append VAR VALUE
9719 # ----------------------
9720 # Append the text in VALUE to the end of the definition contained in VAR. Take
9721 # advantage of any shell optimizations that allow amortized linear growth over
9722 # repeated appends, instead of the typical quadratic growth present in naive
9723 # implementations.
9724 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9725 eval 'as_fn_append ()
9727 eval $1+=\$2
9729 else
9730 as_fn_append ()
9732 eval $1=\$$1\$2
9734 fi # as_fn_append
9736 # as_fn_arith ARG...
9737 # ------------------
9738 # Perform arithmetic evaluation on the ARGs, and store the result in the
9739 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9740 # must be portable across $(()) and expr.
9741 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9742 eval 'as_fn_arith ()
9744 as_val=$(( $* ))
9746 else
9747 as_fn_arith ()
9749 as_val=`expr "$@" || test $? -eq 1`
9751 fi # as_fn_arith
9754 if expr a : '\(a\)' >/dev/null 2>&1 &&
9755 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9756 as_expr=expr
9757 else
9758 as_expr=false
9761 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9762 as_basename=basename
9763 else
9764 as_basename=false
9767 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9768 as_dirname=dirname
9769 else
9770 as_dirname=false
9773 as_me=`$as_basename -- "$0" ||
9774 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9775 X"$0" : 'X\(//\)$' \| \
9776 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9777 $as_echo X/"$0" |
9778 sed '/^.*\/\([^/][^/]*\)\/*$/{
9779 s//\1/
9782 /^X\/\(\/\/\)$/{
9783 s//\1/
9786 /^X\/\(\/\).*/{
9787 s//\1/
9790 s/.*/./; q'`
9792 # Avoid depending upon Character Ranges.
9793 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9794 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9795 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9796 as_cr_digits='0123456789'
9797 as_cr_alnum=$as_cr_Letters$as_cr_digits
9799 ECHO_C= ECHO_N= ECHO_T=
9800 case `echo -n x` in #(((((
9801 -n*)
9802 case `echo 'xy\c'` in
9803 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9804 xy) ECHO_C='\c';;
9805 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9806 ECHO_T=' ';;
9807 esac;;
9809 ECHO_N='-n';;
9810 esac
9812 rm -f conf$$ conf$$.exe conf$$.file
9813 if test -d conf$$.dir; then
9814 rm -f conf$$.dir/conf$$.file
9815 else
9816 rm -f conf$$.dir
9817 mkdir conf$$.dir 2>/dev/null
9819 if (echo >conf$$.file) 2>/dev/null; then
9820 if ln -s conf$$.file conf$$ 2>/dev/null; then
9821 as_ln_s='ln -s'
9822 # ... but there are two gotchas:
9823 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9824 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9825 # In both cases, we have to default to `cp -pR'.
9826 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9827 as_ln_s='cp -pR'
9828 elif ln conf$$.file conf$$ 2>/dev/null; then
9829 as_ln_s=ln
9830 else
9831 as_ln_s='cp -pR'
9833 else
9834 as_ln_s='cp -pR'
9836 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9837 rmdir conf$$.dir 2>/dev/null
9840 # as_fn_mkdir_p
9841 # -------------
9842 # Create "$as_dir" as a directory, including parents if necessary.
9843 as_fn_mkdir_p ()
9846 case $as_dir in #(
9847 -*) as_dir=./$as_dir;;
9848 esac
9849 test -d "$as_dir" || eval $as_mkdir_p || {
9850 as_dirs=
9851 while :; do
9852 case $as_dir in #(
9853 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9854 *) as_qdir=$as_dir;;
9855 esac
9856 as_dirs="'$as_qdir' $as_dirs"
9857 as_dir=`$as_dirname -- "$as_dir" ||
9858 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9859 X"$as_dir" : 'X\(//\)[^/]' \| \
9860 X"$as_dir" : 'X\(//\)$' \| \
9861 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9862 $as_echo X"$as_dir" |
9863 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9864 s//\1/
9867 /^X\(\/\/\)[^/].*/{
9868 s//\1/
9871 /^X\(\/\/\)$/{
9872 s//\1/
9875 /^X\(\/\).*/{
9876 s//\1/
9879 s/.*/./; q'`
9880 test -d "$as_dir" && break
9881 done
9882 test -z "$as_dirs" || eval "mkdir $as_dirs"
9883 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9886 } # as_fn_mkdir_p
9887 if mkdir -p . 2>/dev/null; then
9888 as_mkdir_p='mkdir -p "$as_dir"'
9889 else
9890 test -d ./-p && rmdir ./-p
9891 as_mkdir_p=false
9895 # as_fn_executable_p FILE
9896 # -----------------------
9897 # Test if FILE is an executable regular file.
9898 as_fn_executable_p ()
9900 test -f "$1" && test -x "$1"
9901 } # as_fn_executable_p
9902 as_test_x='test -x'
9903 as_executable_p=as_fn_executable_p
9905 # Sed expression to map a string onto a valid CPP name.
9906 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9908 # Sed expression to map a string onto a valid variable name.
9909 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9912 exec 6>&1
9913 ## ----------------------------------- ##
9914 ## Main body of $CONFIG_STATUS script. ##
9915 ## ----------------------------------- ##
9916 _ASEOF
9917 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9920 # Save the log message, to keep $0 and so on meaningful, and to
9921 # report actual input values of CONFIG_FILES etc. instead of their
9922 # values after options handling.
9923 ac_log="
9924 This file was extended by $as_me, which was
9925 generated by GNU Autoconf 2.69. Invocation command line was
9927 CONFIG_FILES = $CONFIG_FILES
9928 CONFIG_HEADERS = $CONFIG_HEADERS
9929 CONFIG_LINKS = $CONFIG_LINKS
9930 CONFIG_COMMANDS = $CONFIG_COMMANDS
9931 $ $0 $@
9933 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9936 _ACEOF
9938 case $ac_config_files in *"
9939 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9940 esac
9942 case $ac_config_headers in *"
9943 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9944 esac
9947 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9948 # Files that config.status was made for.
9949 config_files="$ac_config_files"
9950 config_headers="$ac_config_headers"
9952 _ACEOF
9954 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9955 ac_cs_usage="\
9956 \`$as_me' instantiates files and other configuration actions
9957 from templates according to the current configuration. Unless the files
9958 and actions are specified as TAGs, all are instantiated by default.
9960 Usage: $0 [OPTION]... [TAG]...
9962 -h, --help print this help, then exit
9963 -V, --version print version number and configuration settings, then exit
9964 --config print configuration, then exit
9965 -q, --quiet, --silent
9966 do not print progress messages
9967 -d, --debug don't remove temporary files
9968 --recheck update $as_me by reconfiguring in the same conditions
9969 --file=FILE[:TEMPLATE]
9970 instantiate the configuration file FILE
9971 --header=FILE[:TEMPLATE]
9972 instantiate the configuration header FILE
9974 Configuration files:
9975 $config_files
9977 Configuration headers:
9978 $config_headers
9980 Report bugs to the package provider."
9982 _ACEOF
9983 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9984 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9985 ac_cs_version="\\
9986 config.status
9987 configured by $0, generated by GNU Autoconf 2.69,
9988 with options \\"\$ac_cs_config\\"
9990 Copyright (C) 2012 Free Software Foundation, Inc.
9991 This config.status script is free software; the Free Software Foundation
9992 gives unlimited permission to copy, distribute and modify it."
9994 ac_pwd='$ac_pwd'
9995 srcdir='$srcdir'
9996 test -n "\$AWK" || AWK=awk
9997 _ACEOF
9999 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10000 # The default lists apply if the user does not specify any file.
10001 ac_need_defaults=:
10002 while test $# != 0
10004 case $1 in
10005 --*=?*)
10006 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10007 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10008 ac_shift=:
10010 --*=)
10011 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10012 ac_optarg=
10013 ac_shift=:
10016 ac_option=$1
10017 ac_optarg=$2
10018 ac_shift=shift
10020 esac
10022 case $ac_option in
10023 # Handling of the options.
10024 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10025 ac_cs_recheck=: ;;
10026 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10027 $as_echo "$ac_cs_version"; exit ;;
10028 --config | --confi | --conf | --con | --co | --c )
10029 $as_echo "$ac_cs_config"; exit ;;
10030 --debug | --debu | --deb | --de | --d | -d )
10031 debug=: ;;
10032 --file | --fil | --fi | --f )
10033 $ac_shift
10034 case $ac_optarg in
10035 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10036 '') as_fn_error $? "missing file argument" ;;
10037 esac
10038 as_fn_append CONFIG_FILES " '$ac_optarg'"
10039 ac_need_defaults=false;;
10040 --header | --heade | --head | --hea )
10041 $ac_shift
10042 case $ac_optarg in
10043 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10044 esac
10045 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10046 ac_need_defaults=false;;
10047 --he | --h)
10048 # Conflict between --help and --header
10049 as_fn_error $? "ambiguous option: \`$1'
10050 Try \`$0 --help' for more information.";;
10051 --help | --hel | -h )
10052 $as_echo "$ac_cs_usage"; exit ;;
10053 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10054 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10055 ac_cs_silent=: ;;
10057 # This is an error.
10058 -*) as_fn_error $? "unrecognized option: \`$1'
10059 Try \`$0 --help' for more information." ;;
10061 *) as_fn_append ac_config_targets " $1"
10062 ac_need_defaults=false ;;
10064 esac
10065 shift
10066 done
10068 ac_configure_extra_args=
10070 if $ac_cs_silent; then
10071 exec 6>/dev/null
10072 ac_configure_extra_args="$ac_configure_extra_args --silent"
10075 _ACEOF
10076 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10077 if \$ac_cs_recheck; then
10078 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10079 shift
10080 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10081 CONFIG_SHELL='$SHELL'
10082 export CONFIG_SHELL
10083 exec "\$@"
10086 _ACEOF
10087 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10088 exec 5>>config.log
10090 echo
10091 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10092 ## Running $as_me. ##
10093 _ASBOX
10094 $as_echo "$ac_log"
10095 } >&5
10097 _ACEOF
10098 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10099 _ACEOF
10101 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10103 # Handling of arguments.
10104 for ac_config_target in $ac_config_targets
10106 case $ac_config_target in
10107 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10108 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10109 "libtomcrypt/Makefile") CONFIG_FILES="$CONFIG_FILES libtomcrypt/Makefile" ;;
10110 "libtommath/Makefile") CONFIG_FILES="$CONFIG_FILES libtommath/Makefile" ;;
10112 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10113 esac
10114 done
10117 # If the user did not use the arguments to specify the items to instantiate,
10118 # then the envvar interface is used. Set only those that are not.
10119 # We use the long form for the default assignment because of an extremely
10120 # bizarre bug on SunOS 4.1.3.
10121 if $ac_need_defaults; then
10122 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10123 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10126 # Have a temporary directory for convenience. Make it in the build tree
10127 # simply because there is no reason against having it here, and in addition,
10128 # creating and moving files from /tmp can sometimes cause problems.
10129 # Hook for its removal unless debugging.
10130 # Note that there is a small window in which the directory will not be cleaned:
10131 # after its creation but before its name has been assigned to `$tmp'.
10132 $debug ||
10134 tmp= ac_tmp=
10135 trap 'exit_status=$?
10136 : "${ac_tmp:=$tmp}"
10137 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10139 trap 'as_fn_exit 1' 1 2 13 15
10141 # Create a (secure) tmp directory for tmp files.
10144 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10145 test -d "$tmp"
10146 } ||
10148 tmp=./conf$$-$RANDOM
10149 (umask 077 && mkdir "$tmp")
10150 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10151 ac_tmp=$tmp
10153 # Set up the scripts for CONFIG_FILES section.
10154 # No need to generate them if there are no CONFIG_FILES.
10155 # This happens for instance with `./config.status config.h'.
10156 if test -n "$CONFIG_FILES"; then
10159 ac_cr=`echo X | tr X '\015'`
10160 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10161 # But we know of no other shell where ac_cr would be empty at this
10162 # point, so we can use a bashism as a fallback.
10163 if test "x$ac_cr" = x; then
10164 eval ac_cr=\$\'\\r\'
10166 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10167 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10168 ac_cs_awk_cr='\\r'
10169 else
10170 ac_cs_awk_cr=$ac_cr
10173 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10174 _ACEOF
10178 echo "cat >conf$$subs.awk <<_ACEOF" &&
10179 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10180 echo "_ACEOF"
10181 } >conf$$subs.sh ||
10182 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10183 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10184 ac_delim='%!_!# '
10185 for ac_last_try in false false false false false :; do
10186 . ./conf$$subs.sh ||
10187 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10189 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10190 if test $ac_delim_n = $ac_delim_num; then
10191 break
10192 elif $ac_last_try; then
10193 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10194 else
10195 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10197 done
10198 rm -f conf$$subs.sh
10200 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10201 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10202 _ACEOF
10203 sed -n '
10205 s/^/S["/; s/!.*/"]=/
10208 s/^[^!]*!//
10209 :repl
10210 t repl
10211 s/'"$ac_delim"'$//
10212 t delim
10215 s/\(.\{148\}\)..*/\1/
10216 t more1
10217 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10220 b repl
10221 :more1
10222 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10225 s/.\{148\}//
10226 t nl
10227 :delim
10229 s/\(.\{148\}\)..*/\1/
10230 t more2
10231 s/["\\]/\\&/g; s/^/"/; s/$/"/
10234 :more2
10235 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10238 s/.\{148\}//
10239 t delim
10240 ' <conf$$subs.awk | sed '
10241 /^[^""]/{
10243 s/\n//
10245 ' >>$CONFIG_STATUS || ac_write_fail=1
10246 rm -f conf$$subs.awk
10247 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10248 _ACAWK
10249 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10250 for (key in S) S_is_set[key] = 1
10251 FS = "\a"
10255 line = $ 0
10256 nfields = split(line, field, "@")
10257 substed = 0
10258 len = length(field[1])
10259 for (i = 2; i < nfields; i++) {
10260 key = field[i]
10261 keylen = length(key)
10262 if (S_is_set[key]) {
10263 value = S[key]
10264 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10265 len += length(value) + length(field[++i])
10266 substed = 1
10267 } else
10268 len += 1 + keylen
10271 print line
10274 _ACAWK
10275 _ACEOF
10276 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10277 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10278 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10279 else
10281 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10282 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10283 _ACEOF
10285 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10286 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10287 # trailing colons and then remove the whole line if VPATH becomes empty
10288 # (actually we leave an empty line to preserve line numbers).
10289 if test "x$srcdir" = x.; then
10290 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10292 s///
10293 s/^/:/
10294 s/[ ]*$/:/
10295 s/:\$(srcdir):/:/g
10296 s/:\${srcdir}:/:/g
10297 s/:@srcdir@:/:/g
10298 s/^:*//
10299 s/:*$//
10301 s/\(=[ ]*\).*/\1/
10303 s/\n//
10304 s/^[^=]*=[ ]*$//
10308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10309 fi # test -n "$CONFIG_FILES"
10311 # Set up the scripts for CONFIG_HEADERS section.
10312 # No need to generate them if there are no CONFIG_HEADERS.
10313 # This happens for instance with `./config.status Makefile'.
10314 if test -n "$CONFIG_HEADERS"; then
10315 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
10316 BEGIN {
10317 _ACEOF
10319 # Transform confdefs.h into an awk script `defines.awk', embedded as
10320 # here-document in config.status, that substitutes the proper values into
10321 # config.h.in to produce config.h.
10323 # Create a delimiter string that does not exist in confdefs.h, to ease
10324 # handling of long lines.
10325 ac_delim='%!_!# '
10326 for ac_last_try in false false :; do
10327 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10328 if test -z "$ac_tt"; then
10329 break
10330 elif $ac_last_try; then
10331 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
10332 else
10333 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10335 done
10337 # For the awk script, D is an array of macro values keyed by name,
10338 # likewise P contains macro parameters if any. Preserve backslash
10339 # newline sequences.
10341 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10342 sed -n '
10343 s/.\{148\}/&'"$ac_delim"'/g
10344 t rset
10345 :rset
10346 s/^[ ]*#[ ]*define[ ][ ]*/ /
10347 t def
10349 :def
10350 s/\\$//
10351 t bsnl
10352 s/["\\]/\\&/g
10353 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10354 D["\1"]=" \3"/p
10355 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10357 :bsnl
10358 s/["\\]/\\&/g
10359 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10360 D["\1"]=" \3\\\\\\n"\\/p
10361 t cont
10362 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10363 t cont
10365 :cont
10367 s/.\{148\}/&'"$ac_delim"'/g
10368 t clear
10369 :clear
10370 s/\\$//
10371 t bsnlc
10372 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10374 :bsnlc
10375 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10376 b cont
10377 ' <confdefs.h | sed '
10378 s/'"$ac_delim"'/"\\\
10379 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10381 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10382 for (key in D) D_is_set[key] = 1
10383 FS = "\a"
10385 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10386 line = \$ 0
10387 split(line, arg, " ")
10388 if (arg[1] == "#") {
10389 defundef = arg[2]
10390 mac1 = arg[3]
10391 } else {
10392 defundef = substr(arg[1], 2)
10393 mac1 = arg[2]
10395 split(mac1, mac2, "(") #)
10396 macro = mac2[1]
10397 prefix = substr(line, 1, index(line, defundef) - 1)
10398 if (D_is_set[macro]) {
10399 # Preserve the white space surrounding the "#".
10400 print prefix "define", macro P[macro] D[macro]
10401 next
10402 } else {
10403 # Replace #undef with comments. This is necessary, for example,
10404 # in the case of _POSIX_SOURCE, which is predefined and required
10405 # on some systems where configure will not decide to define it.
10406 if (defundef == "undef") {
10407 print "/*", prefix defundef, macro, "*/"
10408 next
10412 { print }
10413 _ACAWK
10414 _ACEOF
10415 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10416 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10417 fi # test -n "$CONFIG_HEADERS"
10420 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
10421 shift
10422 for ac_tag
10424 case $ac_tag in
10425 :[FHLC]) ac_mode=$ac_tag; continue;;
10426 esac
10427 case $ac_mode$ac_tag in
10428 :[FHL]*:*);;
10429 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
10430 :[FH]-) ac_tag=-:-;;
10431 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10432 esac
10433 ac_save_IFS=$IFS
10434 IFS=:
10435 set x $ac_tag
10436 IFS=$ac_save_IFS
10437 shift
10438 ac_file=$1
10439 shift
10441 case $ac_mode in
10442 :L) ac_source=$1;;
10443 :[FH])
10444 ac_file_inputs=
10445 for ac_f
10447 case $ac_f in
10448 -) ac_f="$ac_tmp/stdin";;
10449 *) # Look for the file first in the build tree, then in the source tree
10450 # (if the path is not absolute). The absolute path cannot be DOS-style,
10451 # because $ac_f cannot contain `:'.
10452 test -f "$ac_f" ||
10453 case $ac_f in
10454 [\\/$]*) false;;
10455 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10456 esac ||
10457 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10458 esac
10459 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10460 as_fn_append ac_file_inputs " '$ac_f'"
10461 done
10463 # Let's still pretend it is `configure' which instantiates (i.e., don't
10464 # use $as_me), people would be surprised to read:
10465 # /* config.h. Generated by config.status. */
10466 configure_input='Generated from '`
10467 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10468 `' by configure.'
10469 if test x"$ac_file" != x-; then
10470 configure_input="$ac_file. $configure_input"
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10472 $as_echo "$as_me: creating $ac_file" >&6;}
10474 # Neutralize special characters interpreted by sed in replacement strings.
10475 case $configure_input in #(
10476 *\&* | *\|* | *\\* )
10477 ac_sed_conf_input=`$as_echo "$configure_input" |
10478 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10479 *) ac_sed_conf_input=$configure_input;;
10480 esac
10482 case $ac_tag in
10483 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10484 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10485 esac
10487 esac
10489 ac_dir=`$as_dirname -- "$ac_file" ||
10490 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10491 X"$ac_file" : 'X\(//\)[^/]' \| \
10492 X"$ac_file" : 'X\(//\)$' \| \
10493 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10494 $as_echo X"$ac_file" |
10495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10496 s//\1/
10499 /^X\(\/\/\)[^/].*/{
10500 s//\1/
10503 /^X\(\/\/\)$/{
10504 s//\1/
10507 /^X\(\/\).*/{
10508 s//\1/
10511 s/.*/./; q'`
10512 as_dir="$ac_dir"; as_fn_mkdir_p
10513 ac_builddir=.
10515 case "$ac_dir" in
10516 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10518 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10519 # A ".." for each directory in $ac_dir_suffix.
10520 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10521 case $ac_top_builddir_sub in
10522 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10523 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10524 esac ;;
10525 esac
10526 ac_abs_top_builddir=$ac_pwd
10527 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10528 # for backward compatibility:
10529 ac_top_builddir=$ac_top_build_prefix
10531 case $srcdir in
10532 .) # We are building in place.
10533 ac_srcdir=.
10534 ac_top_srcdir=$ac_top_builddir_sub
10535 ac_abs_top_srcdir=$ac_pwd ;;
10536 [\\/]* | ?:[\\/]* ) # Absolute name.
10537 ac_srcdir=$srcdir$ac_dir_suffix;
10538 ac_top_srcdir=$srcdir
10539 ac_abs_top_srcdir=$srcdir ;;
10540 *) # Relative name.
10541 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10542 ac_top_srcdir=$ac_top_build_prefix$srcdir
10543 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10544 esac
10545 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10548 case $ac_mode in
10551 # CONFIG_FILE
10554 _ACEOF
10556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10557 # If the template does not know about datarootdir, expand it.
10558 # FIXME: This hack should be removed a few years after 2.60.
10559 ac_datarootdir_hack=; ac_datarootdir_seen=
10560 ac_sed_dataroot='
10561 /datarootdir/ {
10565 /@datadir@/p
10566 /@docdir@/p
10567 /@infodir@/p
10568 /@localedir@/p
10569 /@mandir@/p'
10570 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10571 *datarootdir*) ac_datarootdir_seen=yes;;
10572 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10574 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10575 _ACEOF
10576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10577 ac_datarootdir_hack='
10578 s&@datadir@&$datadir&g
10579 s&@docdir@&$docdir&g
10580 s&@infodir@&$infodir&g
10581 s&@localedir@&$localedir&g
10582 s&@mandir@&$mandir&g
10583 s&\\\${datarootdir}&$datarootdir&g' ;;
10584 esac
10585 _ACEOF
10587 # Neutralize VPATH when `$srcdir' = `.'.
10588 # Shell code in configure.ac might set extrasub.
10589 # FIXME: do we really want to maintain this feature?
10590 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10591 ac_sed_extra="$ac_vpsub
10592 $extrasub
10593 _ACEOF
10594 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10596 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10597 s|@configure_input@|$ac_sed_conf_input|;t t
10598 s&@top_builddir@&$ac_top_builddir_sub&;t t
10599 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10600 s&@srcdir@&$ac_srcdir&;t t
10601 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10602 s&@top_srcdir@&$ac_top_srcdir&;t t
10603 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10604 s&@builddir@&$ac_builddir&;t t
10605 s&@abs_builddir@&$ac_abs_builddir&;t t
10606 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10607 $ac_datarootdir_hack
10609 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10610 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10612 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10613 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10614 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10615 "$ac_tmp/out"`; test -z "$ac_out"; } &&
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10617 which seems to be undefined. Please make sure it is defined" >&5
10618 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10619 which seems to be undefined. Please make sure it is defined" >&2;}
10621 rm -f "$ac_tmp/stdin"
10622 case $ac_file in
10623 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10624 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10625 esac \
10626 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10630 # CONFIG_HEADER
10632 if test x"$ac_file" != x-; then
10634 $as_echo "/* $configure_input */" \
10635 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10636 } >"$ac_tmp/config.h" \
10637 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10638 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10640 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10641 else
10642 rm -f "$ac_file"
10643 mv "$ac_tmp/config.h" "$ac_file" \
10644 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10646 else
10647 $as_echo "/* $configure_input */" \
10648 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10649 || as_fn_error $? "could not create -" "$LINENO" 5
10654 esac
10656 done # for ac_tag
10659 as_fn_exit 0
10660 _ACEOF
10661 ac_clean_files=$ac_clean_files_save
10663 test $ac_write_fail = 0 ||
10664 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10667 # configure is writing to config.log, and then calls config.status.
10668 # config.status does its own redirection, appending to config.log.
10669 # Unfortunately, on DOS this fails, as config.log is still kept open
10670 # by configure, so config.status won't be able to write to it; its
10671 # output is simply discarded. So we exec the FD to /dev/null,
10672 # effectively closing config.log, so it can be properly (re)opened and
10673 # appended to by config.status. When coming back to configure, we
10674 # need to make the FD available again.
10675 if test "$no_create" != yes; then
10676 ac_cs_success=:
10677 ac_config_status_args=
10678 test "$silent" = yes &&
10679 ac_config_status_args="$ac_config_status_args --quiet"
10680 exec 5>/dev/null
10681 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10682 exec 5>>config.log
10683 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10684 # would make configure fail if this is the last instruction.
10685 $ac_cs_success || as_fn_exit 1
10687 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10689 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
10694 $as_echo "$as_me: " >&6;}
10695 if test $BUNDLED_LIBTOM = 1 ; then
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: Using bundled libtomcrypt and libtommath" >&5
10697 $as_echo "$as_me: Using bundled libtomcrypt and libtommath" >&6;}
10698 else
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: Using system libtomcrypt and libtommath" >&5
10700 $as_echo "$as_me: Using system libtomcrypt and libtommath" >&6;}
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
10704 $as_echo "$as_me: " >&6;}
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: Now edit options.h to choose features." >&5
10706 $as_echo "$as_me: Now edit options.h to choose features." >&6;}