dropbear: update to 2013.62
[tomato.git] / release / src / router / dropbear / configure
blob6ebe9c8de99ef1572c4ef62fe86213c181208692
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-bundled-libtom Force using system libtomcrypt/libtommath, fail if it does not exist.
1338 Default is to use system if available, otherwise bundled.
1339 --disable-lastlog Disable use of lastlog even if detected no
1340 --disable-utmp Disable use of utmp even if detected no
1341 --disable-utmpx Disable use of utmpx even if detected no
1342 --disable-wtmp Disable use of wtmp even if detected no
1343 --disable-wtmpx Disable use of wtmpx even if detected no
1344 --disable-loginfunc Disable use of login() etc. no
1345 --disable-pututline Disable use of pututline() etc. (uwtmp) no
1346 --disable-pututxline Disable use of pututxline() etc. (uwtmpx) no
1348 Optional Packages:
1349 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1350 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1351 --with-zlib=PATH Use zlib in PATH
1352 --with-pam=PATH Use pam in PATH
1353 --with-lastlog=FILE|DIR specify lastlog location common locations
1355 Some influential environment variables:
1356 CC C compiler command
1357 CFLAGS C compiler flags
1358 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1359 nonstandard directory <lib dir>
1360 LIBS libraries to pass to the linker, e.g. -l<library>
1361 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1362 you have headers in a nonstandard directory <include dir>
1363 CPP C preprocessor
1365 Use these variables to override the choices made by `configure' or to help
1366 it to find libraries and programs with nonstandard names/locations.
1368 Report bugs to the package provider.
1369 _ACEOF
1370 ac_status=$?
1373 if test "$ac_init_help" = "recursive"; then
1374 # If there are subdirs, report their specific --help.
1375 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1376 test -d "$ac_dir" ||
1377 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1378 continue
1379 ac_builddir=.
1381 case "$ac_dir" in
1382 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1384 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1385 # A ".." for each directory in $ac_dir_suffix.
1386 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1387 case $ac_top_builddir_sub in
1388 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1389 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1390 esac ;;
1391 esac
1392 ac_abs_top_builddir=$ac_pwd
1393 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1394 # for backward compatibility:
1395 ac_top_builddir=$ac_top_build_prefix
1397 case $srcdir in
1398 .) # We are building in place.
1399 ac_srcdir=.
1400 ac_top_srcdir=$ac_top_builddir_sub
1401 ac_abs_top_srcdir=$ac_pwd ;;
1402 [\\/]* | ?:[\\/]* ) # Absolute name.
1403 ac_srcdir=$srcdir$ac_dir_suffix;
1404 ac_top_srcdir=$srcdir
1405 ac_abs_top_srcdir=$srcdir ;;
1406 *) # Relative name.
1407 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1408 ac_top_srcdir=$ac_top_build_prefix$srcdir
1409 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1410 esac
1411 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1413 cd "$ac_dir" || { ac_status=$?; continue; }
1414 # Check for guested configure.
1415 if test -f "$ac_srcdir/configure.gnu"; then
1416 echo &&
1417 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1418 elif test -f "$ac_srcdir/configure"; then
1419 echo &&
1420 $SHELL "$ac_srcdir/configure" --help=recursive
1421 else
1422 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1423 fi || ac_status=$?
1424 cd "$ac_pwd" || { ac_status=$?; break; }
1425 done
1428 test -n "$ac_init_help" && exit $ac_status
1429 if $ac_init_version; then
1430 cat <<\_ACEOF
1431 configure
1432 generated by GNU Autoconf 2.69
1434 Copyright (C) 2012 Free Software Foundation, Inc.
1435 This configure script is free software; the Free Software Foundation
1436 gives unlimited permission to copy, distribute and modify it.
1437 _ACEOF
1438 exit
1441 ## ------------------------ ##
1442 ## Autoconf initialization. ##
1443 ## ------------------------ ##
1445 # ac_fn_c_try_compile LINENO
1446 # --------------------------
1447 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1448 ac_fn_c_try_compile ()
1450 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1451 rm -f conftest.$ac_objext
1452 if { { ac_try="$ac_compile"
1453 case "(($ac_try" in
1454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1455 *) ac_try_echo=$ac_try;;
1456 esac
1457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1458 $as_echo "$ac_try_echo"; } >&5
1459 (eval "$ac_compile") 2>conftest.err
1460 ac_status=$?
1461 if test -s conftest.err; then
1462 grep -v '^ *+' conftest.err >conftest.er1
1463 cat conftest.er1 >&5
1464 mv -f conftest.er1 conftest.err
1466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1467 test $ac_status = 0; } && {
1468 test -z "$ac_c_werror_flag" ||
1469 test ! -s conftest.err
1470 } && test -s conftest.$ac_objext; then :
1471 ac_retval=0
1472 else
1473 $as_echo "$as_me: failed program was:" >&5
1474 sed 's/^/| /' conftest.$ac_ext >&5
1476 ac_retval=1
1478 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1479 as_fn_set_status $ac_retval
1481 } # ac_fn_c_try_compile
1483 # ac_fn_c_try_link LINENO
1484 # -----------------------
1485 # Try to link conftest.$ac_ext, and return whether this succeeded.
1486 ac_fn_c_try_link ()
1488 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1489 rm -f conftest.$ac_objext conftest$ac_exeext
1490 if { { ac_try="$ac_link"
1491 case "(($ac_try" in
1492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1493 *) ac_try_echo=$ac_try;;
1494 esac
1495 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1496 $as_echo "$ac_try_echo"; } >&5
1497 (eval "$ac_link") 2>conftest.err
1498 ac_status=$?
1499 if test -s conftest.err; then
1500 grep -v '^ *+' conftest.err >conftest.er1
1501 cat conftest.er1 >&5
1502 mv -f conftest.er1 conftest.err
1504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1505 test $ac_status = 0; } && {
1506 test -z "$ac_c_werror_flag" ||
1507 test ! -s conftest.err
1508 } && test -s conftest$ac_exeext && {
1509 test "$cross_compiling" = yes ||
1510 test -x conftest$ac_exeext
1511 }; then :
1512 ac_retval=0
1513 else
1514 $as_echo "$as_me: failed program was:" >&5
1515 sed 's/^/| /' conftest.$ac_ext >&5
1517 ac_retval=1
1519 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1520 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1521 # interfere with the next link command; also delete a directory that is
1522 # left behind by Apple's compiler. We do this before executing the actions.
1523 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1524 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1525 as_fn_set_status $ac_retval
1527 } # ac_fn_c_try_link
1529 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1530 # ---------------------------------------------
1531 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1532 # accordingly.
1533 ac_fn_c_check_decl ()
1535 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1536 as_decl_name=`echo $2|sed 's/ *(.*//'`
1537 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1539 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1540 if eval \${$3+:} false; then :
1541 $as_echo_n "(cached) " >&6
1542 else
1543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1544 /* end confdefs.h. */
1547 main ()
1549 #ifndef $as_decl_name
1550 #ifdef __cplusplus
1551 (void) $as_decl_use;
1552 #else
1553 (void) $as_decl_name;
1554 #endif
1555 #endif
1558 return 0;
1560 _ACEOF
1561 if ac_fn_c_try_compile "$LINENO"; then :
1562 eval "$3=yes"
1563 else
1564 eval "$3=no"
1566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1568 eval ac_res=\$$3
1569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1570 $as_echo "$ac_res" >&6; }
1571 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1573 } # ac_fn_c_check_decl
1575 # ac_fn_c_try_cpp LINENO
1576 # ----------------------
1577 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1578 ac_fn_c_try_cpp ()
1580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581 if { { ac_try="$ac_cpp conftest.$ac_ext"
1582 case "(($ac_try" in
1583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1584 *) ac_try_echo=$ac_try;;
1585 esac
1586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587 $as_echo "$ac_try_echo"; } >&5
1588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1589 ac_status=$?
1590 if test -s conftest.err; then
1591 grep -v '^ *+' conftest.err >conftest.er1
1592 cat conftest.er1 >&5
1593 mv -f conftest.er1 conftest.err
1595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596 test $ac_status = 0; } > conftest.i && {
1597 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1598 test ! -s conftest.err
1599 }; then :
1600 ac_retval=0
1601 else
1602 $as_echo "$as_me: failed program was:" >&5
1603 sed 's/^/| /' conftest.$ac_ext >&5
1605 ac_retval=1
1607 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1608 as_fn_set_status $ac_retval
1610 } # ac_fn_c_try_cpp
1612 # ac_fn_c_try_run LINENO
1613 # ----------------------
1614 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1615 # that executables *can* be run.
1616 ac_fn_c_try_run ()
1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619 if { { ac_try="$ac_link"
1620 case "(($ac_try" in
1621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1622 *) ac_try_echo=$ac_try;;
1623 esac
1624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625 $as_echo "$ac_try_echo"; } >&5
1626 (eval "$ac_link") 2>&5
1627 ac_status=$?
1628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1630 { { case "(($ac_try" in
1631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1632 *) ac_try_echo=$ac_try;;
1633 esac
1634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635 $as_echo "$ac_try_echo"; } >&5
1636 (eval "$ac_try") 2>&5
1637 ac_status=$?
1638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1639 test $ac_status = 0; }; }; then :
1640 ac_retval=0
1641 else
1642 $as_echo "$as_me: program exited with status $ac_status" >&5
1643 $as_echo "$as_me: failed program was:" >&5
1644 sed 's/^/| /' conftest.$ac_ext >&5
1646 ac_retval=$ac_status
1648 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650 as_fn_set_status $ac_retval
1652 } # ac_fn_c_try_run
1654 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1655 # -------------------------------------------------------
1656 # Tests whether HEADER exists and can be compiled using the include files in
1657 # INCLUDES, setting the cache variable VAR accordingly.
1658 ac_fn_c_check_header_compile ()
1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1662 $as_echo_n "checking for $2... " >&6; }
1663 if eval \${$3+:} false; then :
1664 $as_echo_n "(cached) " >&6
1665 else
1666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1667 /* end confdefs.h. */
1669 #include <$2>
1670 _ACEOF
1671 if ac_fn_c_try_compile "$LINENO"; then :
1672 eval "$3=yes"
1673 else
1674 eval "$3=no"
1676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1678 eval ac_res=\$$3
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1680 $as_echo "$ac_res" >&6; }
1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683 } # ac_fn_c_check_header_compile
1685 # ac_fn_c_check_func LINENO FUNC VAR
1686 # ----------------------------------
1687 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1688 ac_fn_c_check_func ()
1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1692 $as_echo_n "checking for $2... " >&6; }
1693 if eval \${$3+:} false; then :
1694 $as_echo_n "(cached) " >&6
1695 else
1696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1697 /* end confdefs.h. */
1698 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1700 #define $2 innocuous_$2
1702 /* System header to define __stub macros and hopefully few prototypes,
1703 which can conflict with char $2 (); below.
1704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1705 <limits.h> exists even on freestanding compilers. */
1707 #ifdef __STDC__
1708 # include <limits.h>
1709 #else
1710 # include <assert.h>
1711 #endif
1713 #undef $2
1715 /* Override any GCC internal prototype to avoid an error.
1716 Use char because int might match the return type of a GCC
1717 builtin and then its argument prototype would still apply. */
1718 #ifdef __cplusplus
1719 extern "C"
1720 #endif
1721 char $2 ();
1722 /* The GNU C library defines this for functions which it implements
1723 to always fail with ENOSYS. Some functions are actually named
1724 something starting with __ and the normal name is an alias. */
1725 #if defined __stub_$2 || defined __stub___$2
1726 choke me
1727 #endif
1730 main ()
1732 return $2 ();
1734 return 0;
1736 _ACEOF
1737 if ac_fn_c_try_link "$LINENO"; then :
1738 eval "$3=yes"
1739 else
1740 eval "$3=no"
1742 rm -f core conftest.err conftest.$ac_objext \
1743 conftest$ac_exeext conftest.$ac_ext
1745 eval ac_res=\$$3
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1747 $as_echo "$ac_res" >&6; }
1748 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750 } # ac_fn_c_check_func
1752 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1753 # -------------------------------------------------------
1754 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1755 # the include files in INCLUDES and setting the cache variable VAR
1756 # accordingly.
1757 ac_fn_c_check_header_mongrel ()
1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760 if eval \${$3+:} false; then :
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1762 $as_echo_n "checking for $2... " >&6; }
1763 if eval \${$3+:} false; then :
1764 $as_echo_n "(cached) " >&6
1766 eval ac_res=\$$3
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768 $as_echo "$ac_res" >&6; }
1769 else
1770 # Is the header compilable?
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1772 $as_echo_n "checking $2 usability... " >&6; }
1773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774 /* end confdefs.h. */
1776 #include <$2>
1777 _ACEOF
1778 if ac_fn_c_try_compile "$LINENO"; then :
1779 ac_header_compiler=yes
1780 else
1781 ac_header_compiler=no
1783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1785 $as_echo "$ac_header_compiler" >&6; }
1787 # Is the header present?
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1789 $as_echo_n "checking $2 presence... " >&6; }
1790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791 /* end confdefs.h. */
1792 #include <$2>
1793 _ACEOF
1794 if ac_fn_c_try_cpp "$LINENO"; then :
1795 ac_header_preproc=yes
1796 else
1797 ac_header_preproc=no
1799 rm -f conftest.err conftest.i conftest.$ac_ext
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1801 $as_echo "$ac_header_preproc" >&6; }
1803 # So? What about this header?
1804 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1805 yes:no: )
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1807 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1809 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1811 no:yes:* )
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1813 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1815 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1817 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1819 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1821 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1823 esac
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1825 $as_echo_n "checking for $2... " >&6; }
1826 if eval \${$3+:} false; then :
1827 $as_echo_n "(cached) " >&6
1828 else
1829 eval "$3=\$ac_header_compiler"
1831 eval ac_res=\$$3
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1833 $as_echo "$ac_res" >&6; }
1835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837 } # ac_fn_c_check_header_mongrel
1839 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1840 # -------------------------------------------
1841 # Tests whether TYPE exists after having included INCLUDES, setting cache
1842 # variable VAR accordingly.
1843 ac_fn_c_check_type ()
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1847 $as_echo_n "checking for $2... " >&6; }
1848 if eval \${$3+:} false; then :
1849 $as_echo_n "(cached) " >&6
1850 else
1851 eval "$3=no"
1852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853 /* end confdefs.h. */
1856 main ()
1858 if (sizeof ($2))
1859 return 0;
1861 return 0;
1863 _ACEOF
1864 if ac_fn_c_try_compile "$LINENO"; then :
1865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866 /* end confdefs.h. */
1869 main ()
1871 if (sizeof (($2)))
1872 return 0;
1874 return 0;
1876 _ACEOF
1877 if ac_fn_c_try_compile "$LINENO"; then :
1879 else
1880 eval "$3=yes"
1882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1886 eval ac_res=\$$3
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888 $as_echo "$ac_res" >&6; }
1889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1891 } # ac_fn_c_check_type
1893 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1894 # ----------------------------------------------------
1895 # Tries to find if the field MEMBER exists in type AGGR, after including
1896 # INCLUDES, setting cache variable VAR accordingly.
1897 ac_fn_c_check_member ()
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1901 $as_echo_n "checking for $2.$3... " >&6; }
1902 if eval \${$4+:} false; then :
1903 $as_echo_n "(cached) " >&6
1904 else
1905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906 /* end confdefs.h. */
1909 main ()
1911 static $2 ac_aggr;
1912 if (ac_aggr.$3)
1913 return 0;
1915 return 0;
1917 _ACEOF
1918 if ac_fn_c_try_compile "$LINENO"; then :
1919 eval "$4=yes"
1920 else
1921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1922 /* end confdefs.h. */
1925 main ()
1927 static $2 ac_aggr;
1928 if (sizeof ac_aggr.$3)
1929 return 0;
1931 return 0;
1933 _ACEOF
1934 if ac_fn_c_try_compile "$LINENO"; then :
1935 eval "$4=yes"
1936 else
1937 eval "$4=no"
1939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1943 eval ac_res=\$$4
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1945 $as_echo "$ac_res" >&6; }
1946 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1948 } # ac_fn_c_check_member
1949 cat >config.log <<_ACEOF
1950 This file contains any messages produced by compilers while
1951 running configure, to aid debugging if configure makes a mistake.
1953 It was created by $as_me, which was
1954 generated by GNU Autoconf 2.69. Invocation command line was
1956 $ $0 $@
1958 _ACEOF
1959 exec 5>>config.log
1961 cat <<_ASUNAME
1962 ## --------- ##
1963 ## Platform. ##
1964 ## --------- ##
1966 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1967 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1968 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1969 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1970 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1972 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1973 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1975 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1976 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1977 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1978 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1979 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1980 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1981 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1983 _ASUNAME
1985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1986 for as_dir in $PATH
1988 IFS=$as_save_IFS
1989 test -z "$as_dir" && as_dir=.
1990 $as_echo "PATH: $as_dir"
1991 done
1992 IFS=$as_save_IFS
1994 } >&5
1996 cat >&5 <<_ACEOF
1999 ## ----------- ##
2000 ## Core tests. ##
2001 ## ----------- ##
2003 _ACEOF
2006 # Keep a trace of the command line.
2007 # Strip out --no-create and --no-recursion so they do not pile up.
2008 # Strip out --silent because we don't want to record it for future runs.
2009 # Also quote any args containing shell meta-characters.
2010 # Make two passes to allow for proper duplicate-argument suppression.
2011 ac_configure_args=
2012 ac_configure_args0=
2013 ac_configure_args1=
2014 ac_must_keep_next=false
2015 for ac_pass in 1 2
2017 for ac_arg
2019 case $ac_arg in
2020 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2021 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2022 | -silent | --silent | --silen | --sile | --sil)
2023 continue ;;
2024 *\'*)
2025 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2026 esac
2027 case $ac_pass in
2028 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2030 as_fn_append ac_configure_args1 " '$ac_arg'"
2031 if test $ac_must_keep_next = true; then
2032 ac_must_keep_next=false # Got value, back to normal.
2033 else
2034 case $ac_arg in
2035 *=* | --config-cache | -C | -disable-* | --disable-* \
2036 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2037 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2038 | -with-* | --with-* | -without-* | --without-* | --x)
2039 case "$ac_configure_args0 " in
2040 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2041 esac
2043 -* ) ac_must_keep_next=true ;;
2044 esac
2046 as_fn_append ac_configure_args " '$ac_arg'"
2048 esac
2049 done
2050 done
2051 { ac_configure_args0=; unset ac_configure_args0;}
2052 { ac_configure_args1=; unset ac_configure_args1;}
2054 # When interrupted or exit'd, cleanup temporary files, and complete
2055 # config.log. We remove comments because anyway the quotes in there
2056 # would cause problems or look ugly.
2057 # WARNING: Use '\'' to represent an apostrophe within the trap.
2058 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2059 trap 'exit_status=$?
2060 # Save into config.log some information that might help in debugging.
2062 echo
2064 $as_echo "## ---------------- ##
2065 ## Cache variables. ##
2066 ## ---------------- ##"
2067 echo
2068 # The following way of writing the cache mishandles newlines in values,
2070 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2071 eval ac_val=\$$ac_var
2072 case $ac_val in #(
2073 *${as_nl}*)
2074 case $ac_var in #(
2075 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2076 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2077 esac
2078 case $ac_var in #(
2079 _ | IFS | as_nl) ;; #(
2080 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2081 *) { eval $ac_var=; unset $ac_var;} ;;
2082 esac ;;
2083 esac
2084 done
2085 (set) 2>&1 |
2086 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2087 *${as_nl}ac_space=\ *)
2088 sed -n \
2089 "s/'\''/'\''\\\\'\'''\''/g;
2090 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2091 ;; #(
2093 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2095 esac |
2096 sort
2098 echo
2100 $as_echo "## ----------------- ##
2101 ## Output variables. ##
2102 ## ----------------- ##"
2103 echo
2104 for ac_var in $ac_subst_vars
2106 eval ac_val=\$$ac_var
2107 case $ac_val in
2108 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2109 esac
2110 $as_echo "$ac_var='\''$ac_val'\''"
2111 done | sort
2112 echo
2114 if test -n "$ac_subst_files"; then
2115 $as_echo "## ------------------- ##
2116 ## File substitutions. ##
2117 ## ------------------- ##"
2118 echo
2119 for ac_var in $ac_subst_files
2121 eval ac_val=\$$ac_var
2122 case $ac_val in
2123 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2124 esac
2125 $as_echo "$ac_var='\''$ac_val'\''"
2126 done | sort
2127 echo
2130 if test -s confdefs.h; then
2131 $as_echo "## ----------- ##
2132 ## confdefs.h. ##
2133 ## ----------- ##"
2134 echo
2135 cat confdefs.h
2136 echo
2138 test "$ac_signal" != 0 &&
2139 $as_echo "$as_me: caught signal $ac_signal"
2140 $as_echo "$as_me: exit $exit_status"
2141 } >&5
2142 rm -f core *.core core.conftest.* &&
2143 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2144 exit $exit_status
2146 for ac_signal in 1 2 13 15; do
2147 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2148 done
2149 ac_signal=0
2151 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2152 rm -f -r conftest* confdefs.h
2154 $as_echo "/* confdefs.h */" > confdefs.h
2156 # Predefined preprocessor variables.
2158 cat >>confdefs.h <<_ACEOF
2159 #define PACKAGE_NAME "$PACKAGE_NAME"
2160 _ACEOF
2162 cat >>confdefs.h <<_ACEOF
2163 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2164 _ACEOF
2166 cat >>confdefs.h <<_ACEOF
2167 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2168 _ACEOF
2170 cat >>confdefs.h <<_ACEOF
2171 #define PACKAGE_STRING "$PACKAGE_STRING"
2172 _ACEOF
2174 cat >>confdefs.h <<_ACEOF
2175 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2176 _ACEOF
2178 cat >>confdefs.h <<_ACEOF
2179 #define PACKAGE_URL "$PACKAGE_URL"
2180 _ACEOF
2183 # Let the site file select an alternate cache file if it wants to.
2184 # Prefer an explicitly selected file to automatically selected ones.
2185 ac_site_file1=NONE
2186 ac_site_file2=NONE
2187 if test -n "$CONFIG_SITE"; then
2188 # We do not want a PATH search for config.site.
2189 case $CONFIG_SITE in #((
2190 -*) ac_site_file1=./$CONFIG_SITE;;
2191 */*) ac_site_file1=$CONFIG_SITE;;
2192 *) ac_site_file1=./$CONFIG_SITE;;
2193 esac
2194 elif test "x$prefix" != xNONE; then
2195 ac_site_file1=$prefix/share/config.site
2196 ac_site_file2=$prefix/etc/config.site
2197 else
2198 ac_site_file1=$ac_default_prefix/share/config.site
2199 ac_site_file2=$ac_default_prefix/etc/config.site
2201 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2203 test "x$ac_site_file" = xNONE && continue
2204 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2206 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2207 sed 's/^/| /' "$ac_site_file" >&5
2208 . "$ac_site_file" \
2209 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2210 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2211 as_fn_error $? "failed to load site script $ac_site_file
2212 See \`config.log' for more details" "$LINENO" 5; }
2214 done
2216 if test -r "$cache_file"; then
2217 # Some versions of bash will fail to source /dev/null (special files
2218 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2219 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2221 $as_echo "$as_me: loading cache $cache_file" >&6;}
2222 case $cache_file in
2223 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2224 *) . "./$cache_file";;
2225 esac
2227 else
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2229 $as_echo "$as_me: creating cache $cache_file" >&6;}
2230 >$cache_file
2233 # Check that the precious variables saved in the cache have kept the same
2234 # value.
2235 ac_cache_corrupted=false
2236 for ac_var in $ac_precious_vars; do
2237 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2238 eval ac_new_set=\$ac_env_${ac_var}_set
2239 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2240 eval ac_new_val=\$ac_env_${ac_var}_value
2241 case $ac_old_set,$ac_new_set in
2242 set,)
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2244 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2245 ac_cache_corrupted=: ;;
2246 ,set)
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2248 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2249 ac_cache_corrupted=: ;;
2250 ,);;
2252 if test "x$ac_old_val" != "x$ac_new_val"; then
2253 # differences in whitespace do not lead to failure.
2254 ac_old_val_w=`echo x $ac_old_val`
2255 ac_new_val_w=`echo x $ac_new_val`
2256 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2258 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2259 ac_cache_corrupted=:
2260 else
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2262 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2263 eval $ac_var=\$ac_old_val
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2266 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2268 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2269 fi;;
2270 esac
2271 # Pass precious variables to config.status.
2272 if test "$ac_new_set" = set; then
2273 case $ac_new_val in
2274 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2275 *) ac_arg=$ac_var=$ac_new_val ;;
2276 esac
2277 case " $ac_configure_args " in
2278 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2279 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2280 esac
2282 done
2283 if $ac_cache_corrupted; then
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2287 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2288 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2290 ## -------------------- ##
2291 ## Main body of script. ##
2292 ## -------------------- ##
2294 ac_ext=c
2295 ac_cpp='$CPP $CPPFLAGS'
2296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2303 OLDCFLAGS=$CFLAGS
2304 # Checks for programs.
2305 ac_ext=c
2306 ac_cpp='$CPP $CPPFLAGS'
2307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2310 if test -n "$ac_tool_prefix"; then
2311 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2312 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2314 $as_echo_n "checking for $ac_word... " >&6; }
2315 if ${ac_cv_prog_CC+:} false; then :
2316 $as_echo_n "(cached) " >&6
2317 else
2318 if test -n "$CC"; then
2319 ac_cv_prog_CC="$CC" # Let the user override the test.
2320 else
2321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2322 for as_dir in $PATH
2324 IFS=$as_save_IFS
2325 test -z "$as_dir" && as_dir=.
2326 for ac_exec_ext in '' $ac_executable_extensions; do
2327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2328 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2330 break 2
2332 done
2333 done
2334 IFS=$as_save_IFS
2338 CC=$ac_cv_prog_CC
2339 if test -n "$CC"; then
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2341 $as_echo "$CC" >&6; }
2342 else
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2344 $as_echo "no" >&6; }
2349 if test -z "$ac_cv_prog_CC"; then
2350 ac_ct_CC=$CC
2351 # Extract the first word of "gcc", so it can be a program name with args.
2352 set dummy gcc; ac_word=$2
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2354 $as_echo_n "checking for $ac_word... " >&6; }
2355 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2356 $as_echo_n "(cached) " >&6
2357 else
2358 if test -n "$ac_ct_CC"; then
2359 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2360 else
2361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2362 for as_dir in $PATH
2364 IFS=$as_save_IFS
2365 test -z "$as_dir" && as_dir=.
2366 for ac_exec_ext in '' $ac_executable_extensions; do
2367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2368 ac_cv_prog_ac_ct_CC="gcc"
2369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2370 break 2
2372 done
2373 done
2374 IFS=$as_save_IFS
2378 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2379 if test -n "$ac_ct_CC"; then
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2381 $as_echo "$ac_ct_CC" >&6; }
2382 else
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2384 $as_echo "no" >&6; }
2387 if test "x$ac_ct_CC" = x; then
2388 CC=""
2389 else
2390 case $cross_compiling:$ac_tool_warned in
2391 yes:)
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2393 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2394 ac_tool_warned=yes ;;
2395 esac
2396 CC=$ac_ct_CC
2398 else
2399 CC="$ac_cv_prog_CC"
2402 if test -z "$CC"; then
2403 if test -n "$ac_tool_prefix"; then
2404 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2405 set dummy ${ac_tool_prefix}cc; ac_word=$2
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2407 $as_echo_n "checking for $ac_word... " >&6; }
2408 if ${ac_cv_prog_CC+:} false; then :
2409 $as_echo_n "(cached) " >&6
2410 else
2411 if test -n "$CC"; then
2412 ac_cv_prog_CC="$CC" # Let the user override the test.
2413 else
2414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2415 for as_dir in $PATH
2417 IFS=$as_save_IFS
2418 test -z "$as_dir" && as_dir=.
2419 for ac_exec_ext in '' $ac_executable_extensions; do
2420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2421 ac_cv_prog_CC="${ac_tool_prefix}cc"
2422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2423 break 2
2425 done
2426 done
2427 IFS=$as_save_IFS
2431 CC=$ac_cv_prog_CC
2432 if test -n "$CC"; then
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2434 $as_echo "$CC" >&6; }
2435 else
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2437 $as_echo "no" >&6; }
2443 if test -z "$CC"; then
2444 # Extract the first word of "cc", so it can be a program name with args.
2445 set dummy cc; ac_word=$2
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2447 $as_echo_n "checking for $ac_word... " >&6; }
2448 if ${ac_cv_prog_CC+:} false; then :
2449 $as_echo_n "(cached) " >&6
2450 else
2451 if test -n "$CC"; then
2452 ac_cv_prog_CC="$CC" # Let the user override the test.
2453 else
2454 ac_prog_rejected=no
2455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456 for as_dir in $PATH
2458 IFS=$as_save_IFS
2459 test -z "$as_dir" && as_dir=.
2460 for ac_exec_ext in '' $ac_executable_extensions; do
2461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2462 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2463 ac_prog_rejected=yes
2464 continue
2466 ac_cv_prog_CC="cc"
2467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2468 break 2
2470 done
2471 done
2472 IFS=$as_save_IFS
2474 if test $ac_prog_rejected = yes; then
2475 # We found a bogon in the path, so make sure we never use it.
2476 set dummy $ac_cv_prog_CC
2477 shift
2478 if test $# != 0; then
2479 # We chose a different compiler from the bogus one.
2480 # However, it has the same basename, so the bogon will be chosen
2481 # first if we set CC to just the basename; use the full file name.
2482 shift
2483 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2488 CC=$ac_cv_prog_CC
2489 if test -n "$CC"; then
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2491 $as_echo "$CC" >&6; }
2492 else
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2494 $as_echo "no" >&6; }
2499 if test -z "$CC"; then
2500 if test -n "$ac_tool_prefix"; then
2501 for ac_prog in cl.exe
2503 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2504 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2506 $as_echo_n "checking for $ac_word... " >&6; }
2507 if ${ac_cv_prog_CC+:} false; then :
2508 $as_echo_n "(cached) " >&6
2509 else
2510 if test -n "$CC"; then
2511 ac_cv_prog_CC="$CC" # Let the user override the test.
2512 else
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 for as_dir in $PATH
2516 IFS=$as_save_IFS
2517 test -z "$as_dir" && as_dir=.
2518 for ac_exec_ext in '' $ac_executable_extensions; do
2519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2520 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2522 break 2
2524 done
2525 done
2526 IFS=$as_save_IFS
2530 CC=$ac_cv_prog_CC
2531 if test -n "$CC"; then
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2533 $as_echo "$CC" >&6; }
2534 else
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2536 $as_echo "no" >&6; }
2540 test -n "$CC" && break
2541 done
2543 if test -z "$CC"; then
2544 ac_ct_CC=$CC
2545 for ac_prog in cl.exe
2547 # Extract the first word of "$ac_prog", so it can be a program name with args.
2548 set dummy $ac_prog; ac_word=$2
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2550 $as_echo_n "checking for $ac_word... " >&6; }
2551 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2552 $as_echo_n "(cached) " >&6
2553 else
2554 if test -n "$ac_ct_CC"; then
2555 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2556 else
2557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558 for as_dir in $PATH
2560 IFS=$as_save_IFS
2561 test -z "$as_dir" && as_dir=.
2562 for ac_exec_ext in '' $ac_executable_extensions; do
2563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2564 ac_cv_prog_ac_ct_CC="$ac_prog"
2565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2566 break 2
2568 done
2569 done
2570 IFS=$as_save_IFS
2574 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2575 if test -n "$ac_ct_CC"; then
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2577 $as_echo "$ac_ct_CC" >&6; }
2578 else
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2580 $as_echo "no" >&6; }
2584 test -n "$ac_ct_CC" && break
2585 done
2587 if test "x$ac_ct_CC" = x; then
2588 CC=""
2589 else
2590 case $cross_compiling:$ac_tool_warned in
2591 yes:)
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2594 ac_tool_warned=yes ;;
2595 esac
2596 CC=$ac_ct_CC
2603 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2605 as_fn_error $? "no acceptable C compiler found in \$PATH
2606 See \`config.log' for more details" "$LINENO" 5; }
2608 # Provide some information about the compiler.
2609 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2610 set X $ac_compile
2611 ac_compiler=$2
2612 for ac_option in --version -v -V -qversion; do
2613 { { ac_try="$ac_compiler $ac_option >&5"
2614 case "(($ac_try" in
2615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2616 *) ac_try_echo=$ac_try;;
2617 esac
2618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2619 $as_echo "$ac_try_echo"; } >&5
2620 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2621 ac_status=$?
2622 if test -s conftest.err; then
2623 sed '10a\
2624 ... rest of stderr output deleted ...
2625 10q' conftest.err >conftest.er1
2626 cat conftest.er1 >&5
2628 rm -f conftest.er1 conftest.err
2629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2630 test $ac_status = 0; }
2631 done
2633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2634 /* end confdefs.h. */
2637 main ()
2641 return 0;
2643 _ACEOF
2644 ac_clean_files_save=$ac_clean_files
2645 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2646 # Try to create an executable without -o first, disregard a.out.
2647 # It will help us diagnose broken compilers, and finding out an intuition
2648 # of exeext.
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2650 $as_echo_n "checking whether the C compiler works... " >&6; }
2651 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2653 # The possible output files:
2654 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2656 ac_rmfiles=
2657 for ac_file in $ac_files
2659 case $ac_file in
2660 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2661 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2662 esac
2663 done
2664 rm -f $ac_rmfiles
2666 if { { ac_try="$ac_link_default"
2667 case "(($ac_try" in
2668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2669 *) ac_try_echo=$ac_try;;
2670 esac
2671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2672 $as_echo "$ac_try_echo"; } >&5
2673 (eval "$ac_link_default") 2>&5
2674 ac_status=$?
2675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2676 test $ac_status = 0; }; then :
2677 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2678 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2679 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2680 # so that the user can short-circuit this test for compilers unknown to
2681 # Autoconf.
2682 for ac_file in $ac_files ''
2684 test -f "$ac_file" || continue
2685 case $ac_file in
2686 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2688 [ab].out )
2689 # We found the default executable, but exeext='' is most
2690 # certainly right.
2691 break;;
2692 *.* )
2693 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2694 then :; else
2695 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2697 # We set ac_cv_exeext here because the later test for it is not
2698 # safe: cross compilers may not add the suffix if given an `-o'
2699 # argument, so we may need to know it at that point already.
2700 # Even if this section looks crufty: it has the advantage of
2701 # actually working.
2702 break;;
2704 break;;
2705 esac
2706 done
2707 test "$ac_cv_exeext" = no && ac_cv_exeext=
2709 else
2710 ac_file=''
2712 if test -z "$ac_file"; then :
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2714 $as_echo "no" >&6; }
2715 $as_echo "$as_me: failed program was:" >&5
2716 sed 's/^/| /' conftest.$ac_ext >&5
2718 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2719 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2720 as_fn_error 77 "C compiler cannot create executables
2721 See \`config.log' for more details" "$LINENO" 5; }
2722 else
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2724 $as_echo "yes" >&6; }
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2727 $as_echo_n "checking for C compiler default output file name... " >&6; }
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2729 $as_echo "$ac_file" >&6; }
2730 ac_exeext=$ac_cv_exeext
2732 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2733 ac_clean_files=$ac_clean_files_save
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2735 $as_echo_n "checking for suffix of executables... " >&6; }
2736 if { { ac_try="$ac_link"
2737 case "(($ac_try" in
2738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2739 *) ac_try_echo=$ac_try;;
2740 esac
2741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2742 $as_echo "$ac_try_echo"; } >&5
2743 (eval "$ac_link") 2>&5
2744 ac_status=$?
2745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2746 test $ac_status = 0; }; then :
2747 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2748 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2749 # work properly (i.e., refer to `conftest.exe'), while it won't with
2750 # `rm'.
2751 for ac_file in conftest.exe conftest conftest.*; do
2752 test -f "$ac_file" || continue
2753 case $ac_file in
2754 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2755 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2756 break;;
2757 * ) break;;
2758 esac
2759 done
2760 else
2761 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2762 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2763 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2764 See \`config.log' for more details" "$LINENO" 5; }
2766 rm -f conftest conftest$ac_cv_exeext
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2768 $as_echo "$ac_cv_exeext" >&6; }
2770 rm -f conftest.$ac_ext
2771 EXEEXT=$ac_cv_exeext
2772 ac_exeext=$EXEEXT
2773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2774 /* end confdefs.h. */
2775 #include <stdio.h>
2777 main ()
2779 FILE *f = fopen ("conftest.out", "w");
2780 return ferror (f) || fclose (f) != 0;
2783 return 0;
2785 _ACEOF
2786 ac_clean_files="$ac_clean_files conftest.out"
2787 # Check that the compiler produces executables we can run. If not, either
2788 # the compiler is broken, or we cross compile.
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2790 $as_echo_n "checking whether we are cross compiling... " >&6; }
2791 if test "$cross_compiling" != yes; then
2792 { { ac_try="$ac_link"
2793 case "(($ac_try" in
2794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2795 *) ac_try_echo=$ac_try;;
2796 esac
2797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2798 $as_echo "$ac_try_echo"; } >&5
2799 (eval "$ac_link") 2>&5
2800 ac_status=$?
2801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2802 test $ac_status = 0; }
2803 if { ac_try='./conftest$ac_cv_exeext'
2804 { { case "(($ac_try" in
2805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2806 *) ac_try_echo=$ac_try;;
2807 esac
2808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2809 $as_echo "$ac_try_echo"; } >&5
2810 (eval "$ac_try") 2>&5
2811 ac_status=$?
2812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2813 test $ac_status = 0; }; }; then
2814 cross_compiling=no
2815 else
2816 if test "$cross_compiling" = maybe; then
2817 cross_compiling=yes
2818 else
2819 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2821 as_fn_error $? "cannot run C compiled programs.
2822 If you meant to cross compile, use \`--host'.
2823 See \`config.log' for more details" "$LINENO" 5; }
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2828 $as_echo "$cross_compiling" >&6; }
2830 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2831 ac_clean_files=$ac_clean_files_save
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2833 $as_echo_n "checking for suffix of object files... " >&6; }
2834 if ${ac_cv_objext+:} false; then :
2835 $as_echo_n "(cached) " >&6
2836 else
2837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2838 /* end confdefs.h. */
2841 main ()
2845 return 0;
2847 _ACEOF
2848 rm -f conftest.o conftest.obj
2849 if { { ac_try="$ac_compile"
2850 case "(($ac_try" in
2851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2852 *) ac_try_echo=$ac_try;;
2853 esac
2854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2855 $as_echo "$ac_try_echo"; } >&5
2856 (eval "$ac_compile") 2>&5
2857 ac_status=$?
2858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2859 test $ac_status = 0; }; then :
2860 for ac_file in conftest.o conftest.obj conftest.*; do
2861 test -f "$ac_file" || continue;
2862 case $ac_file in
2863 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2864 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2865 break;;
2866 esac
2867 done
2868 else
2869 $as_echo "$as_me: failed program was:" >&5
2870 sed 's/^/| /' conftest.$ac_ext >&5
2872 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2873 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2874 as_fn_error $? "cannot compute suffix of object files: cannot compile
2875 See \`config.log' for more details" "$LINENO" 5; }
2877 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2880 $as_echo "$ac_cv_objext" >&6; }
2881 OBJEXT=$ac_cv_objext
2882 ac_objext=$OBJEXT
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2884 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2885 if ${ac_cv_c_compiler_gnu+:} false; then :
2886 $as_echo_n "(cached) " >&6
2887 else
2888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2889 /* end confdefs.h. */
2892 main ()
2894 #ifndef __GNUC__
2895 choke me
2896 #endif
2899 return 0;
2901 _ACEOF
2902 if ac_fn_c_try_compile "$LINENO"; then :
2903 ac_compiler_gnu=yes
2904 else
2905 ac_compiler_gnu=no
2907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2908 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2912 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2913 if test $ac_compiler_gnu = yes; then
2914 GCC=yes
2915 else
2916 GCC=
2918 ac_test_CFLAGS=${CFLAGS+set}
2919 ac_save_CFLAGS=$CFLAGS
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2921 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2922 if ${ac_cv_prog_cc_g+:} false; then :
2923 $as_echo_n "(cached) " >&6
2924 else
2925 ac_save_c_werror_flag=$ac_c_werror_flag
2926 ac_c_werror_flag=yes
2927 ac_cv_prog_cc_g=no
2928 CFLAGS="-g"
2929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2930 /* end confdefs.h. */
2933 main ()
2937 return 0;
2939 _ACEOF
2940 if ac_fn_c_try_compile "$LINENO"; then :
2941 ac_cv_prog_cc_g=yes
2942 else
2943 CFLAGS=""
2944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2945 /* end confdefs.h. */
2948 main ()
2952 return 0;
2954 _ACEOF
2955 if ac_fn_c_try_compile "$LINENO"; then :
2957 else
2958 ac_c_werror_flag=$ac_save_c_werror_flag
2959 CFLAGS="-g"
2960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2961 /* end confdefs.h. */
2964 main ()
2968 return 0;
2970 _ACEOF
2971 if ac_fn_c_try_compile "$LINENO"; then :
2972 ac_cv_prog_cc_g=yes
2974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2979 ac_c_werror_flag=$ac_save_c_werror_flag
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2982 $as_echo "$ac_cv_prog_cc_g" >&6; }
2983 if test "$ac_test_CFLAGS" = set; then
2984 CFLAGS=$ac_save_CFLAGS
2985 elif test $ac_cv_prog_cc_g = yes; then
2986 if test "$GCC" = yes; then
2987 CFLAGS="-g -O2"
2988 else
2989 CFLAGS="-g"
2991 else
2992 if test "$GCC" = yes; then
2993 CFLAGS="-O2"
2994 else
2995 CFLAGS=
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2999 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3000 if ${ac_cv_prog_cc_c89+:} false; then :
3001 $as_echo_n "(cached) " >&6
3002 else
3003 ac_cv_prog_cc_c89=no
3004 ac_save_CC=$CC
3005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3006 /* end confdefs.h. */
3007 #include <stdarg.h>
3008 #include <stdio.h>
3009 struct stat;
3010 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3011 struct buf { int x; };
3012 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3013 static char *e (p, i)
3014 char **p;
3015 int i;
3017 return p[i];
3019 static char *f (char * (*g) (char **, int), char **p, ...)
3021 char *s;
3022 va_list v;
3023 va_start (v,p);
3024 s = g (p, va_arg (v,int));
3025 va_end (v);
3026 return s;
3029 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3030 function prototypes and stuff, but not '\xHH' hex character constants.
3031 These don't provoke an error unfortunately, instead are silently treated
3032 as 'x'. The following induces an error, until -std is added to get
3033 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3034 array size at least. It's necessary to write '\x00'==0 to get something
3035 that's true only with -std. */
3036 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3038 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3039 inside strings and character constants. */
3040 #define FOO(x) 'x'
3041 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3043 int test (int i, double x);
3044 struct s1 {int (*f) (int a);};
3045 struct s2 {int (*f) (double a);};
3046 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3047 int argc;
3048 char **argv;
3050 main ()
3052 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3054 return 0;
3056 _ACEOF
3057 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3058 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3060 CC="$ac_save_CC $ac_arg"
3061 if ac_fn_c_try_compile "$LINENO"; then :
3062 ac_cv_prog_cc_c89=$ac_arg
3064 rm -f core conftest.err conftest.$ac_objext
3065 test "x$ac_cv_prog_cc_c89" != "xno" && break
3066 done
3067 rm -f conftest.$ac_ext
3068 CC=$ac_save_CC
3071 # AC_CACHE_VAL
3072 case "x$ac_cv_prog_cc_c89" in
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3075 $as_echo "none needed" >&6; } ;;
3076 xno)
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3078 $as_echo "unsupported" >&6; } ;;
3080 CC="$CC $ac_cv_prog_cc_c89"
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3082 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3083 esac
3084 if test "x$ac_cv_prog_cc_c89" != xno; then :
3088 ac_ext=c
3089 ac_cpp='$CPP $CPPFLAGS'
3090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3095 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3096 set x ${MAKE-make}
3097 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3098 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3099 $as_echo_n "(cached) " >&6
3100 else
3101 cat >conftest.make <<\_ACEOF
3102 SHELL = /bin/sh
3103 all:
3104 @echo '@@@%%%=$(MAKE)=@@@%%%'
3105 _ACEOF
3106 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3107 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3108 *@@@%%%=?*=@@@%%%*)
3109 eval ac_cv_prog_make_${ac_make}_set=yes;;
3111 eval ac_cv_prog_make_${ac_make}_set=no;;
3112 esac
3113 rm -f conftest.make
3115 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3117 $as_echo "yes" >&6; }
3118 SET_MAKE=
3119 else
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3121 $as_echo "no" >&6; }
3122 SET_MAKE="MAKE=${MAKE-make}"
3126 if test -z "$LD" ; then
3127 LD=$CC
3131 if test -z "$OLDCFLAGS" && test "$GCC" = "yes"; then
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: No \$CFLAGS set... using \"-Os -W -Wall\" for GCC" >&5
3133 $as_echo "$as_me: No \$CFLAGS set... using \"-Os -W -Wall\" for GCC" >&6;}
3134 CFLAGS="-Os -W -Wall -Wno-pointer-sign"
3137 # large file support is useful for scp
3139 # Check whether --enable-largefile was given.
3140 if test "${enable_largefile+set}" = set; then :
3141 enableval=$enable_largefile;
3144 if test "$enable_largefile" != no; then
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3147 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3148 if ${ac_cv_sys_largefile_CC+:} false; then :
3149 $as_echo_n "(cached) " >&6
3150 else
3151 ac_cv_sys_largefile_CC=no
3152 if test "$GCC" != yes; then
3153 ac_save_CC=$CC
3154 while :; do
3155 # IRIX 6.2 and later do not support large files by default,
3156 # so use the C compiler's -n32 option if that helps.
3157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3158 /* end confdefs.h. */
3159 #include <sys/types.h>
3160 /* Check that off_t can represent 2**63 - 1 correctly.
3161 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3162 since some C++ compilers masquerading as C compilers
3163 incorrectly reject 9223372036854775807. */
3164 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3165 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3166 && LARGE_OFF_T % 2147483647 == 1)
3167 ? 1 : -1];
3169 main ()
3173 return 0;
3175 _ACEOF
3176 if ac_fn_c_try_compile "$LINENO"; then :
3177 break
3179 rm -f core conftest.err conftest.$ac_objext
3180 CC="$CC -n32"
3181 if ac_fn_c_try_compile "$LINENO"; then :
3182 ac_cv_sys_largefile_CC=' -n32'; break
3184 rm -f core conftest.err conftest.$ac_objext
3185 break
3186 done
3187 CC=$ac_save_CC
3188 rm -f conftest.$ac_ext
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3192 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
3193 if test "$ac_cv_sys_largefile_CC" != no; then
3194 CC=$CC$ac_cv_sys_largefile_CC
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3198 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3199 if ${ac_cv_sys_file_offset_bits+:} false; then :
3200 $as_echo_n "(cached) " >&6
3201 else
3202 while :; do
3203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3204 /* end confdefs.h. */
3205 #include <sys/types.h>
3206 /* Check that off_t can represent 2**63 - 1 correctly.
3207 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3208 since some C++ compilers masquerading as C compilers
3209 incorrectly reject 9223372036854775807. */
3210 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3211 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3212 && LARGE_OFF_T % 2147483647 == 1)
3213 ? 1 : -1];
3215 main ()
3219 return 0;
3221 _ACEOF
3222 if ac_fn_c_try_compile "$LINENO"; then :
3223 ac_cv_sys_file_offset_bits=no; break
3225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3227 /* end confdefs.h. */
3228 #define _FILE_OFFSET_BITS 64
3229 #include <sys/types.h>
3230 /* Check that off_t can represent 2**63 - 1 correctly.
3231 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3232 since some C++ compilers masquerading as C compilers
3233 incorrectly reject 9223372036854775807. */
3234 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3235 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3236 && LARGE_OFF_T % 2147483647 == 1)
3237 ? 1 : -1];
3239 main ()
3243 return 0;
3245 _ACEOF
3246 if ac_fn_c_try_compile "$LINENO"; then :
3247 ac_cv_sys_file_offset_bits=64; break
3249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3250 ac_cv_sys_file_offset_bits=unknown
3251 break
3252 done
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
3255 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
3256 case $ac_cv_sys_file_offset_bits in #(
3257 no | unknown) ;;
3259 cat >>confdefs.h <<_ACEOF
3260 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3261 _ACEOF
3263 esac
3264 rm -rf conftest*
3265 if test $ac_cv_sys_file_offset_bits = unknown; then
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
3267 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
3268 if ${ac_cv_sys_large_files+:} false; then :
3269 $as_echo_n "(cached) " >&6
3270 else
3271 while :; do
3272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3273 /* end confdefs.h. */
3274 #include <sys/types.h>
3275 /* Check that off_t can represent 2**63 - 1 correctly.
3276 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3277 since some C++ compilers masquerading as C compilers
3278 incorrectly reject 9223372036854775807. */
3279 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3280 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3281 && LARGE_OFF_T % 2147483647 == 1)
3282 ? 1 : -1];
3284 main ()
3288 return 0;
3290 _ACEOF
3291 if ac_fn_c_try_compile "$LINENO"; then :
3292 ac_cv_sys_large_files=no; break
3294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3296 /* end confdefs.h. */
3297 #define _LARGE_FILES 1
3298 #include <sys/types.h>
3299 /* Check that off_t can represent 2**63 - 1 correctly.
3300 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3301 since some C++ compilers masquerading as C compilers
3302 incorrectly reject 9223372036854775807. */
3303 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3304 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3305 && LARGE_OFF_T % 2147483647 == 1)
3306 ? 1 : -1];
3308 main ()
3312 return 0;
3314 _ACEOF
3315 if ac_fn_c_try_compile "$LINENO"; then :
3316 ac_cv_sys_large_files=1; break
3318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3319 ac_cv_sys_large_files=unknown
3320 break
3321 done
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
3324 $as_echo "$ac_cv_sys_large_files" >&6; }
3325 case $ac_cv_sys_large_files in #(
3326 no | unknown) ;;
3328 cat >>confdefs.h <<_ACEOF
3329 #define _LARGE_FILES $ac_cv_sys_large_files
3330 _ACEOF
3332 esac
3333 rm -rf conftest*
3340 # Host specific options
3341 # this isn't a definitive list of hosts, they are just added as required
3342 ac_aux_dir=
3343 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3344 if test -f "$ac_dir/install-sh"; then
3345 ac_aux_dir=$ac_dir
3346 ac_install_sh="$ac_aux_dir/install-sh -c"
3347 break
3348 elif test -f "$ac_dir/install.sh"; then
3349 ac_aux_dir=$ac_dir
3350 ac_install_sh="$ac_aux_dir/install.sh -c"
3351 break
3352 elif test -f "$ac_dir/shtool"; then
3353 ac_aux_dir=$ac_dir
3354 ac_install_sh="$ac_aux_dir/shtool install -c"
3355 break
3357 done
3358 if test -z "$ac_aux_dir"; then
3359 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3362 # These three variables are undocumented and unsupported,
3363 # and are intended to be withdrawn in a future Autoconf release.
3364 # They can cause serious problems if a builder's source tree is in a directory
3365 # whose full name contains unusual characters.
3366 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3367 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3368 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3371 # Make sure we can run config.sub.
3372 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3373 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3376 $as_echo_n "checking build system type... " >&6; }
3377 if ${ac_cv_build+:} false; then :
3378 $as_echo_n "(cached) " >&6
3379 else
3380 ac_build_alias=$build_alias
3381 test "x$ac_build_alias" = x &&
3382 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3383 test "x$ac_build_alias" = x &&
3384 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3385 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3386 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3390 $as_echo "$ac_cv_build" >&6; }
3391 case $ac_cv_build in
3392 *-*-*) ;;
3393 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3394 esac
3395 build=$ac_cv_build
3396 ac_save_IFS=$IFS; IFS='-'
3397 set x $ac_cv_build
3398 shift
3399 build_cpu=$1
3400 build_vendor=$2
3401 shift; shift
3402 # Remember, the first character of IFS is used to create $*,
3403 # except with old shells:
3404 build_os=$*
3405 IFS=$ac_save_IFS
3406 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3410 $as_echo_n "checking host system type... " >&6; }
3411 if ${ac_cv_host+:} false; then :
3412 $as_echo_n "(cached) " >&6
3413 else
3414 if test "x$host_alias" = x; then
3415 ac_cv_host=$ac_cv_build
3416 else
3417 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3418 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3423 $as_echo "$ac_cv_host" >&6; }
3424 case $ac_cv_host in
3425 *-*-*) ;;
3426 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3427 esac
3428 host=$ac_cv_host
3429 ac_save_IFS=$IFS; IFS='-'
3430 set x $ac_cv_host
3431 shift
3432 host_cpu=$1
3433 host_vendor=$2
3434 shift; shift
3435 # Remember, the first character of IFS is used to create $*,
3436 # except with old shells:
3437 host_os=$*
3438 IFS=$ac_save_IFS
3439 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3443 case "$host" in
3445 *-*-linux*)
3446 no_ptmx_check=1
3449 *-*-solaris*)
3450 CFLAGS="$CFLAGS -I/usr/local/include"
3451 LDFLAGS="$LDFLAGS -L/usr/local/lib -R/usr/local/lib"
3452 conf_lastlog_location="/var/adm/lastlog"
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obsolete utmp and wtmp in solaris2.x" >&5
3454 $as_echo_n "checking for obsolete utmp and wtmp in solaris2.x... " >&6; }
3455 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
3456 if test "$sol2ver" -ge 8; then
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3458 $as_echo "yes" >&6; }
3460 $as_echo "#define DISABLE_UTMP /**/" >>confdefs.h
3463 $as_echo "#define DISABLE_WTMP /**/" >>confdefs.h
3465 else
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3467 $as_echo "no" >&6; }
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
3470 $as_echo_n "checking for socket in -lsocket... " >&6; }
3471 if ${ac_cv_lib_socket_socket+:} false; then :
3472 $as_echo_n "(cached) " >&6
3473 else
3474 ac_check_lib_save_LIBS=$LIBS
3475 LIBS="-lsocket $LIBS"
3476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3477 /* end confdefs.h. */
3479 /* Override any GCC internal prototype to avoid an error.
3480 Use char because int might match the return type of a GCC
3481 builtin and then its argument prototype would still apply. */
3482 #ifdef __cplusplus
3483 extern "C"
3484 #endif
3485 char socket ();
3487 main ()
3489 return socket ();
3491 return 0;
3493 _ACEOF
3494 if ac_fn_c_try_link "$LINENO"; then :
3495 ac_cv_lib_socket_socket=yes
3496 else
3497 ac_cv_lib_socket_socket=no
3499 rm -f core conftest.err conftest.$ac_objext \
3500 conftest$ac_exeext conftest.$ac_ext
3501 LIBS=$ac_check_lib_save_LIBS
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
3504 $as_echo "$ac_cv_lib_socket_socket" >&6; }
3505 if test "x$ac_cv_lib_socket_socket" = xyes; then :
3506 LIBS="$LIBS -lsocket"
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yp_match in -lnsl" >&5
3510 $as_echo_n "checking for yp_match in -lnsl... " >&6; }
3511 if ${ac_cv_lib_nsl_yp_match+:} false; then :
3512 $as_echo_n "(cached) " >&6
3513 else
3514 ac_check_lib_save_LIBS=$LIBS
3515 LIBS="-lnsl $LIBS"
3516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3517 /* end confdefs.h. */
3519 /* Override any GCC internal prototype to avoid an error.
3520 Use char because int might match the return type of a GCC
3521 builtin and then its argument prototype would still apply. */
3522 #ifdef __cplusplus
3523 extern "C"
3524 #endif
3525 char yp_match ();
3527 main ()
3529 return yp_match ();
3531 return 0;
3533 _ACEOF
3534 if ac_fn_c_try_link "$LINENO"; then :
3535 ac_cv_lib_nsl_yp_match=yes
3536 else
3537 ac_cv_lib_nsl_yp_match=no
3539 rm -f core conftest.err conftest.$ac_objext \
3540 conftest$ac_exeext conftest.$ac_ext
3541 LIBS=$ac_check_lib_save_LIBS
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_yp_match" >&5
3544 $as_echo "$ac_cv_lib_nsl_yp_match" >&6; }
3545 if test "x$ac_cv_lib_nsl_yp_match" = xyes; then :
3546 LIBS="$LIBS -lnsl"
3551 *-*-aix*)
3553 $as_echo "#define AIX /**/" >>confdefs.h
3555 # OpenSSH thinks it's broken. If it isn't, let me know.
3557 $as_echo "#define BROKEN_GETADDRINFO /**/" >>confdefs.h
3561 *-*-hpux*)
3562 LIBS="$LIBS -lsec"
3563 # It's probably broken.
3565 $as_echo "#define BROKEN_GETADDRINFO /**/" >>confdefs.h
3568 *-dec-osf*)
3570 $as_echo "#define BROKEN_GETADDRINFO /**/" >>confdefs.h
3573 esac
3575 if test -n "$ac_tool_prefix"; then
3576 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3577 set dummy ${ac_tool_prefix}ar; ac_word=$2
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3579 $as_echo_n "checking for $ac_word... " >&6; }
3580 if ${ac_cv_prog_AR+:} false; then :
3581 $as_echo_n "(cached) " >&6
3582 else
3583 if test -n "$AR"; then
3584 ac_cv_prog_AR="$AR" # Let the user override the test.
3585 else
3586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587 for as_dir in $PATH
3589 IFS=$as_save_IFS
3590 test -z "$as_dir" && as_dir=.
3591 for ac_exec_ext in '' $ac_executable_extensions; do
3592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3593 ac_cv_prog_AR="${ac_tool_prefix}ar"
3594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3595 break 2
3597 done
3598 done
3599 IFS=$as_save_IFS
3603 AR=$ac_cv_prog_AR
3604 if test -n "$AR"; then
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3606 $as_echo "$AR" >&6; }
3607 else
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3609 $as_echo "no" >&6; }
3614 if test -z "$ac_cv_prog_AR"; then
3615 ac_ct_AR=$AR
3616 # Extract the first word of "ar", so it can be a program name with args.
3617 set dummy ar; ac_word=$2
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3619 $as_echo_n "checking for $ac_word... " >&6; }
3620 if ${ac_cv_prog_ac_ct_AR+:} false; then :
3621 $as_echo_n "(cached) " >&6
3622 else
3623 if test -n "$ac_ct_AR"; then
3624 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3625 else
3626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3627 for as_dir in $PATH
3629 IFS=$as_save_IFS
3630 test -z "$as_dir" && as_dir=.
3631 for ac_exec_ext in '' $ac_executable_extensions; do
3632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3633 ac_cv_prog_ac_ct_AR="ar"
3634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3635 break 2
3637 done
3638 done
3639 IFS=$as_save_IFS
3643 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3644 if test -n "$ac_ct_AR"; then
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3646 $as_echo "$ac_ct_AR" >&6; }
3647 else
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3649 $as_echo "no" >&6; }
3652 if test "x$ac_ct_AR" = x; then
3653 AR=":"
3654 else
3655 case $cross_compiling:$ac_tool_warned in
3656 yes:)
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3658 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3659 ac_tool_warned=yes ;;
3660 esac
3661 AR=$ac_ct_AR
3663 else
3664 AR="$ac_cv_prog_AR"
3667 if test -n "$ac_tool_prefix"; then
3668 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3669 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3671 $as_echo_n "checking for $ac_word... " >&6; }
3672 if ${ac_cv_prog_RANLIB+:} false; then :
3673 $as_echo_n "(cached) " >&6
3674 else
3675 if test -n "$RANLIB"; then
3676 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3677 else
3678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3679 for as_dir in $PATH
3681 IFS=$as_save_IFS
3682 test -z "$as_dir" && as_dir=.
3683 for ac_exec_ext in '' $ac_executable_extensions; do
3684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3685 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3687 break 2
3689 done
3690 done
3691 IFS=$as_save_IFS
3695 RANLIB=$ac_cv_prog_RANLIB
3696 if test -n "$RANLIB"; then
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3698 $as_echo "$RANLIB" >&6; }
3699 else
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3701 $as_echo "no" >&6; }
3706 if test -z "$ac_cv_prog_RANLIB"; then
3707 ac_ct_RANLIB=$RANLIB
3708 # Extract the first word of "ranlib", so it can be a program name with args.
3709 set dummy ranlib; ac_word=$2
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3711 $as_echo_n "checking for $ac_word... " >&6; }
3712 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3713 $as_echo_n "(cached) " >&6
3714 else
3715 if test -n "$ac_ct_RANLIB"; then
3716 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3717 else
3718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3719 for as_dir in $PATH
3721 IFS=$as_save_IFS
3722 test -z "$as_dir" && as_dir=.
3723 for ac_exec_ext in '' $ac_executable_extensions; do
3724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3725 ac_cv_prog_ac_ct_RANLIB="ranlib"
3726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3727 break 2
3729 done
3730 done
3731 IFS=$as_save_IFS
3735 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3736 if test -n "$ac_ct_RANLIB"; then
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3738 $as_echo "$ac_ct_RANLIB" >&6; }
3739 else
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3741 $as_echo "no" >&6; }
3744 if test "x$ac_ct_RANLIB" = x; then
3745 RANLIB=":"
3746 else
3747 case $cross_compiling:$ac_tool_warned in
3748 yes:)
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3751 ac_tool_warned=yes ;;
3752 esac
3753 RANLIB=$ac_ct_RANLIB
3755 else
3756 RANLIB="$ac_cv_prog_RANLIB"
3759 if test -n "$ac_tool_prefix"; then
3760 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3761 set dummy ${ac_tool_prefix}strip; ac_word=$2
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3763 $as_echo_n "checking for $ac_word... " >&6; }
3764 if ${ac_cv_prog_STRIP+:} false; then :
3765 $as_echo_n "(cached) " >&6
3766 else
3767 if test -n "$STRIP"; then
3768 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3769 else
3770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3771 for as_dir in $PATH
3773 IFS=$as_save_IFS
3774 test -z "$as_dir" && as_dir=.
3775 for ac_exec_ext in '' $ac_executable_extensions; do
3776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3777 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3779 break 2
3781 done
3782 done
3783 IFS=$as_save_IFS
3787 STRIP=$ac_cv_prog_STRIP
3788 if test -n "$STRIP"; then
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3790 $as_echo "$STRIP" >&6; }
3791 else
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3793 $as_echo "no" >&6; }
3798 if test -z "$ac_cv_prog_STRIP"; then
3799 ac_ct_STRIP=$STRIP
3800 # Extract the first word of "strip", so it can be a program name with args.
3801 set dummy strip; ac_word=$2
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3803 $as_echo_n "checking for $ac_word... " >&6; }
3804 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3805 $as_echo_n "(cached) " >&6
3806 else
3807 if test -n "$ac_ct_STRIP"; then
3808 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3809 else
3810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3811 for as_dir in $PATH
3813 IFS=$as_save_IFS
3814 test -z "$as_dir" && as_dir=.
3815 for ac_exec_ext in '' $ac_executable_extensions; do
3816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3817 ac_cv_prog_ac_ct_STRIP="strip"
3818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3819 break 2
3821 done
3822 done
3823 IFS=$as_save_IFS
3827 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3828 if test -n "$ac_ct_STRIP"; then
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3830 $as_echo "$ac_ct_STRIP" >&6; }
3831 else
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3833 $as_echo "no" >&6; }
3836 if test "x$ac_ct_STRIP" = x; then
3837 STRIP=":"
3838 else
3839 case $cross_compiling:$ac_tool_warned in
3840 yes:)
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3842 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3843 ac_tool_warned=yes ;;
3844 esac
3845 STRIP=$ac_ct_STRIP
3847 else
3848 STRIP="$ac_cv_prog_STRIP"
3851 if test -n "$ac_tool_prefix"; then
3852 # Extract the first word of "${ac_tool_prefix}install", so it can be a program name with args.
3853 set dummy ${ac_tool_prefix}install; ac_word=$2
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3855 $as_echo_n "checking for $ac_word... " >&6; }
3856 if ${ac_cv_prog_INSTALL+:} false; then :
3857 $as_echo_n "(cached) " >&6
3858 else
3859 if test -n "$INSTALL"; then
3860 ac_cv_prog_INSTALL="$INSTALL" # Let the user override the test.
3861 else
3862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3863 for as_dir in $PATH
3865 IFS=$as_save_IFS
3866 test -z "$as_dir" && as_dir=.
3867 for ac_exec_ext in '' $ac_executable_extensions; do
3868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3869 ac_cv_prog_INSTALL="${ac_tool_prefix}install"
3870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3871 break 2
3873 done
3874 done
3875 IFS=$as_save_IFS
3879 INSTALL=$ac_cv_prog_INSTALL
3880 if test -n "$INSTALL"; then
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3882 $as_echo "$INSTALL" >&6; }
3883 else
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3885 $as_echo "no" >&6; }
3890 if test -z "$ac_cv_prog_INSTALL"; then
3891 ac_ct_INSTALL=$INSTALL
3892 # Extract the first word of "install", so it can be a program name with args.
3893 set dummy install; ac_word=$2
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3895 $as_echo_n "checking for $ac_word... " >&6; }
3896 if ${ac_cv_prog_ac_ct_INSTALL+:} false; then :
3897 $as_echo_n "(cached) " >&6
3898 else
3899 if test -n "$ac_ct_INSTALL"; then
3900 ac_cv_prog_ac_ct_INSTALL="$ac_ct_INSTALL" # Let the user override the test.
3901 else
3902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903 for as_dir in $PATH
3905 IFS=$as_save_IFS
3906 test -z "$as_dir" && as_dir=.
3907 for ac_exec_ext in '' $ac_executable_extensions; do
3908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3909 ac_cv_prog_ac_ct_INSTALL="install"
3910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3911 break 2
3913 done
3914 done
3915 IFS=$as_save_IFS
3919 ac_ct_INSTALL=$ac_cv_prog_ac_ct_INSTALL
3920 if test -n "$ac_ct_INSTALL"; then
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_INSTALL" >&5
3922 $as_echo "$ac_ct_INSTALL" >&6; }
3923 else
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3925 $as_echo "no" >&6; }
3928 if test "x$ac_ct_INSTALL" = x; then
3929 INSTALL=":"
3930 else
3931 case $cross_compiling:$ac_tool_warned in
3932 yes:)
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3934 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3935 ac_tool_warned=yes ;;
3936 esac
3937 INSTALL=$ac_ct_INSTALL
3939 else
3940 INSTALL="$ac_cv_prog_INSTALL"
3944 ac_ext=c
3945 ac_cpp='$CPP $CPPFLAGS'
3946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3950 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3951 # On Suns, sometimes $CPP names a directory.
3952 if test -n "$CPP" && test -d "$CPP"; then
3953 CPP=
3955 if test -z "$CPP"; then
3956 if ${ac_cv_prog_CPP+:} false; then :
3957 $as_echo_n "(cached) " >&6
3958 else
3959 # Double quotes because CPP needs to be expanded
3960 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3962 ac_preproc_ok=false
3963 for ac_c_preproc_warn_flag in '' yes
3965 # Use a header file that comes with gcc, so configuring glibc
3966 # with a fresh cross-compiler works.
3967 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3968 # <limits.h> exists even on freestanding compilers.
3969 # On the NeXT, cc -E runs the code through the compiler's parser,
3970 # not just through cpp. "Syntax error" is here to catch this case.
3971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3972 /* end confdefs.h. */
3973 #ifdef __STDC__
3974 # include <limits.h>
3975 #else
3976 # include <assert.h>
3977 #endif
3978 Syntax error
3979 _ACEOF
3980 if ac_fn_c_try_cpp "$LINENO"; then :
3982 else
3983 # Broken: fails on valid input.
3984 continue
3986 rm -f conftest.err conftest.i conftest.$ac_ext
3988 # OK, works on sane cases. Now check whether nonexistent headers
3989 # can be detected and how.
3990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3991 /* end confdefs.h. */
3992 #include <ac_nonexistent.h>
3993 _ACEOF
3994 if ac_fn_c_try_cpp "$LINENO"; then :
3995 # Broken: success on invalid input.
3996 continue
3997 else
3998 # Passes both tests.
3999 ac_preproc_ok=:
4000 break
4002 rm -f conftest.err conftest.i conftest.$ac_ext
4004 done
4005 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4006 rm -f conftest.i conftest.err conftest.$ac_ext
4007 if $ac_preproc_ok; then :
4008 break
4011 done
4012 ac_cv_prog_CPP=$CPP
4015 CPP=$ac_cv_prog_CPP
4016 else
4017 ac_cv_prog_CPP=$CPP
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4020 $as_echo "$CPP" >&6; }
4021 ac_preproc_ok=false
4022 for ac_c_preproc_warn_flag in '' yes
4024 # Use a header file that comes with gcc, so configuring glibc
4025 # with a fresh cross-compiler works.
4026 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4027 # <limits.h> exists even on freestanding compilers.
4028 # On the NeXT, cc -E runs the code through the compiler's parser,
4029 # not just through cpp. "Syntax error" is here to catch this case.
4030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4031 /* end confdefs.h. */
4032 #ifdef __STDC__
4033 # include <limits.h>
4034 #else
4035 # include <assert.h>
4036 #endif
4037 Syntax error
4038 _ACEOF
4039 if ac_fn_c_try_cpp "$LINENO"; then :
4041 else
4042 # Broken: fails on valid input.
4043 continue
4045 rm -f conftest.err conftest.i conftest.$ac_ext
4047 # OK, works on sane cases. Now check whether nonexistent headers
4048 # can be detected and how.
4049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050 /* end confdefs.h. */
4051 #include <ac_nonexistent.h>
4052 _ACEOF
4053 if ac_fn_c_try_cpp "$LINENO"; then :
4054 # Broken: success on invalid input.
4055 continue
4056 else
4057 # Passes both tests.
4058 ac_preproc_ok=:
4059 break
4061 rm -f conftest.err conftest.i conftest.$ac_ext
4063 done
4064 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4065 rm -f conftest.i conftest.err conftest.$ac_ext
4066 if $ac_preproc_ok; then :
4068 else
4069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4071 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4072 See \`config.log' for more details" "$LINENO" 5; }
4075 ac_ext=c
4076 ac_cpp='$CPP $CPPFLAGS'
4077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4083 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4084 if ${ac_cv_path_GREP+:} false; then :
4085 $as_echo_n "(cached) " >&6
4086 else
4087 if test -z "$GREP"; then
4088 ac_path_GREP_found=false
4089 # Loop through the user's path and test for each of PROGNAME-LIST
4090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4093 IFS=$as_save_IFS
4094 test -z "$as_dir" && as_dir=.
4095 for ac_prog in grep ggrep; do
4096 for ac_exec_ext in '' $ac_executable_extensions; do
4097 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4098 as_fn_executable_p "$ac_path_GREP" || continue
4099 # Check for GNU ac_path_GREP and select it if it is found.
4100 # Check for GNU $ac_path_GREP
4101 case `"$ac_path_GREP" --version 2>&1` in
4102 *GNU*)
4103 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4105 ac_count=0
4106 $as_echo_n 0123456789 >"conftest.in"
4107 while :
4109 cat "conftest.in" "conftest.in" >"conftest.tmp"
4110 mv "conftest.tmp" "conftest.in"
4111 cp "conftest.in" "conftest.nl"
4112 $as_echo 'GREP' >> "conftest.nl"
4113 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4114 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4115 as_fn_arith $ac_count + 1 && ac_count=$as_val
4116 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4117 # Best one so far, save it but keep looking for a better one
4118 ac_cv_path_GREP="$ac_path_GREP"
4119 ac_path_GREP_max=$ac_count
4121 # 10*(2^10) chars as input seems more than enough
4122 test $ac_count -gt 10 && break
4123 done
4124 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4125 esac
4127 $ac_path_GREP_found && break 3
4128 done
4129 done
4130 done
4131 IFS=$as_save_IFS
4132 if test -z "$ac_cv_path_GREP"; then
4133 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4135 else
4136 ac_cv_path_GREP=$GREP
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4141 $as_echo "$ac_cv_path_GREP" >&6; }
4142 GREP="$ac_cv_path_GREP"
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4146 $as_echo_n "checking for egrep... " >&6; }
4147 if ${ac_cv_path_EGREP+:} false; then :
4148 $as_echo_n "(cached) " >&6
4149 else
4150 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4151 then ac_cv_path_EGREP="$GREP -E"
4152 else
4153 if test -z "$EGREP"; then
4154 ac_path_EGREP_found=false
4155 # Loop through the user's path and test for each of PROGNAME-LIST
4156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4157 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4159 IFS=$as_save_IFS
4160 test -z "$as_dir" && as_dir=.
4161 for ac_prog in egrep; do
4162 for ac_exec_ext in '' $ac_executable_extensions; do
4163 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4164 as_fn_executable_p "$ac_path_EGREP" || continue
4165 # Check for GNU ac_path_EGREP and select it if it is found.
4166 # Check for GNU $ac_path_EGREP
4167 case `"$ac_path_EGREP" --version 2>&1` in
4168 *GNU*)
4169 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4171 ac_count=0
4172 $as_echo_n 0123456789 >"conftest.in"
4173 while :
4175 cat "conftest.in" "conftest.in" >"conftest.tmp"
4176 mv "conftest.tmp" "conftest.in"
4177 cp "conftest.in" "conftest.nl"
4178 $as_echo 'EGREP' >> "conftest.nl"
4179 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4180 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4181 as_fn_arith $ac_count + 1 && ac_count=$as_val
4182 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4183 # Best one so far, save it but keep looking for a better one
4184 ac_cv_path_EGREP="$ac_path_EGREP"
4185 ac_path_EGREP_max=$ac_count
4187 # 10*(2^10) chars as input seems more than enough
4188 test $ac_count -gt 10 && break
4189 done
4190 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4191 esac
4193 $ac_path_EGREP_found && break 3
4194 done
4195 done
4196 done
4197 IFS=$as_save_IFS
4198 if test -z "$ac_cv_path_EGREP"; then
4199 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4201 else
4202 ac_cv_path_EGREP=$EGREP
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4208 $as_echo "$ac_cv_path_EGREP" >&6; }
4209 EGREP="$ac_cv_path_EGREP"
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4213 $as_echo_n "checking for ANSI C header files... " >&6; }
4214 if ${ac_cv_header_stdc+:} false; then :
4215 $as_echo_n "(cached) " >&6
4216 else
4217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4218 /* end confdefs.h. */
4219 #include <stdlib.h>
4220 #include <stdarg.h>
4221 #include <string.h>
4222 #include <float.h>
4225 main ()
4229 return 0;
4231 _ACEOF
4232 if ac_fn_c_try_compile "$LINENO"; then :
4233 ac_cv_header_stdc=yes
4234 else
4235 ac_cv_header_stdc=no
4237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4239 if test $ac_cv_header_stdc = yes; then
4240 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4242 /* end confdefs.h. */
4243 #include <string.h>
4245 _ACEOF
4246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4247 $EGREP "memchr" >/dev/null 2>&1; then :
4249 else
4250 ac_cv_header_stdc=no
4252 rm -f conftest*
4256 if test $ac_cv_header_stdc = yes; then
4257 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4259 /* end confdefs.h. */
4260 #include <stdlib.h>
4262 _ACEOF
4263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4264 $EGREP "free" >/dev/null 2>&1; then :
4266 else
4267 ac_cv_header_stdc=no
4269 rm -f conftest*
4273 if test $ac_cv_header_stdc = yes; then
4274 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4275 if test "$cross_compiling" = yes; then :
4277 else
4278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279 /* end confdefs.h. */
4280 #include <ctype.h>
4281 #include <stdlib.h>
4282 #if ((' ' & 0x0FF) == 0x020)
4283 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4284 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4285 #else
4286 # define ISLOWER(c) \
4287 (('a' <= (c) && (c) <= 'i') \
4288 || ('j' <= (c) && (c) <= 'r') \
4289 || ('s' <= (c) && (c) <= 'z'))
4290 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4291 #endif
4293 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4295 main ()
4297 int i;
4298 for (i = 0; i < 256; i++)
4299 if (XOR (islower (i), ISLOWER (i))
4300 || toupper (i) != TOUPPER (i))
4301 return 2;
4302 return 0;
4304 _ACEOF
4305 if ac_fn_c_try_run "$LINENO"; then :
4307 else
4308 ac_cv_header_stdc=no
4310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4311 conftest.$ac_objext conftest.beam conftest.$ac_ext
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4317 $as_echo "$ac_cv_header_stdc" >&6; }
4318 if test $ac_cv_header_stdc = yes; then
4320 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4324 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4325 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4326 inttypes.h stdint.h unistd.h
4327 do :
4328 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4329 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4331 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4332 cat >>confdefs.h <<_ACEOF
4333 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4334 _ACEOF
4338 done
4341 ac_fn_c_check_decl "$LINENO" "__UCLIBC__" "ac_cv_have_decl___UCLIBC__" "$ac_includes_default"
4342 if test "x$ac_cv_have_decl___UCLIBC__" = xyes; then :
4344 no_loginfunc_check=1
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: Using uClibc - login() and logout() probably don't work, so we won't use them." >&5
4346 $as_echo "$as_me: Using uClibc - login() and logout() probably don't work, so we won't use them." >&6;}
4351 # Checks for libraries.
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
4353 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
4354 if ${ac_cv_lib_crypt_crypt+:} false; then :
4355 $as_echo_n "(cached) " >&6
4356 else
4357 ac_check_lib_save_LIBS=$LIBS
4358 LIBS="-lcrypt $LIBS"
4359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4360 /* end confdefs.h. */
4362 /* Override any GCC internal prototype to avoid an error.
4363 Use char because int might match the return type of a GCC
4364 builtin and then its argument prototype would still apply. */
4365 #ifdef __cplusplus
4366 extern "C"
4367 #endif
4368 char crypt ();
4370 main ()
4372 return crypt ();
4374 return 0;
4376 _ACEOF
4377 if ac_fn_c_try_link "$LINENO"; then :
4378 ac_cv_lib_crypt_crypt=yes
4379 else
4380 ac_cv_lib_crypt_crypt=no
4382 rm -f core conftest.err conftest.$ac_objext \
4383 conftest$ac_exeext conftest.$ac_ext
4384 LIBS=$ac_check_lib_save_LIBS
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
4387 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
4388 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
4389 CRYPTLIB="-lcrypt"
4394 # Check if zlib is needed
4396 # Check whether --with-zlib was given.
4397 if test "${with_zlib+set}" = set; then :
4398 withval=$with_zlib;
4399 # option is given
4400 if test -d "$withval/lib"; then
4401 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
4402 else
4403 LDFLAGS="-L${withval} ${LDFLAGS}"
4405 if test -d "$withval/include"; then
4406 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
4407 else
4408 CPPFLAGS="-I${withval} ${CPPFLAGS}"
4415 # Check whether --enable-zlib was given.
4416 if test "${enable_zlib+set}" = set; then :
4417 enableval=$enable_zlib;
4418 if test "x$enableval" = "xno"; then
4420 $as_echo "#define DISABLE_ZLIB /**/" >>confdefs.h
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling zlib" >&5
4423 $as_echo "$as_me: Disabling zlib" >&6;}
4424 else
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
4426 $as_echo_n "checking for deflate in -lz... " >&6; }
4427 if ${ac_cv_lib_z_deflate+:} false; then :
4428 $as_echo_n "(cached) " >&6
4429 else
4430 ac_check_lib_save_LIBS=$LIBS
4431 LIBS="-lz $LIBS"
4432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4433 /* end confdefs.h. */
4435 /* Override any GCC internal prototype to avoid an error.
4436 Use char because int might match the return type of a GCC
4437 builtin and then its argument prototype would still apply. */
4438 #ifdef __cplusplus
4439 extern "C"
4440 #endif
4441 char deflate ();
4443 main ()
4445 return deflate ();
4447 return 0;
4449 _ACEOF
4450 if ac_fn_c_try_link "$LINENO"; then :
4451 ac_cv_lib_z_deflate=yes
4452 else
4453 ac_cv_lib_z_deflate=no
4455 rm -f core conftest.err conftest.$ac_objext \
4456 conftest$ac_exeext conftest.$ac_ext
4457 LIBS=$ac_check_lib_save_LIBS
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
4460 $as_echo "$ac_cv_lib_z_deflate" >&6; }
4461 if test "x$ac_cv_lib_z_deflate" = xyes; then :
4462 cat >>confdefs.h <<_ACEOF
4463 #define HAVE_LIBZ 1
4464 _ACEOF
4466 LIBS="-lz $LIBS"
4468 else
4469 as_fn_error $? "*** zlib missing - install first or check config.log ***" "$LINENO" 5
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling zlib" >&5
4473 $as_echo "$as_me: Enabling zlib" >&6;}
4476 else
4478 # if not disabled, check for zlib
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
4480 $as_echo_n "checking for deflate in -lz... " >&6; }
4481 if ${ac_cv_lib_z_deflate+:} false; then :
4482 $as_echo_n "(cached) " >&6
4483 else
4484 ac_check_lib_save_LIBS=$LIBS
4485 LIBS="-lz $LIBS"
4486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4487 /* end confdefs.h. */
4489 /* Override any GCC internal prototype to avoid an error.
4490 Use char because int might match the return type of a GCC
4491 builtin and then its argument prototype would still apply. */
4492 #ifdef __cplusplus
4493 extern "C"
4494 #endif
4495 char deflate ();
4497 main ()
4499 return deflate ();
4501 return 0;
4503 _ACEOF
4504 if ac_fn_c_try_link "$LINENO"; then :
4505 ac_cv_lib_z_deflate=yes
4506 else
4507 ac_cv_lib_z_deflate=no
4509 rm -f core conftest.err conftest.$ac_objext \
4510 conftest$ac_exeext conftest.$ac_ext
4511 LIBS=$ac_check_lib_save_LIBS
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
4514 $as_echo "$ac_cv_lib_z_deflate" >&6; }
4515 if test "x$ac_cv_lib_z_deflate" = xyes; then :
4516 cat >>confdefs.h <<_ACEOF
4517 #define HAVE_LIBZ 1
4518 _ACEOF
4520 LIBS="-lz $LIBS"
4522 else
4523 as_fn_error $? "*** zlib missing - install first or check config.log ***" "$LINENO" 5
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling zlib" >&5
4527 $as_echo "$as_me: Enabling zlib" >&6;}
4533 # Check if pam is needed
4535 # Check whether --with-pam was given.
4536 if test "${with_pam+set}" = set; then :
4537 withval=$with_pam;
4538 # option is given
4539 if test -d "$withval/lib"; then
4540 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
4541 else
4542 LDFLAGS="-L${withval} ${LDFLAGS}"
4544 if test -d "$withval/include"; then
4545 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
4546 else
4547 CPPFLAGS="-I${withval} ${CPPFLAGS}"
4555 # Check whether --enable-pam was given.
4556 if test "${enable_pam+set}" = set; then :
4557 enableval=$enable_pam;
4558 if test "x$enableval" = "xyes"; then
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_authenticate in -lpam" >&5
4560 $as_echo_n "checking for pam_authenticate in -lpam... " >&6; }
4561 if ${ac_cv_lib_pam_pam_authenticate+:} false; then :
4562 $as_echo_n "(cached) " >&6
4563 else
4564 ac_check_lib_save_LIBS=$LIBS
4565 LIBS="-lpam $LIBS"
4566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4567 /* end confdefs.h. */
4569 /* Override any GCC internal prototype to avoid an error.
4570 Use char because int might match the return type of a GCC
4571 builtin and then its argument prototype would still apply. */
4572 #ifdef __cplusplus
4573 extern "C"
4574 #endif
4575 char pam_authenticate ();
4577 main ()
4579 return pam_authenticate ();
4581 return 0;
4583 _ACEOF
4584 if ac_fn_c_try_link "$LINENO"; then :
4585 ac_cv_lib_pam_pam_authenticate=yes
4586 else
4587 ac_cv_lib_pam_pam_authenticate=no
4589 rm -f core conftest.err conftest.$ac_objext \
4590 conftest$ac_exeext conftest.$ac_ext
4591 LIBS=$ac_check_lib_save_LIBS
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_authenticate" >&5
4594 $as_echo "$ac_cv_lib_pam_pam_authenticate" >&6; }
4595 if test "x$ac_cv_lib_pam_pam_authenticate" = xyes; then :
4596 cat >>confdefs.h <<_ACEOF
4597 #define HAVE_LIBPAM 1
4598 _ACEOF
4600 LIBS="-lpam $LIBS"
4602 else
4603 as_fn_error $? "*** PAM missing - install first or check config.log ***" "$LINENO" 5
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling PAM" >&5
4607 $as_echo "$as_me: Enabling PAM" >&6;}
4608 for ac_func in pam_fail_delay
4609 do :
4610 ac_fn_c_check_func "$LINENO" "pam_fail_delay" "ac_cv_func_pam_fail_delay"
4611 if test "x$ac_cv_func_pam_fail_delay" = xyes; then :
4612 cat >>confdefs.h <<_ACEOF
4613 #define HAVE_PAM_FAIL_DELAY 1
4614 _ACEOF
4617 done
4619 else
4621 $as_echo "#define DISABLE_PAM /**/" >>confdefs.h
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling PAM" >&5
4624 $as_echo "$as_me: Disabling PAM" >&6;}
4627 else
4629 # disable it by default
4631 $as_echo "#define DISABLE_PAM /**/" >>confdefs.h
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling PAM" >&5
4634 $as_echo "$as_me: Disabling PAM" >&6;}
4640 # Check whether --enable-openpty was given.
4641 if test "${enable_openpty+set}" = set; then :
4642 enableval=$enable_openpty;
4643 if test "x$enableval" = "xno"; then
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: Not using openpty" >&5
4645 $as_echo "$as_me: Not using openpty" >&6;}
4646 else
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: Using openpty if available" >&5
4648 $as_echo "$as_me: Using openpty if available" >&6;}
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
4650 $as_echo_n "checking for library containing openpty... " >&6; }
4651 if ${ac_cv_search_openpty+:} false; then :
4652 $as_echo_n "(cached) " >&6
4653 else
4654 ac_func_search_save_LIBS=$LIBS
4655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4656 /* end confdefs.h. */
4658 /* Override any GCC internal prototype to avoid an error.
4659 Use char because int might match the return type of a GCC
4660 builtin and then its argument prototype would still apply. */
4661 #ifdef __cplusplus
4662 extern "C"
4663 #endif
4664 char openpty ();
4666 main ()
4668 return openpty ();
4670 return 0;
4672 _ACEOF
4673 for ac_lib in '' util; do
4674 if test -z "$ac_lib"; then
4675 ac_res="none required"
4676 else
4677 ac_res=-l$ac_lib
4678 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4680 if ac_fn_c_try_link "$LINENO"; then :
4681 ac_cv_search_openpty=$ac_res
4683 rm -f core conftest.err conftest.$ac_objext \
4684 conftest$ac_exeext
4685 if ${ac_cv_search_openpty+:} false; then :
4686 break
4688 done
4689 if ${ac_cv_search_openpty+:} false; then :
4691 else
4692 ac_cv_search_openpty=no
4694 rm conftest.$ac_ext
4695 LIBS=$ac_func_search_save_LIBS
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
4698 $as_echo "$ac_cv_search_openpty" >&6; }
4699 ac_res=$ac_cv_search_openpty
4700 if test "$ac_res" != no; then :
4701 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4703 $as_echo "#define HAVE_OPENPTY /**/" >>confdefs.h
4709 else
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: Using openpty if available" >&5
4712 $as_echo "$as_me: Using openpty if available" >&6;}
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
4714 $as_echo_n "checking for library containing openpty... " >&6; }
4715 if ${ac_cv_search_openpty+:} false; then :
4716 $as_echo_n "(cached) " >&6
4717 else
4718 ac_func_search_save_LIBS=$LIBS
4719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4720 /* end confdefs.h. */
4722 /* Override any GCC internal prototype to avoid an error.
4723 Use char because int might match the return type of a GCC
4724 builtin and then its argument prototype would still apply. */
4725 #ifdef __cplusplus
4726 extern "C"
4727 #endif
4728 char openpty ();
4730 main ()
4732 return openpty ();
4734 return 0;
4736 _ACEOF
4737 for ac_lib in '' util; do
4738 if test -z "$ac_lib"; then
4739 ac_res="none required"
4740 else
4741 ac_res=-l$ac_lib
4742 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4744 if ac_fn_c_try_link "$LINENO"; then :
4745 ac_cv_search_openpty=$ac_res
4747 rm -f core conftest.err conftest.$ac_objext \
4748 conftest$ac_exeext
4749 if ${ac_cv_search_openpty+:} false; then :
4750 break
4752 done
4753 if ${ac_cv_search_openpty+:} false; then :
4755 else
4756 ac_cv_search_openpty=no
4758 rm conftest.$ac_ext
4759 LIBS=$ac_func_search_save_LIBS
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
4762 $as_echo "$ac_cv_search_openpty" >&6; }
4763 ac_res=$ac_cv_search_openpty
4764 if test "$ac_res" != no; then :
4765 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4766 $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
4776 # Check whether --enable-syslog was given.
4777 if test "${enable_syslog+set}" = set; then :
4778 enableval=$enable_syslog;
4779 if test "x$enableval" = "xno"; then
4781 $as_echo "#define DISABLE_SYSLOG /**/" >>confdefs.h
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling syslog" >&5
4784 $as_echo "$as_me: Disabling syslog" >&6;}
4785 else
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling syslog" >&5
4787 $as_echo "$as_me: Enabling syslog" >&6;}
4790 else
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling syslog" >&5
4793 $as_echo "$as_me: Enabling syslog" >&6;}
4799 # Check whether --enable-shadow was given.
4800 if test "${enable_shadow+set}" = set; then :
4801 enableval=$enable_shadow;
4802 if test "x$enableval" = "xno"; then
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: Not using shadow passwords" >&5
4804 $as_echo "$as_me: Not using shadow passwords" >&6;}
4805 else
4806 for ac_header in shadow.h
4807 do :
4808 ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
4809 if test "x$ac_cv_header_shadow_h" = xyes; then :
4810 cat >>confdefs.h <<_ACEOF
4811 #define HAVE_SHADOW_H 1
4812 _ACEOF
4816 done
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: Using shadow passwords if available" >&5
4819 $as_echo "$as_me: Using shadow passwords if available" >&6;}
4822 else
4824 for ac_header in shadow.h
4825 do :
4826 ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
4827 if test "x$ac_cv_header_shadow_h" = xyes; then :
4828 cat >>confdefs.h <<_ACEOF
4829 #define HAVE_SHADOW_H 1
4830 _ACEOF
4834 done
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: Using shadow passwords if available" >&5
4837 $as_echo "$as_me: Using shadow passwords if available" >&6;}
4844 # Checks for header files.
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4846 $as_echo_n "checking for ANSI C header files... " >&6; }
4847 if ${ac_cv_header_stdc+:} false; then :
4848 $as_echo_n "(cached) " >&6
4849 else
4850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4851 /* end confdefs.h. */
4852 #include <stdlib.h>
4853 #include <stdarg.h>
4854 #include <string.h>
4855 #include <float.h>
4858 main ()
4862 return 0;
4864 _ACEOF
4865 if ac_fn_c_try_compile "$LINENO"; then :
4866 ac_cv_header_stdc=yes
4867 else
4868 ac_cv_header_stdc=no
4870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4872 if test $ac_cv_header_stdc = yes; then
4873 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4875 /* end confdefs.h. */
4876 #include <string.h>
4878 _ACEOF
4879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4880 $EGREP "memchr" >/dev/null 2>&1; then :
4882 else
4883 ac_cv_header_stdc=no
4885 rm -f conftest*
4889 if test $ac_cv_header_stdc = yes; then
4890 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892 /* end confdefs.h. */
4893 #include <stdlib.h>
4895 _ACEOF
4896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4897 $EGREP "free" >/dev/null 2>&1; then :
4899 else
4900 ac_cv_header_stdc=no
4902 rm -f conftest*
4906 if test $ac_cv_header_stdc = yes; then
4907 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4908 if test "$cross_compiling" = yes; then :
4910 else
4911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4912 /* end confdefs.h. */
4913 #include <ctype.h>
4914 #include <stdlib.h>
4915 #if ((' ' & 0x0FF) == 0x020)
4916 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4917 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4918 #else
4919 # define ISLOWER(c) \
4920 (('a' <= (c) && (c) <= 'i') \
4921 || ('j' <= (c) && (c) <= 'r') \
4922 || ('s' <= (c) && (c) <= 'z'))
4923 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4924 #endif
4926 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4928 main ()
4930 int i;
4931 for (i = 0; i < 256; i++)
4932 if (XOR (islower (i), ISLOWER (i))
4933 || toupper (i) != TOUPPER (i))
4934 return 2;
4935 return 0;
4937 _ACEOF
4938 if ac_fn_c_try_run "$LINENO"; then :
4940 else
4941 ac_cv_header_stdc=no
4943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4944 conftest.$ac_objext conftest.beam conftest.$ac_ext
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4950 $as_echo "$ac_cv_header_stdc" >&6; }
4951 if test $ac_cv_header_stdc = yes; then
4953 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4958 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4959 if ${ac_cv_header_sys_wait_h+:} false; then :
4960 $as_echo_n "(cached) " >&6
4961 else
4962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4963 /* end confdefs.h. */
4964 #include <sys/types.h>
4965 #include <sys/wait.h>
4966 #ifndef WEXITSTATUS
4967 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4968 #endif
4969 #ifndef WIFEXITED
4970 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4971 #endif
4974 main ()
4976 int s;
4977 wait (&s);
4978 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4980 return 0;
4982 _ACEOF
4983 if ac_fn_c_try_compile "$LINENO"; then :
4984 ac_cv_header_sys_wait_h=yes
4985 else
4986 ac_cv_header_sys_wait_h=no
4988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4991 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
4992 if test $ac_cv_header_sys_wait_h = yes; then
4994 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4998 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
4999 do :
5000 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5001 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5002 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5003 cat >>confdefs.h <<_ACEOF
5004 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5005 _ACEOF
5009 done
5012 # Checks for typedefs, structures, and compiler characteristics.
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5014 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5015 if ${ac_cv_c_const+:} false; then :
5016 $as_echo_n "(cached) " >&6
5017 else
5018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5019 /* end confdefs.h. */
5022 main ()
5025 #ifndef __cplusplus
5026 /* Ultrix mips cc rejects this sort of thing. */
5027 typedef int charset[2];
5028 const charset cs = { 0, 0 };
5029 /* SunOS 4.1.1 cc rejects this. */
5030 char const *const *pcpcc;
5031 char **ppc;
5032 /* NEC SVR4.0.2 mips cc rejects this. */
5033 struct point {int x, y;};
5034 static struct point const zero = {0,0};
5035 /* AIX XL C 1.02.0.0 rejects this.
5036 It does not let you subtract one const X* pointer from another in
5037 an arm of an if-expression whose if-part is not a constant
5038 expression */
5039 const char *g = "string";
5040 pcpcc = &g + (g ? g-g : 0);
5041 /* HPUX 7.0 cc rejects these. */
5042 ++pcpcc;
5043 ppc = (char**) pcpcc;
5044 pcpcc = (char const *const *) ppc;
5045 { /* SCO 3.2v4 cc rejects this sort of thing. */
5046 char tx;
5047 char *t = &tx;
5048 char const *s = 0 ? (char *) 0 : (char const *) 0;
5050 *t++ = 0;
5051 if (s) return 0;
5053 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5054 int x[] = {25, 17};
5055 const int *foo = &x[0];
5056 ++foo;
5058 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5059 typedef const int *iptr;
5060 iptr p = 0;
5061 ++p;
5063 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5064 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5065 struct s { int j; const int *ap[3]; } bx;
5066 struct s *b = &bx; b->j = 5;
5068 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5069 const int foo = 10;
5070 if (!foo) return 0;
5072 return !cs[0] && !zero.x;
5073 #endif
5076 return 0;
5078 _ACEOF
5079 if ac_fn_c_try_compile "$LINENO"; then :
5080 ac_cv_c_const=yes
5081 else
5082 ac_cv_c_const=no
5084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5087 $as_echo "$ac_cv_c_const" >&6; }
5088 if test $ac_cv_c_const = no; then
5090 $as_echo "#define const /**/" >>confdefs.h
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5095 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5096 if ${ac_cv_type_uid_t+:} false; then :
5097 $as_echo_n "(cached) " >&6
5098 else
5099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5100 /* end confdefs.h. */
5101 #include <sys/types.h>
5103 _ACEOF
5104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5105 $EGREP "uid_t" >/dev/null 2>&1; then :
5106 ac_cv_type_uid_t=yes
5107 else
5108 ac_cv_type_uid_t=no
5110 rm -f conftest*
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5114 $as_echo "$ac_cv_type_uid_t" >&6; }
5115 if test $ac_cv_type_uid_t = no; then
5117 $as_echo "#define uid_t int" >>confdefs.h
5120 $as_echo "#define gid_t int" >>confdefs.h
5124 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5125 if test "x$ac_cv_type_mode_t" = xyes; then :
5127 else
5129 cat >>confdefs.h <<_ACEOF
5130 #define mode_t int
5131 _ACEOF
5135 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5136 if test "x$ac_cv_type_pid_t" = xyes; then :
5138 else
5140 cat >>confdefs.h <<_ACEOF
5141 #define pid_t int
5142 _ACEOF
5146 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5147 if test "x$ac_cv_type_size_t" = xyes; then :
5149 else
5151 cat >>confdefs.h <<_ACEOF
5152 #define size_t unsigned int
5153 _ACEOF
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5158 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5159 if ${ac_cv_header_time+:} false; then :
5160 $as_echo_n "(cached) " >&6
5161 else
5162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5163 /* end confdefs.h. */
5164 #include <sys/types.h>
5165 #include <sys/time.h>
5166 #include <time.h>
5169 main ()
5171 if ((struct tm *) 0)
5172 return 0;
5174 return 0;
5176 _ACEOF
5177 if ac_fn_c_try_compile "$LINENO"; then :
5178 ac_cv_header_time=yes
5179 else
5180 ac_cv_header_time=no
5182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5185 $as_echo "$ac_cv_header_time" >&6; }
5186 if test $ac_cv_header_time = yes; then
5188 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5193 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
5194 if test "x$ac_cv_type_uint8_t" = xyes; then :
5196 cat >>confdefs.h <<_ACEOF
5197 #define HAVE_UINT8_T 1
5198 _ACEOF
5202 ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default"
5203 if test "x$ac_cv_type_u_int8_t" = xyes; then :
5205 cat >>confdefs.h <<_ACEOF
5206 #define HAVE_U_INT8_T 1
5207 _ACEOF
5211 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
5212 if test "x$ac_cv_type_uint16_t" = xyes; then :
5214 cat >>confdefs.h <<_ACEOF
5215 #define HAVE_UINT16_T 1
5216 _ACEOF
5220 ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
5221 if test "x$ac_cv_type_u_int16_t" = xyes; then :
5223 cat >>confdefs.h <<_ACEOF
5224 #define HAVE_U_INT16_T 1
5225 _ACEOF
5229 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
5230 if test "x$ac_cv_type_uint32_t" = xyes; then :
5232 cat >>confdefs.h <<_ACEOF
5233 #define HAVE_UINT32_T 1
5234 _ACEOF
5238 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
5239 if test "x$ac_cv_type_u_int32_t" = xyes; then :
5241 cat >>confdefs.h <<_ACEOF
5242 #define HAVE_U_INT32_T 1
5243 _ACEOF
5248 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "$ac_includes_default"
5249 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
5251 cat >>confdefs.h <<_ACEOF
5252 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
5253 _ACEOF
5258 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
5259 #include <sys/socket.h>
5261 if test "x$ac_cv_type_socklen_t" = xyes; then :
5263 else
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
5266 $as_echo_n "checking for socklen_t equivalent... " >&6; }
5267 if ${curl_cv_socklen_t_equiv+:} false; then :
5268 $as_echo_n "(cached) " >&6
5269 else
5271 # Systems have either "struct sockaddr *" or
5272 # "void *" as the second argument to getpeername
5273 curl_cv_socklen_t_equiv=
5274 for arg2 in "struct sockaddr" void; do
5275 for t in int size_t unsigned long "unsigned long"; do
5276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277 /* end confdefs.h. */
5279 #include <sys/types.h>
5280 #include <sys/socket.h>
5282 int getpeername (int, $arg2 *, $t *);
5285 main ()
5288 $t len;
5289 getpeername(0,0,&len);
5292 return 0;
5294 _ACEOF
5295 if ac_fn_c_try_compile "$LINENO"; then :
5297 curl_cv_socklen_t_equiv="$t"
5298 break
5301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5302 done
5303 done
5305 if test "x$curl_cv_socklen_t_equiv" = x; then
5306 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_socklen_t_equiv" >&5
5312 $as_echo "$curl_cv_socklen_t_equiv" >&6; }
5314 cat >>confdefs.h <<_ACEOF
5315 #define socklen_t $curl_cv_socklen_t_equiv
5316 _ACEOF
5321 # for the fake-rfc2553 stuff - straight from OpenSSH
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
5324 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
5325 if ${ac_cv_have_struct_sockaddr_storage+:} false; then :
5326 $as_echo_n "(cached) " >&6
5327 else
5329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5330 /* end confdefs.h. */
5332 #include <sys/types.h>
5333 #include <sys/socket.h>
5336 main ()
5338 struct sockaddr_storage s;
5340 return 0;
5342 _ACEOF
5343 if ac_fn_c_try_compile "$LINENO"; then :
5344 ac_cv_have_struct_sockaddr_storage="yes"
5345 else
5346 ac_cv_have_struct_sockaddr_storage="no"
5349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_storage" >&5
5353 $as_echo "$ac_cv_have_struct_sockaddr_storage" >&6; }
5354 if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
5355 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6" >&5
5360 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
5361 if ${ac_cv_have_struct_sockaddr_in6+:} false; then :
5362 $as_echo_n "(cached) " >&6
5363 else
5365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5366 /* end confdefs.h. */
5368 #include <sys/types.h>
5369 #include <netinet/in.h>
5372 main ()
5374 struct sockaddr_in6 s; s.sin6_family = 0;
5376 return 0;
5378 _ACEOF
5379 if ac_fn_c_try_compile "$LINENO"; then :
5380 ac_cv_have_struct_sockaddr_in6="yes"
5381 else
5382 ac_cv_have_struct_sockaddr_in6="no"
5385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_in6" >&5
5389 $as_echo "$ac_cv_have_struct_sockaddr_in6" >&6; }
5390 if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
5392 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 /**/" >>confdefs.h
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct in6_addr" >&5
5397 $as_echo_n "checking for struct in6_addr... " >&6; }
5398 if ${ac_cv_have_struct_in6_addr+:} false; then :
5399 $as_echo_n "(cached) " >&6
5400 else
5402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5403 /* end confdefs.h. */
5405 #include <sys/types.h>
5406 #include <netinet/in.h>
5409 main ()
5411 struct in6_addr s; s.s6_addr[0] = 0;
5413 return 0;
5415 _ACEOF
5416 if ac_fn_c_try_compile "$LINENO"; then :
5417 ac_cv_have_struct_in6_addr="yes"
5418 else
5419 ac_cv_have_struct_in6_addr="no"
5422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_in6_addr" >&5
5426 $as_echo "$ac_cv_have_struct_in6_addr" >&6; }
5427 if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
5429 $as_echo "#define HAVE_STRUCT_IN6_ADDR /**/" >>confdefs.h
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5
5434 $as_echo_n "checking for struct addrinfo... " >&6; }
5435 if ${ac_cv_have_struct_addrinfo+:} false; then :
5436 $as_echo_n "(cached) " >&6
5437 else
5439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5440 /* end confdefs.h. */
5442 #include <sys/types.h>
5443 #include <sys/socket.h>
5444 #include <netdb.h>
5447 main ()
5449 struct addrinfo s; s.ai_flags = AI_PASSIVE;
5451 return 0;
5453 _ACEOF
5454 if ac_fn_c_try_compile "$LINENO"; then :
5455 ac_cv_have_struct_addrinfo="yes"
5456 else
5457 ac_cv_have_struct_addrinfo="no"
5460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_addrinfo" >&5
5464 $as_echo "$ac_cv_have_struct_addrinfo" >&6; }
5465 if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
5467 $as_echo "#define HAVE_STRUCT_ADDRINFO /**/" >>confdefs.h
5472 # IRIX has a const char return value for gai_strerror()
5473 for ac_func in gai_strerror
5474 do :
5475 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
5476 if test "x$ac_cv_func_gai_strerror" = xyes; then :
5477 cat >>confdefs.h <<_ACEOF
5478 #define HAVE_GAI_STRERROR 1
5479 _ACEOF
5481 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
5483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5484 /* end confdefs.h. */
5486 #include <sys/types.h>
5487 #include <sys/socket.h>
5488 #include <netdb.h>
5490 const char *gai_strerror(int);
5492 main ()
5495 char *str;
5497 str = gai_strerror(0);
5499 return 0;
5501 _ACEOF
5502 if ac_fn_c_try_compile "$LINENO"; then :
5505 $as_echo "#define HAVE_CONST_GAI_STRERROR_PROTO 1" >>confdefs.h
5508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5510 done
5513 # for loginrec.c
5515 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" "
5516 #include <sys/types.h>
5517 #if HAVE_UTMP_H
5518 #include <utmp.h>
5519 #endif
5522 if test "x$ac_cv_member_struct_utmp_ut_host" = xyes; then :
5524 cat >>confdefs.h <<_ACEOF
5525 #define HAVE_STRUCT_UTMP_UT_HOST 1
5526 _ACEOF
5530 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" "
5531 #include <sys/types.h>
5532 #if HAVE_UTMP_H
5533 #include <utmp.h>
5534 #endif
5537 if test "x$ac_cv_member_struct_utmp_ut_pid" = xyes; then :
5539 cat >>confdefs.h <<_ACEOF
5540 #define HAVE_STRUCT_UTMP_UT_PID 1
5541 _ACEOF
5545 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_type" "ac_cv_member_struct_utmp_ut_type" "
5546 #include <sys/types.h>
5547 #if HAVE_UTMP_H
5548 #include <utmp.h>
5549 #endif
5552 if test "x$ac_cv_member_struct_utmp_ut_type" = xyes; then :
5554 cat >>confdefs.h <<_ACEOF
5555 #define HAVE_STRUCT_UTMP_UT_TYPE 1
5556 _ACEOF
5560 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_tv" "ac_cv_member_struct_utmp_ut_tv" "
5561 #include <sys/types.h>
5562 #if HAVE_UTMP_H
5563 #include <utmp.h>
5564 #endif
5567 if test "x$ac_cv_member_struct_utmp_ut_tv" = xyes; then :
5569 cat >>confdefs.h <<_ACEOF
5570 #define HAVE_STRUCT_UTMP_UT_TV 1
5571 _ACEOF
5575 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_id" "ac_cv_member_struct_utmp_ut_id" "
5576 #include <sys/types.h>
5577 #if HAVE_UTMP_H
5578 #include <utmp.h>
5579 #endif
5582 if test "x$ac_cv_member_struct_utmp_ut_id" = xyes; then :
5584 cat >>confdefs.h <<_ACEOF
5585 #define HAVE_STRUCT_UTMP_UT_ID 1
5586 _ACEOF
5590 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_addr" "ac_cv_member_struct_utmp_ut_addr" "
5591 #include <sys/types.h>
5592 #if HAVE_UTMP_H
5593 #include <utmp.h>
5594 #endif
5597 if test "x$ac_cv_member_struct_utmp_ut_addr" = xyes; then :
5599 cat >>confdefs.h <<_ACEOF
5600 #define HAVE_STRUCT_UTMP_UT_ADDR 1
5601 _ACEOF
5605 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_addr_v6" "ac_cv_member_struct_utmp_ut_addr_v6" "
5606 #include <sys/types.h>
5607 #if HAVE_UTMP_H
5608 #include <utmp.h>
5609 #endif
5612 if test "x$ac_cv_member_struct_utmp_ut_addr_v6" = xyes; then :
5614 cat >>confdefs.h <<_ACEOF
5615 #define HAVE_STRUCT_UTMP_UT_ADDR_V6 1
5616 _ACEOF
5620 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_exit" "ac_cv_member_struct_utmp_ut_exit" "
5621 #include <sys/types.h>
5622 #if HAVE_UTMP_H
5623 #include <utmp.h>
5624 #endif
5627 if test "x$ac_cv_member_struct_utmp_ut_exit" = xyes; then :
5629 cat >>confdefs.h <<_ACEOF
5630 #define HAVE_STRUCT_UTMP_UT_EXIT 1
5631 _ACEOF
5635 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_time" "ac_cv_member_struct_utmp_ut_time" "
5636 #include <sys/types.h>
5637 #if HAVE_UTMP_H
5638 #include <utmp.h>
5639 #endif
5642 if test "x$ac_cv_member_struct_utmp_ut_time" = xyes; then :
5644 cat >>confdefs.h <<_ACEOF
5645 #define HAVE_STRUCT_UTMP_UT_TIME 1
5646 _ACEOF
5652 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_host" "ac_cv_member_struct_utmpx_ut_host" "
5653 #include <sys/types.h>
5654 #include <sys/socket.h>
5655 #if HAVE_UTMPX_H
5656 #include <utmpx.h>
5657 #endif
5660 if test "x$ac_cv_member_struct_utmpx_ut_host" = xyes; then :
5662 cat >>confdefs.h <<_ACEOF
5663 #define HAVE_STRUCT_UTMPX_UT_HOST 1
5664 _ACEOF
5668 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_syslen" "ac_cv_member_struct_utmpx_ut_syslen" "
5669 #include <sys/types.h>
5670 #include <sys/socket.h>
5671 #if HAVE_UTMPX_H
5672 #include <utmpx.h>
5673 #endif
5676 if test "x$ac_cv_member_struct_utmpx_ut_syslen" = xyes; then :
5678 cat >>confdefs.h <<_ACEOF
5679 #define HAVE_STRUCT_UTMPX_UT_SYSLEN 1
5680 _ACEOF
5684 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_type" "ac_cv_member_struct_utmpx_ut_type" "
5685 #include <sys/types.h>
5686 #include <sys/socket.h>
5687 #if HAVE_UTMPX_H
5688 #include <utmpx.h>
5689 #endif
5692 if test "x$ac_cv_member_struct_utmpx_ut_type" = xyes; then :
5694 cat >>confdefs.h <<_ACEOF
5695 #define HAVE_STRUCT_UTMPX_UT_TYPE 1
5696 _ACEOF
5700 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_id" "ac_cv_member_struct_utmpx_ut_id" "
5701 #include <sys/types.h>
5702 #include <sys/socket.h>
5703 #if HAVE_UTMPX_H
5704 #include <utmpx.h>
5705 #endif
5708 if test "x$ac_cv_member_struct_utmpx_ut_id" = xyes; then :
5710 cat >>confdefs.h <<_ACEOF
5711 #define HAVE_STRUCT_UTMPX_UT_ID 1
5712 _ACEOF
5716 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_addr" "ac_cv_member_struct_utmpx_ut_addr" "
5717 #include <sys/types.h>
5718 #include <sys/socket.h>
5719 #if HAVE_UTMPX_H
5720 #include <utmpx.h>
5721 #endif
5724 if test "x$ac_cv_member_struct_utmpx_ut_addr" = xyes; then :
5726 cat >>confdefs.h <<_ACEOF
5727 #define HAVE_STRUCT_UTMPX_UT_ADDR 1
5728 _ACEOF
5732 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_addr_v6" "ac_cv_member_struct_utmpx_ut_addr_v6" "
5733 #include <sys/types.h>
5734 #include <sys/socket.h>
5735 #if HAVE_UTMPX_H
5736 #include <utmpx.h>
5737 #endif
5740 if test "x$ac_cv_member_struct_utmpx_ut_addr_v6" = xyes; then :
5742 cat >>confdefs.h <<_ACEOF
5743 #define HAVE_STRUCT_UTMPX_UT_ADDR_V6 1
5744 _ACEOF
5748 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_time" "ac_cv_member_struct_utmpx_ut_time" "
5749 #include <sys/types.h>
5750 #include <sys/socket.h>
5751 #if HAVE_UTMPX_H
5752 #include <utmpx.h>
5753 #endif
5756 if test "x$ac_cv_member_struct_utmpx_ut_time" = xyes; then :
5758 cat >>confdefs.h <<_ACEOF
5759 #define HAVE_STRUCT_UTMPX_UT_TIME 1
5760 _ACEOF
5764 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_tv" "ac_cv_member_struct_utmpx_ut_tv" "
5765 #include <sys/types.h>
5766 #include <sys/socket.h>
5767 #if HAVE_UTMPX_H
5768 #include <utmpx.h>
5769 #endif
5772 if test "x$ac_cv_member_struct_utmpx_ut_tv" = xyes; then :
5774 cat >>confdefs.h <<_ACEOF
5775 #define HAVE_STRUCT_UTMPX_UT_TV 1
5776 _ACEOF
5782 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "
5783 #include <sys/types.h>
5784 #include <sys/socket.h>
5787 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
5789 cat >>confdefs.h <<_ACEOF
5790 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
5791 _ACEOF
5797 for ac_func in endutent getutent getutid getutline pututline setutent
5798 do :
5799 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5800 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5801 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5802 cat >>confdefs.h <<_ACEOF
5803 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5804 _ACEOF
5807 done
5809 for ac_func in utmpname
5810 do :
5811 ac_fn_c_check_func "$LINENO" "utmpname" "ac_cv_func_utmpname"
5812 if test "x$ac_cv_func_utmpname" = xyes; then :
5813 cat >>confdefs.h <<_ACEOF
5814 #define HAVE_UTMPNAME 1
5815 _ACEOF
5818 done
5820 for ac_func in endutxent getutxent getutxid getutxline pututxline
5821 do :
5822 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5823 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5824 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5825 cat >>confdefs.h <<_ACEOF
5826 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5827 _ACEOF
5830 done
5832 for ac_func in setutxent utmpxname
5833 do :
5834 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5835 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5836 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5837 cat >>confdefs.h <<_ACEOF
5838 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5839 _ACEOF
5842 done
5844 for ac_func in logout updwtmp logwtmp
5845 do :
5846 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5847 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5848 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5849 cat >>confdefs.h <<_ACEOF
5850 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5851 _ACEOF
5854 done
5857 # Check whether --enable-bundled-libtom was given.
5858 if test "${enable_bundled_libtom+set}" = set; then :
5859 enableval=$enable_bundled_libtom;
5860 if test "x$enableval" = "xyes"; then
5861 BUNDLED_LIBTOM=1
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: Forcing bundled libtom*" >&5
5863 $as_echo "$as_me: Forcing bundled libtom*" >&6;}
5864 else
5865 BUNDLED_LIBTOM=0
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_exptmod in -ltommath" >&5
5867 $as_echo_n "checking for mp_exptmod in -ltommath... " >&6; }
5868 if ${ac_cv_lib_tommath_mp_exptmod+:} false; then :
5869 $as_echo_n "(cached) " >&6
5870 else
5871 ac_check_lib_save_LIBS=$LIBS
5872 LIBS="-ltommath $LIBS"
5873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5874 /* end confdefs.h. */
5876 /* Override any GCC internal prototype to avoid an error.
5877 Use char because int might match the return type of a GCC
5878 builtin and then its argument prototype would still apply. */
5879 #ifdef __cplusplus
5880 extern "C"
5881 #endif
5882 char mp_exptmod ();
5884 main ()
5886 return mp_exptmod ();
5888 return 0;
5890 _ACEOF
5891 if ac_fn_c_try_link "$LINENO"; then :
5892 ac_cv_lib_tommath_mp_exptmod=yes
5893 else
5894 ac_cv_lib_tommath_mp_exptmod=no
5896 rm -f core conftest.err conftest.$ac_objext \
5897 conftest$ac_exeext conftest.$ac_ext
5898 LIBS=$ac_check_lib_save_LIBS
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tommath_mp_exptmod" >&5
5901 $as_echo "$ac_cv_lib_tommath_mp_exptmod" >&6; }
5902 if test "x$ac_cv_lib_tommath_mp_exptmod" = xyes; then :
5903 cat >>confdefs.h <<_ACEOF
5904 #define HAVE_LIBTOMMATH 1
5905 _ACEOF
5907 LIBS="-ltommath $LIBS"
5909 else
5910 as_fn_error $? "Missing system libtomcrypt and --disable-bundled-libtom was specified" "$LINENO" 5
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for register_cipher in -ltomcrypt" >&5
5914 $as_echo_n "checking for register_cipher in -ltomcrypt... " >&6; }
5915 if ${ac_cv_lib_tomcrypt_register_cipher+:} false; then :
5916 $as_echo_n "(cached) " >&6
5917 else
5918 ac_check_lib_save_LIBS=$LIBS
5919 LIBS="-ltomcrypt $LIBS"
5920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5921 /* end confdefs.h. */
5923 /* Override any GCC internal prototype to avoid an error.
5924 Use char because int might match the return type of a GCC
5925 builtin and then its argument prototype would still apply. */
5926 #ifdef __cplusplus
5927 extern "C"
5928 #endif
5929 char register_cipher ();
5931 main ()
5933 return register_cipher ();
5935 return 0;
5937 _ACEOF
5938 if ac_fn_c_try_link "$LINENO"; then :
5939 ac_cv_lib_tomcrypt_register_cipher=yes
5940 else
5941 ac_cv_lib_tomcrypt_register_cipher=no
5943 rm -f core conftest.err conftest.$ac_objext \
5944 conftest$ac_exeext conftest.$ac_ext
5945 LIBS=$ac_check_lib_save_LIBS
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tomcrypt_register_cipher" >&5
5948 $as_echo "$ac_cv_lib_tomcrypt_register_cipher" >&6; }
5949 if test "x$ac_cv_lib_tomcrypt_register_cipher" = xyes; then :
5950 cat >>confdefs.h <<_ACEOF
5951 #define HAVE_LIBTOMCRYPT 1
5952 _ACEOF
5954 LIBS="-ltomcrypt $LIBS"
5956 else
5957 as_fn_error $? "Missing system libtomcrypt and --disable-bundled-libtom was specified" "$LINENO" 5
5962 else
5964 BUNDLED_LIBTOM=0
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_exptmod in -ltommath" >&5
5966 $as_echo_n "checking for mp_exptmod in -ltommath... " >&6; }
5967 if ${ac_cv_lib_tommath_mp_exptmod+:} false; then :
5968 $as_echo_n "(cached) " >&6
5969 else
5970 ac_check_lib_save_LIBS=$LIBS
5971 LIBS="-ltommath $LIBS"
5972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5973 /* end confdefs.h. */
5975 /* Override any GCC internal prototype to avoid an error.
5976 Use char because int might match the return type of a GCC
5977 builtin and then its argument prototype would still apply. */
5978 #ifdef __cplusplus
5979 extern "C"
5980 #endif
5981 char mp_exptmod ();
5983 main ()
5985 return mp_exptmod ();
5987 return 0;
5989 _ACEOF
5990 if ac_fn_c_try_link "$LINENO"; then :
5991 ac_cv_lib_tommath_mp_exptmod=yes
5992 else
5993 ac_cv_lib_tommath_mp_exptmod=no
5995 rm -f core conftest.err conftest.$ac_objext \
5996 conftest$ac_exeext conftest.$ac_ext
5997 LIBS=$ac_check_lib_save_LIBS
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tommath_mp_exptmod" >&5
6000 $as_echo "$ac_cv_lib_tommath_mp_exptmod" >&6; }
6001 if test "x$ac_cv_lib_tommath_mp_exptmod" = xyes; then :
6002 cat >>confdefs.h <<_ACEOF
6003 #define HAVE_LIBTOMMATH 1
6004 _ACEOF
6006 LIBS="-ltommath $LIBS"
6008 else
6009 BUNDLED_LIBTOM=1
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for register_cipher in -ltomcrypt" >&5
6013 $as_echo_n "checking for register_cipher in -ltomcrypt... " >&6; }
6014 if ${ac_cv_lib_tomcrypt_register_cipher+:} false; then :
6015 $as_echo_n "(cached) " >&6
6016 else
6017 ac_check_lib_save_LIBS=$LIBS
6018 LIBS="-ltomcrypt $LIBS"
6019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6020 /* end confdefs.h. */
6022 /* Override any GCC internal prototype to avoid an error.
6023 Use char because int might match the return type of a GCC
6024 builtin and then its argument prototype would still apply. */
6025 #ifdef __cplusplus
6026 extern "C"
6027 #endif
6028 char register_cipher ();
6030 main ()
6032 return register_cipher ();
6034 return 0;
6036 _ACEOF
6037 if ac_fn_c_try_link "$LINENO"; then :
6038 ac_cv_lib_tomcrypt_register_cipher=yes
6039 else
6040 ac_cv_lib_tomcrypt_register_cipher=no
6042 rm -f core conftest.err conftest.$ac_objext \
6043 conftest$ac_exeext conftest.$ac_ext
6044 LIBS=$ac_check_lib_save_LIBS
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tomcrypt_register_cipher" >&5
6047 $as_echo "$ac_cv_lib_tomcrypt_register_cipher" >&6; }
6048 if test "x$ac_cv_lib_tomcrypt_register_cipher" = xyes; then :
6049 cat >>confdefs.h <<_ACEOF
6050 #define HAVE_LIBTOMCRYPT 1
6051 _ACEOF
6053 LIBS="-ltomcrypt $LIBS"
6055 else
6056 BUNDLED_LIBTOM=1
6064 if test $BUNDLED_LIBTOM = 1 ; then
6066 $as_echo "#define BUNDLED_LIBTOM /**/" >>confdefs.h
6073 # Check whether --enable-lastlog was given.
6074 if test "${enable_lastlog+set}" = set; then :
6075 enableval=$enable_lastlog;
6076 $as_echo "#define DISABLE_LASTLOG /**/" >>confdefs.h
6081 # Check whether --enable-utmp was given.
6082 if test "${enable_utmp+set}" = set; then :
6083 enableval=$enable_utmp;
6084 $as_echo "#define DISABLE_UTMP /**/" >>confdefs.h
6089 # Check whether --enable-utmpx was given.
6090 if test "${enable_utmpx+set}" = set; then :
6091 enableval=$enable_utmpx;
6092 $as_echo "#define DISABLE_UTMPX /**/" >>confdefs.h
6097 # Check whether --enable-wtmp was given.
6098 if test "${enable_wtmp+set}" = set; then :
6099 enableval=$enable_wtmp;
6100 $as_echo "#define DISABLE_WTMP /**/" >>confdefs.h
6105 # Check whether --enable-wtmpx was given.
6106 if test "${enable_wtmpx+set}" = set; then :
6107 enableval=$enable_wtmpx;
6108 $as_echo "#define DISABLE_WTMPX /**/" >>confdefs.h
6113 # Check whether --enable-loginfunc was given.
6114 if test "${enable_loginfunc+set}" = set; then :
6115 enableval=$enable_loginfunc; no_loginfunc_check=1
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: Not using login() etc" >&5
6117 $as_echo "$as_me: Not using login() etc" >&6;}
6121 # Check whether --enable-pututline was given.
6122 if test "${enable_pututline+set}" = set; then :
6123 enableval=$enable_pututline;
6124 $as_echo "#define DISABLE_PUTUTLINE /**/" >>confdefs.h
6129 # Check whether --enable-pututxline was given.
6130 if test "${enable_pututxline+set}" = set; then :
6131 enableval=$enable_pututxline;
6132 $as_echo "#define DISABLE_PUTUTXLINE /**/" >>confdefs.h
6138 # Check whether --with-lastlog was given.
6139 if test "${with_lastlog+set}" = set; then :
6140 withval=$with_lastlog;
6141 if test "x$withval" = "xno" ; then
6142 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
6144 else
6145 conf_lastlog_location=$withval
6152 if test -z "$no_loginfunc_check"; then
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing login" >&5
6154 $as_echo_n "checking for library containing login... " >&6; }
6155 if ${ac_cv_search_login+:} false; then :
6156 $as_echo_n "(cached) " >&6
6157 else
6158 ac_func_search_save_LIBS=$LIBS
6159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6160 /* end confdefs.h. */
6162 /* Override any GCC internal prototype to avoid an error.
6163 Use char because int might match the return type of a GCC
6164 builtin and then its argument prototype would still apply. */
6165 #ifdef __cplusplus
6166 extern "C"
6167 #endif
6168 char login ();
6170 main ()
6172 return login ();
6174 return 0;
6176 _ACEOF
6177 for ac_lib in '' util bsd; do
6178 if test -z "$ac_lib"; then
6179 ac_res="none required"
6180 else
6181 ac_res=-l$ac_lib
6182 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6184 if ac_fn_c_try_link "$LINENO"; then :
6185 ac_cv_search_login=$ac_res
6187 rm -f core conftest.err conftest.$ac_objext \
6188 conftest$ac_exeext
6189 if ${ac_cv_search_login+:} false; then :
6190 break
6192 done
6193 if ${ac_cv_search_login+:} false; then :
6195 else
6196 ac_cv_search_login=no
6198 rm conftest.$ac_ext
6199 LIBS=$ac_func_search_save_LIBS
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_login" >&5
6202 $as_echo "$ac_cv_search_login" >&6; }
6203 ac_res=$ac_cv_search_login
6204 if test "$ac_res" != no; then :
6205 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6207 $as_echo "#define HAVE_LOGIN /**/" >>confdefs.h
6211 for ac_func in logout updwtmp logwtmp
6212 do :
6213 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6214 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6215 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6216 cat >>confdefs.h <<_ACEOF
6217 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6218 _ACEOF
6221 done
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines LASTLOG_FILE" >&5
6227 $as_echo_n "checking if your system defines LASTLOG_FILE... " >&6; }
6228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6229 /* end confdefs.h. */
6231 #include <sys/types.h>
6232 #include <utmp.h>
6233 #ifdef HAVE_LASTLOG_H
6234 # include <lastlog.h>
6235 #endif
6236 #ifdef HAVE_PATHS_H
6237 # include <paths.h>
6238 #endif
6239 #ifdef HAVE_LOGIN_H
6240 # include <login.h>
6241 #endif
6244 main ()
6246 char *lastlog = LASTLOG_FILE;
6248 return 0;
6250 _ACEOF
6251 if ac_fn_c_try_compile "$LINENO"; then :
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6253 $as_echo "yes" >&6; }
6254 else
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6257 $as_echo "no" >&6; }
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines _PATH_LASTLOG" >&5
6259 $as_echo_n "checking if your system defines _PATH_LASTLOG... " >&6; }
6260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6261 /* end confdefs.h. */
6263 #include <sys/types.h>
6264 #include <utmp.h>
6265 #ifdef HAVE_LASTLOG_H
6266 # include <lastlog.h>
6267 #endif
6268 #ifdef HAVE_PATHS_H
6269 # include <paths.h>
6270 #endif
6273 main ()
6275 char *lastlog = _PATH_LASTLOG;
6277 return 0;
6279 _ACEOF
6280 if ac_fn_c_try_compile "$LINENO"; then :
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6282 $as_echo "yes" >&6; }
6283 else
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6286 $as_echo "no" >&6; }
6287 system_lastlog_path=no
6290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6296 if test -z "$conf_lastlog_location"; then
6297 if test x"$system_lastlog_path" = x"no" ; then
6298 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
6299 if (test -d "$f" || test -f "$f") ; then
6300 conf_lastlog_location=$f
6302 done
6303 if test -z "$conf_lastlog_location"; then
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Cannot find lastlog **" >&5
6305 $as_echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
6310 if test -n "$conf_lastlog_location"; then
6312 cat >>confdefs.h <<_ACEOF
6313 #define CONF_LASTLOG_FILE "$conf_lastlog_location"
6314 _ACEOF
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines UTMP_FILE" >&5
6319 $as_echo_n "checking if your system defines UTMP_FILE... " >&6; }
6320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6321 /* end confdefs.h. */
6323 #include <sys/types.h>
6324 #include <utmp.h>
6325 #ifdef HAVE_PATHS_H
6326 # include <paths.h>
6327 #endif
6330 main ()
6332 char *utmp = UTMP_FILE;
6334 return 0;
6336 _ACEOF
6337 if ac_fn_c_try_compile "$LINENO"; then :
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6339 $as_echo "yes" >&6; }
6340 else
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6342 $as_echo "no" >&6; }
6343 system_utmp_path=no
6346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6347 if test -z "$conf_utmp_location"; then
6348 if test x"$system_utmp_path" = x"no" ; then
6349 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
6350 if test -f $f ; then
6351 conf_utmp_location=$f
6353 done
6354 if test -z "$conf_utmp_location"; then
6355 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
6360 if test -n "$conf_utmp_location"; then
6362 cat >>confdefs.h <<_ACEOF
6363 #define CONF_UTMP_FILE "$conf_utmp_location"
6364 _ACEOF
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMP_FILE" >&5
6369 $as_echo_n "checking if your system defines WTMP_FILE... " >&6; }
6370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6371 /* end confdefs.h. */
6373 #include <sys/types.h>
6374 #ifdef HAVE_UTMP_H
6375 # include <utmp.h>
6376 #endif
6377 #ifdef HAVE_PATHS_H
6378 # include <paths.h>
6379 #endif
6382 main ()
6384 char *wtmp = WTMP_FILE;
6386 return 0;
6388 _ACEOF
6389 if ac_fn_c_try_compile "$LINENO"; then :
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6391 $as_echo "yes" >&6; }
6392 else
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6394 $as_echo "no" >&6; }
6395 system_wtmp_path=no
6398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6399 if test -z "$conf_wtmp_location"; then
6400 if test x"$system_wtmp_path" = x"no" ; then
6401 for f in /usr/adm/wtmp /var/log/wtmp; do
6402 if test -f $f ; then
6403 conf_wtmp_location=$f
6405 done
6406 if test -z "$conf_wtmp_location"; then
6407 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
6412 if test -n "$conf_wtmp_location"; then
6414 cat >>confdefs.h <<_ACEOF
6415 #define CONF_WTMP_FILE "$conf_wtmp_location"
6416 _ACEOF
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines UTMPX_FILE" >&5
6422 $as_echo_n "checking if your system defines UTMPX_FILE... " >&6; }
6423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6424 /* end confdefs.h. */
6426 #include <sys/types.h>
6427 #include <utmp.h>
6428 #ifdef HAVE_UTMPX_H
6429 #include <utmpx.h>
6430 #endif
6431 #ifdef HAVE_PATHS_H
6432 # include <paths.h>
6433 #endif
6436 main ()
6438 char *utmpx = UTMPX_FILE;
6440 return 0;
6442 _ACEOF
6443 if ac_fn_c_try_compile "$LINENO"; then :
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6445 $as_echo "yes" >&6; }
6446 else
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6448 $as_echo "no" >&6; }
6449 system_utmpx_path=no
6452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6453 if test -z "$conf_utmpx_location"; then
6454 if test x"$system_utmpx_path" = x"no" ; then
6455 $as_echo "#define DISABLE_UTMPX 1" >>confdefs.h
6458 else
6460 cat >>confdefs.h <<_ACEOF
6461 #define CONF_UTMPX_FILE "$conf_utmpx_location"
6462 _ACEOF
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMPX_FILE" >&5
6467 $as_echo_n "checking if your system defines WTMPX_FILE... " >&6; }
6468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6469 /* end confdefs.h. */
6471 #include <sys/types.h>
6472 #ifdef HAVE_UTMP_H
6473 # include <utmp.h>
6474 #endif
6475 #ifdef HAVE_UTMPX_H
6476 # include <utmpx.h>
6477 #endif
6478 #ifdef HAVE_PATHS_H
6479 # include <paths.h>
6480 #endif
6483 main ()
6485 char *wtmpx = WTMPX_FILE;
6487 return 0;
6489 _ACEOF
6490 if ac_fn_c_try_compile "$LINENO"; then :
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6492 $as_echo "yes" >&6; }
6493 else
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6495 $as_echo "no" >&6; }
6496 system_wtmpx_path=no
6499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6500 if test -z "$conf_wtmpx_location"; then
6501 if test x"$system_wtmpx_path" = x"no" ; then
6502 $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h
6505 else
6507 cat >>confdefs.h <<_ACEOF
6508 #define CONF_WTMPX_FILE "$conf_wtmpx_location"
6509 _ACEOF
6513 # Checks for library functions.
6514 if test $ac_cv_c_compiler_gnu = yes; then
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
6516 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
6517 if ${ac_cv_prog_gcc_traditional+:} false; then :
6518 $as_echo_n "(cached) " >&6
6519 else
6520 ac_pattern="Autoconf.*'x'"
6521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6522 /* end confdefs.h. */
6523 #include <sgtty.h>
6524 Autoconf TIOCGETP
6525 _ACEOF
6526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6527 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
6528 ac_cv_prog_gcc_traditional=yes
6529 else
6530 ac_cv_prog_gcc_traditional=no
6532 rm -f conftest*
6535 if test $ac_cv_prog_gcc_traditional = no; then
6536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6537 /* end confdefs.h. */
6538 #include <termio.h>
6539 Autoconf TCGETA
6540 _ACEOF
6541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6542 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
6543 ac_cv_prog_gcc_traditional=yes
6545 rm -f conftest*
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
6550 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
6551 if test $ac_cv_prog_gcc_traditional = yes; then
6552 CC="$CC -traditional"
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
6557 $as_echo_n "checking for working memcmp... " >&6; }
6558 if ${ac_cv_func_memcmp_working+:} false; then :
6559 $as_echo_n "(cached) " >&6
6560 else
6561 if test "$cross_compiling" = yes; then :
6562 ac_cv_func_memcmp_working=no
6563 else
6564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6565 /* end confdefs.h. */
6566 $ac_includes_default
6568 main ()
6571 /* Some versions of memcmp are not 8-bit clean. */
6572 char c0 = '\100', c1 = '\200', c2 = '\201';
6573 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
6574 return 1;
6576 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6577 or more and with at least one buffer not starting on a 4-byte boundary.
6578 William Lewis provided this test program. */
6580 char foo[21];
6581 char bar[21];
6582 int i;
6583 for (i = 0; i < 4; i++)
6585 char *a = foo + i;
6586 char *b = bar + i;
6587 strcpy (a, "--------01111111");
6588 strcpy (b, "--------10000000");
6589 if (memcmp (a, b, 16) >= 0)
6590 return 1;
6592 return 0;
6596 return 0;
6598 _ACEOF
6599 if ac_fn_c_try_run "$LINENO"; then :
6600 ac_cv_func_memcmp_working=yes
6601 else
6602 ac_cv_func_memcmp_working=no
6604 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6605 conftest.$ac_objext conftest.beam conftest.$ac_ext
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
6610 $as_echo "$ac_cv_func_memcmp_working" >&6; }
6611 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
6612 *" memcmp.$ac_objext "* ) ;;
6613 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
6615 esac
6618 for ac_header in sys/select.h sys/socket.h
6619 do :
6620 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6621 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6622 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6623 cat >>confdefs.h <<_ACEOF
6624 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6625 _ACEOF
6629 done
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
6632 $as_echo_n "checking types of arguments for select... " >&6; }
6633 if ${ac_cv_func_select_args+:} false; then :
6634 $as_echo_n "(cached) " >&6
6635 else
6636 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
6637 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
6638 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
6639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6640 /* end confdefs.h. */
6641 $ac_includes_default
6642 #ifdef HAVE_SYS_SELECT_H
6643 # include <sys/select.h>
6644 #endif
6645 #ifdef HAVE_SYS_SOCKET_H
6646 # include <sys/socket.h>
6647 #endif
6650 main ()
6652 extern int select ($ac_arg1,
6653 $ac_arg234, $ac_arg234, $ac_arg234,
6654 $ac_arg5);
6656 return 0;
6658 _ACEOF
6659 if ac_fn_c_try_compile "$LINENO"; then :
6660 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
6662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6663 done
6664 done
6665 done
6666 # Provide a safe default value.
6667 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
6671 $as_echo "$ac_cv_func_select_args" >&6; }
6672 ac_save_IFS=$IFS; IFS=','
6673 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
6674 IFS=$ac_save_IFS
6675 shift
6677 cat >>confdefs.h <<_ACEOF
6678 #define SELECT_TYPE_ARG1 $1
6679 _ACEOF
6682 cat >>confdefs.h <<_ACEOF
6683 #define SELECT_TYPE_ARG234 ($2)
6684 _ACEOF
6687 cat >>confdefs.h <<_ACEOF
6688 #define SELECT_TYPE_ARG5 ($3)
6689 _ACEOF
6691 rm -f conftest*
6693 for ac_func in dup2 getspnam getusershell memset putenv select socket strdup clearenv strlcpy strlcat daemon basename _getpty getaddrinfo freeaddrinfo getnameinfo fork writev
6694 do :
6695 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6696 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6697 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6698 cat >>confdefs.h <<_ACEOF
6699 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6700 _ACEOF
6703 done
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing basename" >&5
6707 $as_echo_n "checking for library containing basename... " >&6; }
6708 if ${ac_cv_search_basename+:} false; then :
6709 $as_echo_n "(cached) " >&6
6710 else
6711 ac_func_search_save_LIBS=$LIBS
6712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6713 /* end confdefs.h. */
6715 /* Override any GCC internal prototype to avoid an error.
6716 Use char because int might match the return type of a GCC
6717 builtin and then its argument prototype would still apply. */
6718 #ifdef __cplusplus
6719 extern "C"
6720 #endif
6721 char basename ();
6723 main ()
6725 return basename ();
6727 return 0;
6729 _ACEOF
6730 for ac_lib in '' gen; do
6731 if test -z "$ac_lib"; then
6732 ac_res="none required"
6733 else
6734 ac_res=-l$ac_lib
6735 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6737 if ac_fn_c_try_link "$LINENO"; then :
6738 ac_cv_search_basename=$ac_res
6740 rm -f core conftest.err conftest.$ac_objext \
6741 conftest$ac_exeext
6742 if ${ac_cv_search_basename+:} false; then :
6743 break
6745 done
6746 if ${ac_cv_search_basename+:} false; then :
6748 else
6749 ac_cv_search_basename=no
6751 rm conftest.$ac_ext
6752 LIBS=$ac_func_search_save_LIBS
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_basename" >&5
6755 $as_echo "$ac_cv_search_basename" >&6; }
6756 ac_res=$ac_cv_search_basename
6757 if test "$ac_res" != no; then :
6758 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6759 $as_echo "#define HAVE_BASENAME 1" >>confdefs.h
6764 # Solaris needs ptmx
6765 if test -z "$no_ptmx_check" ; then
6766 if test x"$cross_compiling" = x"no" ; then
6767 if test -e /dev/ptmx ; then
6769 $as_echo "#define USE_DEV_PTMX /**/" >>confdefs.h
6772 else
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: Not checking for /dev/ptmx, we're cross-compiling" >&5
6774 $as_echo "$as_me: Not checking for /dev/ptmx, we're cross-compiling" >&6;}
6778 if test -z "$no_ptc_check" ; then
6779 if test x"$cross_compiling" = x"no" ; then
6780 if test -e /dev/ptc ; then
6782 $as_echo "#define HAVE_DEV_PTS_AND_PTC /**/" >>confdefs.h
6785 else
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: Not checking for /dev/ptc & /dev/pts since we're cross-compiling" >&5
6787 $as_echo "$as_me: Not checking for /dev/ptc & /dev/pts since we're cross-compiling" >&6;}
6793 # XXX there must be a nicer way to do this
6794 as_dir=libtomcrypt/src/ciphers/aes; as_fn_mkdir_p
6795 as_dir=libtomcrypt/src/ciphers/safer; as_fn_mkdir_p
6796 as_dir=libtomcrypt/src/ciphers/twofish; as_fn_mkdir_p
6797 as_dir=libtomcrypt/src/encauth/ccm; as_fn_mkdir_p
6798 as_dir=libtomcrypt/src/encauth/eax; as_fn_mkdir_p
6799 as_dir=libtomcrypt/src/encauth/gcm; as_fn_mkdir_p
6800 as_dir=libtomcrypt/src/encauth/ocb; as_fn_mkdir_p
6801 as_dir=libtomcrypt/src/hashes; as_fn_mkdir_p
6802 as_dir=libtomcrypt/src/hashes/chc; as_fn_mkdir_p
6803 as_dir=libtomcrypt/src/hashes/helper; as_fn_mkdir_p
6804 as_dir=libtomcrypt/src/hashes/sha2; as_fn_mkdir_p
6805 as_dir=libtomcrypt/src/hashes/whirl; as_fn_mkdir_p
6806 as_dir=libtomcrypt/src/mac/hmac; as_fn_mkdir_p
6807 as_dir=libtomcrypt/src/mac/omac; as_fn_mkdir_p
6808 as_dir=libtomcrypt/src/mac/pelican; as_fn_mkdir_p
6809 as_dir=libtomcrypt/src/mac/pmac; as_fn_mkdir_p
6810 as_dir=libtomcrypt/src/mac/f9; as_fn_mkdir_p
6811 as_dir=libtomcrypt/src/mac/xcbc; as_fn_mkdir_p
6812 as_dir=libtomcrypt/src/math/fp; as_fn_mkdir_p
6813 as_dir=libtomcrypt/src/misc/base64; as_fn_mkdir_p
6814 as_dir=libtomcrypt/src/misc/crypt; as_fn_mkdir_p
6815 as_dir=libtomcrypt/src/misc/mpi; as_fn_mkdir_p
6816 as_dir=libtomcrypt/src/misc/pkcs5; as_fn_mkdir_p
6817 as_dir=libtomcrypt/src/modes/cbc; as_fn_mkdir_p
6818 as_dir=libtomcrypt/src/modes/cfb; as_fn_mkdir_p
6819 as_dir=libtomcrypt/src/modes/ctr; as_fn_mkdir_p
6820 as_dir=libtomcrypt/src/modes/ecb; as_fn_mkdir_p
6821 as_dir=libtomcrypt/src/modes/ofb; as_fn_mkdir_p
6822 as_dir=libtomcrypt/src/modes/f8; as_fn_mkdir_p
6823 as_dir=libtomcrypt/src/modes/lrw; as_fn_mkdir_p
6824 as_dir=libtomcrypt/src/pk/asn1/der/bit; as_fn_mkdir_p
6825 as_dir=libtomcrypt/src/pk/asn1/der/boolean; as_fn_mkdir_p
6826 as_dir=libtomcrypt/src/pk/asn1/der/choice; as_fn_mkdir_p
6827 as_dir=libtomcrypt/src/pk/asn1/der/ia5; as_fn_mkdir_p
6828 as_dir=libtomcrypt/src/pk/asn1/der/integer; as_fn_mkdir_p
6829 as_dir=libtomcrypt/src/pk/asn1/der/object_identifier; as_fn_mkdir_p
6830 as_dir=libtomcrypt/src/pk/asn1/der/octet; as_fn_mkdir_p
6831 as_dir=libtomcrypt/src/pk/asn1/der/printable_string; as_fn_mkdir_p
6832 as_dir=libtomcrypt/src/pk/asn1/der/sequence; as_fn_mkdir_p
6833 as_dir=libtomcrypt/src/pk/asn1/der/set; as_fn_mkdir_p
6834 as_dir=libtomcrypt/src/pk/asn1/der/short_integer; as_fn_mkdir_p
6835 as_dir=libtomcrypt/src/pk/asn1/der/utctime; as_fn_mkdir_p
6836 as_dir=libtomcrypt/src/pk/asn1/der/utf8; as_fn_mkdir_p
6837 as_dir=libtomcrypt/src/pk/dh; as_fn_mkdir_p
6838 as_dir=libtomcrypt/src/pk/dsa; as_fn_mkdir_p
6839 as_dir=libtomcrypt/src/pk/ecc; as_fn_mkdir_p
6840 as_dir=libtomcrypt/src/pk/katja; as_fn_mkdir_p
6841 as_dir=libtomcrypt/src/pk/pkcs1; as_fn_mkdir_p
6842 as_dir=libtomcrypt/src/pk/rsa; as_fn_mkdir_p
6843 as_dir=libtomcrypt/src/prngs; as_fn_mkdir_p
6844 ac_config_headers="$ac_config_headers config.h"
6846 ac_config_files="$ac_config_files Makefile libtomcrypt/Makefile libtommath/Makefile"
6848 cat >confcache <<\_ACEOF
6849 # This file is a shell script that caches the results of configure
6850 # tests run on this system so they can be shared between configure
6851 # scripts and configure runs, see configure's option --config-cache.
6852 # It is not useful on other systems. If it contains results you don't
6853 # want to keep, you may remove or edit it.
6855 # config.status only pays attention to the cache file if you give it
6856 # the --recheck option to rerun configure.
6858 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6859 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6860 # following values.
6862 _ACEOF
6864 # The following way of writing the cache mishandles newlines in values,
6865 # but we know of no workaround that is simple, portable, and efficient.
6866 # So, we kill variables containing newlines.
6867 # Ultrix sh set writes to stderr and can't be redirected directly,
6868 # and sets the high bit in the cache file unless we assign to the vars.
6870 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6871 eval ac_val=\$$ac_var
6872 case $ac_val in #(
6873 *${as_nl}*)
6874 case $ac_var in #(
6875 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6876 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6877 esac
6878 case $ac_var in #(
6879 _ | IFS | as_nl) ;; #(
6880 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6881 *) { eval $ac_var=; unset $ac_var;} ;;
6882 esac ;;
6883 esac
6884 done
6886 (set) 2>&1 |
6887 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6888 *${as_nl}ac_space=\ *)
6889 # `set' does not quote correctly, so add quotes: double-quote
6890 # substitution turns \\\\ into \\, and sed turns \\ into \.
6891 sed -n \
6892 "s/'/'\\\\''/g;
6893 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6894 ;; #(
6896 # `set' quotes correctly as required by POSIX, so do not add quotes.
6897 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6899 esac |
6900 sort
6902 sed '
6903 /^ac_cv_env_/b end
6904 t clear
6905 :clear
6906 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6907 t end
6908 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6909 :end' >>confcache
6910 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6911 if test -w "$cache_file"; then
6912 if test "x$cache_file" != "x/dev/null"; then
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6914 $as_echo "$as_me: updating cache $cache_file" >&6;}
6915 if test ! -f "$cache_file" || test -h "$cache_file"; then
6916 cat confcache >"$cache_file"
6917 else
6918 case $cache_file in #(
6919 */* | ?:*)
6920 mv -f confcache "$cache_file"$$ &&
6921 mv -f "$cache_file"$$ "$cache_file" ;; #(
6923 mv -f confcache "$cache_file" ;;
6924 esac
6927 else
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6929 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6932 rm -f confcache
6934 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6935 # Let make expand exec_prefix.
6936 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6938 DEFS=-DHAVE_CONFIG_H
6940 ac_libobjs=
6941 ac_ltlibobjs=
6943 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6944 # 1. Remove the extension, and $U if already installed.
6945 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6946 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6947 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6948 # will be set to the directory where LIBOBJS objects are built.
6949 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6950 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6951 done
6952 LIBOBJS=$ac_libobjs
6954 LTLIBOBJS=$ac_ltlibobjs
6958 : "${CONFIG_STATUS=./config.status}"
6959 ac_write_fail=0
6960 ac_clean_files_save=$ac_clean_files
6961 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6963 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6964 as_write_fail=0
6965 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6966 #! $SHELL
6967 # Generated by $as_me.
6968 # Run this file to recreate the current configuration.
6969 # Compiler output produced by configure, useful for debugging
6970 # configure, is in config.log if it exists.
6972 debug=false
6973 ac_cs_recheck=false
6974 ac_cs_silent=false
6976 SHELL=\${CONFIG_SHELL-$SHELL}
6977 export SHELL
6978 _ASEOF
6979 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6980 ## -------------------- ##
6981 ## M4sh Initialization. ##
6982 ## -------------------- ##
6984 # Be more Bourne compatible
6985 DUALCASE=1; export DUALCASE # for MKS sh
6986 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6987 emulate sh
6988 NULLCMD=:
6989 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6990 # is contrary to our usage. Disable this feature.
6991 alias -g '${1+"$@"}'='"$@"'
6992 setopt NO_GLOB_SUBST
6993 else
6994 case `(set -o) 2>/dev/null` in #(
6995 *posix*) :
6996 set -o posix ;; #(
6997 *) :
6999 esac
7003 as_nl='
7005 export as_nl
7006 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7007 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7008 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7009 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7010 # Prefer a ksh shell builtin over an external printf program on Solaris,
7011 # but without wasting forks for bash or zsh.
7012 if test -z "$BASH_VERSION$ZSH_VERSION" \
7013 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7014 as_echo='print -r --'
7015 as_echo_n='print -rn --'
7016 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7017 as_echo='printf %s\n'
7018 as_echo_n='printf %s'
7019 else
7020 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7021 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7022 as_echo_n='/usr/ucb/echo -n'
7023 else
7024 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7025 as_echo_n_body='eval
7026 arg=$1;
7027 case $arg in #(
7028 *"$as_nl"*)
7029 expr "X$arg" : "X\\(.*\\)$as_nl";
7030 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7031 esac;
7032 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7034 export as_echo_n_body
7035 as_echo_n='sh -c $as_echo_n_body as_echo'
7037 export as_echo_body
7038 as_echo='sh -c $as_echo_body as_echo'
7041 # The user is always right.
7042 if test "${PATH_SEPARATOR+set}" != set; then
7043 PATH_SEPARATOR=:
7044 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7045 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7046 PATH_SEPARATOR=';'
7051 # IFS
7052 # We need space, tab and new line, in precisely that order. Quoting is
7053 # there to prevent editors from complaining about space-tab.
7054 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7055 # splitting by setting IFS to empty value.)
7056 IFS=" "" $as_nl"
7058 # Find who we are. Look in the path if we contain no directory separator.
7059 as_myself=
7060 case $0 in #((
7061 *[\\/]* ) as_myself=$0 ;;
7062 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7063 for as_dir in $PATH
7065 IFS=$as_save_IFS
7066 test -z "$as_dir" && as_dir=.
7067 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7068 done
7069 IFS=$as_save_IFS
7072 esac
7073 # We did not find ourselves, most probably we were run as `sh COMMAND'
7074 # in which case we are not to be found in the path.
7075 if test "x$as_myself" = x; then
7076 as_myself=$0
7078 if test ! -f "$as_myself"; then
7079 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7080 exit 1
7083 # Unset variables that we do not need and which cause bugs (e.g. in
7084 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7085 # suppresses any "Segmentation fault" message there. '((' could
7086 # trigger a bug in pdksh 5.2.14.
7087 for as_var in BASH_ENV ENV MAIL MAILPATH
7088 do eval test x\${$as_var+set} = xset \
7089 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7090 done
7091 PS1='$ '
7092 PS2='> '
7093 PS4='+ '
7095 # NLS nuisances.
7096 LC_ALL=C
7097 export LC_ALL
7098 LANGUAGE=C
7099 export LANGUAGE
7101 # CDPATH.
7102 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7105 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7106 # ----------------------------------------
7107 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7108 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7109 # script with STATUS, using 1 if that was 0.
7110 as_fn_error ()
7112 as_status=$1; test $as_status -eq 0 && as_status=1
7113 if test "$4"; then
7114 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7115 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7117 $as_echo "$as_me: error: $2" >&2
7118 as_fn_exit $as_status
7119 } # as_fn_error
7122 # as_fn_set_status STATUS
7123 # -----------------------
7124 # Set $? to STATUS, without forking.
7125 as_fn_set_status ()
7127 return $1
7128 } # as_fn_set_status
7130 # as_fn_exit STATUS
7131 # -----------------
7132 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7133 as_fn_exit ()
7135 set +e
7136 as_fn_set_status $1
7137 exit $1
7138 } # as_fn_exit
7140 # as_fn_unset VAR
7141 # ---------------
7142 # Portably unset VAR.
7143 as_fn_unset ()
7145 { eval $1=; unset $1;}
7147 as_unset=as_fn_unset
7148 # as_fn_append VAR VALUE
7149 # ----------------------
7150 # Append the text in VALUE to the end of the definition contained in VAR. Take
7151 # advantage of any shell optimizations that allow amortized linear growth over
7152 # repeated appends, instead of the typical quadratic growth present in naive
7153 # implementations.
7154 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7155 eval 'as_fn_append ()
7157 eval $1+=\$2
7159 else
7160 as_fn_append ()
7162 eval $1=\$$1\$2
7164 fi # as_fn_append
7166 # as_fn_arith ARG...
7167 # ------------------
7168 # Perform arithmetic evaluation on the ARGs, and store the result in the
7169 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7170 # must be portable across $(()) and expr.
7171 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7172 eval 'as_fn_arith ()
7174 as_val=$(( $* ))
7176 else
7177 as_fn_arith ()
7179 as_val=`expr "$@" || test $? -eq 1`
7181 fi # as_fn_arith
7184 if expr a : '\(a\)' >/dev/null 2>&1 &&
7185 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7186 as_expr=expr
7187 else
7188 as_expr=false
7191 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7192 as_basename=basename
7193 else
7194 as_basename=false
7197 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7198 as_dirname=dirname
7199 else
7200 as_dirname=false
7203 as_me=`$as_basename -- "$0" ||
7204 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7205 X"$0" : 'X\(//\)$' \| \
7206 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7207 $as_echo X/"$0" |
7208 sed '/^.*\/\([^/][^/]*\)\/*$/{
7209 s//\1/
7212 /^X\/\(\/\/\)$/{
7213 s//\1/
7216 /^X\/\(\/\).*/{
7217 s//\1/
7220 s/.*/./; q'`
7222 # Avoid depending upon Character Ranges.
7223 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7224 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7225 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7226 as_cr_digits='0123456789'
7227 as_cr_alnum=$as_cr_Letters$as_cr_digits
7229 ECHO_C= ECHO_N= ECHO_T=
7230 case `echo -n x` in #(((((
7231 -n*)
7232 case `echo 'xy\c'` in
7233 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7234 xy) ECHO_C='\c';;
7235 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7236 ECHO_T=' ';;
7237 esac;;
7239 ECHO_N='-n';;
7240 esac
7242 rm -f conf$$ conf$$.exe conf$$.file
7243 if test -d conf$$.dir; then
7244 rm -f conf$$.dir/conf$$.file
7245 else
7246 rm -f conf$$.dir
7247 mkdir conf$$.dir 2>/dev/null
7249 if (echo >conf$$.file) 2>/dev/null; then
7250 if ln -s conf$$.file conf$$ 2>/dev/null; then
7251 as_ln_s='ln -s'
7252 # ... but there are two gotchas:
7253 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7254 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7255 # In both cases, we have to default to `cp -pR'.
7256 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7257 as_ln_s='cp -pR'
7258 elif ln conf$$.file conf$$ 2>/dev/null; then
7259 as_ln_s=ln
7260 else
7261 as_ln_s='cp -pR'
7263 else
7264 as_ln_s='cp -pR'
7266 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7267 rmdir conf$$.dir 2>/dev/null
7270 # as_fn_mkdir_p
7271 # -------------
7272 # Create "$as_dir" as a directory, including parents if necessary.
7273 as_fn_mkdir_p ()
7276 case $as_dir in #(
7277 -*) as_dir=./$as_dir;;
7278 esac
7279 test -d "$as_dir" || eval $as_mkdir_p || {
7280 as_dirs=
7281 while :; do
7282 case $as_dir in #(
7283 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7284 *) as_qdir=$as_dir;;
7285 esac
7286 as_dirs="'$as_qdir' $as_dirs"
7287 as_dir=`$as_dirname -- "$as_dir" ||
7288 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7289 X"$as_dir" : 'X\(//\)[^/]' \| \
7290 X"$as_dir" : 'X\(//\)$' \| \
7291 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7292 $as_echo X"$as_dir" |
7293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7294 s//\1/
7297 /^X\(\/\/\)[^/].*/{
7298 s//\1/
7301 /^X\(\/\/\)$/{
7302 s//\1/
7305 /^X\(\/\).*/{
7306 s//\1/
7309 s/.*/./; q'`
7310 test -d "$as_dir" && break
7311 done
7312 test -z "$as_dirs" || eval "mkdir $as_dirs"
7313 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7316 } # as_fn_mkdir_p
7317 if mkdir -p . 2>/dev/null; then
7318 as_mkdir_p='mkdir -p "$as_dir"'
7319 else
7320 test -d ./-p && rmdir ./-p
7321 as_mkdir_p=false
7325 # as_fn_executable_p FILE
7326 # -----------------------
7327 # Test if FILE is an executable regular file.
7328 as_fn_executable_p ()
7330 test -f "$1" && test -x "$1"
7331 } # as_fn_executable_p
7332 as_test_x='test -x'
7333 as_executable_p=as_fn_executable_p
7335 # Sed expression to map a string onto a valid CPP name.
7336 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7338 # Sed expression to map a string onto a valid variable name.
7339 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7342 exec 6>&1
7343 ## ----------------------------------- ##
7344 ## Main body of $CONFIG_STATUS script. ##
7345 ## ----------------------------------- ##
7346 _ASEOF
7347 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7349 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7350 # Save the log message, to keep $0 and so on meaningful, and to
7351 # report actual input values of CONFIG_FILES etc. instead of their
7352 # values after options handling.
7353 ac_log="
7354 This file was extended by $as_me, which was
7355 generated by GNU Autoconf 2.69. Invocation command line was
7357 CONFIG_FILES = $CONFIG_FILES
7358 CONFIG_HEADERS = $CONFIG_HEADERS
7359 CONFIG_LINKS = $CONFIG_LINKS
7360 CONFIG_COMMANDS = $CONFIG_COMMANDS
7361 $ $0 $@
7363 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7366 _ACEOF
7368 case $ac_config_files in *"
7369 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7370 esac
7372 case $ac_config_headers in *"
7373 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7374 esac
7377 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7378 # Files that config.status was made for.
7379 config_files="$ac_config_files"
7380 config_headers="$ac_config_headers"
7382 _ACEOF
7384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7385 ac_cs_usage="\
7386 \`$as_me' instantiates files and other configuration actions
7387 from templates according to the current configuration. Unless the files
7388 and actions are specified as TAGs, all are instantiated by default.
7390 Usage: $0 [OPTION]... [TAG]...
7392 -h, --help print this help, then exit
7393 -V, --version print version number and configuration settings, then exit
7394 --config print configuration, then exit
7395 -q, --quiet, --silent
7396 do not print progress messages
7397 -d, --debug don't remove temporary files
7398 --recheck update $as_me by reconfiguring in the same conditions
7399 --file=FILE[:TEMPLATE]
7400 instantiate the configuration file FILE
7401 --header=FILE[:TEMPLATE]
7402 instantiate the configuration header FILE
7404 Configuration files:
7405 $config_files
7407 Configuration headers:
7408 $config_headers
7410 Report bugs to the package provider."
7412 _ACEOF
7413 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7414 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7415 ac_cs_version="\\
7416 config.status
7417 configured by $0, generated by GNU Autoconf 2.69,
7418 with options \\"\$ac_cs_config\\"
7420 Copyright (C) 2012 Free Software Foundation, Inc.
7421 This config.status script is free software; the Free Software Foundation
7422 gives unlimited permission to copy, distribute and modify it."
7424 ac_pwd='$ac_pwd'
7425 srcdir='$srcdir'
7426 test -n "\$AWK" || AWK=awk
7427 _ACEOF
7429 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7430 # The default lists apply if the user does not specify any file.
7431 ac_need_defaults=:
7432 while test $# != 0
7434 case $1 in
7435 --*=?*)
7436 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7437 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7438 ac_shift=:
7440 --*=)
7441 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7442 ac_optarg=
7443 ac_shift=:
7446 ac_option=$1
7447 ac_optarg=$2
7448 ac_shift=shift
7450 esac
7452 case $ac_option in
7453 # Handling of the options.
7454 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7455 ac_cs_recheck=: ;;
7456 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7457 $as_echo "$ac_cs_version"; exit ;;
7458 --config | --confi | --conf | --con | --co | --c )
7459 $as_echo "$ac_cs_config"; exit ;;
7460 --debug | --debu | --deb | --de | --d | -d )
7461 debug=: ;;
7462 --file | --fil | --fi | --f )
7463 $ac_shift
7464 case $ac_optarg in
7465 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7466 '') as_fn_error $? "missing file argument" ;;
7467 esac
7468 as_fn_append CONFIG_FILES " '$ac_optarg'"
7469 ac_need_defaults=false;;
7470 --header | --heade | --head | --hea )
7471 $ac_shift
7472 case $ac_optarg in
7473 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7474 esac
7475 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7476 ac_need_defaults=false;;
7477 --he | --h)
7478 # Conflict between --help and --header
7479 as_fn_error $? "ambiguous option: \`$1'
7480 Try \`$0 --help' for more information.";;
7481 --help | --hel | -h )
7482 $as_echo "$ac_cs_usage"; exit ;;
7483 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7484 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7485 ac_cs_silent=: ;;
7487 # This is an error.
7488 -*) as_fn_error $? "unrecognized option: \`$1'
7489 Try \`$0 --help' for more information." ;;
7491 *) as_fn_append ac_config_targets " $1"
7492 ac_need_defaults=false ;;
7494 esac
7495 shift
7496 done
7498 ac_configure_extra_args=
7500 if $ac_cs_silent; then
7501 exec 6>/dev/null
7502 ac_configure_extra_args="$ac_configure_extra_args --silent"
7505 _ACEOF
7506 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7507 if \$ac_cs_recheck; then
7508 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7509 shift
7510 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7511 CONFIG_SHELL='$SHELL'
7512 export CONFIG_SHELL
7513 exec "\$@"
7516 _ACEOF
7517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7518 exec 5>>config.log
7520 echo
7521 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7522 ## Running $as_me. ##
7523 _ASBOX
7524 $as_echo "$ac_log"
7525 } >&5
7527 _ACEOF
7528 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7529 _ACEOF
7531 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7533 # Handling of arguments.
7534 for ac_config_target in $ac_config_targets
7536 case $ac_config_target in
7537 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7538 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7539 "libtomcrypt/Makefile") CONFIG_FILES="$CONFIG_FILES libtomcrypt/Makefile" ;;
7540 "libtommath/Makefile") CONFIG_FILES="$CONFIG_FILES libtommath/Makefile" ;;
7542 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7543 esac
7544 done
7547 # If the user did not use the arguments to specify the items to instantiate,
7548 # then the envvar interface is used. Set only those that are not.
7549 # We use the long form for the default assignment because of an extremely
7550 # bizarre bug on SunOS 4.1.3.
7551 if $ac_need_defaults; then
7552 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7553 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7556 # Have a temporary directory for convenience. Make it in the build tree
7557 # simply because there is no reason against having it here, and in addition,
7558 # creating and moving files from /tmp can sometimes cause problems.
7559 # Hook for its removal unless debugging.
7560 # Note that there is a small window in which the directory will not be cleaned:
7561 # after its creation but before its name has been assigned to `$tmp'.
7562 $debug ||
7564 tmp= ac_tmp=
7565 trap 'exit_status=$?
7566 : "${ac_tmp:=$tmp}"
7567 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7569 trap 'as_fn_exit 1' 1 2 13 15
7571 # Create a (secure) tmp directory for tmp files.
7574 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7575 test -d "$tmp"
7576 } ||
7578 tmp=./conf$$-$RANDOM
7579 (umask 077 && mkdir "$tmp")
7580 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7581 ac_tmp=$tmp
7583 # Set up the scripts for CONFIG_FILES section.
7584 # No need to generate them if there are no CONFIG_FILES.
7585 # This happens for instance with `./config.status config.h'.
7586 if test -n "$CONFIG_FILES"; then
7589 ac_cr=`echo X | tr X '\015'`
7590 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7591 # But we know of no other shell where ac_cr would be empty at this
7592 # point, so we can use a bashism as a fallback.
7593 if test "x$ac_cr" = x; then
7594 eval ac_cr=\$\'\\r\'
7596 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7597 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7598 ac_cs_awk_cr='\\r'
7599 else
7600 ac_cs_awk_cr=$ac_cr
7603 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7604 _ACEOF
7608 echo "cat >conf$$subs.awk <<_ACEOF" &&
7609 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7610 echo "_ACEOF"
7611 } >conf$$subs.sh ||
7612 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7613 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7614 ac_delim='%!_!# '
7615 for ac_last_try in false false false false false :; do
7616 . ./conf$$subs.sh ||
7617 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7619 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7620 if test $ac_delim_n = $ac_delim_num; then
7621 break
7622 elif $ac_last_try; then
7623 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7624 else
7625 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7627 done
7628 rm -f conf$$subs.sh
7630 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7631 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7632 _ACEOF
7633 sed -n '
7635 s/^/S["/; s/!.*/"]=/
7638 s/^[^!]*!//
7639 :repl
7640 t repl
7641 s/'"$ac_delim"'$//
7642 t delim
7645 s/\(.\{148\}\)..*/\1/
7646 t more1
7647 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7650 b repl
7651 :more1
7652 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7655 s/.\{148\}//
7656 t nl
7657 :delim
7659 s/\(.\{148\}\)..*/\1/
7660 t more2
7661 s/["\\]/\\&/g; s/^/"/; s/$/"/
7664 :more2
7665 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7668 s/.\{148\}//
7669 t delim
7670 ' <conf$$subs.awk | sed '
7671 /^[^""]/{
7673 s/\n//
7675 ' >>$CONFIG_STATUS || ac_write_fail=1
7676 rm -f conf$$subs.awk
7677 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7678 _ACAWK
7679 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7680 for (key in S) S_is_set[key] = 1
7681 FS = "\a"
7685 line = $ 0
7686 nfields = split(line, field, "@")
7687 substed = 0
7688 len = length(field[1])
7689 for (i = 2; i < nfields; i++) {
7690 key = field[i]
7691 keylen = length(key)
7692 if (S_is_set[key]) {
7693 value = S[key]
7694 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7695 len += length(value) + length(field[++i])
7696 substed = 1
7697 } else
7698 len += 1 + keylen
7701 print line
7704 _ACAWK
7705 _ACEOF
7706 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7707 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7708 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7709 else
7711 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7712 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7713 _ACEOF
7715 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7716 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7717 # trailing colons and then remove the whole line if VPATH becomes empty
7718 # (actually we leave an empty line to preserve line numbers).
7719 if test "x$srcdir" = x.; then
7720 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7722 s///
7723 s/^/:/
7724 s/[ ]*$/:/
7725 s/:\$(srcdir):/:/g
7726 s/:\${srcdir}:/:/g
7727 s/:@srcdir@:/:/g
7728 s/^:*//
7729 s/:*$//
7731 s/\(=[ ]*\).*/\1/
7733 s/\n//
7734 s/^[^=]*=[ ]*$//
7738 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7739 fi # test -n "$CONFIG_FILES"
7741 # Set up the scripts for CONFIG_HEADERS section.
7742 # No need to generate them if there are no CONFIG_HEADERS.
7743 # This happens for instance with `./config.status Makefile'.
7744 if test -n "$CONFIG_HEADERS"; then
7745 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7746 BEGIN {
7747 _ACEOF
7749 # Transform confdefs.h into an awk script `defines.awk', embedded as
7750 # here-document in config.status, that substitutes the proper values into
7751 # config.h.in to produce config.h.
7753 # Create a delimiter string that does not exist in confdefs.h, to ease
7754 # handling of long lines.
7755 ac_delim='%!_!# '
7756 for ac_last_try in false false :; do
7757 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7758 if test -z "$ac_tt"; then
7759 break
7760 elif $ac_last_try; then
7761 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7762 else
7763 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7765 done
7767 # For the awk script, D is an array of macro values keyed by name,
7768 # likewise P contains macro parameters if any. Preserve backslash
7769 # newline sequences.
7771 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7772 sed -n '
7773 s/.\{148\}/&'"$ac_delim"'/g
7774 t rset
7775 :rset
7776 s/^[ ]*#[ ]*define[ ][ ]*/ /
7777 t def
7779 :def
7780 s/\\$//
7781 t bsnl
7782 s/["\\]/\\&/g
7783 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7784 D["\1"]=" \3"/p
7785 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7787 :bsnl
7788 s/["\\]/\\&/g
7789 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7790 D["\1"]=" \3\\\\\\n"\\/p
7791 t cont
7792 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7793 t cont
7795 :cont
7797 s/.\{148\}/&'"$ac_delim"'/g
7798 t clear
7799 :clear
7800 s/\\$//
7801 t bsnlc
7802 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7804 :bsnlc
7805 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7806 b cont
7807 ' <confdefs.h | sed '
7808 s/'"$ac_delim"'/"\\\
7809 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7811 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7812 for (key in D) D_is_set[key] = 1
7813 FS = "\a"
7815 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7816 line = \$ 0
7817 split(line, arg, " ")
7818 if (arg[1] == "#") {
7819 defundef = arg[2]
7820 mac1 = arg[3]
7821 } else {
7822 defundef = substr(arg[1], 2)
7823 mac1 = arg[2]
7825 split(mac1, mac2, "(") #)
7826 macro = mac2[1]
7827 prefix = substr(line, 1, index(line, defundef) - 1)
7828 if (D_is_set[macro]) {
7829 # Preserve the white space surrounding the "#".
7830 print prefix "define", macro P[macro] D[macro]
7831 next
7832 } else {
7833 # Replace #undef with comments. This is necessary, for example,
7834 # in the case of _POSIX_SOURCE, which is predefined and required
7835 # on some systems where configure will not decide to define it.
7836 if (defundef == "undef") {
7837 print "/*", prefix defundef, macro, "*/"
7838 next
7842 { print }
7843 _ACAWK
7844 _ACEOF
7845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7846 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7847 fi # test -n "$CONFIG_HEADERS"
7850 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
7851 shift
7852 for ac_tag
7854 case $ac_tag in
7855 :[FHLC]) ac_mode=$ac_tag; continue;;
7856 esac
7857 case $ac_mode$ac_tag in
7858 :[FHL]*:*);;
7859 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7860 :[FH]-) ac_tag=-:-;;
7861 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7862 esac
7863 ac_save_IFS=$IFS
7864 IFS=:
7865 set x $ac_tag
7866 IFS=$ac_save_IFS
7867 shift
7868 ac_file=$1
7869 shift
7871 case $ac_mode in
7872 :L) ac_source=$1;;
7873 :[FH])
7874 ac_file_inputs=
7875 for ac_f
7877 case $ac_f in
7878 -) ac_f="$ac_tmp/stdin";;
7879 *) # Look for the file first in the build tree, then in the source tree
7880 # (if the path is not absolute). The absolute path cannot be DOS-style,
7881 # because $ac_f cannot contain `:'.
7882 test -f "$ac_f" ||
7883 case $ac_f in
7884 [\\/$]*) false;;
7885 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7886 esac ||
7887 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7888 esac
7889 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7890 as_fn_append ac_file_inputs " '$ac_f'"
7891 done
7893 # Let's still pretend it is `configure' which instantiates (i.e., don't
7894 # use $as_me), people would be surprised to read:
7895 # /* config.h. Generated by config.status. */
7896 configure_input='Generated from '`
7897 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7898 `' by configure.'
7899 if test x"$ac_file" != x-; then
7900 configure_input="$ac_file. $configure_input"
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7902 $as_echo "$as_me: creating $ac_file" >&6;}
7904 # Neutralize special characters interpreted by sed in replacement strings.
7905 case $configure_input in #(
7906 *\&* | *\|* | *\\* )
7907 ac_sed_conf_input=`$as_echo "$configure_input" |
7908 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7909 *) ac_sed_conf_input=$configure_input;;
7910 esac
7912 case $ac_tag in
7913 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7914 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7915 esac
7917 esac
7919 ac_dir=`$as_dirname -- "$ac_file" ||
7920 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7921 X"$ac_file" : 'X\(//\)[^/]' \| \
7922 X"$ac_file" : 'X\(//\)$' \| \
7923 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7924 $as_echo X"$ac_file" |
7925 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7926 s//\1/
7929 /^X\(\/\/\)[^/].*/{
7930 s//\1/
7933 /^X\(\/\/\)$/{
7934 s//\1/
7937 /^X\(\/\).*/{
7938 s//\1/
7941 s/.*/./; q'`
7942 as_dir="$ac_dir"; as_fn_mkdir_p
7943 ac_builddir=.
7945 case "$ac_dir" in
7946 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7948 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7949 # A ".." for each directory in $ac_dir_suffix.
7950 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7951 case $ac_top_builddir_sub in
7952 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7953 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7954 esac ;;
7955 esac
7956 ac_abs_top_builddir=$ac_pwd
7957 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7958 # for backward compatibility:
7959 ac_top_builddir=$ac_top_build_prefix
7961 case $srcdir in
7962 .) # We are building in place.
7963 ac_srcdir=.
7964 ac_top_srcdir=$ac_top_builddir_sub
7965 ac_abs_top_srcdir=$ac_pwd ;;
7966 [\\/]* | ?:[\\/]* ) # Absolute name.
7967 ac_srcdir=$srcdir$ac_dir_suffix;
7968 ac_top_srcdir=$srcdir
7969 ac_abs_top_srcdir=$srcdir ;;
7970 *) # Relative name.
7971 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7972 ac_top_srcdir=$ac_top_build_prefix$srcdir
7973 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7974 esac
7975 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7978 case $ac_mode in
7981 # CONFIG_FILE
7984 _ACEOF
7986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7987 # If the template does not know about datarootdir, expand it.
7988 # FIXME: This hack should be removed a few years after 2.60.
7989 ac_datarootdir_hack=; ac_datarootdir_seen=
7990 ac_sed_dataroot='
7991 /datarootdir/ {
7995 /@datadir@/p
7996 /@docdir@/p
7997 /@infodir@/p
7998 /@localedir@/p
7999 /@mandir@/p'
8000 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8001 *datarootdir*) ac_datarootdir_seen=yes;;
8002 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8004 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8005 _ACEOF
8006 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8007 ac_datarootdir_hack='
8008 s&@datadir@&$datadir&g
8009 s&@docdir@&$docdir&g
8010 s&@infodir@&$infodir&g
8011 s&@localedir@&$localedir&g
8012 s&@mandir@&$mandir&g
8013 s&\\\${datarootdir}&$datarootdir&g' ;;
8014 esac
8015 _ACEOF
8017 # Neutralize VPATH when `$srcdir' = `.'.
8018 # Shell code in configure.ac might set extrasub.
8019 # FIXME: do we really want to maintain this feature?
8020 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8021 ac_sed_extra="$ac_vpsub
8022 $extrasub
8023 _ACEOF
8024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8026 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8027 s|@configure_input@|$ac_sed_conf_input|;t t
8028 s&@top_builddir@&$ac_top_builddir_sub&;t t
8029 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8030 s&@srcdir@&$ac_srcdir&;t t
8031 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8032 s&@top_srcdir@&$ac_top_srcdir&;t t
8033 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8034 s&@builddir@&$ac_builddir&;t t
8035 s&@abs_builddir@&$ac_abs_builddir&;t t
8036 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8037 $ac_datarootdir_hack
8039 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8040 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8042 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8043 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8044 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8045 "$ac_tmp/out"`; test -z "$ac_out"; } &&
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8047 which seems to be undefined. Please make sure it is defined" >&5
8048 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8049 which seems to be undefined. Please make sure it is defined" >&2;}
8051 rm -f "$ac_tmp/stdin"
8052 case $ac_file in
8053 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8054 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8055 esac \
8056 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8060 # CONFIG_HEADER
8062 if test x"$ac_file" != x-; then
8064 $as_echo "/* $configure_input */" \
8065 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8066 } >"$ac_tmp/config.h" \
8067 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8068 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8070 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8071 else
8072 rm -f "$ac_file"
8073 mv "$ac_tmp/config.h" "$ac_file" \
8074 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8076 else
8077 $as_echo "/* $configure_input */" \
8078 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8079 || as_fn_error $? "could not create -" "$LINENO" 5
8084 esac
8086 done # for ac_tag
8089 as_fn_exit 0
8090 _ACEOF
8091 ac_clean_files=$ac_clean_files_save
8093 test $ac_write_fail = 0 ||
8094 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8097 # configure is writing to config.log, and then calls config.status.
8098 # config.status does its own redirection, appending to config.log.
8099 # Unfortunately, on DOS this fails, as config.log is still kept open
8100 # by configure, so config.status won't be able to write to it; its
8101 # output is simply discarded. So we exec the FD to /dev/null,
8102 # effectively closing config.log, so it can be properly (re)opened and
8103 # appended to by config.status. When coming back to configure, we
8104 # need to make the FD available again.
8105 if test "$no_create" != yes; then
8106 ac_cs_success=:
8107 ac_config_status_args=
8108 test "$silent" = yes &&
8109 ac_config_status_args="$ac_config_status_args --quiet"
8110 exec 5>/dev/null
8111 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8112 exec 5>>config.log
8113 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8114 # would make configure fail if this is the last instruction.
8115 $ac_cs_success || as_fn_exit 1
8117 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8119 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
8124 $as_echo "$as_me: " >&6;}
8125 if test $BUNDLED_LIBTOM = 1 ; then
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: Using bundled libtomcrypt and libtommath" >&5
8127 $as_echo "$as_me: Using bundled libtomcrypt and libtommath" >&6;}
8128 else
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: Using system libtomcrypt and libtommath" >&5
8130 $as_echo "$as_me: Using system libtomcrypt and libtommath" >&6;}
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
8134 $as_echo "$as_me: " >&6;}
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: Now edit options.h to choose features." >&5
8136 $as_echo "$as_me: Now edit options.h to choose features." >&6;}