Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for lsh 2.1.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell [email protected] and [email protected]
270 $0: about your system, including any error possibly output
271 $0: before this message. Then install a modern shell, or
272 $0: manually run the script under such a shell if you do
273 $0: have one."
274 fi
275 exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293 { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302 return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\).*/{
351 s//\1/
352 q
353 }
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
378 {
379 eval $1+=\$2
380 }'
381 else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398 else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417 fi
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425 else
426 as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437 else
438 as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\/\)$/{
451 s//\1/
452 q
453 }
454 /^X\/\(\/\).*/{
455 s//\1/
456 q
457 }
458 s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
474 p
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
480 b
481 :lineno
482 N
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
512 *)
513 ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519 else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
536 fi
537 else
538 as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545 else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='lsh'
582 PACKAGE_TARNAME='lsh'
583 PACKAGE_VERSION='2.1'
584 PACKAGE_STRING='lsh 2.1'
585 PACKAGE_BUGREPORT='[email protected]'
586 PACKAGE_URL=''
587
588 ac_unique_file="src/lsh.c"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 # include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 # include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
624
625 enable_option_checking=no
626 ac_subst_vars='am__EXEEXT_FALSE
627 am__EXEEXT_TRUE
628 LTLIBOBJS
629 BUILD_OSREV
630 BUILD_OSSYS
631 BUILD_ARCH
632 subdirs
633 DOTDOT_LIBARGP
634 LIBARGP
635 LIBOBJS
636 ALLOCA
637 PAM_PROGRAM
638 KRB_PROGRAM
639 KRB_LIBS
640 XAUTH_PROGRAM
641 XMKMF
642 KRB5CONFIG
643 M4
644 GROFF
645 SCHEME_NAME
646 SCHEME_PROGRAM
647 RANLIB
648 host_os
649 host_vendor
650 host_cpu
651 host
652 build_os
653 build_vendor
654 build_cpu
655 build
656 SRP_PROGRAM
657 EGREP
658 GREP
659 CPP
660 am__fastdepCC_FALSE
661 am__fastdepCC_TRUE
662 CCDEPMODE
663 am__nodep
664 AMDEPBACKSLASH
665 AMDEP_FALSE
666 AMDEP_TRUE
667 am__quote
668 am__include
669 DEPDIR
670 OBJEXT
671 EXEEXT
672 ac_ct_CC
673 CPPFLAGS
674 LDFLAGS
675 CFLAGS
676 CC
677 AM_BACKSLASH
678 AM_DEFAULT_VERBOSITY
679 AM_DEFAULT_V
680 AM_V
681 am__untar
682 am__tar
683 AMTAR
684 am__leading_dot
685 SET_MAKE
686 AWK
687 mkdir_p
688 MKDIR_P
689 INSTALL_STRIP_PROGRAM
690 STRIP
691 install_sh
692 MAKEINFO
693 AUTOHEADER
694 AUTOMAKE
695 AUTOCONF
696 ACLOCAL
697 VERSION
698 PACKAGE
699 CYGPATH_W
700 am__isrc
701 INSTALL_DATA
702 INSTALL_SCRIPT
703 INSTALL_PROGRAM
704 target_alias
705 host_alias
706 build_alias
707 LIBS
708 ECHO_T
709 ECHO_N
710 ECHO_C
711 DEFS
712 mandir
713 localedir
714 libdir
715 psdir
716 pdfdir
717 dvidir
718 htmldir
719 infodir
720 docdir
721 oldincludedir
722 includedir
723 localstatedir
724 sharedstatedir
725 sysconfdir
726 datadir
727 datarootdir
728 libexecdir
729 sbindir
730 bindir
731 program_transform_name
732 prefix
733 exec_prefix
734 PACKAGE_URL
735 PACKAGE_BUGREPORT
736 PACKAGE_STRING
737 PACKAGE_VERSION
738 PACKAGE_TARNAME
739 PACKAGE_NAME
740 PATH_SEPARATOR
741 SHELL'
742 ac_subst_files=''
743 ac_user_opts='
744 enable_option_checking
745 enable_silent_rules
746 enable_dependency_tracking
747 enable_debug_alloc
748 enable_debug_trace
749 enable_gcov
750 enable_profiling
751 with_zlib
752 with_tcpwrappers
753 enable_pty
754 enable_srp
755 enable_gss
756 enable_kerberos
757 enable_pam
758 enable_initgroups_workaround
759 enable_tcp_forward
760 enable_x11_forward
761 enable_agent_forward
762 with_scheme
763 with_system_argp
764 enable_ipv6
765 enable_utmp
766 with_include_path
767 with_lib_path
768 with_x
769 '
770 ac_precious_vars='build_alias
771 host_alias
772 target_alias
773 CC
774 CFLAGS
775 LDFLAGS
776 LIBS
777 CPPFLAGS
778 CPP
779 GROFF
780 M4
781 XMKMF
782 XAUTH_PROGRAM'
783 ac_subdirs_all='src/argp
784 src/spki
785 src/sftp'
786
787 # Initialize some variables set by options.
788 ac_init_help=
789 ac_init_version=false
790 ac_unrecognized_opts=
791 ac_unrecognized_sep=
792 # The variables have the same names as the options, with
793 # dashes changed to underlines.
794 cache_file=/dev/null
795 exec_prefix=NONE
796 no_create=
797 no_recursion=
798 prefix=NONE
799 program_prefix=NONE
800 program_suffix=NONE
801 program_transform_name=s,x,x,
802 silent=
803 site=
804 srcdir=
805 verbose=
806 x_includes=NONE
807 x_libraries=NONE
808
809 # Installation directory options.
810 # These are left unexpanded so users can "make install exec_prefix=/foo"
811 # and all the variables that are supposed to be based on exec_prefix
812 # by default will actually change.
813 # Use braces instead of parens because sh, perl, etc. also accept them.
814 # (The list follows the same order as the GNU Coding Standards.)
815 bindir='${exec_prefix}/bin'
816 sbindir='${exec_prefix}/sbin'
817 libexecdir='${exec_prefix}/libexec'
818 datarootdir='${prefix}/share'
819 datadir='${datarootdir}'
820 sysconfdir='${prefix}/etc'
821 sharedstatedir='${prefix}/com'
822 localstatedir='${prefix}/var'
823 includedir='${prefix}/include'
824 oldincludedir='/usr/include'
825 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
826 infodir='${datarootdir}/info'
827 htmldir='${docdir}'
828 dvidir='${docdir}'
829 pdfdir='${docdir}'
830 psdir='${docdir}'
831 libdir='${exec_prefix}/lib'
832 localedir='${datarootdir}/locale'
833 mandir='${datarootdir}/man'
834
835 ac_prev=
836 ac_dashdash=
837 for ac_option
838 do
839 # If the previous option needs an argument, assign it.
840 if test -n "$ac_prev"; then
841 eval $ac_prev=\$ac_option
842 ac_prev=
843 continue
844 fi
845
846 case $ac_option in
847 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
848 *=) ac_optarg= ;;
849 *) ac_optarg=yes ;;
850 esac
851
852 # Accept the important Cygnus configure options, so we can diagnose typos.
853
854 case $ac_dashdash$ac_option in
855 --)
856 ac_dashdash=yes ;;
857
858 -bindir | --bindir | --bindi | --bind | --bin | --bi)
859 ac_prev=bindir ;;
860 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
861 bindir=$ac_optarg ;;
862
863 -build | --build | --buil | --bui | --bu)
864 ac_prev=build_alias ;;
865 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
866 build_alias=$ac_optarg ;;
867
868 -cache-file | --cache-file | --cache-fil | --cache-fi \
869 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
870 ac_prev=cache_file ;;
871 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
872 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
873 cache_file=$ac_optarg ;;
874
875 --config-cache | -C)
876 cache_file=config.cache ;;
877
878 -datadir | --datadir | --datadi | --datad)
879 ac_prev=datadir ;;
880 -datadir=* | --datadir=* | --datadi=* | --datad=*)
881 datadir=$ac_optarg ;;
882
883 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
884 | --dataroo | --dataro | --datar)
885 ac_prev=datarootdir ;;
886 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
887 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
888 datarootdir=$ac_optarg ;;
889
890 -disable-* | --disable-*)
891 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
892 # Reject names that are not valid shell variable names.
893 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
894 as_fn_error $? "invalid feature name: $ac_useropt"
895 ac_useropt_orig=$ac_useropt
896 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
897 case $ac_user_opts in
898 *"
899 "enable_$ac_useropt"
900 "*) ;;
901 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
902 ac_unrecognized_sep=', ';;
903 esac
904 eval enable_$ac_useropt=no ;;
905
906 -docdir | --docdir | --docdi | --doc | --do)
907 ac_prev=docdir ;;
908 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
909 docdir=$ac_optarg ;;
910
911 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
912 ac_prev=dvidir ;;
913 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
914 dvidir=$ac_optarg ;;
915
916 -enable-* | --enable-*)
917 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
918 # Reject names that are not valid shell variable names.
919 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
920 as_fn_error $? "invalid feature name: $ac_useropt"
921 ac_useropt_orig=$ac_useropt
922 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
923 case $ac_user_opts in
924 *"
925 "enable_$ac_useropt"
926 "*) ;;
927 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
928 ac_unrecognized_sep=', ';;
929 esac
930 eval enable_$ac_useropt=\$ac_optarg ;;
931
932 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
933 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
934 | --exec | --exe | --ex)
935 ac_prev=exec_prefix ;;
936 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
937 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
938 | --exec=* | --exe=* | --ex=*)
939 exec_prefix=$ac_optarg ;;
940
941 -gas | --gas | --ga | --g)
942 # Obsolete; use --with-gas.
943 with_gas=yes ;;
944
945 -help | --help | --hel | --he | -h)
946 ac_init_help=long ;;
947 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
948 ac_init_help=recursive ;;
949 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
950 ac_init_help=short ;;
951
952 -host | --host | --hos | --ho)
953 ac_prev=host_alias ;;
954 -host=* | --host=* | --hos=* | --ho=*)
955 host_alias=$ac_optarg ;;
956
957 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
958 ac_prev=htmldir ;;
959 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
960 | --ht=*)
961 htmldir=$ac_optarg ;;
962
963 -includedir | --includedir | --includedi | --included | --include \
964 | --includ | --inclu | --incl | --inc)
965 ac_prev=includedir ;;
966 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
967 | --includ=* | --inclu=* | --incl=* | --inc=*)
968 includedir=$ac_optarg ;;
969
970 -infodir | --infodir | --infodi | --infod | --info | --inf)
971 ac_prev=infodir ;;
972 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
973 infodir=$ac_optarg ;;
974
975 -libdir | --libdir | --libdi | --libd)
976 ac_prev=libdir ;;
977 -libdir=* | --libdir=* | --libdi=* | --libd=*)
978 libdir=$ac_optarg ;;
979
980 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
981 | --libexe | --libex | --libe)
982 ac_prev=libexecdir ;;
983 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
984 | --libexe=* | --libex=* | --libe=*)
985 libexecdir=$ac_optarg ;;
986
987 -localedir | --localedir | --localedi | --localed | --locale)
988 ac_prev=localedir ;;
989 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
990 localedir=$ac_optarg ;;
991
992 -localstatedir | --localstatedir | --localstatedi | --localstated \
993 | --localstate | --localstat | --localsta | --localst | --locals)
994 ac_prev=localstatedir ;;
995 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
996 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
997 localstatedir=$ac_optarg ;;
998
999 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1000 ac_prev=mandir ;;
1001 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1002 mandir=$ac_optarg ;;
1003
1004 -nfp | --nfp | --nf)
1005 # Obsolete; use --without-fp.
1006 with_fp=no ;;
1007
1008 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1009 | --no-cr | --no-c | -n)
1010 no_create=yes ;;
1011
1012 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1013 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1014 no_recursion=yes ;;
1015
1016 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1017 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1018 | --oldin | --oldi | --old | --ol | --o)
1019 ac_prev=oldincludedir ;;
1020 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1021 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1022 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1023 oldincludedir=$ac_optarg ;;
1024
1025 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1026 ac_prev=prefix ;;
1027 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1028 prefix=$ac_optarg ;;
1029
1030 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1031 | --program-pre | --program-pr | --program-p)
1032 ac_prev=program_prefix ;;
1033 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1034 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1035 program_prefix=$ac_optarg ;;
1036
1037 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1038 | --program-suf | --program-su | --program-s)
1039 ac_prev=program_suffix ;;
1040 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1041 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1042 program_suffix=$ac_optarg ;;
1043
1044 -program-transform-name | --program-transform-name \
1045 | --program-transform-nam | --program-transform-na \
1046 | --program-transform-n | --program-transform- \
1047 | --program-transform | --program-transfor \
1048 | --program-transfo | --program-transf \
1049 | --program-trans | --program-tran \
1050 | --progr-tra | --program-tr | --program-t)
1051 ac_prev=program_transform_name ;;
1052 -program-transform-name=* | --program-transform-name=* \
1053 | --program-transform-nam=* | --program-transform-na=* \
1054 | --program-transform-n=* | --program-transform-=* \
1055 | --program-transform=* | --program-transfor=* \
1056 | --program-transfo=* | --program-transf=* \
1057 | --program-trans=* | --program-tran=* \
1058 | --progr-tra=* | --program-tr=* | --program-t=*)
1059 program_transform_name=$ac_optarg ;;
1060
1061 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1062 ac_prev=pdfdir ;;
1063 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1064 pdfdir=$ac_optarg ;;
1065
1066 -psdir | --psdir | --psdi | --psd | --ps)
1067 ac_prev=psdir ;;
1068 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1069 psdir=$ac_optarg ;;
1070
1071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072 | -silent | --silent | --silen | --sile | --sil)
1073 silent=yes ;;
1074
1075 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1076 ac_prev=sbindir ;;
1077 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1078 | --sbi=* | --sb=*)
1079 sbindir=$ac_optarg ;;
1080
1081 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1082 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1083 | --sharedst | --shareds | --shared | --share | --shar \
1084 | --sha | --sh)
1085 ac_prev=sharedstatedir ;;
1086 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1087 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1088 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1089 | --sha=* | --sh=*)
1090 sharedstatedir=$ac_optarg ;;
1091
1092 -site | --site | --sit)
1093 ac_prev=site ;;
1094 -site=* | --site=* | --sit=*)
1095 site=$ac_optarg ;;
1096
1097 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1098 ac_prev=srcdir ;;
1099 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1100 srcdir=$ac_optarg ;;
1101
1102 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1103 | --syscon | --sysco | --sysc | --sys | --sy)
1104 ac_prev=sysconfdir ;;
1105 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1106 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1107 sysconfdir=$ac_optarg ;;
1108
1109 -target | --target | --targe | --targ | --tar | --ta | --t)
1110 ac_prev=target_alias ;;
1111 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1112 target_alias=$ac_optarg ;;
1113
1114 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1115 verbose=yes ;;
1116
1117 -version | --version | --versio | --versi | --vers | -V)
1118 ac_init_version=: ;;
1119
1120 -with-* | --with-*)
1121 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124 as_fn_error $? "invalid package name: $ac_useropt"
1125 ac_useropt_orig=$ac_useropt
1126 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127 case $ac_user_opts in
1128 *"
1129 "with_$ac_useropt"
1130 "*) ;;
1131 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1132 ac_unrecognized_sep=', ';;
1133 esac
1134 eval with_$ac_useropt=\$ac_optarg ;;
1135
1136 -without-* | --without-*)
1137 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1138 # Reject names that are not valid shell variable names.
1139 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1140 as_fn_error $? "invalid package name: $ac_useropt"
1141 ac_useropt_orig=$ac_useropt
1142 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1143 case $ac_user_opts in
1144 *"
1145 "with_$ac_useropt"
1146 "*) ;;
1147 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1148 ac_unrecognized_sep=', ';;
1149 esac
1150 eval with_$ac_useropt=no ;;
1151
1152 --x)
1153 # Obsolete; use --with-x.
1154 with_x=yes ;;
1155
1156 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1157 | --x-incl | --x-inc | --x-in | --x-i)
1158 ac_prev=x_includes ;;
1159 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1160 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1161 x_includes=$ac_optarg ;;
1162
1163 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1164 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1165 ac_prev=x_libraries ;;
1166 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1167 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1168 x_libraries=$ac_optarg ;;
1169
1170 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1171 Try \`$0 --help' for more information"
1172 ;;
1173
1174 *=*)
1175 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1176 # Reject names that are not valid shell variable names.
1177 case $ac_envvar in #(
1178 '' | [0-9]* | *[!_$as_cr_alnum]* )
1179 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1180 esac
1181 eval $ac_envvar=\$ac_optarg
1182 export $ac_envvar ;;
1183
1184 *)
1185 # FIXME: should be removed in autoconf 3.0.
1186 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1187 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1188 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1189 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1190 ;;
1191
1192 esac
1193 done
1194
1195 if test -n "$ac_prev"; then
1196 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1197 as_fn_error $? "missing argument to $ac_option"
1198 fi
1199
1200 if test -n "$ac_unrecognized_opts"; then
1201 case $enable_option_checking in
1202 no) ;;
1203 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1204 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1205 esac
1206 fi
1207
1208 # Check all directory arguments for consistency.
1209 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1210 datadir sysconfdir sharedstatedir localstatedir includedir \
1211 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1212 libdir localedir mandir
1213 do
1214 eval ac_val=\$$ac_var
1215 # Remove trailing slashes.
1216 case $ac_val in
1217 */ )
1218 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1219 eval $ac_var=\$ac_val;;
1220 esac
1221 # Be sure to have absolute directory names.
1222 case $ac_val in
1223 [\\/$]* | ?:[\\/]* ) continue;;
1224 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1225 esac
1226 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1227 done
1228
1229 # There might be people who depend on the old broken behavior: `$host'
1230 # used to hold the argument of --host etc.
1231 # FIXME: To remove some day.
1232 build=$build_alias
1233 host=$host_alias
1234 target=$target_alias
1235
1236 # FIXME: To remove some day.
1237 if test "x$host_alias" != x; then
1238 if test "x$build_alias" = x; then
1239 cross_compiling=maybe
1240 elif test "x$build_alias" != "x$host_alias"; then
1241 cross_compiling=yes
1242 fi
1243 fi
1244
1245 ac_tool_prefix=
1246 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1247
1248 test "$silent" = yes && exec 6>/dev/null
1249
1250
1251 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1252 ac_ls_di=`ls -di .` &&
1253 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1254 as_fn_error $? "working directory cannot be determined"
1255 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1256 as_fn_error $? "pwd does not report name of working directory"
1257
1258
1259 # Find the source files, if location was not specified.
1260 if test -z "$srcdir"; then
1261 ac_srcdir_defaulted=yes
1262 # Try the directory containing this script, then the parent directory.
1263 ac_confdir=`$as_dirname -- "$as_myself" ||
1264 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1265 X"$as_myself" : 'X\(//\)[^/]' \| \
1266 X"$as_myself" : 'X\(//\)$' \| \
1267 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1268 $as_echo X"$as_myself" |
1269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1270 s//\1/
1271 q
1272 }
1273 /^X\(\/\/\)[^/].*/{
1274 s//\1/
1275 q
1276 }
1277 /^X\(\/\/\)$/{
1278 s//\1/
1279 q
1280 }
1281 /^X\(\/\).*/{
1282 s//\1/
1283 q
1284 }
1285 s/.*/./; q'`
1286 srcdir=$ac_confdir
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1288 srcdir=..
1289 fi
1290 else
1291 ac_srcdir_defaulted=no
1292 fi
1293 if test ! -r "$srcdir/$ac_unique_file"; then
1294 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1295 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1296 fi
1297 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1298 ac_abs_confdir=`(
1299 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1300 pwd)`
1301 # When building in place, set srcdir=.
1302 if test "$ac_abs_confdir" = "$ac_pwd"; then
1303 srcdir=.
1304 fi
1305 # Remove unnecessary trailing slashes from srcdir.
1306 # Double slashes in file names in object file debugging info
1307 # mess up M-x gdb in Emacs.
1308 case $srcdir in
1309 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1310 esac
1311 for ac_var in $ac_precious_vars; do
1312 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_env_${ac_var}_value=\$${ac_var}
1314 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1315 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1316 done
1317
1318 #
1319 # Report the --help message.
1320 #
1321 if test "$ac_init_help" = "long"; then
1322 # Omit some internal or obsolete options to make the list less imposing.
1323 # This message is too long to be a string in the A/UX 3.1 sh.
1324 cat <<_ACEOF
1325 \`configure' configures lsh 2.1 to adapt to many kinds of systems.
1326
1327 Usage: $0 [OPTION]... [VAR=VALUE]...
1328
1329 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1330 VAR=VALUE. See below for descriptions of some of the useful variables.
1331
1332 Defaults for the options are specified in brackets.
1333
1334 Configuration:
1335 -h, --help display this help and exit
1336 --help=short display options specific to this package
1337 --help=recursive display the short help of all the included packages
1338 -V, --version display version information and exit
1339 -q, --quiet, --silent do not print \`checking ...' messages
1340 --cache-file=FILE cache test results in FILE [disabled]
1341 -C, --config-cache alias for \`--cache-file=config.cache'
1342 -n, --no-create do not create output files
1343 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1344
1345 Installation directories:
1346 --prefix=PREFIX install architecture-independent files in PREFIX
1347 [$ac_default_prefix]
1348 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1349 [PREFIX]
1350
1351 By default, \`make install' will install all the files in
1352 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1353 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1354 for instance \`--prefix=\$HOME'.
1355
1356 For better control, use the options below.
1357
1358 Fine tuning of the installation directories:
1359 --bindir=DIR user executables [EPREFIX/bin]
1360 --sbindir=DIR system admin executables [EPREFIX/sbin]
1361 --libexecdir=DIR program executables [EPREFIX/libexec]
1362 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1363 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1364 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1365 --libdir=DIR object code libraries [EPREFIX/lib]
1366 --includedir=DIR C header files [PREFIX/include]
1367 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1368 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1369 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1370 --infodir=DIR info documentation [DATAROOTDIR/info]
1371 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1372 --mandir=DIR man documentation [DATAROOTDIR/man]
1373 --docdir=DIR documentation root [DATAROOTDIR/doc/lsh]
1374 --htmldir=DIR html documentation [DOCDIR]
1375 --dvidir=DIR dvi documentation [DOCDIR]
1376 --pdfdir=DIR pdf documentation [DOCDIR]
1377 --psdir=DIR ps documentation [DOCDIR]
1378 _ACEOF
1379
1380 cat <<\_ACEOF
1381
1382 Program names:
1383 --program-prefix=PREFIX prepend PREFIX to installed program names
1384 --program-suffix=SUFFIX append SUFFIX to installed program names
1385 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1386
1387 X features:
1388 --x-includes=DIR X include files are in DIR
1389 --x-libraries=DIR X library files are in DIR
1390
1391 System types:
1392 --build=BUILD configure for building on BUILD [guessed]
1393 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1394 _ACEOF
1395 fi
1396
1397 if test -n "$ac_init_help"; then
1398 case $ac_init_help in
1399 short | recursive ) echo "Configuration of lsh 2.1:";;
1400 esac
1401 cat <<\_ACEOF
1402
1403 Optional Features:
1404 --disable-option-checking ignore unrecognized --enable/--with options
1405 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1406 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1407 --enable-silent-rules less verbose build output (undo: "make V=1")
1408 --disable-silent-rules verbose build output (undo: "make V=0")
1409 --enable-dependency-tracking
1410 do not reject slow dependency extractors
1411 --disable-dependency-tracking
1412 speeds up one-time build
1413 --enable-debug-alloc Enable memory allocation sanity checks
1414 --enable-debug-trace Enable tracing support
1415 --enable-gcov Instrument for gcov (requires a modern gcc)
1416 --enable-profiling Instrument for gprof profiling
1417 --without-pty Disable pty support
1418 --disable-srp Disable the (experimental) support for SRP
1419 --disable-gss Disable the (experimental) support for GSS
1420 --disable-kerberos Don't support kerberos
1421 --disable-pam Don't support PAM
1422 --enable-initgroups-workaround
1423 Use a special initgroups for supporting more groups
1424 --disable-tcp-forward Disable tcp forwarding
1425 --disable-x11-forward Disable x11 forwarding (proxy only)
1426 --disable-agent-forward Disable auth-agent forwarding (proxy only)
1427 --disable-ipv6 Disable IPv6 support
1428 --disable-utmp Disable utmp and wtmp support
1429
1430 Optional Packages:
1431 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1432 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1433 --without-zlib Don't use zlib compression
1434 --with-tcpwrappers Use tcp-wrappers for filtering connections
1435 --with-scheme=PROGRAM Use a particular scheme implementation
1436 --without-system-argp Don't use the system's argp
1437 --with-include-path A colon-separated list of directories to search for
1438 include files
1439 --with-lib-path A colon-separated list of directories to search for
1440 libraries
1441 --with-x use the X Window System
1442
1443 Some influential environment variables:
1444 CC C compiler command
1445 CFLAGS C compiler flags
1446 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1447 nonstandard directory <lib dir>
1448 LIBS libraries to pass to the linker, e.g. -l<library>
1449 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1450 you have headers in a nonstandard directory <include dir>
1451 CPP C preprocessor
1452 GROFF groff
1453 M4 M4 macro processor
1454 XMKMF Path to xmkmf, Makefile generator for X Window System
1455 XAUTH_PROGRAM
1456 Program used to handle .Xauthority-files by lshd
1457
1458 Use these variables to override the choices made by `configure' or to help
1459 it to find libraries and programs with nonstandard names/locations.
1460
1461 Report bugs to <[email protected]>.
1462 _ACEOF
1463 ac_status=$?
1464 fi
1465
1466 if test "$ac_init_help" = "recursive"; then
1467 # If there are subdirs, report their specific --help.
1468 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1469 test -d "$ac_dir" ||
1470 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1471 continue
1472 ac_builddir=.
1473
1474 case "$ac_dir" in
1475 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476 *)
1477 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1478 # A ".." for each directory in $ac_dir_suffix.
1479 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1480 case $ac_top_builddir_sub in
1481 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1482 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1483 esac ;;
1484 esac
1485 ac_abs_top_builddir=$ac_pwd
1486 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1487 # for backward compatibility:
1488 ac_top_builddir=$ac_top_build_prefix
1489
1490 case $srcdir in
1491 .) # We are building in place.
1492 ac_srcdir=.
1493 ac_top_srcdir=$ac_top_builddir_sub
1494 ac_abs_top_srcdir=$ac_pwd ;;
1495 [\\/]* | ?:[\\/]* ) # Absolute name.
1496 ac_srcdir=$srcdir$ac_dir_suffix;
1497 ac_top_srcdir=$srcdir
1498 ac_abs_top_srcdir=$srcdir ;;
1499 *) # Relative name.
1500 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1501 ac_top_srcdir=$ac_top_build_prefix$srcdir
1502 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1503 esac
1504 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1505
1506 cd "$ac_dir" || { ac_status=$?; continue; }
1507 # Check for guested configure.
1508 if test -f "$ac_srcdir/configure.gnu"; then
1509 echo &&
1510 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1511 elif test -f "$ac_srcdir/configure"; then
1512 echo &&
1513 $SHELL "$ac_srcdir/configure" --help=recursive
1514 else
1515 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1516 fi || ac_status=$?
1517 cd "$ac_pwd" || { ac_status=$?; break; }
1518 done
1519 fi
1520
1521 test -n "$ac_init_help" && exit $ac_status
1522 if $ac_init_version; then
1523 cat <<\_ACEOF
1524 lsh configure 2.1
1525 generated by GNU Autoconf 2.69
1526
1527 Copyright (C) 2012 Free Software Foundation, Inc.
1528 This configure script is free software; the Free Software Foundation
1529 gives unlimited permission to copy, distribute and modify it.
1530 _ACEOF
1531 exit
1532 fi
1533
1534 ## ------------------------ ##
1535 ## Autoconf initialization. ##
1536 ## ------------------------ ##
1537
1538 # ac_fn_c_try_compile LINENO
1539 # --------------------------
1540 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1541 ac_fn_c_try_compile ()
1542 {
1543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1544 rm -f conftest.$ac_objext
1545 if { { ac_try="$ac_compile"
1546 case "(($ac_try" in
1547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1548 *) ac_try_echo=$ac_try;;
1549 esac
1550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1551 $as_echo "$ac_try_echo"; } >&5
1552 (eval "$ac_compile") 2>conftest.err
1553 ac_status=$?
1554 if test -s conftest.err; then
1555 grep -v '^ *+' conftest.err >conftest.er1
1556 cat conftest.er1 >&5
1557 mv -f conftest.er1 conftest.err
1558 fi
1559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1560 test $ac_status = 0; } && {
1561 test -z "$ac_c_werror_flag" ||
1562 test ! -s conftest.err
1563 } && test -s conftest.$ac_objext; then :
1564 ac_retval=0
1565 else
1566 $as_echo "$as_me: failed program was:" >&5
1567 sed 's/^/| /' conftest.$ac_ext >&5
1568
1569 ac_retval=1
1570 fi
1571 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1572 as_fn_set_status $ac_retval
1573
1574 } # ac_fn_c_try_compile
1575
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 ()
1580 {
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
1595 fi
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
1605
1606 ac_retval=1
1607 fi
1608 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1609 as_fn_set_status $ac_retval
1610
1611 } # ac_fn_c_try_cpp
1612
1613 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1614 # -------------------------------------------------------
1615 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1616 # the include files in INCLUDES and setting the cache variable VAR
1617 # accordingly.
1618 ac_fn_c_check_header_mongrel ()
1619 {
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621 if eval \${$3+:} false; then :
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1623 $as_echo_n "checking for $2... " >&6; }
1624 if eval \${$3+:} false; then :
1625 $as_echo_n "(cached) " >&6
1626 fi
1627 eval ac_res=\$$3
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1629 $as_echo "$ac_res" >&6; }
1630 else
1631 # Is the header compilable?
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1633 $as_echo_n "checking $2 usability... " >&6; }
1634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1635 /* end confdefs.h. */
1636 $4
1637 #include <$2>
1638 _ACEOF
1639 if ac_fn_c_try_compile "$LINENO"; then :
1640 ac_header_compiler=yes
1641 else
1642 ac_header_compiler=no
1643 fi
1644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1646 $as_echo "$ac_header_compiler" >&6; }
1647
1648 # Is the header present?
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1650 $as_echo_n "checking $2 presence... " >&6; }
1651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1652 /* end confdefs.h. */
1653 #include <$2>
1654 _ACEOF
1655 if ac_fn_c_try_cpp "$LINENO"; then :
1656 ac_header_preproc=yes
1657 else
1658 ac_header_preproc=no
1659 fi
1660 rm -f conftest.err conftest.i conftest.$ac_ext
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1662 $as_echo "$ac_header_preproc" >&6; }
1663
1664 # So? What about this header?
1665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1666 yes:no: )
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1668 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1670 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1671 ;;
1672 no:yes:* )
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1674 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1676 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1678 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1680 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1682 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1683 ( $as_echo "## ------------------------------ ##
1684 ## Report this to [email protected] ##
1685 ## ------------------------------ ##"
1686 ) | sed "s/^/$as_me: WARNING: /" >&2
1687 ;;
1688 esac
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1690 $as_echo_n "checking for $2... " >&6; }
1691 if eval \${$3+:} false; then :
1692 $as_echo_n "(cached) " >&6
1693 else
1694 eval "$3=\$ac_header_compiler"
1695 fi
1696 eval ac_res=\$$3
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1698 $as_echo "$ac_res" >&6; }
1699 fi
1700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1701
1702 } # ac_fn_c_check_header_mongrel
1703
1704 # ac_fn_c_try_run LINENO
1705 # ----------------------
1706 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1707 # that executables *can* be run.
1708 ac_fn_c_try_run ()
1709 {
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711 if { { ac_try="$ac_link"
1712 case "(($ac_try" in
1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714 *) ac_try_echo=$ac_try;;
1715 esac
1716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717 $as_echo "$ac_try_echo"; } >&5
1718 (eval "$ac_link") 2>&5
1719 ac_status=$?
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1722 { { case "(($ac_try" in
1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724 *) ac_try_echo=$ac_try;;
1725 esac
1726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727 $as_echo "$ac_try_echo"; } >&5
1728 (eval "$ac_try") 2>&5
1729 ac_status=$?
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; }; }; then :
1732 ac_retval=0
1733 else
1734 $as_echo "$as_me: program exited with status $ac_status" >&5
1735 $as_echo "$as_me: failed program was:" >&5
1736 sed 's/^/| /' conftest.$ac_ext >&5
1737
1738 ac_retval=$ac_status
1739 fi
1740 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742 as_fn_set_status $ac_retval
1743
1744 } # ac_fn_c_try_run
1745
1746 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1747 # -------------------------------------------------------
1748 # Tests whether HEADER exists and can be compiled using the include files in
1749 # INCLUDES, setting the cache variable VAR accordingly.
1750 ac_fn_c_check_header_compile ()
1751 {
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1754 $as_echo_n "checking for $2... " >&6; }
1755 if eval \${$3+:} false; then :
1756 $as_echo_n "(cached) " >&6
1757 else
1758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1759 /* end confdefs.h. */
1760 $4
1761 #include <$2>
1762 _ACEOF
1763 if ac_fn_c_try_compile "$LINENO"; then :
1764 eval "$3=yes"
1765 else
1766 eval "$3=no"
1767 fi
1768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1769 fi
1770 eval ac_res=\$$3
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1772 $as_echo "$ac_res" >&6; }
1773 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1774
1775 } # ac_fn_c_check_header_compile
1776
1777 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1778 # ----------------------------------------------------
1779 # Tries to find if the field MEMBER exists in type AGGR, after including
1780 # INCLUDES, setting cache variable VAR accordingly.
1781 ac_fn_c_check_member ()
1782 {
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1785 $as_echo_n "checking for $2.$3... " >&6; }
1786 if eval \${$4+:} false; then :
1787 $as_echo_n "(cached) " >&6
1788 else
1789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790 /* end confdefs.h. */
1791 $5
1792 int
1793 main ()
1794 {
1795 static $2 ac_aggr;
1796 if (ac_aggr.$3)
1797 return 0;
1798 ;
1799 return 0;
1800 }
1801 _ACEOF
1802 if ac_fn_c_try_compile "$LINENO"; then :
1803 eval "$4=yes"
1804 else
1805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806 /* end confdefs.h. */
1807 $5
1808 int
1809 main ()
1810 {
1811 static $2 ac_aggr;
1812 if (sizeof ac_aggr.$3)
1813 return 0;
1814 ;
1815 return 0;
1816 }
1817 _ACEOF
1818 if ac_fn_c_try_compile "$LINENO"; then :
1819 eval "$4=yes"
1820 else
1821 eval "$4=no"
1822 fi
1823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1824 fi
1825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1826 fi
1827 eval ac_res=\$$4
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1829 $as_echo "$ac_res" >&6; }
1830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1831
1832 } # ac_fn_c_check_member
1833
1834 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1835 # ---------------------------------------------
1836 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1837 # accordingly.
1838 ac_fn_c_check_decl ()
1839 {
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 as_decl_name=`echo $2|sed 's/ *(.*//'`
1842 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1844 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1845 if eval \${$3+:} false; then :
1846 $as_echo_n "(cached) " >&6
1847 else
1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849 /* end confdefs.h. */
1850 $4
1851 int
1852 main ()
1853 {
1854 #ifndef $as_decl_name
1855 #ifdef __cplusplus
1856 (void) $as_decl_use;
1857 #else
1858 (void) $as_decl_name;
1859 #endif
1860 #endif
1861
1862 ;
1863 return 0;
1864 }
1865 _ACEOF
1866 if ac_fn_c_try_compile "$LINENO"; then :
1867 eval "$3=yes"
1868 else
1869 eval "$3=no"
1870 fi
1871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1872 fi
1873 eval ac_res=\$$3
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875 $as_echo "$ac_res" >&6; }
1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877
1878 } # ac_fn_c_check_decl
1879
1880 # ac_fn_c_try_link LINENO
1881 # -----------------------
1882 # Try to link conftest.$ac_ext, and return whether this succeeded.
1883 ac_fn_c_try_link ()
1884 {
1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886 rm -f conftest.$ac_objext conftest$ac_exeext
1887 if { { ac_try="$ac_link"
1888 case "(($ac_try" in
1889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1890 *) ac_try_echo=$ac_try;;
1891 esac
1892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1893 $as_echo "$ac_try_echo"; } >&5
1894 (eval "$ac_link") 2>conftest.err
1895 ac_status=$?
1896 if test -s conftest.err; then
1897 grep -v '^ *+' conftest.err >conftest.er1
1898 cat conftest.er1 >&5
1899 mv -f conftest.er1 conftest.err
1900 fi
1901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902 test $ac_status = 0; } && {
1903 test -z "$ac_c_werror_flag" ||
1904 test ! -s conftest.err
1905 } && test -s conftest$ac_exeext && {
1906 test "$cross_compiling" = yes ||
1907 test -x conftest$ac_exeext
1908 }; then :
1909 ac_retval=0
1910 else
1911 $as_echo "$as_me: failed program was:" >&5
1912 sed 's/^/| /' conftest.$ac_ext >&5
1913
1914 ac_retval=1
1915 fi
1916 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1917 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1918 # interfere with the next link command; also delete a directory that is
1919 # left behind by Apple's compiler. We do this before executing the actions.
1920 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1922 as_fn_set_status $ac_retval
1923
1924 } # ac_fn_c_try_link
1925
1926 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1927 # -------------------------------------------
1928 # Tests whether TYPE exists after having included INCLUDES, setting cache
1929 # variable VAR accordingly.
1930 ac_fn_c_check_type ()
1931 {
1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1934 $as_echo_n "checking for $2... " >&6; }
1935 if eval \${$3+:} false; then :
1936 $as_echo_n "(cached) " >&6
1937 else
1938 eval "$3=no"
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h. */
1941 $4
1942 int
1943 main ()
1944 {
1945 if (sizeof ($2))
1946 return 0;
1947 ;
1948 return 0;
1949 }
1950 _ACEOF
1951 if ac_fn_c_try_compile "$LINENO"; then :
1952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1953 /* end confdefs.h. */
1954 $4
1955 int
1956 main ()
1957 {
1958 if (sizeof (($2)))
1959 return 0;
1960 ;
1961 return 0;
1962 }
1963 _ACEOF
1964 if ac_fn_c_try_compile "$LINENO"; then :
1965
1966 else
1967 eval "$3=yes"
1968 fi
1969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1970 fi
1971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1972 fi
1973 eval ac_res=\$$3
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1975 $as_echo "$ac_res" >&6; }
1976 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1977
1978 } # ac_fn_c_check_type
1979
1980 # ac_fn_c_check_func LINENO FUNC VAR
1981 # ----------------------------------
1982 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1983 ac_fn_c_check_func ()
1984 {
1985 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1987 $as_echo_n "checking for $2... " >&6; }
1988 if eval \${$3+:} false; then :
1989 $as_echo_n "(cached) " >&6
1990 else
1991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1992 /* end confdefs.h. */
1993 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1995 #define $2 innocuous_$2
1996
1997 /* System header to define __stub macros and hopefully few prototypes,
1998 which can conflict with char $2 (); below.
1999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2000 <limits.h> exists even on freestanding compilers. */
2001
2002 #ifdef __STDC__
2003 # include <limits.h>
2004 #else
2005 # include <assert.h>
2006 #endif
2007
2008 #undef $2
2009
2010 /* Override any GCC internal prototype to avoid an error.
2011 Use char because int might match the return type of a GCC
2012 builtin and then its argument prototype would still apply. */
2013 #ifdef __cplusplus
2014 extern "C"
2015 #endif
2016 char $2 ();
2017 /* The GNU C library defines this for functions which it implements
2018 to always fail with ENOSYS. Some functions are actually named
2019 something starting with __ and the normal name is an alias. */
2020 #if defined __stub_$2 || defined __stub___$2
2021 choke me
2022 #endif
2023
2024 int
2025 main ()
2026 {
2027 return $2 ();
2028 ;
2029 return 0;
2030 }
2031 _ACEOF
2032 if ac_fn_c_try_link "$LINENO"; then :
2033 eval "$3=yes"
2034 else
2035 eval "$3=no"
2036 fi
2037 rm -f core conftest.err conftest.$ac_objext \
2038 conftest$ac_exeext conftest.$ac_ext
2039 fi
2040 eval ac_res=\$$3
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2042 $as_echo "$ac_res" >&6; }
2043 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2044
2045 } # ac_fn_c_check_func
2046 cat >config.log <<_ACEOF
2047 This file contains any messages produced by compilers while
2048 running configure, to aid debugging if configure makes a mistake.
2049
2050 It was created by lsh $as_me 2.1, which was
2051 generated by GNU Autoconf 2.69. Invocation command line was
2052
2053 $ $0 $@
2054
2055 _ACEOF
2056 exec 5>>config.log
2057 {
2058 cat <<_ASUNAME
2059 ## --------- ##
2060 ## Platform. ##
2061 ## --------- ##
2062
2063 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2064 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2065 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2066 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2067 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2068
2069 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2070 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2071
2072 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2073 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2074 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2075 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2076 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2077 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2078 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2079
2080 _ASUNAME
2081
2082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2083 for as_dir in $PATH
2084 do
2085 IFS=$as_save_IFS
2086 test -z "$as_dir" && as_dir=.
2087 $as_echo "PATH: $as_dir"
2088 done
2089 IFS=$as_save_IFS
2090
2091 } >&5
2092
2093 cat >&5 <<_ACEOF
2094
2095
2096 ## ----------- ##
2097 ## Core tests. ##
2098 ## ----------- ##
2099
2100 _ACEOF
2101
2102
2103 # Keep a trace of the command line.
2104 # Strip out --no-create and --no-recursion so they do not pile up.
2105 # Strip out --silent because we don't want to record it for future runs.
2106 # Also quote any args containing shell meta-characters.
2107 # Make two passes to allow for proper duplicate-argument suppression.
2108 ac_configure_args=
2109 ac_configure_args0=
2110 ac_configure_args1=
2111 ac_must_keep_next=false
2112 for ac_pass in 1 2
2113 do
2114 for ac_arg
2115 do
2116 case $ac_arg in
2117 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2118 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2119 | -silent | --silent | --silen | --sile | --sil)
2120 continue ;;
2121 *\'*)
2122 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2123 esac
2124 case $ac_pass in
2125 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2126 2)
2127 as_fn_append ac_configure_args1 " '$ac_arg'"
2128 if test $ac_must_keep_next = true; then
2129 ac_must_keep_next=false # Got value, back to normal.
2130 else
2131 case $ac_arg in
2132 *=* | --config-cache | -C | -disable-* | --disable-* \
2133 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2134 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2135 | -with-* | --with-* | -without-* | --without-* | --x)
2136 case "$ac_configure_args0 " in
2137 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2138 esac
2139 ;;
2140 -* ) ac_must_keep_next=true ;;
2141 esac
2142 fi
2143 as_fn_append ac_configure_args " '$ac_arg'"
2144 ;;
2145 esac
2146 done
2147 done
2148 { ac_configure_args0=; unset ac_configure_args0;}
2149 { ac_configure_args1=; unset ac_configure_args1;}
2150
2151 # When interrupted or exit'd, cleanup temporary files, and complete
2152 # config.log. We remove comments because anyway the quotes in there
2153 # would cause problems or look ugly.
2154 # WARNING: Use '\'' to represent an apostrophe within the trap.
2155 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2156 trap 'exit_status=$?
2157 # Save into config.log some information that might help in debugging.
2158 {
2159 echo
2160
2161 $as_echo "## ---------------- ##
2162 ## Cache variables. ##
2163 ## ---------------- ##"
2164 echo
2165 # The following way of writing the cache mishandles newlines in values,
2166 (
2167 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2168 eval ac_val=\$$ac_var
2169 case $ac_val in #(
2170 *${as_nl}*)
2171 case $ac_var in #(
2172 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2173 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2174 esac
2175 case $ac_var in #(
2176 _ | IFS | as_nl) ;; #(
2177 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2178 *) { eval $ac_var=; unset $ac_var;} ;;
2179 esac ;;
2180 esac
2181 done
2182 (set) 2>&1 |
2183 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2184 *${as_nl}ac_space=\ *)
2185 sed -n \
2186 "s/'\''/'\''\\\\'\'''\''/g;
2187 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2188 ;; #(
2189 *)
2190 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2191 ;;
2192 esac |
2193 sort
2194 )
2195 echo
2196
2197 $as_echo "## ----------------- ##
2198 ## Output variables. ##
2199 ## ----------------- ##"
2200 echo
2201 for ac_var in $ac_subst_vars
2202 do
2203 eval ac_val=\$$ac_var
2204 case $ac_val in
2205 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2206 esac
2207 $as_echo "$ac_var='\''$ac_val'\''"
2208 done | sort
2209 echo
2210
2211 if test -n "$ac_subst_files"; then
2212 $as_echo "## ------------------- ##
2213 ## File substitutions. ##
2214 ## ------------------- ##"
2215 echo
2216 for ac_var in $ac_subst_files
2217 do
2218 eval ac_val=\$$ac_var
2219 case $ac_val in
2220 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2221 esac
2222 $as_echo "$ac_var='\''$ac_val'\''"
2223 done | sort
2224 echo
2225 fi
2226
2227 if test -s confdefs.h; then
2228 $as_echo "## ----------- ##
2229 ## confdefs.h. ##
2230 ## ----------- ##"
2231 echo
2232 cat confdefs.h
2233 echo
2234 fi
2235 test "$ac_signal" != 0 &&
2236 $as_echo "$as_me: caught signal $ac_signal"
2237 $as_echo "$as_me: exit $exit_status"
2238 } >&5
2239 rm -f core *.core core.conftest.* &&
2240 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2241 exit $exit_status
2242 ' 0
2243 for ac_signal in 1 2 13 15; do
2244 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2245 done
2246 ac_signal=0
2247
2248 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2249 rm -f -r conftest* confdefs.h
2250
2251 $as_echo "/* confdefs.h */" > confdefs.h
2252
2253 # Predefined preprocessor variables.
2254
2255 cat >>confdefs.h <<_ACEOF
2256 #define PACKAGE_NAME "$PACKAGE_NAME"
2257 _ACEOF
2258
2259 cat >>confdefs.h <<_ACEOF
2260 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2261 _ACEOF
2262
2263 cat >>confdefs.h <<_ACEOF
2264 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2265 _ACEOF
2266
2267 cat >>confdefs.h <<_ACEOF
2268 #define PACKAGE_STRING "$PACKAGE_STRING"
2269 _ACEOF
2270
2271 cat >>confdefs.h <<_ACEOF
2272 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2273 _ACEOF
2274
2275 cat >>confdefs.h <<_ACEOF
2276 #define PACKAGE_URL "$PACKAGE_URL"
2277 _ACEOF
2278
2279
2280 # Let the site file select an alternate cache file if it wants to.
2281 # Prefer an explicitly selected file to automatically selected ones.
2282 ac_site_file1=NONE
2283 ac_site_file2=NONE
2284 if test -n "$CONFIG_SITE"; then
2285 # We do not want a PATH search for config.site.
2286 case $CONFIG_SITE in #((
2287 -*) ac_site_file1=./$CONFIG_SITE;;
2288 */*) ac_site_file1=$CONFIG_SITE;;
2289 *) ac_site_file1=./$CONFIG_SITE;;
2290 esac
2291 elif test "x$prefix" != xNONE; then
2292 ac_site_file1=$prefix/share/config.site
2293 ac_site_file2=$prefix/etc/config.site
2294 else
2295 ac_site_file1=$ac_default_prefix/share/config.site
2296 ac_site_file2=$ac_default_prefix/etc/config.site
2297 fi
2298 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2299 do
2300 test "x$ac_site_file" = xNONE && continue
2301 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2303 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2304 sed 's/^/| /' "$ac_site_file" >&5
2305 . "$ac_site_file" \
2306 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2308 as_fn_error $? "failed to load site script $ac_site_file
2309 See \`config.log' for more details" "$LINENO" 5; }
2310 fi
2311 done
2312
2313 if test -r "$cache_file"; then
2314 # Some versions of bash will fail to source /dev/null (special files
2315 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2316 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2318 $as_echo "$as_me: loading cache $cache_file" >&6;}
2319 case $cache_file in
2320 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2321 *) . "./$cache_file";;
2322 esac
2323 fi
2324 else
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2326 $as_echo "$as_me: creating cache $cache_file" >&6;}
2327 >$cache_file
2328 fi
2329
2330 # Check that the precious variables saved in the cache have kept the same
2331 # value.
2332 ac_cache_corrupted=false
2333 for ac_var in $ac_precious_vars; do
2334 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2335 eval ac_new_set=\$ac_env_${ac_var}_set
2336 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2337 eval ac_new_val=\$ac_env_${ac_var}_value
2338 case $ac_old_set,$ac_new_set in
2339 set,)
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2341 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2342 ac_cache_corrupted=: ;;
2343 ,set)
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2345 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2346 ac_cache_corrupted=: ;;
2347 ,);;
2348 *)
2349 if test "x$ac_old_val" != "x$ac_new_val"; then
2350 # differences in whitespace do not lead to failure.
2351 ac_old_val_w=`echo x $ac_old_val`
2352 ac_new_val_w=`echo x $ac_new_val`
2353 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2355 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2356 ac_cache_corrupted=:
2357 else
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2359 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2360 eval $ac_var=\$ac_old_val
2361 fi
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2363 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2365 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2366 fi;;
2367 esac
2368 # Pass precious variables to config.status.
2369 if test "$ac_new_set" = set; then
2370 case $ac_new_val in
2371 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2372 *) ac_arg=$ac_var=$ac_new_val ;;
2373 esac
2374 case " $ac_configure_args " in
2375 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2376 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2377 esac
2378 fi
2379 done
2380 if $ac_cache_corrupted; then
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2382 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2384 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2385 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2386 fi
2387 ## -------------------- ##
2388 ## Main body of script. ##
2389 ## -------------------- ##
2390
2391 ac_ext=c
2392 ac_cpp='$CPP $CPPFLAGS'
2393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2396
2397
2398
2399
2400 # Needed to stop autoconf from looking for files in parent directories.
2401 ac_aux_dir=
2402 for ac_dir in . "$srcdir"/.; do
2403 if test -f "$ac_dir/install-sh"; then
2404 ac_aux_dir=$ac_dir
2405 ac_install_sh="$ac_aux_dir/install-sh -c"
2406 break
2407 elif test -f "$ac_dir/install.sh"; then
2408 ac_aux_dir=$ac_dir
2409 ac_install_sh="$ac_aux_dir/install.sh -c"
2410 break
2411 elif test -f "$ac_dir/shtool"; then
2412 ac_aux_dir=$ac_dir
2413 ac_install_sh="$ac_aux_dir/shtool install -c"
2414 break
2415 fi
2416 done
2417 if test -z "$ac_aux_dir"; then
2418 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2419 fi
2420
2421 # These three variables are undocumented and unsupported,
2422 # and are intended to be withdrawn in a future Autoconf release.
2423 # They can cause serious problems if a builder's source tree is in a directory
2424 # whose full name contains unusual characters.
2425 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2426 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2427 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2428
2429
2430
2431 am__api_version='1.13'
2432
2433 # Find a good install program. We prefer a C program (faster),
2434 # so one script is as good as another. But avoid the broken or
2435 # incompatible versions:
2436 # SysV /etc/install, /usr/sbin/install
2437 # SunOS /usr/etc/install
2438 # IRIX /sbin/install
2439 # AIX /bin/install
2440 # AmigaOS /C/install, which installs bootblocks on floppy discs
2441 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2442 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2443 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2444 # OS/2's system install, which has a completely different semantic
2445 # ./install, which can be erroneously created by make from ./install.sh.
2446 # Reject install programs that cannot install multiple files.
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2448 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2449 if test -z "$INSTALL"; then
2450 if ${ac_cv_path_install+:} false; then :
2451 $as_echo_n "(cached) " >&6
2452 else
2453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454 for as_dir in $PATH
2455 do
2456 IFS=$as_save_IFS
2457 test -z "$as_dir" && as_dir=.
2458 # Account for people who put trailing slashes in PATH elements.
2459 case $as_dir/ in #((
2460 ./ | .// | /[cC]/* | \
2461 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2462 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2463 /usr/ucb/* ) ;;
2464 *)
2465 # OSF1 and SCO ODT 3.0 have their own names for install.
2466 # Don't use installbsd from OSF since it installs stuff as root
2467 # by default.
2468 for ac_prog in ginstall scoinst install; do
2469 for ac_exec_ext in '' $ac_executable_extensions; do
2470 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2471 if test $ac_prog = install &&
2472 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2473 # AIX install. It has an incompatible calling convention.
2474 :
2475 elif test $ac_prog = install &&
2476 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2477 # program-specific install script used by HP pwplus--don't use.
2478 :
2479 else
2480 rm -rf conftest.one conftest.two conftest.dir
2481 echo one > conftest.one
2482 echo two > conftest.two
2483 mkdir conftest.dir
2484 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2485 test -s conftest.one && test -s conftest.two &&
2486 test -s conftest.dir/conftest.one &&
2487 test -s conftest.dir/conftest.two
2488 then
2489 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2490 break 3
2491 fi
2492 fi
2493 fi
2494 done
2495 done
2496 ;;
2497 esac
2498
2499 done
2500 IFS=$as_save_IFS
2501
2502 rm -rf conftest.one conftest.two conftest.dir
2503
2504 fi
2505 if test "${ac_cv_path_install+set}" = set; then
2506 INSTALL=$ac_cv_path_install
2507 else
2508 # As a last resort, use the slow shell script. Don't cache a
2509 # value for INSTALL within a source directory, because that will
2510 # break other packages using the cache if that directory is
2511 # removed, or if the value is a relative name.
2512 INSTALL=$ac_install_sh
2513 fi
2514 fi
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2516 $as_echo "$INSTALL" >&6; }
2517
2518 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2519 # It thinks the first close brace ends the variable substitution.
2520 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2521
2522 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2523
2524 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2525
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2527 $as_echo_n "checking whether build environment is sane... " >&6; }
2528 # Reject unsafe characters in $srcdir or the absolute working directory
2529 # name. Accept space and tab only in the latter.
2530 am_lf='
2531 '
2532 case `pwd` in
2533 *[\\\"\#\$\&\'\`$am_lf]*)
2534 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2535 esac
2536 case $srcdir in
2537 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2538 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2539 esac
2540
2541 # Do 'set' in a subshell so we don't clobber the current shell's
2542 # arguments. Must try -L first in case configure is actually a
2543 # symlink; some systems play weird games with the mod time of symlinks
2544 # (eg FreeBSD returns the mod time of the symlink's containing
2545 # directory).
2546 if (
2547 am_has_slept=no
2548 for am_try in 1 2; do
2549 echo "timestamp, slept: $am_has_slept" > conftest.file
2550 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2551 if test "$*" = "X"; then
2552 # -L didn't work.
2553 set X `ls -t "$srcdir/configure" conftest.file`
2554 fi
2555 if test "$*" != "X $srcdir/configure conftest.file" \
2556 && test "$*" != "X conftest.file $srcdir/configure"; then
2557
2558 # If neither matched, then we have a broken ls. This can happen
2559 # if, for instance, CONFIG_SHELL is bash and it inherits a
2560 # broken ls alias from the environment. This has actually
2561 # happened. Such a system could not be considered "sane".
2562 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2563 alias in your environment" "$LINENO" 5
2564 fi
2565 if test "$2" = conftest.file || test $am_try -eq 2; then
2566 break
2567 fi
2568 # Just in case.
2569 sleep 1
2570 am_has_slept=yes
2571 done
2572 test "$2" = conftest.file
2573 )
2574 then
2575 # Ok.
2576 :
2577 else
2578 as_fn_error $? "newly created file is older than distributed files!
2579 Check your system clock" "$LINENO" 5
2580 fi
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2582 $as_echo "yes" >&6; }
2583 # If we didn't sleep, we still need to ensure time stamps of config.status and
2584 # generated files are strictly newer.
2585 am_sleep_pid=
2586 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2587 ( sleep 1 ) &
2588 am_sleep_pid=$!
2589 fi
2590
2591 rm -f conftest.file
2592
2593 test "$program_prefix" != NONE &&
2594 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2595 # Use a double $ so make ignores it.
2596 test "$program_suffix" != NONE &&
2597 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2598 # Double any \ or $.
2599 # By default was `s,x,x', remove it if useless.
2600 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2601 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2602
2603 # expand $ac_aux_dir to an absolute path
2604 am_aux_dir=`cd $ac_aux_dir && pwd`
2605
2606 if test x"${MISSING+set}" != xset; then
2607 case $am_aux_dir in
2608 *\ * | *\ *)
2609 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2610 *)
2611 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2612 esac
2613 fi
2614 # Use eval to expand $SHELL
2615 if eval "$MISSING --is-lightweight"; then
2616 am_missing_run="$MISSING "
2617 else
2618 am_missing_run=
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2620 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2621 fi
2622
2623 if test x"${install_sh}" != xset; then
2624 case $am_aux_dir in
2625 *\ * | *\ *)
2626 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2627 *)
2628 install_sh="\${SHELL} $am_aux_dir/install-sh"
2629 esac
2630 fi
2631
2632 # Installed binaries are usually stripped using 'strip' when the user
2633 # run "make install-strip". However 'strip' might not be the right
2634 # tool to use in cross-compilation environments, therefore Automake
2635 # will honor the 'STRIP' environment variable to overrule this program.
2636 if test "$cross_compiling" != no; then
2637 if test -n "$ac_tool_prefix"; then
2638 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2639 set dummy ${ac_tool_prefix}strip; ac_word=$2
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2641 $as_echo_n "checking for $ac_word... " >&6; }
2642 if ${ac_cv_prog_STRIP+:} false; then :
2643 $as_echo_n "(cached) " >&6
2644 else
2645 if test -n "$STRIP"; then
2646 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2647 else
2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649 for as_dir in $PATH
2650 do
2651 IFS=$as_save_IFS
2652 test -z "$as_dir" && as_dir=.
2653 for ac_exec_ext in '' $ac_executable_extensions; do
2654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2655 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2657 break 2
2658 fi
2659 done
2660 done
2661 IFS=$as_save_IFS
2662
2663 fi
2664 fi
2665 STRIP=$ac_cv_prog_STRIP
2666 if test -n "$STRIP"; then
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2668 $as_echo "$STRIP" >&6; }
2669 else
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2671 $as_echo "no" >&6; }
2672 fi
2673
2674
2675 fi
2676 if test -z "$ac_cv_prog_STRIP"; then
2677 ac_ct_STRIP=$STRIP
2678 # Extract the first word of "strip", so it can be a program name with args.
2679 set dummy strip; ac_word=$2
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2681 $as_echo_n "checking for $ac_word... " >&6; }
2682 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2683 $as_echo_n "(cached) " >&6
2684 else
2685 if test -n "$ac_ct_STRIP"; then
2686 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2687 else
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689 for as_dir in $PATH
2690 do
2691 IFS=$as_save_IFS
2692 test -z "$as_dir" && as_dir=.
2693 for ac_exec_ext in '' $ac_executable_extensions; do
2694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2695 ac_cv_prog_ac_ct_STRIP="strip"
2696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2697 break 2
2698 fi
2699 done
2700 done
2701 IFS=$as_save_IFS
2702
2703 fi
2704 fi
2705 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2706 if test -n "$ac_ct_STRIP"; then
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2708 $as_echo "$ac_ct_STRIP" >&6; }
2709 else
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2711 $as_echo "no" >&6; }
2712 fi
2713
2714 if test "x$ac_ct_STRIP" = x; then
2715 STRIP=":"
2716 else
2717 case $cross_compiling:$ac_tool_warned in
2718 yes:)
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2720 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2721 ac_tool_warned=yes ;;
2722 esac
2723 STRIP=$ac_ct_STRIP
2724 fi
2725 else
2726 STRIP="$ac_cv_prog_STRIP"
2727 fi
2728
2729 fi
2730 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2731
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2733 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2734 if test -z "$MKDIR_P"; then
2735 if ${ac_cv_path_mkdir+:} false; then :
2736 $as_echo_n "(cached) " >&6
2737 else
2738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2740 do
2741 IFS=$as_save_IFS
2742 test -z "$as_dir" && as_dir=.
2743 for ac_prog in mkdir gmkdir; do
2744 for ac_exec_ext in '' $ac_executable_extensions; do
2745 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2746 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2747 'mkdir (GNU coreutils) '* | \
2748 'mkdir (coreutils) '* | \
2749 'mkdir (fileutils) '4.1*)
2750 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2751 break 3;;
2752 esac
2753 done
2754 done
2755 done
2756 IFS=$as_save_IFS
2757
2758 fi
2759
2760 test -d ./--version && rmdir ./--version
2761 if test "${ac_cv_path_mkdir+set}" = set; then
2762 MKDIR_P="$ac_cv_path_mkdir -p"
2763 else
2764 # As a last resort, use the slow shell script. Don't cache a
2765 # value for MKDIR_P within a source directory, because that will
2766 # break other packages using the cache if that directory is
2767 # removed, or if the value is a relative name.
2768 MKDIR_P="$ac_install_sh -d"
2769 fi
2770 fi
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2772 $as_echo "$MKDIR_P" >&6; }
2773
2774 for ac_prog in gawk mawk nawk awk
2775 do
2776 # Extract the first word of "$ac_prog", so it can be a program name with args.
2777 set dummy $ac_prog; ac_word=$2
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2779 $as_echo_n "checking for $ac_word... " >&6; }
2780 if ${ac_cv_prog_AWK+:} false; then :
2781 $as_echo_n "(cached) " >&6
2782 else
2783 if test -n "$AWK"; then
2784 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2785 else
2786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787 for as_dir in $PATH
2788 do
2789 IFS=$as_save_IFS
2790 test -z "$as_dir" && as_dir=.
2791 for ac_exec_ext in '' $ac_executable_extensions; do
2792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2793 ac_cv_prog_AWK="$ac_prog"
2794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2795 break 2
2796 fi
2797 done
2798 done
2799 IFS=$as_save_IFS
2800
2801 fi
2802 fi
2803 AWK=$ac_cv_prog_AWK
2804 if test -n "$AWK"; then
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2806 $as_echo "$AWK" >&6; }
2807 else
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2809 $as_echo "no" >&6; }
2810 fi
2811
2812
2813 test -n "$AWK" && break
2814 done
2815
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2817 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2818 set x ${MAKE-make}
2819 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2820 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2821 $as_echo_n "(cached) " >&6
2822 else
2823 cat >conftest.make <<\_ACEOF
2824 SHELL = /bin/sh
2825 all:
2826 @echo '@@@%%%=$(MAKE)=@@@%%%'
2827 _ACEOF
2828 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2829 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2830 *@@@%%%=?*=@@@%%%*)
2831 eval ac_cv_prog_make_${ac_make}_set=yes;;
2832 *)
2833 eval ac_cv_prog_make_${ac_make}_set=no;;
2834 esac
2835 rm -f conftest.make
2836 fi
2837 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2839 $as_echo "yes" >&6; }
2840 SET_MAKE=
2841 else
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2843 $as_echo "no" >&6; }
2844 SET_MAKE="MAKE=${MAKE-make}"
2845 fi
2846
2847 rm -rf .tst 2>/dev/null
2848 mkdir .tst 2>/dev/null
2849 if test -d .tst; then
2850 am__leading_dot=.
2851 else
2852 am__leading_dot=_
2853 fi
2854 rmdir .tst 2>/dev/null
2855
2856 # Check whether --enable-silent-rules was given.
2857 if test "${enable_silent_rules+set}" = set; then :
2858 enableval=$enable_silent_rules;
2859 fi
2860
2861 case $enable_silent_rules in # (((
2862 yes) AM_DEFAULT_VERBOSITY=0;;
2863 no) AM_DEFAULT_VERBOSITY=1;;
2864 *) AM_DEFAULT_VERBOSITY=1;;
2865 esac
2866 am_make=${MAKE-make}
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2868 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2869 if ${am_cv_make_support_nested_variables+:} false; then :
2870 $as_echo_n "(cached) " >&6
2871 else
2872 if $as_echo 'TRUE=$(BAR$(V))
2873 BAR0=false
2874 BAR1=true
2875 V=1
2876 am__doit:
2877 @$(TRUE)
2878 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2879 am_cv_make_support_nested_variables=yes
2880 else
2881 am_cv_make_support_nested_variables=no
2882 fi
2883 fi
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2885 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2886 if test $am_cv_make_support_nested_variables = yes; then
2887 AM_V='$(V)'
2888 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2889 else
2890 AM_V=$AM_DEFAULT_VERBOSITY
2891 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2892 fi
2893 AM_BACKSLASH='\'
2894
2895 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2896 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2897 # is not polluted with repeated "-I."
2898 am__isrc=' -I$(srcdir)'
2899 # test to see if srcdir already configured
2900 if test -f $srcdir/config.status; then
2901 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2902 fi
2903 fi
2904
2905 # test whether we have cygpath
2906 if test -z "$CYGPATH_W"; then
2907 if (cygpath --version) >/dev/null 2>/dev/null; then
2908 CYGPATH_W='cygpath -w'
2909 else
2910 CYGPATH_W=echo
2911 fi
2912 fi
2913
2914
2915 # Define the identity of the package.
2916 PACKAGE='lsh'
2917 VERSION='2.1'
2918
2919
2920 cat >>confdefs.h <<_ACEOF
2921 #define PACKAGE "$PACKAGE"
2922 _ACEOF
2923
2924
2925 cat >>confdefs.h <<_ACEOF
2926 #define VERSION "$VERSION"
2927 _ACEOF
2928
2929 # Some tools Automake needs.
2930
2931 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2932
2933
2934 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2935
2936
2937 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2938
2939
2940 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2941
2942
2943 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2944
2945 # For better backward compatibility. To be removed once Automake 1.9.x
2946 # dies out for good. For more background, see:
2947 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2948 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2949 mkdir_p='$(MKDIR_P)'
2950
2951 # We need awk for the "check" target. The system "awk" is bad on
2952 # some platforms.
2953 # Always define AMTAR for backward compatibility. Yes, it's still used
2954 # in the wild :-( We should find a proper way to deprecate it ...
2955 AMTAR='$${TAR-tar}'
2956
2957
2958 # We'll loop over all known methods to create a tar archive until one works.
2959 _am_tools='gnutar pax cpio none'
2960
2961 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2962
2963
2964
2965
2966
2967
2968 ac_config_headers="$ac_config_headers config.h"
2969
2970
2971 # We want an absolute path to the source-dir.
2972 case "$srcdir" in
2973 /*)
2974 ;;
2975 *)
2976 oldsrcdir="$srcdir"
2977 srcdir="`cd \"$srcdir\";pwd`"
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Converted $oldsrcdir to $srcdir,
2979 If this does not work, please use an absolute path to the configure script. " >&5
2980 $as_echo "$as_me: WARNING: Converted $oldsrcdir to $srcdir,
2981 If this does not work, please use an absolute path to the configure script. " >&2;}
2982 ;;
2983 esac
2984
2985 # src/rsync relies on lsh's definitions of WRITE_UINT32 etc.
2986 # CPPFLAGS="$CPPFLAGS -I$srcdir/src -DLSH"
2987
2988 # GNU libc defaults to supplying the ISO C library functions only.
2989 # initgroups() and strsignal() are extensions; the _GNU_SOURCE define
2990 # enables these extensions.
2991 # Enable it on all systems; no problems have been reported with it so far.
2992
2993 DEPDIR="${am__leading_dot}deps"
2994
2995 ac_config_commands="$ac_config_commands depfiles"
2996
2997
2998 am_make=${MAKE-make}
2999 cat > confinc << 'END'
3000 am__doit:
3001 @echo this is the am__doit target
3002 .PHONY: am__doit
3003 END
3004 # If we don't find an include directive, just comment out the code.
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3006 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3007 am__include="#"
3008 am__quote=
3009 _am_result=none
3010 # First try GNU make style include.
3011 echo "include confinc" > confmf
3012 # Ignore all kinds of additional output from 'make'.
3013 case `$am_make -s -f confmf 2> /dev/null` in #(
3014 *the\ am__doit\ target*)
3015 am__include=include
3016 am__quote=
3017 _am_result=GNU
3018 ;;
3019 esac
3020 # Now try BSD make style include.
3021 if test "$am__include" = "#"; then
3022 echo '.include "confinc"' > confmf
3023 case `$am_make -s -f confmf 2> /dev/null` in #(
3024 *the\ am__doit\ target*)
3025 am__include=.include
3026 am__quote="\""
3027 _am_result=BSD
3028 ;;
3029 esac
3030 fi
3031
3032
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3034 $as_echo "$_am_result" >&6; }
3035 rm -f confinc confmf
3036
3037 # Check whether --enable-dependency-tracking was given.
3038 if test "${enable_dependency_tracking+set}" = set; then :
3039 enableval=$enable_dependency_tracking;
3040 fi
3041
3042 if test "x$enable_dependency_tracking" != xno; then
3043 am_depcomp="$ac_aux_dir/depcomp"
3044 AMDEPBACKSLASH='\'
3045 am__nodep='_no'
3046 fi
3047 if test "x$enable_dependency_tracking" != xno; then
3048 AMDEP_TRUE=
3049 AMDEP_FALSE='#'
3050 else
3051 AMDEP_TRUE='#'
3052 AMDEP_FALSE=
3053 fi
3054
3055
3056 ac_ext=c
3057 ac_cpp='$CPP $CPPFLAGS'
3058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3061 if test -n "$ac_tool_prefix"; then
3062 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3063 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3065 $as_echo_n "checking for $ac_word... " >&6; }
3066 if ${ac_cv_prog_CC+:} false; then :
3067 $as_echo_n "(cached) " >&6
3068 else
3069 if test -n "$CC"; then
3070 ac_cv_prog_CC="$CC" # Let the user override the test.
3071 else
3072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3073 for as_dir in $PATH
3074 do
3075 IFS=$as_save_IFS
3076 test -z "$as_dir" && as_dir=.
3077 for ac_exec_ext in '' $ac_executable_extensions; do
3078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3079 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3081 break 2
3082 fi
3083 done
3084 done
3085 IFS=$as_save_IFS
3086
3087 fi
3088 fi
3089 CC=$ac_cv_prog_CC
3090 if test -n "$CC"; then
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3092 $as_echo "$CC" >&6; }
3093 else
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3095 $as_echo "no" >&6; }
3096 fi
3097
3098
3099 fi
3100 if test -z "$ac_cv_prog_CC"; then
3101 ac_ct_CC=$CC
3102 # Extract the first word of "gcc", so it can be a program name with args.
3103 set dummy gcc; ac_word=$2
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3105 $as_echo_n "checking for $ac_word... " >&6; }
3106 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3107 $as_echo_n "(cached) " >&6
3108 else
3109 if test -n "$ac_ct_CC"; then
3110 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3111 else
3112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113 for as_dir in $PATH
3114 do
3115 IFS=$as_save_IFS
3116 test -z "$as_dir" && as_dir=.
3117 for ac_exec_ext in '' $ac_executable_extensions; do
3118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3119 ac_cv_prog_ac_ct_CC="gcc"
3120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3121 break 2
3122 fi
3123 done
3124 done
3125 IFS=$as_save_IFS
3126
3127 fi
3128 fi
3129 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3130 if test -n "$ac_ct_CC"; then
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3132 $as_echo "$ac_ct_CC" >&6; }
3133 else
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3135 $as_echo "no" >&6; }
3136 fi
3137
3138 if test "x$ac_ct_CC" = x; then
3139 CC=""
3140 else
3141 case $cross_compiling:$ac_tool_warned in
3142 yes:)
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3144 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3145 ac_tool_warned=yes ;;
3146 esac
3147 CC=$ac_ct_CC
3148 fi
3149 else
3150 CC="$ac_cv_prog_CC"
3151 fi
3152
3153 if test -z "$CC"; then
3154 if test -n "$ac_tool_prefix"; then
3155 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3156 set dummy ${ac_tool_prefix}cc; ac_word=$2
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3158 $as_echo_n "checking for $ac_word... " >&6; }
3159 if ${ac_cv_prog_CC+:} false; then :
3160 $as_echo_n "(cached) " >&6
3161 else
3162 if test -n "$CC"; then
3163 ac_cv_prog_CC="$CC" # Let the user override the test.
3164 else
3165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3166 for as_dir in $PATH
3167 do
3168 IFS=$as_save_IFS
3169 test -z "$as_dir" && as_dir=.
3170 for ac_exec_ext in '' $ac_executable_extensions; do
3171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3172 ac_cv_prog_CC="${ac_tool_prefix}cc"
3173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3174 break 2
3175 fi
3176 done
3177 done
3178 IFS=$as_save_IFS
3179
3180 fi
3181 fi
3182 CC=$ac_cv_prog_CC
3183 if test -n "$CC"; then
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3185 $as_echo "$CC" >&6; }
3186 else
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3188 $as_echo "no" >&6; }
3189 fi
3190
3191
3192 fi
3193 fi
3194 if test -z "$CC"; then
3195 # Extract the first word of "cc", so it can be a program name with args.
3196 set dummy cc; ac_word=$2
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3198 $as_echo_n "checking for $ac_word... " >&6; }
3199 if ${ac_cv_prog_CC+:} false; then :
3200 $as_echo_n "(cached) " >&6
3201 else
3202 if test -n "$CC"; then
3203 ac_cv_prog_CC="$CC" # Let the user override the test.
3204 else
3205 ac_prog_rejected=no
3206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207 for as_dir in $PATH
3208 do
3209 IFS=$as_save_IFS
3210 test -z "$as_dir" && as_dir=.
3211 for ac_exec_ext in '' $ac_executable_extensions; do
3212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3213 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3214 ac_prog_rejected=yes
3215 continue
3216 fi
3217 ac_cv_prog_CC="cc"
3218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3219 break 2
3220 fi
3221 done
3222 done
3223 IFS=$as_save_IFS
3224
3225 if test $ac_prog_rejected = yes; then
3226 # We found a bogon in the path, so make sure we never use it.
3227 set dummy $ac_cv_prog_CC
3228 shift
3229 if test $# != 0; then
3230 # We chose a different compiler from the bogus one.
3231 # However, it has the same basename, so the bogon will be chosen
3232 # first if we set CC to just the basename; use the full file name.
3233 shift
3234 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3235 fi
3236 fi
3237 fi
3238 fi
3239 CC=$ac_cv_prog_CC
3240 if test -n "$CC"; then
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3242 $as_echo "$CC" >&6; }
3243 else
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3245 $as_echo "no" >&6; }
3246 fi
3247
3248
3249 fi
3250 if test -z "$CC"; then
3251 if test -n "$ac_tool_prefix"; then
3252 for ac_prog in cl.exe
3253 do
3254 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3255 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3257 $as_echo_n "checking for $ac_word... " >&6; }
3258 if ${ac_cv_prog_CC+:} false; then :
3259 $as_echo_n "(cached) " >&6
3260 else
3261 if test -n "$CC"; then
3262 ac_cv_prog_CC="$CC" # Let the user override the test.
3263 else
3264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3265 for as_dir in $PATH
3266 do
3267 IFS=$as_save_IFS
3268 test -z "$as_dir" && as_dir=.
3269 for ac_exec_ext in '' $ac_executable_extensions; do
3270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3271 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3273 break 2
3274 fi
3275 done
3276 done
3277 IFS=$as_save_IFS
3278
3279 fi
3280 fi
3281 CC=$ac_cv_prog_CC
3282 if test -n "$CC"; then
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3284 $as_echo "$CC" >&6; }
3285 else
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287 $as_echo "no" >&6; }
3288 fi
3289
3290
3291 test -n "$CC" && break
3292 done
3293 fi
3294 if test -z "$CC"; then
3295 ac_ct_CC=$CC
3296 for ac_prog in cl.exe
3297 do
3298 # Extract the first word of "$ac_prog", so it can be a program name with args.
3299 set dummy $ac_prog; ac_word=$2
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3301 $as_echo_n "checking for $ac_word... " >&6; }
3302 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3303 $as_echo_n "(cached) " >&6
3304 else
3305 if test -n "$ac_ct_CC"; then
3306 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3307 else
3308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3309 for as_dir in $PATH
3310 do
3311 IFS=$as_save_IFS
3312 test -z "$as_dir" && as_dir=.
3313 for ac_exec_ext in '' $ac_executable_extensions; do
3314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3315 ac_cv_prog_ac_ct_CC="$ac_prog"
3316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3317 break 2
3318 fi
3319 done
3320 done
3321 IFS=$as_save_IFS
3322
3323 fi
3324 fi
3325 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3326 if test -n "$ac_ct_CC"; then
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3328 $as_echo "$ac_ct_CC" >&6; }
3329 else
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3331 $as_echo "no" >&6; }
3332 fi
3333
3334
3335 test -n "$ac_ct_CC" && break
3336 done
3337
3338 if test "x$ac_ct_CC" = x; then
3339 CC=""
3340 else
3341 case $cross_compiling:$ac_tool_warned in
3342 yes:)
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3344 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3345 ac_tool_warned=yes ;;
3346 esac
3347 CC=$ac_ct_CC
3348 fi
3349 fi
3350
3351 fi
3352
3353
3354 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3356 as_fn_error $? "no acceptable C compiler found in \$PATH
3357 See \`config.log' for more details" "$LINENO" 5; }
3358
3359 # Provide some information about the compiler.
3360 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3361 set X $ac_compile
3362 ac_compiler=$2
3363 for ac_option in --version -v -V -qversion; do
3364 { { ac_try="$ac_compiler $ac_option >&5"
3365 case "(($ac_try" in
3366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367 *) ac_try_echo=$ac_try;;
3368 esac
3369 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3370 $as_echo "$ac_try_echo"; } >&5
3371 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3372 ac_status=$?
3373 if test -s conftest.err; then
3374 sed '10a\
3375 ... rest of stderr output deleted ...
3376 10q' conftest.err >conftest.er1
3377 cat conftest.er1 >&5
3378 fi
3379 rm -f conftest.er1 conftest.err
3380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3381 test $ac_status = 0; }
3382 done
3383
3384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3385 /* end confdefs.h. */
3386
3387 int
3388 main ()
3389 {
3390
3391 ;
3392 return 0;
3393 }
3394 _ACEOF
3395 ac_clean_files_save=$ac_clean_files
3396 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3397 # Try to create an executable without -o first, disregard a.out.
3398 # It will help us diagnose broken compilers, and finding out an intuition
3399 # of exeext.
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3401 $as_echo_n "checking whether the C compiler works... " >&6; }
3402 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3403
3404 # The possible output files:
3405 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3406
3407 ac_rmfiles=
3408 for ac_file in $ac_files
3409 do
3410 case $ac_file in
3411 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3412 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3413 esac
3414 done
3415 rm -f $ac_rmfiles
3416
3417 if { { ac_try="$ac_link_default"
3418 case "(($ac_try" in
3419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3420 *) ac_try_echo=$ac_try;;
3421 esac
3422 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3423 $as_echo "$ac_try_echo"; } >&5
3424 (eval "$ac_link_default") 2>&5
3425 ac_status=$?
3426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3427 test $ac_status = 0; }; then :
3428 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3429 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3430 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3431 # so that the user can short-circuit this test for compilers unknown to
3432 # Autoconf.
3433 for ac_file in $ac_files ''
3434 do
3435 test -f "$ac_file" || continue
3436 case $ac_file in
3437 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3438 ;;
3439 [ab].out )
3440 # We found the default executable, but exeext='' is most
3441 # certainly right.
3442 break;;
3443 *.* )
3444 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3445 then :; else
3446 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3447 fi
3448 # We set ac_cv_exeext here because the later test for it is not
3449 # safe: cross compilers may not add the suffix if given an `-o'
3450 # argument, so we may need to know it at that point already.
3451 # Even if this section looks crufty: it has the advantage of
3452 # actually working.
3453 break;;
3454 * )
3455 break;;
3456 esac
3457 done
3458 test "$ac_cv_exeext" = no && ac_cv_exeext=
3459
3460 else
3461 ac_file=''
3462 fi
3463 if test -z "$ac_file"; then :
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3465 $as_echo "no" >&6; }
3466 $as_echo "$as_me: failed program was:" >&5
3467 sed 's/^/| /' conftest.$ac_ext >&5
3468
3469 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3470 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3471 as_fn_error 77 "C compiler cannot create executables
3472 See \`config.log' for more details" "$LINENO" 5; }
3473 else
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3475 $as_echo "yes" >&6; }
3476 fi
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3478 $as_echo_n "checking for C compiler default output file name... " >&6; }
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3480 $as_echo "$ac_file" >&6; }
3481 ac_exeext=$ac_cv_exeext
3482
3483 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3484 ac_clean_files=$ac_clean_files_save
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3486 $as_echo_n "checking for suffix of executables... " >&6; }
3487 if { { ac_try="$ac_link"
3488 case "(($ac_try" in
3489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3490 *) ac_try_echo=$ac_try;;
3491 esac
3492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3493 $as_echo "$ac_try_echo"; } >&5
3494 (eval "$ac_link") 2>&5
3495 ac_status=$?
3496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3497 test $ac_status = 0; }; then :
3498 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3499 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3500 # work properly (i.e., refer to `conftest.exe'), while it won't with
3501 # `rm'.
3502 for ac_file in conftest.exe conftest conftest.*; do
3503 test -f "$ac_file" || continue
3504 case $ac_file in
3505 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3506 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3507 break;;
3508 * ) break;;
3509 esac
3510 done
3511 else
3512 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3513 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3514 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3515 See \`config.log' for more details" "$LINENO" 5; }
3516 fi
3517 rm -f conftest conftest$ac_cv_exeext
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3519 $as_echo "$ac_cv_exeext" >&6; }
3520
3521 rm -f conftest.$ac_ext
3522 EXEEXT=$ac_cv_exeext
3523 ac_exeext=$EXEEXT
3524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525 /* end confdefs.h. */
3526 #include <stdio.h>
3527 int
3528 main ()
3529 {
3530 FILE *f = fopen ("conftest.out", "w");
3531 return ferror (f) || fclose (f) != 0;
3532
3533 ;
3534 return 0;
3535 }
3536 _ACEOF
3537 ac_clean_files="$ac_clean_files conftest.out"
3538 # Check that the compiler produces executables we can run. If not, either
3539 # the compiler is broken, or we cross compile.
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3541 $as_echo_n "checking whether we are cross compiling... " >&6; }
3542 if test "$cross_compiling" != yes; then
3543 { { ac_try="$ac_link"
3544 case "(($ac_try" in
3545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3546 *) ac_try_echo=$ac_try;;
3547 esac
3548 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3549 $as_echo "$ac_try_echo"; } >&5
3550 (eval "$ac_link") 2>&5
3551 ac_status=$?
3552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3553 test $ac_status = 0; }
3554 if { ac_try='./conftest$ac_cv_exeext'
3555 { { case "(($ac_try" in
3556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3557 *) ac_try_echo=$ac_try;;
3558 esac
3559 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3560 $as_echo "$ac_try_echo"; } >&5
3561 (eval "$ac_try") 2>&5
3562 ac_status=$?
3563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3564 test $ac_status = 0; }; }; then
3565 cross_compiling=no
3566 else
3567 if test "$cross_compiling" = maybe; then
3568 cross_compiling=yes
3569 else
3570 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3572 as_fn_error $? "cannot run C compiled programs.
3573 If you meant to cross compile, use \`--host'.
3574 See \`config.log' for more details" "$LINENO" 5; }
3575 fi
3576 fi
3577 fi
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3579 $as_echo "$cross_compiling" >&6; }
3580
3581 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3582 ac_clean_files=$ac_clean_files_save
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3584 $as_echo_n "checking for suffix of object files... " >&6; }
3585 if ${ac_cv_objext+:} false; then :
3586 $as_echo_n "(cached) " >&6
3587 else
3588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3589 /* end confdefs.h. */
3590
3591 int
3592 main ()
3593 {
3594
3595 ;
3596 return 0;
3597 }
3598 _ACEOF
3599 rm -f conftest.o conftest.obj
3600 if { { ac_try="$ac_compile"
3601 case "(($ac_try" in
3602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603 *) ac_try_echo=$ac_try;;
3604 esac
3605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3606 $as_echo "$ac_try_echo"; } >&5
3607 (eval "$ac_compile") 2>&5
3608 ac_status=$?
3609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3610 test $ac_status = 0; }; then :
3611 for ac_file in conftest.o conftest.obj conftest.*; do
3612 test -f "$ac_file" || continue;
3613 case $ac_file in
3614 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3615 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3616 break;;
3617 esac
3618 done
3619 else
3620 $as_echo "$as_me: failed program was:" >&5
3621 sed 's/^/| /' conftest.$ac_ext >&5
3622
3623 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3624 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3625 as_fn_error $? "cannot compute suffix of object files: cannot compile
3626 See \`config.log' for more details" "$LINENO" 5; }
3627 fi
3628 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3629 fi
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3631 $as_echo "$ac_cv_objext" >&6; }
3632 OBJEXT=$ac_cv_objext
3633 ac_objext=$OBJEXT
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3635 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3636 if ${ac_cv_c_compiler_gnu+:} false; then :
3637 $as_echo_n "(cached) " >&6
3638 else
3639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3640 /* end confdefs.h. */
3641
3642 int
3643 main ()
3644 {
3645 #ifndef __GNUC__
3646 choke me
3647 #endif
3648
3649 ;
3650 return 0;
3651 }
3652 _ACEOF
3653 if ac_fn_c_try_compile "$LINENO"; then :
3654 ac_compiler_gnu=yes
3655 else
3656 ac_compiler_gnu=no
3657 fi
3658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3659 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3660
3661 fi
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3663 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3664 if test $ac_compiler_gnu = yes; then
3665 GCC=yes
3666 else
3667 GCC=
3668 fi
3669 ac_test_CFLAGS=${CFLAGS+set}
3670 ac_save_CFLAGS=$CFLAGS
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3672 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3673 if ${ac_cv_prog_cc_g+:} false; then :
3674 $as_echo_n "(cached) " >&6
3675 else
3676 ac_save_c_werror_flag=$ac_c_werror_flag
3677 ac_c_werror_flag=yes
3678 ac_cv_prog_cc_g=no
3679 CFLAGS="-g"
3680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3681 /* end confdefs.h. */
3682
3683 int
3684 main ()
3685 {
3686
3687 ;
3688 return 0;
3689 }
3690 _ACEOF
3691 if ac_fn_c_try_compile "$LINENO"; then :
3692 ac_cv_prog_cc_g=yes
3693 else
3694 CFLAGS=""
3695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696 /* end confdefs.h. */
3697
3698 int
3699 main ()
3700 {
3701
3702 ;
3703 return 0;
3704 }
3705 _ACEOF
3706 if ac_fn_c_try_compile "$LINENO"; then :
3707
3708 else
3709 ac_c_werror_flag=$ac_save_c_werror_flag
3710 CFLAGS="-g"
3711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3712 /* end confdefs.h. */
3713
3714 int
3715 main ()
3716 {
3717
3718 ;
3719 return 0;
3720 }
3721 _ACEOF
3722 if ac_fn_c_try_compile "$LINENO"; then :
3723 ac_cv_prog_cc_g=yes
3724 fi
3725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3726 fi
3727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3728 fi
3729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3730 ac_c_werror_flag=$ac_save_c_werror_flag
3731 fi
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3733 $as_echo "$ac_cv_prog_cc_g" >&6; }
3734 if test "$ac_test_CFLAGS" = set; then
3735 CFLAGS=$ac_save_CFLAGS
3736 elif test $ac_cv_prog_cc_g = yes; then
3737 if test "$GCC" = yes; then
3738 CFLAGS="-g -O2"
3739 else
3740 CFLAGS="-g"
3741 fi
3742 else
3743 if test "$GCC" = yes; then
3744 CFLAGS="-O2"
3745 else
3746 CFLAGS=
3747 fi
3748 fi
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3750 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3751 if ${ac_cv_prog_cc_c89+:} false; then :
3752 $as_echo_n "(cached) " >&6
3753 else
3754 ac_cv_prog_cc_c89=no
3755 ac_save_CC=$CC
3756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3757 /* end confdefs.h. */
3758 #include <stdarg.h>
3759 #include <stdio.h>
3760 struct stat;
3761 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3762 struct buf { int x; };
3763 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3764 static char *e (p, i)
3765 char **p;
3766 int i;
3767 {
3768 return p[i];
3769 }
3770 static char *f (char * (*g) (char **, int), char **p, ...)
3771 {
3772 char *s;
3773 va_list v;
3774 va_start (v,p);
3775 s = g (p, va_arg (v,int));
3776 va_end (v);
3777 return s;
3778 }
3779
3780 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3781 function prototypes and stuff, but not '\xHH' hex character constants.
3782 These don't provoke an error unfortunately, instead are silently treated
3783 as 'x'. The following induces an error, until -std is added to get
3784 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3785 array size at least. It's necessary to write '\x00'==0 to get something
3786 that's true only with -std. */
3787 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3788
3789 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3790 inside strings and character constants. */
3791 #define FOO(x) 'x'
3792 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3793
3794 int test (int i, double x);
3795 struct s1 {int (*f) (int a);};
3796 struct s2 {int (*f) (double a);};
3797 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3798 int argc;
3799 char **argv;
3800 int
3801 main ()
3802 {
3803 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3804 ;
3805 return 0;
3806 }
3807 _ACEOF
3808 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3809 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3810 do
3811 CC="$ac_save_CC $ac_arg"
3812 if ac_fn_c_try_compile "$LINENO"; then :
3813 ac_cv_prog_cc_c89=$ac_arg
3814 fi
3815 rm -f core conftest.err conftest.$ac_objext
3816 test "x$ac_cv_prog_cc_c89" != "xno" && break
3817 done
3818 rm -f conftest.$ac_ext
3819 CC=$ac_save_CC
3820
3821 fi
3822 # AC_CACHE_VAL
3823 case "x$ac_cv_prog_cc_c89" in
3824 x)
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3826 $as_echo "none needed" >&6; } ;;
3827 xno)
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3829 $as_echo "unsupported" >&6; } ;;
3830 *)
3831 CC="$CC $ac_cv_prog_cc_c89"
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3833 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3834 esac
3835 if test "x$ac_cv_prog_cc_c89" != xno; then :
3836
3837 fi
3838
3839 ac_ext=c
3840 ac_cpp='$CPP $CPPFLAGS'
3841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3844
3845 depcc="$CC" am_compiler_list=
3846
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3848 $as_echo_n "checking dependency style of $depcc... " >&6; }
3849 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3850 $as_echo_n "(cached) " >&6
3851 else
3852 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3853 # We make a subdir and do the tests there. Otherwise we can end up
3854 # making bogus files that we don't know about and never remove. For
3855 # instance it was reported that on HP-UX the gcc test will end up
3856 # making a dummy file named 'D' -- because '-MD' means "put the output
3857 # in D".
3858 rm -rf conftest.dir
3859 mkdir conftest.dir
3860 # Copy depcomp to subdir because otherwise we won't find it if we're
3861 # using a relative directory.
3862 cp "$am_depcomp" conftest.dir
3863 cd conftest.dir
3864 # We will build objects and dependencies in a subdirectory because
3865 # it helps to detect inapplicable dependency modes. For instance
3866 # both Tru64's cc and ICC support -MD to output dependencies as a
3867 # side effect of compilation, but ICC will put the dependencies in
3868 # the current directory while Tru64 will put them in the object
3869 # directory.
3870 mkdir sub
3871
3872 am_cv_CC_dependencies_compiler_type=none
3873 if test "$am_compiler_list" = ""; then
3874 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3875 fi
3876 am__universal=false
3877 case " $depcc " in #(
3878 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3879 esac
3880
3881 for depmode in $am_compiler_list; do
3882 # Setup a source with many dependencies, because some compilers
3883 # like to wrap large dependency lists on column 80 (with \), and
3884 # we should not choose a depcomp mode which is confused by this.
3885 #
3886 # We need to recreate these files for each test, as the compiler may
3887 # overwrite some of them when testing with obscure command lines.
3888 # This happens at least with the AIX C compiler.
3889 : > sub/conftest.c
3890 for i in 1 2 3 4 5 6; do
3891 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3892 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3893 # Solaris 10 /bin/sh.
3894 echo '/* dummy */' > sub/conftst$i.h
3895 done
3896 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3897
3898 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3899 # mode. It turns out that the SunPro C++ compiler does not properly
3900 # handle '-M -o', and we need to detect this. Also, some Intel
3901 # versions had trouble with output in subdirs.
3902 am__obj=sub/conftest.${OBJEXT-o}
3903 am__minus_obj="-o $am__obj"
3904 case $depmode in
3905 gcc)
3906 # This depmode causes a compiler race in universal mode.
3907 test "$am__universal" = false || continue
3908 ;;
3909 nosideeffect)
3910 # After this tag, mechanisms are not by side-effect, so they'll
3911 # only be used when explicitly requested.
3912 if test "x$enable_dependency_tracking" = xyes; then
3913 continue
3914 else
3915 break
3916 fi
3917 ;;
3918 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3919 # This compiler won't grok '-c -o', but also, the minuso test has
3920 # not run yet. These depmodes are late enough in the game, and
3921 # so weak that their functioning should not be impacted.
3922 am__obj=conftest.${OBJEXT-o}
3923 am__minus_obj=
3924 ;;
3925 none) break ;;
3926 esac
3927 if depmode=$depmode \
3928 source=sub/conftest.c object=$am__obj \
3929 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3930 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3931 >/dev/null 2>conftest.err &&
3932 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3933 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3934 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3935 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3936 # icc doesn't choke on unknown options, it will just issue warnings
3937 # or remarks (even with -Werror). So we grep stderr for any message
3938 # that says an option was ignored or not supported.
3939 # When given -MP, icc 7.0 and 7.1 complain thusly:
3940 # icc: Command line warning: ignoring option '-M'; no argument required
3941 # The diagnosis changed in icc 8.0:
3942 # icc: Command line remark: option '-MP' not supported
3943 if (grep 'ignoring option' conftest.err ||
3944 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3945 am_cv_CC_dependencies_compiler_type=$depmode
3946 break
3947 fi
3948 fi
3949 done
3950
3951 cd ..
3952 rm -rf conftest.dir
3953 else
3954 am_cv_CC_dependencies_compiler_type=none
3955 fi
3956
3957 fi
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3959 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3960 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3961
3962 if
3963 test "x$enable_dependency_tracking" != xno \
3964 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3965 am__fastdepCC_TRUE=
3966 am__fastdepCC_FALSE='#'
3967 else
3968 am__fastdepCC_TRUE='#'
3969 am__fastdepCC_FALSE=
3970 fi
3971
3972
3973
3974 ac_ext=c
3975 ac_cpp='$CPP $CPPFLAGS'
3976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3980 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3981 # On Suns, sometimes $CPP names a directory.
3982 if test -n "$CPP" && test -d "$CPP"; then
3983 CPP=
3984 fi
3985 if test -z "$CPP"; then
3986 if ${ac_cv_prog_CPP+:} false; then :
3987 $as_echo_n "(cached) " >&6
3988 else
3989 # Double quotes because CPP needs to be expanded
3990 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3991 do
3992 ac_preproc_ok=false
3993 for ac_c_preproc_warn_flag in '' yes
3994 do
3995 # Use a header file that comes with gcc, so configuring glibc
3996 # with a fresh cross-compiler works.
3997 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3998 # <limits.h> exists even on freestanding compilers.
3999 # On the NeXT, cc -E runs the code through the compiler's parser,
4000 # not just through cpp. "Syntax error" is here to catch this case.
4001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4002 /* end confdefs.h. */
4003 #ifdef __STDC__
4004 # include <limits.h>
4005 #else
4006 # include <assert.h>
4007 #endif
4008 Syntax error
4009 _ACEOF
4010 if ac_fn_c_try_cpp "$LINENO"; then :
4011
4012 else
4013 # Broken: fails on valid input.
4014 continue
4015 fi
4016 rm -f conftest.err conftest.i conftest.$ac_ext
4017
4018 # OK, works on sane cases. Now check whether nonexistent headers
4019 # can be detected and how.
4020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4021 /* end confdefs.h. */
4022 #include <ac_nonexistent.h>
4023 _ACEOF
4024 if ac_fn_c_try_cpp "$LINENO"; then :
4025 # Broken: success on invalid input.
4026 continue
4027 else
4028 # Passes both tests.
4029 ac_preproc_ok=:
4030 break
4031 fi
4032 rm -f conftest.err conftest.i conftest.$ac_ext
4033
4034 done
4035 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4036 rm -f conftest.i conftest.err conftest.$ac_ext
4037 if $ac_preproc_ok; then :
4038 break
4039 fi
4040
4041 done
4042 ac_cv_prog_CPP=$CPP
4043
4044 fi
4045 CPP=$ac_cv_prog_CPP
4046 else
4047 ac_cv_prog_CPP=$CPP
4048 fi
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4050 $as_echo "$CPP" >&6; }
4051 ac_preproc_ok=false
4052 for ac_c_preproc_warn_flag in '' yes
4053 do
4054 # Use a header file that comes with gcc, so configuring glibc
4055 # with a fresh cross-compiler works.
4056 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4057 # <limits.h> exists even on freestanding compilers.
4058 # On the NeXT, cc -E runs the code through the compiler's parser,
4059 # not just through cpp. "Syntax error" is here to catch this case.
4060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4061 /* end confdefs.h. */
4062 #ifdef __STDC__
4063 # include <limits.h>
4064 #else
4065 # include <assert.h>
4066 #endif
4067 Syntax error
4068 _ACEOF
4069 if ac_fn_c_try_cpp "$LINENO"; then :
4070
4071 else
4072 # Broken: fails on valid input.
4073 continue
4074 fi
4075 rm -f conftest.err conftest.i conftest.$ac_ext
4076
4077 # OK, works on sane cases. Now check whether nonexistent headers
4078 # can be detected and how.
4079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4080 /* end confdefs.h. */
4081 #include <ac_nonexistent.h>
4082 _ACEOF
4083 if ac_fn_c_try_cpp "$LINENO"; then :
4084 # Broken: success on invalid input.
4085 continue
4086 else
4087 # Passes both tests.
4088 ac_preproc_ok=:
4089 break
4090 fi
4091 rm -f conftest.err conftest.i conftest.$ac_ext
4092
4093 done
4094 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4095 rm -f conftest.i conftest.err conftest.$ac_ext
4096 if $ac_preproc_ok; then :
4097
4098 else
4099 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4100 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4101 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4102 See \`config.log' for more details" "$LINENO" 5; }
4103 fi
4104
4105 ac_ext=c
4106 ac_cpp='$CPP $CPPFLAGS'
4107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4110
4111
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4113 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4114 if ${ac_cv_path_GREP+:} false; then :
4115 $as_echo_n "(cached) " >&6
4116 else
4117 if test -z "$GREP"; then
4118 ac_path_GREP_found=false
4119 # Loop through the user's path and test for each of PROGNAME-LIST
4120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4121 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4122 do
4123 IFS=$as_save_IFS
4124 test -z "$as_dir" && as_dir=.
4125 for ac_prog in grep ggrep; do
4126 for ac_exec_ext in '' $ac_executable_extensions; do
4127 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4128 as_fn_executable_p "$ac_path_GREP" || continue
4129 # Check for GNU ac_path_GREP and select it if it is found.
4130 # Check for GNU $ac_path_GREP
4131 case `"$ac_path_GREP" --version 2>&1` in
4132 *GNU*)
4133 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4134 *)
4135 ac_count=0
4136 $as_echo_n 0123456789 >"conftest.in"
4137 while :
4138 do
4139 cat "conftest.in" "conftest.in" >"conftest.tmp"
4140 mv "conftest.tmp" "conftest.in"
4141 cp "conftest.in" "conftest.nl"
4142 $as_echo 'GREP' >> "conftest.nl"
4143 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4144 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4145 as_fn_arith $ac_count + 1 && ac_count=$as_val
4146 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4147 # Best one so far, save it but keep looking for a better one
4148 ac_cv_path_GREP="$ac_path_GREP"
4149 ac_path_GREP_max=$ac_count
4150 fi
4151 # 10*(2^10) chars as input seems more than enough
4152 test $ac_count -gt 10 && break
4153 done
4154 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4155 esac
4156
4157 $ac_path_GREP_found && break 3
4158 done
4159 done
4160 done
4161 IFS=$as_save_IFS
4162 if test -z "$ac_cv_path_GREP"; then
4163 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4164 fi
4165 else
4166 ac_cv_path_GREP=$GREP
4167 fi
4168
4169 fi
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4171 $as_echo "$ac_cv_path_GREP" >&6; }
4172 GREP="$ac_cv_path_GREP"
4173
4174
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4176 $as_echo_n "checking for egrep... " >&6; }
4177 if ${ac_cv_path_EGREP+:} false; then :
4178 $as_echo_n "(cached) " >&6
4179 else
4180 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4181 then ac_cv_path_EGREP="$GREP -E"
4182 else
4183 if test -z "$EGREP"; then
4184 ac_path_EGREP_found=false
4185 # Loop through the user's path and test for each of PROGNAME-LIST
4186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4188 do
4189 IFS=$as_save_IFS
4190 test -z "$as_dir" && as_dir=.
4191 for ac_prog in egrep; do
4192 for ac_exec_ext in '' $ac_executable_extensions; do
4193 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4194 as_fn_executable_p "$ac_path_EGREP" || continue
4195 # Check for GNU ac_path_EGREP and select it if it is found.
4196 # Check for GNU $ac_path_EGREP
4197 case `"$ac_path_EGREP" --version 2>&1` in
4198 *GNU*)
4199 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4200 *)
4201 ac_count=0
4202 $as_echo_n 0123456789 >"conftest.in"
4203 while :
4204 do
4205 cat "conftest.in" "conftest.in" >"conftest.tmp"
4206 mv "conftest.tmp" "conftest.in"
4207 cp "conftest.in" "conftest.nl"
4208 $as_echo 'EGREP' >> "conftest.nl"
4209 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4210 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4211 as_fn_arith $ac_count + 1 && ac_count=$as_val
4212 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4213 # Best one so far, save it but keep looking for a better one
4214 ac_cv_path_EGREP="$ac_path_EGREP"
4215 ac_path_EGREP_max=$ac_count
4216 fi
4217 # 10*(2^10) chars as input seems more than enough
4218 test $ac_count -gt 10 && break
4219 done
4220 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4221 esac
4222
4223 $ac_path_EGREP_found && break 3
4224 done
4225 done
4226 done
4227 IFS=$as_save_IFS
4228 if test -z "$ac_cv_path_EGREP"; then
4229 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4230 fi
4231 else
4232 ac_cv_path_EGREP=$EGREP
4233 fi
4234
4235 fi
4236 fi
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4238 $as_echo "$ac_cv_path_EGREP" >&6; }
4239 EGREP="$ac_cv_path_EGREP"
4240
4241
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4243 $as_echo_n "checking for ANSI C header files... " >&6; }
4244 if ${ac_cv_header_stdc+:} false; then :
4245 $as_echo_n "(cached) " >&6
4246 else
4247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4248 /* end confdefs.h. */
4249 #include <stdlib.h>
4250 #include <stdarg.h>
4251 #include <string.h>
4252 #include <float.h>
4253
4254 int
4255 main ()
4256 {
4257
4258 ;
4259 return 0;
4260 }
4261 _ACEOF
4262 if ac_fn_c_try_compile "$LINENO"; then :
4263 ac_cv_header_stdc=yes
4264 else
4265 ac_cv_header_stdc=no
4266 fi
4267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4268
4269 if test $ac_cv_header_stdc = yes; then
4270 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272 /* end confdefs.h. */
4273 #include <string.h>
4274
4275 _ACEOF
4276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4277 $EGREP "memchr" >/dev/null 2>&1; then :
4278
4279 else
4280 ac_cv_header_stdc=no
4281 fi
4282 rm -f conftest*
4283
4284 fi
4285
4286 if test $ac_cv_header_stdc = yes; then
4287 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4289 /* end confdefs.h. */
4290 #include <stdlib.h>
4291
4292 _ACEOF
4293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4294 $EGREP "free" >/dev/null 2>&1; then :
4295
4296 else
4297 ac_cv_header_stdc=no
4298 fi
4299 rm -f conftest*
4300
4301 fi
4302
4303 if test $ac_cv_header_stdc = yes; then
4304 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4305 if test "$cross_compiling" = yes; then :
4306 :
4307 else
4308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4309 /* end confdefs.h. */
4310 #include <ctype.h>
4311 #include <stdlib.h>
4312 #if ((' ' & 0x0FF) == 0x020)
4313 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4314 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4315 #else
4316 # define ISLOWER(c) \
4317 (('a' <= (c) && (c) <= 'i') \
4318 || ('j' <= (c) && (c) <= 'r') \
4319 || ('s' <= (c) && (c) <= 'z'))
4320 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4321 #endif
4322
4323 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4324 int
4325 main ()
4326 {
4327 int i;
4328 for (i = 0; i < 256; i++)
4329 if (XOR (islower (i), ISLOWER (i))
4330 || toupper (i) != TOUPPER (i))
4331 return 2;
4332 return 0;
4333 }
4334 _ACEOF
4335 if ac_fn_c_try_run "$LINENO"; then :
4336
4337 else
4338 ac_cv_header_stdc=no
4339 fi
4340 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4341 conftest.$ac_objext conftest.beam conftest.$ac_ext
4342 fi
4343
4344 fi
4345 fi
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4347 $as_echo "$ac_cv_header_stdc" >&6; }
4348 if test $ac_cv_header_stdc = yes; then
4349
4350 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4351
4352 fi
4353
4354 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4355 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4356 inttypes.h stdint.h unistd.h
4357 do :
4358 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4359 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4360 "
4361 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4362 cat >>confdefs.h <<_ACEOF
4363 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4364 _ACEOF
4365
4366 fi
4367
4368 done
4369
4370
4371
4372 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4373 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4374 MINIX=yes
4375 else
4376 MINIX=
4377 fi
4378
4379
4380 if test "$MINIX" = yes; then
4381
4382 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4383
4384
4385 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4386
4387
4388 $as_echo "#define _MINIX 1" >>confdefs.h
4389
4390 fi
4391
4392
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4394 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4395 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4396 $as_echo_n "(cached) " >&6
4397 else
4398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4399 /* end confdefs.h. */
4400
4401 # define __EXTENSIONS__ 1
4402 $ac_includes_default
4403 int
4404 main ()
4405 {
4406
4407 ;
4408 return 0;
4409 }
4410 _ACEOF
4411 if ac_fn_c_try_compile "$LINENO"; then :
4412 ac_cv_safe_to_define___extensions__=yes
4413 else
4414 ac_cv_safe_to_define___extensions__=no
4415 fi
4416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4417 fi
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4419 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4420 test $ac_cv_safe_to_define___extensions__ = yes &&
4421 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4422
4423 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4424
4425 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4426
4427 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4428
4429 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4430
4431
4432
4433
4434 # Check options
4435 # Check whether --enable-debug_alloc was given.
4436 if test "${enable_debug_alloc+set}" = set; then :
4437 enableval=$enable_debug_alloc;
4438 else
4439 enable_debug_alloc=no
4440 fi
4441
4442
4443
4444 if test x$enable_debug_alloc = xyes ; then
4445 $as_echo "#define DEBUG_ALLOC 1" >>confdefs.h
4446
4447 fi
4448
4449 # Check whether --enable-debug_trace was given.
4450 if test "${enable_debug_trace+set}" = set; then :
4451 enableval=$enable_debug_trace;
4452 else
4453 enable_debug_trace=no
4454 fi
4455
4456
4457
4458 if test x$enable_debug_trace = xyes ; then
4459 $as_echo "#define DEBUG_TRACE 1" >>confdefs.h
4460
4461 fi
4462
4463 # Check whether --enable-gcov was given.
4464 if test "${enable_gcov+set}" = set; then :
4465 enableval=$enable_gcov;
4466 else
4467 enable_gcov=no
4468 fi
4469
4470
4471 # Check whether --enable-profiling was given.
4472 if test "${enable_profiling+set}" = set; then :
4473 enableval=$enable_profiling;
4474 else
4475 enable_profiling=no
4476 fi
4477
4478
4479
4480
4481 # Check whether --with-zlib was given.
4482 if test "${with_zlib+set}" = set; then :
4483 withval=$with_zlib;
4484 else
4485 with_zlib=yes
4486 fi
4487
4488
4489
4490 # Check whether --with-tcpwrappers was given.
4491 if test "${with_tcpwrappers+set}" = set; then :
4492 withval=$with_tcpwrappers; if test -z "$withval"; then
4493 with_tcpwrappers=yes;
4494 else
4495 with_tcpwrappers="$withval";
4496 fi
4497 else
4498 with_tcpwrappers=no
4499 fi
4500
4501
4502 # Checking this variable is delayed until we have checked if zlib is
4503 # actually available.
4504
4505 # Check whether --enable-pty was given.
4506 if test "${enable_pty+set}" = set; then :
4507 enableval=$enable_pty;
4508 else
4509 enable_pty=yes
4510 fi
4511
4512
4513
4514 if test x$enable_pty = xyes ; then
4515 $as_echo "#define WITH_PTY_SUPPORT 1" >>confdefs.h
4516
4517 fi
4518
4519 # Check whether --enable-srp was given.
4520 if test "${enable_srp+set}" = set; then :
4521 enableval=$enable_srp;
4522 else
4523 enable_srp=yes
4524 fi
4525
4526
4527 # Check whether --enable-gss was given.
4528 if test "${enable_gss+set}" = set; then :
4529 enableval=$enable_gss;
4530 else
4531 enable_gss=yes
4532 fi
4533
4534
4535 # Check whether --enable-kerberos was given.
4536 if test "${enable_kerberos+set}" = set; then :
4537 enableval=$enable_kerberos;
4538 else
4539 enable_kerberos=yes
4540 fi
4541
4542
4543 # Check whether --enable-pam was given.
4544 if test "${enable_pam+set}" = set; then :
4545 enableval=$enable_pam;
4546 else
4547 enable_pam=yes
4548 fi
4549
4550
4551
4552 if test x$enable_srp = xyes ; then
4553 $as_echo "#define WITH_SRP 1" >>confdefs.h
4554
4555 SRP_PROGRAM=srp-gen
4556 fi
4557
4558
4559
4560 # Check whether --enable-initgroups_workaround was given.
4561 if test "${enable_initgroups_workaround+set}" = set; then :
4562 enableval=$enable_initgroups_workaround;
4563 else
4564 enable_initgroups_workaround=no
4565 fi
4566
4567
4568
4569 if test x$enable_initgroups_workaround = xyes ; then
4570 $as_echo "#define INITGROUPS_WORKAROUND 1" >>confdefs.h
4571
4572 fi
4573
4574
4575 # Check whether --enable-tcp_forward was given.
4576 if test "${enable_tcp_forward+set}" = set; then :
4577 enableval=$enable_tcp_forward;
4578 else
4579 enable_tcp_forward=yes
4580 fi
4581
4582
4583
4584 if test x$enable_tcp_forward = xyes ; then
4585 $as_echo "#define WITH_TCP_FORWARD 1" >>confdefs.h
4586
4587 fi
4588
4589 # Check whether --enable-x11_forward was given.
4590 if test "${enable_x11_forward+set}" = set; then :
4591 enableval=$enable_x11_forward;
4592 else
4593 enable_x11_forward=yes
4594 fi
4595
4596
4597
4598 if test x$enable_x11_forward = xyes ; then
4599 $as_echo "#define WITH_X11_FORWARD 1" >>confdefs.h
4600
4601 fi
4602
4603 # Check whether --enable-agent_forward was given.
4604 if test "${enable_agent_forward+set}" = set; then :
4605 enableval=$enable_agent_forward;
4606 else
4607 with_agent_forward=yes
4608 fi
4609
4610
4611
4612 if test x$disable_agent_forward = xyes ; then
4613 $as_echo "#define WITH_AGENT_FORWARD 1" >>confdefs.h
4614
4615 fi
4616
4617
4618 # Check whether --with-scheme was given.
4619 if test "${with_scheme+set}" = set; then :
4620 withval=$with_scheme;
4621 else
4622 with_scheme=
4623 fi
4624
4625
4626
4627 # Check whether --with-system-argp was given.
4628 if test "${with_system_argp+set}" = set; then :
4629 withval=$with_system_argp;
4630 else
4631 with_system_argp=yes
4632 fi
4633
4634
4635 # IPv6 support
4636 # Check whether --enable-ipv6 was given.
4637 if test "${enable_ipv6+set}" = set; then :
4638 enableval=$enable_ipv6;
4639 else
4640 enable_ipv6=yes
4641 fi
4642
4643
4644 # utmp/wtmp logging
4645 # Check whether --enable-utmp was given.
4646 if test "${enable_utmp+set}" = set; then :
4647 enableval=$enable_utmp;
4648 else
4649 enable_utmp=yes
4650 fi
4651
4652
4653
4654 if test x$enable_utmp = xyes ; then
4655 $as_echo "#define WITH_UTMP 1" >>confdefs.h
4656
4657 fi
4658
4659
4660 # Check whether --with-include-path was given.
4661 if test "${with_include_path+set}" = set; then :
4662 withval=$with_include_path;
4663 else
4664 with_include_path=''
4665 fi
4666
4667
4668 if test x$with_include_path != x ; then
4669 CPPFLAGS="$CPPFLAGS -I`echo $with_include_path | sed 's/:/ -I/g'`"
4670 fi
4671
4672
4673 # Check whether --with-lib-path was given.
4674 if test "${with_lib_path+set}" = set; then :
4675 withval=$with_lib_path;
4676 else
4677 with_lib_path=''
4678 fi
4679
4680
4681 if test x$with_lib_path != x ; then
4682 LDFLAGS="$LDFLAGS -L`echo $with_lib_path | sed 's/:/ -L/g'`"
4683 fi
4684
4685 # Make sure we can run config.sub.
4686 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4687 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4688
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4690 $as_echo_n "checking build system type... " >&6; }
4691 if ${ac_cv_build+:} false; then :
4692 $as_echo_n "(cached) " >&6
4693 else
4694 ac_build_alias=$build_alias
4695 test "x$ac_build_alias" = x &&
4696 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4697 test "x$ac_build_alias" = x &&
4698 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4699 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4700 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4701
4702 fi
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4704 $as_echo "$ac_cv_build" >&6; }
4705 case $ac_cv_build in
4706 *-*-*) ;;
4707 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4708 esac
4709 build=$ac_cv_build
4710 ac_save_IFS=$IFS; IFS='-'
4711 set x $ac_cv_build
4712 shift
4713 build_cpu=$1
4714 build_vendor=$2
4715 shift; shift
4716 # Remember, the first character of IFS is used to create $*,
4717 # except with old shells:
4718 build_os=$*
4719 IFS=$ac_save_IFS
4720 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4721
4722
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4724 $as_echo_n "checking host system type... " >&6; }
4725 if ${ac_cv_host+:} false; then :
4726 $as_echo_n "(cached) " >&6
4727 else
4728 if test "x$host_alias" = x; then
4729 ac_cv_host=$ac_cv_build
4730 else
4731 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4732 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4733 fi
4734
4735 fi
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4737 $as_echo "$ac_cv_host" >&6; }
4738 case $ac_cv_host in
4739 *-*-*) ;;
4740 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4741 esac
4742 host=$ac_cv_host
4743 ac_save_IFS=$IFS; IFS='-'
4744 set x $ac_cv_host
4745 shift
4746 host_cpu=$1
4747 host_vendor=$2
4748 shift; shift
4749 # Remember, the first character of IFS is used to create $*,
4750 # except with old shells:
4751 host_os=$*
4752 IFS=$ac_save_IFS
4753 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4754
4755
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -R flag" >&5
4757 $as_echo_n "checking for -R flag... " >&6; }
4758 RPATHFLAG=''
4759 case "$host_os" in
4760 osf1*) RPATHFLAG="-rpath " ;;
4761 irix6.*|irix5.*) RPATHFLAG="-rpath " ;;
4762 solaris*)
4763 if test "$TCC" = "yes"; then
4764 # tcc doesn't know about -R
4765 RPATHFLAG="-Wl,-R,"
4766 else
4767 RPATHFLAG=-R
4768 fi
4769 ;;
4770 linux*) RPATHFLAG="-Wl,-rpath," ;;
4771 *) RPATHFLAG="" ;;
4772 esac
4773
4774 if test x$RPATHFLAG = x ; then
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4776 $as_echo "none" >&6; }
4777 else
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $RPATHFLAG" >&5
4779 $as_echo "using $RPATHFLAG" >&6; }
4780 fi
4781
4782 RPATH_CANDIDATE_REAL_DIRS=''
4783 RPATH_CANDIDATE_DIRS=''
4784
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Searching for libraries" >&5
4786 $as_echo "Searching for libraries" >&6; }
4787
4788 for d in `echo $with_lib_path | sed 's/:/ /g'` \
4789 `echo $exec_prefix | sed "s@^NONE@$prefix/lib@g" | sed "s@^NONE@$ac_default_prefix/lib@g"` \
4790 /usr/local/lib /sw/local/lib /sw/lib \
4791 /usr/gnu/lib /opt/gnu/lib /sw/gnu/lib /usr/freeware/lib /usr/pkg/lib ; do
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $d" >&5
4793 $as_echo_n "checking $d... " >&6; }
4794 ac_exists=no
4795 if test -d "$d/." ; then
4796 ac_real_dir=`cd $d && pwd`
4797 if test -n "$ac_real_dir" ; then
4798 ac_exists=yes
4799 for old in RPATH_CANDIDATE_REAL_DIRS ; do
4800 ac_found=no
4801 if test x$ac_real_dir = x$old ; then
4802 ac_found=yes;
4803 break;
4804 fi
4805 done
4806 if test $ac_found = yes ; then
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: already added" >&5
4808 $as_echo "already added" >&6; }
4809 else
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: added" >&5
4811 $as_echo "added" >&6; }
4812 # LDFLAGS="$LDFLAGS -L $d"
4813 RPATH_CANDIDATE_REAL_DIRS="$ac_real_dir $RPATH_CANDIDATE_REAL_DIRS"
4814 RPATH_CANDIDATE_DIRS="$d $RPATH_CANDIDATE_DIRS"
4815 fi
4816 fi
4817 fi
4818 if test $ac_exists = no ; then
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4820 $as_echo "not found" >&6; }
4821 fi
4822
4823 done
4824
4825
4826
4827 # Checks for programs.
4828 ac_ext=c
4829 ac_cpp='$CPP $CPPFLAGS'
4830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4833 if test -n "$ac_tool_prefix"; then
4834 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4835 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4837 $as_echo_n "checking for $ac_word... " >&6; }
4838 if ${ac_cv_prog_CC+:} false; then :
4839 $as_echo_n "(cached) " >&6
4840 else
4841 if test -n "$CC"; then
4842 ac_cv_prog_CC="$CC" # Let the user override the test.
4843 else
4844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4845 for as_dir in $PATH
4846 do
4847 IFS=$as_save_IFS
4848 test -z "$as_dir" && as_dir=.
4849 for ac_exec_ext in '' $ac_executable_extensions; do
4850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4851 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4853 break 2
4854 fi
4855 done
4856 done
4857 IFS=$as_save_IFS
4858
4859 fi
4860 fi
4861 CC=$ac_cv_prog_CC
4862 if test -n "$CC"; then
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4864 $as_echo "$CC" >&6; }
4865 else
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4867 $as_echo "no" >&6; }
4868 fi
4869
4870
4871 fi
4872 if test -z "$ac_cv_prog_CC"; then
4873 ac_ct_CC=$CC
4874 # Extract the first word of "gcc", so it can be a program name with args.
4875 set dummy gcc; ac_word=$2
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4877 $as_echo_n "checking for $ac_word... " >&6; }
4878 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4879 $as_echo_n "(cached) " >&6
4880 else
4881 if test -n "$ac_ct_CC"; then
4882 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4883 else
4884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885 for as_dir in $PATH
4886 do
4887 IFS=$as_save_IFS
4888 test -z "$as_dir" && as_dir=.
4889 for ac_exec_ext in '' $ac_executable_extensions; do
4890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4891 ac_cv_prog_ac_ct_CC="gcc"
4892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4893 break 2
4894 fi
4895 done
4896 done
4897 IFS=$as_save_IFS
4898
4899 fi
4900 fi
4901 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4902 if test -n "$ac_ct_CC"; then
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4904 $as_echo "$ac_ct_CC" >&6; }
4905 else
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4907 $as_echo "no" >&6; }
4908 fi
4909
4910 if test "x$ac_ct_CC" = x; then
4911 CC=""
4912 else
4913 case $cross_compiling:$ac_tool_warned in
4914 yes:)
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4916 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4917 ac_tool_warned=yes ;;
4918 esac
4919 CC=$ac_ct_CC
4920 fi
4921 else
4922 CC="$ac_cv_prog_CC"
4923 fi
4924
4925 if test -z "$CC"; then
4926 if test -n "$ac_tool_prefix"; then
4927 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4928 set dummy ${ac_tool_prefix}cc; ac_word=$2
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4930 $as_echo_n "checking for $ac_word... " >&6; }
4931 if ${ac_cv_prog_CC+:} false; then :
4932 $as_echo_n "(cached) " >&6
4933 else
4934 if test -n "$CC"; then
4935 ac_cv_prog_CC="$CC" # Let the user override the test.
4936 else
4937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938 for as_dir in $PATH
4939 do
4940 IFS=$as_save_IFS
4941 test -z "$as_dir" && as_dir=.
4942 for ac_exec_ext in '' $ac_executable_extensions; do
4943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4944 ac_cv_prog_CC="${ac_tool_prefix}cc"
4945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4946 break 2
4947 fi
4948 done
4949 done
4950 IFS=$as_save_IFS
4951
4952 fi
4953 fi
4954 CC=$ac_cv_prog_CC
4955 if test -n "$CC"; then
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4957 $as_echo "$CC" >&6; }
4958 else
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4960 $as_echo "no" >&6; }
4961 fi
4962
4963
4964 fi
4965 fi
4966 if test -z "$CC"; then
4967 # Extract the first word of "cc", so it can be a program name with args.
4968 set dummy cc; ac_word=$2
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4970 $as_echo_n "checking for $ac_word... " >&6; }
4971 if ${ac_cv_prog_CC+:} false; then :
4972 $as_echo_n "(cached) " >&6
4973 else
4974 if test -n "$CC"; then
4975 ac_cv_prog_CC="$CC" # Let the user override the test.
4976 else
4977 ac_prog_rejected=no
4978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979 for as_dir in $PATH
4980 do
4981 IFS=$as_save_IFS
4982 test -z "$as_dir" && as_dir=.
4983 for ac_exec_ext in '' $ac_executable_extensions; do
4984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4985 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4986 ac_prog_rejected=yes
4987 continue
4988 fi
4989 ac_cv_prog_CC="cc"
4990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4991 break 2
4992 fi
4993 done
4994 done
4995 IFS=$as_save_IFS
4996
4997 if test $ac_prog_rejected = yes; then
4998 # We found a bogon in the path, so make sure we never use it.
4999 set dummy $ac_cv_prog_CC
5000 shift
5001 if test $# != 0; then
5002 # We chose a different compiler from the bogus one.
5003 # However, it has the same basename, so the bogon will be chosen
5004 # first if we set CC to just the basename; use the full file name.
5005 shift
5006 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5007 fi
5008 fi
5009 fi
5010 fi
5011 CC=$ac_cv_prog_CC
5012 if test -n "$CC"; then
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5014 $as_echo "$CC" >&6; }
5015 else
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5017 $as_echo "no" >&6; }
5018 fi
5019
5020
5021 fi
5022 if test -z "$CC"; then
5023 if test -n "$ac_tool_prefix"; then
5024 for ac_prog in cl.exe
5025 do
5026 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5027 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5029 $as_echo_n "checking for $ac_word... " >&6; }
5030 if ${ac_cv_prog_CC+:} false; then :
5031 $as_echo_n "(cached) " >&6
5032 else
5033 if test -n "$CC"; then
5034 ac_cv_prog_CC="$CC" # Let the user override the test.
5035 else
5036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5037 for as_dir in $PATH
5038 do
5039 IFS=$as_save_IFS
5040 test -z "$as_dir" && as_dir=.
5041 for ac_exec_ext in '' $ac_executable_extensions; do
5042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5043 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5045 break 2
5046 fi
5047 done
5048 done
5049 IFS=$as_save_IFS
5050
5051 fi
5052 fi
5053 CC=$ac_cv_prog_CC
5054 if test -n "$CC"; then
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5056 $as_echo "$CC" >&6; }
5057 else
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5059 $as_echo "no" >&6; }
5060 fi
5061
5062
5063 test -n "$CC" && break
5064 done
5065 fi
5066 if test -z "$CC"; then
5067 ac_ct_CC=$CC
5068 for ac_prog in cl.exe
5069 do
5070 # Extract the first word of "$ac_prog", so it can be a program name with args.
5071 set dummy $ac_prog; ac_word=$2
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5073 $as_echo_n "checking for $ac_word... " >&6; }
5074 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5075 $as_echo_n "(cached) " >&6
5076 else
5077 if test -n "$ac_ct_CC"; then
5078 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5079 else
5080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5081 for as_dir in $PATH
5082 do
5083 IFS=$as_save_IFS
5084 test -z "$as_dir" && as_dir=.
5085 for ac_exec_ext in '' $ac_executable_extensions; do
5086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5087 ac_cv_prog_ac_ct_CC="$ac_prog"
5088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5089 break 2
5090 fi
5091 done
5092 done
5093 IFS=$as_save_IFS
5094
5095 fi
5096 fi
5097 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5098 if test -n "$ac_ct_CC"; then
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5100 $as_echo "$ac_ct_CC" >&6; }
5101 else
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5103 $as_echo "no" >&6; }
5104 fi
5105
5106
5107 test -n "$ac_ct_CC" && break
5108 done
5109
5110 if test "x$ac_ct_CC" = x; then
5111 CC=""
5112 else
5113 case $cross_compiling:$ac_tool_warned in
5114 yes:)
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5116 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5117 ac_tool_warned=yes ;;
5118 esac
5119 CC=$ac_ct_CC
5120 fi
5121 fi
5122
5123 fi
5124
5125
5126 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5128 as_fn_error $? "no acceptable C compiler found in \$PATH
5129 See \`config.log' for more details" "$LINENO" 5; }
5130
5131 # Provide some information about the compiler.
5132 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5133 set X $ac_compile
5134 ac_compiler=$2
5135 for ac_option in --version -v -V -qversion; do
5136 { { ac_try="$ac_compiler $ac_option >&5"
5137 case "(($ac_try" in
5138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5139 *) ac_try_echo=$ac_try;;
5140 esac
5141 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5142 $as_echo "$ac_try_echo"; } >&5
5143 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5144 ac_status=$?
5145 if test -s conftest.err; then
5146 sed '10a\
5147 ... rest of stderr output deleted ...
5148 10q' conftest.err >conftest.er1
5149 cat conftest.er1 >&5
5150 fi
5151 rm -f conftest.er1 conftest.err
5152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5153 test $ac_status = 0; }
5154 done
5155
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5157 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5158 if ${ac_cv_c_compiler_gnu+:} false; then :
5159 $as_echo_n "(cached) " >&6
5160 else
5161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162 /* end confdefs.h. */
5163
5164 int
5165 main ()
5166 {
5167 #ifndef __GNUC__
5168 choke me
5169 #endif
5170
5171 ;
5172 return 0;
5173 }
5174 _ACEOF
5175 if ac_fn_c_try_compile "$LINENO"; then :
5176 ac_compiler_gnu=yes
5177 else
5178 ac_compiler_gnu=no
5179 fi
5180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5181 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5182
5183 fi
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5185 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5186 if test $ac_compiler_gnu = yes; then
5187 GCC=yes
5188 else
5189 GCC=
5190 fi
5191 ac_test_CFLAGS=${CFLAGS+set}
5192 ac_save_CFLAGS=$CFLAGS
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5194 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5195 if ${ac_cv_prog_cc_g+:} false; then :
5196 $as_echo_n "(cached) " >&6
5197 else
5198 ac_save_c_werror_flag=$ac_c_werror_flag
5199 ac_c_werror_flag=yes
5200 ac_cv_prog_cc_g=no
5201 CFLAGS="-g"
5202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5203 /* end confdefs.h. */
5204
5205 int
5206 main ()
5207 {
5208
5209 ;
5210 return 0;
5211 }
5212 _ACEOF
5213 if ac_fn_c_try_compile "$LINENO"; then :
5214 ac_cv_prog_cc_g=yes
5215 else
5216 CFLAGS=""
5217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5218 /* end confdefs.h. */
5219
5220 int
5221 main ()
5222 {
5223
5224 ;
5225 return 0;
5226 }
5227 _ACEOF
5228 if ac_fn_c_try_compile "$LINENO"; then :
5229
5230 else
5231 ac_c_werror_flag=$ac_save_c_werror_flag
5232 CFLAGS="-g"
5233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5234 /* end confdefs.h. */
5235
5236 int
5237 main ()
5238 {
5239
5240 ;
5241 return 0;
5242 }
5243 _ACEOF
5244 if ac_fn_c_try_compile "$LINENO"; then :
5245 ac_cv_prog_cc_g=yes
5246 fi
5247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5248 fi
5249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5250 fi
5251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5252 ac_c_werror_flag=$ac_save_c_werror_flag
5253 fi
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5255 $as_echo "$ac_cv_prog_cc_g" >&6; }
5256 if test "$ac_test_CFLAGS" = set; then
5257 CFLAGS=$ac_save_CFLAGS
5258 elif test $ac_cv_prog_cc_g = yes; then
5259 if test "$GCC" = yes; then
5260 CFLAGS="-g -O2"
5261 else
5262 CFLAGS="-g"
5263 fi
5264 else
5265 if test "$GCC" = yes; then
5266 CFLAGS="-O2"
5267 else
5268 CFLAGS=
5269 fi
5270 fi
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5272 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5273 if ${ac_cv_prog_cc_c89+:} false; then :
5274 $as_echo_n "(cached) " >&6
5275 else
5276 ac_cv_prog_cc_c89=no
5277 ac_save_CC=$CC
5278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5279 /* end confdefs.h. */
5280 #include <stdarg.h>
5281 #include <stdio.h>
5282 struct stat;
5283 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5284 struct buf { int x; };
5285 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5286 static char *e (p, i)
5287 char **p;
5288 int i;
5289 {
5290 return p[i];
5291 }
5292 static char *f (char * (*g) (char **, int), char **p, ...)
5293 {
5294 char *s;
5295 va_list v;
5296 va_start (v,p);
5297 s = g (p, va_arg (v,int));
5298 va_end (v);
5299 return s;
5300 }
5301
5302 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5303 function prototypes and stuff, but not '\xHH' hex character constants.
5304 These don't provoke an error unfortunately, instead are silently treated
5305 as 'x'. The following induces an error, until -std is added to get
5306 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5307 array size at least. It's necessary to write '\x00'==0 to get something
5308 that's true only with -std. */
5309 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5310
5311 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5312 inside strings and character constants. */
5313 #define FOO(x) 'x'
5314 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5315
5316 int test (int i, double x);
5317 struct s1 {int (*f) (int a);};
5318 struct s2 {int (*f) (double a);};
5319 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5320 int argc;
5321 char **argv;
5322 int
5323 main ()
5324 {
5325 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5326 ;
5327 return 0;
5328 }
5329 _ACEOF
5330 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5331 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5332 do
5333 CC="$ac_save_CC $ac_arg"
5334 if ac_fn_c_try_compile "$LINENO"; then :
5335 ac_cv_prog_cc_c89=$ac_arg
5336 fi
5337 rm -f core conftest.err conftest.$ac_objext
5338 test "x$ac_cv_prog_cc_c89" != "xno" && break
5339 done
5340 rm -f conftest.$ac_ext
5341 CC=$ac_save_CC
5342
5343 fi
5344 # AC_CACHE_VAL
5345 case "x$ac_cv_prog_cc_c89" in
5346 x)
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5348 $as_echo "none needed" >&6; } ;;
5349 xno)
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5351 $as_echo "unsupported" >&6; } ;;
5352 *)
5353 CC="$CC $ac_cv_prog_cc_c89"
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5355 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5356 esac
5357 if test "x$ac_cv_prog_cc_c89" != xno; then :
5358
5359 fi
5360
5361 ac_ext=c
5362 ac_cpp='$CPP $CPPFLAGS'
5363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5366
5367 depcc="$CC" am_compiler_list=
5368
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5370 $as_echo_n "checking dependency style of $depcc... " >&6; }
5371 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5372 $as_echo_n "(cached) " >&6
5373 else
5374 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5375 # We make a subdir and do the tests there. Otherwise we can end up
5376 # making bogus files that we don't know about and never remove. For
5377 # instance it was reported that on HP-UX the gcc test will end up
5378 # making a dummy file named 'D' -- because '-MD' means "put the output
5379 # in D".
5380 rm -rf conftest.dir
5381 mkdir conftest.dir
5382 # Copy depcomp to subdir because otherwise we won't find it if we're
5383 # using a relative directory.
5384 cp "$am_depcomp" conftest.dir
5385 cd conftest.dir
5386 # We will build objects and dependencies in a subdirectory because
5387 # it helps to detect inapplicable dependency modes. For instance
5388 # both Tru64's cc and ICC support -MD to output dependencies as a
5389 # side effect of compilation, but ICC will put the dependencies in
5390 # the current directory while Tru64 will put them in the object
5391 # directory.
5392 mkdir sub
5393
5394 am_cv_CC_dependencies_compiler_type=none
5395 if test "$am_compiler_list" = ""; then
5396 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5397 fi
5398 am__universal=false
5399 case " $depcc " in #(
5400 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5401 esac
5402
5403 for depmode in $am_compiler_list; do
5404 # Setup a source with many dependencies, because some compilers
5405 # like to wrap large dependency lists on column 80 (with \), and
5406 # we should not choose a depcomp mode which is confused by this.
5407 #
5408 # We need to recreate these files for each test, as the compiler may
5409 # overwrite some of them when testing with obscure command lines.
5410 # This happens at least with the AIX C compiler.
5411 : > sub/conftest.c
5412 for i in 1 2 3 4 5 6; do
5413 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5414 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5415 # Solaris 10 /bin/sh.
5416 echo '/* dummy */' > sub/conftst$i.h
5417 done
5418 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5419
5420 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5421 # mode. It turns out that the SunPro C++ compiler does not properly
5422 # handle '-M -o', and we need to detect this. Also, some Intel
5423 # versions had trouble with output in subdirs.
5424 am__obj=sub/conftest.${OBJEXT-o}
5425 am__minus_obj="-o $am__obj"
5426 case $depmode in
5427 gcc)
5428 # This depmode causes a compiler race in universal mode.
5429 test "$am__universal" = false || continue
5430 ;;
5431 nosideeffect)
5432 # After this tag, mechanisms are not by side-effect, so they'll
5433 # only be used when explicitly requested.
5434 if test "x$enable_dependency_tracking" = xyes; then
5435 continue
5436 else
5437 break
5438 fi
5439 ;;
5440 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5441 # This compiler won't grok '-c -o', but also, the minuso test has
5442 # not run yet. These depmodes are late enough in the game, and
5443 # so weak that their functioning should not be impacted.
5444 am__obj=conftest.${OBJEXT-o}
5445 am__minus_obj=
5446 ;;
5447 none) break ;;
5448 esac
5449 if depmode=$depmode \
5450 source=sub/conftest.c object=$am__obj \
5451 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5452 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5453 >/dev/null 2>conftest.err &&
5454 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5455 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5456 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5457 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5458 # icc doesn't choke on unknown options, it will just issue warnings
5459 # or remarks (even with -Werror). So we grep stderr for any message
5460 # that says an option was ignored or not supported.
5461 # When given -MP, icc 7.0 and 7.1 complain thusly:
5462 # icc: Command line warning: ignoring option '-M'; no argument required
5463 # The diagnosis changed in icc 8.0:
5464 # icc: Command line remark: option '-MP' not supported
5465 if (grep 'ignoring option' conftest.err ||
5466 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5467 am_cv_CC_dependencies_compiler_type=$depmode
5468 break
5469 fi
5470 fi
5471 done
5472
5473 cd ..
5474 rm -rf conftest.dir
5475 else
5476 am_cv_CC_dependencies_compiler_type=none
5477 fi
5478
5479 fi
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5481 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5482 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5483
5484 if
5485 test "x$enable_dependency_tracking" != xno \
5486 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5487 am__fastdepCC_TRUE=
5488 am__fastdepCC_FALSE='#'
5489 else
5490 am__fastdepCC_TRUE='#'
5491 am__fastdepCC_FALSE=
5492 fi
5493
5494
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5496 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5497 set x ${MAKE-make}
5498 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5499 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5500 $as_echo_n "(cached) " >&6
5501 else
5502 cat >conftest.make <<\_ACEOF
5503 SHELL = /bin/sh
5504 all:
5505 @echo '@@@%%%=$(MAKE)=@@@%%%'
5506 _ACEOF
5507 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5508 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5509 *@@@%%%=?*=@@@%%%*)
5510 eval ac_cv_prog_make_${ac_make}_set=yes;;
5511 *)
5512 eval ac_cv_prog_make_${ac_make}_set=no;;
5513 esac
5514 rm -f conftest.make
5515 fi
5516 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5518 $as_echo "yes" >&6; }
5519 SET_MAKE=
5520 else
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5522 $as_echo "no" >&6; }
5523 SET_MAKE="MAKE=${MAKE-make}"
5524 fi
5525
5526 if test -n "$ac_tool_prefix"; then
5527 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5528 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5530 $as_echo_n "checking for $ac_word... " >&6; }
5531 if ${ac_cv_prog_RANLIB+:} false; then :
5532 $as_echo_n "(cached) " >&6
5533 else
5534 if test -n "$RANLIB"; then
5535 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5536 else
5537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5538 for as_dir in $PATH
5539 do
5540 IFS=$as_save_IFS
5541 test -z "$as_dir" && as_dir=.
5542 for ac_exec_ext in '' $ac_executable_extensions; do
5543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5544 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5546 break 2
5547 fi
5548 done
5549 done
5550 IFS=$as_save_IFS
5551
5552 fi
5553 fi
5554 RANLIB=$ac_cv_prog_RANLIB
5555 if test -n "$RANLIB"; then
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5557 $as_echo "$RANLIB" >&6; }
5558 else
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5560 $as_echo "no" >&6; }
5561 fi
5562
5563
5564 fi
5565 if test -z "$ac_cv_prog_RANLIB"; then
5566 ac_ct_RANLIB=$RANLIB
5567 # Extract the first word of "ranlib", so it can be a program name with args.
5568 set dummy ranlib; ac_word=$2
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5570 $as_echo_n "checking for $ac_word... " >&6; }
5571 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5572 $as_echo_n "(cached) " >&6
5573 else
5574 if test -n "$ac_ct_RANLIB"; then
5575 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5576 else
5577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578 for as_dir in $PATH
5579 do
5580 IFS=$as_save_IFS
5581 test -z "$as_dir" && as_dir=.
5582 for ac_exec_ext in '' $ac_executable_extensions; do
5583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5584 ac_cv_prog_ac_ct_RANLIB="ranlib"
5585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5586 break 2
5587 fi
5588 done
5589 done
5590 IFS=$as_save_IFS
5591
5592 fi
5593 fi
5594 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5595 if test -n "$ac_ct_RANLIB"; then
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5597 $as_echo "$ac_ct_RANLIB" >&6; }
5598 else
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5600 $as_echo "no" >&6; }
5601 fi
5602
5603 if test "x$ac_ct_RANLIB" = x; then
5604 RANLIB=":"
5605 else
5606 case $cross_compiling:$ac_tool_warned in
5607 yes:)
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5610 ac_tool_warned=yes ;;
5611 esac
5612 RANLIB=$ac_ct_RANLIB
5613 fi
5614 else
5615 RANLIB="$ac_cv_prog_RANLIB"
5616 fi
5617
5618
5619 if test "x$ac_cv_prog_cc_stdc" = xno ; then
5620 as_fn_error $? "the C compiler doesn't handle ANSI-C" "$LINENO" 5
5621 fi
5622
5623 # Use a particular scheme implementation?
5624 if test x$with_scheme != x ; then
5625 # If an absolute path is given, don't AC_PATH_PROG but just use it
5626 if grep "^/" > /dev/null <<EOF
5627 $with_scheme
5628 EOF
5629 then
5630 SCHEME_PROGRAM="$with_scheme"
5631 else
5632 # Extract the first word of "$with_scheme", so it can be a program name with args.
5633 set dummy $with_scheme; ac_word=$2
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5635 $as_echo_n "checking for $ac_word... " >&6; }
5636 if ${ac_cv_path_SCHEME_PROGRAM+:} false; then :
5637 $as_echo_n "(cached) " >&6
5638 else
5639 case $SCHEME_PROGRAM in
5640 [\\/]* | ?:[\\/]*)
5641 ac_cv_path_SCHEME_PROGRAM="$SCHEME_PROGRAM" # Let the user override the test with a path.
5642 ;;
5643 *)
5644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5645 for as_dir in $PATH
5646 do
5647 IFS=$as_save_IFS
5648 test -z "$as_dir" && as_dir=.
5649 for ac_exec_ext in '' $ac_executable_extensions; do
5650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5651 ac_cv_path_SCHEME_PROGRAM="$as_dir/$ac_word$ac_exec_ext"
5652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5653 break 2
5654 fi
5655 done
5656 done
5657 IFS=$as_save_IFS
5658
5659 ;;
5660 esac
5661 fi
5662 SCHEME_PROGRAM=$ac_cv_path_SCHEME_PROGRAM
5663 if test -n "$SCHEME_PROGRAM"; then
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCHEME_PROGRAM" >&5
5665 $as_echo "$SCHEME_PROGRAM" >&6; }
5666 else
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5668 $as_echo "no" >&6; }
5669 fi
5670
5671
5672 fi
5673 else
5674 for ac_prog in guile scsh
5675 do
5676 # Extract the first word of "$ac_prog", so it can be a program name with args.
5677 set dummy $ac_prog; ac_word=$2
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5679 $as_echo_n "checking for $ac_word... " >&6; }
5680 if ${ac_cv_path_SCHEME_PROGRAM+:} false; then :
5681 $as_echo_n "(cached) " >&6
5682 else
5683 case $SCHEME_PROGRAM in
5684 [\\/]* | ?:[\\/]*)
5685 ac_cv_path_SCHEME_PROGRAM="$SCHEME_PROGRAM" # Let the user override the test with a path.
5686 ;;
5687 *)
5688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5689 for as_dir in $PATH
5690 do
5691 IFS=$as_save_IFS
5692 test -z "$as_dir" && as_dir=.
5693 for ac_exec_ext in '' $ac_executable_extensions; do
5694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5695 ac_cv_path_SCHEME_PROGRAM="$as_dir/$ac_word$ac_exec_ext"
5696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5697 break 2
5698 fi
5699 done
5700 done
5701 IFS=$as_save_IFS
5702
5703 ;;
5704 esac
5705 fi
5706 SCHEME_PROGRAM=$ac_cv_path_SCHEME_PROGRAM
5707 if test -n "$SCHEME_PROGRAM"; then
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCHEME_PROGRAM" >&5
5709 $as_echo "$SCHEME_PROGRAM" >&6; }
5710 else
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5712 $as_echo "no" >&6; }
5713 fi
5714
5715
5716 test -n "$SCHEME_PROGRAM" && break
5717 done
5718
5719 fi
5720
5721 if test "x$SCHEME_PROGRAM" = x ; then
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No scheme implementation found.
5723 This is fine as long as you don't modify the source files." >&5
5724 $as_echo "$as_me: WARNING: No scheme implementation found.
5725 This is fine as long as you don't modify the source files." >&2;}
5726 SCHEME_PROGRAM=false
5727 fi
5728
5729 SCHEME_NAME=`basename $SCHEME_PROGRAM`
5730
5731
5732 if test "x$GROFF" = x; then
5733 # Extract the first word of "groff", so it can be a program name with args.
5734 set dummy groff; ac_word=$2
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5736 $as_echo_n "checking for $ac_word... " >&6; }
5737 if ${ac_cv_path_GROFF+:} false; then :
5738 $as_echo_n "(cached) " >&6
5739 else
5740 case $GROFF in
5741 [\\/]* | ?:[\\/]*)
5742 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5743 ;;
5744 *)
5745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5746 for as_dir in $PATH
5747 do
5748 IFS=$as_save_IFS
5749 test -z "$as_dir" && as_dir=.
5750 for ac_exec_ext in '' $ac_executable_extensions; do
5751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5752 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5754 break 2
5755 fi
5756 done
5757 done
5758 IFS=$as_save_IFS
5759
5760 ;;
5761 esac
5762 fi
5763 GROFF=$ac_cv_path_GROFF
5764 if test -n "$GROFF"; then
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5
5766 $as_echo "$GROFF" >&6; }
5767 else
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5769 $as_echo "no" >&6; }
5770 fi
5771
5772
5773 fi
5774
5775
5776 if test "x$M4" = x; then
5777 # Extract the first word of "m4", so it can be a program name with args.
5778 set dummy m4; ac_word=$2
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5780 $as_echo_n "checking for $ac_word... " >&6; }
5781 if ${ac_cv_path_M4+:} false; then :
5782 $as_echo_n "(cached) " >&6
5783 else
5784 case $M4 in
5785 [\\/]* | ?:[\\/]*)
5786 ac_cv_path_M4="$M4" # Let the user override the test with a path.
5787 ;;
5788 *)
5789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5790 for as_dir in $PATH
5791 do
5792 IFS=$as_save_IFS
5793 test -z "$as_dir" && as_dir=.
5794 for ac_exec_ext in '' $ac_executable_extensions; do
5795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5796 ac_cv_path_M4="$as_dir/$ac_word$ac_exec_ext"
5797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5798 break 2
5799 fi
5800 done
5801 done
5802 IFS=$as_save_IFS
5803
5804 test -z "$ac_cv_path_M4" && ac_cv_path_M4="m4"
5805 ;;
5806 esac
5807 fi
5808 M4=$ac_cv_path_M4
5809 if test -n "$M4"; then
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
5811 $as_echo "$M4" >&6; }
5812 else
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5814 $as_echo "no" >&6; }
5815 fi
5816
5817
5818 fi
5819
5820
5821
5822 # Checks for header files.
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5824 $as_echo_n "checking for ANSI C header files... " >&6; }
5825 if ${ac_cv_header_stdc+:} false; then :
5826 $as_echo_n "(cached) " >&6
5827 else
5828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5829 /* end confdefs.h. */
5830 #include <stdlib.h>
5831 #include <stdarg.h>
5832 #include <string.h>
5833 #include <float.h>
5834
5835 int
5836 main ()
5837 {
5838
5839 ;
5840 return 0;
5841 }
5842 _ACEOF
5843 if ac_fn_c_try_compile "$LINENO"; then :
5844 ac_cv_header_stdc=yes
5845 else
5846 ac_cv_header_stdc=no
5847 fi
5848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5849
5850 if test $ac_cv_header_stdc = yes; then
5851 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5853 /* end confdefs.h. */
5854 #include <string.h>
5855
5856 _ACEOF
5857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5858 $EGREP "memchr" >/dev/null 2>&1; then :
5859
5860 else
5861 ac_cv_header_stdc=no
5862 fi
5863 rm -f conftest*
5864
5865 fi
5866
5867 if test $ac_cv_header_stdc = yes; then
5868 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5870 /* end confdefs.h. */
5871 #include <stdlib.h>
5872
5873 _ACEOF
5874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5875 $EGREP "free" >/dev/null 2>&1; then :
5876
5877 else
5878 ac_cv_header_stdc=no
5879 fi
5880 rm -f conftest*
5881
5882 fi
5883
5884 if test $ac_cv_header_stdc = yes; then
5885 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5886 if test "$cross_compiling" = yes; then :
5887 :
5888 else
5889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5890 /* end confdefs.h. */
5891 #include <ctype.h>
5892 #include <stdlib.h>
5893 #if ((' ' & 0x0FF) == 0x020)
5894 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5895 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5896 #else
5897 # define ISLOWER(c) \
5898 (('a' <= (c) && (c) <= 'i') \
5899 || ('j' <= (c) && (c) <= 'r') \
5900 || ('s' <= (c) && (c) <= 'z'))
5901 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5902 #endif
5903
5904 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5905 int
5906 main ()
5907 {
5908 int i;
5909 for (i = 0; i < 256; i++)
5910 if (XOR (islower (i), ISLOWER (i))
5911 || toupper (i) != TOUPPER (i))
5912 return 2;
5913 return 0;
5914 }
5915 _ACEOF
5916 if ac_fn_c_try_run "$LINENO"; then :
5917
5918 else
5919 ac_cv_header_stdc=no
5920 fi
5921 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5922 conftest.$ac_objext conftest.beam conftest.$ac_ext
5923 fi
5924
5925 fi
5926 fi
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5928 $as_echo "$ac_cv_header_stdc" >&6; }
5929 if test $ac_cv_header_stdc = yes; then
5930
5931 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5932
5933 fi
5934
5935
5936 # We don't look in gmp2 anymore, as we need gmp-3.1 or better.
5937 for ac_header in gmp.h
5938 do :
5939 ac_fn_c_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default"
5940 if test "x$ac_cv_header_gmp_h" = xyes; then :
5941 cat >>confdefs.h <<_ACEOF
5942 #define HAVE_GMP_H 1
5943 _ACEOF
5944
5945 else
5946 as_fn_error $? "gmp.h not found" "$LINENO" 5
5947 fi
5948
5949 done
5950
5951
5952 for ac_header in fcntl.h strings.h sys/time.h unistd.h
5953 do :
5954 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5955 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5956 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5957 cat >>confdefs.h <<_ACEOF
5958 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5959 _ACEOF
5960
5961 fi
5962
5963 done
5964
5965 for ac_header in shadow.h
5966 do :
5967 ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
5968 if test "x$ac_cv_header_shadow_h" = xyes; then :
5969 cat >>confdefs.h <<_ACEOF
5970 #define HAVE_SHADOW_H 1
5971 _ACEOF
5972
5973 fi
5974
5975 done
5976
5977
5978 if test x$with_zlib = xyes; then
5979 for ac_header in zlib.h
5980 do :
5981 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
5982 if test "x$ac_cv_header_zlib_h" = xyes; then :
5983 cat >>confdefs.h <<_ACEOF
5984 #define HAVE_ZLIB_H 1
5985 _ACEOF
5986
5987 else
5988 with_zlib=no
5989 fi
5990
5991 done
5992
5993 fi
5994 for ac_header in poll.h sys/poll.h
5995 do :
5996 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5997 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5998 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5999 cat >>confdefs.h <<_ACEOF
6000 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6001 _ACEOF
6002
6003 fi
6004
6005 done
6006
6007 for ac_header in libutil.h
6008 do :
6009 ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
6010 if test "x$ac_cv_header_libutil_h" = xyes; then :
6011 cat >>confdefs.h <<_ACEOF
6012 #define HAVE_LIBUTIL_H 1
6013 _ACEOF
6014
6015 fi
6016
6017 done
6018
6019 for ac_header in crypt.h
6020 do :
6021 ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
6022 if test "x$ac_cv_header_crypt_h" = xyes; then :
6023 cat >>confdefs.h <<_ACEOF
6024 #define HAVE_CRYPT_H 1
6025 _ACEOF
6026
6027 fi
6028
6029 done
6030
6031 for ac_header in pty.h
6032 do :
6033 ac_fn_c_check_header_mongrel "$LINENO" "pty.h" "ac_cv_header_pty_h" "$ac_includes_default"
6034 if test "x$ac_cv_header_pty_h" = xyes; then :
6035 cat >>confdefs.h <<_ACEOF
6036 #define HAVE_PTY_H 1
6037 _ACEOF
6038
6039 fi
6040
6041 done
6042
6043 for ac_header in stropts.h
6044 do :
6045 ac_fn_c_check_header_mongrel "$LINENO" "stropts.h" "ac_cv_header_stropts_h" "$ac_includes_default"
6046 if test "x$ac_cv_header_stropts_h" = xyes; then :
6047 cat >>confdefs.h <<_ACEOF
6048 #define HAVE_STROPTS_H 1
6049 _ACEOF
6050
6051 fi
6052
6053 done
6054
6055 for ac_header in syslog.h
6056 do :
6057 ac_fn_c_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
6058 if test "x$ac_cv_header_syslog_h" = xyes; then :
6059 cat >>confdefs.h <<_ACEOF
6060 #define HAVE_SYSLOG_H 1
6061 _ACEOF
6062
6063 fi
6064
6065 done
6066
6067 for ac_header in argp.h
6068 do :
6069 ac_fn_c_check_header_mongrel "$LINENO" "argp.h" "ac_cv_header_argp_h" "$ac_includes_default"
6070 if test "x$ac_cv_header_argp_h" = xyes; then :
6071 cat >>confdefs.h <<_ACEOF
6072 #define HAVE_ARGP_H 1
6073 _ACEOF
6074
6075 fi
6076
6077 done
6078
6079 for ac_header in sys/resource.h
6080 do :
6081 ac_fn_c_check_header_mongrel "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
6082 if test "x$ac_cv_header_sys_resource_h" = xyes; then :
6083 cat >>confdefs.h <<_ACEOF
6084 #define HAVE_SYS_RESOURCE_H 1
6085 _ACEOF
6086
6087 fi
6088
6089 done
6090
6091
6092 for ac_header in utmp.h
6093 do :
6094 ac_fn_c_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
6095 if test "x$ac_cv_header_utmp_h" = xyes; then :
6096 cat >>confdefs.h <<_ACEOF
6097 #define HAVE_UTMP_H 1
6098 _ACEOF
6099 have_utmp_h=yes
6100 else
6101 have_utmp_h=no
6102 fi
6103
6104 done
6105
6106 for ac_header in utmpx.h
6107 do :
6108 ac_fn_c_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
6109 if test "x$ac_cv_header_utmpx_h" = xyes; then :
6110 cat >>confdefs.h <<_ACEOF
6111 #define HAVE_UTMPX_H 1
6112 _ACEOF
6113 have_utmpx_h=yes
6114 else
6115 have_utmpx_h=no
6116 fi
6117
6118 done
6119
6120
6121
6122 if test x$have_utmp_h = xyes; then
6123 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" "# if HAVE_UTMP_H
6124 # include <utmp.h>
6125 # endif
6126
6127 "
6128 if test "x$ac_cv_member_struct_utmp_ut_host" = xyes; then :
6129
6130 cat >>confdefs.h <<_ACEOF
6131 #define HAVE_STRUCT_UTMP_UT_HOST 1
6132 _ACEOF
6133
6134
6135 fi
6136 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_name" "ac_cv_member_struct_utmp_ut_name" "# if HAVE_UTMP_H
6137 # include <utmp.h>
6138 # endif
6139
6140 "
6141 if test "x$ac_cv_member_struct_utmp_ut_name" = xyes; then :
6142
6143 cat >>confdefs.h <<_ACEOF
6144 #define HAVE_STRUCT_UTMP_UT_NAME 1
6145 _ACEOF
6146
6147
6148 fi
6149 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_user" "ac_cv_member_struct_utmp_ut_user" "# if HAVE_UTMP_H
6150 # include <utmp.h>
6151 # endif
6152
6153 "
6154 if test "x$ac_cv_member_struct_utmp_ut_user" = xyes; then :
6155
6156 cat >>confdefs.h <<_ACEOF
6157 #define HAVE_STRUCT_UTMP_UT_USER 1
6158 _ACEOF
6159
6160
6161 fi
6162 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_time" "ac_cv_member_struct_utmp_ut_time" "# if HAVE_UTMP_H
6163 # include <utmp.h>
6164 # endif
6165
6166 "
6167 if test "x$ac_cv_member_struct_utmp_ut_time" = xyes; then :
6168
6169 cat >>confdefs.h <<_ACEOF
6170 #define HAVE_STRUCT_UTMP_UT_TIME 1
6171 _ACEOF
6172
6173
6174 fi
6175 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_tv" "ac_cv_member_struct_utmp_ut_tv" "# if HAVE_UTMP_H
6176 # include <utmp.h>
6177 # endif
6178
6179 "
6180 if test "x$ac_cv_member_struct_utmp_ut_tv" = xyes; then :
6181
6182 cat >>confdefs.h <<_ACEOF
6183 #define HAVE_STRUCT_UTMP_UT_TV 1
6184 _ACEOF
6185
6186
6187 fi
6188 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_tv.tv_sec" "ac_cv_member_struct_utmp_ut_tv_tv_sec" "# if HAVE_UTMP_H
6189 # include <utmp.h>
6190 # endif
6191
6192 "
6193 if test "x$ac_cv_member_struct_utmp_ut_tv_tv_sec" = xyes; then :
6194
6195 cat >>confdefs.h <<_ACEOF
6196 #define HAVE_STRUCT_UTMP_UT_TV_TV_SEC 1
6197 _ACEOF
6198
6199
6200 fi
6201 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_id" "ac_cv_member_struct_utmp_ut_id" "# if HAVE_UTMP_H
6202 # include <utmp.h>
6203 # endif
6204
6205 "
6206 if test "x$ac_cv_member_struct_utmp_ut_id" = xyes; then :
6207
6208 cat >>confdefs.h <<_ACEOF
6209 #define HAVE_STRUCT_UTMP_UT_ID 1
6210 _ACEOF
6211
6212
6213 fi
6214 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_syslen" "ac_cv_member_struct_utmp_ut_syslen" "# if HAVE_UTMP_H
6215 # include <utmp.h>
6216 # endif
6217
6218 "
6219 if test "x$ac_cv_member_struct_utmp_ut_syslen" = xyes; then :
6220
6221 cat >>confdefs.h <<_ACEOF
6222 #define HAVE_STRUCT_UTMP_UT_SYSLEN 1
6223 _ACEOF
6224
6225
6226 fi
6227 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_session" "ac_cv_member_struct_utmp_ut_session" "# if HAVE_UTMP_H
6228 # include <utmp.h>
6229 # endif
6230
6231 "
6232 if test "x$ac_cv_member_struct_utmp_ut_session" = xyes; then :
6233
6234 cat >>confdefs.h <<_ACEOF
6235 #define HAVE_STRUCT_UTMP_UT_SESSION 1
6236 _ACEOF
6237
6238
6239 fi
6240 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" "# if HAVE_UTMP_H
6241 # include <utmp.h>
6242 # endif
6243
6244 "
6245 if test "x$ac_cv_member_struct_utmp_ut_pid" = xyes; then :
6246
6247 cat >>confdefs.h <<_ACEOF
6248 #define HAVE_STRUCT_UTMP_UT_PID 1
6249 _ACEOF
6250
6251
6252 fi
6253 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_exit" "ac_cv_member_struct_utmp_ut_exit" "# if HAVE_UTMP_H
6254 # include <utmp.h>
6255 # endif
6256
6257 "
6258 if test "x$ac_cv_member_struct_utmp_ut_exit" = xyes; then :
6259
6260 cat >>confdefs.h <<_ACEOF
6261 #define HAVE_STRUCT_UTMP_UT_EXIT 1
6262 _ACEOF
6263
6264
6265 fi
6266 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_exit.e_termination" "ac_cv_member_struct_utmp_ut_exit_e_termination" "# if HAVE_UTMP_H
6267 # include <utmp.h>
6268 # endif
6269
6270 "
6271 if test "x$ac_cv_member_struct_utmp_ut_exit_e_termination" = xyes; then :
6272
6273 cat >>confdefs.h <<_ACEOF
6274 #define HAVE_STRUCT_UTMP_UT_EXIT_E_TERMINATION 1
6275 _ACEOF
6276
6277
6278 fi
6279 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_exit.__e_termination" "ac_cv_member_struct_utmp_ut_exit___e_termination" "# if HAVE_UTMP_H
6280 # include <utmp.h>
6281 # endif
6282
6283 "
6284 if test "x$ac_cv_member_struct_utmp_ut_exit___e_termination" = xyes; then :
6285
6286 cat >>confdefs.h <<_ACEOF
6287 #define HAVE_STRUCT_UTMP_UT_EXIT___E_TERMINATION 1
6288 _ACEOF
6289
6290
6291 fi
6292 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_exit.ut_termination" "ac_cv_member_struct_utmp_ut_exit_ut_termination" "# if HAVE_UTMP_H
6293 # include <utmp.h>
6294 # endif
6295
6296 "
6297 if test "x$ac_cv_member_struct_utmp_ut_exit_ut_termination" = xyes; then :
6298
6299 cat >>confdefs.h <<_ACEOF
6300 #define HAVE_STRUCT_UTMP_UT_EXIT_UT_TERMINATION 1
6301 _ACEOF
6302
6303
6304 fi
6305 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_addr" "ac_cv_member_struct_utmp_ut_addr" "# if HAVE_UTMP_H
6306 # include <utmp.h>
6307 # endif
6308
6309 "
6310 if test "x$ac_cv_member_struct_utmp_ut_addr" = xyes; then :
6311
6312 cat >>confdefs.h <<_ACEOF
6313 #define HAVE_STRUCT_UTMP_UT_ADDR 1
6314 _ACEOF
6315
6316
6317 fi
6318 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_addr_v6" "ac_cv_member_struct_utmp_ut_addr_v6" "# if HAVE_UTMP_H
6319 # include <utmp.h>
6320 # endif
6321
6322 "
6323 if test "x$ac_cv_member_struct_utmp_ut_addr_v6" = xyes; then :
6324
6325 cat >>confdefs.h <<_ACEOF
6326 #define HAVE_STRUCT_UTMP_UT_ADDR_V6 1
6327 _ACEOF
6328
6329
6330 fi
6331
6332 fi
6333
6334 if test x$have_utmpx_h = xyes; then
6335 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_host" "ac_cv_member_struct_utmpx_ut_host" "# if HAVE_UTMPX_H
6336 # include <utmpx.h>
6337 # endif
6338
6339 "
6340 if test "x$ac_cv_member_struct_utmpx_ut_host" = xyes; then :
6341
6342 cat >>confdefs.h <<_ACEOF
6343 #define HAVE_STRUCT_UTMPX_UT_HOST 1
6344 _ACEOF
6345
6346
6347 fi
6348 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_name" "ac_cv_member_struct_utmpx_ut_name" "# if HAVE_UTMPX_H
6349 # include <utmpx.h>
6350 # endif
6351
6352 "
6353 if test "x$ac_cv_member_struct_utmpx_ut_name" = xyes; then :
6354
6355 cat >>confdefs.h <<_ACEOF
6356 #define HAVE_STRUCT_UTMPX_UT_NAME 1
6357 _ACEOF
6358
6359
6360 fi
6361 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_user" "ac_cv_member_struct_utmpx_ut_user" "# if HAVE_UTMPX_H
6362 # include <utmpx.h>
6363 # endif
6364
6365 "
6366 if test "x$ac_cv_member_struct_utmpx_ut_user" = xyes; then :
6367
6368 cat >>confdefs.h <<_ACEOF
6369 #define HAVE_STRUCT_UTMPX_UT_USER 1
6370 _ACEOF
6371
6372
6373 fi
6374 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_time" "ac_cv_member_struct_utmpx_ut_time" "# if HAVE_UTMPX_H
6375 # include <utmpx.h>
6376 # endif
6377
6378 "
6379 if test "x$ac_cv_member_struct_utmpx_ut_time" = xyes; then :
6380
6381 cat >>confdefs.h <<_ACEOF
6382 #define HAVE_STRUCT_UTMPX_UT_TIME 1
6383 _ACEOF
6384
6385
6386 fi
6387 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_id" "ac_cv_member_struct_utmpx_ut_id" "# if HAVE_UTMPX_H
6388 # include <utmpx.h>
6389 # endif
6390
6391 "
6392 if test "x$ac_cv_member_struct_utmpx_ut_id" = xyes; then :
6393
6394 cat >>confdefs.h <<_ACEOF
6395 #define HAVE_STRUCT_UTMPX_UT_ID 1
6396 _ACEOF
6397
6398
6399 fi
6400 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_tv" "ac_cv_member_struct_utmpx_ut_tv" "# if HAVE_UTMPX_H
6401 # include <utmpx.h>
6402 # endif
6403
6404 "
6405 if test "x$ac_cv_member_struct_utmpx_ut_tv" = xyes; then :
6406
6407 cat >>confdefs.h <<_ACEOF
6408 #define HAVE_STRUCT_UTMPX_UT_TV 1
6409 _ACEOF
6410
6411
6412 fi
6413 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_tv.tv_sec" "ac_cv_member_struct_utmpx_ut_tv_tv_sec" "# if HAVE_UTMPX_H
6414 # include <utmpx.h>
6415 # endif
6416
6417 "
6418 if test "x$ac_cv_member_struct_utmpx_ut_tv_tv_sec" = xyes; then :
6419
6420 cat >>confdefs.h <<_ACEOF
6421 #define HAVE_STRUCT_UTMPX_UT_TV_TV_SEC 1
6422 _ACEOF
6423
6424
6425 fi
6426 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_syslen" "ac_cv_member_struct_utmpx_ut_syslen" "# if HAVE_UTMPX_H
6427 # include <utmpx.h>
6428 # endif
6429
6430 "
6431 if test "x$ac_cv_member_struct_utmpx_ut_syslen" = xyes; then :
6432
6433 cat >>confdefs.h <<_ACEOF
6434 #define HAVE_STRUCT_UTMPX_UT_SYSLEN 1
6435 _ACEOF
6436
6437
6438 fi
6439 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_session" "ac_cv_member_struct_utmpx_ut_session" "# if HAVE_UTMPX_H
6440 # include <utmpx.h>
6441 # endif
6442
6443 "
6444 if test "x$ac_cv_member_struct_utmpx_ut_session" = xyes; then :
6445
6446 cat >>confdefs.h <<_ACEOF
6447 #define HAVE_STRUCT_UTMPX_UT_SESSION 1
6448 _ACEOF
6449
6450
6451 fi
6452 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_pid" "ac_cv_member_struct_utmpx_ut_pid" "# if HAVE_UTMPX_H
6453 # include <utmpx.h>
6454 # endif
6455
6456 "
6457 if test "x$ac_cv_member_struct_utmpx_ut_pid" = xyes; then :
6458
6459 cat >>confdefs.h <<_ACEOF
6460 #define HAVE_STRUCT_UTMPX_UT_PID 1
6461 _ACEOF
6462
6463
6464 fi
6465 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_exit" "ac_cv_member_struct_utmpx_ut_exit" "# if HAVE_UTMPX_H
6466 # include <utmpx.h>
6467 # endif
6468
6469 "
6470 if test "x$ac_cv_member_struct_utmpx_ut_exit" = xyes; then :
6471
6472 cat >>confdefs.h <<_ACEOF
6473 #define HAVE_STRUCT_UTMPX_UT_EXIT 1
6474 _ACEOF
6475
6476
6477 fi
6478 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_exit.e_termination" "ac_cv_member_struct_utmpx_ut_exit_e_termination" "# if HAVE_UTMPX_H
6479 # include <utmpx.h>
6480 # endif
6481
6482 "
6483 if test "x$ac_cv_member_struct_utmpx_ut_exit_e_termination" = xyes; then :
6484
6485 cat >>confdefs.h <<_ACEOF
6486 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_TERMINATION 1
6487 _ACEOF
6488
6489
6490 fi
6491 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_exit.__e_termination" "ac_cv_member_struct_utmpx_ut_exit___e_termination" "# if HAVE_UTMPX_H
6492 # include <utmpx.h>
6493 # endif
6494
6495 "
6496 if test "x$ac_cv_member_struct_utmpx_ut_exit___e_termination" = xyes; then :
6497
6498 cat >>confdefs.h <<_ACEOF
6499 #define HAVE_STRUCT_UTMPX_UT_EXIT___E_TERMINATION 1
6500 _ACEOF
6501
6502
6503 fi
6504 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_exit.ut_termination" "ac_cv_member_struct_utmpx_ut_exit_ut_termination" "# if HAVE_UTMPX_H
6505 # include <utmpx.h>
6506 # endif
6507
6508 "
6509 if test "x$ac_cv_member_struct_utmpx_ut_exit_ut_termination" = xyes; then :
6510
6511 cat >>confdefs.h <<_ACEOF
6512 #define HAVE_STRUCT_UTMPX_UT_EXIT_UT_TERMINATION 1
6513 _ACEOF
6514
6515
6516 fi
6517 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_addr" "ac_cv_member_struct_utmpx_ut_addr" "# if HAVE_UTMPX_H
6518 # include <utmpx.h>
6519 # endif
6520
6521 "
6522 if test "x$ac_cv_member_struct_utmpx_ut_addr" = xyes; then :
6523
6524 cat >>confdefs.h <<_ACEOF
6525 #define HAVE_STRUCT_UTMPX_UT_ADDR 1
6526 _ACEOF
6527
6528
6529 fi
6530 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_addr_v6" "ac_cv_member_struct_utmpx_ut_addr_v6" "# if HAVE_UTMPX_H
6531 # include <utmpx.h>
6532 # endif
6533
6534 "
6535 if test "x$ac_cv_member_struct_utmpx_ut_addr_v6" = xyes; then :
6536
6537 cat >>confdefs.h <<_ACEOF
6538 #define HAVE_STRUCT_UTMPX_UT_ADDR_V6 1
6539 _ACEOF
6540
6541
6542 fi
6543
6544 fi
6545
6546
6547 if test x$enable_gss != xno; then
6548 if test x$enable_gss = xk5; then
6549 # Extract the first word of "krb5-config", so it can be a program name with args.
6550 set dummy krb5-config; ac_word=$2
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6552 $as_echo_n "checking for $ac_word... " >&6; }
6553 if ${ac_cv_prog_KRB5CONFIG+:} false; then :
6554 $as_echo_n "(cached) " >&6
6555 else
6556 if test -n "$KRB5CONFIG"; then
6557 ac_cv_prog_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test.
6558 else
6559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6560 for as_dir in $PATH
6561 do
6562 IFS=$as_save_IFS
6563 test -z "$as_dir" && as_dir=.
6564 for ac_exec_ext in '' $ac_executable_extensions; do
6565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6566 ac_cv_prog_KRB5CONFIG="krb5-config"
6567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6568 break 2
6569 fi
6570 done
6571 done
6572 IFS=$as_save_IFS
6573
6574 test -z "$ac_cv_prog_KRB5CONFIG" && ac_cv_prog_KRB5CONFIG="no"
6575 fi
6576 fi
6577 KRB5CONFIG=$ac_cv_prog_KRB5CONFIG
6578 if test -n "$KRB5CONFIG"; then
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5
6580 $as_echo "$KRB5CONFIG" >&6; }
6581 else
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6583 $as_echo "no" >&6; }
6584 fi
6585
6586
6587 if test x$KRB5CONFIG != xno; then
6588 CPPFLAGS="$CPPFLAGS `$KRB5CONFIG --cflags gssapi`"
6589 LIBS="$LIBS `$KRB5CONFIG --libs gssapi`"
6590 for ac_header in gssapi.h gssapi/gssapi.h gssapi/gssapi_generic.h
6591 do :
6592 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6593 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6594 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6595 cat >>confdefs.h <<_ACEOF
6596 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6597 _ACEOF
6598
6599 fi
6600
6601 done
6602
6603 $as_echo "#define WITH_GSS_K5 1" >>confdefs.h
6604
6605 ac_fn_c_check_decl "$LINENO" "GSS_C_NT_HOSTBASED_SERVICE" "ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" "
6606 #ifdef HAVE_GSSAPI_H
6607 #include <gssapi.h>
6608 #endif
6609 #ifdef HAVE_GSSAPI_GSSAPI_H
6610 #include <gssapi/gssapi.h>
6611 #endif
6612 #ifdef HAVE_GSSAPI_GSSAPI_GENERIC_H
6613 #include <gssapi/gssapi_generic.h>
6614 #endif
6615
6616 "
6617 if test "x$ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" = xyes; then :
6618
6619 else
6620
6621
6622 $as_echo "#define GSS_C_NT_HOSTBASED_SERVICE gss_nt_service_name" >>confdefs.h
6623
6624 fi
6625
6626 fi
6627 else
6628 for ac_header in gss.h
6629 do :
6630 ac_fn_c_check_header_mongrel "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default"
6631 if test "x$ac_cv_header_gss_h" = xyes; then :
6632 cat >>confdefs.h <<_ACEOF
6633 #define HAVE_GSS_H 1
6634 _ACEOF
6635
6636 else
6637 enable_gss=no
6638 fi
6639
6640 done
6641
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_check_version in -lgss" >&5
6643 $as_echo_n "checking for gss_check_version in -lgss... " >&6; }
6644 if ${ac_cv_lib_gss_gss_check_version+:} false; then :
6645 $as_echo_n "(cached) " >&6
6646 else
6647 ac_check_lib_save_LIBS=$LIBS
6648 LIBS="-lgss $LIBS"
6649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6650 /* end confdefs.h. */
6651
6652 /* Override any GCC internal prototype to avoid an error.
6653 Use char because int might match the return type of a GCC
6654 builtin and then its argument prototype would still apply. */
6655 #ifdef __cplusplus
6656 extern "C"
6657 #endif
6658 char gss_check_version ();
6659 int
6660 main ()
6661 {
6662 return gss_check_version ();
6663 ;
6664 return 0;
6665 }
6666 _ACEOF
6667 if ac_fn_c_try_link "$LINENO"; then :
6668 ac_cv_lib_gss_gss_check_version=yes
6669 else
6670 ac_cv_lib_gss_gss_check_version=no
6671 fi
6672 rm -f core conftest.err conftest.$ac_objext \
6673 conftest$ac_exeext conftest.$ac_ext
6674 LIBS=$ac_check_lib_save_LIBS
6675 fi
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_check_version" >&5
6677 $as_echo "$ac_cv_lib_gss_gss_check_version" >&6; }
6678 if test "x$ac_cv_lib_gss_gss_check_version" = xyes; then :
6679 cat >>confdefs.h <<_ACEOF
6680 #define HAVE_LIBGSS 1
6681 _ACEOF
6682
6683 LIBS="-lgss $LIBS"
6684
6685 else
6686 enable_gss=no
6687 fi
6688
6689 fi
6690 fi
6691
6692 if test x$enable_kerberos = xyes; then
6693 for ac_header in krb5.h
6694 do :
6695 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
6696 if test "x$ac_cv_header_krb5_h" = xyes; then :
6697 cat >>confdefs.h <<_ACEOF
6698 #define HAVE_KRB5_H 1
6699 _ACEOF
6700
6701 else
6702 enable_kerberos=no
6703 fi
6704
6705 done
6706
6707 fi
6708
6709 if test x$enable_pam = xyes; then
6710 for ac_header in security/pam_appl.h
6711 do :
6712 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
6713 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
6714 cat >>confdefs.h <<_ACEOF
6715 #define HAVE_SECURITY_PAM_APPL_H 1
6716 _ACEOF
6717
6718 else
6719 enable_pam=no
6720 fi
6721
6722 done
6723
6724 fi
6725
6726 # Some systems (in particular, Unixware) doesn't have socklen_t, but
6727 # uses size_t. Falling back to int will cause some warnings.
6728
6729 # AC_CHECK_TYPE doesn't work, probably because the type in
6730 # question is not defined in sys/types.h.
6731
6732
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t in sys/socket.h" >&5
6734 $as_echo_n "checking for socklen_t in sys/socket.h... " >&6; }
6735 if ${ac_cv_type_socklen_t+:} false; then :
6736 $as_echo_n "(cached) " >&6
6737 else
6738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6739 /* end confdefs.h. */
6740 #include <sys/socket.h>
6741
6742 _ACEOF
6743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6744 $EGREP "socklen_t" >/dev/null 2>&1; then :
6745 ac_cv_type_socklen_t=yes
6746 else
6747 ac_cv_type_socklen_t=no
6748 fi
6749 rm -f conftest*
6750
6751 fi
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
6753 $as_echo "$ac_cv_type_socklen_t" >&6; }
6754 if test $ac_cv_type_socklen_t = no; then
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX" >&5
6756 $as_echo_n "checking for AIX... " >&6; }
6757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6758 /* end confdefs.h. */
6759
6760 #ifdef _AIX
6761 yes
6762 #endif
6763
6764 _ACEOF
6765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6766 $EGREP "yes" >/dev/null 2>&1; then :
6767
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6769 $as_echo "yes" >&6; }
6770 $as_echo "#define socklen_t size_t" >>confdefs.h
6771
6772
6773 else
6774
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6776 $as_echo "no" >&6; }
6777 $as_echo "#define socklen_t int" >>confdefs.h
6778
6779
6780 fi
6781 rm -f conftest*
6782
6783 fi
6784
6785
6786 # Checks for libraries
6787
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_getlimbn in -lgmp" >&5
6789 $as_echo_n "checking for __gmpz_getlimbn in -lgmp... " >&6; }
6790 if ${ac_cv_lib_gmp___gmpz_getlimbn+:} false; then :
6791 $as_echo_n "(cached) " >&6
6792 else
6793 ac_check_lib_save_LIBS=$LIBS
6794 LIBS="-lgmp $LIBS"
6795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6796 /* end confdefs.h. */
6797
6798 /* Override any GCC internal prototype to avoid an error.
6799 Use char because int might match the return type of a GCC
6800 builtin and then its argument prototype would still apply. */
6801 #ifdef __cplusplus
6802 extern "C"
6803 #endif
6804 char __gmpz_getlimbn ();
6805 int
6806 main ()
6807 {
6808 return __gmpz_getlimbn ();
6809 ;
6810 return 0;
6811 }
6812 _ACEOF
6813 if ac_fn_c_try_link "$LINENO"; then :
6814 ac_cv_lib_gmp___gmpz_getlimbn=yes
6815 else
6816 ac_cv_lib_gmp___gmpz_getlimbn=no
6817 fi
6818 rm -f core conftest.err conftest.$ac_objext \
6819 conftest$ac_exeext conftest.$ac_ext
6820 LIBS=$ac_check_lib_save_LIBS
6821 fi
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_getlimbn" >&5
6823 $as_echo "$ac_cv_lib_gmp___gmpz_getlimbn" >&6; }
6824 if test "x$ac_cv_lib_gmp___gmpz_getlimbn" = xyes; then :
6825 cat >>confdefs.h <<_ACEOF
6826 #define HAVE_LIBGMP 1
6827 _ACEOF
6828
6829 LIBS="-lgmp $LIBS"
6830
6831 else
6832 as_fn_error $? "GNU MP not found, or not 3.1 or up, see http://gmplib.org" "$LINENO" 5
6833 fi
6834
6835
6836 if test $cross_compiling = no -a "x$RPATHFLAG" != x ; then
6837 ac_success=no
6838 if test "$cross_compiling" = yes; then :
6839 :
6840 else
6841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6842 /* end confdefs.h. */
6843 int main(int argc, char **argv) { return 0; }
6844 _ACEOF
6845 if ac_fn_c_try_run "$LINENO"; then :
6846 ac_success=yes
6847 else
6848 ac_success=no
6849 fi
6850 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6851 conftest.$ac_objext conftest.beam conftest.$ac_ext
6852 fi
6853
6854
6855 if test $ac_success = no ; then
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Running simple test program failed. Trying -R flags" >&5
6857 $as_echo_n "checking Running simple test program failed. Trying -R flags... " >&6; }
6858 ac_remaining_dirs=''
6859 ac_rpath_save_LDFLAGS="$LDFLAGS"
6860 for d in $RPATH_CANDIDATE_DIRS ; do
6861 if test $ac_success = yes ; then
6862 ac_remaining_dirs="$ac_remaining_dirs $d"
6863 else
6864 LDFLAGS="$RPATHFLAG$d $LDFLAGS"
6865 if test "$cross_compiling" = yes; then :
6866 :
6867 else
6868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6869 /* end confdefs.h. */
6870 int main(int argc, char **argv) { return 0; }
6871 _ACEOF
6872 if ac_fn_c_try_run "$LINENO"; then :
6873 ac_success=yes
6874 ac_rpath_save_LDFLAGS="$LDFLAGS"
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: adding $RPATHFLAG$d" >&5
6876 $as_echo "adding $RPATHFLAG$d" >&6; }
6877
6878 else
6879 ac_remaining_dirs="$ac_remaining_dirs $d"
6880 fi
6881 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6882 conftest.$ac_objext conftest.beam conftest.$ac_ext
6883 fi
6884
6885 LDFLAGS="$ac_rpath_save_LDFLAGS"
6886 fi
6887 done
6888 RPATH_CANDIDATE_DIRS=$ac_remaining_dirs
6889 fi
6890 if test $ac_success = no ; then
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6892 $as_echo "failed" >&6; }
6893 fi
6894 fi
6895
6896
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for oop_sys_new in -loop" >&5
6898 $as_echo_n "checking for oop_sys_new in -loop... " >&6; }
6899 if ${ac_cv_lib_oop_oop_sys_new+:} false; then :
6900 $as_echo_n "(cached) " >&6
6901 else
6902 ac_check_lib_save_LIBS=$LIBS
6903 LIBS="-loop $LIBS"
6904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6905 /* end confdefs.h. */
6906
6907 /* Override any GCC internal prototype to avoid an error.
6908 Use char because int might match the return type of a GCC
6909 builtin and then its argument prototype would still apply. */
6910 #ifdef __cplusplus
6911 extern "C"
6912 #endif
6913 char oop_sys_new ();
6914 int
6915 main ()
6916 {
6917 return oop_sys_new ();
6918 ;
6919 return 0;
6920 }
6921 _ACEOF
6922 if ac_fn_c_try_link "$LINENO"; then :
6923 ac_cv_lib_oop_oop_sys_new=yes
6924 else
6925 ac_cv_lib_oop_oop_sys_new=no
6926 fi
6927 rm -f core conftest.err conftest.$ac_objext \
6928 conftest$ac_exeext conftest.$ac_ext
6929 LIBS=$ac_check_lib_save_LIBS
6930 fi
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_oop_oop_sys_new" >&5
6932 $as_echo "$ac_cv_lib_oop_oop_sys_new" >&6; }
6933 if test "x$ac_cv_lib_oop_oop_sys_new" = xyes; then :
6934 cat >>confdefs.h <<_ACEOF
6935 #define HAVE_LIBOOP 1
6936 _ACEOF
6937
6938 LIBS="-loop $LIBS"
6939
6940 else
6941 as_fn_error $? "liboop is missing. Get liboop from http://www.lysator.liu.se/liboop" "$LINENO" 5
6942 fi
6943
6944
6945 if test $cross_compiling = no -a "x$RPATHFLAG" != x ; then
6946 ac_success=no
6947 if test "$cross_compiling" = yes; then :
6948 :
6949 else
6950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6951 /* end confdefs.h. */
6952 int main(int argc, char **argv) { return 0; }
6953 _ACEOF
6954 if ac_fn_c_try_run "$LINENO"; then :
6955 ac_success=yes
6956 else
6957 ac_success=no
6958 fi
6959 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6960 conftest.$ac_objext conftest.beam conftest.$ac_ext
6961 fi
6962
6963
6964 if test $ac_success = no ; then
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Running simple test program failed. Trying -R flags" >&5
6966 $as_echo_n "checking Running simple test program failed. Trying -R flags... " >&6; }
6967 ac_remaining_dirs=''
6968 ac_rpath_save_LDFLAGS="$LDFLAGS"
6969 for d in $RPATH_CANDIDATE_DIRS ; do
6970 if test $ac_success = yes ; then
6971 ac_remaining_dirs="$ac_remaining_dirs $d"
6972 else
6973 LDFLAGS="$RPATHFLAG$d $LDFLAGS"
6974 if test "$cross_compiling" = yes; then :
6975 :
6976 else
6977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6978 /* end confdefs.h. */
6979 int main(int argc, char **argv) { return 0; }
6980 _ACEOF
6981 if ac_fn_c_try_run "$LINENO"; then :
6982 ac_success=yes
6983 ac_rpath_save_LDFLAGS="$LDFLAGS"
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: adding $RPATHFLAG$d" >&5
6985 $as_echo "adding $RPATHFLAG$d" >&6; }
6986
6987 else
6988 ac_remaining_dirs="$ac_remaining_dirs $d"
6989 fi
6990 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6991 conftest.$ac_objext conftest.beam conftest.$ac_ext
6992 fi
6993
6994 LDFLAGS="$ac_rpath_save_LDFLAGS"
6995 fi
6996 done
6997 RPATH_CANDIDATE_DIRS=$ac_remaining_dirs
6998 fi
6999 if test $ac_success = no ; then
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7001 $as_echo "failed" >&6; }
7002 fi
7003 fi
7004
7005
7006 if test x$with_zlib = xyes; then
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
7008 $as_echo_n "checking for inflate in -lz... " >&6; }
7009 if ${ac_cv_lib_z_inflate+:} false; then :
7010 $as_echo_n "(cached) " >&6
7011 else
7012 ac_check_lib_save_LIBS=$LIBS
7013 LIBS="-lz $LIBS"
7014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7015 /* end confdefs.h. */
7016
7017 /* Override any GCC internal prototype to avoid an error.
7018 Use char because int might match the return type of a GCC
7019 builtin and then its argument prototype would still apply. */
7020 #ifdef __cplusplus
7021 extern "C"
7022 #endif
7023 char inflate ();
7024 int
7025 main ()
7026 {
7027 return inflate ();
7028 ;
7029 return 0;
7030 }
7031 _ACEOF
7032 if ac_fn_c_try_link "$LINENO"; then :
7033 ac_cv_lib_z_inflate=yes
7034 else
7035 ac_cv_lib_z_inflate=no
7036 fi
7037 rm -f core conftest.err conftest.$ac_objext \
7038 conftest$ac_exeext conftest.$ac_ext
7039 LIBS=$ac_check_lib_save_LIBS
7040 fi
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
7042 $as_echo "$ac_cv_lib_z_inflate" >&6; }
7043 if test "x$ac_cv_lib_z_inflate" = xyes; then :
7044 cat >>confdefs.h <<_ACEOF
7045 #define HAVE_LIBZ 1
7046 _ACEOF
7047
7048 LIBS="-lz $LIBS"
7049
7050 else
7051 with_zlib=no
7052 fi
7053
7054 fi
7055
7056 if test x$with_zlib = xyes; then
7057 if test $cross_compiling = no -a "x$RPATHFLAG" != x ; then
7058 ac_success=no
7059 if test "$cross_compiling" = yes; then :
7060 :
7061 else
7062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7063 /* end confdefs.h. */
7064 int main(int argc, char **argv) { return 0; }
7065 _ACEOF
7066 if ac_fn_c_try_run "$LINENO"; then :
7067 ac_success=yes
7068 else
7069 ac_success=no
7070 fi
7071 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7072 conftest.$ac_objext conftest.beam conftest.$ac_ext
7073 fi
7074
7075
7076 if test $ac_success = no ; then
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Running simple test program failed. Trying -R flags" >&5
7078 $as_echo_n "checking Running simple test program failed. Trying -R flags... " >&6; }
7079 ac_remaining_dirs=''
7080 ac_rpath_save_LDFLAGS="$LDFLAGS"
7081 for d in $RPATH_CANDIDATE_DIRS ; do
7082 if test $ac_success = yes ; then
7083 ac_remaining_dirs="$ac_remaining_dirs $d"
7084 else
7085 LDFLAGS="$RPATHFLAG$d $LDFLAGS"
7086 if test "$cross_compiling" = yes; then :
7087 :
7088 else
7089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7090 /* end confdefs.h. */
7091 int main(int argc, char **argv) { return 0; }
7092 _ACEOF
7093 if ac_fn_c_try_run "$LINENO"; then :
7094 ac_success=yes
7095 ac_rpath_save_LDFLAGS="$LDFLAGS"
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: adding $RPATHFLAG$d" >&5
7097 $as_echo "adding $RPATHFLAG$d" >&6; }
7098
7099 else
7100 ac_remaining_dirs="$ac_remaining_dirs $d"
7101 fi
7102 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7103 conftest.$ac_objext conftest.beam conftest.$ac_ext
7104 fi
7105
7106 LDFLAGS="$ac_rpath_save_LDFLAGS"
7107 fi
7108 done
7109 RPATH_CANDIDATE_DIRS=$ac_remaining_dirs
7110 fi
7111 if test $ac_success = no ; then
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7113 $as_echo "failed" >&6; }
7114 fi
7115 fi
7116
7117 fi
7118
7119 # FIXME: Should we let people use --with-tcpwrappers=/here/they/are?
7120
7121 if test x$with_tcpwrappers = xyes; then
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for request_init in -lwrap" >&5
7123 $as_echo_n "checking for request_init in -lwrap... " >&6; }
7124 if ${ac_cv_lib_wrap_request_init+:} false; then :
7125 $as_echo_n "(cached) " >&6
7126 else
7127 ac_check_lib_save_LIBS=$LIBS
7128 LIBS="-lwrap $LIBS"
7129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7130 /* end confdefs.h. */
7131
7132 /* Override any GCC internal prototype to avoid an error.
7133 Use char because int might match the return type of a GCC
7134 builtin and then its argument prototype would still apply. */
7135 #ifdef __cplusplus
7136 extern "C"
7137 #endif
7138 char request_init ();
7139 int
7140 main ()
7141 {
7142 return request_init ();
7143 ;
7144 return 0;
7145 }
7146 _ACEOF
7147 if ac_fn_c_try_link "$LINENO"; then :
7148 ac_cv_lib_wrap_request_init=yes
7149 else
7150 ac_cv_lib_wrap_request_init=no
7151 fi
7152 rm -f core conftest.err conftest.$ac_objext \
7153 conftest$ac_exeext conftest.$ac_ext
7154 LIBS=$ac_check_lib_save_LIBS
7155 fi
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wrap_request_init" >&5
7157 $as_echo "$ac_cv_lib_wrap_request_init" >&6; }
7158 if test "x$ac_cv_lib_wrap_request_init" = xyes; then :
7159 cat >>confdefs.h <<_ACEOF
7160 #define HAVE_LIBWRAP 1
7161 _ACEOF
7162
7163 LIBS="-lwrap $LIBS"
7164
7165 else
7166
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed to link libwrap, you might try adding -lsocket to LDFLAGS" >&5
7168 $as_echo "$as_me: WARNING: Failed to link libwrap, you might try adding -lsocket to LDFLAGS" >&2;}
7169 with_tcpwrappers=no
7170
7171 fi
7172
7173
7174 ac_fn_c_check_header_mongrel "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default"
7175 if test "x$ac_cv_header_tcpd_h" = xyes; then :
7176
7177 else
7178 with_tcpwrappers=no
7179 fi
7180
7181
7182
7183 if test x$with_tcpwrappers = xno; then
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed to find a working tcpwrappers setup, disabling wrappers" >&5
7185 $as_echo "$as_me: WARNING: Failed to find a working tcpwrappers setup, disabling wrappers" >&2;}
7186 fi
7187 fi
7188
7189 if test x$with_tcpwrappers = xyes; then
7190 if test $cross_compiling = no -a "x$RPATHFLAG" != x ; then
7191 ac_success=no
7192 if test "$cross_compiling" = yes; then :
7193 :
7194 else
7195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7196 /* end confdefs.h. */
7197 int main(int argc, char **argv) { return 0; }
7198 _ACEOF
7199 if ac_fn_c_try_run "$LINENO"; then :
7200 ac_success=yes
7201 else
7202 ac_success=no
7203 fi
7204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7205 conftest.$ac_objext conftest.beam conftest.$ac_ext
7206 fi
7207
7208
7209 if test $ac_success = no ; then
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Running simple test program failed. Trying -R flags" >&5
7211 $as_echo_n "checking Running simple test program failed. Trying -R flags... " >&6; }
7212 ac_remaining_dirs=''
7213 ac_rpath_save_LDFLAGS="$LDFLAGS"
7214 for d in $RPATH_CANDIDATE_DIRS ; do
7215 if test $ac_success = yes ; then
7216 ac_remaining_dirs="$ac_remaining_dirs $d"
7217 else
7218 LDFLAGS="$RPATHFLAG$d $LDFLAGS"
7219 if test "$cross_compiling" = yes; then :
7220 :
7221 else
7222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7223 /* end confdefs.h. */
7224 int main(int argc, char **argv) { return 0; }
7225 _ACEOF
7226 if ac_fn_c_try_run "$LINENO"; then :
7227 ac_success=yes
7228 ac_rpath_save_LDFLAGS="$LDFLAGS"
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: adding $RPATHFLAG$d" >&5
7230 $as_echo "adding $RPATHFLAG$d" >&6; }
7231
7232 else
7233 ac_remaining_dirs="$ac_remaining_dirs $d"
7234 fi
7235 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7236 conftest.$ac_objext conftest.beam conftest.$ac_ext
7237 fi
7238
7239 LDFLAGS="$ac_rpath_save_LDFLAGS"
7240 fi
7241 done
7242 RPATH_CANDIDATE_DIRS=$ac_remaining_dirs
7243 fi
7244 if test $ac_success = no ; then
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7246 $as_echo "failed" >&6; }
7247 fi
7248 fi
7249
7250
7251 $as_echo "#define WITH_TCPWRAPPERS 1" >>confdefs.h
7252
7253 else
7254
7255 $as_echo "#define WITH_TCPWRAPPERS 0" >>confdefs.h
7256
7257 fi
7258
7259
7260 # X11 stuff. We only need libXau.
7261 # FIXME: Use AC_PATH_XTRA instead?
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7263 $as_echo_n "checking for X... " >&6; }
7264
7265
7266 # Check whether --with-x was given.
7267 if test "${with_x+set}" = set; then :
7268 withval=$with_x;
7269 fi
7270
7271 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7272 if test "x$with_x" = xno; then
7273 # The user explicitly disabled X.
7274 have_x=disabled
7275 else
7276 case $x_includes,$x_libraries in #(
7277 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7278 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
7279 $as_echo_n "(cached) " >&6
7280 else
7281 # One or both of the vars are not set, and there is no cached value.
7282 ac_x_includes=no ac_x_libraries=no
7283 rm -f -r conftest.dir
7284 if mkdir conftest.dir; then
7285 cd conftest.dir
7286 cat >Imakefile <<'_ACEOF'
7287 incroot:
7288 @echo incroot='${INCROOT}'
7289 usrlibdir:
7290 @echo usrlibdir='${USRLIBDIR}'
7291 libdir:
7292 @echo libdir='${LIBDIR}'
7293 _ACEOF
7294 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7295 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7296 for ac_var in incroot usrlibdir libdir; do
7297 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7298 done
7299 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7300 for ac_extension in a so sl dylib la dll; do
7301 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7302 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7303 ac_im_usrlibdir=$ac_im_libdir; break
7304 fi
7305 done
7306 # Screen out bogus values from the imake configuration. They are
7307 # bogus both because they are the default anyway, and because
7308 # using them would break gcc on systems where it needs fixed includes.
7309 case $ac_im_incroot in
7310 /usr/include) ac_x_includes= ;;
7311 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7312 esac
7313 case $ac_im_usrlibdir in
7314 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7315 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7316 esac
7317 fi
7318 cd ..
7319 rm -f -r conftest.dir
7320 fi
7321
7322 # Standard set of common directories for X headers.
7323 # Check X11 before X11Rn because it is often a symlink to the current release.
7324 ac_x_header_dirs='
7325 /usr/X11/include
7326 /usr/X11R7/include
7327 /usr/X11R6/include
7328 /usr/X11R5/include
7329 /usr/X11R4/include
7330
7331 /usr/include/X11
7332 /usr/include/X11R7
7333 /usr/include/X11R6
7334 /usr/include/X11R5
7335 /usr/include/X11R4
7336
7337 /usr/local/X11/include
7338 /usr/local/X11R7/include
7339 /usr/local/X11R6/include
7340 /usr/local/X11R5/include
7341 /usr/local/X11R4/include
7342
7343 /usr/local/include/X11
7344 /usr/local/include/X11R7
7345 /usr/local/include/X11R6
7346 /usr/local/include/X11R5
7347 /usr/local/include/X11R4
7348
7349 /usr/X386/include
7350 /usr/x386/include
7351 /usr/XFree86/include/X11
7352
7353 /usr/include
7354 /usr/local/include
7355 /usr/unsupported/include
7356 /usr/athena/include
7357 /usr/local/x11r5/include
7358 /usr/lpp/Xamples/include
7359
7360 /usr/openwin/include
7361 /usr/openwin/share/include'
7362
7363 if test "$ac_x_includes" = no; then
7364 # Guess where to find include files, by looking for Xlib.h.
7365 # First, try using that file with no special directory specified.
7366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7367 /* end confdefs.h. */
7368 #include <X11/Xlib.h>
7369 _ACEOF
7370 if ac_fn_c_try_cpp "$LINENO"; then :
7371 # We can compile using X headers with no special include directory.
7372 ac_x_includes=
7373 else
7374 for ac_dir in $ac_x_header_dirs; do
7375 if test -r "$ac_dir/X11/Xlib.h"; then
7376 ac_x_includes=$ac_dir
7377 break
7378 fi
7379 done
7380 fi
7381 rm -f conftest.err conftest.i conftest.$ac_ext
7382 fi # $ac_x_includes = no
7383
7384 if test "$ac_x_libraries" = no; then
7385 # Check for the libraries.
7386 # See if we find them without any special options.
7387 # Don't add to $LIBS permanently.
7388 ac_save_LIBS=$LIBS
7389 LIBS="-lX11 $LIBS"
7390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7391 /* end confdefs.h. */
7392 #include <X11/Xlib.h>
7393 int
7394 main ()
7395 {
7396 XrmInitialize ()
7397 ;
7398 return 0;
7399 }
7400 _ACEOF
7401 if ac_fn_c_try_link "$LINENO"; then :
7402 LIBS=$ac_save_LIBS
7403 # We can link X programs with no special library path.
7404 ac_x_libraries=
7405 else
7406 LIBS=$ac_save_LIBS
7407 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7408 do
7409 # Don't even attempt the hair of trying to link an X program!
7410 for ac_extension in a so sl dylib la dll; do
7411 if test -r "$ac_dir/libX11.$ac_extension"; then
7412 ac_x_libraries=$ac_dir
7413 break 2
7414 fi
7415 done
7416 done
7417 fi
7418 rm -f core conftest.err conftest.$ac_objext \
7419 conftest$ac_exeext conftest.$ac_ext
7420 fi # $ac_x_libraries = no
7421
7422 case $ac_x_includes,$ac_x_libraries in #(
7423 no,* | *,no | *\'*)
7424 # Didn't find X, or a directory has "'" in its name.
7425 ac_cv_have_x="have_x=no";; #(
7426 *)
7427 # Record where we found X for the cache.
7428 ac_cv_have_x="have_x=yes\
7429 ac_x_includes='$ac_x_includes'\
7430 ac_x_libraries='$ac_x_libraries'"
7431 esac
7432 fi
7433 ;; #(
7434 *) have_x=yes;;
7435 esac
7436 eval "$ac_cv_have_x"
7437 fi # $with_x != no
7438
7439 if test "$have_x" != yes; then
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7441 $as_echo "$have_x" >&6; }
7442 no_x=yes
7443 else
7444 # If each of the values was on the command line, it overrides each guess.
7445 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7446 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7447 # Update the cache value to reflect the command line values.
7448 ac_cv_have_x="have_x=yes\
7449 ac_x_includes='$x_includes'\
7450 ac_x_libraries='$x_libraries'"
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7452 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7453 fi
7454
7455
7456 if test -z "$no_x" ; then
7457 if test -n "$x_includes" ; then
7458 CPPFLAGS="$CPPFLAGS -I$x_includes"
7459 fi
7460 if test -n "$x_libraries" ; then
7461 LDFLAGS="$LDFLAGS -L$x_libraries"
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $x_libraries" >&5
7463 $as_echo_n "checking $x_libraries... " >&6; }
7464 ac_exists=no
7465 if test -d "$x_libraries/." ; then
7466 ac_real_dir=`cd $x_libraries && pwd`
7467 if test -n "$ac_real_dir" ; then
7468 ac_exists=yes
7469 for old in RPATH_CANDIDATE_REAL_DIRS ; do
7470 ac_found=no
7471 if test x$ac_real_dir = x$old ; then
7472 ac_found=yes;
7473 break;
7474 fi
7475 done
7476 if test $ac_found = yes ; then
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: already added" >&5
7478 $as_echo "already added" >&6; }
7479 else
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: added" >&5
7481 $as_echo "added" >&6; }
7482 # LDFLAGS="$LDFLAGS -L $x_libraries"
7483 RPATH_CANDIDATE_REAL_DIRS="$ac_real_dir $RPATH_CANDIDATE_REAL_DIRS"
7484 RPATH_CANDIDATE_DIRS="$x_libraries $RPATH_CANDIDATE_DIRS"
7485 fi
7486 fi
7487 fi
7488 if test $ac_exists = no ; then
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7490 $as_echo "not found" >&6; }
7491 fi
7492
7493 fi
7494 fi
7495
7496 for ac_header in X11/Xauth.h
7497 do :
7498 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xauth.h" "ac_cv_header_X11_Xauth_h" "$ac_includes_default"
7499 if test "x$ac_cv_header_X11_Xauth_h" = xyes; then :
7500 cat >>confdefs.h <<_ACEOF
7501 #define HAVE_X11_XAUTH_H 1
7502 _ACEOF
7503
7504 fi
7505
7506 done
7507
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauGetAuthByAddr in -lXau" >&5
7509 $as_echo_n "checking for XauGetAuthByAddr in -lXau... " >&6; }
7510 if ${ac_cv_lib_Xau_XauGetAuthByAddr+:} false; then :
7511 $as_echo_n "(cached) " >&6
7512 else
7513 ac_check_lib_save_LIBS=$LIBS
7514 LIBS="-lXau $LIBS"
7515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7516 /* end confdefs.h. */
7517
7518 /* Override any GCC internal prototype to avoid an error.
7519 Use char because int might match the return type of a GCC
7520 builtin and then its argument prototype would still apply. */
7521 #ifdef __cplusplus
7522 extern "C"
7523 #endif
7524 char XauGetAuthByAddr ();
7525 int
7526 main ()
7527 {
7528 return XauGetAuthByAddr ();
7529 ;
7530 return 0;
7531 }
7532 _ACEOF
7533 if ac_fn_c_try_link "$LINENO"; then :
7534 ac_cv_lib_Xau_XauGetAuthByAddr=yes
7535 else
7536 ac_cv_lib_Xau_XauGetAuthByAddr=no
7537 fi
7538 rm -f core conftest.err conftest.$ac_objext \
7539 conftest$ac_exeext conftest.$ac_ext
7540 LIBS=$ac_check_lib_save_LIBS
7541 fi
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xau_XauGetAuthByAddr" >&5
7543 $as_echo "$ac_cv_lib_Xau_XauGetAuthByAddr" >&6; }
7544 if test "x$ac_cv_lib_Xau_XauGetAuthByAddr" = xyes; then :
7545 cat >>confdefs.h <<_ACEOF
7546 #define HAVE_LIBXAU 1
7547 _ACEOF
7548
7549 LIBS="-lXau $LIBS"
7550
7551 fi
7552
7553 if test $cross_compiling = no -a "x$RPATHFLAG" != x ; then
7554 ac_success=no
7555 if test "$cross_compiling" = yes; then :
7556 :
7557 else
7558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7559 /* end confdefs.h. */
7560 int main(int argc, char **argv) { return 0; }
7561 _ACEOF
7562 if ac_fn_c_try_run "$LINENO"; then :
7563 ac_success=yes
7564 else
7565 ac_success=no
7566 fi
7567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7568 conftest.$ac_objext conftest.beam conftest.$ac_ext
7569 fi
7570
7571
7572 if test $ac_success = no ; then
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Running simple test program failed. Trying -R flags" >&5
7574 $as_echo_n "checking Running simple test program failed. Trying -R flags... " >&6; }
7575 ac_remaining_dirs=''
7576 ac_rpath_save_LDFLAGS="$LDFLAGS"
7577 for d in $RPATH_CANDIDATE_DIRS ; do
7578 if test $ac_success = yes ; then
7579 ac_remaining_dirs="$ac_remaining_dirs $d"
7580 else
7581 LDFLAGS="$RPATHFLAG$d $LDFLAGS"
7582 if test "$cross_compiling" = yes; then :
7583 :
7584 else
7585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7586 /* end confdefs.h. */
7587 int main(int argc, char **argv) { return 0; }
7588 _ACEOF
7589 if ac_fn_c_try_run "$LINENO"; then :
7590 ac_success=yes
7591 ac_rpath_save_LDFLAGS="$LDFLAGS"
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: adding $RPATHFLAG$d" >&5
7593 $as_echo "adding $RPATHFLAG$d" >&6; }
7594
7595 else
7596 ac_remaining_dirs="$ac_remaining_dirs $d"
7597 fi
7598 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7599 conftest.$ac_objext conftest.beam conftest.$ac_ext
7600 fi
7601
7602 LDFLAGS="$ac_rpath_save_LDFLAGS"
7603 fi
7604 done
7605 RPATH_CANDIDATE_DIRS=$ac_remaining_dirs
7606 fi
7607 if test $ac_success = no ; then
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7609 $as_echo "failed" >&6; }
7610 fi
7611 fi
7612
7613
7614
7615
7616 if test -z "$XAUTH_PROGRAM"; then
7617 # Extract the first word of "xauth", so it can be a program name with args.
7618 set dummy xauth; ac_word=$2
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7620 $as_echo_n "checking for $ac_word... " >&6; }
7621 if ${ac_cv_path_XAUTH_PROGRAM+:} false; then :
7622 $as_echo_n "(cached) " >&6
7623 else
7624 case $XAUTH_PROGRAM in
7625 [\\/]* | ?:[\\/]*)
7626 ac_cv_path_XAUTH_PROGRAM="$XAUTH_PROGRAM" # Let the user override the test with a path.
7627 ;;
7628 *)
7629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7630 as_dummy="/usr/X11R6/bin:/usr/openwin/bin:/usr/X/bin:/usr/X11/bin:/usr/bin:/usr/bin/X:/usr/bin/X11"
7631 for as_dir in $as_dummy
7632 do
7633 IFS=$as_save_IFS
7634 test -z "$as_dir" && as_dir=.
7635 for ac_exec_ext in '' $ac_executable_extensions; do
7636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7637 ac_cv_path_XAUTH_PROGRAM="$as_dir/$ac_word$ac_exec_ext"
7638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7639 break 2
7640 fi
7641 done
7642 done
7643 IFS=$as_save_IFS
7644
7645 ;;
7646 esac
7647 fi
7648 XAUTH_PROGRAM=$ac_cv_path_XAUTH_PROGRAM
7649 if test -n "$XAUTH_PROGRAM"; then
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAUTH_PROGRAM" >&5
7651 $as_echo "$XAUTH_PROGRAM" >&6; }
7652 else
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7654 $as_echo "no" >&6; }
7655 fi
7656
7657
7658 fi
7659
7660 if test -z "$XAUTH_PROGRAM"; then
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't find xauth" >&5
7662 $as_echo "$as_me: WARNING: Couldn't find xauth" >&2;}
7663 else
7664
7665 cat >>confdefs.h <<_ACEOF
7666 #define XAUTH_PROGRAM "$XAUTH_PROGRAM"
7667 _ACEOF
7668
7669 fi
7670
7671 # Move these checks for system libraries earlier, before checks for
7672 # gmp, liboop etc
7673
7674 # glibc has a nis-library "libnsl", which we don't need. So use
7675 # AC_SEARCH_LIBS rather than AC_CHECK_LIB.
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
7677 $as_echo_n "checking for library containing gethostbyname... " >&6; }
7678 if ${ac_cv_search_gethostbyname+:} false; then :
7679 $as_echo_n "(cached) " >&6
7680 else
7681 ac_func_search_save_LIBS=$LIBS
7682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7683 /* end confdefs.h. */
7684
7685 /* Override any GCC internal prototype to avoid an error.
7686 Use char because int might match the return type of a GCC
7687 builtin and then its argument prototype would still apply. */
7688 #ifdef __cplusplus
7689 extern "C"
7690 #endif
7691 char gethostbyname ();
7692 int
7693 main ()
7694 {
7695 return gethostbyname ();
7696 ;
7697 return 0;
7698 }
7699 _ACEOF
7700 for ac_lib in '' nsl; do
7701 if test -z "$ac_lib"; then
7702 ac_res="none required"
7703 else
7704 ac_res=-l$ac_lib
7705 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7706 fi
7707 if ac_fn_c_try_link "$LINENO"; then :
7708 ac_cv_search_gethostbyname=$ac_res
7709 fi
7710 rm -f core conftest.err conftest.$ac_objext \
7711 conftest$ac_exeext
7712 if ${ac_cv_search_gethostbyname+:} false; then :
7713 break
7714 fi
7715 done
7716 if ${ac_cv_search_gethostbyname+:} false; then :
7717
7718 else
7719 ac_cv_search_gethostbyname=no
7720 fi
7721 rm conftest.$ac_ext
7722 LIBS=$ac_func_search_save_LIBS
7723 fi
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
7725 $as_echo "$ac_cv_search_gethostbyname" >&6; }
7726 ac_res=$ac_cv_search_gethostbyname
7727 if test "$ac_res" != no; then :
7728 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7729
7730 fi
7731
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
7733 $as_echo_n "checking for library containing inet_ntop... " >&6; }
7734 if ${ac_cv_search_inet_ntop+:} false; then :
7735 $as_echo_n "(cached) " >&6
7736 else
7737 ac_func_search_save_LIBS=$LIBS
7738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7739 /* end confdefs.h. */
7740
7741 /* Override any GCC internal prototype to avoid an error.
7742 Use char because int might match the return type of a GCC
7743 builtin and then its argument prototype would still apply. */
7744 #ifdef __cplusplus
7745 extern "C"
7746 #endif
7747 char inet_ntop ();
7748 int
7749 main ()
7750 {
7751 return inet_ntop ();
7752 ;
7753 return 0;
7754 }
7755 _ACEOF
7756 for ac_lib in '' nsl; do
7757 if test -z "$ac_lib"; then
7758 ac_res="none required"
7759 else
7760 ac_res=-l$ac_lib
7761 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7762 fi
7763 if ac_fn_c_try_link "$LINENO"; then :
7764 ac_cv_search_inet_ntop=$ac_res
7765 fi
7766 rm -f core conftest.err conftest.$ac_objext \
7767 conftest$ac_exeext
7768 if ${ac_cv_search_inet_ntop+:} false; then :
7769 break
7770 fi
7771 done
7772 if ${ac_cv_search_inet_ntop+:} false; then :
7773
7774 else
7775 ac_cv_search_inet_ntop=no
7776 fi
7777 rm conftest.$ac_ext
7778 LIBS=$ac_func_search_save_LIBS
7779 fi
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
7781 $as_echo "$ac_cv_search_inet_ntop" >&6; }
7782 ac_res=$ac_cv_search_inet_ntop
7783 if test "$ac_res" != no; then :
7784 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7785
7786 fi
7787
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5
7789 $as_echo_n "checking for setsockopt in -lsocket... " >&6; }
7790 if ${ac_cv_lib_socket_setsockopt+:} false; then :
7791 $as_echo_n "(cached) " >&6
7792 else
7793 ac_check_lib_save_LIBS=$LIBS
7794 LIBS="-lsocket $LIBS"
7795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7796 /* end confdefs.h. */
7797
7798 /* Override any GCC internal prototype to avoid an error.
7799 Use char because int might match the return type of a GCC
7800 builtin and then its argument prototype would still apply. */
7801 #ifdef __cplusplus
7802 extern "C"
7803 #endif
7804 char setsockopt ();
7805 int
7806 main ()
7807 {
7808 return setsockopt ();
7809 ;
7810 return 0;
7811 }
7812 _ACEOF
7813 if ac_fn_c_try_link "$LINENO"; then :
7814 ac_cv_lib_socket_setsockopt=yes
7815 else
7816 ac_cv_lib_socket_setsockopt=no
7817 fi
7818 rm -f core conftest.err conftest.$ac_objext \
7819 conftest$ac_exeext conftest.$ac_ext
7820 LIBS=$ac_check_lib_save_LIBS
7821 fi
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5
7823 $as_echo "$ac_cv_lib_socket_setsockopt" >&6; }
7824 if test "x$ac_cv_lib_socket_setsockopt" = xyes; then :
7825 cat >>confdefs.h <<_ACEOF
7826 #define HAVE_LIBSOCKET 1
7827 _ACEOF
7828
7829 LIBS="-lsocket $LIBS"
7830
7831 fi
7832
7833
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
7835 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
7836 if ${ac_cv_lib_crypt_crypt+:} false; then :
7837 $as_echo_n "(cached) " >&6
7838 else
7839 ac_check_lib_save_LIBS=$LIBS
7840 LIBS="-lcrypt $LIBS"
7841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7842 /* end confdefs.h. */
7843
7844 /* Override any GCC internal prototype to avoid an error.
7845 Use char because int might match the return type of a GCC
7846 builtin and then its argument prototype would still apply. */
7847 #ifdef __cplusplus
7848 extern "C"
7849 #endif
7850 char crypt ();
7851 int
7852 main ()
7853 {
7854 return crypt ();
7855 ;
7856 return 0;
7857 }
7858 _ACEOF
7859 if ac_fn_c_try_link "$LINENO"; then :
7860 ac_cv_lib_crypt_crypt=yes
7861 else
7862 ac_cv_lib_crypt_crypt=no
7863 fi
7864 rm -f core conftest.err conftest.$ac_objext \
7865 conftest$ac_exeext conftest.$ac_ext
7866 LIBS=$ac_check_lib_save_LIBS
7867 fi
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
7869 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
7870 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
7871 cat >>confdefs.h <<_ACEOF
7872 #define HAVE_LIBCRYPT 1
7873 _ACEOF
7874
7875 LIBS="-lcrypt $LIBS"
7876
7877 fi
7878
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lxnet" >&5
7880 $as_echo_n "checking for inet_addr in -lxnet... " >&6; }
7881 if ${ac_cv_lib_xnet_inet_addr+:} false; then :
7882 $as_echo_n "(cached) " >&6
7883 else
7884 ac_check_lib_save_LIBS=$LIBS
7885 LIBS="-lxnet $LIBS"
7886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7887 /* end confdefs.h. */
7888
7889 /* Override any GCC internal prototype to avoid an error.
7890 Use char because int might match the return type of a GCC
7891 builtin and then its argument prototype would still apply. */
7892 #ifdef __cplusplus
7893 extern "C"
7894 #endif
7895 char inet_addr ();
7896 int
7897 main ()
7898 {
7899 return inet_addr ();
7900 ;
7901 return 0;
7902 }
7903 _ACEOF
7904 if ac_fn_c_try_link "$LINENO"; then :
7905 ac_cv_lib_xnet_inet_addr=yes
7906 else
7907 ac_cv_lib_xnet_inet_addr=no
7908 fi
7909 rm -f core conftest.err conftest.$ac_objext \
7910 conftest$ac_exeext conftest.$ac_ext
7911 LIBS=$ac_check_lib_save_LIBS
7912 fi
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_inet_addr" >&5
7914 $as_echo "$ac_cv_lib_xnet_inet_addr" >&6; }
7915 if test "x$ac_cv_lib_xnet_inet_addr" = xyes; then :
7916 cat >>confdefs.h <<_ACEOF
7917 #define HAVE_LIBXNET 1
7918 _ACEOF
7919
7920 LIBS="-lxnet $LIBS"
7921
7922 fi
7923
7924 # logwtmp is also in libutil
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
7926 $as_echo_n "checking for openpty in -lutil... " >&6; }
7927 if ${ac_cv_lib_util_openpty+:} false; then :
7928 $as_echo_n "(cached) " >&6
7929 else
7930 ac_check_lib_save_LIBS=$LIBS
7931 LIBS="-lutil $LIBS"
7932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7933 /* end confdefs.h. */
7934
7935 /* Override any GCC internal prototype to avoid an error.
7936 Use char because int might match the return type of a GCC
7937 builtin and then its argument prototype would still apply. */
7938 #ifdef __cplusplus
7939 extern "C"
7940 #endif
7941 char openpty ();
7942 int
7943 main ()
7944 {
7945 return openpty ();
7946 ;
7947 return 0;
7948 }
7949 _ACEOF
7950 if ac_fn_c_try_link "$LINENO"; then :
7951 ac_cv_lib_util_openpty=yes
7952 else
7953 ac_cv_lib_util_openpty=no
7954 fi
7955 rm -f core conftest.err conftest.$ac_objext \
7956 conftest$ac_exeext conftest.$ac_ext
7957 LIBS=$ac_check_lib_save_LIBS
7958 fi
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
7960 $as_echo "$ac_cv_lib_util_openpty" >&6; }
7961 if test "x$ac_cv_lib_util_openpty" = xyes; then :
7962 cat >>confdefs.h <<_ACEOF
7963 #define HAVE_LIBUTIL 1
7964 _ACEOF
7965
7966 LIBS="-lutil $LIBS"
7967
7968 fi
7969
7970
7971 # This macro is new in autoconf-2.13
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing syslog" >&5
7973 $as_echo_n "checking for library containing syslog... " >&6; }
7974 if ${ac_cv_search_syslog+:} false; then :
7975 $as_echo_n "(cached) " >&6
7976 else
7977 ac_func_search_save_LIBS=$LIBS
7978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7979 /* end confdefs.h. */
7980
7981 /* Override any GCC internal prototype to avoid an error.
7982 Use char because int might match the return type of a GCC
7983 builtin and then its argument prototype would still apply. */
7984 #ifdef __cplusplus
7985 extern "C"
7986 #endif
7987 char syslog ();
7988 int
7989 main ()
7990 {
7991 return syslog ();
7992 ;
7993 return 0;
7994 }
7995 _ACEOF
7996 for ac_lib in '' bsd socket inet; do
7997 if test -z "$ac_lib"; then
7998 ac_res="none required"
7999 else
8000 ac_res=-l$ac_lib
8001 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8002 fi
8003 if ac_fn_c_try_link "$LINENO"; then :
8004 ac_cv_search_syslog=$ac_res
8005 fi
8006 rm -f core conftest.err conftest.$ac_objext \
8007 conftest$ac_exeext
8008 if ${ac_cv_search_syslog+:} false; then :
8009 break
8010 fi
8011 done
8012 if ${ac_cv_search_syslog+:} false; then :
8013
8014 else
8015 ac_cv_search_syslog=no
8016 fi
8017 rm conftest.$ac_ext
8018 LIBS=$ac_func_search_save_LIBS
8019 fi
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_syslog" >&5
8021 $as_echo "$ac_cv_search_syslog" >&6; }
8022 ac_res=$ac_cv_search_syslog
8023 if test "$ac_res" != no; then :
8024 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8025 $as_echo "#define HAVE_SYSLOG 1" >>confdefs.h
8026
8027 fi
8028
8029
8030
8031 # Should we use zlib?
8032 if test x$with_zlib = xyes ; then
8033 $as_echo "#define WITH_ZLIB 1" >>confdefs.h
8034
8035 fi
8036
8037
8038 # Should we use gss?
8039 if test x$enable_gss != xno ; then
8040 $as_echo "#define WITH_GSS 1" >>confdefs.h
8041
8042 fi
8043
8044 # The kerberos libraries are needed only to support the
8045 # krb-check-passwd program, so we put them $KRB_LIBS, not in the
8046 # ordinary $LIBS.
8047
8048 if test x$enable_kerberos = xyes; then
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcpy in -lroken" >&5
8050 $as_echo_n "checking for strlcpy in -lroken... " >&6; }
8051 if ${ac_cv_lib_roken_strlcpy+:} false; then :
8052 $as_echo_n "(cached) " >&6
8053 else
8054 ac_check_lib_save_LIBS=$LIBS
8055 LIBS="-lroken $KRB_LIBS $LIBS"
8056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8057 /* end confdefs.h. */
8058
8059 /* Override any GCC internal prototype to avoid an error.
8060 Use char because int might match the return type of a GCC
8061 builtin and then its argument prototype would still apply. */
8062 #ifdef __cplusplus
8063 extern "C"
8064 #endif
8065 char strlcpy ();
8066 int
8067 main ()
8068 {
8069 return strlcpy ();
8070 ;
8071 return 0;
8072 }
8073 _ACEOF
8074 if ac_fn_c_try_link "$LINENO"; then :
8075 ac_cv_lib_roken_strlcpy=yes
8076 else
8077 ac_cv_lib_roken_strlcpy=no
8078 fi
8079 rm -f core conftest.err conftest.$ac_objext \
8080 conftest$ac_exeext conftest.$ac_ext
8081 LIBS=$ac_check_lib_save_LIBS
8082 fi
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_strlcpy" >&5
8084 $as_echo "$ac_cv_lib_roken_strlcpy" >&6; }
8085 if test "x$ac_cv_lib_roken_strlcpy" = xyes; then :
8086 ac_tr_lib=HAVE_LIB`echo roken | sed -e 's/^a-zA-Z0-9_/_/g' \
8087 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8088 cat >>confdefs.h <<_ACEOF
8089 #define $ac_tr_lib 1
8090 _ACEOF
8091
8092 KRB_LIBS="-lroken $KRB_LIBS"
8093
8094 fi
8095
8096
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_expand in -lresolv" >&5
8098 $as_echo_n "checking for dn_expand in -lresolv... " >&6; }
8099 if ${ac_cv_lib_resolv_dn_expand+:} false; then :
8100 $as_echo_n "(cached) " >&6
8101 else
8102 ac_check_lib_save_LIBS=$LIBS
8103 LIBS="-lresolv $KRB_LIBS $LIBS"
8104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8105 /* end confdefs.h. */
8106
8107 /* Override any GCC internal prototype to avoid an error.
8108 Use char because int might match the return type of a GCC
8109 builtin and then its argument prototype would still apply. */
8110 #ifdef __cplusplus
8111 extern "C"
8112 #endif
8113 char dn_expand ();
8114 int
8115 main ()
8116 {
8117 return dn_expand ();
8118 ;
8119 return 0;
8120 }
8121 _ACEOF
8122 if ac_fn_c_try_link "$LINENO"; then :
8123 ac_cv_lib_resolv_dn_expand=yes
8124 else
8125 ac_cv_lib_resolv_dn_expand=no
8126 fi
8127 rm -f core conftest.err conftest.$ac_objext \
8128 conftest$ac_exeext conftest.$ac_ext
8129 LIBS=$ac_check_lib_save_LIBS
8130 fi
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_dn_expand" >&5
8132 $as_echo "$ac_cv_lib_resolv_dn_expand" >&6; }
8133 if test "x$ac_cv_lib_resolv_dn_expand" = xyes; then :
8134 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
8135 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8136 cat >>confdefs.h <<_ACEOF
8137 #define $ac_tr_lib 1
8138 _ACEOF
8139
8140 KRB_LIBS="-lresolv $KRB_LIBS"
8141
8142 fi
8143
8144
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
8146 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
8147 if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then :
8148 $as_echo_n "(cached) " >&6
8149 else
8150 ac_check_lib_save_LIBS=$LIBS
8151 LIBS="-ldes $KRB_LIBS $LIBS"
8152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8153 /* end confdefs.h. */
8154
8155 /* Override any GCC internal prototype to avoid an error.
8156 Use char because int might match the return type of a GCC
8157 builtin and then its argument prototype would still apply. */
8158 #ifdef __cplusplus
8159 extern "C"
8160 #endif
8161 char des_cbc_encrypt ();
8162 int
8163 main ()
8164 {
8165 return des_cbc_encrypt ();
8166 ;
8167 return 0;
8168 }
8169 _ACEOF
8170 if ac_fn_c_try_link "$LINENO"; then :
8171 ac_cv_lib_des_des_cbc_encrypt=yes
8172 else
8173 ac_cv_lib_des_des_cbc_encrypt=no
8174 fi
8175 rm -f core conftest.err conftest.$ac_objext \
8176 conftest$ac_exeext conftest.$ac_ext
8177 LIBS=$ac_check_lib_save_LIBS
8178 fi
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
8180 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
8181 if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then :
8182 ac_tr_lib=HAVE_LIB`echo des | sed -e 's/^a-zA-Z0-9_/_/g' \
8183 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8184 cat >>confdefs.h <<_ACEOF
8185 #define $ac_tr_lib 1
8186 _ACEOF
8187
8188 KRB_LIBS="-ldes $KRB_LIBS"
8189
8190 fi
8191
8192
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for der_get_octet_string in -lasn1" >&5
8194 $as_echo_n "checking for der_get_octet_string in -lasn1... " >&6; }
8195 if ${ac_cv_lib_asn1_der_get_octet_string+:} false; then :
8196 $as_echo_n "(cached) " >&6
8197 else
8198 ac_check_lib_save_LIBS=$LIBS
8199 LIBS="-lasn1 $KRB_LIBS $LIBS"
8200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8201 /* end confdefs.h. */
8202
8203 /* Override any GCC internal prototype to avoid an error.
8204 Use char because int might match the return type of a GCC
8205 builtin and then its argument prototype would still apply. */
8206 #ifdef __cplusplus
8207 extern "C"
8208 #endif
8209 char der_get_octet_string ();
8210 int
8211 main ()
8212 {
8213 return der_get_octet_string ();
8214 ;
8215 return 0;
8216 }
8217 _ACEOF
8218 if ac_fn_c_try_link "$LINENO"; then :
8219 ac_cv_lib_asn1_der_get_octet_string=yes
8220 else
8221 ac_cv_lib_asn1_der_get_octet_string=no
8222 fi
8223 rm -f core conftest.err conftest.$ac_objext \
8224 conftest$ac_exeext conftest.$ac_ext
8225 LIBS=$ac_check_lib_save_LIBS
8226 fi
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asn1_der_get_octet_string" >&5
8228 $as_echo "$ac_cv_lib_asn1_der_get_octet_string" >&6; }
8229 if test "x$ac_cv_lib_asn1_der_get_octet_string" = xyes; then :
8230 ac_tr_lib=HAVE_LIB`echo asn1 | sed -e 's/^a-zA-Z0-9_/_/g' \
8231 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8232 cat >>confdefs.h <<_ACEOF
8233 #define $ac_tr_lib 1
8234 _ACEOF
8235
8236 KRB_LIBS="-lasn1 $KRB_LIBS"
8237
8238 fi
8239
8240
8241 # Check for krb5_cc_gen_new too?
8242 # krb5_verify_user_lrealm seems to be unique to heimdal
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_verify_user_lrealm in -lkrb5" >&5
8244 $as_echo_n "checking for krb5_verify_user_lrealm in -lkrb5... " >&6; }
8245 if ${ac_cv_lib_krb5_krb5_verify_user_lrealm+:} false; then :
8246 $as_echo_n "(cached) " >&6
8247 else
8248 ac_check_lib_save_LIBS=$LIBS
8249 LIBS="-lkrb5 $KRB_LIBS $LIBS"
8250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8251 /* end confdefs.h. */
8252
8253 /* Override any GCC internal prototype to avoid an error.
8254 Use char because int might match the return type of a GCC
8255 builtin and then its argument prototype would still apply. */
8256 #ifdef __cplusplus
8257 extern "C"
8258 #endif
8259 char krb5_verify_user_lrealm ();
8260 int
8261 main ()
8262 {
8263 return krb5_verify_user_lrealm ();
8264 ;
8265 return 0;
8266 }
8267 _ACEOF
8268 if ac_fn_c_try_link "$LINENO"; then :
8269 ac_cv_lib_krb5_krb5_verify_user_lrealm=yes
8270 else
8271 ac_cv_lib_krb5_krb5_verify_user_lrealm=no
8272 fi
8273 rm -f core conftest.err conftest.$ac_objext \
8274 conftest$ac_exeext conftest.$ac_ext
8275 LIBS=$ac_check_lib_save_LIBS
8276 fi
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_verify_user_lrealm" >&5
8278 $as_echo "$ac_cv_lib_krb5_krb5_verify_user_lrealm" >&6; }
8279 if test "x$ac_cv_lib_krb5_krb5_verify_user_lrealm" = xyes; then :
8280 ac_tr_lib=HAVE_LIB`echo krb5 | sed -e 's/^a-zA-Z0-9_/_/g' \
8281 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8282 cat >>confdefs.h <<_ACEOF
8283 #define $ac_tr_lib 1
8284 _ACEOF
8285
8286 KRB_LIBS="-lkrb5 $KRB_LIBS"
8287
8288 else
8289 enable_kerberos=no
8290
8291 fi
8292
8293
8294 fi
8295
8296
8297 if test x$enable_kerberos = xyes; then
8298 $as_echo "#define WITH_KERBEROS 1" >>confdefs.h
8299
8300 KRB_PROGRAM=lsh-krb-checkpw
8301 fi
8302
8303
8304
8305
8306
8307 if test x$enable_pam = xyes; then
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
8309 $as_echo_n "checking for pam_start in -lpam... " >&6; }
8310 if ${ac_cv_lib_pam_pam_start+:} false; then :
8311 $as_echo_n "(cached) " >&6
8312 else
8313 ac_check_lib_save_LIBS=$LIBS
8314 LIBS="-lpam $LIBS"
8315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8316 /* end confdefs.h. */
8317
8318 /* Override any GCC internal prototype to avoid an error.
8319 Use char because int might match the return type of a GCC
8320 builtin and then its argument prototype would still apply. */
8321 #ifdef __cplusplus
8322 extern "C"
8323 #endif
8324 char pam_start ();
8325 int
8326 main ()
8327 {
8328 return pam_start ();
8329 ;
8330 return 0;
8331 }
8332 _ACEOF
8333 if ac_fn_c_try_link "$LINENO"; then :
8334 ac_cv_lib_pam_pam_start=yes
8335 else
8336 ac_cv_lib_pam_pam_start=no
8337 fi
8338 rm -f core conftest.err conftest.$ac_objext \
8339 conftest$ac_exeext conftest.$ac_ext
8340 LIBS=$ac_check_lib_save_LIBS
8341 fi
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
8343 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
8344 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
8345 cat >>confdefs.h <<_ACEOF
8346 #define HAVE_LIBPAM 1
8347 _ACEOF
8348
8349 LIBS="-lpam $LIBS"
8350
8351 else
8352 enable_pam=no
8353 fi
8354
8355
8356 if test x$enable_pam = xyes; then
8357 $as_echo "#define WITH_PAM 1" >>confdefs.h
8358
8359 PAM_PROGRAM=lsh-pam-checkpw
8360 else
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pam_start not found in libpam, disabling PAM" >&5
8362 $as_echo "$as_me: WARNING: pam_start not found in libpam, disabling PAM" >&2;}
8363 fi
8364 fi
8365
8366
8367
8368
8369 if test "x$enable_gcov" = "xyes"; then
8370 CFLAGS="$CFLAGS -ftest-coverage -fprofile-arcs"
8371 $as_echo "#define WITH_GCOV 1" >>confdefs.h
8372
8373 fi
8374
8375 if test "x$enable_profiling" = "xyes"; then
8376 CFLAGS="$CFLAGS -pg"
8377 fi
8378
8379 # Checks for typedefs, structures, and compiler characteristics.
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8381 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8382 if ${ac_cv_c_const+:} false; then :
8383 $as_echo_n "(cached) " >&6
8384 else
8385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8386 /* end confdefs.h. */
8387
8388 int
8389 main ()
8390 {
8391
8392 #ifndef __cplusplus
8393 /* Ultrix mips cc rejects this sort of thing. */
8394 typedef int charset[2];
8395 const charset cs = { 0, 0 };
8396 /* SunOS 4.1.1 cc rejects this. */
8397 char const *const *pcpcc;
8398 char **ppc;
8399 /* NEC SVR4.0.2 mips cc rejects this. */
8400 struct point {int x, y;};
8401 static struct point const zero = {0,0};
8402 /* AIX XL C 1.02.0.0 rejects this.
8403 It does not let you subtract one const X* pointer from another in
8404 an arm of an if-expression whose if-part is not a constant
8405 expression */
8406 const char *g = "string";
8407 pcpcc = &g + (g ? g-g : 0);
8408 /* HPUX 7.0 cc rejects these. */
8409 ++pcpcc;
8410 ppc = (char**) pcpcc;
8411 pcpcc = (char const *const *) ppc;
8412 { /* SCO 3.2v4 cc rejects this sort of thing. */
8413 char tx;
8414 char *t = &tx;
8415 char const *s = 0 ? (char *) 0 : (char const *) 0;
8416
8417 *t++ = 0;
8418 if (s) return 0;
8419 }
8420 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8421 int x[] = {25, 17};
8422 const int *foo = &x[0];
8423 ++foo;
8424 }
8425 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8426 typedef const int *iptr;
8427 iptr p = 0;
8428 ++p;
8429 }
8430 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
8431 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8432 struct s { int j; const int *ap[3]; } bx;
8433 struct s *b = &bx; b->j = 5;
8434 }
8435 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8436 const int foo = 10;
8437 if (!foo) return 0;
8438 }
8439 return !cs[0] && !zero.x;
8440 #endif
8441
8442 ;
8443 return 0;
8444 }
8445 _ACEOF
8446 if ac_fn_c_try_compile "$LINENO"; then :
8447 ac_cv_c_const=yes
8448 else
8449 ac_cv_c_const=no
8450 fi
8451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8452 fi
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8454 $as_echo "$ac_cv_c_const" >&6; }
8455 if test $ac_cv_c_const = no; then
8456
8457 $as_echo "#define const /**/" >>confdefs.h
8458
8459 fi
8460
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
8462 $as_echo_n "checking for inline... " >&6; }
8463 if ${ac_cv_c_inline+:} false; then :
8464 $as_echo_n "(cached) " >&6
8465 else
8466 ac_cv_c_inline=no
8467 for ac_kw in inline __inline__ __inline; do
8468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8469 /* end confdefs.h. */
8470 #ifndef __cplusplus
8471 typedef int foo_t;
8472 static $ac_kw foo_t static_foo () {return 0; }
8473 $ac_kw foo_t foo () {return 0; }
8474 #endif
8475
8476 _ACEOF
8477 if ac_fn_c_try_compile "$LINENO"; then :
8478 ac_cv_c_inline=$ac_kw
8479 fi
8480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8481 test "$ac_cv_c_inline" != no && break
8482 done
8483
8484 fi
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
8486 $as_echo "$ac_cv_c_inline" >&6; }
8487
8488 case $ac_cv_c_inline in
8489 inline | yes) ;;
8490 *)
8491 case $ac_cv_c_inline in
8492 no) ac_val=;;
8493 *) ac_val=$ac_cv_c_inline;;
8494 esac
8495 cat >>confdefs.h <<_ACEOF
8496 #ifndef __cplusplus
8497 #define inline $ac_val
8498 #endif
8499 _ACEOF
8500 ;;
8501 esac
8502
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8504 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8505 if ${ac_cv_type_uid_t+:} false; then :
8506 $as_echo_n "(cached) " >&6
8507 else
8508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8509 /* end confdefs.h. */
8510 #include <sys/types.h>
8511
8512 _ACEOF
8513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8514 $EGREP "uid_t" >/dev/null 2>&1; then :
8515 ac_cv_type_uid_t=yes
8516 else
8517 ac_cv_type_uid_t=no
8518 fi
8519 rm -f conftest*
8520
8521 fi
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8523 $as_echo "$ac_cv_type_uid_t" >&6; }
8524 if test $ac_cv_type_uid_t = no; then
8525
8526 $as_echo "#define uid_t int" >>confdefs.h
8527
8528
8529 $as_echo "#define gid_t int" >>confdefs.h
8530
8531 fi
8532
8533 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8534 if test "x$ac_cv_type_size_t" = xyes; then :
8535
8536 else
8537
8538 cat >>confdefs.h <<_ACEOF
8539 #define size_t unsigned int
8540 _ACEOF
8541
8542 fi
8543
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8545 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8546 if ${ac_cv_header_time+:} false; then :
8547 $as_echo_n "(cached) " >&6
8548 else
8549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8550 /* end confdefs.h. */
8551 #include <sys/types.h>
8552 #include <sys/time.h>
8553 #include <time.h>
8554
8555 int
8556 main ()
8557 {
8558 if ((struct tm *) 0)
8559 return 0;
8560 ;
8561 return 0;
8562 }
8563 _ACEOF
8564 if ac_fn_c_try_compile "$LINENO"; then :
8565 ac_cv_header_time=yes
8566 else
8567 ac_cv_header_time=no
8568 fi
8569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8570 fi
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8572 $as_echo "$ac_cv_header_time" >&6; }
8573 if test $ac_cv_header_time = yes; then
8574
8575 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8576
8577 fi
8578
8579
8580 # Needed by the supplied memcmp.c
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8582 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8583 if ${ac_cv_c_bigendian+:} false; then :
8584 $as_echo_n "(cached) " >&6
8585 else
8586 ac_cv_c_bigendian=unknown
8587 # See if we're dealing with a universal compiler.
8588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8589 /* end confdefs.h. */
8590 #ifndef __APPLE_CC__
8591 not a universal capable compiler
8592 #endif
8593 typedef int dummy;
8594
8595 _ACEOF
8596 if ac_fn_c_try_compile "$LINENO"; then :
8597
8598 # Check for potential -arch flags. It is not universal unless
8599 # there are at least two -arch flags with different values.
8600 ac_arch=
8601 ac_prev=
8602 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8603 if test -n "$ac_prev"; then
8604 case $ac_word in
8605 i?86 | x86_64 | ppc | ppc64)
8606 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8607 ac_arch=$ac_word
8608 else
8609 ac_cv_c_bigendian=universal
8610 break
8611 fi
8612 ;;
8613 esac
8614 ac_prev=
8615 elif test "x$ac_word" = "x-arch"; then
8616 ac_prev=arch
8617 fi
8618 done
8619 fi
8620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8621 if test $ac_cv_c_bigendian = unknown; then
8622 # See if sys/param.h defines the BYTE_ORDER macro.
8623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8624 /* end confdefs.h. */
8625 #include <sys/types.h>
8626 #include <sys/param.h>
8627
8628 int
8629 main ()
8630 {
8631 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8632 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8633 && LITTLE_ENDIAN)
8634 bogus endian macros
8635 #endif
8636
8637 ;
8638 return 0;
8639 }
8640 _ACEOF
8641 if ac_fn_c_try_compile "$LINENO"; then :
8642 # It does; now see whether it defined to BIG_ENDIAN or not.
8643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8644 /* end confdefs.h. */
8645 #include <sys/types.h>
8646 #include <sys/param.h>
8647
8648 int
8649 main ()
8650 {
8651 #if BYTE_ORDER != BIG_ENDIAN
8652 not big endian
8653 #endif
8654
8655 ;
8656 return 0;
8657 }
8658 _ACEOF
8659 if ac_fn_c_try_compile "$LINENO"; then :
8660 ac_cv_c_bigendian=yes
8661 else
8662 ac_cv_c_bigendian=no
8663 fi
8664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8665 fi
8666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8667 fi
8668 if test $ac_cv_c_bigendian = unknown; then
8669 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8671 /* end confdefs.h. */
8672 #include <limits.h>
8673
8674 int
8675 main ()
8676 {
8677 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8678 bogus endian macros
8679 #endif
8680
8681 ;
8682 return 0;
8683 }
8684 _ACEOF
8685 if ac_fn_c_try_compile "$LINENO"; then :
8686 # It does; now see whether it defined to _BIG_ENDIAN or not.
8687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8688 /* end confdefs.h. */
8689 #include <limits.h>
8690
8691 int
8692 main ()
8693 {
8694 #ifndef _BIG_ENDIAN
8695 not big endian
8696 #endif
8697
8698 ;
8699 return 0;
8700 }
8701 _ACEOF
8702 if ac_fn_c_try_compile "$LINENO"; then :
8703 ac_cv_c_bigendian=yes
8704 else
8705 ac_cv_c_bigendian=no
8706 fi
8707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8708 fi
8709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8710 fi
8711 if test $ac_cv_c_bigendian = unknown; then
8712 # Compile a test program.
8713 if test "$cross_compiling" = yes; then :
8714 # Try to guess by grepping values from an object file.
8715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8716 /* end confdefs.h. */
8717 short int ascii_mm[] =
8718 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8719 short int ascii_ii[] =
8720 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8721 int use_ascii (int i) {
8722 return ascii_mm[i] + ascii_ii[i];
8723 }
8724 short int ebcdic_ii[] =
8725 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8726 short int ebcdic_mm[] =
8727 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8728 int use_ebcdic (int i) {
8729 return ebcdic_mm[i] + ebcdic_ii[i];
8730 }
8731 extern int foo;
8732
8733 int
8734 main ()
8735 {
8736 return use_ascii (foo) == use_ebcdic (foo);
8737 ;
8738 return 0;
8739 }
8740 _ACEOF
8741 if ac_fn_c_try_compile "$LINENO"; then :
8742 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8743 ac_cv_c_bigendian=yes
8744 fi
8745 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8746 if test "$ac_cv_c_bigendian" = unknown; then
8747 ac_cv_c_bigendian=no
8748 else
8749 # finding both strings is unlikely to happen, but who knows?
8750 ac_cv_c_bigendian=unknown
8751 fi
8752 fi
8753 fi
8754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8755 else
8756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8757 /* end confdefs.h. */
8758 $ac_includes_default
8759 int
8760 main ()
8761 {
8762
8763 /* Are we little or big endian? From Harbison&Steele. */
8764 union
8765 {
8766 long int l;
8767 char c[sizeof (long int)];
8768 } u;
8769 u.l = 1;
8770 return u.c[sizeof (long int) - 1] == 1;
8771
8772 ;
8773 return 0;
8774 }
8775 _ACEOF
8776 if ac_fn_c_try_run "$LINENO"; then :
8777 ac_cv_c_bigendian=no
8778 else
8779 ac_cv_c_bigendian=yes
8780 fi
8781 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8782 conftest.$ac_objext conftest.beam conftest.$ac_ext
8783 fi
8784
8785 fi
8786 fi
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8788 $as_echo "$ac_cv_c_bigendian" >&6; }
8789 case $ac_cv_c_bigendian in #(
8790 yes)
8791 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8792 ;; #(
8793 no)
8794 ;; #(
8795 universal)
8796
8797 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8798
8799 ;; #(
8800 *)
8801 as_fn_error $? "unknown endianness
8802 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8803 esac
8804
8805
8806 # FIXME: We should check that a pid_t fits in an int
8807
8808 # Checks for library functions.
8809
8810 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8811 # for constant arguments. Useless!
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
8813 $as_echo_n "checking for working alloca.h... " >&6; }
8814 if ${ac_cv_working_alloca_h+:} false; then :
8815 $as_echo_n "(cached) " >&6
8816 else
8817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8818 /* end confdefs.h. */
8819 #include <alloca.h>
8820 int
8821 main ()
8822 {
8823 char *p = (char *) alloca (2 * sizeof (int));
8824 if (p) return 0;
8825 ;
8826 return 0;
8827 }
8828 _ACEOF
8829 if ac_fn_c_try_link "$LINENO"; then :
8830 ac_cv_working_alloca_h=yes
8831 else
8832 ac_cv_working_alloca_h=no
8833 fi
8834 rm -f core conftest.err conftest.$ac_objext \
8835 conftest$ac_exeext conftest.$ac_ext
8836 fi
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
8838 $as_echo "$ac_cv_working_alloca_h" >&6; }
8839 if test $ac_cv_working_alloca_h = yes; then
8840
8841 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
8842
8843 fi
8844
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
8846 $as_echo_n "checking for alloca... " >&6; }
8847 if ${ac_cv_func_alloca_works+:} false; then :
8848 $as_echo_n "(cached) " >&6
8849 else
8850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8851 /* end confdefs.h. */
8852 #ifdef __GNUC__
8853 # define alloca __builtin_alloca
8854 #else
8855 # ifdef _MSC_VER
8856 # include <malloc.h>
8857 # define alloca _alloca
8858 # else
8859 # ifdef HAVE_ALLOCA_H
8860 # include <alloca.h>
8861 # else
8862 # ifdef _AIX
8863 #pragma alloca
8864 # else
8865 # ifndef alloca /* predefined by HP cc +Olibcalls */
8866 void *alloca (size_t);
8867 # endif
8868 # endif
8869 # endif
8870 # endif
8871 #endif
8872
8873 int
8874 main ()
8875 {
8876 char *p = (char *) alloca (1);
8877 if (p) return 0;
8878 ;
8879 return 0;
8880 }
8881 _ACEOF
8882 if ac_fn_c_try_link "$LINENO"; then :
8883 ac_cv_func_alloca_works=yes
8884 else
8885 ac_cv_func_alloca_works=no
8886 fi
8887 rm -f core conftest.err conftest.$ac_objext \
8888 conftest$ac_exeext conftest.$ac_ext
8889 fi
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
8891 $as_echo "$ac_cv_func_alloca_works" >&6; }
8892
8893 if test $ac_cv_func_alloca_works = yes; then
8894
8895 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
8896
8897 else
8898 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8899 # that cause trouble. Some versions do not even contain alloca or
8900 # contain a buggy version. If you still want to use their alloca,
8901 # use ar to extract alloca.o from them instead of compiling alloca.c.
8902
8903 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8904
8905 $as_echo "#define C_ALLOCA 1" >>confdefs.h
8906
8907
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
8909 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
8910 if ${ac_cv_os_cray+:} false; then :
8911 $as_echo_n "(cached) " >&6
8912 else
8913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8914 /* end confdefs.h. */
8915 #if defined CRAY && ! defined CRAY2
8916 webecray
8917 #else
8918 wenotbecray
8919 #endif
8920
8921 _ACEOF
8922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8923 $EGREP "webecray" >/dev/null 2>&1; then :
8924 ac_cv_os_cray=yes
8925 else
8926 ac_cv_os_cray=no
8927 fi
8928 rm -f conftest*
8929
8930 fi
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
8932 $as_echo "$ac_cv_os_cray" >&6; }
8933 if test $ac_cv_os_cray = yes; then
8934 for ac_func in _getb67 GETB67 getb67; do
8935 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8936 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8937 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8938
8939 cat >>confdefs.h <<_ACEOF
8940 #define CRAY_STACKSEG_END $ac_func
8941 _ACEOF
8942
8943 break
8944 fi
8945
8946 done
8947 fi
8948
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
8950 $as_echo_n "checking stack direction for C alloca... " >&6; }
8951 if ${ac_cv_c_stack_direction+:} false; then :
8952 $as_echo_n "(cached) " >&6
8953 else
8954 if test "$cross_compiling" = yes; then :
8955 ac_cv_c_stack_direction=0
8956 else
8957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8958 /* end confdefs.h. */
8959 $ac_includes_default
8960 int
8961 find_stack_direction (int *addr, int depth)
8962 {
8963 int dir, dummy = 0;
8964 if (! addr)
8965 addr = &dummy;
8966 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
8967 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
8968 return dir + dummy;
8969 }
8970
8971 int
8972 main (int argc, char **argv)
8973 {
8974 return find_stack_direction (0, argc + !argv + 20) < 0;
8975 }
8976 _ACEOF
8977 if ac_fn_c_try_run "$LINENO"; then :
8978 ac_cv_c_stack_direction=1
8979 else
8980 ac_cv_c_stack_direction=-1
8981 fi
8982 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8983 conftest.$ac_objext conftest.beam conftest.$ac_ext
8984 fi
8985
8986 fi
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
8988 $as_echo "$ac_cv_c_stack_direction" >&6; }
8989 cat >>confdefs.h <<_ACEOF
8990 #define STACK_DIRECTION $ac_cv_c_stack_direction
8991 _ACEOF
8992
8993
8994 fi
8995
8996 for ac_header in malloc.h
8997 do :
8998 ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
8999 if test "x$ac_cv_header_malloc_h" = xyes; then :
9000 cat >>confdefs.h <<_ACEOF
9001 #define HAVE_MALLOC_H 1
9002 _ACEOF
9003
9004 fi
9005
9006 done
9007
9008
9009 for ac_func in strerror
9010 do :
9011 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
9012 if test "x$ac_cv_func_strerror" = xyes; then :
9013 cat >>confdefs.h <<_ACEOF
9014 #define HAVE_STRERROR 1
9015 _ACEOF
9016
9017 fi
9018 done
9019
9020
9021 for ac_func in strsignal
9022 do :
9023 ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
9024 if test "x$ac_cv_func_strsignal" = xyes; then :
9025 cat >>confdefs.h <<_ACEOF
9026 #define HAVE_STRSIGNAL 1
9027 _ACEOF
9028
9029 fi
9030 done
9031
9032 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
9033 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
9034 ac_have_decl=1
9035 else
9036 ac_have_decl=0
9037 fi
9038
9039 cat >>confdefs.h <<_ACEOF
9040 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
9041 _ACEOF
9042 ac_fn_c_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "$ac_includes_default"
9043 if test "x$ac_cv_have_decl__sys_siglist" = xyes; then :
9044 ac_have_decl=1
9045 else
9046 ac_have_decl=0
9047 fi
9048
9049 cat >>confdefs.h <<_ACEOF
9050 #define HAVE_DECL__SYS_SIGLIST $ac_have_decl
9051 _ACEOF
9052
9053
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
9055 $as_echo_n "checking for working memcmp... " >&6; }
9056 if ${ac_cv_func_memcmp_working+:} false; then :
9057 $as_echo_n "(cached) " >&6
9058 else
9059 if test "$cross_compiling" = yes; then :
9060 ac_cv_func_memcmp_working=no
9061 else
9062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9063 /* end confdefs.h. */
9064 $ac_includes_default
9065 int
9066 main ()
9067 {
9068
9069 /* Some versions of memcmp are not 8-bit clean. */
9070 char c0 = '\100', c1 = '\200', c2 = '\201';
9071 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9072 return 1;
9073
9074 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9075 or more and with at least one buffer not starting on a 4-byte boundary.
9076 William Lewis provided this test program. */
9077 {
9078 char foo[21];
9079 char bar[21];
9080 int i;
9081 for (i = 0; i < 4; i++)
9082 {
9083 char *a = foo + i;
9084 char *b = bar + i;
9085 strcpy (a, "--------01111111");
9086 strcpy (b, "--------10000000");
9087 if (memcmp (a, b, 16) >= 0)
9088 return 1;
9089 }
9090 return 0;
9091 }
9092
9093 ;
9094 return 0;
9095 }
9096 _ACEOF
9097 if ac_fn_c_try_run "$LINENO"; then :
9098 ac_cv_func_memcmp_working=yes
9099 else
9100 ac_cv_func_memcmp_working=no
9101 fi
9102 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9103 conftest.$ac_objext conftest.beam conftest.$ac_ext
9104 fi
9105
9106 fi
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
9108 $as_echo "$ac_cv_func_memcmp_working" >&6; }
9109 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
9110 *" memcmp.$ac_objext "* ) ;;
9111 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
9112 ;;
9113 esac
9114
9115
9116 for ac_func in vprintf
9117 do :
9118 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
9119 if test "x$ac_cv_func_vprintf" = xyes; then :
9120 cat >>confdefs.h <<_ACEOF
9121 #define HAVE_VPRINTF 1
9122 _ACEOF
9123
9124 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
9125 if test "x$ac_cv_func__doprnt" = xyes; then :
9126
9127 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
9128
9129 fi
9130
9131 fi
9132 done
9133
9134
9135 for ac_func in select socket strtol alarm
9136 do :
9137 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9138 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9139 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9140 cat >>confdefs.h <<_ACEOF
9141 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9142 _ACEOF
9143
9144 fi
9145 done
9146
9147 for ac_func in getrusage gettimeofday
9148 do :
9149 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9150 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9151 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9152 cat >>confdefs.h <<_ACEOF
9153 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9154 _ACEOF
9155
9156 fi
9157 done
9158
9159 for ac_func in getspnam
9160 do :
9161 ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam"
9162 if test "x$ac_cv_func_getspnam" = xyes; then :
9163 cat >>confdefs.h <<_ACEOF
9164 #define HAVE_GETSPNAM 1
9165 _ACEOF
9166
9167 fi
9168 done
9169
9170 for ac_func in vsnprintf inet_aton
9171 do :
9172 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9173 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9174 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9175 cat >>confdefs.h <<_ACEOF
9176 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9177 _ACEOF
9178
9179 fi
9180 done
9181
9182 for ac_func in openpty
9183 do :
9184 ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
9185 if test "x$ac_cv_func_openpty" = xyes; then :
9186 cat >>confdefs.h <<_ACEOF
9187 #define HAVE_OPENPTY 1
9188 _ACEOF
9189
9190 fi
9191 done
9192
9193 for ac_func in cfmakeraw
9194 do :
9195 ac_fn_c_check_func "$LINENO" "cfmakeraw" "ac_cv_func_cfmakeraw"
9196 if test "x$ac_cv_func_cfmakeraw" = xyes; then :
9197 cat >>confdefs.h <<_ACEOF
9198 #define HAVE_CFMAKERAW 1
9199 _ACEOF
9200
9201 fi
9202 done
9203
9204 for ac_func in logwtmp login logout pututline pututxline updwtmp updwtmpx
9205 do :
9206 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9207 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9208 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9209 cat >>confdefs.h <<_ACEOF
9210 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9211 _ACEOF
9212
9213 fi
9214 done
9215
9216 for ac_func in getaddrinfo getnameinfo gai_strerror
9217 do :
9218 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9219 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9220 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9221 cat >>confdefs.h <<_ACEOF
9222 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9223 _ACEOF
9224
9225 fi
9226 done
9227
9228 for ac_func in setrlimit getdtablesize
9229 do :
9230 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9231 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9232 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9233 cat >>confdefs.h <<_ACEOF
9234 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9235 _ACEOF
9236
9237 fi
9238 done
9239
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
9241 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
9242 if ${ac_cv_func_getpgrp_void+:} false; then :
9243 $as_echo_n "(cached) " >&6
9244 else
9245 # Use it with a single arg.
9246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9247 /* end confdefs.h. */
9248 $ac_includes_default
9249 int
9250 main ()
9251 {
9252 getpgrp (0);
9253 ;
9254 return 0;
9255 }
9256 _ACEOF
9257 if ac_fn_c_try_compile "$LINENO"; then :
9258 ac_cv_func_getpgrp_void=no
9259 else
9260 ac_cv_func_getpgrp_void=yes
9261 fi
9262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9263
9264 fi
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
9266 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
9267 if test $ac_cv_func_getpgrp_void = yes; then
9268
9269 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
9270
9271 fi
9272
9273 for ac_func in syslog
9274 do :
9275 ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
9276 if test "x$ac_cv_func_syslog" = xyes; then :
9277 cat >>confdefs.h <<_ACEOF
9278 #define HAVE_SYSLOG 1
9279 _ACEOF
9280
9281 fi
9282 done
9283
9284
9285 # HP-UX doesn't have seteuid
9286 for ac_func in seteuid setresuid
9287 do :
9288 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9289 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9290 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9291 cat >>confdefs.h <<_ACEOF
9292 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9293 _ACEOF
9294
9295 fi
9296 done
9297
9298
9299
9300
9301 # FIXME: Is there a better way in autoconf 2.50?
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if netdb.h defines AI_NUMERICHOST" >&5
9303 $as_echo_n "checking if netdb.h defines AI_NUMERICHOST... " >&6; }
9304 if ${lsh_cv_sys_ai_numerichost+:} false; then :
9305 $as_echo_n "(cached) " >&6
9306 else
9307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9308 /* end confdefs.h. */
9309 #include <netdb.h>
9310 #ifdef AI_NUMERICHOST
9311 yes
9312 #endif
9313
9314 _ACEOF
9315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9316 $EGREP "yes" >/dev/null 2>&1; then :
9317 lsh_cv_sys_ai_numerichost=yes
9318 else
9319 lsh_cv_sys_ai_numerichost=no
9320 fi
9321 rm -f conftest*
9322
9323 fi
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lsh_cv_sys_ai_numerichost" >&5
9325 $as_echo "$lsh_cv_sys_ai_numerichost" >&6; }
9326
9327
9328 if test x$lsh_cv_sys_ai_numerichost = xyes ; then
9329 $as_echo "#define HAVE_AI_NUMERICHOST 1" >>confdefs.h
9330
9331 fi
9332
9333 for ac_func in poll
9334 do :
9335 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
9336 if test "x$ac_cv_func_poll" = xyes; then :
9337 cat >>confdefs.h <<_ACEOF
9338 #define HAVE_POLL 1
9339 _ACEOF
9340
9341 else
9342 case " $LIBOBJS " in
9343 *" jpoll.$ac_objext "* ) ;;
9344 *) LIBOBJS="$LIBOBJS jpoll.$ac_objext"
9345 ;;
9346 esac
9347
9348 fi
9349 done
9350
9351
9352 # Test if the libc includes a good enough argp.
9353 if test x$with_system_argp = xyes ; then
9354 ac_argp_save_LIBS="$LIBS"
9355 ac_argp_save_LDFLAGS="$LDFLAGS"
9356 ac_argp_ok=no
9357 # First check if we can link with argp.
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing argp_parse" >&5
9359 $as_echo_n "checking for library containing argp_parse... " >&6; }
9360 if ${ac_cv_search_argp_parse+:} false; then :
9361 $as_echo_n "(cached) " >&6
9362 else
9363 ac_func_search_save_LIBS=$LIBS
9364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9365 /* end confdefs.h. */
9366
9367 /* Override any GCC internal prototype to avoid an error.
9368 Use char because int might match the return type of a GCC
9369 builtin and then its argument prototype would still apply. */
9370 #ifdef __cplusplus
9371 extern "C"
9372 #endif
9373 char argp_parse ();
9374 int
9375 main ()
9376 {
9377 return argp_parse ();
9378 ;
9379 return 0;
9380 }
9381 _ACEOF
9382 for ac_lib in '' argp; do
9383 if test -z "$ac_lib"; then
9384 ac_res="none required"
9385 else
9386 ac_res=-l$ac_lib
9387 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9388 fi
9389 if ac_fn_c_try_link "$LINENO"; then :
9390 ac_cv_search_argp_parse=$ac_res
9391 fi
9392 rm -f core conftest.err conftest.$ac_objext \
9393 conftest$ac_exeext
9394 if ${ac_cv_search_argp_parse+:} false; then :
9395 break
9396 fi
9397 done
9398 if ${ac_cv_search_argp_parse+:} false; then :
9399
9400 else
9401 ac_cv_search_argp_parse=no
9402 fi
9403 rm conftest.$ac_ext
9404 LIBS=$ac_func_search_save_LIBS
9405 fi
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_argp_parse" >&5
9407 $as_echo "$ac_cv_search_argp_parse" >&6; }
9408 ac_res=$ac_cv_search_argp_parse
9409 if test "$ac_res" != no; then :
9410 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9411 if test $cross_compiling = no -a "x$RPATHFLAG" != x ; then
9412 ac_success=no
9413 if test "$cross_compiling" = yes; then :
9414 :
9415 else
9416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9417 /* end confdefs.h. */
9418 int main(int argc, char **argv) { return 0; }
9419 _ACEOF
9420 if ac_fn_c_try_run "$LINENO"; then :
9421 ac_success=yes
9422 else
9423 ac_success=no
9424 fi
9425 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9426 conftest.$ac_objext conftest.beam conftest.$ac_ext
9427 fi
9428
9429
9430 if test $ac_success = no ; then
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Running simple test program failed. Trying -R flags" >&5
9432 $as_echo_n "checking Running simple test program failed. Trying -R flags... " >&6; }
9433 ac_remaining_dirs=''
9434 ac_rpath_save_LDFLAGS="$LDFLAGS"
9435 for d in $RPATH_CANDIDATE_DIRS ; do
9436 if test $ac_success = yes ; then
9437 ac_remaining_dirs="$ac_remaining_dirs $d"
9438 else
9439 LDFLAGS="$RPATHFLAG$d $LDFLAGS"
9440 if test "$cross_compiling" = yes; then :
9441 :
9442 else
9443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9444 /* end confdefs.h. */
9445 int main(int argc, char **argv) { return 0; }
9446 _ACEOF
9447 if ac_fn_c_try_run "$LINENO"; then :
9448 ac_success=yes
9449 ac_rpath_save_LDFLAGS="$LDFLAGS"
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: adding $RPATHFLAG$d" >&5
9451 $as_echo "adding $RPATHFLAG$d" >&6; }
9452
9453 else
9454 ac_remaining_dirs="$ac_remaining_dirs $d"
9455 fi
9456 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9457 conftest.$ac_objext conftest.beam conftest.$ac_ext
9458 fi
9459
9460 LDFLAGS="$ac_rpath_save_LDFLAGS"
9461 fi
9462 done
9463 RPATH_CANDIDATE_DIRS=$ac_remaining_dirs
9464 fi
9465 if test $ac_success = no ; then
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9467 $as_echo "failed" >&6; }
9468 fi
9469 fi
9470
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working argp" >&5
9472 $as_echo_n "checking for working argp... " >&6; }
9473 if ${lsh_cv_lib_argp_works+:} false; then :
9474 $as_echo_n "(cached) " >&6
9475 else
9476 if test "$cross_compiling" = yes; then :
9477 lsh_cv_lib_argp_works=no
9478 else
9479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9480 /* end confdefs.h. */
9481 #include <argp.h>
9482 #include <stdlib.h>
9483
9484 static const struct argp_option
9485 options[] =
9486 {
9487 { NULL, 0, NULL, 0, NULL, 0 }
9488 };
9489
9490 struct child_state
9491 {
9492 int n;
9493 };
9494
9495 static error_t
9496 child_parser(int key, char *arg, struct argp_state *state)
9497 {
9498 struct child_state *input = (struct child_state *) state->input;
9499
9500 switch(key)
9501 {
9502 default:
9503 return ARGP_ERR_UNKNOWN;
9504 case ARGP_KEY_END:
9505 if (!input->n)
9506 input->n = 1;
9507 break;
9508 }
9509 return 0;
9510 }
9511
9512 const struct argp child_argp =
9513 {
9514 options,
9515 child_parser,
9516 NULL, NULL, NULL, NULL, NULL
9517 };
9518
9519 struct main_state
9520 {
9521 struct child_state child;
9522 int m;
9523 };
9524
9525 static error_t
9526 main_parser(int key, char *arg, struct argp_state *state)
9527 {
9528 struct main_state *input = (struct main_state *) state->input;
9529
9530 switch(key)
9531 {
9532 default:
9533 return ARGP_ERR_UNKNOWN;
9534 case ARGP_KEY_INIT:
9535 state->child_inputs[0] = &input->child;
9536 break;
9537 case ARGP_KEY_END:
9538 if (!input->m)
9539 input->m = input->child.n;
9540
9541 break;
9542 }
9543 return 0;
9544 }
9545
9546 static const struct argp_child
9547 main_children[] =
9548 {
9549 { &child_argp, 0, "", 0 },
9550 { NULL, 0, NULL, 0}
9551 };
9552
9553 static const struct argp
9554 main_argp =
9555 { options, main_parser,
9556 NULL,
9557 NULL,
9558 main_children,
9559 NULL, NULL
9560 };
9561
9562 int main(int argc, char **argv)
9563 {
9564 struct main_state input = { { 0 }, 0 };
9565 char *v[2] = { "foo", NULL };
9566
9567 argp_parse(&main_argp, 1, v, 0, NULL, &input);
9568
9569 if ( (input.m == 1) && (input.child.n == 1) )
9570 return 0;
9571 else
9572 return 1;
9573 }
9574
9575 _ACEOF
9576 if ac_fn_c_try_run "$LINENO"; then :
9577 lsh_cv_lib_argp_works=yes
9578 else
9579 lsh_cv_lib_argp_works=no
9580 fi
9581 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9582 conftest.$ac_objext conftest.beam conftest.$ac_ext
9583 fi
9584
9585 fi
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lsh_cv_lib_argp_works" >&5
9587 $as_echo "$lsh_cv_lib_argp_works" >&6; }
9588
9589 if test x$lsh_cv_lib_argp_works = xyes ; then
9590 ac_argp_ok=yes
9591 else
9592 # Reset link flags
9593 LIBS="$ac_argp_save_LIBS"
9594 LDFLAGS="$ac_argp_save_LDFLAGS"
9595 fi
9596 fi
9597
9598
9599 if test x$ac_argp_ok = xyes ; then
9600 true
9601 else
9602 with_system_argp=no
9603 fi
9604
9605 fi
9606
9607 # We don't use LIBOBJS for this, as the LIBOBJS are added to
9608 # liblsh.a, and we can't add an archive to an archive.
9609 LIBARGP=""
9610 DOTDOT_LIBARGP=""
9611 if test x$with_system_argp = xno ; then
9612 # FIXME: Perhaps it's better to use an absolute path?
9613 LIBARGP="argp/libargp.a"
9614 # Needed for linking in src/testsuite.
9615 DOTDOT_LIBARGP="../argp/libargp.a"
9616 fi
9617
9618
9619
9620
9621 # Check for broken shutdown
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working shutdown on AF_UNIX sockets" >&5
9623 $as_echo_n "checking for working shutdown on AF_UNIX sockets... " >&6; }
9624 if ${lsh_cv_func_shutdown_works_on_unix_sockets+:} false; then :
9625 $as_echo_n "(cached) " >&6
9626 else
9627
9628 if test "$cross_compiling" = yes; then :
9629 lsh_cv_func_shutdown_works_on_unix_sockets=yes
9630 else
9631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9632 /* end confdefs.h. */
9633
9634 #include <stdio.h>
9635
9636 #include <errno.h>
9637
9638 #include <sys/types.h>
9639 #include <sys/socket.h>
9640
9641 #include <signal.h>
9642
9643 #ifdef HAVE_UNISTD_H
9644 #include <unistd.h>
9645 #endif
9646
9647 /* Creates a one-way socket connection. Returns 1 on success, 0 on
9648 * failure. fds[0] is for reading, fds[1] for writing (like for the
9649 * pipe() system call). */
9650 static int make_pipe(int *fds)
9651 {
9652
9653 #ifndef SHUT_RD
9654 #define SHUT_RD 0
9655 #define SHUT_WR 1
9656 #define SHUT_RDWR 2
9657 #endif
9658
9659 if (socketpair(AF_UNIX, SOCK_STREAM, 0, fds) < 0)
9660 {
9661 fprintf(stderr, "socketpair() failed: %s\n", strerror(errno));
9662 return 0;
9663 }
9664 fprintf(stderr, "Created socket pair. Using fd:s %d <-- %d\n", fds[0], fds[1]);
9665
9666 if(shutdown(fds[0], SHUT_WR) < 0)
9667 {
9668 fprintf(stderr, "shutdown(%d, SHUT_WR) failed: %s\n",
9669 fds[0], strerror(errno));
9670 return 0;
9671 }
9672 if (shutdown(fds[1], SHUT_RD) < 0)
9673 {
9674 fprintf(stderr, "shutdown(%d, SHUT_RD) failed: %s\n",
9675 fds[1], strerror(errno));
9676 return 0;
9677 }
9678
9679 return 1;
9680 }
9681
9682 int main(int argc, char **argv)
9683 {
9684 int fds[2];
9685
9686 if (!make_pipe(fds))
9687 exit(1);
9688
9689 if (signal(SIGPIPE, SIG_IGN) == SIG_ERR)
9690 {
9691 fprintf(stderr, "signal failed.\n");
9692 exit(1);
9693 }
9694
9695 if ( (write(fds[1], "foo", 3) < 0)
9696 && (errno == EPIPE))
9697 exit(1);
9698
9699 exit(0);
9700 }
9701
9702 _ACEOF
9703 if ac_fn_c_try_run "$LINENO"; then :
9704 lsh_cv_func_shutdown_works_on_unix_sockets=yes
9705 else
9706 lsh_cv_func_shutdown_works_on_unix_sockets=no
9707 fi
9708 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9709 conftest.$ac_objext conftest.beam conftest.$ac_ext
9710 fi
9711
9712 fi
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lsh_cv_func_shutdown_works_on_unix_sockets" >&5
9714 $as_echo "$lsh_cv_func_shutdown_works_on_unix_sockets" >&6; }
9715
9716
9717 if test x$lsh_cv_func_shutdown_works_on_unix_sockets = xyes ; then
9718 $as_echo "#define SHUTDOWN_WORKS_WITH_UNIX_SOCKETS 1" >>confdefs.h
9719
9720 fi
9721
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working UNIX98 ptys" >&5
9723 $as_echo_n "checking for working UNIX98 ptys... " >&6; }
9724 if ${lsh_cv_sys_unix98_ptys+:} false; then :
9725 $as_echo_n "(cached) " >&6
9726 else
9727 if test "$cross_compiling" = yes; then :
9728 # Pessimistic default for cross compilation.
9729 lsh_cv_sys_unix98_ptys=no
9730 else
9731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9732 /* end confdefs.h. */
9733
9734 /* Try to obtain a working UNIX98-style pty master and slave */
9735 /* Based on example code from the GNU C library documentation */
9736 #include <stdlib.h> /* EXIT_FAILURE, EXIT_SUCCESS, ptsname */
9737 #include <unistd.h> /* close(2) */
9738
9739 #include <sys/types.h> /* open(2) */
9740 #include <sys/stat.h> /* - " - */
9741 #ifdef HAVE_FCNTL_H
9742 # include <fcntl.h> /* - " - */
9743 #endif
9744 #ifdef HAVE_STROPTS_H
9745 # include <stropts.h> /* isastream() */
9746 #endif
9747
9748 int main(int argc, char* argv) {
9749 int master, slave;
9750 char *name;
9751
9752 master = open("/dev/ptmx", O_RDWR); /* PTY master multiplex */
9753 if (master < 0) {
9754 exit(EXIT_FAILURE);
9755 }
9756
9757 if (grantpt(master) < 0 || unlockpt(master) < 0)
9758 goto close_master;
9759 name = ptsname(master);
9760 if (name == NULL)
9761 goto close_master;
9762
9763 slave = open(name, O_RDWR);
9764 if (slave == -1)
9765 goto close_master;
9766
9767 #ifdef HAVE_STROPTS_H
9768 if (isastream(slave))
9769 {
9770 if (ioctl(slave, I_PUSH, "ptem") < 0
9771 || ioctl(slave, I_PUSH, "ldterm") < 0)
9772 goto close_slave;
9773 }
9774 #endif
9775
9776 exit(0);
9777
9778 close_slave:
9779 close (slave);
9780
9781 close_master:
9782 close (master);
9783 exit(1);
9784 }
9785
9786 _ACEOF
9787 if ac_fn_c_try_run "$LINENO"; then :
9788 lsh_cv_sys_unix98_ptys=yes
9789 else
9790 lsh_cv_sys_unix98_ptys=no
9791 fi
9792 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9793 conftest.$ac_objext conftest.beam conftest.$ac_ext
9794 fi
9795
9796 fi
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lsh_cv_sys_unix98_ptys" >&5
9798 $as_echo "$lsh_cv_sys_unix98_ptys" >&6; }
9799
9800
9801 if test x$lsh_cv_sys_unix98_ptys = xyes; then
9802 $as_echo "#define HAVE_UNIX98_PTYS 1" >>confdefs.h
9803
9804 fi
9805
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
9807 $as_echo_n "checking for __attribute__... " >&6; }
9808 if ${lsh_cv_c_attribute+:} false; then :
9809 $as_echo_n "(cached) " >&6
9810 else
9811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9812 /* end confdefs.h. */
9813
9814 #include <stdlib.h>
9815
9816 static void foo(void) __attribute__ ((noreturn));
9817
9818 static void __attribute__ ((noreturn))
9819 foo(void)
9820 {
9821 exit(1);
9822 }
9823
9824 int
9825 main ()
9826 {
9827
9828 ;
9829 return 0;
9830 }
9831 _ACEOF
9832 if ac_fn_c_try_compile "$LINENO"; then :
9833 lsh_cv_c_attribute=yes
9834 else
9835 lsh_cv_c_attribute=no
9836 fi
9837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9838 fi
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lsh_cv_c_attribute" >&5
9840 $as_echo "$lsh_cv_c_attribute" >&6; }
9841
9842
9843 if test "x$lsh_cv_c_attribute" = "xyes"; then
9844 $as_echo "#define HAVE_GCC_ATTRIBUTE 1" >>confdefs.h
9845
9846 fi
9847
9848
9849
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD pty names" >&5
9851 $as_echo_n "checking for BSD pty names... " >&6; }
9852
9853
9854
9855
9856 # FIXME: What is most portable, tr -d '\n' or tr -d '\012' ?
9857 cat >>confdefs.h <<_ACEOF
9858 #define PTY_BSD_SCHEME_FIRST_CHARS "`ls /dev/pty* | cut -c 9-9 | uniq | tr -d '\n'`"
9859 _ACEOF
9860
9861 cat >>confdefs.h <<_ACEOF
9862 #define PTY_BSD_SCHEME_SECOND_CHARS "`ls /dev/pty* | cut -c 10-10 | sort | uniq | tr -d '\n'`"
9863 _ACEOF
9864
9865
9866 # FIXME: How can we test if the bsd scheme is likely to work?
9867
9868 $as_echo "#define PTY_BSD_SCHEME 1" >>confdefs.h
9869
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
9871 $as_echo "done" >&6; }
9872
9873 # IPv6 support
9874
9875 if test x$enable_ipv6 = xyes ; then
9876 if test x$ac_cv_func_getaddrinfo != xyes ; then
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: getaddrinfo not found. Disabling IPv6 support" >&5
9878 $as_echo "$as_me: WARNING: getaddrinfo not found. Disabling IPv6 support" >&2;}
9879 enable_ipv6=no
9880 elif test x$ac_cv_func_gai_strerror != xyes ; then
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gai_strerror not found. Disabling IPv6 support" >&5
9882 $as_echo "$as_me: WARNING: gai_strerror not found. Disabling IPv6 support" >&2;}
9883 enable_ipv6=no
9884 elif test x$lsh_cv_sys_ai_numerichost != xyes ; then
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AI_NUMERICHOST not defined. Disabling IPv6 support" >&5
9886 $as_echo "$as_me: WARNING: AI_NUMERICHOST not defined. Disabling IPv6 support" >&2;}
9887 enable_ipv6=no
9888 fi
9889 fi
9890
9891
9892 if test x$enable_ipv6 = xyes ; then
9893 $as_echo "#define WITH_IPV6 1" >>confdefs.h
9894
9895 fi
9896
9897
9898
9899 subdirs="$subdirs src/argp"
9900
9901 subdirs="$subdirs src/spki"
9902
9903 subdirs="$subdirs src/sftp"
9904
9905
9906 # Set these flags *last*, or else the test programs won't compile
9907 if test x$GCC = xyes ; then
9908 # Using -ggdb3 makes (some versions of) Redhat's gcc-2.96 dump core
9909 if "$CC" --version | grep '^2\.96$' 1>/dev/null 2>&1; then
9910 true
9911 else
9912 CFLAGS="$CFLAGS -ggdb3"
9913 fi
9914 # FIXME: It would be better to actually test if this option works and/or is needed.
9915 if "$CC" --version | grep 'gcc.* 4\.' 1>/dev/null 2>&1; then
9916 CFLAGS="$CFLAGS -Wno-pointer-sign"
9917 fi
9918 CFLAGS="$CFLAGS -Wall -W \
9919 -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes \
9920 -Wpointer-arith -Wbad-function-cast -Wnested-externs"
9921
9922 # Don't enable -Wcast-align as it results in tons of warnings in the
9923 # DES code. And when using stdio.
9924 # Don't enable -Waggregate-return, as that causes warnings for glibc
9925 # inttypes.h.
9926
9927 fi
9928
9929 BUILD_ARCH=`uname -p`
9930
9931 BUILD_OSSYS=`uname -s`
9932
9933 BUILD_OSREV=`uname -r`
9934
9935
9936 ac_config_files="$ac_config_files Makefile doc/Makefile misc/Makefile src/Makefile src/scm/Makefile src/testsuite/Makefile src/rsync/Makefile contrib/Makefile contrib/lsh.spec contrib/solpkg.sh"
9937
9938 cat >confcache <<\_ACEOF
9939 # This file is a shell script that caches the results of configure
9940 # tests run on this system so they can be shared between configure
9941 # scripts and configure runs, see configure's option --config-cache.
9942 # It is not useful on other systems. If it contains results you don't
9943 # want to keep, you may remove or edit it.
9944 #
9945 # config.status only pays attention to the cache file if you give it
9946 # the --recheck option to rerun configure.
9947 #
9948 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9949 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9950 # following values.
9951
9952 _ACEOF
9953
9954 # The following way of writing the cache mishandles newlines in values,
9955 # but we know of no workaround that is simple, portable, and efficient.
9956 # So, we kill variables containing newlines.
9957 # Ultrix sh set writes to stderr and can't be redirected directly,
9958 # and sets the high bit in the cache file unless we assign to the vars.
9959 (
9960 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9961 eval ac_val=\$$ac_var
9962 case $ac_val in #(
9963 *${as_nl}*)
9964 case $ac_var in #(
9965 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9966 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9967 esac
9968 case $ac_var in #(
9969 _ | IFS | as_nl) ;; #(
9970 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9971 *) { eval $ac_var=; unset $ac_var;} ;;
9972 esac ;;
9973 esac
9974 done
9975
9976 (set) 2>&1 |
9977 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9978 *${as_nl}ac_space=\ *)
9979 # `set' does not quote correctly, so add quotes: double-quote
9980 # substitution turns \\\\ into \\, and sed turns \\ into \.
9981 sed -n \
9982 "s/'/'\\\\''/g;
9983 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9984 ;; #(
9985 *)
9986 # `set' quotes correctly as required by POSIX, so do not add quotes.
9987 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9988 ;;
9989 esac |
9990 sort
9991 ) |
9992 sed '
9993 /^ac_cv_env_/b end
9994 t clear
9995 :clear
9996 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9997 t end
9998 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9999 :end' >>confcache
10000 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10001 if test -w "$cache_file"; then
10002 if test "x$cache_file" != "x/dev/null"; then
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10004 $as_echo "$as_me: updating cache $cache_file" >&6;}
10005 if test ! -f "$cache_file" || test -h "$cache_file"; then
10006 cat confcache >"$cache_file"
10007 else
10008 case $cache_file in #(
10009 */* | ?:*)
10010 mv -f confcache "$cache_file"$$ &&
10011 mv -f "$cache_file"$$ "$cache_file" ;; #(
10012 *)
10013 mv -f confcache "$cache_file" ;;
10014 esac
10015 fi
10016 fi
10017 else
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10019 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10020 fi
10021 fi
10022 rm -f confcache
10023
10024 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10025 # Let make expand exec_prefix.
10026 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10027
10028 DEFS=-DHAVE_CONFIG_H
10029
10030 ac_libobjs=
10031 ac_ltlibobjs=
10032 U=
10033 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10034 # 1. Remove the extension, and $U if already installed.
10035 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10036 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10037 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10038 # will be set to the directory where LIBOBJS objects are built.
10039 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10040 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10041 done
10042 LIBOBJS=$ac_libobjs
10043
10044 LTLIBOBJS=$ac_ltlibobjs
10045
10046
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
10048 $as_echo_n "checking that generated files are newer than configure... " >&6; }
10049 if test -n "$am_sleep_pid"; then
10050 # Hide warnings about reused PIDs.
10051 wait $am_sleep_pid 2>/dev/null
10052 fi
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
10054 $as_echo "done" >&6; }
10055 if test -n "$EXEEXT"; then
10056 am__EXEEXT_TRUE=
10057 am__EXEEXT_FALSE='#'
10058 else
10059 am__EXEEXT_TRUE='#'
10060 am__EXEEXT_FALSE=
10061 fi
10062
10063 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10064 as_fn_error $? "conditional \"AMDEP\" was never defined.
10065 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10066 fi
10067 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10068 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10069 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10070 fi
10071 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10072 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10073 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10074 fi
10075
10076
10077 : "${CONFIG_STATUS=./config.status}"
10078 ac_write_fail=0
10079 ac_clean_files_save=$ac_clean_files
10080 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10082 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10083 as_write_fail=0
10084 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10085 #! $SHELL
10086 # Generated by $as_me.
10087 # Run this file to recreate the current configuration.
10088 # Compiler output produced by configure, useful for debugging
10089 # configure, is in config.log if it exists.
10090
10091 debug=false
10092 ac_cs_recheck=false
10093 ac_cs_silent=false
10094
10095 SHELL=\${CONFIG_SHELL-$SHELL}
10096 export SHELL
10097 _ASEOF
10098 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10099 ## -------------------- ##
10100 ## M4sh Initialization. ##
10101 ## -------------------- ##
10102
10103 # Be more Bourne compatible
10104 DUALCASE=1; export DUALCASE # for MKS sh
10105 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10106 emulate sh
10107 NULLCMD=:
10108 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10109 # is contrary to our usage. Disable this feature.
10110 alias -g '${1+"$@"}'='"$@"'
10111 setopt NO_GLOB_SUBST
10112 else
10113 case `(set -o) 2>/dev/null` in #(
10114 *posix*) :
10115 set -o posix ;; #(
10116 *) :
10117 ;;
10118 esac
10119 fi
10120
10121
10122 as_nl='
10123 '
10124 export as_nl
10125 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10126 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10127 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10128 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10129 # Prefer a ksh shell builtin over an external printf program on Solaris,
10130 # but without wasting forks for bash or zsh.
10131 if test -z "$BASH_VERSION$ZSH_VERSION" \
10132 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10133 as_echo='print -r --'
10134 as_echo_n='print -rn --'
10135 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10136 as_echo='printf %s\n'
10137 as_echo_n='printf %s'
10138 else
10139 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10140 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10141 as_echo_n='/usr/ucb/echo -n'
10142 else
10143 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10144 as_echo_n_body='eval
10145 arg=$1;
10146 case $arg in #(
10147 *"$as_nl"*)
10148 expr "X$arg" : "X\\(.*\\)$as_nl";
10149 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10150 esac;
10151 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10152 '
10153 export as_echo_n_body
10154 as_echo_n='sh -c $as_echo_n_body as_echo'
10155 fi
10156 export as_echo_body
10157 as_echo='sh -c $as_echo_body as_echo'
10158 fi
10159
10160 # The user is always right.
10161 if test "${PATH_SEPARATOR+set}" != set; then
10162 PATH_SEPARATOR=:
10163 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10164 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10165 PATH_SEPARATOR=';'
10166 }
10167 fi
10168
10169
10170 # IFS
10171 # We need space, tab and new line, in precisely that order. Quoting is
10172 # there to prevent editors from complaining about space-tab.
10173 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10174 # splitting by setting IFS to empty value.)
10175 IFS=" "" $as_nl"
10176
10177 # Find who we are. Look in the path if we contain no directory separator.
10178 as_myself=
10179 case $0 in #((
10180 *[\\/]* ) as_myself=$0 ;;
10181 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10182 for as_dir in $PATH
10183 do
10184 IFS=$as_save_IFS
10185 test -z "$as_dir" && as_dir=.
10186 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10187 done
10188 IFS=$as_save_IFS
10189
10190 ;;
10191 esac
10192 # We did not find ourselves, most probably we were run as `sh COMMAND'
10193 # in which case we are not to be found in the path.
10194 if test "x$as_myself" = x; then
10195 as_myself=$0
10196 fi
10197 if test ! -f "$as_myself"; then
10198 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10199 exit 1
10200 fi
10201
10202 # Unset variables that we do not need and which cause bugs (e.g. in
10203 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10204 # suppresses any "Segmentation fault" message there. '((' could
10205 # trigger a bug in pdksh 5.2.14.
10206 for as_var in BASH_ENV ENV MAIL MAILPATH
10207 do eval test x\${$as_var+set} = xset \
10208 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10209 done
10210 PS1='$ '
10211 PS2='> '
10212 PS4='+ '
10213
10214 # NLS nuisances.
10215 LC_ALL=C
10216 export LC_ALL
10217 LANGUAGE=C
10218 export LANGUAGE
10219
10220 # CDPATH.
10221 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10222
10223
10224 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10225 # ----------------------------------------
10226 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10227 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10228 # script with STATUS, using 1 if that was 0.
10229 as_fn_error ()
10230 {
10231 as_status=$1; test $as_status -eq 0 && as_status=1
10232 if test "$4"; then
10233 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10234 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10235 fi
10236 $as_echo "$as_me: error: $2" >&2
10237 as_fn_exit $as_status
10238 } # as_fn_error
10239
10240
10241 # as_fn_set_status STATUS
10242 # -----------------------
10243 # Set $? to STATUS, without forking.
10244 as_fn_set_status ()
10245 {
10246 return $1
10247 } # as_fn_set_status
10248
10249 # as_fn_exit STATUS
10250 # -----------------
10251 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10252 as_fn_exit ()
10253 {
10254 set +e
10255 as_fn_set_status $1
10256 exit $1
10257 } # as_fn_exit
10258
10259 # as_fn_unset VAR
10260 # ---------------
10261 # Portably unset VAR.
10262 as_fn_unset ()
10263 {
10264 { eval $1=; unset $1;}
10265 }
10266 as_unset=as_fn_unset
10267 # as_fn_append VAR VALUE
10268 # ----------------------
10269 # Append the text in VALUE to the end of the definition contained in VAR. Take
10270 # advantage of any shell optimizations that allow amortized linear growth over
10271 # repeated appends, instead of the typical quadratic growth present in naive
10272 # implementations.
10273 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10274 eval 'as_fn_append ()
10275 {
10276 eval $1+=\$2
10277 }'
10278 else
10279 as_fn_append ()
10280 {
10281 eval $1=\$$1\$2
10282 }
10283 fi # as_fn_append
10284
10285 # as_fn_arith ARG...
10286 # ------------------
10287 # Perform arithmetic evaluation on the ARGs, and store the result in the
10288 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10289 # must be portable across $(()) and expr.
10290 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10291 eval 'as_fn_arith ()
10292 {
10293 as_val=$(( $* ))
10294 }'
10295 else
10296 as_fn_arith ()
10297 {
10298 as_val=`expr "$@" || test $? -eq 1`
10299 }
10300 fi # as_fn_arith
10301
10302
10303 if expr a : '\(a\)' >/dev/null 2>&1 &&
10304 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10305 as_expr=expr
10306 else
10307 as_expr=false
10308 fi
10309
10310 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10311 as_basename=basename
10312 else
10313 as_basename=false
10314 fi
10315
10316 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10317 as_dirname=dirname
10318 else
10319 as_dirname=false
10320 fi
10321
10322 as_me=`$as_basename -- "$0" ||
10323 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10324 X"$0" : 'X\(//\)$' \| \
10325 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10326 $as_echo X/"$0" |
10327 sed '/^.*\/\([^/][^/]*\)\/*$/{
10328 s//\1/
10329 q
10330 }
10331 /^X\/\(\/\/\)$/{
10332 s//\1/
10333 q
10334 }
10335 /^X\/\(\/\).*/{
10336 s//\1/
10337 q
10338 }
10339 s/.*/./; q'`
10340
10341 # Avoid depending upon Character Ranges.
10342 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10343 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10344 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10345 as_cr_digits='0123456789'
10346 as_cr_alnum=$as_cr_Letters$as_cr_digits
10347
10348 ECHO_C= ECHO_N= ECHO_T=
10349 case `echo -n x` in #(((((
10350 -n*)
10351 case `echo 'xy\c'` in
10352 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10353 xy) ECHO_C='\c';;
10354 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10355 ECHO_T=' ';;
10356 esac;;
10357 *)
10358 ECHO_N='-n';;
10359 esac
10360
10361 rm -f conf$$ conf$$.exe conf$$.file
10362 if test -d conf$$.dir; then
10363 rm -f conf$$.dir/conf$$.file
10364 else
10365 rm -f conf$$.dir
10366 mkdir conf$$.dir 2>/dev/null
10367 fi
10368 if (echo >conf$$.file) 2>/dev/null; then
10369 if ln -s conf$$.file conf$$ 2>/dev/null; then
10370 as_ln_s='ln -s'
10371 # ... but there are two gotchas:
10372 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10373 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10374 # In both cases, we have to default to `cp -pR'.
10375 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10376 as_ln_s='cp -pR'
10377 elif ln conf$$.file conf$$ 2>/dev/null; then
10378 as_ln_s=ln
10379 else
10380 as_ln_s='cp -pR'
10381 fi
10382 else
10383 as_ln_s='cp -pR'
10384 fi
10385 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10386 rmdir conf$$.dir 2>/dev/null
10387
10388
10389 # as_fn_mkdir_p
10390 # -------------
10391 # Create "$as_dir" as a directory, including parents if necessary.
10392 as_fn_mkdir_p ()
10393 {
10394
10395 case $as_dir in #(
10396 -*) as_dir=./$as_dir;;
10397 esac
10398 test -d "$as_dir" || eval $as_mkdir_p || {
10399 as_dirs=
10400 while :; do
10401 case $as_dir in #(
10402 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10403 *) as_qdir=$as_dir;;
10404 esac
10405 as_dirs="'$as_qdir' $as_dirs"
10406 as_dir=`$as_dirname -- "$as_dir" ||
10407 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10408 X"$as_dir" : 'X\(//\)[^/]' \| \
10409 X"$as_dir" : 'X\(//\)$' \| \
10410 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10411 $as_echo X"$as_dir" |
10412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10413 s//\1/
10414 q
10415 }
10416 /^X\(\/\/\)[^/].*/{
10417 s//\1/
10418 q
10419 }
10420 /^X\(\/\/\)$/{
10421 s//\1/
10422 q
10423 }
10424 /^X\(\/\).*/{
10425 s//\1/
10426 q
10427 }
10428 s/.*/./; q'`
10429 test -d "$as_dir" && break
10430 done
10431 test -z "$as_dirs" || eval "mkdir $as_dirs"
10432 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10433
10434
10435 } # as_fn_mkdir_p
10436 if mkdir -p . 2>/dev/null; then
10437 as_mkdir_p='mkdir -p "$as_dir"'
10438 else
10439 test -d ./-p && rmdir ./-p
10440 as_mkdir_p=false
10441 fi
10442
10443
10444 # as_fn_executable_p FILE
10445 # -----------------------
10446 # Test if FILE is an executable regular file.
10447 as_fn_executable_p ()
10448 {
10449 test -f "$1" && test -x "$1"
10450 } # as_fn_executable_p
10451 as_test_x='test -x'
10452 as_executable_p=as_fn_executable_p
10453
10454 # Sed expression to map a string onto a valid CPP name.
10455 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10456
10457 # Sed expression to map a string onto a valid variable name.
10458 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10459
10460
10461 exec 6>&1
10462 ## ----------------------------------- ##
10463 ## Main body of $CONFIG_STATUS script. ##
10464 ## ----------------------------------- ##
10465 _ASEOF
10466 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10467
10468 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10469 # Save the log message, to keep $0 and so on meaningful, and to
10470 # report actual input values of CONFIG_FILES etc. instead of their
10471 # values after options handling.
10472 ac_log="
10473 This file was extended by lsh $as_me 2.1, which was
10474 generated by GNU Autoconf 2.69. Invocation command line was
10475
10476 CONFIG_FILES = $CONFIG_FILES
10477 CONFIG_HEADERS = $CONFIG_HEADERS
10478 CONFIG_LINKS = $CONFIG_LINKS
10479 CONFIG_COMMANDS = $CONFIG_COMMANDS
10480 $ $0 $@
10481
10482 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10483 "
10484
10485 _ACEOF
10486
10487 case $ac_config_files in *"
10488 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10489 esac
10490
10491 case $ac_config_headers in *"
10492 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10493 esac
10494
10495
10496 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10497 # Files that config.status was made for.
10498 config_files="$ac_config_files"
10499 config_headers="$ac_config_headers"
10500 config_commands="$ac_config_commands"
10501
10502 _ACEOF
10503
10504 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10505 ac_cs_usage="\
10506 \`$as_me' instantiates files and other configuration actions
10507 from templates according to the current configuration. Unless the files
10508 and actions are specified as TAGs, all are instantiated by default.
10509
10510 Usage: $0 [OPTION]... [TAG]...
10511
10512 -h, --help print this help, then exit
10513 -V, --version print version number and configuration settings, then exit
10514 --config print configuration, then exit
10515 -q, --quiet, --silent
10516 do not print progress messages
10517 -d, --debug don't remove temporary files
10518 --recheck update $as_me by reconfiguring in the same conditions
10519 --file=FILE[:TEMPLATE]
10520 instantiate the configuration file FILE
10521 --header=FILE[:TEMPLATE]
10522 instantiate the configuration header FILE
10523
10524 Configuration files:
10525 $config_files
10526
10527 Configuration headers:
10528 $config_headers
10529
10530 Configuration commands:
10531 $config_commands
10532
10533 Report bugs to <[email protected]>."
10534
10535 _ACEOF
10536 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10537 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10538 ac_cs_version="\\
10539 lsh config.status 2.1
10540 configured by $0, generated by GNU Autoconf 2.69,
10541 with options \\"\$ac_cs_config\\"
10542
10543 Copyright (C) 2012 Free Software Foundation, Inc.
10544 This config.status script is free software; the Free Software Foundation
10545 gives unlimited permission to copy, distribute and modify it."
10546
10547 ac_pwd='$ac_pwd'
10548 srcdir='$srcdir'
10549 INSTALL='$INSTALL'
10550 MKDIR_P='$MKDIR_P'
10551 AWK='$AWK'
10552 test -n "\$AWK" || AWK=awk
10553 _ACEOF
10554
10555 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10556 # The default lists apply if the user does not specify any file.
10557 ac_need_defaults=:
10558 while test $# != 0
10559 do
10560 case $1 in
10561 --*=?*)
10562 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10563 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10564 ac_shift=:
10565 ;;
10566 --*=)
10567 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10568 ac_optarg=
10569 ac_shift=:
10570 ;;
10571 *)
10572 ac_option=$1
10573 ac_optarg=$2
10574 ac_shift=shift
10575 ;;
10576 esac
10577
10578 case $ac_option in
10579 # Handling of the options.
10580 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10581 ac_cs_recheck=: ;;
10582 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10583 $as_echo "$ac_cs_version"; exit ;;
10584 --config | --confi | --conf | --con | --co | --c )
10585 $as_echo "$ac_cs_config"; exit ;;
10586 --debug | --debu | --deb | --de | --d | -d )
10587 debug=: ;;
10588 --file | --fil | --fi | --f )
10589 $ac_shift
10590 case $ac_optarg in
10591 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10592 '') as_fn_error $? "missing file argument" ;;
10593 esac
10594 as_fn_append CONFIG_FILES " '$ac_optarg'"
10595 ac_need_defaults=false;;
10596 --header | --heade | --head | --hea )
10597 $ac_shift
10598 case $ac_optarg in
10599 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10600 esac
10601 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10602 ac_need_defaults=false;;
10603 --he | --h)
10604 # Conflict between --help and --header
10605 as_fn_error $? "ambiguous option: \`$1'
10606 Try \`$0 --help' for more information.";;
10607 --help | --hel | -h )
10608 $as_echo "$ac_cs_usage"; exit ;;
10609 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10610 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10611 ac_cs_silent=: ;;
10612
10613 # This is an error.
10614 -*) as_fn_error $? "unrecognized option: \`$1'
10615 Try \`$0 --help' for more information." ;;
10616
10617 *) as_fn_append ac_config_targets " $1"
10618 ac_need_defaults=false ;;
10619
10620 esac
10621 shift
10622 done
10623
10624 ac_configure_extra_args=
10625
10626 if $ac_cs_silent; then
10627 exec 6>/dev/null
10628 ac_configure_extra_args="$ac_configure_extra_args --silent"
10629 fi
10630
10631 _ACEOF
10632 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10633 if \$ac_cs_recheck; then
10634 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10635 shift
10636 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10637 CONFIG_SHELL='$SHELL'
10638 export CONFIG_SHELL
10639 exec "\$@"
10640 fi
10641
10642 _ACEOF
10643 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10644 exec 5>>config.log
10645 {
10646 echo
10647 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10648 ## Running $as_me. ##
10649 _ASBOX
10650 $as_echo "$ac_log"
10651 } >&5
10652
10653 _ACEOF
10654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10655 #
10656 # INIT-COMMANDS
10657 #
10658 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10659
10660 _ACEOF
10661
10662 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10663
10664 # Handling of arguments.
10665 for ac_config_target in $ac_config_targets
10666 do
10667 case $ac_config_target in
10668 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10669 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10670 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10671 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10672 "misc/Makefile") CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;;
10673 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10674 "src/scm/Makefile") CONFIG_FILES="$CONFIG_FILES src/scm/Makefile" ;;
10675 "src/testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES src/testsuite/Makefile" ;;
10676 "src/rsync/Makefile") CONFIG_FILES="$CONFIG_FILES src/rsync/Makefile" ;;
10677 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
10678 "contrib/lsh.spec") CONFIG_FILES="$CONFIG_FILES contrib/lsh.spec" ;;
10679 "contrib/solpkg.sh") CONFIG_FILES="$CONFIG_FILES contrib/solpkg.sh" ;;
10680
10681 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10682 esac
10683 done
10684
10685
10686 # If the user did not use the arguments to specify the items to instantiate,
10687 # then the envvar interface is used. Set only those that are not.
10688 # We use the long form for the default assignment because of an extremely
10689 # bizarre bug on SunOS 4.1.3.
10690 if $ac_need_defaults; then
10691 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10692 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10693 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10694 fi
10695
10696 # Have a temporary directory for convenience. Make it in the build tree
10697 # simply because there is no reason against having it here, and in addition,
10698 # creating and moving files from /tmp can sometimes cause problems.
10699 # Hook for its removal unless debugging.
10700 # Note that there is a small window in which the directory will not be cleaned:
10701 # after its creation but before its name has been assigned to `$tmp'.
10702 $debug ||
10703 {
10704 tmp= ac_tmp=
10705 trap 'exit_status=$?
10706 : "${ac_tmp:=$tmp}"
10707 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10708 ' 0
10709 trap 'as_fn_exit 1' 1 2 13 15
10710 }
10711 # Create a (secure) tmp directory for tmp files.
10712
10713 {
10714 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10715 test -d "$tmp"
10716 } ||
10717 {
10718 tmp=./conf$$-$RANDOM
10719 (umask 077 && mkdir "$tmp")
10720 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10721 ac_tmp=$tmp
10722
10723 # Set up the scripts for CONFIG_FILES section.
10724 # No need to generate them if there are no CONFIG_FILES.
10725 # This happens for instance with `./config.status config.h'.
10726 if test -n "$CONFIG_FILES"; then
10727
10728
10729 ac_cr=`echo X | tr X '\015'`
10730 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10731 # But we know of no other shell where ac_cr would be empty at this
10732 # point, so we can use a bashism as a fallback.
10733 if test "x$ac_cr" = x; then
10734 eval ac_cr=\$\'\\r\'
10735 fi
10736 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10737 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10738 ac_cs_awk_cr='\\r'
10739 else
10740 ac_cs_awk_cr=$ac_cr
10741 fi
10742
10743 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10744 _ACEOF
10745
10746
10747 {
10748 echo "cat >conf$$subs.awk <<_ACEOF" &&
10749 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10750 echo "_ACEOF"
10751 } >conf$$subs.sh ||
10752 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10753 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10754 ac_delim='%!_!# '
10755 for ac_last_try in false false false false false :; do
10756 . ./conf$$subs.sh ||
10757 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10758
10759 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10760 if test $ac_delim_n = $ac_delim_num; then
10761 break
10762 elif $ac_last_try; then
10763 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10764 else
10765 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10766 fi
10767 done
10768 rm -f conf$$subs.sh
10769
10770 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10771 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10772 _ACEOF
10773 sed -n '
10774 h
10775 s/^/S["/; s/!.*/"]=/
10776 p
10777 g
10778 s/^[^!]*!//
10779 :repl
10780 t repl
10781 s/'"$ac_delim"'$//
10782 t delim
10783 :nl
10784 h
10785 s/\(.\{148\}\)..*/\1/
10786 t more1
10787 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10788 p
10789 n
10790 b repl
10791 :more1
10792 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10793 p
10794 g
10795 s/.\{148\}//
10796 t nl
10797 :delim
10798 h
10799 s/\(.\{148\}\)..*/\1/
10800 t more2
10801 s/["\\]/\\&/g; s/^/"/; s/$/"/
10802 p
10803 b
10804 :more2
10805 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10806 p
10807 g
10808 s/.\{148\}//
10809 t delim
10810 ' <conf$$subs.awk | sed '
10811 /^[^""]/{
10812 N
10813 s/\n//
10814 }
10815 ' >>$CONFIG_STATUS || ac_write_fail=1
10816 rm -f conf$$subs.awk
10817 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10818 _ACAWK
10819 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10820 for (key in S) S_is_set[key] = 1
10821 FS = ""
10822
10823 }
10824 {
10825 line = $ 0
10826 nfields = split(line, field, "@")
10827 substed = 0
10828 len = length(field[1])
10829 for (i = 2; i < nfields; i++) {
10830 key = field[i]
10831 keylen = length(key)
10832 if (S_is_set[key]) {
10833 value = S[key]
10834 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10835 len += length(value) + length(field[++i])
10836 substed = 1
10837 } else
10838 len += 1 + keylen
10839 }
10840
10841 print line
10842 }
10843
10844 _ACAWK
10845 _ACEOF
10846 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10847 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10848 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10849 else
10850 cat
10851 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10852 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10853 _ACEOF
10854
10855 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10856 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10857 # trailing colons and then remove the whole line if VPATH becomes empty
10858 # (actually we leave an empty line to preserve line numbers).
10859 if test "x$srcdir" = x.; then
10860 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10861 h
10862 s///
10863 s/^/:/
10864 s/[ ]*$/:/
10865 s/:\$(srcdir):/:/g
10866 s/:\${srcdir}:/:/g
10867 s/:@srcdir@:/:/g
10868 s/^:*//
10869 s/:*$//
10870 x
10871 s/\(=[ ]*\).*/\1/
10872 G
10873 s/\n//
10874 s/^[^=]*=[ ]*$//
10875 }'
10876 fi
10877
10878 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10879 fi # test -n "$CONFIG_FILES"
10880
10881 # Set up the scripts for CONFIG_HEADERS section.
10882 # No need to generate them if there are no CONFIG_HEADERS.
10883 # This happens for instance with `./config.status Makefile'.
10884 if test -n "$CONFIG_HEADERS"; then
10885 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
10886 BEGIN {
10887 _ACEOF
10888
10889 # Transform confdefs.h into an awk script `defines.awk', embedded as
10890 # here-document in config.status, that substitutes the proper values into
10891 # config.h.in to produce config.h.
10892
10893 # Create a delimiter string that does not exist in confdefs.h, to ease
10894 # handling of long lines.
10895 ac_delim='%!_!# '
10896 for ac_last_try in false false :; do
10897 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10898 if test -z "$ac_tt"; then
10899 break
10900 elif $ac_last_try; then
10901 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
10902 else
10903 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10904 fi
10905 done
10906
10907 # For the awk script, D is an array of macro values keyed by name,
10908 # likewise P contains macro parameters if any. Preserve backslash
10909 # newline sequences.
10910
10911 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10912 sed -n '
10913 s/.\{148\}/&'"$ac_delim"'/g
10914 t rset
10915 :rset
10916 s/^[ ]*#[ ]*define[ ][ ]*/ /
10917 t def
10918 d
10919 :def
10920 s/\\$//
10921 t bsnl
10922 s/["\\]/\\&/g
10923 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10924 D["\1"]=" \3"/p
10925 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10926 d
10927 :bsnl
10928 s/["\\]/\\&/g
10929 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10930 D["\1"]=" \3\\\\\\n"\\/p
10931 t cont
10932 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10933 t cont
10934 d
10935 :cont
10936 n
10937 s/.\{148\}/&'"$ac_delim"'/g
10938 t clear
10939 :clear
10940 s/\\$//
10941 t bsnlc
10942 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10943 d
10944 :bsnlc
10945 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10946 b cont
10947 ' <confdefs.h | sed '
10948 s/'"$ac_delim"'/"\\\
10949 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10950
10951 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10952 for (key in D) D_is_set[key] = 1
10953 FS = ""
10954 }
10955 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10956 line = \$ 0
10957 split(line, arg, " ")
10958 if (arg[1] == "#") {
10959 defundef = arg[2]
10960 mac1 = arg[3]
10961 } else {
10962 defundef = substr(arg[1], 2)
10963 mac1 = arg[2]
10964 }
10965 split(mac1, mac2, "(") #)
10966 macro = mac2[1]
10967 prefix = substr(line, 1, index(line, defundef) - 1)
10968 if (D_is_set[macro]) {
10969 # Preserve the white space surrounding the "#".
10970 print prefix "define", macro P[macro] D[macro]
10971 next
10972 } else {
10973 # Replace #undef with comments. This is necessary, for example,
10974 # in the case of _POSIX_SOURCE, which is predefined and required
10975 # on some systems where configure will not decide to define it.
10976 if (defundef == "undef") {
10977 print "/*", prefix defundef, macro, "*/"
10978 next
10979 }
10980 }
10981 }
10982 { print }
10983 _ACAWK
10984 _ACEOF
10985 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10986 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10987 fi # test -n "$CONFIG_HEADERS"
10988
10989
10990 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10991 shift
10992 for ac_tag
10993 do
10994 case $ac_tag in
10995 :[FHLC]) ac_mode=$ac_tag; continue;;
10996 esac
10997 case $ac_mode$ac_tag in
10998 :[FHL]*:*);;
10999 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11000 :[FH]-) ac_tag=-:-;;
11001 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11002 esac
11003 ac_save_IFS=$IFS
11004 IFS=:
11005 set x $ac_tag
11006 IFS=$ac_save_IFS
11007 shift
11008 ac_file=$1
11009 shift
11010
11011 case $ac_mode in
11012 :L) ac_source=$1;;
11013 :[FH])
11014 ac_file_inputs=
11015 for ac_f
11016 do
11017 case $ac_f in
11018 -) ac_f="$ac_tmp/stdin";;
11019 *) # Look for the file first in the build tree, then in the source tree
11020 # (if the path is not absolute). The absolute path cannot be DOS-style,
11021 # because $ac_f cannot contain `:'.
11022 test -f "$ac_f" ||
11023 case $ac_f in
11024 [\\/$]*) false;;
11025 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11026 esac ||
11027 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11028 esac
11029 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11030 as_fn_append ac_file_inputs " '$ac_f'"
11031 done
11032
11033 # Let's still pretend it is `configure' which instantiates (i.e., don't
11034 # use $as_me), people would be surprised to read:
11035 # /* config.h. Generated by config.status. */
11036 configure_input='Generated from '`
11037 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11038 `' by configure.'
11039 if test x"$ac_file" != x-; then
11040 configure_input="$ac_file. $configure_input"
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11042 $as_echo "$as_me: creating $ac_file" >&6;}
11043 fi
11044 # Neutralize special characters interpreted by sed in replacement strings.
11045 case $configure_input in #(
11046 *\&* | *\|* | *\\* )
11047 ac_sed_conf_input=`$as_echo "$configure_input" |
11048 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11049 *) ac_sed_conf_input=$configure_input;;
11050 esac
11051
11052 case $ac_tag in
11053 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11054 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11055 esac
11056 ;;
11057 esac
11058
11059 ac_dir=`$as_dirname -- "$ac_file" ||
11060 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11061 X"$ac_file" : 'X\(//\)[^/]' \| \
11062 X"$ac_file" : 'X\(//\)$' \| \
11063 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11064 $as_echo X"$ac_file" |
11065 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11066 s//\1/
11067 q
11068 }
11069 /^X\(\/\/\)[^/].*/{
11070 s//\1/
11071 q
11072 }
11073 /^X\(\/\/\)$/{
11074 s//\1/
11075 q
11076 }
11077 /^X\(\/\).*/{
11078 s//\1/
11079 q
11080 }
11081 s/.*/./; q'`
11082 as_dir="$ac_dir"; as_fn_mkdir_p
11083 ac_builddir=.
11084
11085 case "$ac_dir" in
11086 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11087 *)
11088 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11089 # A ".." for each directory in $ac_dir_suffix.
11090 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11091 case $ac_top_builddir_sub in
11092 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11093 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11094 esac ;;
11095 esac
11096 ac_abs_top_builddir=$ac_pwd
11097 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11098 # for backward compatibility:
11099 ac_top_builddir=$ac_top_build_prefix
11100
11101 case $srcdir in
11102 .) # We are building in place.
11103 ac_srcdir=.
11104 ac_top_srcdir=$ac_top_builddir_sub
11105 ac_abs_top_srcdir=$ac_pwd ;;
11106 [\\/]* | ?:[\\/]* ) # Absolute name.
11107 ac_srcdir=$srcdir$ac_dir_suffix;
11108 ac_top_srcdir=$srcdir
11109 ac_abs_top_srcdir=$srcdir ;;
11110 *) # Relative name.
11111 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11112 ac_top_srcdir=$ac_top_build_prefix$srcdir
11113 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11114 esac
11115 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11116
11117
11118 case $ac_mode in
11119 :F)
11120 #
11121 # CONFIG_FILE
11122 #
11123
11124 case $INSTALL in
11125 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11126 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11127 esac
11128 ac_MKDIR_P=$MKDIR_P
11129 case $MKDIR_P in
11130 [\\/$]* | ?:[\\/]* ) ;;
11131 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11132 esac
11133 _ACEOF
11134
11135 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11136 # If the template does not know about datarootdir, expand it.
11137 # FIXME: This hack should be removed a few years after 2.60.
11138 ac_datarootdir_hack=; ac_datarootdir_seen=
11139 ac_sed_dataroot='
11140 /datarootdir/ {
11141 p
11142 q
11143 }
11144 /@datadir@/p
11145 /@docdir@/p
11146 /@infodir@/p
11147 /@localedir@/p
11148 /@mandir@/p'
11149 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11150 *datarootdir*) ac_datarootdir_seen=yes;;
11151 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11153 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11154 _ACEOF
11155 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11156 ac_datarootdir_hack='
11157 s&@datadir@&$datadir&g
11158 s&@docdir@&$docdir&g
11159 s&@infodir@&$infodir&g
11160 s&@localedir@&$localedir&g
11161 s&@mandir@&$mandir&g
11162 s&\\\${datarootdir}&$datarootdir&g' ;;
11163 esac
11164 _ACEOF
11165
11166 # Neutralize VPATH when `$srcdir' = `.'.
11167 # Shell code in configure.ac might set extrasub.
11168 # FIXME: do we really want to maintain this feature?
11169 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11170 ac_sed_extra="$ac_vpsub
11171 $extrasub
11172 _ACEOF
11173 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11174 :t
11175 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11176 s|@configure_input@|$ac_sed_conf_input|;t t
11177 s&@top_builddir@&$ac_top_builddir_sub&;t t
11178 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11179 s&@srcdir@&$ac_srcdir&;t t
11180 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11181 s&@top_srcdir@&$ac_top_srcdir&;t t
11182 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11183 s&@builddir@&$ac_builddir&;t t
11184 s&@abs_builddir@&$ac_abs_builddir&;t t
11185 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11186 s&@INSTALL@&$ac_INSTALL&;t t
11187 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11188 $ac_datarootdir_hack
11189 "
11190 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11191 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11192
11193 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11194 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11195 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11196 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11198 which seems to be undefined. Please make sure it is defined" >&5
11199 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11200 which seems to be undefined. Please make sure it is defined" >&2;}
11201
11202 rm -f "$ac_tmp/stdin"
11203 case $ac_file in
11204 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11205 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11206 esac \
11207 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11208 ;;
11209 :H)
11210 #
11211 # CONFIG_HEADER
11212 #
11213 if test x"$ac_file" != x-; then
11214 {
11215 $as_echo "/* $configure_input */" \
11216 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11217 } >"$ac_tmp/config.h" \
11218 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11219 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11221 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11222 else
11223 rm -f "$ac_file"
11224 mv "$ac_tmp/config.h" "$ac_file" \
11225 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11226 fi
11227 else
11228 $as_echo "/* $configure_input */" \
11229 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11230 || as_fn_error $? "could not create -" "$LINENO" 5
11231 fi
11232 # Compute "$ac_file"'s index in $config_headers.
11233 _am_arg="$ac_file"
11234 _am_stamp_count=1
11235 for _am_header in $config_headers :; do
11236 case $_am_header in
11237 $_am_arg | $_am_arg:* )
11238 break ;;
11239 * )
11240 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11241 esac
11242 done
11243 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11244 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11245 X"$_am_arg" : 'X\(//\)[^/]' \| \
11246 X"$_am_arg" : 'X\(//\)$' \| \
11247 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11248 $as_echo X"$_am_arg" |
11249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11250 s//\1/
11251 q
11252 }
11253 /^X\(\/\/\)[^/].*/{
11254 s//\1/
11255 q
11256 }
11257 /^X\(\/\/\)$/{
11258 s//\1/
11259 q
11260 }
11261 /^X\(\/\).*/{
11262 s//\1/
11263 q
11264 }
11265 s/.*/./; q'`/stamp-h$_am_stamp_count
11266 ;;
11267
11268 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11269 $as_echo "$as_me: executing $ac_file commands" >&6;}
11270 ;;
11271 esac
11272
11273
11274 case $ac_file$ac_mode in
11275 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11276 # Older Autoconf quotes --file arguments for eval, but not when files
11277 # are listed without --file. Let's play safe and only enable the eval
11278 # if we detect the quoting.
11279 case $CONFIG_FILES in
11280 *\'*) eval set x "$CONFIG_FILES" ;;
11281 *) set x $CONFIG_FILES ;;
11282 esac
11283 shift
11284 for mf
11285 do
11286 # Strip MF so we end up with the name of the file.
11287 mf=`echo "$mf" | sed -e 's/:.*$//'`
11288 # Check whether this is an Automake generated Makefile or not.
11289 # We used to match only the files named 'Makefile.in', but
11290 # some people rename them; so instead we look at the file content.
11291 # Grep'ing the first line is not enough: some people post-process
11292 # each Makefile.in and add a new line on top of each file to say so.
11293 # Grep'ing the whole file is not good either: AIX grep has a line
11294 # limit of 2048, but all sed's we know have understand at least 4000.
11295 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11296 dirpart=`$as_dirname -- "$mf" ||
11297 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11298 X"$mf" : 'X\(//\)[^/]' \| \
11299 X"$mf" : 'X\(//\)$' \| \
11300 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11301 $as_echo X"$mf" |
11302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11303 s//\1/
11304 q
11305 }
11306 /^X\(\/\/\)[^/].*/{
11307 s//\1/
11308 q
11309 }
11310 /^X\(\/\/\)$/{
11311 s//\1/
11312 q
11313 }
11314 /^X\(\/\).*/{
11315 s//\1/
11316 q
11317 }
11318 s/.*/./; q'`
11319 else
11320 continue
11321 fi
11322 # Extract the definition of DEPDIR, am__include, and am__quote
11323 # from the Makefile without running 'make'.
11324 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11325 test -z "$DEPDIR" && continue
11326 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11327 test -z "$am__include" && continue
11328 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11329 # Find all dependency output files, they are included files with
11330 # $(DEPDIR) in their names. We invoke sed twice because it is the
11331 # simplest approach to changing $(DEPDIR) to its actual value in the
11332 # expansion.
11333 for file in `sed -n "
11334 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11335 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
11336 # Make sure the directory exists.
11337 test -f "$dirpart/$file" && continue
11338 fdir=`$as_dirname -- "$file" ||
11339 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11340 X"$file" : 'X\(//\)[^/]' \| \
11341 X"$file" : 'X\(//\)$' \| \
11342 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11343 $as_echo X"$file" |
11344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11345 s//\1/
11346 q
11347 }
11348 /^X\(\/\/\)[^/].*/{
11349 s//\1/
11350 q
11351 }
11352 /^X\(\/\/\)$/{
11353 s//\1/
11354 q
11355 }
11356 /^X\(\/\).*/{
11357 s//\1/
11358 q
11359 }
11360 s/.*/./; q'`
11361 as_dir=$dirpart/$fdir; as_fn_mkdir_p
11362 # echo "creating $dirpart/$file"
11363 echo '# dummy' > "$dirpart/$file"
11364 done
11365 done
11366 }
11367 ;;
11368
11369 esac
11370 done # for ac_tag
11371
11372
11373 as_fn_exit 0
11374 _ACEOF
11375 ac_clean_files=$ac_clean_files_save
11376
11377 test $ac_write_fail = 0 ||
11378 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11379
11380
11381 # configure is writing to config.log, and then calls config.status.
11382 # config.status does its own redirection, appending to config.log.
11383 # Unfortunately, on DOS this fails, as config.log is still kept open
11384 # by configure, so config.status won't be able to write to it; its
11385 # output is simply discarded. So we exec the FD to /dev/null,
11386 # effectively closing config.log, so it can be properly (re)opened and
11387 # appended to by config.status. When coming back to configure, we
11388 # need to make the FD available again.
11389 if test "$no_create" != yes; then
11390 ac_cs_success=:
11391 ac_config_status_args=
11392 test "$silent" = yes &&
11393 ac_config_status_args="$ac_config_status_args --quiet"
11394 exec 5>/dev/null
11395 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11396 exec 5>>config.log
11397 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11398 # would make configure fail if this is the last instruction.
11399 $ac_cs_success || as_fn_exit 1
11400 fi
11401
11402 #
11403 # CONFIG_SUBDIRS section.
11404 #
11405 if test "$no_recursion" != yes; then
11406
11407 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
11408 # so they do not pile up.
11409 ac_sub_configure_args=
11410 ac_prev=
11411 eval "set x $ac_configure_args"
11412 shift
11413 for ac_arg
11414 do
11415 if test -n "$ac_prev"; then
11416 ac_prev=
11417 continue
11418 fi
11419 case $ac_arg in
11420 -cache-file | --cache-file | --cache-fil | --cache-fi \
11421 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
11422 ac_prev=cache_file ;;
11423 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
11424 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
11425 | --c=*)
11426 ;;
11427 --config-cache | -C)
11428 ;;
11429 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
11430 ac_prev=srcdir ;;
11431 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
11432 ;;
11433 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
11434 ac_prev=prefix ;;
11435 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
11436 ;;
11437 --disable-option-checking)
11438 ;;
11439 *)
11440 case $ac_arg in
11441 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
11442 esac
11443 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
11444 esac
11445 done
11446
11447 # Always prepend --prefix to ensure using the same prefix
11448 # in subdir configurations.
11449 ac_arg="--prefix=$prefix"
11450 case $ac_arg in
11451 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
11452 esac
11453 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
11454
11455 # Pass --silent
11456 if test "$silent" = yes; then
11457 ac_sub_configure_args="--silent $ac_sub_configure_args"
11458 fi
11459
11460 # Always prepend --disable-option-checking to silence warnings, since
11461 # different subdirs can have different --enable and --with options.
11462 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
11463
11464 ac_popdir=`pwd`
11465 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
11466
11467 # Do not complain, so a configure script can configure whichever
11468 # parts of a large source tree are present.
11469 test -d "$srcdir/$ac_dir" || continue
11470
11471 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
11472 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
11473 $as_echo "$ac_msg" >&6
11474 as_dir="$ac_dir"; as_fn_mkdir_p
11475 ac_builddir=.
11476
11477 case "$ac_dir" in
11478 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11479 *)
11480 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11481 # A ".." for each directory in $ac_dir_suffix.
11482 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11483 case $ac_top_builddir_sub in
11484 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11485 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11486 esac ;;
11487 esac
11488 ac_abs_top_builddir=$ac_pwd
11489 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11490 # for backward compatibility:
11491 ac_top_builddir=$ac_top_build_prefix
11492
11493 case $srcdir in
11494 .) # We are building in place.
11495 ac_srcdir=.
11496 ac_top_srcdir=$ac_top_builddir_sub
11497 ac_abs_top_srcdir=$ac_pwd ;;
11498 [\\/]* | ?:[\\/]* ) # Absolute name.
11499 ac_srcdir=$srcdir$ac_dir_suffix;
11500 ac_top_srcdir=$srcdir
11501 ac_abs_top_srcdir=$srcdir ;;
11502 *) # Relative name.
11503 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11504 ac_top_srcdir=$ac_top_build_prefix$srcdir
11505 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11506 esac
11507 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11508
11509
11510 cd "$ac_dir"
11511
11512 # Check for guested configure; otherwise get Cygnus style configure.
11513 if test -f "$ac_srcdir/configure.gnu"; then
11514 ac_sub_configure=$ac_srcdir/configure.gnu
11515 elif test -f "$ac_srcdir/configure"; then
11516 ac_sub_configure=$ac_srcdir/configure
11517 elif test -f "$ac_srcdir/configure.in"; then
11518 # This should be Cygnus configure.
11519 ac_sub_configure=$ac_aux_dir/configure
11520 else
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
11522 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
11523 ac_sub_configure=
11524 fi
11525
11526 # The recursion is here.
11527 if test -n "$ac_sub_configure"; then
11528 # Make the cache file name correct relative to the subdirectory.
11529 case $cache_file in
11530 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
11531 *) # Relative name.
11532 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
11533 esac
11534
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
11536 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
11537 # The eval makes quoting arguments work.
11538 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
11539 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
11540 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
11541 fi
11542
11543 cd "$ac_popdir"
11544 done
11545 fi
11546 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11548 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11549 fi
11550