dropbear 2016.73
[tomato.git] / release / src / router / dropbear / configure
blob9e31cb2f880f72c4f1e891b96d2d6bbfe8aceeea
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 LIBTOM_LIBS
626 CRYPTLIB
627 EGREP
628 GREP
630 INSTALL
631 STRIP
632 RANLIB
634 host_os
635 host_vendor
636 host_cpu
637 host
638 build_os
639 build_vendor
640 build_cpu
641 build
643 SET_MAKE
644 OBJEXT
645 EXEEXT
646 ac_ct_CC
647 CPPFLAGS
648 LDFLAGS
649 CFLAGS
651 target_alias
652 host_alias
653 build_alias
654 LIBS
655 ECHO_T
656 ECHO_N
657 ECHO_C
658 DEFS
659 mandir
660 localedir
661 libdir
662 psdir
663 pdfdir
664 dvidir
665 htmldir
666 infodir
667 docdir
668 oldincludedir
669 includedir
670 localstatedir
671 sharedstatedir
672 sysconfdir
673 datadir
674 datarootdir
675 libexecdir
676 sbindir
677 bindir
678 program_transform_name
679 prefix
680 exec_prefix
681 PACKAGE_URL
682 PACKAGE_BUGREPORT
683 PACKAGE_STRING
684 PACKAGE_VERSION
685 PACKAGE_TARNAME
686 PACKAGE_NAME
687 PATH_SEPARATOR
688 SHELL'
689 ac_subst_files=''
690 ac_user_opts='
691 enable_option_checking
692 enable_largefile
693 with_zlib
694 enable_zlib
695 with_pam
696 enable_pam
697 enable_openpty
698 enable_syslog
699 enable_shadow
700 enable_bundled_libtom
701 enable_lastlog
702 enable_utmp
703 enable_utmpx
704 enable_wtmp
705 enable_wtmpx
706 enable_loginfunc
707 enable_pututline
708 enable_pututxline
709 with_lastlog
711 ac_precious_vars='build_alias
712 host_alias
713 target_alias
715 CFLAGS
716 LDFLAGS
717 LIBS
718 CPPFLAGS
719 CPP'
722 # Initialize some variables set by options.
723 ac_init_help=
724 ac_init_version=false
725 ac_unrecognized_opts=
726 ac_unrecognized_sep=
727 # The variables have the same names as the options, with
728 # dashes changed to underlines.
729 cache_file=/dev/null
730 exec_prefix=NONE
731 no_create=
732 no_recursion=
733 prefix=NONE
734 program_prefix=NONE
735 program_suffix=NONE
736 program_transform_name=s,x,x,
737 silent=
738 site=
739 srcdir=
740 verbose=
741 x_includes=NONE
742 x_libraries=NONE
744 # Installation directory options.
745 # These are left unexpanded so users can "make install exec_prefix=/foo"
746 # and all the variables that are supposed to be based on exec_prefix
747 # by default will actually change.
748 # Use braces instead of parens because sh, perl, etc. also accept them.
749 # (The list follows the same order as the GNU Coding Standards.)
750 bindir='${exec_prefix}/bin'
751 sbindir='${exec_prefix}/sbin'
752 libexecdir='${exec_prefix}/libexec'
753 datarootdir='${prefix}/share'
754 datadir='${datarootdir}'
755 sysconfdir='${prefix}/etc'
756 sharedstatedir='${prefix}/com'
757 localstatedir='${prefix}/var'
758 includedir='${prefix}/include'
759 oldincludedir='/usr/include'
760 docdir='${datarootdir}/doc/${PACKAGE}'
761 infodir='${datarootdir}/info'
762 htmldir='${docdir}'
763 dvidir='${docdir}'
764 pdfdir='${docdir}'
765 psdir='${docdir}'
766 libdir='${exec_prefix}/lib'
767 localedir='${datarootdir}/locale'
768 mandir='${datarootdir}/man'
770 ac_prev=
771 ac_dashdash=
772 for ac_option
774 # If the previous option needs an argument, assign it.
775 if test -n "$ac_prev"; then
776 eval $ac_prev=\$ac_option
777 ac_prev=
778 continue
781 case $ac_option in
782 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
783 *=) ac_optarg= ;;
784 *) ac_optarg=yes ;;
785 esac
787 # Accept the important Cygnus configure options, so we can diagnose typos.
789 case $ac_dashdash$ac_option in
791 ac_dashdash=yes ;;
793 -bindir | --bindir | --bindi | --bind | --bin | --bi)
794 ac_prev=bindir ;;
795 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
796 bindir=$ac_optarg ;;
798 -build | --build | --buil | --bui | --bu)
799 ac_prev=build_alias ;;
800 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
801 build_alias=$ac_optarg ;;
803 -cache-file | --cache-file | --cache-fil | --cache-fi \
804 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
805 ac_prev=cache_file ;;
806 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
807 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
808 cache_file=$ac_optarg ;;
810 --config-cache | -C)
811 cache_file=config.cache ;;
813 -datadir | --datadir | --datadi | --datad)
814 ac_prev=datadir ;;
815 -datadir=* | --datadir=* | --datadi=* | --datad=*)
816 datadir=$ac_optarg ;;
818 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
819 | --dataroo | --dataro | --datar)
820 ac_prev=datarootdir ;;
821 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
822 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
823 datarootdir=$ac_optarg ;;
825 -disable-* | --disable-*)
826 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
827 # Reject names that are not valid shell variable names.
828 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
829 as_fn_error $? "invalid feature name: $ac_useropt"
830 ac_useropt_orig=$ac_useropt
831 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
832 case $ac_user_opts in
834 "enable_$ac_useropt"
835 "*) ;;
836 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
837 ac_unrecognized_sep=', ';;
838 esac
839 eval enable_$ac_useropt=no ;;
841 -docdir | --docdir | --docdi | --doc | --do)
842 ac_prev=docdir ;;
843 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
844 docdir=$ac_optarg ;;
846 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
847 ac_prev=dvidir ;;
848 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
849 dvidir=$ac_optarg ;;
851 -enable-* | --enable-*)
852 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
853 # Reject names that are not valid shell variable names.
854 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
855 as_fn_error $? "invalid feature name: $ac_useropt"
856 ac_useropt_orig=$ac_useropt
857 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
858 case $ac_user_opts in
860 "enable_$ac_useropt"
861 "*) ;;
862 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
863 ac_unrecognized_sep=', ';;
864 esac
865 eval enable_$ac_useropt=\$ac_optarg ;;
867 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
868 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
869 | --exec | --exe | --ex)
870 ac_prev=exec_prefix ;;
871 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
872 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
873 | --exec=* | --exe=* | --ex=*)
874 exec_prefix=$ac_optarg ;;
876 -gas | --gas | --ga | --g)
877 # Obsolete; use --with-gas.
878 with_gas=yes ;;
880 -help | --help | --hel | --he | -h)
881 ac_init_help=long ;;
882 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
883 ac_init_help=recursive ;;
884 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
885 ac_init_help=short ;;
887 -host | --host | --hos | --ho)
888 ac_prev=host_alias ;;
889 -host=* | --host=* | --hos=* | --ho=*)
890 host_alias=$ac_optarg ;;
892 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
893 ac_prev=htmldir ;;
894 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
895 | --ht=*)
896 htmldir=$ac_optarg ;;
898 -includedir | --includedir | --includedi | --included | --include \
899 | --includ | --inclu | --incl | --inc)
900 ac_prev=includedir ;;
901 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
902 | --includ=* | --inclu=* | --incl=* | --inc=*)
903 includedir=$ac_optarg ;;
905 -infodir | --infodir | --infodi | --infod | --info | --inf)
906 ac_prev=infodir ;;
907 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
908 infodir=$ac_optarg ;;
910 -libdir | --libdir | --libdi | --libd)
911 ac_prev=libdir ;;
912 -libdir=* | --libdir=* | --libdi=* | --libd=*)
913 libdir=$ac_optarg ;;
915 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
916 | --libexe | --libex | --libe)
917 ac_prev=libexecdir ;;
918 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
919 | --libexe=* | --libex=* | --libe=*)
920 libexecdir=$ac_optarg ;;
922 -localedir | --localedir | --localedi | --localed | --locale)
923 ac_prev=localedir ;;
924 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
925 localedir=$ac_optarg ;;
927 -localstatedir | --localstatedir | --localstatedi | --localstated \
928 | --localstate | --localstat | --localsta | --localst | --locals)
929 ac_prev=localstatedir ;;
930 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
931 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
932 localstatedir=$ac_optarg ;;
934 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
935 ac_prev=mandir ;;
936 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
937 mandir=$ac_optarg ;;
939 -nfp | --nfp | --nf)
940 # Obsolete; use --without-fp.
941 with_fp=no ;;
943 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
944 | --no-cr | --no-c | -n)
945 no_create=yes ;;
947 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
948 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
949 no_recursion=yes ;;
951 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
952 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
953 | --oldin | --oldi | --old | --ol | --o)
954 ac_prev=oldincludedir ;;
955 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
956 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
957 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
958 oldincludedir=$ac_optarg ;;
960 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
961 ac_prev=prefix ;;
962 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
963 prefix=$ac_optarg ;;
965 -program-prefix | --program-prefix | --program-prefi | --program-pref \
966 | --program-pre | --program-pr | --program-p)
967 ac_prev=program_prefix ;;
968 -program-prefix=* | --program-prefix=* | --program-prefi=* \
969 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
970 program_prefix=$ac_optarg ;;
972 -program-suffix | --program-suffix | --program-suffi | --program-suff \
973 | --program-suf | --program-su | --program-s)
974 ac_prev=program_suffix ;;
975 -program-suffix=* | --program-suffix=* | --program-suffi=* \
976 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
977 program_suffix=$ac_optarg ;;
979 -program-transform-name | --program-transform-name \
980 | --program-transform-nam | --program-transform-na \
981 | --program-transform-n | --program-transform- \
982 | --program-transform | --program-transfor \
983 | --program-transfo | --program-transf \
984 | --program-trans | --program-tran \
985 | --progr-tra | --program-tr | --program-t)
986 ac_prev=program_transform_name ;;
987 -program-transform-name=* | --program-transform-name=* \
988 | --program-transform-nam=* | --program-transform-na=* \
989 | --program-transform-n=* | --program-transform-=* \
990 | --program-transform=* | --program-transfor=* \
991 | --program-transfo=* | --program-transf=* \
992 | --program-trans=* | --program-tran=* \
993 | --progr-tra=* | --program-tr=* | --program-t=*)
994 program_transform_name=$ac_optarg ;;
996 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
997 ac_prev=pdfdir ;;
998 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
999 pdfdir=$ac_optarg ;;
1001 -psdir | --psdir | --psdi | --psd | --ps)
1002 ac_prev=psdir ;;
1003 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1004 psdir=$ac_optarg ;;
1006 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1007 | -silent | --silent | --silen | --sile | --sil)
1008 silent=yes ;;
1010 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1011 ac_prev=sbindir ;;
1012 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1013 | --sbi=* | --sb=*)
1014 sbindir=$ac_optarg ;;
1016 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1017 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1018 | --sharedst | --shareds | --shared | --share | --shar \
1019 | --sha | --sh)
1020 ac_prev=sharedstatedir ;;
1021 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1022 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1023 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1024 | --sha=* | --sh=*)
1025 sharedstatedir=$ac_optarg ;;
1027 -site | --site | --sit)
1028 ac_prev=site ;;
1029 -site=* | --site=* | --sit=*)
1030 site=$ac_optarg ;;
1032 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1033 ac_prev=srcdir ;;
1034 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1035 srcdir=$ac_optarg ;;
1037 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1038 | --syscon | --sysco | --sysc | --sys | --sy)
1039 ac_prev=sysconfdir ;;
1040 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1041 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1042 sysconfdir=$ac_optarg ;;
1044 -target | --target | --targe | --targ | --tar | --ta | --t)
1045 ac_prev=target_alias ;;
1046 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1047 target_alias=$ac_optarg ;;
1049 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1050 verbose=yes ;;
1052 -version | --version | --versio | --versi | --vers | -V)
1053 ac_init_version=: ;;
1055 -with-* | --with-*)
1056 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1057 # Reject names that are not valid shell variable names.
1058 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1059 as_fn_error $? "invalid package name: $ac_useropt"
1060 ac_useropt_orig=$ac_useropt
1061 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1062 case $ac_user_opts in
1064 "with_$ac_useropt"
1065 "*) ;;
1066 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1067 ac_unrecognized_sep=', ';;
1068 esac
1069 eval with_$ac_useropt=\$ac_optarg ;;
1071 -without-* | --without-*)
1072 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1075 as_fn_error $? "invalid package name: $ac_useropt"
1076 ac_useropt_orig=$ac_useropt
1077 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1078 case $ac_user_opts in
1080 "with_$ac_useropt"
1081 "*) ;;
1082 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1083 ac_unrecognized_sep=', ';;
1084 esac
1085 eval with_$ac_useropt=no ;;
1087 --x)
1088 # Obsolete; use --with-x.
1089 with_x=yes ;;
1091 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1092 | --x-incl | --x-inc | --x-in | --x-i)
1093 ac_prev=x_includes ;;
1094 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1095 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1096 x_includes=$ac_optarg ;;
1098 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1099 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1100 ac_prev=x_libraries ;;
1101 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1102 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1103 x_libraries=$ac_optarg ;;
1105 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1106 Try \`$0 --help' for more information"
1109 *=*)
1110 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1111 # Reject names that are not valid shell variable names.
1112 case $ac_envvar in #(
1113 '' | [0-9]* | *[!_$as_cr_alnum]* )
1114 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1115 esac
1116 eval $ac_envvar=\$ac_optarg
1117 export $ac_envvar ;;
1120 # FIXME: should be removed in autoconf 3.0.
1121 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1122 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1123 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1124 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1127 esac
1128 done
1130 if test -n "$ac_prev"; then
1131 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1132 as_fn_error $? "missing argument to $ac_option"
1135 if test -n "$ac_unrecognized_opts"; then
1136 case $enable_option_checking in
1137 no) ;;
1138 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1139 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1140 esac
1143 # Check all directory arguments for consistency.
1144 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1145 datadir sysconfdir sharedstatedir localstatedir includedir \
1146 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1147 libdir localedir mandir
1149 eval ac_val=\$$ac_var
1150 # Remove trailing slashes.
1151 case $ac_val in
1152 */ )
1153 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1154 eval $ac_var=\$ac_val;;
1155 esac
1156 # Be sure to have absolute directory names.
1157 case $ac_val in
1158 [\\/$]* | ?:[\\/]* ) continue;;
1159 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1160 esac
1161 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1162 done
1164 # There might be people who depend on the old broken behavior: `$host'
1165 # used to hold the argument of --host etc.
1166 # FIXME: To remove some day.
1167 build=$build_alias
1168 host=$host_alias
1169 target=$target_alias
1171 # FIXME: To remove some day.
1172 if test "x$host_alias" != x; then
1173 if test "x$build_alias" = x; then
1174 cross_compiling=maybe
1175 elif test "x$build_alias" != "x$host_alias"; then
1176 cross_compiling=yes
1180 ac_tool_prefix=
1181 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1183 test "$silent" = yes && exec 6>/dev/null
1186 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1187 ac_ls_di=`ls -di .` &&
1188 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1189 as_fn_error $? "working directory cannot be determined"
1190 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1191 as_fn_error $? "pwd does not report name of working directory"
1194 # Find the source files, if location was not specified.
1195 if test -z "$srcdir"; then
1196 ac_srcdir_defaulted=yes
1197 # Try the directory containing this script, then the parent directory.
1198 ac_confdir=`$as_dirname -- "$as_myself" ||
1199 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1200 X"$as_myself" : 'X\(//\)[^/]' \| \
1201 X"$as_myself" : 'X\(//\)$' \| \
1202 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1203 $as_echo X"$as_myself" |
1204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1205 s//\1/
1208 /^X\(\/\/\)[^/].*/{
1209 s//\1/
1212 /^X\(\/\/\)$/{
1213 s//\1/
1216 /^X\(\/\).*/{
1217 s//\1/
1220 s/.*/./; q'`
1221 srcdir=$ac_confdir
1222 if test ! -r "$srcdir/$ac_unique_file"; then
1223 srcdir=..
1225 else
1226 ac_srcdir_defaulted=no
1228 if test ! -r "$srcdir/$ac_unique_file"; then
1229 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1230 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1232 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1233 ac_abs_confdir=`(
1234 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1235 pwd)`
1236 # When building in place, set srcdir=.
1237 if test "$ac_abs_confdir" = "$ac_pwd"; then
1238 srcdir=.
1240 # Remove unnecessary trailing slashes from srcdir.
1241 # Double slashes in file names in object file debugging info
1242 # mess up M-x gdb in Emacs.
1243 case $srcdir in
1244 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1245 esac
1246 for ac_var in $ac_precious_vars; do
1247 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1248 eval ac_env_${ac_var}_value=\$${ac_var}
1249 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1250 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1251 done
1254 # Report the --help message.
1256 if test "$ac_init_help" = "long"; then
1257 # Omit some internal or obsolete options to make the list less imposing.
1258 # This message is too long to be a string in the A/UX 3.1 sh.
1259 cat <<_ACEOF
1260 \`configure' configures this package to adapt to many kinds of systems.
1262 Usage: $0 [OPTION]... [VAR=VALUE]...
1264 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1265 VAR=VALUE. See below for descriptions of some of the useful variables.
1267 Defaults for the options are specified in brackets.
1269 Configuration:
1270 -h, --help display this help and exit
1271 --help=short display options specific to this package
1272 --help=recursive display the short help of all the included packages
1273 -V, --version display version information and exit
1274 -q, --quiet, --silent do not print \`checking ...' messages
1275 --cache-file=FILE cache test results in FILE [disabled]
1276 -C, --config-cache alias for \`--cache-file=config.cache'
1277 -n, --no-create do not create output files
1278 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1280 Installation directories:
1281 --prefix=PREFIX install architecture-independent files in PREFIX
1282 [$ac_default_prefix]
1283 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1284 [PREFIX]
1286 By default, \`make install' will install all the files in
1287 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1288 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1289 for instance \`--prefix=\$HOME'.
1291 For better control, use the options below.
1293 Fine tuning of the installation directories:
1294 --bindir=DIR user executables [EPREFIX/bin]
1295 --sbindir=DIR system admin executables [EPREFIX/sbin]
1296 --libexecdir=DIR program executables [EPREFIX/libexec]
1297 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1298 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1299 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1300 --libdir=DIR object code libraries [EPREFIX/lib]
1301 --includedir=DIR C header files [PREFIX/include]
1302 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1303 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1304 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1305 --infodir=DIR info documentation [DATAROOTDIR/info]
1306 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1307 --mandir=DIR man documentation [DATAROOTDIR/man]
1308 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1309 --htmldir=DIR html documentation [DOCDIR]
1310 --dvidir=DIR dvi documentation [DOCDIR]
1311 --pdfdir=DIR pdf documentation [DOCDIR]
1312 --psdir=DIR ps documentation [DOCDIR]
1313 _ACEOF
1315 cat <<\_ACEOF
1317 System types:
1318 --build=BUILD configure for building on BUILD [guessed]
1319 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1320 _ACEOF
1323 if test -n "$ac_init_help"; then
1325 cat <<\_ACEOF
1327 Optional Features:
1328 --disable-option-checking ignore unrecognized --enable/--with options
1329 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1330 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1331 --disable-largefile omit support for large files
1332 --disable-zlib Don't include zlib support
1333 --enable-pam Try to include PAM support
1334 --disable-openpty Don't use openpty, use alternative method
1335 --disable-syslog Don't include syslog support
1336 --disable-shadow Don't use shadow passwords (if available)
1337 --enable-bundled-libtom Force using bundled libtomcrypt/libtommath even if a system version exists.
1338 --disable-bundled-libtom Force using system libtomcrypt/libtommath, fail if it does not exist.
1339 Default is to use system if available, otherwise bundled.
1340 --disable-lastlog Disable use of lastlog even if detected no
1341 --disable-utmp Disable use of utmp even if detected no
1342 --disable-utmpx Disable use of utmpx even if detected no
1343 --disable-wtmp Disable use of wtmp even if detected no
1344 --disable-wtmpx Disable use of wtmpx even if detected no
1345 --disable-loginfunc Disable use of login() etc. no
1346 --disable-pututline Disable use of pututline() etc. (uwtmp) no
1347 --disable-pututxline Disable use of pututxline() etc. (uwtmpx) no
1349 Optional Packages:
1350 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1351 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1352 --with-zlib=PATH Use zlib in PATH
1353 --with-pam=PATH Use pam in PATH
1354 --with-lastlog=FILE|DIR specify lastlog location common locations
1356 Some influential environment variables:
1357 CC C compiler command
1358 CFLAGS C compiler flags
1359 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1360 nonstandard directory <lib dir>
1361 LIBS libraries to pass to the linker, e.g. -l<library>
1362 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1363 you have headers in a nonstandard directory <include dir>
1364 CPP C preprocessor
1366 Use these variables to override the choices made by `configure' or to help
1367 it to find libraries and programs with nonstandard names/locations.
1369 Report bugs to the package provider.
1370 _ACEOF
1371 ac_status=$?
1374 if test "$ac_init_help" = "recursive"; then
1375 # If there are subdirs, report their specific --help.
1376 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1377 test -d "$ac_dir" ||
1378 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1379 continue
1380 ac_builddir=.
1382 case "$ac_dir" in
1383 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1385 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1386 # A ".." for each directory in $ac_dir_suffix.
1387 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1388 case $ac_top_builddir_sub in
1389 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1390 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1391 esac ;;
1392 esac
1393 ac_abs_top_builddir=$ac_pwd
1394 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1395 # for backward compatibility:
1396 ac_top_builddir=$ac_top_build_prefix
1398 case $srcdir in
1399 .) # We are building in place.
1400 ac_srcdir=.
1401 ac_top_srcdir=$ac_top_builddir_sub
1402 ac_abs_top_srcdir=$ac_pwd ;;
1403 [\\/]* | ?:[\\/]* ) # Absolute name.
1404 ac_srcdir=$srcdir$ac_dir_suffix;
1405 ac_top_srcdir=$srcdir
1406 ac_abs_top_srcdir=$srcdir ;;
1407 *) # Relative name.
1408 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1409 ac_top_srcdir=$ac_top_build_prefix$srcdir
1410 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1411 esac
1412 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1414 cd "$ac_dir" || { ac_status=$?; continue; }
1415 # Check for guested configure.
1416 if test -f "$ac_srcdir/configure.gnu"; then
1417 echo &&
1418 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1419 elif test -f "$ac_srcdir/configure"; then
1420 echo &&
1421 $SHELL "$ac_srcdir/configure" --help=recursive
1422 else
1423 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1424 fi || ac_status=$?
1425 cd "$ac_pwd" || { ac_status=$?; break; }
1426 done
1429 test -n "$ac_init_help" && exit $ac_status
1430 if $ac_init_version; then
1431 cat <<\_ACEOF
1432 configure
1433 generated by GNU Autoconf 2.69
1435 Copyright (C) 2012 Free Software Foundation, Inc.
1436 This configure script is free software; the Free Software Foundation
1437 gives unlimited permission to copy, distribute and modify it.
1438 _ACEOF
1439 exit
1442 ## ------------------------ ##
1443 ## Autoconf initialization. ##
1444 ## ------------------------ ##
1446 # ac_fn_c_try_compile LINENO
1447 # --------------------------
1448 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1449 ac_fn_c_try_compile ()
1451 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1452 rm -f conftest.$ac_objext
1453 if { { ac_try="$ac_compile"
1454 case "(($ac_try" in
1455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1456 *) ac_try_echo=$ac_try;;
1457 esac
1458 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1459 $as_echo "$ac_try_echo"; } >&5
1460 (eval "$ac_compile") 2>conftest.err
1461 ac_status=$?
1462 if test -s conftest.err; then
1463 grep -v '^ *+' conftest.err >conftest.er1
1464 cat conftest.er1 >&5
1465 mv -f conftest.er1 conftest.err
1467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1468 test $ac_status = 0; } && {
1469 test -z "$ac_c_werror_flag" ||
1470 test ! -s conftest.err
1471 } && test -s conftest.$ac_objext; then :
1472 ac_retval=0
1473 else
1474 $as_echo "$as_me: failed program was:" >&5
1475 sed 's/^/| /' conftest.$ac_ext >&5
1477 ac_retval=1
1479 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1480 as_fn_set_status $ac_retval
1482 } # ac_fn_c_try_compile
1484 # ac_fn_c_try_link LINENO
1485 # -----------------------
1486 # Try to link conftest.$ac_ext, and return whether this succeeded.
1487 ac_fn_c_try_link ()
1489 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1490 rm -f conftest.$ac_objext conftest$ac_exeext
1491 if { { ac_try="$ac_link"
1492 case "(($ac_try" in
1493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1494 *) ac_try_echo=$ac_try;;
1495 esac
1496 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1497 $as_echo "$ac_try_echo"; } >&5
1498 (eval "$ac_link") 2>conftest.err
1499 ac_status=$?
1500 if test -s conftest.err; then
1501 grep -v '^ *+' conftest.err >conftest.er1
1502 cat conftest.er1 >&5
1503 mv -f conftest.er1 conftest.err
1505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1506 test $ac_status = 0; } && {
1507 test -z "$ac_c_werror_flag" ||
1508 test ! -s conftest.err
1509 } && test -s conftest$ac_exeext && {
1510 test "$cross_compiling" = yes ||
1511 test -x conftest$ac_exeext
1512 }; then :
1513 ac_retval=0
1514 else
1515 $as_echo "$as_me: failed program was:" >&5
1516 sed 's/^/| /' conftest.$ac_ext >&5
1518 ac_retval=1
1520 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1521 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1522 # interfere with the next link command; also delete a directory that is
1523 # left behind by Apple's compiler. We do this before executing the actions.
1524 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1525 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1526 as_fn_set_status $ac_retval
1528 } # ac_fn_c_try_link
1530 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1531 # ---------------------------------------------
1532 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1533 # accordingly.
1534 ac_fn_c_check_decl ()
1536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1537 as_decl_name=`echo $2|sed 's/ *(.*//'`
1538 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1540 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1541 if eval \${$3+:} false; then :
1542 $as_echo_n "(cached) " >&6
1543 else
1544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1545 /* end confdefs.h. */
1548 main ()
1550 #ifndef $as_decl_name
1551 #ifdef __cplusplus
1552 (void) $as_decl_use;
1553 #else
1554 (void) $as_decl_name;
1555 #endif
1556 #endif
1559 return 0;
1561 _ACEOF
1562 if ac_fn_c_try_compile "$LINENO"; then :
1563 eval "$3=yes"
1564 else
1565 eval "$3=no"
1567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1569 eval ac_res=\$$3
1570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1571 $as_echo "$ac_res" >&6; }
1572 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1574 } # ac_fn_c_check_decl
1576 # ac_fn_c_try_cpp LINENO
1577 # ----------------------
1578 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1579 ac_fn_c_try_cpp ()
1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582 if { { ac_try="$ac_cpp conftest.$ac_ext"
1583 case "(($ac_try" in
1584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1585 *) ac_try_echo=$ac_try;;
1586 esac
1587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588 $as_echo "$ac_try_echo"; } >&5
1589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1590 ac_status=$?
1591 if test -s conftest.err; then
1592 grep -v '^ *+' conftest.err >conftest.er1
1593 cat conftest.er1 >&5
1594 mv -f conftest.er1 conftest.err
1596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1597 test $ac_status = 0; } > conftest.i && {
1598 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1599 test ! -s conftest.err
1600 }; then :
1601 ac_retval=0
1602 else
1603 $as_echo "$as_me: failed program was:" >&5
1604 sed 's/^/| /' conftest.$ac_ext >&5
1606 ac_retval=1
1608 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1609 as_fn_set_status $ac_retval
1611 } # ac_fn_c_try_cpp
1613 # ac_fn_c_try_run LINENO
1614 # ----------------------
1615 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1616 # that executables *can* be run.
1617 ac_fn_c_try_run ()
1619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620 if { { ac_try="$ac_link"
1621 case "(($ac_try" in
1622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623 *) ac_try_echo=$ac_try;;
1624 esac
1625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626 $as_echo "$ac_try_echo"; } >&5
1627 (eval "$ac_link") 2>&5
1628 ac_status=$?
1629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1631 { { case "(($ac_try" in
1632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633 *) ac_try_echo=$ac_try;;
1634 esac
1635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636 $as_echo "$ac_try_echo"; } >&5
1637 (eval "$ac_try") 2>&5
1638 ac_status=$?
1639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640 test $ac_status = 0; }; }; then :
1641 ac_retval=0
1642 else
1643 $as_echo "$as_me: program exited with status $ac_status" >&5
1644 $as_echo "$as_me: failed program was:" >&5
1645 sed 's/^/| /' conftest.$ac_ext >&5
1647 ac_retval=$ac_status
1649 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651 as_fn_set_status $ac_retval
1653 } # ac_fn_c_try_run
1655 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1656 # -------------------------------------------------------
1657 # Tests whether HEADER exists and can be compiled using the include files in
1658 # INCLUDES, setting the cache variable VAR accordingly.
1659 ac_fn_c_check_header_compile ()
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1663 $as_echo_n "checking for $2... " >&6; }
1664 if eval \${$3+:} false; then :
1665 $as_echo_n "(cached) " >&6
1666 else
1667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1668 /* end confdefs.h. */
1670 #include <$2>
1671 _ACEOF
1672 if ac_fn_c_try_compile "$LINENO"; then :
1673 eval "$3=yes"
1674 else
1675 eval "$3=no"
1677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1679 eval ac_res=\$$3
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1681 $as_echo "$ac_res" >&6; }
1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684 } # ac_fn_c_check_header_compile
1686 # ac_fn_c_check_func LINENO FUNC VAR
1687 # ----------------------------------
1688 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1689 ac_fn_c_check_func ()
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1693 $as_echo_n "checking for $2... " >&6; }
1694 if eval \${$3+:} false; then :
1695 $as_echo_n "(cached) " >&6
1696 else
1697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1698 /* end confdefs.h. */
1699 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1700 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1701 #define $2 innocuous_$2
1703 /* System header to define __stub macros and hopefully few prototypes,
1704 which can conflict with char $2 (); below.
1705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1706 <limits.h> exists even on freestanding compilers. */
1708 #ifdef __STDC__
1709 # include <limits.h>
1710 #else
1711 # include <assert.h>
1712 #endif
1714 #undef $2
1716 /* Override any GCC internal prototype to avoid an error.
1717 Use char because int might match the return type of a GCC
1718 builtin and then its argument prototype would still apply. */
1719 #ifdef __cplusplus
1720 extern "C"
1721 #endif
1722 char $2 ();
1723 /* The GNU C library defines this for functions which it implements
1724 to always fail with ENOSYS. Some functions are actually named
1725 something starting with __ and the normal name is an alias. */
1726 #if defined __stub_$2 || defined __stub___$2
1727 choke me
1728 #endif
1731 main ()
1733 return $2 ();
1735 return 0;
1737 _ACEOF
1738 if ac_fn_c_try_link "$LINENO"; then :
1739 eval "$3=yes"
1740 else
1741 eval "$3=no"
1743 rm -f core conftest.err conftest.$ac_objext \
1744 conftest$ac_exeext conftest.$ac_ext
1746 eval ac_res=\$$3
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1748 $as_echo "$ac_res" >&6; }
1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751 } # ac_fn_c_check_func
1753 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1754 # -------------------------------------------------------
1755 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1756 # the include files in INCLUDES and setting the cache variable VAR
1757 # accordingly.
1758 ac_fn_c_check_header_mongrel ()
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 if eval \${$3+:} false; then :
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1763 $as_echo_n "checking for $2... " >&6; }
1764 if eval \${$3+:} false; then :
1765 $as_echo_n "(cached) " >&6
1767 eval ac_res=\$$3
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1769 $as_echo "$ac_res" >&6; }
1770 else
1771 # Is the header compilable?
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1773 $as_echo_n "checking $2 usability... " >&6; }
1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775 /* end confdefs.h. */
1777 #include <$2>
1778 _ACEOF
1779 if ac_fn_c_try_compile "$LINENO"; then :
1780 ac_header_compiler=yes
1781 else
1782 ac_header_compiler=no
1784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1786 $as_echo "$ac_header_compiler" >&6; }
1788 # Is the header present?
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1790 $as_echo_n "checking $2 presence... " >&6; }
1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792 /* end confdefs.h. */
1793 #include <$2>
1794 _ACEOF
1795 if ac_fn_c_try_cpp "$LINENO"; then :
1796 ac_header_preproc=yes
1797 else
1798 ac_header_preproc=no
1800 rm -f conftest.err conftest.i conftest.$ac_ext
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1802 $as_echo "$ac_header_preproc" >&6; }
1804 # So? What about this header?
1805 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1806 yes:no: )
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1808 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1810 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1812 no:yes:* )
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1814 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1816 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1818 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1820 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1822 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1824 esac
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1826 $as_echo_n "checking for $2... " >&6; }
1827 if eval \${$3+:} false; then :
1828 $as_echo_n "(cached) " >&6
1829 else
1830 eval "$3=\$ac_header_compiler"
1832 eval ac_res=\$$3
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1834 $as_echo "$ac_res" >&6; }
1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838 } # ac_fn_c_check_header_mongrel
1840 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1841 # -------------------------------------------
1842 # Tests whether TYPE exists after having included INCLUDES, setting cache
1843 # variable VAR accordingly.
1844 ac_fn_c_check_type ()
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848 $as_echo_n "checking for $2... " >&6; }
1849 if eval \${$3+:} false; then :
1850 $as_echo_n "(cached) " >&6
1851 else
1852 eval "$3=no"
1853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1854 /* end confdefs.h. */
1857 main ()
1859 if (sizeof ($2))
1860 return 0;
1862 return 0;
1864 _ACEOF
1865 if ac_fn_c_try_compile "$LINENO"; then :
1866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867 /* end confdefs.h. */
1870 main ()
1872 if (sizeof (($2)))
1873 return 0;
1875 return 0;
1877 _ACEOF
1878 if ac_fn_c_try_compile "$LINENO"; then :
1880 else
1881 eval "$3=yes"
1883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1887 eval ac_res=\$$3
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889 $as_echo "$ac_res" >&6; }
1890 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1892 } # ac_fn_c_check_type
1894 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1895 # ----------------------------------------------------
1896 # Tries to find if the field MEMBER exists in type AGGR, after including
1897 # INCLUDES, setting cache variable VAR accordingly.
1898 ac_fn_c_check_member ()
1900 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1902 $as_echo_n "checking for $2.$3... " >&6; }
1903 if eval \${$4+:} false; then :
1904 $as_echo_n "(cached) " >&6
1905 else
1906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907 /* end confdefs.h. */
1910 main ()
1912 static $2 ac_aggr;
1913 if (ac_aggr.$3)
1914 return 0;
1916 return 0;
1918 _ACEOF
1919 if ac_fn_c_try_compile "$LINENO"; then :
1920 eval "$4=yes"
1921 else
1922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923 /* end confdefs.h. */
1926 main ()
1928 static $2 ac_aggr;
1929 if (sizeof ac_aggr.$3)
1930 return 0;
1932 return 0;
1934 _ACEOF
1935 if ac_fn_c_try_compile "$LINENO"; then :
1936 eval "$4=yes"
1937 else
1938 eval "$4=no"
1940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1944 eval ac_res=\$$4
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1946 $as_echo "$ac_res" >&6; }
1947 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1949 } # ac_fn_c_check_member
1950 cat >config.log <<_ACEOF
1951 This file contains any messages produced by compilers while
1952 running configure, to aid debugging if configure makes a mistake.
1954 It was created by $as_me, which was
1955 generated by GNU Autoconf 2.69. Invocation command line was
1957 $ $0 $@
1959 _ACEOF
1960 exec 5>>config.log
1962 cat <<_ASUNAME
1963 ## --------- ##
1964 ## Platform. ##
1965 ## --------- ##
1967 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1968 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1969 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1970 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1971 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1973 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1974 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1976 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1977 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1978 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1979 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1980 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1981 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1982 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1984 _ASUNAME
1986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1987 for as_dir in $PATH
1989 IFS=$as_save_IFS
1990 test -z "$as_dir" && as_dir=.
1991 $as_echo "PATH: $as_dir"
1992 done
1993 IFS=$as_save_IFS
1995 } >&5
1997 cat >&5 <<_ACEOF
2000 ## ----------- ##
2001 ## Core tests. ##
2002 ## ----------- ##
2004 _ACEOF
2007 # Keep a trace of the command line.
2008 # Strip out --no-create and --no-recursion so they do not pile up.
2009 # Strip out --silent because we don't want to record it for future runs.
2010 # Also quote any args containing shell meta-characters.
2011 # Make two passes to allow for proper duplicate-argument suppression.
2012 ac_configure_args=
2013 ac_configure_args0=
2014 ac_configure_args1=
2015 ac_must_keep_next=false
2016 for ac_pass in 1 2
2018 for ac_arg
2020 case $ac_arg in
2021 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2022 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2023 | -silent | --silent | --silen | --sile | --sil)
2024 continue ;;
2025 *\'*)
2026 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2027 esac
2028 case $ac_pass in
2029 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2031 as_fn_append ac_configure_args1 " '$ac_arg'"
2032 if test $ac_must_keep_next = true; then
2033 ac_must_keep_next=false # Got value, back to normal.
2034 else
2035 case $ac_arg in
2036 *=* | --config-cache | -C | -disable-* | --disable-* \
2037 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2038 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2039 | -with-* | --with-* | -without-* | --without-* | --x)
2040 case "$ac_configure_args0 " in
2041 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2042 esac
2044 -* ) ac_must_keep_next=true ;;
2045 esac
2047 as_fn_append ac_configure_args " '$ac_arg'"
2049 esac
2050 done
2051 done
2052 { ac_configure_args0=; unset ac_configure_args0;}
2053 { ac_configure_args1=; unset ac_configure_args1;}
2055 # When interrupted or exit'd, cleanup temporary files, and complete
2056 # config.log. We remove comments because anyway the quotes in there
2057 # would cause problems or look ugly.
2058 # WARNING: Use '\'' to represent an apostrophe within the trap.
2059 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2060 trap 'exit_status=$?
2061 # Save into config.log some information that might help in debugging.
2063 echo
2065 $as_echo "## ---------------- ##
2066 ## Cache variables. ##
2067 ## ---------------- ##"
2068 echo
2069 # The following way of writing the cache mishandles newlines in values,
2071 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2072 eval ac_val=\$$ac_var
2073 case $ac_val in #(
2074 *${as_nl}*)
2075 case $ac_var in #(
2076 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2077 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2078 esac
2079 case $ac_var in #(
2080 _ | IFS | as_nl) ;; #(
2081 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2082 *) { eval $ac_var=; unset $ac_var;} ;;
2083 esac ;;
2084 esac
2085 done
2086 (set) 2>&1 |
2087 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2088 *${as_nl}ac_space=\ *)
2089 sed -n \
2090 "s/'\''/'\''\\\\'\'''\''/g;
2091 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2092 ;; #(
2094 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2096 esac |
2097 sort
2099 echo
2101 $as_echo "## ----------------- ##
2102 ## Output variables. ##
2103 ## ----------------- ##"
2104 echo
2105 for ac_var in $ac_subst_vars
2107 eval ac_val=\$$ac_var
2108 case $ac_val in
2109 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2110 esac
2111 $as_echo "$ac_var='\''$ac_val'\''"
2112 done | sort
2113 echo
2115 if test -n "$ac_subst_files"; then
2116 $as_echo "## ------------------- ##
2117 ## File substitutions. ##
2118 ## ------------------- ##"
2119 echo
2120 for ac_var in $ac_subst_files
2122 eval ac_val=\$$ac_var
2123 case $ac_val in
2124 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2125 esac
2126 $as_echo "$ac_var='\''$ac_val'\''"
2127 done | sort
2128 echo
2131 if test -s confdefs.h; then
2132 $as_echo "## ----------- ##
2133 ## confdefs.h. ##
2134 ## ----------- ##"
2135 echo
2136 cat confdefs.h
2137 echo
2139 test "$ac_signal" != 0 &&
2140 $as_echo "$as_me: caught signal $ac_signal"
2141 $as_echo "$as_me: exit $exit_status"
2142 } >&5
2143 rm -f core *.core core.conftest.* &&
2144 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2145 exit $exit_status
2147 for ac_signal in 1 2 13 15; do
2148 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2149 done
2150 ac_signal=0
2152 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2153 rm -f -r conftest* confdefs.h
2155 $as_echo "/* confdefs.h */" > confdefs.h
2157 # Predefined preprocessor variables.
2159 cat >>confdefs.h <<_ACEOF
2160 #define PACKAGE_NAME "$PACKAGE_NAME"
2161 _ACEOF
2163 cat >>confdefs.h <<_ACEOF
2164 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2165 _ACEOF
2167 cat >>confdefs.h <<_ACEOF
2168 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2169 _ACEOF
2171 cat >>confdefs.h <<_ACEOF
2172 #define PACKAGE_STRING "$PACKAGE_STRING"
2173 _ACEOF
2175 cat >>confdefs.h <<_ACEOF
2176 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2177 _ACEOF
2179 cat >>confdefs.h <<_ACEOF
2180 #define PACKAGE_URL "$PACKAGE_URL"
2181 _ACEOF
2184 # Let the site file select an alternate cache file if it wants to.
2185 # Prefer an explicitly selected file to automatically selected ones.
2186 ac_site_file1=NONE
2187 ac_site_file2=NONE
2188 if test -n "$CONFIG_SITE"; then
2189 # We do not want a PATH search for config.site.
2190 case $CONFIG_SITE in #((
2191 -*) ac_site_file1=./$CONFIG_SITE;;
2192 */*) ac_site_file1=$CONFIG_SITE;;
2193 *) ac_site_file1=./$CONFIG_SITE;;
2194 esac
2195 elif test "x$prefix" != xNONE; then
2196 ac_site_file1=$prefix/share/config.site
2197 ac_site_file2=$prefix/etc/config.site
2198 else
2199 ac_site_file1=$ac_default_prefix/share/config.site
2200 ac_site_file2=$ac_default_prefix/etc/config.site
2202 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2204 test "x$ac_site_file" = xNONE && continue
2205 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2207 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2208 sed 's/^/| /' "$ac_site_file" >&5
2209 . "$ac_site_file" \
2210 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2211 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2212 as_fn_error $? "failed to load site script $ac_site_file
2213 See \`config.log' for more details" "$LINENO" 5; }
2215 done
2217 if test -r "$cache_file"; then
2218 # Some versions of bash will fail to source /dev/null (special files
2219 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2220 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2222 $as_echo "$as_me: loading cache $cache_file" >&6;}
2223 case $cache_file in
2224 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2225 *) . "./$cache_file";;
2226 esac
2228 else
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2230 $as_echo "$as_me: creating cache $cache_file" >&6;}
2231 >$cache_file
2234 # Check that the precious variables saved in the cache have kept the same
2235 # value.
2236 ac_cache_corrupted=false
2237 for ac_var in $ac_precious_vars; do
2238 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2239 eval ac_new_set=\$ac_env_${ac_var}_set
2240 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2241 eval ac_new_val=\$ac_env_${ac_var}_value
2242 case $ac_old_set,$ac_new_set in
2243 set,)
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2245 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2246 ac_cache_corrupted=: ;;
2247 ,set)
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2249 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2250 ac_cache_corrupted=: ;;
2251 ,);;
2253 if test "x$ac_old_val" != "x$ac_new_val"; then
2254 # differences in whitespace do not lead to failure.
2255 ac_old_val_w=`echo x $ac_old_val`
2256 ac_new_val_w=`echo x $ac_new_val`
2257 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2259 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2260 ac_cache_corrupted=:
2261 else
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2263 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2264 eval $ac_var=\$ac_old_val
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2267 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2269 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2270 fi;;
2271 esac
2272 # Pass precious variables to config.status.
2273 if test "$ac_new_set" = set; then
2274 case $ac_new_val in
2275 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2276 *) ac_arg=$ac_var=$ac_new_val ;;
2277 esac
2278 case " $ac_configure_args " in
2279 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2280 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2281 esac
2283 done
2284 if $ac_cache_corrupted; then
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2286 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2288 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2289 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2291 ## -------------------- ##
2292 ## Main body of script. ##
2293 ## -------------------- ##
2295 ac_ext=c
2296 ac_cpp='$CPP $CPPFLAGS'
2297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2304 OLDCFLAGS=$CFLAGS
2305 # Checks for programs.
2306 ac_ext=c
2307 ac_cpp='$CPP $CPPFLAGS'
2308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2311 if test -n "$ac_tool_prefix"; then
2312 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2313 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2315 $as_echo_n "checking for $ac_word... " >&6; }
2316 if ${ac_cv_prog_CC+:} false; then :
2317 $as_echo_n "(cached) " >&6
2318 else
2319 if test -n "$CC"; then
2320 ac_cv_prog_CC="$CC" # Let the user override the test.
2321 else
2322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2323 for as_dir in $PATH
2325 IFS=$as_save_IFS
2326 test -z "$as_dir" && as_dir=.
2327 for ac_exec_ext in '' $ac_executable_extensions; do
2328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2329 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2331 break 2
2333 done
2334 done
2335 IFS=$as_save_IFS
2339 CC=$ac_cv_prog_CC
2340 if test -n "$CC"; then
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2342 $as_echo "$CC" >&6; }
2343 else
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2345 $as_echo "no" >&6; }
2350 if test -z "$ac_cv_prog_CC"; then
2351 ac_ct_CC=$CC
2352 # Extract the first word of "gcc", so it can be a program name with args.
2353 set dummy gcc; ac_word=$2
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2355 $as_echo_n "checking for $ac_word... " >&6; }
2356 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2357 $as_echo_n "(cached) " >&6
2358 else
2359 if test -n "$ac_ct_CC"; then
2360 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2361 else
2362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2363 for as_dir in $PATH
2365 IFS=$as_save_IFS
2366 test -z "$as_dir" && as_dir=.
2367 for ac_exec_ext in '' $ac_executable_extensions; do
2368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2369 ac_cv_prog_ac_ct_CC="gcc"
2370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2371 break 2
2373 done
2374 done
2375 IFS=$as_save_IFS
2379 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2380 if test -n "$ac_ct_CC"; then
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2382 $as_echo "$ac_ct_CC" >&6; }
2383 else
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2385 $as_echo "no" >&6; }
2388 if test "x$ac_ct_CC" = x; then
2389 CC=""
2390 else
2391 case $cross_compiling:$ac_tool_warned in
2392 yes:)
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2394 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2395 ac_tool_warned=yes ;;
2396 esac
2397 CC=$ac_ct_CC
2399 else
2400 CC="$ac_cv_prog_CC"
2403 if test -z "$CC"; then
2404 if test -n "$ac_tool_prefix"; then
2405 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2406 set dummy ${ac_tool_prefix}cc; ac_word=$2
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2408 $as_echo_n "checking for $ac_word... " >&6; }
2409 if ${ac_cv_prog_CC+:} false; then :
2410 $as_echo_n "(cached) " >&6
2411 else
2412 if test -n "$CC"; then
2413 ac_cv_prog_CC="$CC" # Let the user override the test.
2414 else
2415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2416 for as_dir in $PATH
2418 IFS=$as_save_IFS
2419 test -z "$as_dir" && as_dir=.
2420 for ac_exec_ext in '' $ac_executable_extensions; do
2421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2422 ac_cv_prog_CC="${ac_tool_prefix}cc"
2423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2424 break 2
2426 done
2427 done
2428 IFS=$as_save_IFS
2432 CC=$ac_cv_prog_CC
2433 if test -n "$CC"; then
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2435 $as_echo "$CC" >&6; }
2436 else
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2438 $as_echo "no" >&6; }
2444 if test -z "$CC"; then
2445 # Extract the first word of "cc", so it can be a program name with args.
2446 set dummy cc; ac_word=$2
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2448 $as_echo_n "checking for $ac_word... " >&6; }
2449 if ${ac_cv_prog_CC+:} false; then :
2450 $as_echo_n "(cached) " >&6
2451 else
2452 if test -n "$CC"; then
2453 ac_cv_prog_CC="$CC" # Let the user override the test.
2454 else
2455 ac_prog_rejected=no
2456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2457 for as_dir in $PATH
2459 IFS=$as_save_IFS
2460 test -z "$as_dir" && as_dir=.
2461 for ac_exec_ext in '' $ac_executable_extensions; do
2462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2463 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2464 ac_prog_rejected=yes
2465 continue
2467 ac_cv_prog_CC="cc"
2468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2469 break 2
2471 done
2472 done
2473 IFS=$as_save_IFS
2475 if test $ac_prog_rejected = yes; then
2476 # We found a bogon in the path, so make sure we never use it.
2477 set dummy $ac_cv_prog_CC
2478 shift
2479 if test $# != 0; then
2480 # We chose a different compiler from the bogus one.
2481 # However, it has the same basename, so the bogon will be chosen
2482 # first if we set CC to just the basename; use the full file name.
2483 shift
2484 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2489 CC=$ac_cv_prog_CC
2490 if test -n "$CC"; then
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2492 $as_echo "$CC" >&6; }
2493 else
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2495 $as_echo "no" >&6; }
2500 if test -z "$CC"; then
2501 if test -n "$ac_tool_prefix"; then
2502 for ac_prog in cl.exe
2504 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2505 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2507 $as_echo_n "checking for $ac_word... " >&6; }
2508 if ${ac_cv_prog_CC+:} false; then :
2509 $as_echo_n "(cached) " >&6
2510 else
2511 if test -n "$CC"; then
2512 ac_cv_prog_CC="$CC" # Let the user override the test.
2513 else
2514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2515 for as_dir in $PATH
2517 IFS=$as_save_IFS
2518 test -z "$as_dir" && as_dir=.
2519 for ac_exec_ext in '' $ac_executable_extensions; do
2520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2521 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2523 break 2
2525 done
2526 done
2527 IFS=$as_save_IFS
2531 CC=$ac_cv_prog_CC
2532 if test -n "$CC"; then
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2534 $as_echo "$CC" >&6; }
2535 else
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2537 $as_echo "no" >&6; }
2541 test -n "$CC" && break
2542 done
2544 if test -z "$CC"; then
2545 ac_ct_CC=$CC
2546 for ac_prog in cl.exe
2548 # Extract the first word of "$ac_prog", so it can be a program name with args.
2549 set dummy $ac_prog; ac_word=$2
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2551 $as_echo_n "checking for $ac_word... " >&6; }
2552 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2553 $as_echo_n "(cached) " >&6
2554 else
2555 if test -n "$ac_ct_CC"; then
2556 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2557 else
2558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2559 for as_dir in $PATH
2561 IFS=$as_save_IFS
2562 test -z "$as_dir" && as_dir=.
2563 for ac_exec_ext in '' $ac_executable_extensions; do
2564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2565 ac_cv_prog_ac_ct_CC="$ac_prog"
2566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2567 break 2
2569 done
2570 done
2571 IFS=$as_save_IFS
2575 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2576 if test -n "$ac_ct_CC"; then
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2578 $as_echo "$ac_ct_CC" >&6; }
2579 else
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2581 $as_echo "no" >&6; }
2585 test -n "$ac_ct_CC" && break
2586 done
2588 if test "x$ac_ct_CC" = x; then
2589 CC=""
2590 else
2591 case $cross_compiling:$ac_tool_warned in
2592 yes:)
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2595 ac_tool_warned=yes ;;
2596 esac
2597 CC=$ac_ct_CC
2604 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2606 as_fn_error $? "no acceptable C compiler found in \$PATH
2607 See \`config.log' for more details" "$LINENO" 5; }
2609 # Provide some information about the compiler.
2610 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2611 set X $ac_compile
2612 ac_compiler=$2
2613 for ac_option in --version -v -V -qversion; do
2614 { { ac_try="$ac_compiler $ac_option >&5"
2615 case "(($ac_try" in
2616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2617 *) ac_try_echo=$ac_try;;
2618 esac
2619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2620 $as_echo "$ac_try_echo"; } >&5
2621 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2622 ac_status=$?
2623 if test -s conftest.err; then
2624 sed '10a\
2625 ... rest of stderr output deleted ...
2626 10q' conftest.err >conftest.er1
2627 cat conftest.er1 >&5
2629 rm -f conftest.er1 conftest.err
2630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2631 test $ac_status = 0; }
2632 done
2634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2635 /* end confdefs.h. */
2638 main ()
2642 return 0;
2644 _ACEOF
2645 ac_clean_files_save=$ac_clean_files
2646 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2647 # Try to create an executable without -o first, disregard a.out.
2648 # It will help us diagnose broken compilers, and finding out an intuition
2649 # of exeext.
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2651 $as_echo_n "checking whether the C compiler works... " >&6; }
2652 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2654 # The possible output files:
2655 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2657 ac_rmfiles=
2658 for ac_file in $ac_files
2660 case $ac_file in
2661 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2662 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2663 esac
2664 done
2665 rm -f $ac_rmfiles
2667 if { { ac_try="$ac_link_default"
2668 case "(($ac_try" in
2669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2670 *) ac_try_echo=$ac_try;;
2671 esac
2672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2673 $as_echo "$ac_try_echo"; } >&5
2674 (eval "$ac_link_default") 2>&5
2675 ac_status=$?
2676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2677 test $ac_status = 0; }; then :
2678 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2679 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2680 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2681 # so that the user can short-circuit this test for compilers unknown to
2682 # Autoconf.
2683 for ac_file in $ac_files ''
2685 test -f "$ac_file" || continue
2686 case $ac_file in
2687 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2689 [ab].out )
2690 # We found the default executable, but exeext='' is most
2691 # certainly right.
2692 break;;
2693 *.* )
2694 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2695 then :; else
2696 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2698 # We set ac_cv_exeext here because the later test for it is not
2699 # safe: cross compilers may not add the suffix if given an `-o'
2700 # argument, so we may need to know it at that point already.
2701 # Even if this section looks crufty: it has the advantage of
2702 # actually working.
2703 break;;
2705 break;;
2706 esac
2707 done
2708 test "$ac_cv_exeext" = no && ac_cv_exeext=
2710 else
2711 ac_file=''
2713 if test -z "$ac_file"; then :
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2715 $as_echo "no" >&6; }
2716 $as_echo "$as_me: failed program was:" >&5
2717 sed 's/^/| /' conftest.$ac_ext >&5
2719 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2721 as_fn_error 77 "C compiler cannot create executables
2722 See \`config.log' for more details" "$LINENO" 5; }
2723 else
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2725 $as_echo "yes" >&6; }
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2728 $as_echo_n "checking for C compiler default output file name... " >&6; }
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2730 $as_echo "$ac_file" >&6; }
2731 ac_exeext=$ac_cv_exeext
2733 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2734 ac_clean_files=$ac_clean_files_save
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2736 $as_echo_n "checking for suffix of executables... " >&6; }
2737 if { { ac_try="$ac_link"
2738 case "(($ac_try" in
2739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2740 *) ac_try_echo=$ac_try;;
2741 esac
2742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2743 $as_echo "$ac_try_echo"; } >&5
2744 (eval "$ac_link") 2>&5
2745 ac_status=$?
2746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2747 test $ac_status = 0; }; then :
2748 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2749 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2750 # work properly (i.e., refer to `conftest.exe'), while it won't with
2751 # `rm'.
2752 for ac_file in conftest.exe conftest conftest.*; do
2753 test -f "$ac_file" || continue
2754 case $ac_file in
2755 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2756 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2757 break;;
2758 * ) break;;
2759 esac
2760 done
2761 else
2762 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2764 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2765 See \`config.log' for more details" "$LINENO" 5; }
2767 rm -f conftest conftest$ac_cv_exeext
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2769 $as_echo "$ac_cv_exeext" >&6; }
2771 rm -f conftest.$ac_ext
2772 EXEEXT=$ac_cv_exeext
2773 ac_exeext=$EXEEXT
2774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2775 /* end confdefs.h. */
2776 #include <stdio.h>
2778 main ()
2780 FILE *f = fopen ("conftest.out", "w");
2781 return ferror (f) || fclose (f) != 0;
2784 return 0;
2786 _ACEOF
2787 ac_clean_files="$ac_clean_files conftest.out"
2788 # Check that the compiler produces executables we can run. If not, either
2789 # the compiler is broken, or we cross compile.
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2791 $as_echo_n "checking whether we are cross compiling... " >&6; }
2792 if test "$cross_compiling" != yes; then
2793 { { ac_try="$ac_link"
2794 case "(($ac_try" in
2795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2796 *) ac_try_echo=$ac_try;;
2797 esac
2798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2799 $as_echo "$ac_try_echo"; } >&5
2800 (eval "$ac_link") 2>&5
2801 ac_status=$?
2802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2803 test $ac_status = 0; }
2804 if { ac_try='./conftest$ac_cv_exeext'
2805 { { case "(($ac_try" in
2806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2807 *) ac_try_echo=$ac_try;;
2808 esac
2809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2810 $as_echo "$ac_try_echo"; } >&5
2811 (eval "$ac_try") 2>&5
2812 ac_status=$?
2813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2814 test $ac_status = 0; }; }; then
2815 cross_compiling=no
2816 else
2817 if test "$cross_compiling" = maybe; then
2818 cross_compiling=yes
2819 else
2820 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2821 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2822 as_fn_error $? "cannot run C compiled programs.
2823 If you meant to cross compile, use \`--host'.
2824 See \`config.log' for more details" "$LINENO" 5; }
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2829 $as_echo "$cross_compiling" >&6; }
2831 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2832 ac_clean_files=$ac_clean_files_save
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2834 $as_echo_n "checking for suffix of object files... " >&6; }
2835 if ${ac_cv_objext+:} false; then :
2836 $as_echo_n "(cached) " >&6
2837 else
2838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2839 /* end confdefs.h. */
2842 main ()
2846 return 0;
2848 _ACEOF
2849 rm -f conftest.o conftest.obj
2850 if { { ac_try="$ac_compile"
2851 case "(($ac_try" in
2852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2853 *) ac_try_echo=$ac_try;;
2854 esac
2855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2856 $as_echo "$ac_try_echo"; } >&5
2857 (eval "$ac_compile") 2>&5
2858 ac_status=$?
2859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2860 test $ac_status = 0; }; then :
2861 for ac_file in conftest.o conftest.obj conftest.*; do
2862 test -f "$ac_file" || continue;
2863 case $ac_file in
2864 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2865 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2866 break;;
2867 esac
2868 done
2869 else
2870 $as_echo "$as_me: failed program was:" >&5
2871 sed 's/^/| /' conftest.$ac_ext >&5
2873 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2874 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2875 as_fn_error $? "cannot compute suffix of object files: cannot compile
2876 See \`config.log' for more details" "$LINENO" 5; }
2878 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2881 $as_echo "$ac_cv_objext" >&6; }
2882 OBJEXT=$ac_cv_objext
2883 ac_objext=$OBJEXT
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2885 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2886 if ${ac_cv_c_compiler_gnu+:} false; then :
2887 $as_echo_n "(cached) " >&6
2888 else
2889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2890 /* end confdefs.h. */
2893 main ()
2895 #ifndef __GNUC__
2896 choke me
2897 #endif
2900 return 0;
2902 _ACEOF
2903 if ac_fn_c_try_compile "$LINENO"; then :
2904 ac_compiler_gnu=yes
2905 else
2906 ac_compiler_gnu=no
2908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2909 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2913 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2914 if test $ac_compiler_gnu = yes; then
2915 GCC=yes
2916 else
2917 GCC=
2919 ac_test_CFLAGS=${CFLAGS+set}
2920 ac_save_CFLAGS=$CFLAGS
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2922 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2923 if ${ac_cv_prog_cc_g+:} false; then :
2924 $as_echo_n "(cached) " >&6
2925 else
2926 ac_save_c_werror_flag=$ac_c_werror_flag
2927 ac_c_werror_flag=yes
2928 ac_cv_prog_cc_g=no
2929 CFLAGS="-g"
2930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2931 /* end confdefs.h. */
2934 main ()
2938 return 0;
2940 _ACEOF
2941 if ac_fn_c_try_compile "$LINENO"; then :
2942 ac_cv_prog_cc_g=yes
2943 else
2944 CFLAGS=""
2945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2946 /* end confdefs.h. */
2949 main ()
2953 return 0;
2955 _ACEOF
2956 if ac_fn_c_try_compile "$LINENO"; then :
2958 else
2959 ac_c_werror_flag=$ac_save_c_werror_flag
2960 CFLAGS="-g"
2961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2962 /* end confdefs.h. */
2965 main ()
2969 return 0;
2971 _ACEOF
2972 if ac_fn_c_try_compile "$LINENO"; then :
2973 ac_cv_prog_cc_g=yes
2975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2980 ac_c_werror_flag=$ac_save_c_werror_flag
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2983 $as_echo "$ac_cv_prog_cc_g" >&6; }
2984 if test "$ac_test_CFLAGS" = set; then
2985 CFLAGS=$ac_save_CFLAGS
2986 elif test $ac_cv_prog_cc_g = yes; then
2987 if test "$GCC" = yes; then
2988 CFLAGS="-g -O2"
2989 else
2990 CFLAGS="-g"
2992 else
2993 if test "$GCC" = yes; then
2994 CFLAGS="-O2"
2995 else
2996 CFLAGS=
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3000 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3001 if ${ac_cv_prog_cc_c89+:} false; then :
3002 $as_echo_n "(cached) " >&6
3003 else
3004 ac_cv_prog_cc_c89=no
3005 ac_save_CC=$CC
3006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3007 /* end confdefs.h. */
3008 #include <stdarg.h>
3009 #include <stdio.h>
3010 struct stat;
3011 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3012 struct buf { int x; };
3013 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3014 static char *e (p, i)
3015 char **p;
3016 int i;
3018 return p[i];
3020 static char *f (char * (*g) (char **, int), char **p, ...)
3022 char *s;
3023 va_list v;
3024 va_start (v,p);
3025 s = g (p, va_arg (v,int));
3026 va_end (v);
3027 return s;
3030 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3031 function prototypes and stuff, but not '\xHH' hex character constants.
3032 These don't provoke an error unfortunately, instead are silently treated
3033 as 'x'. The following induces an error, until -std is added to get
3034 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3035 array size at least. It's necessary to write '\x00'==0 to get something
3036 that's true only with -std. */
3037 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3039 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3040 inside strings and character constants. */
3041 #define FOO(x) 'x'
3042 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3044 int test (int i, double x);
3045 struct s1 {int (*f) (int a);};
3046 struct s2 {int (*f) (double a);};
3047 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3048 int argc;
3049 char **argv;
3051 main ()
3053 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3055 return 0;
3057 _ACEOF
3058 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3059 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3061 CC="$ac_save_CC $ac_arg"
3062 if ac_fn_c_try_compile "$LINENO"; then :
3063 ac_cv_prog_cc_c89=$ac_arg
3065 rm -f core conftest.err conftest.$ac_objext
3066 test "x$ac_cv_prog_cc_c89" != "xno" && break
3067 done
3068 rm -f conftest.$ac_ext
3069 CC=$ac_save_CC
3072 # AC_CACHE_VAL
3073 case "x$ac_cv_prog_cc_c89" in
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3076 $as_echo "none needed" >&6; } ;;
3077 xno)
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3079 $as_echo "unsupported" >&6; } ;;
3081 CC="$CC $ac_cv_prog_cc_c89"
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3083 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3084 esac
3085 if test "x$ac_cv_prog_cc_c89" != xno; then :
3089 ac_ext=c
3090 ac_cpp='$CPP $CPPFLAGS'
3091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3096 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3097 set x ${MAKE-make}
3098 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3099 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3100 $as_echo_n "(cached) " >&6
3101 else
3102 cat >conftest.make <<\_ACEOF
3103 SHELL = /bin/sh
3104 all:
3105 @echo '@@@%%%=$(MAKE)=@@@%%%'
3106 _ACEOF
3107 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3108 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3109 *@@@%%%=?*=@@@%%%*)
3110 eval ac_cv_prog_make_${ac_make}_set=yes;;
3112 eval ac_cv_prog_make_${ac_make}_set=no;;
3113 esac
3114 rm -f conftest.make
3116 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3118 $as_echo "yes" >&6; }
3119 SET_MAKE=
3120 else
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3122 $as_echo "no" >&6; }
3123 SET_MAKE="MAKE=${MAKE-make}"
3127 if test -z "$LD" ; then
3128 LD=$CC
3132 if test -z "$OLDCFLAGS" && test "$GCC" = "yes"; then
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: No \$CFLAGS set... using \"-Os -W -Wall\" for GCC" >&5
3134 $as_echo "$as_me: No \$CFLAGS set... using \"-Os -W -Wall\" for GCC" >&6;}
3135 CFLAGS="-Os -W -Wall -Wno-pointer-sign"
3138 # large file support is useful for scp
3140 # Check whether --enable-largefile was given.
3141 if test "${enable_largefile+set}" = set; then :
3142 enableval=$enable_largefile;
3145 if test "$enable_largefile" != no; then
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3148 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3149 if ${ac_cv_sys_largefile_CC+:} false; then :
3150 $as_echo_n "(cached) " >&6
3151 else
3152 ac_cv_sys_largefile_CC=no
3153 if test "$GCC" != yes; then
3154 ac_save_CC=$CC
3155 while :; do
3156 # IRIX 6.2 and later do not support large files by default,
3157 # so use the C compiler's -n32 option if that helps.
3158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3159 /* end confdefs.h. */
3160 #include <sys/types.h>
3161 /* Check that off_t can represent 2**63 - 1 correctly.
3162 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3163 since some C++ compilers masquerading as C compilers
3164 incorrectly reject 9223372036854775807. */
3165 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3166 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3167 && LARGE_OFF_T % 2147483647 == 1)
3168 ? 1 : -1];
3170 main ()
3174 return 0;
3176 _ACEOF
3177 if ac_fn_c_try_compile "$LINENO"; then :
3178 break
3180 rm -f core conftest.err conftest.$ac_objext
3181 CC="$CC -n32"
3182 if ac_fn_c_try_compile "$LINENO"; then :
3183 ac_cv_sys_largefile_CC=' -n32'; break
3185 rm -f core conftest.err conftest.$ac_objext
3186 break
3187 done
3188 CC=$ac_save_CC
3189 rm -f conftest.$ac_ext
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3193 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
3194 if test "$ac_cv_sys_largefile_CC" != no; then
3195 CC=$CC$ac_cv_sys_largefile_CC
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3199 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3200 if ${ac_cv_sys_file_offset_bits+:} false; then :
3201 $as_echo_n "(cached) " >&6
3202 else
3203 while :; do
3204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3205 /* end confdefs.h. */
3206 #include <sys/types.h>
3207 /* Check that off_t can represent 2**63 - 1 correctly.
3208 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3209 since some C++ compilers masquerading as C compilers
3210 incorrectly reject 9223372036854775807. */
3211 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3212 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3213 && LARGE_OFF_T % 2147483647 == 1)
3214 ? 1 : -1];
3216 main ()
3220 return 0;
3222 _ACEOF
3223 if ac_fn_c_try_compile "$LINENO"; then :
3224 ac_cv_sys_file_offset_bits=no; break
3226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3228 /* end confdefs.h. */
3229 #define _FILE_OFFSET_BITS 64
3230 #include <sys/types.h>
3231 /* Check that off_t can represent 2**63 - 1 correctly.
3232 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3233 since some C++ compilers masquerading as C compilers
3234 incorrectly reject 9223372036854775807. */
3235 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3236 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3237 && LARGE_OFF_T % 2147483647 == 1)
3238 ? 1 : -1];
3240 main ()
3244 return 0;
3246 _ACEOF
3247 if ac_fn_c_try_compile "$LINENO"; then :
3248 ac_cv_sys_file_offset_bits=64; break
3250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3251 ac_cv_sys_file_offset_bits=unknown
3252 break
3253 done
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
3256 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
3257 case $ac_cv_sys_file_offset_bits in #(
3258 no | unknown) ;;
3260 cat >>confdefs.h <<_ACEOF
3261 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3262 _ACEOF
3264 esac
3265 rm -rf conftest*
3266 if test $ac_cv_sys_file_offset_bits = unknown; then
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
3268 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
3269 if ${ac_cv_sys_large_files+:} false; then :
3270 $as_echo_n "(cached) " >&6
3271 else
3272 while :; do
3273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3274 /* end confdefs.h. */
3275 #include <sys/types.h>
3276 /* Check that off_t can represent 2**63 - 1 correctly.
3277 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3278 since some C++ compilers masquerading as C compilers
3279 incorrectly reject 9223372036854775807. */
3280 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3281 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3282 && LARGE_OFF_T % 2147483647 == 1)
3283 ? 1 : -1];
3285 main ()
3289 return 0;
3291 _ACEOF
3292 if ac_fn_c_try_compile "$LINENO"; then :
3293 ac_cv_sys_large_files=no; break
3295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3297 /* end confdefs.h. */
3298 #define _LARGE_FILES 1
3299 #include <sys/types.h>
3300 /* Check that off_t can represent 2**63 - 1 correctly.
3301 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3302 since some C++ compilers masquerading as C compilers
3303 incorrectly reject 9223372036854775807. */
3304 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3305 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3306 && LARGE_OFF_T % 2147483647 == 1)
3307 ? 1 : -1];
3309 main ()
3313 return 0;
3315 _ACEOF
3316 if ac_fn_c_try_compile "$LINENO"; then :
3317 ac_cv_sys_large_files=1; break
3319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3320 ac_cv_sys_large_files=unknown
3321 break
3322 done
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
3325 $as_echo "$ac_cv_sys_large_files" >&6; }
3326 case $ac_cv_sys_large_files in #(
3327 no | unknown) ;;
3329 cat >>confdefs.h <<_ACEOF
3330 #define _LARGE_FILES $ac_cv_sys_large_files
3331 _ACEOF
3333 esac
3334 rm -rf conftest*
3341 # Host specific options
3342 # this isn't a definitive list of hosts, they are just added as required
3343 ac_aux_dir=
3344 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3345 if test -f "$ac_dir/install-sh"; then
3346 ac_aux_dir=$ac_dir
3347 ac_install_sh="$ac_aux_dir/install-sh -c"
3348 break
3349 elif test -f "$ac_dir/install.sh"; then
3350 ac_aux_dir=$ac_dir
3351 ac_install_sh="$ac_aux_dir/install.sh -c"
3352 break
3353 elif test -f "$ac_dir/shtool"; then
3354 ac_aux_dir=$ac_dir
3355 ac_install_sh="$ac_aux_dir/shtool install -c"
3356 break
3358 done
3359 if test -z "$ac_aux_dir"; then
3360 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3363 # These three variables are undocumented and unsupported,
3364 # and are intended to be withdrawn in a future Autoconf release.
3365 # They can cause serious problems if a builder's source tree is in a directory
3366 # whose full name contains unusual characters.
3367 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3368 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3369 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3372 # Make sure we can run config.sub.
3373 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3374 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3377 $as_echo_n "checking build system type... " >&6; }
3378 if ${ac_cv_build+:} false; then :
3379 $as_echo_n "(cached) " >&6
3380 else
3381 ac_build_alias=$build_alias
3382 test "x$ac_build_alias" = x &&
3383 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3384 test "x$ac_build_alias" = x &&
3385 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3386 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3387 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3391 $as_echo "$ac_cv_build" >&6; }
3392 case $ac_cv_build in
3393 *-*-*) ;;
3394 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3395 esac
3396 build=$ac_cv_build
3397 ac_save_IFS=$IFS; IFS='-'
3398 set x $ac_cv_build
3399 shift
3400 build_cpu=$1
3401 build_vendor=$2
3402 shift; shift
3403 # Remember, the first character of IFS is used to create $*,
3404 # except with old shells:
3405 build_os=$*
3406 IFS=$ac_save_IFS
3407 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3411 $as_echo_n "checking host system type... " >&6; }
3412 if ${ac_cv_host+:} false; then :
3413 $as_echo_n "(cached) " >&6
3414 else
3415 if test "x$host_alias" = x; then
3416 ac_cv_host=$ac_cv_build
3417 else
3418 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3419 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3424 $as_echo "$ac_cv_host" >&6; }
3425 case $ac_cv_host in
3426 *-*-*) ;;
3427 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3428 esac
3429 host=$ac_cv_host
3430 ac_save_IFS=$IFS; IFS='-'
3431 set x $ac_cv_host
3432 shift
3433 host_cpu=$1
3434 host_vendor=$2
3435 shift; shift
3436 # Remember, the first character of IFS is used to create $*,
3437 # except with old shells:
3438 host_os=$*
3439 IFS=$ac_save_IFS
3440 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3444 case "$host" in
3446 *-*-linux*)
3447 no_ptmx_check=1
3450 *-*-solaris*)
3451 CFLAGS="$CFLAGS -I/usr/local/include"
3452 LDFLAGS="$LDFLAGS -L/usr/local/lib -R/usr/local/lib"
3453 conf_lastlog_location="/var/adm/lastlog"
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obsolete utmp and wtmp in solaris2.x" >&5
3455 $as_echo_n "checking for obsolete utmp and wtmp in solaris2.x... " >&6; }
3456 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
3457 if test "$sol2ver" -ge 8; then
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3459 $as_echo "yes" >&6; }
3461 $as_echo "#define DISABLE_UTMP /**/" >>confdefs.h
3464 $as_echo "#define DISABLE_WTMP /**/" >>confdefs.h
3466 else
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3468 $as_echo "no" >&6; }
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
3471 $as_echo_n "checking for socket in -lsocket... " >&6; }
3472 if ${ac_cv_lib_socket_socket+:} false; then :
3473 $as_echo_n "(cached) " >&6
3474 else
3475 ac_check_lib_save_LIBS=$LIBS
3476 LIBS="-lsocket $LIBS"
3477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478 /* end confdefs.h. */
3480 /* Override any GCC internal prototype to avoid an error.
3481 Use char because int might match the return type of a GCC
3482 builtin and then its argument prototype would still apply. */
3483 #ifdef __cplusplus
3484 extern "C"
3485 #endif
3486 char socket ();
3488 main ()
3490 return socket ();
3492 return 0;
3494 _ACEOF
3495 if ac_fn_c_try_link "$LINENO"; then :
3496 ac_cv_lib_socket_socket=yes
3497 else
3498 ac_cv_lib_socket_socket=no
3500 rm -f core conftest.err conftest.$ac_objext \
3501 conftest$ac_exeext conftest.$ac_ext
3502 LIBS=$ac_check_lib_save_LIBS
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
3505 $as_echo "$ac_cv_lib_socket_socket" >&6; }
3506 if test "x$ac_cv_lib_socket_socket" = xyes; then :
3507 LIBS="$LIBS -lsocket"
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yp_match in -lnsl" >&5
3511 $as_echo_n "checking for yp_match in -lnsl... " >&6; }
3512 if ${ac_cv_lib_nsl_yp_match+:} false; then :
3513 $as_echo_n "(cached) " >&6
3514 else
3515 ac_check_lib_save_LIBS=$LIBS
3516 LIBS="-lnsl $LIBS"
3517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518 /* end confdefs.h. */
3520 /* Override any GCC internal prototype to avoid an error.
3521 Use char because int might match the return type of a GCC
3522 builtin and then its argument prototype would still apply. */
3523 #ifdef __cplusplus
3524 extern "C"
3525 #endif
3526 char yp_match ();
3528 main ()
3530 return yp_match ();
3532 return 0;
3534 _ACEOF
3535 if ac_fn_c_try_link "$LINENO"; then :
3536 ac_cv_lib_nsl_yp_match=yes
3537 else
3538 ac_cv_lib_nsl_yp_match=no
3540 rm -f core conftest.err conftest.$ac_objext \
3541 conftest$ac_exeext conftest.$ac_ext
3542 LIBS=$ac_check_lib_save_LIBS
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_yp_match" >&5
3545 $as_echo "$ac_cv_lib_nsl_yp_match" >&6; }
3546 if test "x$ac_cv_lib_nsl_yp_match" = xyes; then :
3547 LIBS="$LIBS -lnsl"
3552 *-*-aix*)
3554 $as_echo "#define AIX /**/" >>confdefs.h
3556 # OpenSSH thinks it's broken. If it isn't, let me know.
3558 $as_echo "#define BROKEN_GETADDRINFO /**/" >>confdefs.h
3562 *-*-hpux*)
3563 LIBS="$LIBS -lsec"
3564 # It's probably broken.
3566 $as_echo "#define BROKEN_GETADDRINFO /**/" >>confdefs.h
3569 *-dec-osf*)
3571 $as_echo "#define BROKEN_GETADDRINFO /**/" >>confdefs.h
3574 esac
3576 if test -n "$ac_tool_prefix"; then
3577 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3578 set dummy ${ac_tool_prefix}ar; ac_word=$2
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3580 $as_echo_n "checking for $ac_word... " >&6; }
3581 if ${ac_cv_prog_AR+:} false; then :
3582 $as_echo_n "(cached) " >&6
3583 else
3584 if test -n "$AR"; then
3585 ac_cv_prog_AR="$AR" # Let the user override the test.
3586 else
3587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3588 for as_dir in $PATH
3590 IFS=$as_save_IFS
3591 test -z "$as_dir" && as_dir=.
3592 for ac_exec_ext in '' $ac_executable_extensions; do
3593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3594 ac_cv_prog_AR="${ac_tool_prefix}ar"
3595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3596 break 2
3598 done
3599 done
3600 IFS=$as_save_IFS
3604 AR=$ac_cv_prog_AR
3605 if test -n "$AR"; then
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3607 $as_echo "$AR" >&6; }
3608 else
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3610 $as_echo "no" >&6; }
3615 if test -z "$ac_cv_prog_AR"; then
3616 ac_ct_AR=$AR
3617 # Extract the first word of "ar", so it can be a program name with args.
3618 set dummy ar; ac_word=$2
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3620 $as_echo_n "checking for $ac_word... " >&6; }
3621 if ${ac_cv_prog_ac_ct_AR+:} false; then :
3622 $as_echo_n "(cached) " >&6
3623 else
3624 if test -n "$ac_ct_AR"; then
3625 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3626 else
3627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3628 for as_dir in $PATH
3630 IFS=$as_save_IFS
3631 test -z "$as_dir" && as_dir=.
3632 for ac_exec_ext in '' $ac_executable_extensions; do
3633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3634 ac_cv_prog_ac_ct_AR="ar"
3635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3636 break 2
3638 done
3639 done
3640 IFS=$as_save_IFS
3644 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3645 if test -n "$ac_ct_AR"; then
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3647 $as_echo "$ac_ct_AR" >&6; }
3648 else
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3650 $as_echo "no" >&6; }
3653 if test "x$ac_ct_AR" = x; then
3654 AR=":"
3655 else
3656 case $cross_compiling:$ac_tool_warned in
3657 yes:)
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3659 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3660 ac_tool_warned=yes ;;
3661 esac
3662 AR=$ac_ct_AR
3664 else
3665 AR="$ac_cv_prog_AR"
3668 if test -n "$ac_tool_prefix"; then
3669 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3670 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3672 $as_echo_n "checking for $ac_word... " >&6; }
3673 if ${ac_cv_prog_RANLIB+:} false; then :
3674 $as_echo_n "(cached) " >&6
3675 else
3676 if test -n "$RANLIB"; then
3677 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3678 else
3679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3680 for as_dir in $PATH
3682 IFS=$as_save_IFS
3683 test -z "$as_dir" && as_dir=.
3684 for ac_exec_ext in '' $ac_executable_extensions; do
3685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3686 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3688 break 2
3690 done
3691 done
3692 IFS=$as_save_IFS
3696 RANLIB=$ac_cv_prog_RANLIB
3697 if test -n "$RANLIB"; then
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3699 $as_echo "$RANLIB" >&6; }
3700 else
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3702 $as_echo "no" >&6; }
3707 if test -z "$ac_cv_prog_RANLIB"; then
3708 ac_ct_RANLIB=$RANLIB
3709 # Extract the first word of "ranlib", so it can be a program name with args.
3710 set dummy ranlib; ac_word=$2
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3712 $as_echo_n "checking for $ac_word... " >&6; }
3713 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3714 $as_echo_n "(cached) " >&6
3715 else
3716 if test -n "$ac_ct_RANLIB"; then
3717 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3718 else
3719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3720 for as_dir in $PATH
3722 IFS=$as_save_IFS
3723 test -z "$as_dir" && as_dir=.
3724 for ac_exec_ext in '' $ac_executable_extensions; do
3725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3726 ac_cv_prog_ac_ct_RANLIB="ranlib"
3727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3728 break 2
3730 done
3731 done
3732 IFS=$as_save_IFS
3736 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3737 if test -n "$ac_ct_RANLIB"; then
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3739 $as_echo "$ac_ct_RANLIB" >&6; }
3740 else
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3742 $as_echo "no" >&6; }
3745 if test "x$ac_ct_RANLIB" = x; then
3746 RANLIB=":"
3747 else
3748 case $cross_compiling:$ac_tool_warned in
3749 yes:)
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3751 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3752 ac_tool_warned=yes ;;
3753 esac
3754 RANLIB=$ac_ct_RANLIB
3756 else
3757 RANLIB="$ac_cv_prog_RANLIB"
3760 if test -n "$ac_tool_prefix"; then
3761 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3762 set dummy ${ac_tool_prefix}strip; ac_word=$2
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3764 $as_echo_n "checking for $ac_word... " >&6; }
3765 if ${ac_cv_prog_STRIP+:} false; then :
3766 $as_echo_n "(cached) " >&6
3767 else
3768 if test -n "$STRIP"; then
3769 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3770 else
3771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772 for as_dir in $PATH
3774 IFS=$as_save_IFS
3775 test -z "$as_dir" && as_dir=.
3776 for ac_exec_ext in '' $ac_executable_extensions; do
3777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3778 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3780 break 2
3782 done
3783 done
3784 IFS=$as_save_IFS
3788 STRIP=$ac_cv_prog_STRIP
3789 if test -n "$STRIP"; then
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3791 $as_echo "$STRIP" >&6; }
3792 else
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3794 $as_echo "no" >&6; }
3799 if test -z "$ac_cv_prog_STRIP"; then
3800 ac_ct_STRIP=$STRIP
3801 # Extract the first word of "strip", so it can be a program name with args.
3802 set dummy strip; ac_word=$2
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3804 $as_echo_n "checking for $ac_word... " >&6; }
3805 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3806 $as_echo_n "(cached) " >&6
3807 else
3808 if test -n "$ac_ct_STRIP"; then
3809 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3810 else
3811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3812 for as_dir in $PATH
3814 IFS=$as_save_IFS
3815 test -z "$as_dir" && as_dir=.
3816 for ac_exec_ext in '' $ac_executable_extensions; do
3817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3818 ac_cv_prog_ac_ct_STRIP="strip"
3819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3820 break 2
3822 done
3823 done
3824 IFS=$as_save_IFS
3828 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3829 if test -n "$ac_ct_STRIP"; then
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3831 $as_echo "$ac_ct_STRIP" >&6; }
3832 else
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3834 $as_echo "no" >&6; }
3837 if test "x$ac_ct_STRIP" = x; then
3838 STRIP=":"
3839 else
3840 case $cross_compiling:$ac_tool_warned in
3841 yes:)
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3843 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3844 ac_tool_warned=yes ;;
3845 esac
3846 STRIP=$ac_ct_STRIP
3848 else
3849 STRIP="$ac_cv_prog_STRIP"
3852 if test -n "$ac_tool_prefix"; then
3853 # Extract the first word of "${ac_tool_prefix}install", so it can be a program name with args.
3854 set dummy ${ac_tool_prefix}install; ac_word=$2
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3856 $as_echo_n "checking for $ac_word... " >&6; }
3857 if ${ac_cv_prog_INSTALL+:} false; then :
3858 $as_echo_n "(cached) " >&6
3859 else
3860 if test -n "$INSTALL"; then
3861 ac_cv_prog_INSTALL="$INSTALL" # Let the user override the test.
3862 else
3863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864 for as_dir in $PATH
3866 IFS=$as_save_IFS
3867 test -z "$as_dir" && as_dir=.
3868 for ac_exec_ext in '' $ac_executable_extensions; do
3869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3870 ac_cv_prog_INSTALL="${ac_tool_prefix}install"
3871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3872 break 2
3874 done
3875 done
3876 IFS=$as_save_IFS
3880 INSTALL=$ac_cv_prog_INSTALL
3881 if test -n "$INSTALL"; then
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3883 $as_echo "$INSTALL" >&6; }
3884 else
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3886 $as_echo "no" >&6; }
3891 if test -z "$ac_cv_prog_INSTALL"; then
3892 ac_ct_INSTALL=$INSTALL
3893 # Extract the first word of "install", so it can be a program name with args.
3894 set dummy install; ac_word=$2
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3896 $as_echo_n "checking for $ac_word... " >&6; }
3897 if ${ac_cv_prog_ac_ct_INSTALL+:} false; then :
3898 $as_echo_n "(cached) " >&6
3899 else
3900 if test -n "$ac_ct_INSTALL"; then
3901 ac_cv_prog_ac_ct_INSTALL="$ac_ct_INSTALL" # Let the user override the test.
3902 else
3903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3904 for as_dir in $PATH
3906 IFS=$as_save_IFS
3907 test -z "$as_dir" && as_dir=.
3908 for ac_exec_ext in '' $ac_executable_extensions; do
3909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3910 ac_cv_prog_ac_ct_INSTALL="install"
3911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3912 break 2
3914 done
3915 done
3916 IFS=$as_save_IFS
3920 ac_ct_INSTALL=$ac_cv_prog_ac_ct_INSTALL
3921 if test -n "$ac_ct_INSTALL"; then
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_INSTALL" >&5
3923 $as_echo "$ac_ct_INSTALL" >&6; }
3924 else
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3926 $as_echo "no" >&6; }
3929 if test "x$ac_ct_INSTALL" = x; then
3930 INSTALL=":"
3931 else
3932 case $cross_compiling:$ac_tool_warned in
3933 yes:)
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3935 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3936 ac_tool_warned=yes ;;
3937 esac
3938 INSTALL=$ac_ct_INSTALL
3940 else
3941 INSTALL="$ac_cv_prog_INSTALL"
3945 ac_ext=c
3946 ac_cpp='$CPP $CPPFLAGS'
3947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3951 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3952 # On Suns, sometimes $CPP names a directory.
3953 if test -n "$CPP" && test -d "$CPP"; then
3954 CPP=
3956 if test -z "$CPP"; then
3957 if ${ac_cv_prog_CPP+:} false; then :
3958 $as_echo_n "(cached) " >&6
3959 else
3960 # Double quotes because CPP needs to be expanded
3961 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3963 ac_preproc_ok=false
3964 for ac_c_preproc_warn_flag in '' yes
3966 # Use a header file that comes with gcc, so configuring glibc
3967 # with a fresh cross-compiler works.
3968 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3969 # <limits.h> exists even on freestanding compilers.
3970 # On the NeXT, cc -E runs the code through the compiler's parser,
3971 # not just through cpp. "Syntax error" is here to catch this case.
3972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3973 /* end confdefs.h. */
3974 #ifdef __STDC__
3975 # include <limits.h>
3976 #else
3977 # include <assert.h>
3978 #endif
3979 Syntax error
3980 _ACEOF
3981 if ac_fn_c_try_cpp "$LINENO"; then :
3983 else
3984 # Broken: fails on valid input.
3985 continue
3987 rm -f conftest.err conftest.i conftest.$ac_ext
3989 # OK, works on sane cases. Now check whether nonexistent headers
3990 # can be detected and how.
3991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3992 /* end confdefs.h. */
3993 #include <ac_nonexistent.h>
3994 _ACEOF
3995 if ac_fn_c_try_cpp "$LINENO"; then :
3996 # Broken: success on invalid input.
3997 continue
3998 else
3999 # Passes both tests.
4000 ac_preproc_ok=:
4001 break
4003 rm -f conftest.err conftest.i conftest.$ac_ext
4005 done
4006 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4007 rm -f conftest.i conftest.err conftest.$ac_ext
4008 if $ac_preproc_ok; then :
4009 break
4012 done
4013 ac_cv_prog_CPP=$CPP
4016 CPP=$ac_cv_prog_CPP
4017 else
4018 ac_cv_prog_CPP=$CPP
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4021 $as_echo "$CPP" >&6; }
4022 ac_preproc_ok=false
4023 for ac_c_preproc_warn_flag in '' yes
4025 # Use a header file that comes with gcc, so configuring glibc
4026 # with a fresh cross-compiler works.
4027 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4028 # <limits.h> exists even on freestanding compilers.
4029 # On the NeXT, cc -E runs the code through the compiler's parser,
4030 # not just through cpp. "Syntax error" is here to catch this case.
4031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4032 /* end confdefs.h. */
4033 #ifdef __STDC__
4034 # include <limits.h>
4035 #else
4036 # include <assert.h>
4037 #endif
4038 Syntax error
4039 _ACEOF
4040 if ac_fn_c_try_cpp "$LINENO"; then :
4042 else
4043 # Broken: fails on valid input.
4044 continue
4046 rm -f conftest.err conftest.i conftest.$ac_ext
4048 # OK, works on sane cases. Now check whether nonexistent headers
4049 # can be detected and how.
4050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4051 /* end confdefs.h. */
4052 #include <ac_nonexistent.h>
4053 _ACEOF
4054 if ac_fn_c_try_cpp "$LINENO"; then :
4055 # Broken: success on invalid input.
4056 continue
4057 else
4058 # Passes both tests.
4059 ac_preproc_ok=:
4060 break
4062 rm -f conftest.err conftest.i conftest.$ac_ext
4064 done
4065 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4066 rm -f conftest.i conftest.err conftest.$ac_ext
4067 if $ac_preproc_ok; then :
4069 else
4070 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4071 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4072 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4073 See \`config.log' for more details" "$LINENO" 5; }
4076 ac_ext=c
4077 ac_cpp='$CPP $CPPFLAGS'
4078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4084 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4085 if ${ac_cv_path_GREP+:} false; then :
4086 $as_echo_n "(cached) " >&6
4087 else
4088 if test -z "$GREP"; then
4089 ac_path_GREP_found=false
4090 # Loop through the user's path and test for each of PROGNAME-LIST
4091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4092 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4094 IFS=$as_save_IFS
4095 test -z "$as_dir" && as_dir=.
4096 for ac_prog in grep ggrep; do
4097 for ac_exec_ext in '' $ac_executable_extensions; do
4098 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4099 as_fn_executable_p "$ac_path_GREP" || continue
4100 # Check for GNU ac_path_GREP and select it if it is found.
4101 # Check for GNU $ac_path_GREP
4102 case `"$ac_path_GREP" --version 2>&1` in
4103 *GNU*)
4104 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4106 ac_count=0
4107 $as_echo_n 0123456789 >"conftest.in"
4108 while :
4110 cat "conftest.in" "conftest.in" >"conftest.tmp"
4111 mv "conftest.tmp" "conftest.in"
4112 cp "conftest.in" "conftest.nl"
4113 $as_echo 'GREP' >> "conftest.nl"
4114 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4115 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4116 as_fn_arith $ac_count + 1 && ac_count=$as_val
4117 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4118 # Best one so far, save it but keep looking for a better one
4119 ac_cv_path_GREP="$ac_path_GREP"
4120 ac_path_GREP_max=$ac_count
4122 # 10*(2^10) chars as input seems more than enough
4123 test $ac_count -gt 10 && break
4124 done
4125 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4126 esac
4128 $ac_path_GREP_found && break 3
4129 done
4130 done
4131 done
4132 IFS=$as_save_IFS
4133 if test -z "$ac_cv_path_GREP"; then
4134 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4136 else
4137 ac_cv_path_GREP=$GREP
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4142 $as_echo "$ac_cv_path_GREP" >&6; }
4143 GREP="$ac_cv_path_GREP"
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4147 $as_echo_n "checking for egrep... " >&6; }
4148 if ${ac_cv_path_EGREP+:} false; then :
4149 $as_echo_n "(cached) " >&6
4150 else
4151 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4152 then ac_cv_path_EGREP="$GREP -E"
4153 else
4154 if test -z "$EGREP"; then
4155 ac_path_EGREP_found=false
4156 # Loop through the user's path and test for each of PROGNAME-LIST
4157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4160 IFS=$as_save_IFS
4161 test -z "$as_dir" && as_dir=.
4162 for ac_prog in egrep; do
4163 for ac_exec_ext in '' $ac_executable_extensions; do
4164 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4165 as_fn_executable_p "$ac_path_EGREP" || continue
4166 # Check for GNU ac_path_EGREP and select it if it is found.
4167 # Check for GNU $ac_path_EGREP
4168 case `"$ac_path_EGREP" --version 2>&1` in
4169 *GNU*)
4170 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4172 ac_count=0
4173 $as_echo_n 0123456789 >"conftest.in"
4174 while :
4176 cat "conftest.in" "conftest.in" >"conftest.tmp"
4177 mv "conftest.tmp" "conftest.in"
4178 cp "conftest.in" "conftest.nl"
4179 $as_echo 'EGREP' >> "conftest.nl"
4180 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4181 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4182 as_fn_arith $ac_count + 1 && ac_count=$as_val
4183 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4184 # Best one so far, save it but keep looking for a better one
4185 ac_cv_path_EGREP="$ac_path_EGREP"
4186 ac_path_EGREP_max=$ac_count
4188 # 10*(2^10) chars as input seems more than enough
4189 test $ac_count -gt 10 && break
4190 done
4191 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4192 esac
4194 $ac_path_EGREP_found && break 3
4195 done
4196 done
4197 done
4198 IFS=$as_save_IFS
4199 if test -z "$ac_cv_path_EGREP"; then
4200 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4202 else
4203 ac_cv_path_EGREP=$EGREP
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4209 $as_echo "$ac_cv_path_EGREP" >&6; }
4210 EGREP="$ac_cv_path_EGREP"
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4214 $as_echo_n "checking for ANSI C header files... " >&6; }
4215 if ${ac_cv_header_stdc+:} false; then :
4216 $as_echo_n "(cached) " >&6
4217 else
4218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4219 /* end confdefs.h. */
4220 #include <stdlib.h>
4221 #include <stdarg.h>
4222 #include <string.h>
4223 #include <float.h>
4226 main ()
4230 return 0;
4232 _ACEOF
4233 if ac_fn_c_try_compile "$LINENO"; then :
4234 ac_cv_header_stdc=yes
4235 else
4236 ac_cv_header_stdc=no
4238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4240 if test $ac_cv_header_stdc = yes; then
4241 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4243 /* end confdefs.h. */
4244 #include <string.h>
4246 _ACEOF
4247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4248 $EGREP "memchr" >/dev/null 2>&1; then :
4250 else
4251 ac_cv_header_stdc=no
4253 rm -f conftest*
4257 if test $ac_cv_header_stdc = yes; then
4258 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4260 /* end confdefs.h. */
4261 #include <stdlib.h>
4263 _ACEOF
4264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4265 $EGREP "free" >/dev/null 2>&1; then :
4267 else
4268 ac_cv_header_stdc=no
4270 rm -f conftest*
4274 if test $ac_cv_header_stdc = yes; then
4275 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4276 if test "$cross_compiling" = yes; then :
4278 else
4279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4280 /* end confdefs.h. */
4281 #include <ctype.h>
4282 #include <stdlib.h>
4283 #if ((' ' & 0x0FF) == 0x020)
4284 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4285 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4286 #else
4287 # define ISLOWER(c) \
4288 (('a' <= (c) && (c) <= 'i') \
4289 || ('j' <= (c) && (c) <= 'r') \
4290 || ('s' <= (c) && (c) <= 'z'))
4291 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4292 #endif
4294 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4296 main ()
4298 int i;
4299 for (i = 0; i < 256; i++)
4300 if (XOR (islower (i), ISLOWER (i))
4301 || toupper (i) != TOUPPER (i))
4302 return 2;
4303 return 0;
4305 _ACEOF
4306 if ac_fn_c_try_run "$LINENO"; then :
4308 else
4309 ac_cv_header_stdc=no
4311 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4312 conftest.$ac_objext conftest.beam conftest.$ac_ext
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4318 $as_echo "$ac_cv_header_stdc" >&6; }
4319 if test $ac_cv_header_stdc = yes; then
4321 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4325 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4326 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4327 inttypes.h stdint.h unistd.h
4328 do :
4329 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4330 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4332 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4333 cat >>confdefs.h <<_ACEOF
4334 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4335 _ACEOF
4339 done
4342 ac_fn_c_check_decl "$LINENO" "__UCLIBC__" "ac_cv_have_decl___UCLIBC__" "$ac_includes_default"
4343 if test "x$ac_cv_have_decl___UCLIBC__" = xyes; then :
4345 no_loginfunc_check=1
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: Using uClibc - login() and logout() probably don't work, so we won't use them." >&5
4347 $as_echo "$as_me: Using uClibc - login() and logout() probably don't work, so we won't use them." >&6;}
4352 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
4353 if test "x$ac_cv_func_crypt" = xyes; then :
4354 found_crypt_func=here
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
4358 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
4359 if ${ac_cv_lib_crypt_crypt+:} false; then :
4360 $as_echo_n "(cached) " >&6
4361 else
4362 ac_check_lib_save_LIBS=$LIBS
4363 LIBS="-lcrypt $LIBS"
4364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4365 /* end confdefs.h. */
4367 /* Override any GCC internal prototype to avoid an error.
4368 Use char because int might match the return type of a GCC
4369 builtin and then its argument prototype would still apply. */
4370 #ifdef __cplusplus
4371 extern "C"
4372 #endif
4373 char crypt ();
4375 main ()
4377 return crypt ();
4379 return 0;
4381 _ACEOF
4382 if ac_fn_c_try_link "$LINENO"; then :
4383 ac_cv_lib_crypt_crypt=yes
4384 else
4385 ac_cv_lib_crypt_crypt=no
4387 rm -f core conftest.err conftest.$ac_objext \
4388 conftest$ac_exeext conftest.$ac_ext
4389 LIBS=$ac_check_lib_save_LIBS
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
4392 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
4393 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
4395 CRYPTLIB="-lcrypt"
4396 found_crypt_func=here
4401 if test "t$found_crypt_func" = there; then
4403 $as_echo "#define HAVE_CRYPT 1" >>confdefs.h
4407 # Check if zlib is needed
4409 # Check whether --with-zlib was given.
4410 if test "${with_zlib+set}" = set; then :
4411 withval=$with_zlib;
4412 # option is given
4413 if test -d "$withval/lib"; then
4414 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
4415 else
4416 LDFLAGS="-L${withval} ${LDFLAGS}"
4418 if test -d "$withval/include"; then
4419 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
4420 else
4421 CPPFLAGS="-I${withval} ${CPPFLAGS}"
4428 # Check whether --enable-zlib was given.
4429 if test "${enable_zlib+set}" = set; then :
4430 enableval=$enable_zlib;
4431 if test "x$enableval" = "xno"; then
4433 $as_echo "#define DISABLE_ZLIB /**/" >>confdefs.h
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling zlib" >&5
4436 $as_echo "$as_me: Disabling zlib" >&6;}
4437 else
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
4439 $as_echo_n "checking for deflate in -lz... " >&6; }
4440 if ${ac_cv_lib_z_deflate+:} false; then :
4441 $as_echo_n "(cached) " >&6
4442 else
4443 ac_check_lib_save_LIBS=$LIBS
4444 LIBS="-lz $LIBS"
4445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4446 /* end confdefs.h. */
4448 /* Override any GCC internal prototype to avoid an error.
4449 Use char because int might match the return type of a GCC
4450 builtin and then its argument prototype would still apply. */
4451 #ifdef __cplusplus
4452 extern "C"
4453 #endif
4454 char deflate ();
4456 main ()
4458 return deflate ();
4460 return 0;
4462 _ACEOF
4463 if ac_fn_c_try_link "$LINENO"; then :
4464 ac_cv_lib_z_deflate=yes
4465 else
4466 ac_cv_lib_z_deflate=no
4468 rm -f core conftest.err conftest.$ac_objext \
4469 conftest$ac_exeext conftest.$ac_ext
4470 LIBS=$ac_check_lib_save_LIBS
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
4473 $as_echo "$ac_cv_lib_z_deflate" >&6; }
4474 if test "x$ac_cv_lib_z_deflate" = xyes; then :
4475 cat >>confdefs.h <<_ACEOF
4476 #define HAVE_LIBZ 1
4477 _ACEOF
4479 LIBS="-lz $LIBS"
4481 else
4482 as_fn_error $? "*** zlib missing - install first or check config.log ***" "$LINENO" 5
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling zlib" >&5
4486 $as_echo "$as_me: Enabling zlib" >&6;}
4489 else
4491 # if not disabled, check for zlib
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
4493 $as_echo_n "checking for deflate in -lz... " >&6; }
4494 if ${ac_cv_lib_z_deflate+:} false; then :
4495 $as_echo_n "(cached) " >&6
4496 else
4497 ac_check_lib_save_LIBS=$LIBS
4498 LIBS="-lz $LIBS"
4499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4500 /* end confdefs.h. */
4502 /* Override any GCC internal prototype to avoid an error.
4503 Use char because int might match the return type of a GCC
4504 builtin and then its argument prototype would still apply. */
4505 #ifdef __cplusplus
4506 extern "C"
4507 #endif
4508 char deflate ();
4510 main ()
4512 return deflate ();
4514 return 0;
4516 _ACEOF
4517 if ac_fn_c_try_link "$LINENO"; then :
4518 ac_cv_lib_z_deflate=yes
4519 else
4520 ac_cv_lib_z_deflate=no
4522 rm -f core conftest.err conftest.$ac_objext \
4523 conftest$ac_exeext conftest.$ac_ext
4524 LIBS=$ac_check_lib_save_LIBS
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
4527 $as_echo "$ac_cv_lib_z_deflate" >&6; }
4528 if test "x$ac_cv_lib_z_deflate" = xyes; then :
4529 cat >>confdefs.h <<_ACEOF
4530 #define HAVE_LIBZ 1
4531 _ACEOF
4533 LIBS="-lz $LIBS"
4535 else
4536 as_fn_error $? "*** zlib missing - install first or check config.log ***" "$LINENO" 5
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling zlib" >&5
4540 $as_echo "$as_me: Enabling zlib" >&6;}
4546 # Check if pam is needed
4548 # Check whether --with-pam was given.
4549 if test "${with_pam+set}" = set; then :
4550 withval=$with_pam;
4551 # option is given
4552 if test -d "$withval/lib"; then
4553 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
4554 else
4555 LDFLAGS="-L${withval} ${LDFLAGS}"
4557 if test -d "$withval/include"; then
4558 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
4559 else
4560 CPPFLAGS="-I${withval} ${CPPFLAGS}"
4568 # Check whether --enable-pam was given.
4569 if test "${enable_pam+set}" = set; then :
4570 enableval=$enable_pam;
4571 if test "x$enableval" = "xyes"; then
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_authenticate in -lpam" >&5
4573 $as_echo_n "checking for pam_authenticate in -lpam... " >&6; }
4574 if ${ac_cv_lib_pam_pam_authenticate+:} false; then :
4575 $as_echo_n "(cached) " >&6
4576 else
4577 ac_check_lib_save_LIBS=$LIBS
4578 LIBS="-lpam $LIBS"
4579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4580 /* end confdefs.h. */
4582 /* Override any GCC internal prototype to avoid an error.
4583 Use char because int might match the return type of a GCC
4584 builtin and then its argument prototype would still apply. */
4585 #ifdef __cplusplus
4586 extern "C"
4587 #endif
4588 char pam_authenticate ();
4590 main ()
4592 return pam_authenticate ();
4594 return 0;
4596 _ACEOF
4597 if ac_fn_c_try_link "$LINENO"; then :
4598 ac_cv_lib_pam_pam_authenticate=yes
4599 else
4600 ac_cv_lib_pam_pam_authenticate=no
4602 rm -f core conftest.err conftest.$ac_objext \
4603 conftest$ac_exeext conftest.$ac_ext
4604 LIBS=$ac_check_lib_save_LIBS
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_authenticate" >&5
4607 $as_echo "$ac_cv_lib_pam_pam_authenticate" >&6; }
4608 if test "x$ac_cv_lib_pam_pam_authenticate" = xyes; then :
4609 cat >>confdefs.h <<_ACEOF
4610 #define HAVE_LIBPAM 1
4611 _ACEOF
4613 LIBS="-lpam $LIBS"
4615 else
4616 as_fn_error $? "*** PAM missing - install first or check config.log ***" "$LINENO" 5
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling PAM" >&5
4620 $as_echo "$as_me: Enabling PAM" >&6;}
4621 for ac_func in pam_fail_delay
4622 do :
4623 ac_fn_c_check_func "$LINENO" "pam_fail_delay" "ac_cv_func_pam_fail_delay"
4624 if test "x$ac_cv_func_pam_fail_delay" = xyes; then :
4625 cat >>confdefs.h <<_ACEOF
4626 #define HAVE_PAM_FAIL_DELAY 1
4627 _ACEOF
4630 done
4632 else
4634 $as_echo "#define DISABLE_PAM /**/" >>confdefs.h
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling PAM" >&5
4637 $as_echo "$as_me: Disabling PAM" >&6;}
4640 else
4642 # disable it by default
4644 $as_echo "#define DISABLE_PAM /**/" >>confdefs.h
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling PAM" >&5
4647 $as_echo "$as_me: Disabling PAM" >&6;}
4653 # Check whether --enable-openpty was given.
4654 if test "${enable_openpty+set}" = set; then :
4655 enableval=$enable_openpty;
4656 if test "x$enableval" = "xno"; then
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: Not using openpty" >&5
4658 $as_echo "$as_me: Not using openpty" >&6;}
4659 else
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: Using openpty if available" >&5
4661 $as_echo "$as_me: Using openpty if available" >&6;}
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
4663 $as_echo_n "checking for library containing openpty... " >&6; }
4664 if ${ac_cv_search_openpty+:} false; then :
4665 $as_echo_n "(cached) " >&6
4666 else
4667 ac_func_search_save_LIBS=$LIBS
4668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4669 /* end confdefs.h. */
4671 /* Override any GCC internal prototype to avoid an error.
4672 Use char because int might match the return type of a GCC
4673 builtin and then its argument prototype would still apply. */
4674 #ifdef __cplusplus
4675 extern "C"
4676 #endif
4677 char openpty ();
4679 main ()
4681 return openpty ();
4683 return 0;
4685 _ACEOF
4686 for ac_lib in '' util; do
4687 if test -z "$ac_lib"; then
4688 ac_res="none required"
4689 else
4690 ac_res=-l$ac_lib
4691 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4693 if ac_fn_c_try_link "$LINENO"; then :
4694 ac_cv_search_openpty=$ac_res
4696 rm -f core conftest.err conftest.$ac_objext \
4697 conftest$ac_exeext
4698 if ${ac_cv_search_openpty+:} false; then :
4699 break
4701 done
4702 if ${ac_cv_search_openpty+:} false; then :
4704 else
4705 ac_cv_search_openpty=no
4707 rm conftest.$ac_ext
4708 LIBS=$ac_func_search_save_LIBS
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
4711 $as_echo "$ac_cv_search_openpty" >&6; }
4712 ac_res=$ac_cv_search_openpty
4713 if test "$ac_res" != no; then :
4714 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4716 $as_echo "#define HAVE_OPENPTY /**/" >>confdefs.h
4722 else
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: Using openpty if available" >&5
4725 $as_echo "$as_me: Using openpty if available" >&6;}
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
4727 $as_echo_n "checking for library containing openpty... " >&6; }
4728 if ${ac_cv_search_openpty+:} false; then :
4729 $as_echo_n "(cached) " >&6
4730 else
4731 ac_func_search_save_LIBS=$LIBS
4732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4733 /* end confdefs.h. */
4735 /* Override any GCC internal prototype to avoid an error.
4736 Use char because int might match the return type of a GCC
4737 builtin and then its argument prototype would still apply. */
4738 #ifdef __cplusplus
4739 extern "C"
4740 #endif
4741 char openpty ();
4743 main ()
4745 return openpty ();
4747 return 0;
4749 _ACEOF
4750 for ac_lib in '' util; do
4751 if test -z "$ac_lib"; then
4752 ac_res="none required"
4753 else
4754 ac_res=-l$ac_lib
4755 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4757 if ac_fn_c_try_link "$LINENO"; then :
4758 ac_cv_search_openpty=$ac_res
4760 rm -f core conftest.err conftest.$ac_objext \
4761 conftest$ac_exeext
4762 if ${ac_cv_search_openpty+:} false; then :
4763 break
4765 done
4766 if ${ac_cv_search_openpty+:} false; then :
4768 else
4769 ac_cv_search_openpty=no
4771 rm conftest.$ac_ext
4772 LIBS=$ac_func_search_save_LIBS
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
4775 $as_echo "$ac_cv_search_openpty" >&6; }
4776 ac_res=$ac_cv_search_openpty
4777 if test "$ac_res" != no; then :
4778 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4779 $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
4789 # Check whether --enable-syslog was given.
4790 if test "${enable_syslog+set}" = set; then :
4791 enableval=$enable_syslog;
4792 if test "x$enableval" = "xno"; then
4794 $as_echo "#define DISABLE_SYSLOG /**/" >>confdefs.h
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling syslog" >&5
4797 $as_echo "$as_me: Disabling syslog" >&6;}
4798 else
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling syslog" >&5
4800 $as_echo "$as_me: Enabling syslog" >&6;}
4803 else
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling syslog" >&5
4806 $as_echo "$as_me: Enabling syslog" >&6;}
4812 # Check whether --enable-shadow was given.
4813 if test "${enable_shadow+set}" = set; then :
4814 enableval=$enable_shadow;
4815 if test "x$enableval" = "xno"; then
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: Not using shadow passwords" >&5
4817 $as_echo "$as_me: Not using shadow passwords" >&6;}
4818 else
4819 for ac_header in shadow.h
4820 do :
4821 ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
4822 if test "x$ac_cv_header_shadow_h" = xyes; then :
4823 cat >>confdefs.h <<_ACEOF
4824 #define HAVE_SHADOW_H 1
4825 _ACEOF
4829 done
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: Using shadow passwords if available" >&5
4832 $as_echo "$as_me: Using shadow passwords if available" >&6;}
4835 else
4837 for ac_header in shadow.h
4838 do :
4839 ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
4840 if test "x$ac_cv_header_shadow_h" = xyes; then :
4841 cat >>confdefs.h <<_ACEOF
4842 #define HAVE_SHADOW_H 1
4843 _ACEOF
4847 done
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: Using shadow passwords if available" >&5
4850 $as_echo "$as_me: Using shadow passwords if available" >&6;}
4857 # Checks for header files.
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4859 $as_echo_n "checking for ANSI C header files... " >&6; }
4860 if ${ac_cv_header_stdc+:} false; then :
4861 $as_echo_n "(cached) " >&6
4862 else
4863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4864 /* end confdefs.h. */
4865 #include <stdlib.h>
4866 #include <stdarg.h>
4867 #include <string.h>
4868 #include <float.h>
4871 main ()
4875 return 0;
4877 _ACEOF
4878 if ac_fn_c_try_compile "$LINENO"; then :
4879 ac_cv_header_stdc=yes
4880 else
4881 ac_cv_header_stdc=no
4883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4885 if test $ac_cv_header_stdc = yes; then
4886 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4888 /* end confdefs.h. */
4889 #include <string.h>
4891 _ACEOF
4892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4893 $EGREP "memchr" >/dev/null 2>&1; then :
4895 else
4896 ac_cv_header_stdc=no
4898 rm -f conftest*
4902 if test $ac_cv_header_stdc = yes; then
4903 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4905 /* end confdefs.h. */
4906 #include <stdlib.h>
4908 _ACEOF
4909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4910 $EGREP "free" >/dev/null 2>&1; then :
4912 else
4913 ac_cv_header_stdc=no
4915 rm -f conftest*
4919 if test $ac_cv_header_stdc = yes; then
4920 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4921 if test "$cross_compiling" = yes; then :
4923 else
4924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4925 /* end confdefs.h. */
4926 #include <ctype.h>
4927 #include <stdlib.h>
4928 #if ((' ' & 0x0FF) == 0x020)
4929 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4930 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4931 #else
4932 # define ISLOWER(c) \
4933 (('a' <= (c) && (c) <= 'i') \
4934 || ('j' <= (c) && (c) <= 'r') \
4935 || ('s' <= (c) && (c) <= 'z'))
4936 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4937 #endif
4939 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4941 main ()
4943 int i;
4944 for (i = 0; i < 256; i++)
4945 if (XOR (islower (i), ISLOWER (i))
4946 || toupper (i) != TOUPPER (i))
4947 return 2;
4948 return 0;
4950 _ACEOF
4951 if ac_fn_c_try_run "$LINENO"; then :
4953 else
4954 ac_cv_header_stdc=no
4956 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4957 conftest.$ac_objext conftest.beam conftest.$ac_ext
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4963 $as_echo "$ac_cv_header_stdc" >&6; }
4964 if test $ac_cv_header_stdc = yes; then
4966 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4971 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4972 if ${ac_cv_header_sys_wait_h+:} false; then :
4973 $as_echo_n "(cached) " >&6
4974 else
4975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4976 /* end confdefs.h. */
4977 #include <sys/types.h>
4978 #include <sys/wait.h>
4979 #ifndef WEXITSTATUS
4980 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4981 #endif
4982 #ifndef WIFEXITED
4983 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4984 #endif
4987 main ()
4989 int s;
4990 wait (&s);
4991 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4993 return 0;
4995 _ACEOF
4996 if ac_fn_c_try_compile "$LINENO"; then :
4997 ac_cv_header_sys_wait_h=yes
4998 else
4999 ac_cv_header_sys_wait_h=no
5001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
5004 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
5005 if test $ac_cv_header_sys_wait_h = yes; then
5007 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
5011 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
5012 do :
5013 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5014 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5015 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5016 cat >>confdefs.h <<_ACEOF
5017 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5018 _ACEOF
5022 done
5025 # Checks for typedefs, structures, and compiler characteristics.
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5027 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5028 if ${ac_cv_c_const+:} false; then :
5029 $as_echo_n "(cached) " >&6
5030 else
5031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5032 /* end confdefs.h. */
5035 main ()
5038 #ifndef __cplusplus
5039 /* Ultrix mips cc rejects this sort of thing. */
5040 typedef int charset[2];
5041 const charset cs = { 0, 0 };
5042 /* SunOS 4.1.1 cc rejects this. */
5043 char const *const *pcpcc;
5044 char **ppc;
5045 /* NEC SVR4.0.2 mips cc rejects this. */
5046 struct point {int x, y;};
5047 static struct point const zero = {0,0};
5048 /* AIX XL C 1.02.0.0 rejects this.
5049 It does not let you subtract one const X* pointer from another in
5050 an arm of an if-expression whose if-part is not a constant
5051 expression */
5052 const char *g = "string";
5053 pcpcc = &g + (g ? g-g : 0);
5054 /* HPUX 7.0 cc rejects these. */
5055 ++pcpcc;
5056 ppc = (char**) pcpcc;
5057 pcpcc = (char const *const *) ppc;
5058 { /* SCO 3.2v4 cc rejects this sort of thing. */
5059 char tx;
5060 char *t = &tx;
5061 char const *s = 0 ? (char *) 0 : (char const *) 0;
5063 *t++ = 0;
5064 if (s) return 0;
5066 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5067 int x[] = {25, 17};
5068 const int *foo = &x[0];
5069 ++foo;
5071 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5072 typedef const int *iptr;
5073 iptr p = 0;
5074 ++p;
5076 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5077 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5078 struct s { int j; const int *ap[3]; } bx;
5079 struct s *b = &bx; b->j = 5;
5081 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5082 const int foo = 10;
5083 if (!foo) return 0;
5085 return !cs[0] && !zero.x;
5086 #endif
5089 return 0;
5091 _ACEOF
5092 if ac_fn_c_try_compile "$LINENO"; then :
5093 ac_cv_c_const=yes
5094 else
5095 ac_cv_c_const=no
5097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5100 $as_echo "$ac_cv_c_const" >&6; }
5101 if test $ac_cv_c_const = no; then
5103 $as_echo "#define const /**/" >>confdefs.h
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5108 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5109 if ${ac_cv_type_uid_t+:} false; then :
5110 $as_echo_n "(cached) " >&6
5111 else
5112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5113 /* end confdefs.h. */
5114 #include <sys/types.h>
5116 _ACEOF
5117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5118 $EGREP "uid_t" >/dev/null 2>&1; then :
5119 ac_cv_type_uid_t=yes
5120 else
5121 ac_cv_type_uid_t=no
5123 rm -f conftest*
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5127 $as_echo "$ac_cv_type_uid_t" >&6; }
5128 if test $ac_cv_type_uid_t = no; then
5130 $as_echo "#define uid_t int" >>confdefs.h
5133 $as_echo "#define gid_t int" >>confdefs.h
5137 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5138 if test "x$ac_cv_type_mode_t" = xyes; then :
5140 else
5142 cat >>confdefs.h <<_ACEOF
5143 #define mode_t int
5144 _ACEOF
5148 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5149 if test "x$ac_cv_type_pid_t" = xyes; then :
5151 else
5153 cat >>confdefs.h <<_ACEOF
5154 #define pid_t int
5155 _ACEOF
5159 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5160 if test "x$ac_cv_type_size_t" = xyes; then :
5162 else
5164 cat >>confdefs.h <<_ACEOF
5165 #define size_t unsigned int
5166 _ACEOF
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5171 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5172 if ${ac_cv_header_time+:} false; then :
5173 $as_echo_n "(cached) " >&6
5174 else
5175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5176 /* end confdefs.h. */
5177 #include <sys/types.h>
5178 #include <sys/time.h>
5179 #include <time.h>
5182 main ()
5184 if ((struct tm *) 0)
5185 return 0;
5187 return 0;
5189 _ACEOF
5190 if ac_fn_c_try_compile "$LINENO"; then :
5191 ac_cv_header_time=yes
5192 else
5193 ac_cv_header_time=no
5195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5198 $as_echo "$ac_cv_header_time" >&6; }
5199 if test $ac_cv_header_time = yes; then
5201 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5206 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
5207 if test "x$ac_cv_type_uint8_t" = xyes; then :
5209 cat >>confdefs.h <<_ACEOF
5210 #define HAVE_UINT8_T 1
5211 _ACEOF
5215 ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default"
5216 if test "x$ac_cv_type_u_int8_t" = xyes; then :
5218 cat >>confdefs.h <<_ACEOF
5219 #define HAVE_U_INT8_T 1
5220 _ACEOF
5224 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
5225 if test "x$ac_cv_type_uint16_t" = xyes; then :
5227 cat >>confdefs.h <<_ACEOF
5228 #define HAVE_UINT16_T 1
5229 _ACEOF
5233 ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
5234 if test "x$ac_cv_type_u_int16_t" = xyes; then :
5236 cat >>confdefs.h <<_ACEOF
5237 #define HAVE_U_INT16_T 1
5238 _ACEOF
5242 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
5243 if test "x$ac_cv_type_uint32_t" = xyes; then :
5245 cat >>confdefs.h <<_ACEOF
5246 #define HAVE_UINT32_T 1
5247 _ACEOF
5251 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
5252 if test "x$ac_cv_type_u_int32_t" = xyes; then :
5254 cat >>confdefs.h <<_ACEOF
5255 #define HAVE_U_INT32_T 1
5256 _ACEOF
5261 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "$ac_includes_default"
5262 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
5264 cat >>confdefs.h <<_ACEOF
5265 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
5266 _ACEOF
5271 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
5272 #include <sys/socket.h>
5274 if test "x$ac_cv_type_socklen_t" = xyes; then :
5276 else
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
5279 $as_echo_n "checking for socklen_t equivalent... " >&6; }
5280 if ${curl_cv_socklen_t_equiv+:} false; then :
5281 $as_echo_n "(cached) " >&6
5282 else
5284 # Systems have either "struct sockaddr *" or
5285 # "void *" as the second argument to getpeername
5286 curl_cv_socklen_t_equiv=
5287 for arg2 in "struct sockaddr" void; do
5288 for t in int size_t unsigned long "unsigned long"; do
5289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5290 /* end confdefs.h. */
5292 #include <sys/types.h>
5293 #include <sys/socket.h>
5295 int getpeername (int, $arg2 *, $t *);
5298 main ()
5301 $t len;
5302 getpeername(0,0,&len);
5305 return 0;
5307 _ACEOF
5308 if ac_fn_c_try_compile "$LINENO"; then :
5310 curl_cv_socklen_t_equiv="$t"
5311 break
5314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5315 done
5316 done
5318 if test "x$curl_cv_socklen_t_equiv" = x; then
5319 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_socklen_t_equiv" >&5
5325 $as_echo "$curl_cv_socklen_t_equiv" >&6; }
5327 cat >>confdefs.h <<_ACEOF
5328 #define socklen_t $curl_cv_socklen_t_equiv
5329 _ACEOF
5334 # for the fake-rfc2553 stuff - straight from OpenSSH
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
5337 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
5338 if ${ac_cv_have_struct_sockaddr_storage+:} false; then :
5339 $as_echo_n "(cached) " >&6
5340 else
5342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5343 /* end confdefs.h. */
5345 #include <sys/types.h>
5346 #include <sys/socket.h>
5349 main ()
5351 if (sizeof(struct sockaddr_storage)) return 0
5353 return 0;
5355 _ACEOF
5356 if ac_fn_c_try_compile "$LINENO"; then :
5357 ac_cv_have_struct_sockaddr_storage="yes"
5358 else
5359 ac_cv_have_struct_sockaddr_storage="no"
5362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_storage" >&5
5366 $as_echo "$ac_cv_have_struct_sockaddr_storage" >&6; }
5367 if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
5368 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6" >&5
5373 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
5374 if ${ac_cv_have_struct_sockaddr_in6+:} false; then :
5375 $as_echo_n "(cached) " >&6
5376 else
5378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5379 /* end confdefs.h. */
5381 #include <sys/types.h>
5382 #include <netinet/in.h>
5385 main ()
5387 if (sizeof(struct sockaddr_in6)) return 0
5389 return 0;
5391 _ACEOF
5392 if ac_fn_c_try_compile "$LINENO"; then :
5393 ac_cv_have_struct_sockaddr_in6="yes"
5394 else
5395 ac_cv_have_struct_sockaddr_in6="no"
5398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_in6" >&5
5402 $as_echo "$ac_cv_have_struct_sockaddr_in6" >&6; }
5403 if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
5405 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 /**/" >>confdefs.h
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct in6_addr" >&5
5410 $as_echo_n "checking for struct in6_addr... " >&6; }
5411 if ${ac_cv_have_struct_in6_addr+:} false; then :
5412 $as_echo_n "(cached) " >&6
5413 else
5415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5416 /* end confdefs.h. */
5418 #include <sys/types.h>
5419 #include <netinet/in.h>
5422 main ()
5424 if (sizeof(struct in6_addr)) return 0
5426 return 0;
5428 _ACEOF
5429 if ac_fn_c_try_compile "$LINENO"; then :
5430 ac_cv_have_struct_in6_addr="yes"
5431 else
5432 ac_cv_have_struct_in6_addr="no"
5435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_in6_addr" >&5
5439 $as_echo "$ac_cv_have_struct_in6_addr" >&6; }
5440 if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
5442 $as_echo "#define HAVE_STRUCT_IN6_ADDR /**/" >>confdefs.h
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5
5447 $as_echo_n "checking for struct addrinfo... " >&6; }
5448 if ${ac_cv_have_struct_addrinfo+:} false; then :
5449 $as_echo_n "(cached) " >&6
5450 else
5452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5453 /* end confdefs.h. */
5455 #include <sys/types.h>
5456 #include <sys/socket.h>
5457 #include <netdb.h>
5460 main ()
5462 if (sizeof(struct addrinfo)) return 0
5464 return 0;
5466 _ACEOF
5467 if ac_fn_c_try_compile "$LINENO"; then :
5468 ac_cv_have_struct_addrinfo="yes"
5469 else
5470 ac_cv_have_struct_addrinfo="no"
5473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_addrinfo" >&5
5477 $as_echo "$ac_cv_have_struct_addrinfo" >&6; }
5478 if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
5480 $as_echo "#define HAVE_STRUCT_ADDRINFO /**/" >>confdefs.h
5485 # IRIX has a const char return value for gai_strerror()
5486 for ac_func in gai_strerror
5487 do :
5488 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
5489 if test "x$ac_cv_func_gai_strerror" = xyes; then :
5490 cat >>confdefs.h <<_ACEOF
5491 #define HAVE_GAI_STRERROR 1
5492 _ACEOF
5494 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
5496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5497 /* end confdefs.h. */
5499 #include <sys/types.h>
5500 #include <sys/socket.h>
5501 #include <netdb.h>
5503 const char *gai_strerror(int);
5505 main ()
5508 char *str;
5510 str = gai_strerror(0);
5512 return 0;
5514 _ACEOF
5515 if ac_fn_c_try_compile "$LINENO"; then :
5518 $as_echo "#define HAVE_CONST_GAI_STRERROR_PROTO 1" >>confdefs.h
5521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5523 done
5526 # for loginrec.c
5528 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" "
5529 #include <sys/types.h>
5530 #if HAVE_UTMP_H
5531 #include <utmp.h>
5532 #endif
5535 if test "x$ac_cv_member_struct_utmp_ut_host" = xyes; then :
5537 cat >>confdefs.h <<_ACEOF
5538 #define HAVE_STRUCT_UTMP_UT_HOST 1
5539 _ACEOF
5543 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" "
5544 #include <sys/types.h>
5545 #if HAVE_UTMP_H
5546 #include <utmp.h>
5547 #endif
5550 if test "x$ac_cv_member_struct_utmp_ut_pid" = xyes; then :
5552 cat >>confdefs.h <<_ACEOF
5553 #define HAVE_STRUCT_UTMP_UT_PID 1
5554 _ACEOF
5558 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_type" "ac_cv_member_struct_utmp_ut_type" "
5559 #include <sys/types.h>
5560 #if HAVE_UTMP_H
5561 #include <utmp.h>
5562 #endif
5565 if test "x$ac_cv_member_struct_utmp_ut_type" = xyes; then :
5567 cat >>confdefs.h <<_ACEOF
5568 #define HAVE_STRUCT_UTMP_UT_TYPE 1
5569 _ACEOF
5573 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_tv" "ac_cv_member_struct_utmp_ut_tv" "
5574 #include <sys/types.h>
5575 #if HAVE_UTMP_H
5576 #include <utmp.h>
5577 #endif
5580 if test "x$ac_cv_member_struct_utmp_ut_tv" = xyes; then :
5582 cat >>confdefs.h <<_ACEOF
5583 #define HAVE_STRUCT_UTMP_UT_TV 1
5584 _ACEOF
5588 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_id" "ac_cv_member_struct_utmp_ut_id" "
5589 #include <sys/types.h>
5590 #if HAVE_UTMP_H
5591 #include <utmp.h>
5592 #endif
5595 if test "x$ac_cv_member_struct_utmp_ut_id" = xyes; then :
5597 cat >>confdefs.h <<_ACEOF
5598 #define HAVE_STRUCT_UTMP_UT_ID 1
5599 _ACEOF
5603 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_addr" "ac_cv_member_struct_utmp_ut_addr" "
5604 #include <sys/types.h>
5605 #if HAVE_UTMP_H
5606 #include <utmp.h>
5607 #endif
5610 if test "x$ac_cv_member_struct_utmp_ut_addr" = xyes; then :
5612 cat >>confdefs.h <<_ACEOF
5613 #define HAVE_STRUCT_UTMP_UT_ADDR 1
5614 _ACEOF
5618 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_addr_v6" "ac_cv_member_struct_utmp_ut_addr_v6" "
5619 #include <sys/types.h>
5620 #if HAVE_UTMP_H
5621 #include <utmp.h>
5622 #endif
5625 if test "x$ac_cv_member_struct_utmp_ut_addr_v6" = xyes; then :
5627 cat >>confdefs.h <<_ACEOF
5628 #define HAVE_STRUCT_UTMP_UT_ADDR_V6 1
5629 _ACEOF
5633 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_exit" "ac_cv_member_struct_utmp_ut_exit" "
5634 #include <sys/types.h>
5635 #if HAVE_UTMP_H
5636 #include <utmp.h>
5637 #endif
5640 if test "x$ac_cv_member_struct_utmp_ut_exit" = xyes; then :
5642 cat >>confdefs.h <<_ACEOF
5643 #define HAVE_STRUCT_UTMP_UT_EXIT 1
5644 _ACEOF
5648 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_time" "ac_cv_member_struct_utmp_ut_time" "
5649 #include <sys/types.h>
5650 #if HAVE_UTMP_H
5651 #include <utmp.h>
5652 #endif
5655 if test "x$ac_cv_member_struct_utmp_ut_time" = xyes; then :
5657 cat >>confdefs.h <<_ACEOF
5658 #define HAVE_STRUCT_UTMP_UT_TIME 1
5659 _ACEOF
5665 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_host" "ac_cv_member_struct_utmpx_ut_host" "
5666 #include <sys/types.h>
5667 #include <sys/socket.h>
5668 #if HAVE_UTMPX_H
5669 #include <utmpx.h>
5670 #endif
5673 if test "x$ac_cv_member_struct_utmpx_ut_host" = xyes; then :
5675 cat >>confdefs.h <<_ACEOF
5676 #define HAVE_STRUCT_UTMPX_UT_HOST 1
5677 _ACEOF
5681 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_syslen" "ac_cv_member_struct_utmpx_ut_syslen" "
5682 #include <sys/types.h>
5683 #include <sys/socket.h>
5684 #if HAVE_UTMPX_H
5685 #include <utmpx.h>
5686 #endif
5689 if test "x$ac_cv_member_struct_utmpx_ut_syslen" = xyes; then :
5691 cat >>confdefs.h <<_ACEOF
5692 #define HAVE_STRUCT_UTMPX_UT_SYSLEN 1
5693 _ACEOF
5697 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_type" "ac_cv_member_struct_utmpx_ut_type" "
5698 #include <sys/types.h>
5699 #include <sys/socket.h>
5700 #if HAVE_UTMPX_H
5701 #include <utmpx.h>
5702 #endif
5705 if test "x$ac_cv_member_struct_utmpx_ut_type" = xyes; then :
5707 cat >>confdefs.h <<_ACEOF
5708 #define HAVE_STRUCT_UTMPX_UT_TYPE 1
5709 _ACEOF
5713 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_id" "ac_cv_member_struct_utmpx_ut_id" "
5714 #include <sys/types.h>
5715 #include <sys/socket.h>
5716 #if HAVE_UTMPX_H
5717 #include <utmpx.h>
5718 #endif
5721 if test "x$ac_cv_member_struct_utmpx_ut_id" = xyes; then :
5723 cat >>confdefs.h <<_ACEOF
5724 #define HAVE_STRUCT_UTMPX_UT_ID 1
5725 _ACEOF
5729 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_addr" "ac_cv_member_struct_utmpx_ut_addr" "
5730 #include <sys/types.h>
5731 #include <sys/socket.h>
5732 #if HAVE_UTMPX_H
5733 #include <utmpx.h>
5734 #endif
5737 if test "x$ac_cv_member_struct_utmpx_ut_addr" = xyes; then :
5739 cat >>confdefs.h <<_ACEOF
5740 #define HAVE_STRUCT_UTMPX_UT_ADDR 1
5741 _ACEOF
5745 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_addr_v6" "ac_cv_member_struct_utmpx_ut_addr_v6" "
5746 #include <sys/types.h>
5747 #include <sys/socket.h>
5748 #if HAVE_UTMPX_H
5749 #include <utmpx.h>
5750 #endif
5753 if test "x$ac_cv_member_struct_utmpx_ut_addr_v6" = xyes; then :
5755 cat >>confdefs.h <<_ACEOF
5756 #define HAVE_STRUCT_UTMPX_UT_ADDR_V6 1
5757 _ACEOF
5761 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_time" "ac_cv_member_struct_utmpx_ut_time" "
5762 #include <sys/types.h>
5763 #include <sys/socket.h>
5764 #if HAVE_UTMPX_H
5765 #include <utmpx.h>
5766 #endif
5769 if test "x$ac_cv_member_struct_utmpx_ut_time" = xyes; then :
5771 cat >>confdefs.h <<_ACEOF
5772 #define HAVE_STRUCT_UTMPX_UT_TIME 1
5773 _ACEOF
5777 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_tv" "ac_cv_member_struct_utmpx_ut_tv" "
5778 #include <sys/types.h>
5779 #include <sys/socket.h>
5780 #if HAVE_UTMPX_H
5781 #include <utmpx.h>
5782 #endif
5785 if test "x$ac_cv_member_struct_utmpx_ut_tv" = xyes; then :
5787 cat >>confdefs.h <<_ACEOF
5788 #define HAVE_STRUCT_UTMPX_UT_TV 1
5789 _ACEOF
5795 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "
5796 #include <sys/types.h>
5797 #include <sys/socket.h>
5800 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
5802 cat >>confdefs.h <<_ACEOF
5803 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
5804 _ACEOF
5810 for ac_func in endutent getutent getutid getutline pututline setutent
5811 do :
5812 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5813 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5814 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5815 cat >>confdefs.h <<_ACEOF
5816 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5817 _ACEOF
5820 done
5822 for ac_func in utmpname
5823 do :
5824 ac_fn_c_check_func "$LINENO" "utmpname" "ac_cv_func_utmpname"
5825 if test "x$ac_cv_func_utmpname" = xyes; then :
5826 cat >>confdefs.h <<_ACEOF
5827 #define HAVE_UTMPNAME 1
5828 _ACEOF
5831 done
5833 for ac_func in endutxent getutxent getutxid getutxline pututxline
5834 do :
5835 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5836 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5837 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5838 cat >>confdefs.h <<_ACEOF
5839 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5840 _ACEOF
5843 done
5845 for ac_func in setutxent utmpxname
5846 do :
5847 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5848 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5849 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5850 cat >>confdefs.h <<_ACEOF
5851 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5852 _ACEOF
5855 done
5857 for ac_func in logout updwtmp logwtmp
5858 do :
5859 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5860 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5861 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5862 cat >>confdefs.h <<_ACEOF
5863 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5864 _ACEOF
5867 done
5870 # OS X monotonic time
5871 for ac_header in mach/mach_time.h
5872 do :
5873 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach_time.h" "ac_cv_header_mach_mach_time_h" "$ac_includes_default"
5874 if test "x$ac_cv_header_mach_mach_time_h" = xyes; then :
5875 cat >>confdefs.h <<_ACEOF
5876 #define HAVE_MACH_MACH_TIME_H 1
5877 _ACEOF
5881 done
5883 for ac_func in mach_absolute_time
5884 do :
5885 ac_fn_c_check_func "$LINENO" "mach_absolute_time" "ac_cv_func_mach_absolute_time"
5886 if test "x$ac_cv_func_mach_absolute_time" = xyes; then :
5887 cat >>confdefs.h <<_ACEOF
5888 #define HAVE_MACH_ABSOLUTE_TIME 1
5889 _ACEOF
5892 done
5895 for ac_func in explicit_bzero memset_s
5896 do :
5897 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5898 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5899 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5900 cat >>confdefs.h <<_ACEOF
5901 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5902 _ACEOF
5905 done
5909 # Check whether --enable-bundled-libtom was given.
5910 if test "${enable_bundled_libtom+set}" = set; then :
5911 enableval=$enable_bundled_libtom;
5912 if test "x$enableval" = "xyes"; then
5913 BUNDLED_LIBTOM=1
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: Forcing bundled libtom*" >&5
5915 $as_echo "$as_me: Forcing bundled libtom*" >&6;}
5916 else
5917 BUNDLED_LIBTOM=0
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_exptmod in -ltommath" >&5
5919 $as_echo_n "checking for mp_exptmod in -ltommath... " >&6; }
5920 if ${ac_cv_lib_tommath_mp_exptmod+:} false; then :
5921 $as_echo_n "(cached) " >&6
5922 else
5923 ac_check_lib_save_LIBS=$LIBS
5924 LIBS="-ltommath $LIBS"
5925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5926 /* end confdefs.h. */
5928 /* Override any GCC internal prototype to avoid an error.
5929 Use char because int might match the return type of a GCC
5930 builtin and then its argument prototype would still apply. */
5931 #ifdef __cplusplus
5932 extern "C"
5933 #endif
5934 char mp_exptmod ();
5936 main ()
5938 return mp_exptmod ();
5940 return 0;
5942 _ACEOF
5943 if ac_fn_c_try_link "$LINENO"; then :
5944 ac_cv_lib_tommath_mp_exptmod=yes
5945 else
5946 ac_cv_lib_tommath_mp_exptmod=no
5948 rm -f core conftest.err conftest.$ac_objext \
5949 conftest$ac_exeext conftest.$ac_ext
5950 LIBS=$ac_check_lib_save_LIBS
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tommath_mp_exptmod" >&5
5953 $as_echo "$ac_cv_lib_tommath_mp_exptmod" >&6; }
5954 if test "x$ac_cv_lib_tommath_mp_exptmod" = xyes; then :
5955 LIBTOM_LIBS="$LIBTOM_LIBS -ltommath"
5956 else
5957 as_fn_error $? "Missing system libtommath and --disable-bundled-libtom was specified" "$LINENO" 5
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for register_cipher in -ltomcrypt" >&5
5961 $as_echo_n "checking for register_cipher in -ltomcrypt... " >&6; }
5962 if ${ac_cv_lib_tomcrypt_register_cipher+:} false; then :
5963 $as_echo_n "(cached) " >&6
5964 else
5965 ac_check_lib_save_LIBS=$LIBS
5966 LIBS="-ltomcrypt $LIBS"
5967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5968 /* end confdefs.h. */
5970 /* Override any GCC internal prototype to avoid an error.
5971 Use char because int might match the return type of a GCC
5972 builtin and then its argument prototype would still apply. */
5973 #ifdef __cplusplus
5974 extern "C"
5975 #endif
5976 char register_cipher ();
5978 main ()
5980 return register_cipher ();
5982 return 0;
5984 _ACEOF
5985 if ac_fn_c_try_link "$LINENO"; then :
5986 ac_cv_lib_tomcrypt_register_cipher=yes
5987 else
5988 ac_cv_lib_tomcrypt_register_cipher=no
5990 rm -f core conftest.err conftest.$ac_objext \
5991 conftest$ac_exeext conftest.$ac_ext
5992 LIBS=$ac_check_lib_save_LIBS
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tomcrypt_register_cipher" >&5
5995 $as_echo "$ac_cv_lib_tomcrypt_register_cipher" >&6; }
5996 if test "x$ac_cv_lib_tomcrypt_register_cipher" = xyes; then :
5997 LIBTOM_LIBS="$LIBTOM_LIBS -ltomcrypt"
5998 else
5999 as_fn_error $? "Missing system libtomcrypt and --disable-bundled-libtom was specified" "$LINENO" 5
6004 else
6006 BUNDLED_LIBTOM=0
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_exptmod in -ltommath" >&5
6008 $as_echo_n "checking for mp_exptmod in -ltommath... " >&6; }
6009 if ${ac_cv_lib_tommath_mp_exptmod+:} false; then :
6010 $as_echo_n "(cached) " >&6
6011 else
6012 ac_check_lib_save_LIBS=$LIBS
6013 LIBS="-ltommath $LIBS"
6014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6015 /* end confdefs.h. */
6017 /* Override any GCC internal prototype to avoid an error.
6018 Use char because int might match the return type of a GCC
6019 builtin and then its argument prototype would still apply. */
6020 #ifdef __cplusplus
6021 extern "C"
6022 #endif
6023 char mp_exptmod ();
6025 main ()
6027 return mp_exptmod ();
6029 return 0;
6031 _ACEOF
6032 if ac_fn_c_try_link "$LINENO"; then :
6033 ac_cv_lib_tommath_mp_exptmod=yes
6034 else
6035 ac_cv_lib_tommath_mp_exptmod=no
6037 rm -f core conftest.err conftest.$ac_objext \
6038 conftest$ac_exeext conftest.$ac_ext
6039 LIBS=$ac_check_lib_save_LIBS
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tommath_mp_exptmod" >&5
6042 $as_echo "$ac_cv_lib_tommath_mp_exptmod" >&6; }
6043 if test "x$ac_cv_lib_tommath_mp_exptmod" = xyes; then :
6044 LIBTOM_LIBS="$LIBTOM_LIBS -ltommath"
6045 else
6046 BUNDLED_LIBTOM=1
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for register_cipher in -ltomcrypt" >&5
6050 $as_echo_n "checking for register_cipher in -ltomcrypt... " >&6; }
6051 if ${ac_cv_lib_tomcrypt_register_cipher+:} false; then :
6052 $as_echo_n "(cached) " >&6
6053 else
6054 ac_check_lib_save_LIBS=$LIBS
6055 LIBS="-ltomcrypt $LIBS"
6056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6057 /* end confdefs.h. */
6059 /* Override any GCC internal prototype to avoid an error.
6060 Use char because int might match the return type of a GCC
6061 builtin and then its argument prototype would still apply. */
6062 #ifdef __cplusplus
6063 extern "C"
6064 #endif
6065 char register_cipher ();
6067 main ()
6069 return register_cipher ();
6071 return 0;
6073 _ACEOF
6074 if ac_fn_c_try_link "$LINENO"; then :
6075 ac_cv_lib_tomcrypt_register_cipher=yes
6076 else
6077 ac_cv_lib_tomcrypt_register_cipher=no
6079 rm -f core conftest.err conftest.$ac_objext \
6080 conftest$ac_exeext conftest.$ac_ext
6081 LIBS=$ac_check_lib_save_LIBS
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tomcrypt_register_cipher" >&5
6084 $as_echo "$ac_cv_lib_tomcrypt_register_cipher" >&6; }
6085 if test "x$ac_cv_lib_tomcrypt_register_cipher" = xyes; then :
6086 LIBTOM_LIBS="$LIBTOM_LIBS -ltomcrypt"
6087 else
6088 BUNDLED_LIBTOM=1
6096 if test $BUNDLED_LIBTOM = 1 ; then
6098 $as_echo "#define BUNDLED_LIBTOM /**/" >>confdefs.h
6106 # Check whether --enable-lastlog was given.
6107 if test "${enable_lastlog+set}" = set; then :
6108 enableval=$enable_lastlog;
6109 $as_echo "#define DISABLE_LASTLOG /**/" >>confdefs.h
6114 # Check whether --enable-utmp was given.
6115 if test "${enable_utmp+set}" = set; then :
6116 enableval=$enable_utmp;
6117 $as_echo "#define DISABLE_UTMP /**/" >>confdefs.h
6122 # Check whether --enable-utmpx was given.
6123 if test "${enable_utmpx+set}" = set; then :
6124 enableval=$enable_utmpx;
6125 $as_echo "#define DISABLE_UTMPX /**/" >>confdefs.h
6130 # Check whether --enable-wtmp was given.
6131 if test "${enable_wtmp+set}" = set; then :
6132 enableval=$enable_wtmp;
6133 $as_echo "#define DISABLE_WTMP /**/" >>confdefs.h
6138 # Check whether --enable-wtmpx was given.
6139 if test "${enable_wtmpx+set}" = set; then :
6140 enableval=$enable_wtmpx;
6141 $as_echo "#define DISABLE_WTMPX /**/" >>confdefs.h
6146 # Check whether --enable-loginfunc was given.
6147 if test "${enable_loginfunc+set}" = set; then :
6148 enableval=$enable_loginfunc; no_loginfunc_check=1
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: Not using login() etc" >&5
6150 $as_echo "$as_me: Not using login() etc" >&6;}
6154 # Check whether --enable-pututline was given.
6155 if test "${enable_pututline+set}" = set; then :
6156 enableval=$enable_pututline;
6157 $as_echo "#define DISABLE_PUTUTLINE /**/" >>confdefs.h
6162 # Check whether --enable-pututxline was given.
6163 if test "${enable_pututxline+set}" = set; then :
6164 enableval=$enable_pututxline;
6165 $as_echo "#define DISABLE_PUTUTXLINE /**/" >>confdefs.h
6171 # Check whether --with-lastlog was given.
6172 if test "${with_lastlog+set}" = set; then :
6173 withval=$with_lastlog;
6174 if test "x$withval" = "xno" ; then
6175 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
6177 else
6178 conf_lastlog_location=$withval
6185 if test -z "$no_loginfunc_check"; then
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing login" >&5
6187 $as_echo_n "checking for library containing login... " >&6; }
6188 if ${ac_cv_search_login+:} false; then :
6189 $as_echo_n "(cached) " >&6
6190 else
6191 ac_func_search_save_LIBS=$LIBS
6192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6193 /* end confdefs.h. */
6195 /* Override any GCC internal prototype to avoid an error.
6196 Use char because int might match the return type of a GCC
6197 builtin and then its argument prototype would still apply. */
6198 #ifdef __cplusplus
6199 extern "C"
6200 #endif
6201 char login ();
6203 main ()
6205 return login ();
6207 return 0;
6209 _ACEOF
6210 for ac_lib in '' util bsd; do
6211 if test -z "$ac_lib"; then
6212 ac_res="none required"
6213 else
6214 ac_res=-l$ac_lib
6215 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6217 if ac_fn_c_try_link "$LINENO"; then :
6218 ac_cv_search_login=$ac_res
6220 rm -f core conftest.err conftest.$ac_objext \
6221 conftest$ac_exeext
6222 if ${ac_cv_search_login+:} false; then :
6223 break
6225 done
6226 if ${ac_cv_search_login+:} false; then :
6228 else
6229 ac_cv_search_login=no
6231 rm conftest.$ac_ext
6232 LIBS=$ac_func_search_save_LIBS
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_login" >&5
6235 $as_echo "$ac_cv_search_login" >&6; }
6236 ac_res=$ac_cv_search_login
6237 if test "$ac_res" != no; then :
6238 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6240 $as_echo "#define HAVE_LOGIN /**/" >>confdefs.h
6244 for ac_func in logout updwtmp logwtmp
6245 do :
6246 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6247 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6248 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6249 cat >>confdefs.h <<_ACEOF
6250 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6251 _ACEOF
6254 done
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines LASTLOG_FILE" >&5
6260 $as_echo_n "checking if your system defines LASTLOG_FILE... " >&6; }
6261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6262 /* end confdefs.h. */
6264 #include <sys/types.h>
6265 #include <utmp.h>
6266 #ifdef HAVE_LASTLOG_H
6267 # include <lastlog.h>
6268 #endif
6269 #ifdef HAVE_PATHS_H
6270 # include <paths.h>
6271 #endif
6272 #ifdef HAVE_LOGIN_H
6273 # include <login.h>
6274 #endif
6277 main ()
6279 char *lastlog = LASTLOG_FILE;
6281 return 0;
6283 _ACEOF
6284 if ac_fn_c_try_compile "$LINENO"; then :
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6286 $as_echo "yes" >&6; }
6287 else
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6290 $as_echo "no" >&6; }
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines _PATH_LASTLOG" >&5
6292 $as_echo_n "checking if your system defines _PATH_LASTLOG... " >&6; }
6293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6294 /* end confdefs.h. */
6296 #include <sys/types.h>
6297 #include <utmp.h>
6298 #ifdef HAVE_LASTLOG_H
6299 # include <lastlog.h>
6300 #endif
6301 #ifdef HAVE_PATHS_H
6302 # include <paths.h>
6303 #endif
6306 main ()
6308 char *lastlog = _PATH_LASTLOG;
6310 return 0;
6312 _ACEOF
6313 if ac_fn_c_try_compile "$LINENO"; then :
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6315 $as_echo "yes" >&6; }
6316 else
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6319 $as_echo "no" >&6; }
6320 system_lastlog_path=no
6323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6329 if test -z "$conf_lastlog_location"; then
6330 if test x"$system_lastlog_path" = x"no" ; then
6331 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
6332 if (test -d "$f" || test -f "$f") ; then
6333 conf_lastlog_location=$f
6335 done
6336 if test -z "$conf_lastlog_location"; then
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Cannot find lastlog **" >&5
6338 $as_echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
6343 if test -n "$conf_lastlog_location"; then
6345 cat >>confdefs.h <<_ACEOF
6346 #define CONF_LASTLOG_FILE "$conf_lastlog_location"
6347 _ACEOF
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines UTMP_FILE" >&5
6352 $as_echo_n "checking if your system defines UTMP_FILE... " >&6; }
6353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6354 /* end confdefs.h. */
6356 #include <sys/types.h>
6357 #include <utmp.h>
6358 #ifdef HAVE_PATHS_H
6359 # include <paths.h>
6360 #endif
6363 main ()
6365 char *utmp = UTMP_FILE;
6367 return 0;
6369 _ACEOF
6370 if ac_fn_c_try_compile "$LINENO"; then :
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6372 $as_echo "yes" >&6; }
6373 else
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6375 $as_echo "no" >&6; }
6376 system_utmp_path=no
6379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6380 if test -z "$conf_utmp_location"; then
6381 if test x"$system_utmp_path" = x"no" ; then
6382 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
6383 if test -f $f ; then
6384 conf_utmp_location=$f
6386 done
6387 if test -z "$conf_utmp_location"; then
6388 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
6393 if test -n "$conf_utmp_location"; then
6395 cat >>confdefs.h <<_ACEOF
6396 #define CONF_UTMP_FILE "$conf_utmp_location"
6397 _ACEOF
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMP_FILE" >&5
6402 $as_echo_n "checking if your system defines WTMP_FILE... " >&6; }
6403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6404 /* end confdefs.h. */
6406 #include <sys/types.h>
6407 #ifdef HAVE_UTMP_H
6408 # include <utmp.h>
6409 #endif
6410 #ifdef HAVE_PATHS_H
6411 # include <paths.h>
6412 #endif
6415 main ()
6417 char *wtmp = WTMP_FILE;
6419 return 0;
6421 _ACEOF
6422 if ac_fn_c_try_compile "$LINENO"; then :
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6424 $as_echo "yes" >&6; }
6425 else
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6427 $as_echo "no" >&6; }
6428 system_wtmp_path=no
6431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6432 if test -z "$conf_wtmp_location"; then
6433 if test x"$system_wtmp_path" = x"no" ; then
6434 for f in /usr/adm/wtmp /var/log/wtmp; do
6435 if test -f $f ; then
6436 conf_wtmp_location=$f
6438 done
6439 if test -z "$conf_wtmp_location"; then
6440 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
6445 if test -n "$conf_wtmp_location"; then
6447 cat >>confdefs.h <<_ACEOF
6448 #define CONF_WTMP_FILE "$conf_wtmp_location"
6449 _ACEOF
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines UTMPX_FILE" >&5
6455 $as_echo_n "checking if your system defines UTMPX_FILE... " >&6; }
6456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6457 /* end confdefs.h. */
6459 #include <sys/types.h>
6460 #include <utmp.h>
6461 #ifdef HAVE_UTMPX_H
6462 #include <utmpx.h>
6463 #endif
6464 #ifdef HAVE_PATHS_H
6465 # include <paths.h>
6466 #endif
6469 main ()
6471 char *utmpx = UTMPX_FILE;
6473 return 0;
6475 _ACEOF
6476 if ac_fn_c_try_compile "$LINENO"; then :
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6478 $as_echo "yes" >&6; }
6479 else
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6481 $as_echo "no" >&6; }
6482 system_utmpx_path=no
6485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6486 if test -z "$conf_utmpx_location"; then
6487 if test x"$system_utmpx_path" = x"no" ; then
6488 $as_echo "#define DISABLE_UTMPX 1" >>confdefs.h
6491 else
6493 cat >>confdefs.h <<_ACEOF
6494 #define CONF_UTMPX_FILE "$conf_utmpx_location"
6495 _ACEOF
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMPX_FILE" >&5
6500 $as_echo_n "checking if your system defines WTMPX_FILE... " >&6; }
6501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6502 /* end confdefs.h. */
6504 #include <sys/types.h>
6505 #ifdef HAVE_UTMP_H
6506 # include <utmp.h>
6507 #endif
6508 #ifdef HAVE_UTMPX_H
6509 # include <utmpx.h>
6510 #endif
6511 #ifdef HAVE_PATHS_H
6512 # include <paths.h>
6513 #endif
6516 main ()
6518 char *wtmpx = WTMPX_FILE;
6520 return 0;
6522 _ACEOF
6523 if ac_fn_c_try_compile "$LINENO"; then :
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6525 $as_echo "yes" >&6; }
6526 else
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6528 $as_echo "no" >&6; }
6529 system_wtmpx_path=no
6532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6533 if test -z "$conf_wtmpx_location"; then
6534 if test x"$system_wtmpx_path" = x"no" ; then
6535 $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h
6538 else
6540 cat >>confdefs.h <<_ACEOF
6541 #define CONF_WTMPX_FILE "$conf_wtmpx_location"
6542 _ACEOF
6546 # Checks for library functions.
6547 if test $ac_cv_c_compiler_gnu = yes; then
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
6549 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
6550 if ${ac_cv_prog_gcc_traditional+:} false; then :
6551 $as_echo_n "(cached) " >&6
6552 else
6553 ac_pattern="Autoconf.*'x'"
6554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6555 /* end confdefs.h. */
6556 #include <sgtty.h>
6557 Autoconf TIOCGETP
6558 _ACEOF
6559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6560 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
6561 ac_cv_prog_gcc_traditional=yes
6562 else
6563 ac_cv_prog_gcc_traditional=no
6565 rm -f conftest*
6568 if test $ac_cv_prog_gcc_traditional = no; then
6569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6570 /* end confdefs.h. */
6571 #include <termio.h>
6572 Autoconf TCGETA
6573 _ACEOF
6574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6575 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
6576 ac_cv_prog_gcc_traditional=yes
6578 rm -f conftest*
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
6583 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
6584 if test $ac_cv_prog_gcc_traditional = yes; then
6585 CC="$CC -traditional"
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
6590 $as_echo_n "checking for working memcmp... " >&6; }
6591 if ${ac_cv_func_memcmp_working+:} false; then :
6592 $as_echo_n "(cached) " >&6
6593 else
6594 if test "$cross_compiling" = yes; then :
6595 ac_cv_func_memcmp_working=no
6596 else
6597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6598 /* end confdefs.h. */
6599 $ac_includes_default
6601 main ()
6604 /* Some versions of memcmp are not 8-bit clean. */
6605 char c0 = '\100', c1 = '\200', c2 = '\201';
6606 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
6607 return 1;
6609 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6610 or more and with at least one buffer not starting on a 4-byte boundary.
6611 William Lewis provided this test program. */
6613 char foo[21];
6614 char bar[21];
6615 int i;
6616 for (i = 0; i < 4; i++)
6618 char *a = foo + i;
6619 char *b = bar + i;
6620 strcpy (a, "--------01111111");
6621 strcpy (b, "--------10000000");
6622 if (memcmp (a, b, 16) >= 0)
6623 return 1;
6625 return 0;
6629 return 0;
6631 _ACEOF
6632 if ac_fn_c_try_run "$LINENO"; then :
6633 ac_cv_func_memcmp_working=yes
6634 else
6635 ac_cv_func_memcmp_working=no
6637 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6638 conftest.$ac_objext conftest.beam conftest.$ac_ext
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
6643 $as_echo "$ac_cv_func_memcmp_working" >&6; }
6644 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
6645 *" memcmp.$ac_objext "* ) ;;
6646 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
6648 esac
6651 for ac_header in sys/select.h sys/socket.h
6652 do :
6653 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6654 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6655 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6656 cat >>confdefs.h <<_ACEOF
6657 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6658 _ACEOF
6662 done
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
6665 $as_echo_n "checking types of arguments for select... " >&6; }
6666 if ${ac_cv_func_select_args+:} false; then :
6667 $as_echo_n "(cached) " >&6
6668 else
6669 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
6670 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
6671 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
6672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6673 /* end confdefs.h. */
6674 $ac_includes_default
6675 #ifdef HAVE_SYS_SELECT_H
6676 # include <sys/select.h>
6677 #endif
6678 #ifdef HAVE_SYS_SOCKET_H
6679 # include <sys/socket.h>
6680 #endif
6683 main ()
6685 extern int select ($ac_arg1,
6686 $ac_arg234, $ac_arg234, $ac_arg234,
6687 $ac_arg5);
6689 return 0;
6691 _ACEOF
6692 if ac_fn_c_try_compile "$LINENO"; then :
6693 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
6695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6696 done
6697 done
6698 done
6699 # Provide a safe default value.
6700 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
6704 $as_echo "$ac_cv_func_select_args" >&6; }
6705 ac_save_IFS=$IFS; IFS=','
6706 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
6707 IFS=$ac_save_IFS
6708 shift
6710 cat >>confdefs.h <<_ACEOF
6711 #define SELECT_TYPE_ARG1 $1
6712 _ACEOF
6715 cat >>confdefs.h <<_ACEOF
6716 #define SELECT_TYPE_ARG234 ($2)
6717 _ACEOF
6720 cat >>confdefs.h <<_ACEOF
6721 #define SELECT_TYPE_ARG5 ($3)
6722 _ACEOF
6724 rm -f conftest*
6726 for ac_func in dup2 getpass getspnam getusershell memset putenv select socket strdup clearenv strlcpy strlcat daemon basename _getpty getaddrinfo freeaddrinfo getnameinfo fork writev
6727 do :
6728 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6729 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6730 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6731 cat >>confdefs.h <<_ACEOF
6732 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6733 _ACEOF
6736 done
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing basename" >&5
6740 $as_echo_n "checking for library containing basename... " >&6; }
6741 if ${ac_cv_search_basename+:} false; then :
6742 $as_echo_n "(cached) " >&6
6743 else
6744 ac_func_search_save_LIBS=$LIBS
6745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6746 /* end confdefs.h. */
6748 /* Override any GCC internal prototype to avoid an error.
6749 Use char because int might match the return type of a GCC
6750 builtin and then its argument prototype would still apply. */
6751 #ifdef __cplusplus
6752 extern "C"
6753 #endif
6754 char basename ();
6756 main ()
6758 return basename ();
6760 return 0;
6762 _ACEOF
6763 for ac_lib in '' gen; do
6764 if test -z "$ac_lib"; then
6765 ac_res="none required"
6766 else
6767 ac_res=-l$ac_lib
6768 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6770 if ac_fn_c_try_link "$LINENO"; then :
6771 ac_cv_search_basename=$ac_res
6773 rm -f core conftest.err conftest.$ac_objext \
6774 conftest$ac_exeext
6775 if ${ac_cv_search_basename+:} false; then :
6776 break
6778 done
6779 if ${ac_cv_search_basename+:} false; then :
6781 else
6782 ac_cv_search_basename=no
6784 rm conftest.$ac_ext
6785 LIBS=$ac_func_search_save_LIBS
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_basename" >&5
6788 $as_echo "$ac_cv_search_basename" >&6; }
6789 ac_res=$ac_cv_search_basename
6790 if test "$ac_res" != no; then :
6791 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6792 $as_echo "#define HAVE_BASENAME 1" >>confdefs.h
6797 # Solaris needs ptmx
6798 if test -z "$no_ptmx_check" ; then
6799 if test x"$cross_compiling" = x"no" ; then
6800 if test -e /dev/ptmx ; then
6802 $as_echo "#define USE_DEV_PTMX /**/" >>confdefs.h
6805 else
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: Not checking for /dev/ptmx, we're cross-compiling" >&5
6807 $as_echo "$as_me: Not checking for /dev/ptmx, we're cross-compiling" >&6;}
6811 if test -z "$no_ptc_check" ; then
6812 if test x"$cross_compiling" = x"no" ; then
6813 if test -e /dev/ptc ; then
6815 $as_echo "#define HAVE_DEV_PTS_AND_PTC /**/" >>confdefs.h
6818 else
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: Not checking for /dev/ptc & /dev/pts since we're cross-compiling" >&5
6820 $as_echo "$as_me: Not checking for /dev/ptc & /dev/pts since we're cross-compiling" >&6;}
6826 # XXX there must be a nicer way to do this
6827 if test $BUNDLED_LIBTOM = 1 ; then
6828 as_dir=libtomcrypt/src/ciphers/aes; as_fn_mkdir_p
6829 as_dir=libtomcrypt/src/ciphers/safer; as_fn_mkdir_p
6830 as_dir=libtomcrypt/src/ciphers/twofish; as_fn_mkdir_p
6831 as_dir=libtomcrypt/src/encauth/ccm; as_fn_mkdir_p
6832 as_dir=libtomcrypt/src/encauth/eax; as_fn_mkdir_p
6833 as_dir=libtomcrypt/src/encauth/gcm; as_fn_mkdir_p
6834 as_dir=libtomcrypt/src/encauth/ocb; as_fn_mkdir_p
6835 as_dir=libtomcrypt/src/hashes; as_fn_mkdir_p
6836 as_dir=libtomcrypt/src/hashes/chc; as_fn_mkdir_p
6837 as_dir=libtomcrypt/src/hashes/helper; as_fn_mkdir_p
6838 as_dir=libtomcrypt/src/hashes/sha2; as_fn_mkdir_p
6839 as_dir=libtomcrypt/src/hashes/whirl; as_fn_mkdir_p
6840 as_dir=libtomcrypt/src/mac/hmac; as_fn_mkdir_p
6841 as_dir=libtomcrypt/src/mac/omac; as_fn_mkdir_p
6842 as_dir=libtomcrypt/src/mac/pelican; as_fn_mkdir_p
6843 as_dir=libtomcrypt/src/mac/pmac; as_fn_mkdir_p
6844 as_dir=libtomcrypt/src/mac/f9; as_fn_mkdir_p
6845 as_dir=libtomcrypt/src/mac/xcbc; as_fn_mkdir_p
6846 as_dir=libtomcrypt/src/math/fp; as_fn_mkdir_p
6847 as_dir=libtomcrypt/src/misc/base64; as_fn_mkdir_p
6848 as_dir=libtomcrypt/src/misc/crypt; as_fn_mkdir_p
6849 as_dir=libtomcrypt/src/misc/mpi; as_fn_mkdir_p
6850 as_dir=libtomcrypt/src/misc/pkcs5; as_fn_mkdir_p
6851 as_dir=libtomcrypt/src/modes/cbc; as_fn_mkdir_p
6852 as_dir=libtomcrypt/src/modes/cfb; as_fn_mkdir_p
6853 as_dir=libtomcrypt/src/modes/ctr; as_fn_mkdir_p
6854 as_dir=libtomcrypt/src/modes/ecb; as_fn_mkdir_p
6855 as_dir=libtomcrypt/src/modes/ofb; as_fn_mkdir_p
6856 as_dir=libtomcrypt/src/modes/f8; as_fn_mkdir_p
6857 as_dir=libtomcrypt/src/modes/lrw; as_fn_mkdir_p
6858 as_dir=libtomcrypt/src/pk/asn1/der/bit; as_fn_mkdir_p
6859 as_dir=libtomcrypt/src/pk/asn1/der/boolean; as_fn_mkdir_p
6860 as_dir=libtomcrypt/src/pk/asn1/der/choice; as_fn_mkdir_p
6861 as_dir=libtomcrypt/src/pk/asn1/der/ia5; as_fn_mkdir_p
6862 as_dir=libtomcrypt/src/pk/asn1/der/integer; as_fn_mkdir_p
6863 as_dir=libtomcrypt/src/pk/asn1/der/object_identifier; as_fn_mkdir_p
6864 as_dir=libtomcrypt/src/pk/asn1/der/octet; as_fn_mkdir_p
6865 as_dir=libtomcrypt/src/pk/asn1/der/printable_string; as_fn_mkdir_p
6866 as_dir=libtomcrypt/src/pk/asn1/der/sequence; as_fn_mkdir_p
6867 as_dir=libtomcrypt/src/pk/asn1/der/set; as_fn_mkdir_p
6868 as_dir=libtomcrypt/src/pk/asn1/der/short_integer; as_fn_mkdir_p
6869 as_dir=libtomcrypt/src/pk/asn1/der/utctime; as_fn_mkdir_p
6870 as_dir=libtomcrypt/src/pk/asn1/der/utf8; as_fn_mkdir_p
6871 as_dir=libtomcrypt/src/pk/dh; as_fn_mkdir_p
6872 as_dir=libtomcrypt/src/pk/dsa; as_fn_mkdir_p
6873 as_dir=libtomcrypt/src/pk/ecc; as_fn_mkdir_p
6874 as_dir=libtomcrypt/src/pk/katja; as_fn_mkdir_p
6875 as_dir=libtomcrypt/src/pk/pkcs1; as_fn_mkdir_p
6876 as_dir=libtomcrypt/src/pk/rsa; as_fn_mkdir_p
6877 as_dir=libtomcrypt/src/prngs; as_fn_mkdir_p
6878 LIBTOM_FILES="libtomcrypt/Makefile libtommath/Makefile"
6880 ac_config_headers="$ac_config_headers config.h"
6882 ac_config_files="$ac_config_files Makefile $LIBTOM_FILES"
6884 cat >confcache <<\_ACEOF
6885 # This file is a shell script that caches the results of configure
6886 # tests run on this system so they can be shared between configure
6887 # scripts and configure runs, see configure's option --config-cache.
6888 # It is not useful on other systems. If it contains results you don't
6889 # want to keep, you may remove or edit it.
6891 # config.status only pays attention to the cache file if you give it
6892 # the --recheck option to rerun configure.
6894 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6895 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6896 # following values.
6898 _ACEOF
6900 # The following way of writing the cache mishandles newlines in values,
6901 # but we know of no workaround that is simple, portable, and efficient.
6902 # So, we kill variables containing newlines.
6903 # Ultrix sh set writes to stderr and can't be redirected directly,
6904 # and sets the high bit in the cache file unless we assign to the vars.
6906 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6907 eval ac_val=\$$ac_var
6908 case $ac_val in #(
6909 *${as_nl}*)
6910 case $ac_var in #(
6911 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6912 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6913 esac
6914 case $ac_var in #(
6915 _ | IFS | as_nl) ;; #(
6916 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6917 *) { eval $ac_var=; unset $ac_var;} ;;
6918 esac ;;
6919 esac
6920 done
6922 (set) 2>&1 |
6923 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6924 *${as_nl}ac_space=\ *)
6925 # `set' does not quote correctly, so add quotes: double-quote
6926 # substitution turns \\\\ into \\, and sed turns \\ into \.
6927 sed -n \
6928 "s/'/'\\\\''/g;
6929 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6930 ;; #(
6932 # `set' quotes correctly as required by POSIX, so do not add quotes.
6933 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6935 esac |
6936 sort
6938 sed '
6939 /^ac_cv_env_/b end
6940 t clear
6941 :clear
6942 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6943 t end
6944 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6945 :end' >>confcache
6946 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6947 if test -w "$cache_file"; then
6948 if test "x$cache_file" != "x/dev/null"; then
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6950 $as_echo "$as_me: updating cache $cache_file" >&6;}
6951 if test ! -f "$cache_file" || test -h "$cache_file"; then
6952 cat confcache >"$cache_file"
6953 else
6954 case $cache_file in #(
6955 */* | ?:*)
6956 mv -f confcache "$cache_file"$$ &&
6957 mv -f "$cache_file"$$ "$cache_file" ;; #(
6959 mv -f confcache "$cache_file" ;;
6960 esac
6963 else
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6965 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6968 rm -f confcache
6970 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6971 # Let make expand exec_prefix.
6972 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6974 DEFS=-DHAVE_CONFIG_H
6976 ac_libobjs=
6977 ac_ltlibobjs=
6979 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6980 # 1. Remove the extension, and $U if already installed.
6981 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6982 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6983 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6984 # will be set to the directory where LIBOBJS objects are built.
6985 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6986 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6987 done
6988 LIBOBJS=$ac_libobjs
6990 LTLIBOBJS=$ac_ltlibobjs
6994 : "${CONFIG_STATUS=./config.status}"
6995 ac_write_fail=0
6996 ac_clean_files_save=$ac_clean_files
6997 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6999 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7000 as_write_fail=0
7001 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7002 #! $SHELL
7003 # Generated by $as_me.
7004 # Run this file to recreate the current configuration.
7005 # Compiler output produced by configure, useful for debugging
7006 # configure, is in config.log if it exists.
7008 debug=false
7009 ac_cs_recheck=false
7010 ac_cs_silent=false
7012 SHELL=\${CONFIG_SHELL-$SHELL}
7013 export SHELL
7014 _ASEOF
7015 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7016 ## -------------------- ##
7017 ## M4sh Initialization. ##
7018 ## -------------------- ##
7020 # Be more Bourne compatible
7021 DUALCASE=1; export DUALCASE # for MKS sh
7022 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7023 emulate sh
7024 NULLCMD=:
7025 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7026 # is contrary to our usage. Disable this feature.
7027 alias -g '${1+"$@"}'='"$@"'
7028 setopt NO_GLOB_SUBST
7029 else
7030 case `(set -o) 2>/dev/null` in #(
7031 *posix*) :
7032 set -o posix ;; #(
7033 *) :
7035 esac
7039 as_nl='
7041 export as_nl
7042 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7043 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7044 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7045 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7046 # Prefer a ksh shell builtin over an external printf program on Solaris,
7047 # but without wasting forks for bash or zsh.
7048 if test -z "$BASH_VERSION$ZSH_VERSION" \
7049 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7050 as_echo='print -r --'
7051 as_echo_n='print -rn --'
7052 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7053 as_echo='printf %s\n'
7054 as_echo_n='printf %s'
7055 else
7056 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7057 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7058 as_echo_n='/usr/ucb/echo -n'
7059 else
7060 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7061 as_echo_n_body='eval
7062 arg=$1;
7063 case $arg in #(
7064 *"$as_nl"*)
7065 expr "X$arg" : "X\\(.*\\)$as_nl";
7066 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7067 esac;
7068 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7070 export as_echo_n_body
7071 as_echo_n='sh -c $as_echo_n_body as_echo'
7073 export as_echo_body
7074 as_echo='sh -c $as_echo_body as_echo'
7077 # The user is always right.
7078 if test "${PATH_SEPARATOR+set}" != set; then
7079 PATH_SEPARATOR=:
7080 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7081 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7082 PATH_SEPARATOR=';'
7087 # IFS
7088 # We need space, tab and new line, in precisely that order. Quoting is
7089 # there to prevent editors from complaining about space-tab.
7090 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7091 # splitting by setting IFS to empty value.)
7092 IFS=" "" $as_nl"
7094 # Find who we are. Look in the path if we contain no directory separator.
7095 as_myself=
7096 case $0 in #((
7097 *[\\/]* ) as_myself=$0 ;;
7098 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099 for as_dir in $PATH
7101 IFS=$as_save_IFS
7102 test -z "$as_dir" && as_dir=.
7103 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7104 done
7105 IFS=$as_save_IFS
7108 esac
7109 # We did not find ourselves, most probably we were run as `sh COMMAND'
7110 # in which case we are not to be found in the path.
7111 if test "x$as_myself" = x; then
7112 as_myself=$0
7114 if test ! -f "$as_myself"; then
7115 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7116 exit 1
7119 # Unset variables that we do not need and which cause bugs (e.g. in
7120 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7121 # suppresses any "Segmentation fault" message there. '((' could
7122 # trigger a bug in pdksh 5.2.14.
7123 for as_var in BASH_ENV ENV MAIL MAILPATH
7124 do eval test x\${$as_var+set} = xset \
7125 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7126 done
7127 PS1='$ '
7128 PS2='> '
7129 PS4='+ '
7131 # NLS nuisances.
7132 LC_ALL=C
7133 export LC_ALL
7134 LANGUAGE=C
7135 export LANGUAGE
7137 # CDPATH.
7138 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7141 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7142 # ----------------------------------------
7143 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7144 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7145 # script with STATUS, using 1 if that was 0.
7146 as_fn_error ()
7148 as_status=$1; test $as_status -eq 0 && as_status=1
7149 if test "$4"; then
7150 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7151 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7153 $as_echo "$as_me: error: $2" >&2
7154 as_fn_exit $as_status
7155 } # as_fn_error
7158 # as_fn_set_status STATUS
7159 # -----------------------
7160 # Set $? to STATUS, without forking.
7161 as_fn_set_status ()
7163 return $1
7164 } # as_fn_set_status
7166 # as_fn_exit STATUS
7167 # -----------------
7168 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7169 as_fn_exit ()
7171 set +e
7172 as_fn_set_status $1
7173 exit $1
7174 } # as_fn_exit
7176 # as_fn_unset VAR
7177 # ---------------
7178 # Portably unset VAR.
7179 as_fn_unset ()
7181 { eval $1=; unset $1;}
7183 as_unset=as_fn_unset
7184 # as_fn_append VAR VALUE
7185 # ----------------------
7186 # Append the text in VALUE to the end of the definition contained in VAR. Take
7187 # advantage of any shell optimizations that allow amortized linear growth over
7188 # repeated appends, instead of the typical quadratic growth present in naive
7189 # implementations.
7190 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7191 eval 'as_fn_append ()
7193 eval $1+=\$2
7195 else
7196 as_fn_append ()
7198 eval $1=\$$1\$2
7200 fi # as_fn_append
7202 # as_fn_arith ARG...
7203 # ------------------
7204 # Perform arithmetic evaluation on the ARGs, and store the result in the
7205 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7206 # must be portable across $(()) and expr.
7207 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7208 eval 'as_fn_arith ()
7210 as_val=$(( $* ))
7212 else
7213 as_fn_arith ()
7215 as_val=`expr "$@" || test $? -eq 1`
7217 fi # as_fn_arith
7220 if expr a : '\(a\)' >/dev/null 2>&1 &&
7221 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7222 as_expr=expr
7223 else
7224 as_expr=false
7227 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7228 as_basename=basename
7229 else
7230 as_basename=false
7233 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7234 as_dirname=dirname
7235 else
7236 as_dirname=false
7239 as_me=`$as_basename -- "$0" ||
7240 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7241 X"$0" : 'X\(//\)$' \| \
7242 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7243 $as_echo X/"$0" |
7244 sed '/^.*\/\([^/][^/]*\)\/*$/{
7245 s//\1/
7248 /^X\/\(\/\/\)$/{
7249 s//\1/
7252 /^X\/\(\/\).*/{
7253 s//\1/
7256 s/.*/./; q'`
7258 # Avoid depending upon Character Ranges.
7259 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7260 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7261 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7262 as_cr_digits='0123456789'
7263 as_cr_alnum=$as_cr_Letters$as_cr_digits
7265 ECHO_C= ECHO_N= ECHO_T=
7266 case `echo -n x` in #(((((
7267 -n*)
7268 case `echo 'xy\c'` in
7269 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7270 xy) ECHO_C='\c';;
7271 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7272 ECHO_T=' ';;
7273 esac;;
7275 ECHO_N='-n';;
7276 esac
7278 rm -f conf$$ conf$$.exe conf$$.file
7279 if test -d conf$$.dir; then
7280 rm -f conf$$.dir/conf$$.file
7281 else
7282 rm -f conf$$.dir
7283 mkdir conf$$.dir 2>/dev/null
7285 if (echo >conf$$.file) 2>/dev/null; then
7286 if ln -s conf$$.file conf$$ 2>/dev/null; then
7287 as_ln_s='ln -s'
7288 # ... but there are two gotchas:
7289 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7290 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7291 # In both cases, we have to default to `cp -pR'.
7292 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7293 as_ln_s='cp -pR'
7294 elif ln conf$$.file conf$$ 2>/dev/null; then
7295 as_ln_s=ln
7296 else
7297 as_ln_s='cp -pR'
7299 else
7300 as_ln_s='cp -pR'
7302 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7303 rmdir conf$$.dir 2>/dev/null
7306 # as_fn_mkdir_p
7307 # -------------
7308 # Create "$as_dir" as a directory, including parents if necessary.
7309 as_fn_mkdir_p ()
7312 case $as_dir in #(
7313 -*) as_dir=./$as_dir;;
7314 esac
7315 test -d "$as_dir" || eval $as_mkdir_p || {
7316 as_dirs=
7317 while :; do
7318 case $as_dir in #(
7319 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7320 *) as_qdir=$as_dir;;
7321 esac
7322 as_dirs="'$as_qdir' $as_dirs"
7323 as_dir=`$as_dirname -- "$as_dir" ||
7324 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7325 X"$as_dir" : 'X\(//\)[^/]' \| \
7326 X"$as_dir" : 'X\(//\)$' \| \
7327 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7328 $as_echo X"$as_dir" |
7329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7330 s//\1/
7333 /^X\(\/\/\)[^/].*/{
7334 s//\1/
7337 /^X\(\/\/\)$/{
7338 s//\1/
7341 /^X\(\/\).*/{
7342 s//\1/
7345 s/.*/./; q'`
7346 test -d "$as_dir" && break
7347 done
7348 test -z "$as_dirs" || eval "mkdir $as_dirs"
7349 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7352 } # as_fn_mkdir_p
7353 if mkdir -p . 2>/dev/null; then
7354 as_mkdir_p='mkdir -p "$as_dir"'
7355 else
7356 test -d ./-p && rmdir ./-p
7357 as_mkdir_p=false
7361 # as_fn_executable_p FILE
7362 # -----------------------
7363 # Test if FILE is an executable regular file.
7364 as_fn_executable_p ()
7366 test -f "$1" && test -x "$1"
7367 } # as_fn_executable_p
7368 as_test_x='test -x'
7369 as_executable_p=as_fn_executable_p
7371 # Sed expression to map a string onto a valid CPP name.
7372 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7374 # Sed expression to map a string onto a valid variable name.
7375 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7378 exec 6>&1
7379 ## ----------------------------------- ##
7380 ## Main body of $CONFIG_STATUS script. ##
7381 ## ----------------------------------- ##
7382 _ASEOF
7383 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7385 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7386 # Save the log message, to keep $0 and so on meaningful, and to
7387 # report actual input values of CONFIG_FILES etc. instead of their
7388 # values after options handling.
7389 ac_log="
7390 This file was extended by $as_me, which was
7391 generated by GNU Autoconf 2.69. Invocation command line was
7393 CONFIG_FILES = $CONFIG_FILES
7394 CONFIG_HEADERS = $CONFIG_HEADERS
7395 CONFIG_LINKS = $CONFIG_LINKS
7396 CONFIG_COMMANDS = $CONFIG_COMMANDS
7397 $ $0 $@
7399 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7402 _ACEOF
7404 case $ac_config_files in *"
7405 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7406 esac
7408 case $ac_config_headers in *"
7409 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7410 esac
7413 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7414 # Files that config.status was made for.
7415 config_files="$ac_config_files"
7416 config_headers="$ac_config_headers"
7418 _ACEOF
7420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7421 ac_cs_usage="\
7422 \`$as_me' instantiates files and other configuration actions
7423 from templates according to the current configuration. Unless the files
7424 and actions are specified as TAGs, all are instantiated by default.
7426 Usage: $0 [OPTION]... [TAG]...
7428 -h, --help print this help, then exit
7429 -V, --version print version number and configuration settings, then exit
7430 --config print configuration, then exit
7431 -q, --quiet, --silent
7432 do not print progress messages
7433 -d, --debug don't remove temporary files
7434 --recheck update $as_me by reconfiguring in the same conditions
7435 --file=FILE[:TEMPLATE]
7436 instantiate the configuration file FILE
7437 --header=FILE[:TEMPLATE]
7438 instantiate the configuration header FILE
7440 Configuration files:
7441 $config_files
7443 Configuration headers:
7444 $config_headers
7446 Report bugs to the package provider."
7448 _ACEOF
7449 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7450 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7451 ac_cs_version="\\
7452 config.status
7453 configured by $0, generated by GNU Autoconf 2.69,
7454 with options \\"\$ac_cs_config\\"
7456 Copyright (C) 2012 Free Software Foundation, Inc.
7457 This config.status script is free software; the Free Software Foundation
7458 gives unlimited permission to copy, distribute and modify it."
7460 ac_pwd='$ac_pwd'
7461 srcdir='$srcdir'
7462 test -n "\$AWK" || AWK=awk
7463 _ACEOF
7465 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7466 # The default lists apply if the user does not specify any file.
7467 ac_need_defaults=:
7468 while test $# != 0
7470 case $1 in
7471 --*=?*)
7472 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7473 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7474 ac_shift=:
7476 --*=)
7477 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7478 ac_optarg=
7479 ac_shift=:
7482 ac_option=$1
7483 ac_optarg=$2
7484 ac_shift=shift
7486 esac
7488 case $ac_option in
7489 # Handling of the options.
7490 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7491 ac_cs_recheck=: ;;
7492 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7493 $as_echo "$ac_cs_version"; exit ;;
7494 --config | --confi | --conf | --con | --co | --c )
7495 $as_echo "$ac_cs_config"; exit ;;
7496 --debug | --debu | --deb | --de | --d | -d )
7497 debug=: ;;
7498 --file | --fil | --fi | --f )
7499 $ac_shift
7500 case $ac_optarg in
7501 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7502 '') as_fn_error $? "missing file argument" ;;
7503 esac
7504 as_fn_append CONFIG_FILES " '$ac_optarg'"
7505 ac_need_defaults=false;;
7506 --header | --heade | --head | --hea )
7507 $ac_shift
7508 case $ac_optarg in
7509 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7510 esac
7511 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7512 ac_need_defaults=false;;
7513 --he | --h)
7514 # Conflict between --help and --header
7515 as_fn_error $? "ambiguous option: \`$1'
7516 Try \`$0 --help' for more information.";;
7517 --help | --hel | -h )
7518 $as_echo "$ac_cs_usage"; exit ;;
7519 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7520 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7521 ac_cs_silent=: ;;
7523 # This is an error.
7524 -*) as_fn_error $? "unrecognized option: \`$1'
7525 Try \`$0 --help' for more information." ;;
7527 *) as_fn_append ac_config_targets " $1"
7528 ac_need_defaults=false ;;
7530 esac
7531 shift
7532 done
7534 ac_configure_extra_args=
7536 if $ac_cs_silent; then
7537 exec 6>/dev/null
7538 ac_configure_extra_args="$ac_configure_extra_args --silent"
7541 _ACEOF
7542 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7543 if \$ac_cs_recheck; then
7544 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7545 shift
7546 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7547 CONFIG_SHELL='$SHELL'
7548 export CONFIG_SHELL
7549 exec "\$@"
7552 _ACEOF
7553 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7554 exec 5>>config.log
7556 echo
7557 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7558 ## Running $as_me. ##
7559 _ASBOX
7560 $as_echo "$ac_log"
7561 } >&5
7563 _ACEOF
7564 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7565 _ACEOF
7567 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7569 # Handling of arguments.
7570 for ac_config_target in $ac_config_targets
7572 case $ac_config_target in
7573 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7574 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7575 "$LIBTOM_FILES") CONFIG_FILES="$CONFIG_FILES $LIBTOM_FILES" ;;
7577 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7578 esac
7579 done
7582 # If the user did not use the arguments to specify the items to instantiate,
7583 # then the envvar interface is used. Set only those that are not.
7584 # We use the long form for the default assignment because of an extremely
7585 # bizarre bug on SunOS 4.1.3.
7586 if $ac_need_defaults; then
7587 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7588 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7591 # Have a temporary directory for convenience. Make it in the build tree
7592 # simply because there is no reason against having it here, and in addition,
7593 # creating and moving files from /tmp can sometimes cause problems.
7594 # Hook for its removal unless debugging.
7595 # Note that there is a small window in which the directory will not be cleaned:
7596 # after its creation but before its name has been assigned to `$tmp'.
7597 $debug ||
7599 tmp= ac_tmp=
7600 trap 'exit_status=$?
7601 : "${ac_tmp:=$tmp}"
7602 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7604 trap 'as_fn_exit 1' 1 2 13 15
7606 # Create a (secure) tmp directory for tmp files.
7609 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7610 test -d "$tmp"
7611 } ||
7613 tmp=./conf$$-$RANDOM
7614 (umask 077 && mkdir "$tmp")
7615 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7616 ac_tmp=$tmp
7618 # Set up the scripts for CONFIG_FILES section.
7619 # No need to generate them if there are no CONFIG_FILES.
7620 # This happens for instance with `./config.status config.h'.
7621 if test -n "$CONFIG_FILES"; then
7624 ac_cr=`echo X | tr X '\015'`
7625 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7626 # But we know of no other shell where ac_cr would be empty at this
7627 # point, so we can use a bashism as a fallback.
7628 if test "x$ac_cr" = x; then
7629 eval ac_cr=\$\'\\r\'
7631 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7632 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7633 ac_cs_awk_cr='\\r'
7634 else
7635 ac_cs_awk_cr=$ac_cr
7638 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7639 _ACEOF
7643 echo "cat >conf$$subs.awk <<_ACEOF" &&
7644 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7645 echo "_ACEOF"
7646 } >conf$$subs.sh ||
7647 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7648 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7649 ac_delim='%!_!# '
7650 for ac_last_try in false false false false false :; do
7651 . ./conf$$subs.sh ||
7652 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7654 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7655 if test $ac_delim_n = $ac_delim_num; then
7656 break
7657 elif $ac_last_try; then
7658 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7659 else
7660 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7662 done
7663 rm -f conf$$subs.sh
7665 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7666 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7667 _ACEOF
7668 sed -n '
7670 s/^/S["/; s/!.*/"]=/
7673 s/^[^!]*!//
7674 :repl
7675 t repl
7676 s/'"$ac_delim"'$//
7677 t delim
7680 s/\(.\{148\}\)..*/\1/
7681 t more1
7682 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7685 b repl
7686 :more1
7687 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7690 s/.\{148\}//
7691 t nl
7692 :delim
7694 s/\(.\{148\}\)..*/\1/
7695 t more2
7696 s/["\\]/\\&/g; s/^/"/; s/$/"/
7699 :more2
7700 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7703 s/.\{148\}//
7704 t delim
7705 ' <conf$$subs.awk | sed '
7706 /^[^""]/{
7708 s/\n//
7710 ' >>$CONFIG_STATUS || ac_write_fail=1
7711 rm -f conf$$subs.awk
7712 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7713 _ACAWK
7714 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7715 for (key in S) S_is_set[key] = 1
7716 FS = "\a"
7720 line = $ 0
7721 nfields = split(line, field, "@")
7722 substed = 0
7723 len = length(field[1])
7724 for (i = 2; i < nfields; i++) {
7725 key = field[i]
7726 keylen = length(key)
7727 if (S_is_set[key]) {
7728 value = S[key]
7729 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7730 len += length(value) + length(field[++i])
7731 substed = 1
7732 } else
7733 len += 1 + keylen
7736 print line
7739 _ACAWK
7740 _ACEOF
7741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7742 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7743 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7744 else
7746 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7747 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7748 _ACEOF
7750 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7751 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7752 # trailing colons and then remove the whole line if VPATH becomes empty
7753 # (actually we leave an empty line to preserve line numbers).
7754 if test "x$srcdir" = x.; then
7755 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7757 s///
7758 s/^/:/
7759 s/[ ]*$/:/
7760 s/:\$(srcdir):/:/g
7761 s/:\${srcdir}:/:/g
7762 s/:@srcdir@:/:/g
7763 s/^:*//
7764 s/:*$//
7766 s/\(=[ ]*\).*/\1/
7768 s/\n//
7769 s/^[^=]*=[ ]*$//
7773 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7774 fi # test -n "$CONFIG_FILES"
7776 # Set up the scripts for CONFIG_HEADERS section.
7777 # No need to generate them if there are no CONFIG_HEADERS.
7778 # This happens for instance with `./config.status Makefile'.
7779 if test -n "$CONFIG_HEADERS"; then
7780 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7781 BEGIN {
7782 _ACEOF
7784 # Transform confdefs.h into an awk script `defines.awk', embedded as
7785 # here-document in config.status, that substitutes the proper values into
7786 # config.h.in to produce config.h.
7788 # Create a delimiter string that does not exist in confdefs.h, to ease
7789 # handling of long lines.
7790 ac_delim='%!_!# '
7791 for ac_last_try in false false :; do
7792 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7793 if test -z "$ac_tt"; then
7794 break
7795 elif $ac_last_try; then
7796 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7797 else
7798 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7800 done
7802 # For the awk script, D is an array of macro values keyed by name,
7803 # likewise P contains macro parameters if any. Preserve backslash
7804 # newline sequences.
7806 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7807 sed -n '
7808 s/.\{148\}/&'"$ac_delim"'/g
7809 t rset
7810 :rset
7811 s/^[ ]*#[ ]*define[ ][ ]*/ /
7812 t def
7814 :def
7815 s/\\$//
7816 t bsnl
7817 s/["\\]/\\&/g
7818 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7819 D["\1"]=" \3"/p
7820 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7822 :bsnl
7823 s/["\\]/\\&/g
7824 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7825 D["\1"]=" \3\\\\\\n"\\/p
7826 t cont
7827 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7828 t cont
7830 :cont
7832 s/.\{148\}/&'"$ac_delim"'/g
7833 t clear
7834 :clear
7835 s/\\$//
7836 t bsnlc
7837 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7839 :bsnlc
7840 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7841 b cont
7842 ' <confdefs.h | sed '
7843 s/'"$ac_delim"'/"\\\
7844 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7846 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7847 for (key in D) D_is_set[key] = 1
7848 FS = "\a"
7850 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7851 line = \$ 0
7852 split(line, arg, " ")
7853 if (arg[1] == "#") {
7854 defundef = arg[2]
7855 mac1 = arg[3]
7856 } else {
7857 defundef = substr(arg[1], 2)
7858 mac1 = arg[2]
7860 split(mac1, mac2, "(") #)
7861 macro = mac2[1]
7862 prefix = substr(line, 1, index(line, defundef) - 1)
7863 if (D_is_set[macro]) {
7864 # Preserve the white space surrounding the "#".
7865 print prefix "define", macro P[macro] D[macro]
7866 next
7867 } else {
7868 # Replace #undef with comments. This is necessary, for example,
7869 # in the case of _POSIX_SOURCE, which is predefined and required
7870 # on some systems where configure will not decide to define it.
7871 if (defundef == "undef") {
7872 print "/*", prefix defundef, macro, "*/"
7873 next
7877 { print }
7878 _ACAWK
7879 _ACEOF
7880 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7881 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7882 fi # test -n "$CONFIG_HEADERS"
7885 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
7886 shift
7887 for ac_tag
7889 case $ac_tag in
7890 :[FHLC]) ac_mode=$ac_tag; continue;;
7891 esac
7892 case $ac_mode$ac_tag in
7893 :[FHL]*:*);;
7894 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7895 :[FH]-) ac_tag=-:-;;
7896 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7897 esac
7898 ac_save_IFS=$IFS
7899 IFS=:
7900 set x $ac_tag
7901 IFS=$ac_save_IFS
7902 shift
7903 ac_file=$1
7904 shift
7906 case $ac_mode in
7907 :L) ac_source=$1;;
7908 :[FH])
7909 ac_file_inputs=
7910 for ac_f
7912 case $ac_f in
7913 -) ac_f="$ac_tmp/stdin";;
7914 *) # Look for the file first in the build tree, then in the source tree
7915 # (if the path is not absolute). The absolute path cannot be DOS-style,
7916 # because $ac_f cannot contain `:'.
7917 test -f "$ac_f" ||
7918 case $ac_f in
7919 [\\/$]*) false;;
7920 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7921 esac ||
7922 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7923 esac
7924 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7925 as_fn_append ac_file_inputs " '$ac_f'"
7926 done
7928 # Let's still pretend it is `configure' which instantiates (i.e., don't
7929 # use $as_me), people would be surprised to read:
7930 # /* config.h. Generated by config.status. */
7931 configure_input='Generated from '`
7932 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7933 `' by configure.'
7934 if test x"$ac_file" != x-; then
7935 configure_input="$ac_file. $configure_input"
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7937 $as_echo "$as_me: creating $ac_file" >&6;}
7939 # Neutralize special characters interpreted by sed in replacement strings.
7940 case $configure_input in #(
7941 *\&* | *\|* | *\\* )
7942 ac_sed_conf_input=`$as_echo "$configure_input" |
7943 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7944 *) ac_sed_conf_input=$configure_input;;
7945 esac
7947 case $ac_tag in
7948 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7949 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7950 esac
7952 esac
7954 ac_dir=`$as_dirname -- "$ac_file" ||
7955 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7956 X"$ac_file" : 'X\(//\)[^/]' \| \
7957 X"$ac_file" : 'X\(//\)$' \| \
7958 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7959 $as_echo X"$ac_file" |
7960 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7961 s//\1/
7964 /^X\(\/\/\)[^/].*/{
7965 s//\1/
7968 /^X\(\/\/\)$/{
7969 s//\1/
7972 /^X\(\/\).*/{
7973 s//\1/
7976 s/.*/./; q'`
7977 as_dir="$ac_dir"; as_fn_mkdir_p
7978 ac_builddir=.
7980 case "$ac_dir" in
7981 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7983 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7984 # A ".." for each directory in $ac_dir_suffix.
7985 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7986 case $ac_top_builddir_sub in
7987 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7988 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7989 esac ;;
7990 esac
7991 ac_abs_top_builddir=$ac_pwd
7992 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7993 # for backward compatibility:
7994 ac_top_builddir=$ac_top_build_prefix
7996 case $srcdir in
7997 .) # We are building in place.
7998 ac_srcdir=.
7999 ac_top_srcdir=$ac_top_builddir_sub
8000 ac_abs_top_srcdir=$ac_pwd ;;
8001 [\\/]* | ?:[\\/]* ) # Absolute name.
8002 ac_srcdir=$srcdir$ac_dir_suffix;
8003 ac_top_srcdir=$srcdir
8004 ac_abs_top_srcdir=$srcdir ;;
8005 *) # Relative name.
8006 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8007 ac_top_srcdir=$ac_top_build_prefix$srcdir
8008 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8009 esac
8010 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8013 case $ac_mode in
8016 # CONFIG_FILE
8019 _ACEOF
8021 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8022 # If the template does not know about datarootdir, expand it.
8023 # FIXME: This hack should be removed a few years after 2.60.
8024 ac_datarootdir_hack=; ac_datarootdir_seen=
8025 ac_sed_dataroot='
8026 /datarootdir/ {
8030 /@datadir@/p
8031 /@docdir@/p
8032 /@infodir@/p
8033 /@localedir@/p
8034 /@mandir@/p'
8035 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8036 *datarootdir*) ac_datarootdir_seen=yes;;
8037 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8039 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8040 _ACEOF
8041 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8042 ac_datarootdir_hack='
8043 s&@datadir@&$datadir&g
8044 s&@docdir@&$docdir&g
8045 s&@infodir@&$infodir&g
8046 s&@localedir@&$localedir&g
8047 s&@mandir@&$mandir&g
8048 s&\\\${datarootdir}&$datarootdir&g' ;;
8049 esac
8050 _ACEOF
8052 # Neutralize VPATH when `$srcdir' = `.'.
8053 # Shell code in configure.ac might set extrasub.
8054 # FIXME: do we really want to maintain this feature?
8055 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8056 ac_sed_extra="$ac_vpsub
8057 $extrasub
8058 _ACEOF
8059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8061 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8062 s|@configure_input@|$ac_sed_conf_input|;t t
8063 s&@top_builddir@&$ac_top_builddir_sub&;t t
8064 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8065 s&@srcdir@&$ac_srcdir&;t t
8066 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8067 s&@top_srcdir@&$ac_top_srcdir&;t t
8068 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8069 s&@builddir@&$ac_builddir&;t t
8070 s&@abs_builddir@&$ac_abs_builddir&;t t
8071 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8072 $ac_datarootdir_hack
8074 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8075 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8077 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8078 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8079 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8080 "$ac_tmp/out"`; test -z "$ac_out"; } &&
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8082 which seems to be undefined. Please make sure it is defined" >&5
8083 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8084 which seems to be undefined. Please make sure it is defined" >&2;}
8086 rm -f "$ac_tmp/stdin"
8087 case $ac_file in
8088 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8089 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8090 esac \
8091 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8095 # CONFIG_HEADER
8097 if test x"$ac_file" != x-; then
8099 $as_echo "/* $configure_input */" \
8100 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8101 } >"$ac_tmp/config.h" \
8102 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8103 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8105 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8106 else
8107 rm -f "$ac_file"
8108 mv "$ac_tmp/config.h" "$ac_file" \
8109 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8111 else
8112 $as_echo "/* $configure_input */" \
8113 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8114 || as_fn_error $? "could not create -" "$LINENO" 5
8119 esac
8121 done # for ac_tag
8124 as_fn_exit 0
8125 _ACEOF
8126 ac_clean_files=$ac_clean_files_save
8128 test $ac_write_fail = 0 ||
8129 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8132 # configure is writing to config.log, and then calls config.status.
8133 # config.status does its own redirection, appending to config.log.
8134 # Unfortunately, on DOS this fails, as config.log is still kept open
8135 # by configure, so config.status won't be able to write to it; its
8136 # output is simply discarded. So we exec the FD to /dev/null,
8137 # effectively closing config.log, so it can be properly (re)opened and
8138 # appended to by config.status. When coming back to configure, we
8139 # need to make the FD available again.
8140 if test "$no_create" != yes; then
8141 ac_cs_success=:
8142 ac_config_status_args=
8143 test "$silent" = yes &&
8144 ac_config_status_args="$ac_config_status_args --quiet"
8145 exec 5>/dev/null
8146 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8147 exec 5>>config.log
8148 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8149 # would make configure fail if this is the last instruction.
8150 $ac_cs_success || as_fn_exit 1
8152 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8154 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
8159 $as_echo "$as_me: " >&6;}
8160 if test $BUNDLED_LIBTOM = 1 ; then
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: Using bundled libtomcrypt and libtommath" >&5
8162 $as_echo "$as_me: Using bundled libtomcrypt and libtommath" >&6;}
8163 else
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: Using system libtomcrypt and libtommath" >&5
8165 $as_echo "$as_me: Using system libtomcrypt and libtommath" >&6;}
8169 if test "x$ac_cv_func_getpass" != xyes; then
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
8171 $as_echo "$as_me: " >&6;}
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: getpass() not available, dbclient will only have public-key authentication" >&5
8173 $as_echo "$as_me: getpass() not available, dbclient will only have public-key authentication" >&6;}
8176 if test "t$found_crypt_func" != there; then
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
8178 $as_echo "$as_me: " >&6;}
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: crypt() not available, dropbear server will not have password authentication" >&5
8180 $as_echo "$as_me: crypt() not available, dropbear server will not have password authentication" >&6;}
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
8184 $as_echo "$as_me: " >&6;}
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: Now edit options.h to choose features." >&5
8186 $as_echo "$as_me: Now edit options.h to choose features." >&6;}