Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
204 fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225 fi
226 fi
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell [email protected] about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271 fi
272 exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290 { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299 return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378 else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395 else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509 *)
510 ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
533 fi
534 else
535 as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
584
585 ac_unique_file="ncrack.cc"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 # include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
621
622 enable_option_checking=no
623 ac_subst_vars='LTLIBOBJS
624 LIBOBJS
625 OPENSSH_LIB
626 OPENSSHLIB_BUILD
627 OPENSSHLIB_DIR
628 MODULES_OBJS
629 MODULES_SRCS
630 MODULES_BUILD
631 LIBNSOCK_LIBS
632 NSOCK_BUILD
633 NSOCKDIR
634 subdirs
635 LIBNBASE_LIBS
636 NBASE_BUILD
637 NBASEDIR
638 OPENSSL_LIBS
639 EGREP
640 GREP
641 CPP
642 INSTALL_DATA
643 INSTALL_SCRIPT
644 INSTALL_PROGRAM
645 ac_ct_CXX
646 CXXFLAGS
647 CXX
648 OBJEXT
649 EXEEXT
650 ac_ct_CC
651 CPPFLAGS
652 LDFLAGS
653 CFLAGS
654 CC
655 host_os
656 host_vendor
657 host_cpu
658 host
659 build_os
660 build_vendor
661 build_cpu
662 build
663 STRIP
664 target_alias
665 host_alias
666 build_alias
667 LIBS
668 ECHO_T
669 ECHO_N
670 ECHO_C
671 DEFS
672 mandir
673 localedir
674 libdir
675 psdir
676 pdfdir
677 dvidir
678 htmldir
679 infodir
680 docdir
681 oldincludedir
682 includedir
683 runstatedir
684 localstatedir
685 sharedstatedir
686 sysconfdir
687 datadir
688 datarootdir
689 libexecdir
690 sbindir
691 bindir
692 program_transform_name
693 prefix
694 exec_prefix
695 PACKAGE_URL
696 PACKAGE_BUGREPORT
697 PACKAGE_STRING
698 PACKAGE_VERSION
699 PACKAGE_TARNAME
700 PACKAGE_NAME
701 PATH_SEPARATOR
702 SHELL'
703 ac_subst_files=''
704 ac_user_opts='
705 enable_option_checking
706 with_localdirs
707 with_openssl
708 with_libnbase
709 with_libnsock
710 with_libopenssh
711 '
712 ac_precious_vars='build_alias
713 host_alias
714 target_alias
715 CC
716 CFLAGS
717 LDFLAGS
718 LIBS
719 CPPFLAGS
720 CXX
721 CXXFLAGS
722 CCC
723 CPP'
724 ac_subdirs_all='nbase
725 nsock/src
726 opensshlib'
727
728 # Initialize some variables set by options.
729 ac_init_help=
730 ac_init_version=false
731 ac_unrecognized_opts=
732 ac_unrecognized_sep=
733 # The variables have the same names as the options, with
734 # dashes changed to underlines.
735 cache_file=/dev/null
736 exec_prefix=NONE
737 no_create=
738 no_recursion=
739 prefix=NONE
740 program_prefix=NONE
741 program_suffix=NONE
742 program_transform_name=s,x,x,
743 silent=
744 site=
745 srcdir=
746 verbose=
747 x_includes=NONE
748 x_libraries=NONE
749
750 # Installation directory options.
751 # These are left unexpanded so users can "make install exec_prefix=/foo"
752 # and all the variables that are supposed to be based on exec_prefix
753 # by default will actually change.
754 # Use braces instead of parens because sh, perl, etc. also accept them.
755 # (The list follows the same order as the GNU Coding Standards.)
756 bindir='${exec_prefix}/bin'
757 sbindir='${exec_prefix}/sbin'
758 libexecdir='${exec_prefix}/libexec'
759 datarootdir='${prefix}/share'
760 datadir='${datarootdir}'
761 sysconfdir='${prefix}/etc'
762 sharedstatedir='${prefix}/com'
763 localstatedir='${prefix}/var'
764 runstatedir='${localstatedir}/run'
765 includedir='${prefix}/include'
766 oldincludedir='/usr/include'
767 docdir='${datarootdir}/doc/${PACKAGE}'
768 infodir='${datarootdir}/info'
769 htmldir='${docdir}'
770 dvidir='${docdir}'
771 pdfdir='${docdir}'
772 psdir='${docdir}'
773 libdir='${exec_prefix}/lib'
774 localedir='${datarootdir}/locale'
775 mandir='${datarootdir}/man'
776
777 ac_prev=
778 ac_dashdash=
779 for ac_option
780 do
781 # If the previous option needs an argument, assign it.
782 if test -n "$ac_prev"; then
783 eval $ac_prev=\$ac_option
784 ac_prev=
785 continue
786 fi
787
788 case $ac_option in
789 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
790 *=) ac_optarg= ;;
791 *) ac_optarg=yes ;;
792 esac
793
794 # Accept the important Cygnus configure options, so we can diagnose typos.
795
796 case $ac_dashdash$ac_option in
797 --)
798 ac_dashdash=yes ;;
799
800 -bindir | --bindir | --bindi | --bind | --bin | --bi)
801 ac_prev=bindir ;;
802 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
803 bindir=$ac_optarg ;;
804
805 -build | --build | --buil | --bui | --bu)
806 ac_prev=build_alias ;;
807 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
808 build_alias=$ac_optarg ;;
809
810 -cache-file | --cache-file | --cache-fil | --cache-fi \
811 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
812 ac_prev=cache_file ;;
813 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
814 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
815 cache_file=$ac_optarg ;;
816
817 --config-cache | -C)
818 cache_file=config.cache ;;
819
820 -datadir | --datadir | --datadi | --datad)
821 ac_prev=datadir ;;
822 -datadir=* | --datadir=* | --datadi=* | --datad=*)
823 datadir=$ac_optarg ;;
824
825 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
826 | --dataroo | --dataro | --datar)
827 ac_prev=datarootdir ;;
828 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
829 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
830 datarootdir=$ac_optarg ;;
831
832 -disable-* | --disable-*)
833 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
834 # Reject names that are not valid shell variable names.
835 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
836 as_fn_error $? "invalid feature name: $ac_useropt"
837 ac_useropt_orig=$ac_useropt
838 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
839 case $ac_user_opts in
840 *"
841 "enable_$ac_useropt"
842 "*) ;;
843 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
844 ac_unrecognized_sep=', ';;
845 esac
846 eval enable_$ac_useropt=no ;;
847
848 -docdir | --docdir | --docdi | --doc | --do)
849 ac_prev=docdir ;;
850 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
851 docdir=$ac_optarg ;;
852
853 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
854 ac_prev=dvidir ;;
855 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
856 dvidir=$ac_optarg ;;
857
858 -enable-* | --enable-*)
859 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
860 # Reject names that are not valid shell variable names.
861 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
862 as_fn_error $? "invalid feature name: $ac_useropt"
863 ac_useropt_orig=$ac_useropt
864 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
865 case $ac_user_opts in
866 *"
867 "enable_$ac_useropt"
868 "*) ;;
869 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
870 ac_unrecognized_sep=', ';;
871 esac
872 eval enable_$ac_useropt=\$ac_optarg ;;
873
874 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
875 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
876 | --exec | --exe | --ex)
877 ac_prev=exec_prefix ;;
878 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
879 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
880 | --exec=* | --exe=* | --ex=*)
881 exec_prefix=$ac_optarg ;;
882
883 -gas | --gas | --ga | --g)
884 # Obsolete; use --with-gas.
885 with_gas=yes ;;
886
887 -help | --help | --hel | --he | -h)
888 ac_init_help=long ;;
889 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
890 ac_init_help=recursive ;;
891 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
892 ac_init_help=short ;;
893
894 -host | --host | --hos | --ho)
895 ac_prev=host_alias ;;
896 -host=* | --host=* | --hos=* | --ho=*)
897 host_alias=$ac_optarg ;;
898
899 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
900 ac_prev=htmldir ;;
901 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
902 | --ht=*)
903 htmldir=$ac_optarg ;;
904
905 -includedir | --includedir | --includedi | --included | --include \
906 | --includ | --inclu | --incl | --inc)
907 ac_prev=includedir ;;
908 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
909 | --includ=* | --inclu=* | --incl=* | --inc=*)
910 includedir=$ac_optarg ;;
911
912 -infodir | --infodir | --infodi | --infod | --info | --inf)
913 ac_prev=infodir ;;
914 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
915 infodir=$ac_optarg ;;
916
917 -libdir | --libdir | --libdi | --libd)
918 ac_prev=libdir ;;
919 -libdir=* | --libdir=* | --libdi=* | --libd=*)
920 libdir=$ac_optarg ;;
921
922 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
923 | --libexe | --libex | --libe)
924 ac_prev=libexecdir ;;
925 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
926 | --libexe=* | --libex=* | --libe=*)
927 libexecdir=$ac_optarg ;;
928
929 -localedir | --localedir | --localedi | --localed | --locale)
930 ac_prev=localedir ;;
931 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
932 localedir=$ac_optarg ;;
933
934 -localstatedir | --localstatedir | --localstatedi | --localstated \
935 | --localstate | --localstat | --localsta | --localst | --locals)
936 ac_prev=localstatedir ;;
937 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
938 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
939 localstatedir=$ac_optarg ;;
940
941 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
942 ac_prev=mandir ;;
943 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
944 mandir=$ac_optarg ;;
945
946 -nfp | --nfp | --nf)
947 # Obsolete; use --without-fp.
948 with_fp=no ;;
949
950 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
951 | --no-cr | --no-c | -n)
952 no_create=yes ;;
953
954 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
955 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
956 no_recursion=yes ;;
957
958 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
959 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
960 | --oldin | --oldi | --old | --ol | --o)
961 ac_prev=oldincludedir ;;
962 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
963 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
964 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
965 oldincludedir=$ac_optarg ;;
966
967 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
968 ac_prev=prefix ;;
969 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
970 prefix=$ac_optarg ;;
971
972 -program-prefix | --program-prefix | --program-prefi | --program-pref \
973 | --program-pre | --program-pr | --program-p)
974 ac_prev=program_prefix ;;
975 -program-prefix=* | --program-prefix=* | --program-prefi=* \
976 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
977 program_prefix=$ac_optarg ;;
978
979 -program-suffix | --program-suffix | --program-suffi | --program-suff \
980 | --program-suf | --program-su | --program-s)
981 ac_prev=program_suffix ;;
982 -program-suffix=* | --program-suffix=* | --program-suffi=* \
983 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
984 program_suffix=$ac_optarg ;;
985
986 -program-transform-name | --program-transform-name \
987 | --program-transform-nam | --program-transform-na \
988 | --program-transform-n | --program-transform- \
989 | --program-transform | --program-transfor \
990 | --program-transfo | --program-transf \
991 | --program-trans | --program-tran \
992 | --progr-tra | --program-tr | --program-t)
993 ac_prev=program_transform_name ;;
994 -program-transform-name=* | --program-transform-name=* \
995 | --program-transform-nam=* | --program-transform-na=* \
996 | --program-transform-n=* | --program-transform-=* \
997 | --program-transform=* | --program-transfor=* \
998 | --program-transfo=* | --program-transf=* \
999 | --program-trans=* | --program-tran=* \
1000 | --progr-tra=* | --program-tr=* | --program-t=*)
1001 program_transform_name=$ac_optarg ;;
1002
1003 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1004 ac_prev=pdfdir ;;
1005 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1006 pdfdir=$ac_optarg ;;
1007
1008 -psdir | --psdir | --psdi | --psd | --ps)
1009 ac_prev=psdir ;;
1010 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1011 psdir=$ac_optarg ;;
1012
1013 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1014 | -silent | --silent | --silen | --sile | --sil)
1015 silent=yes ;;
1016
1017 -runstatedir | --runstatedir | --runstatedi | --runstated \
1018 | --runstate | --runstat | --runsta | --runst | --runs \
1019 | --run | --ru | --r)
1020 ac_prev=runstatedir ;;
1021 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1022 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1023 | --run=* | --ru=* | --r=*)
1024 runstatedir=$ac_optarg ;;
1025
1026 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1027 ac_prev=sbindir ;;
1028 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1029 | --sbi=* | --sb=*)
1030 sbindir=$ac_optarg ;;
1031
1032 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1033 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1034 | --sharedst | --shareds | --shared | --share | --shar \
1035 | --sha | --sh)
1036 ac_prev=sharedstatedir ;;
1037 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1038 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1039 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1040 | --sha=* | --sh=*)
1041 sharedstatedir=$ac_optarg ;;
1042
1043 -site | --site | --sit)
1044 ac_prev=site ;;
1045 -site=* | --site=* | --sit=*)
1046 site=$ac_optarg ;;
1047
1048 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1049 ac_prev=srcdir ;;
1050 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1051 srcdir=$ac_optarg ;;
1052
1053 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1054 | --syscon | --sysco | --sysc | --sys | --sy)
1055 ac_prev=sysconfdir ;;
1056 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1057 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1058 sysconfdir=$ac_optarg ;;
1059
1060 -target | --target | --targe | --targ | --tar | --ta | --t)
1061 ac_prev=target_alias ;;
1062 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1063 target_alias=$ac_optarg ;;
1064
1065 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1066 verbose=yes ;;
1067
1068 -version | --version | --versio | --versi | --vers | -V)
1069 ac_init_version=: ;;
1070
1071 -with-* | --with-*)
1072 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1075 as_fn_error $? "invalid package name: $ac_useropt"
1076 ac_useropt_orig=$ac_useropt
1077 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1078 case $ac_user_opts in
1079 *"
1080 "with_$ac_useropt"
1081 "*) ;;
1082 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1083 ac_unrecognized_sep=', ';;
1084 esac
1085 eval with_$ac_useropt=\$ac_optarg ;;
1086
1087 -without-* | --without-*)
1088 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1089 # Reject names that are not valid shell variable names.
1090 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1091 as_fn_error $? "invalid package name: $ac_useropt"
1092 ac_useropt_orig=$ac_useropt
1093 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1094 case $ac_user_opts in
1095 *"
1096 "with_$ac_useropt"
1097 "*) ;;
1098 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1099 ac_unrecognized_sep=', ';;
1100 esac
1101 eval with_$ac_useropt=no ;;
1102
1103 --x)
1104 # Obsolete; use --with-x.
1105 with_x=yes ;;
1106
1107 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1108 | --x-incl | --x-inc | --x-in | --x-i)
1109 ac_prev=x_includes ;;
1110 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1111 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1112 x_includes=$ac_optarg ;;
1113
1114 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1115 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1116 ac_prev=x_libraries ;;
1117 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1118 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1119 x_libraries=$ac_optarg ;;
1120
1121 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1122 Try \`$0 --help' for more information"
1123 ;;
1124
1125 *=*)
1126 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1127 # Reject names that are not valid shell variable names.
1128 case $ac_envvar in #(
1129 '' | [0-9]* | *[!_$as_cr_alnum]* )
1130 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1131 esac
1132 eval $ac_envvar=\$ac_optarg
1133 export $ac_envvar ;;
1134
1135 *)
1136 # FIXME: should be removed in autoconf 3.0.
1137 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1138 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1139 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1140 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1141 ;;
1142
1143 esac
1144 done
1145
1146 if test -n "$ac_prev"; then
1147 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1148 as_fn_error $? "missing argument to $ac_option"
1149 fi
1150
1151 if test -n "$ac_unrecognized_opts"; then
1152 case $enable_option_checking in
1153 no) ;;
1154 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1155 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1156 esac
1157 fi
1158
1159 # Check all directory arguments for consistency.
1160 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1161 datadir sysconfdir sharedstatedir localstatedir includedir \
1162 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1163 libdir localedir mandir runstatedir
1164 do
1165 eval ac_val=\$$ac_var
1166 # Remove trailing slashes.
1167 case $ac_val in
1168 */ )
1169 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1170 eval $ac_var=\$ac_val;;
1171 esac
1172 # Be sure to have absolute directory names.
1173 case $ac_val in
1174 [\\/$]* | ?:[\\/]* ) continue;;
1175 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1176 esac
1177 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1178 done
1179
1180 # There might be people who depend on the old broken behavior: `$host'
1181 # used to hold the argument of --host etc.
1182 # FIXME: To remove some day.
1183 build=$build_alias
1184 host=$host_alias
1185 target=$target_alias
1186
1187 # FIXME: To remove some day.
1188 if test "x$host_alias" != x; then
1189 if test "x$build_alias" = x; then
1190 cross_compiling=maybe
1191 elif test "x$build_alias" != "x$host_alias"; then
1192 cross_compiling=yes
1193 fi
1194 fi
1195
1196 ac_tool_prefix=
1197 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1198
1199 test "$silent" = yes && exec 6>/dev/null
1200
1201
1202 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1203 ac_ls_di=`ls -di .` &&
1204 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1205 as_fn_error $? "working directory cannot be determined"
1206 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1207 as_fn_error $? "pwd does not report name of working directory"
1208
1209
1210 # Find the source files, if location was not specified.
1211 if test -z "$srcdir"; then
1212 ac_srcdir_defaulted=yes
1213 # Try the directory containing this script, then the parent directory.
1214 ac_confdir=`$as_dirname -- "$as_myself" ||
1215 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1216 X"$as_myself" : 'X\(//\)[^/]' \| \
1217 X"$as_myself" : 'X\(//\)$' \| \
1218 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1219 $as_echo X"$as_myself" |
1220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1221 s//\1/
1222 q
1223 }
1224 /^X\(\/\/\)[^/].*/{
1225 s//\1/
1226 q
1227 }
1228 /^X\(\/\/\)$/{
1229 s//\1/
1230 q
1231 }
1232 /^X\(\/\).*/{
1233 s//\1/
1234 q
1235 }
1236 s/.*/./; q'`
1237 srcdir=$ac_confdir
1238 if test ! -r "$srcdir/$ac_unique_file"; then
1239 srcdir=..
1240 fi
1241 else
1242 ac_srcdir_defaulted=no
1243 fi
1244 if test ! -r "$srcdir/$ac_unique_file"; then
1245 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1246 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1247 fi
1248 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1249 ac_abs_confdir=`(
1250 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1251 pwd)`
1252 # When building in place, set srcdir=.
1253 if test "$ac_abs_confdir" = "$ac_pwd"; then
1254 srcdir=.
1255 fi
1256 # Remove unnecessary trailing slashes from srcdir.
1257 # Double slashes in file names in object file debugging info
1258 # mess up M-x gdb in Emacs.
1259 case $srcdir in
1260 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1261 esac
1262 for ac_var in $ac_precious_vars; do
1263 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1264 eval ac_env_${ac_var}_value=\$${ac_var}
1265 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1266 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1267 done
1268
1269 #
1270 # Report the --help message.
1271 #
1272 if test "$ac_init_help" = "long"; then
1273 # Omit some internal or obsolete options to make the list less imposing.
1274 # This message is too long to be a string in the A/UX 3.1 sh.
1275 cat <<_ACEOF
1276 \`configure' configures this package to adapt to many kinds of systems.
1277
1278 Usage: $0 [OPTION]... [VAR=VALUE]...
1279
1280 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1281 VAR=VALUE. See below for descriptions of some of the useful variables.
1282
1283 Defaults for the options are specified in brackets.
1284
1285 Configuration:
1286 -h, --help display this help and exit
1287 --help=short display options specific to this package
1288 --help=recursive display the short help of all the included packages
1289 -V, --version display version information and exit
1290 -q, --quiet, --silent do not print \`checking ...' messages
1291 --cache-file=FILE cache test results in FILE [disabled]
1292 -C, --config-cache alias for \`--cache-file=config.cache'
1293 -n, --no-create do not create output files
1294 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1295
1296 Installation directories:
1297 --prefix=PREFIX install architecture-independent files in PREFIX
1298 [$ac_default_prefix]
1299 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1300 [PREFIX]
1301
1302 By default, \`make install' will install all the files in
1303 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1304 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1305 for instance \`--prefix=\$HOME'.
1306
1307 For better control, use the options below.
1308
1309 Fine tuning of the installation directories:
1310 --bindir=DIR user executables [EPREFIX/bin]
1311 --sbindir=DIR system admin executables [EPREFIX/sbin]
1312 --libexecdir=DIR program executables [EPREFIX/libexec]
1313 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1314 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1315 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1316 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1317 --libdir=DIR object code libraries [EPREFIX/lib]
1318 --includedir=DIR C header files [PREFIX/include]
1319 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1320 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1321 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1322 --infodir=DIR info documentation [DATAROOTDIR/info]
1323 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1324 --mandir=DIR man documentation [DATAROOTDIR/man]
1325 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1326 --htmldir=DIR html documentation [DOCDIR]
1327 --dvidir=DIR dvi documentation [DOCDIR]
1328 --pdfdir=DIR pdf documentation [DOCDIR]
1329 --psdir=DIR ps documentation [DOCDIR]
1330 _ACEOF
1331
1332 cat <<\_ACEOF
1333
1334 System types:
1335 --build=BUILD configure for building on BUILD [guessed]
1336 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1337 _ACEOF
1338 fi
1339
1340 if test -n "$ac_init_help"; then
1341
1342 cat <<\_ACEOF
1343
1344 Optional Packages:
1345 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1346 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1347 --with-localdirs Explicitly ask compiler to use
1348 /usr/local/{include,libs} if they exist
1349 --with-openssl=DIR Use optional openssl libs and includes from
1350 [DIR]/lib/ and [DIR]/include/openssl/)
1351 --with-libnbase=DIR Look for nbase include/libs in DIR
1352 --with-libnsock=DIR Compile and link to libnsock in DIR
1353 --with-libopenssh=DIR Compile and link to libopenssh in DIR
1354
1355 Some influential environment variables:
1356 CC C compiler command
1357 CFLAGS C compiler flags
1358 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1359 nonstandard directory <lib dir>
1360 LIBS libraries to pass to the linker, e.g. -l<library>
1361 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1362 you have headers in a nonstandard directory <include dir>
1363 CXX C++ compiler command
1364 CXXFLAGS C++ compiler flags
1365 CPP C preprocessor
1366
1367 Use these variables to override the choices made by `configure' or to help
1368 it to find libraries and programs with nonstandard names/locations.
1369
1370 Report bugs to the package provider.
1371 _ACEOF
1372 ac_status=$?
1373 fi
1374
1375 if test "$ac_init_help" = "recursive"; then
1376 # If there are subdirs, report their specific --help.
1377 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1378 test -d "$ac_dir" ||
1379 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1380 continue
1381 ac_builddir=.
1382
1383 case "$ac_dir" in
1384 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1385 *)
1386 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1387 # A ".." for each directory in $ac_dir_suffix.
1388 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1389 case $ac_top_builddir_sub in
1390 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1391 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1392 esac ;;
1393 esac
1394 ac_abs_top_builddir=$ac_pwd
1395 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1396 # for backward compatibility:
1397 ac_top_builddir=$ac_top_build_prefix
1398
1399 case $srcdir in
1400 .) # We are building in place.
1401 ac_srcdir=.
1402 ac_top_srcdir=$ac_top_builddir_sub
1403 ac_abs_top_srcdir=$ac_pwd ;;
1404 [\\/]* | ?:[\\/]* ) # Absolute name.
1405 ac_srcdir=$srcdir$ac_dir_suffix;
1406 ac_top_srcdir=$srcdir
1407 ac_abs_top_srcdir=$srcdir ;;
1408 *) # Relative name.
1409 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1410 ac_top_srcdir=$ac_top_build_prefix$srcdir
1411 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1412 esac
1413 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1414
1415 cd "$ac_dir" || { ac_status=$?; continue; }
1416 # Check for guested configure.
1417 if test -f "$ac_srcdir/configure.gnu"; then
1418 echo &&
1419 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1420 elif test -f "$ac_srcdir/configure"; then
1421 echo &&
1422 $SHELL "$ac_srcdir/configure" --help=recursive
1423 else
1424 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1425 fi || ac_status=$?
1426 cd "$ac_pwd" || { ac_status=$?; break; }
1427 done
1428 fi
1429
1430 test -n "$ac_init_help" && exit $ac_status
1431 if $ac_init_version; then
1432 cat <<\_ACEOF
1433 configure
1434 generated by GNU Autoconf 2.69
1435
1436 Copyright (C) 2012 Free Software Foundation, Inc.
1437 This configure script is free software; the Free Software Foundation
1438 gives unlimited permission to copy, distribute and modify it.
1439 _ACEOF
1440 exit
1441 fi
1442
1443 ## ------------------------ ##
1444 ## Autoconf initialization. ##
1445 ## ------------------------ ##
1446
1447 # ac_fn_c_try_compile LINENO
1448 # --------------------------
1449 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1450 ac_fn_c_try_compile ()
1451 {
1452 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1453 rm -f conftest.$ac_objext
1454 if { { ac_try="$ac_compile"
1455 case "(($ac_try" in
1456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1457 *) ac_try_echo=$ac_try;;
1458 esac
1459 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1460 $as_echo "$ac_try_echo"; } >&5
1461 (eval "$ac_compile") 2>conftest.err
1462 ac_status=$?
1463 if test -s conftest.err; then
1464 grep -v '^ *+' conftest.err >conftest.er1
1465 cat conftest.er1 >&5
1466 mv -f conftest.er1 conftest.err
1467 fi
1468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1469 test $ac_status = 0; } && {
1470 test -z "$ac_c_werror_flag" ||
1471 test ! -s conftest.err
1472 } && test -s conftest.$ac_objext; then :
1473 ac_retval=0
1474 else
1475 $as_echo "$as_me: failed program was:" >&5
1476 sed 's/^/| /' conftest.$ac_ext >&5
1477
1478 ac_retval=1
1479 fi
1480 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1481 as_fn_set_status $ac_retval
1482
1483 } # ac_fn_c_try_compile
1484
1485 # ac_fn_cxx_try_compile LINENO
1486 # ----------------------------
1487 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1488 ac_fn_cxx_try_compile ()
1489 {
1490 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1491 rm -f conftest.$ac_objext
1492 if { { ac_try="$ac_compile"
1493 case "(($ac_try" in
1494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1495 *) ac_try_echo=$ac_try;;
1496 esac
1497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1498 $as_echo "$ac_try_echo"; } >&5
1499 (eval "$ac_compile") 2>conftest.err
1500 ac_status=$?
1501 if test -s conftest.err; then
1502 grep -v '^ *+' conftest.err >conftest.er1
1503 cat conftest.er1 >&5
1504 mv -f conftest.er1 conftest.err
1505 fi
1506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1507 test $ac_status = 0; } && {
1508 test -z "$ac_cxx_werror_flag" ||
1509 test ! -s conftest.err
1510 } && test -s conftest.$ac_objext; then :
1511 ac_retval=0
1512 else
1513 $as_echo "$as_me: failed program was:" >&5
1514 sed 's/^/| /' conftest.$ac_ext >&5
1515
1516 ac_retval=1
1517 fi
1518 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1519 as_fn_set_status $ac_retval
1520
1521 } # ac_fn_cxx_try_compile
1522
1523 # ac_fn_c_try_cpp LINENO
1524 # ----------------------
1525 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1526 ac_fn_c_try_cpp ()
1527 {
1528 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1529 if { { ac_try="$ac_cpp conftest.$ac_ext"
1530 case "(($ac_try" in
1531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1532 *) ac_try_echo=$ac_try;;
1533 esac
1534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1535 $as_echo "$ac_try_echo"; } >&5
1536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1537 ac_status=$?
1538 if test -s conftest.err; then
1539 grep -v '^ *+' conftest.err >conftest.er1
1540 cat conftest.er1 >&5
1541 mv -f conftest.er1 conftest.err
1542 fi
1543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1544 test $ac_status = 0; } > conftest.i && {
1545 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1546 test ! -s conftest.err
1547 }; then :
1548 ac_retval=0
1549 else
1550 $as_echo "$as_me: failed program was:" >&5
1551 sed 's/^/| /' conftest.$ac_ext >&5
1552
1553 ac_retval=1
1554 fi
1555 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1556 as_fn_set_status $ac_retval
1557
1558 } # ac_fn_c_try_cpp
1559
1560 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1561 # -------------------------------------------------------
1562 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1563 # the include files in INCLUDES and setting the cache variable VAR
1564 # accordingly.
1565 ac_fn_c_check_header_mongrel ()
1566 {
1567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568 if eval \${$3+:} false; then :
1569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1570 $as_echo_n "checking for $2... " >&6; }
1571 if eval \${$3+:} false; then :
1572 $as_echo_n "(cached) " >&6
1573 fi
1574 eval ac_res=\$$3
1575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1576 $as_echo "$ac_res" >&6; }
1577 else
1578 # Is the header compilable?
1579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1580 $as_echo_n "checking $2 usability... " >&6; }
1581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1582 /* end confdefs.h. */
1583 $4
1584 #include <$2>
1585 _ACEOF
1586 if ac_fn_c_try_compile "$LINENO"; then :
1587 ac_header_compiler=yes
1588 else
1589 ac_header_compiler=no
1590 fi
1591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1593 $as_echo "$ac_header_compiler" >&6; }
1594
1595 # Is the header present?
1596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1597 $as_echo_n "checking $2 presence... " >&6; }
1598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1599 /* end confdefs.h. */
1600 #include <$2>
1601 _ACEOF
1602 if ac_fn_c_try_cpp "$LINENO"; then :
1603 ac_header_preproc=yes
1604 else
1605 ac_header_preproc=no
1606 fi
1607 rm -f conftest.err conftest.i conftest.$ac_ext
1608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1609 $as_echo "$ac_header_preproc" >&6; }
1610
1611 # So? What about this header?
1612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1613 yes:no: )
1614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1615 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1617 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1618 ;;
1619 no:yes:* )
1620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1621 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1623 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1625 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1627 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1629 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1630 ;;
1631 esac
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1633 $as_echo_n "checking for $2... " >&6; }
1634 if eval \${$3+:} false; then :
1635 $as_echo_n "(cached) " >&6
1636 else
1637 eval "$3=\$ac_header_compiler"
1638 fi
1639 eval ac_res=\$$3
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1641 $as_echo "$ac_res" >&6; }
1642 fi
1643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1644
1645 } # ac_fn_c_check_header_mongrel
1646
1647 # ac_fn_c_try_run LINENO
1648 # ----------------------
1649 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1650 # that executables *can* be run.
1651 ac_fn_c_try_run ()
1652 {
1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654 if { { ac_try="$ac_link"
1655 case "(($ac_try" in
1656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657 *) ac_try_echo=$ac_try;;
1658 esac
1659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660 $as_echo "$ac_try_echo"; } >&5
1661 (eval "$ac_link") 2>&5
1662 ac_status=$?
1663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1665 { { case "(($ac_try" in
1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667 *) ac_try_echo=$ac_try;;
1668 esac
1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670 $as_echo "$ac_try_echo"; } >&5
1671 (eval "$ac_try") 2>&5
1672 ac_status=$?
1673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674 test $ac_status = 0; }; }; then :
1675 ac_retval=0
1676 else
1677 $as_echo "$as_me: program exited with status $ac_status" >&5
1678 $as_echo "$as_me: failed program was:" >&5
1679 sed 's/^/| /' conftest.$ac_ext >&5
1680
1681 ac_retval=$ac_status
1682 fi
1683 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685 as_fn_set_status $ac_retval
1686
1687 } # ac_fn_c_try_run
1688
1689 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1690 # -------------------------------------------------------
1691 # Tests whether HEADER exists and can be compiled using the include files in
1692 # INCLUDES, setting the cache variable VAR accordingly.
1693 ac_fn_c_check_header_compile ()
1694 {
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1697 $as_echo_n "checking for $2... " >&6; }
1698 if eval \${$3+:} false; then :
1699 $as_echo_n "(cached) " >&6
1700 else
1701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1702 /* end confdefs.h. */
1703 $4
1704 #include <$2>
1705 _ACEOF
1706 if ac_fn_c_try_compile "$LINENO"; then :
1707 eval "$3=yes"
1708 else
1709 eval "$3=no"
1710 fi
1711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1712 fi
1713 eval ac_res=\$$3
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1715 $as_echo "$ac_res" >&6; }
1716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1717
1718 } # ac_fn_c_check_header_compile
1719
1720 # ac_fn_c_try_link LINENO
1721 # -----------------------
1722 # Try to link conftest.$ac_ext, and return whether this succeeded.
1723 ac_fn_c_try_link ()
1724 {
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 rm -f conftest.$ac_objext conftest$ac_exeext
1727 if { { ac_try="$ac_link"
1728 case "(($ac_try" in
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1731 esac
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_link") 2>conftest.err
1735 ac_status=$?
1736 if test -s conftest.err; then
1737 grep -v '^ *+' conftest.err >conftest.er1
1738 cat conftest.er1 >&5
1739 mv -f conftest.er1 conftest.err
1740 fi
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; } && {
1743 test -z "$ac_c_werror_flag" ||
1744 test ! -s conftest.err
1745 } && test -s conftest$ac_exeext && {
1746 test "$cross_compiling" = yes ||
1747 test -x conftest$ac_exeext
1748 }; then :
1749 ac_retval=0
1750 else
1751 $as_echo "$as_me: failed program was:" >&5
1752 sed 's/^/| /' conftest.$ac_ext >&5
1753
1754 ac_retval=1
1755 fi
1756 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1757 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1758 # interfere with the next link command; also delete a directory that is
1759 # left behind by Apple's compiler. We do this before executing the actions.
1760 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1761 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1762 as_fn_set_status $ac_retval
1763
1764 } # ac_fn_c_try_link
1765
1766 # ac_fn_c_check_func LINENO FUNC VAR
1767 # ----------------------------------
1768 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1769 ac_fn_c_check_func ()
1770 {
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1773 $as_echo_n "checking for $2... " >&6; }
1774 if eval \${$3+:} false; then :
1775 $as_echo_n "(cached) " >&6
1776 else
1777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1778 /* end confdefs.h. */
1779 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1781 #define $2 innocuous_$2
1782
1783 /* System header to define __stub macros and hopefully few prototypes,
1784 which can conflict with char $2 (); below.
1785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1786 <limits.h> exists even on freestanding compilers. */
1787
1788 #ifdef __STDC__
1789 # include <limits.h>
1790 #else
1791 # include <assert.h>
1792 #endif
1793
1794 #undef $2
1795
1796 /* Override any GCC internal prototype to avoid an error.
1797 Use char because int might match the return type of a GCC
1798 builtin and then its argument prototype would still apply. */
1799 #ifdef __cplusplus
1800 extern "C"
1801 #endif
1802 char $2 ();
1803 /* The GNU C library defines this for functions which it implements
1804 to always fail with ENOSYS. Some functions are actually named
1805 something starting with __ and the normal name is an alias. */
1806 #if defined __stub_$2 || defined __stub___$2
1807 choke me
1808 #endif
1809
1810 int
1811 main ()
1812 {
1813 return $2 ();
1814 ;
1815 return 0;
1816 }
1817 _ACEOF
1818 if ac_fn_c_try_link "$LINENO"; then :
1819 eval "$3=yes"
1820 else
1821 eval "$3=no"
1822 fi
1823 rm -f core conftest.err conftest.$ac_objext \
1824 conftest$ac_exeext conftest.$ac_ext
1825 fi
1826 eval ac_res=\$$3
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1828 $as_echo "$ac_res" >&6; }
1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830
1831 } # ac_fn_c_check_func
1832 cat >config.log <<_ACEOF
1833 This file contains any messages produced by compilers while
1834 running configure, to aid debugging if configure makes a mistake.
1835
1836 It was created by $as_me, which was
1837 generated by GNU Autoconf 2.69. Invocation command line was
1838
1839 $ $0 $@
1840
1841 _ACEOF
1842 exec 5>>config.log
1843 {
1844 cat <<_ASUNAME
1845 ## --------- ##
1846 ## Platform. ##
1847 ## --------- ##
1848
1849 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1850 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1851 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1852 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1853 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1854
1855 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1856 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1857
1858 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1859 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1860 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1861 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1862 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1863 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1864 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1865
1866 _ASUNAME
1867
1868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1869 for as_dir in $PATH
1870 do
1871 IFS=$as_save_IFS
1872 test -z "$as_dir" && as_dir=.
1873 $as_echo "PATH: $as_dir"
1874 done
1875 IFS=$as_save_IFS
1876
1877 } >&5
1878
1879 cat >&5 <<_ACEOF
1880
1881
1882 ## ----------- ##
1883 ## Core tests. ##
1884 ## ----------- ##
1885
1886 _ACEOF
1887
1888
1889 # Keep a trace of the command line.
1890 # Strip out --no-create and --no-recursion so they do not pile up.
1891 # Strip out --silent because we don't want to record it for future runs.
1892 # Also quote any args containing shell meta-characters.
1893 # Make two passes to allow for proper duplicate-argument suppression.
1894 ac_configure_args=
1895 ac_configure_args0=
1896 ac_configure_args1=
1897 ac_must_keep_next=false
1898 for ac_pass in 1 2
1899 do
1900 for ac_arg
1901 do
1902 case $ac_arg in
1903 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1904 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1905 | -silent | --silent | --silen | --sile | --sil)
1906 continue ;;
1907 *\'*)
1908 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1909 esac
1910 case $ac_pass in
1911 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1912 2)
1913 as_fn_append ac_configure_args1 " '$ac_arg'"
1914 if test $ac_must_keep_next = true; then
1915 ac_must_keep_next=false # Got value, back to normal.
1916 else
1917 case $ac_arg in
1918 *=* | --config-cache | -C | -disable-* | --disable-* \
1919 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1920 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1921 | -with-* | --with-* | -without-* | --without-* | --x)
1922 case "$ac_configure_args0 " in
1923 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1924 esac
1925 ;;
1926 -* ) ac_must_keep_next=true ;;
1927 esac
1928 fi
1929 as_fn_append ac_configure_args " '$ac_arg'"
1930 ;;
1931 esac
1932 done
1933 done
1934 { ac_configure_args0=; unset ac_configure_args0;}
1935 { ac_configure_args1=; unset ac_configure_args1;}
1936
1937 # When interrupted or exit'd, cleanup temporary files, and complete
1938 # config.log. We remove comments because anyway the quotes in there
1939 # would cause problems or look ugly.
1940 # WARNING: Use '\'' to represent an apostrophe within the trap.
1941 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1942 trap 'exit_status=$?
1943 # Save into config.log some information that might help in debugging.
1944 {
1945 echo
1946
1947 $as_echo "## ---------------- ##
1948 ## Cache variables. ##
1949 ## ---------------- ##"
1950 echo
1951 # The following way of writing the cache mishandles newlines in values,
1952 (
1953 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1954 eval ac_val=\$$ac_var
1955 case $ac_val in #(
1956 *${as_nl}*)
1957 case $ac_var in #(
1958 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1959 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1960 esac
1961 case $ac_var in #(
1962 _ | IFS | as_nl) ;; #(
1963 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1964 *) { eval $ac_var=; unset $ac_var;} ;;
1965 esac ;;
1966 esac
1967 done
1968 (set) 2>&1 |
1969 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1970 *${as_nl}ac_space=\ *)
1971 sed -n \
1972 "s/'\''/'\''\\\\'\'''\''/g;
1973 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1974 ;; #(
1975 *)
1976 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1977 ;;
1978 esac |
1979 sort
1980 )
1981 echo
1982
1983 $as_echo "## ----------------- ##
1984 ## Output variables. ##
1985 ## ----------------- ##"
1986 echo
1987 for ac_var in $ac_subst_vars
1988 do
1989 eval ac_val=\$$ac_var
1990 case $ac_val in
1991 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1992 esac
1993 $as_echo "$ac_var='\''$ac_val'\''"
1994 done | sort
1995 echo
1996
1997 if test -n "$ac_subst_files"; then
1998 $as_echo "## ------------------- ##
1999 ## File substitutions. ##
2000 ## ------------------- ##"
2001 echo
2002 for ac_var in $ac_subst_files
2003 do
2004 eval ac_val=\$$ac_var
2005 case $ac_val in
2006 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2007 esac
2008 $as_echo "$ac_var='\''$ac_val'\''"
2009 done | sort
2010 echo
2011 fi
2012
2013 if test -s confdefs.h; then
2014 $as_echo "## ----------- ##
2015 ## confdefs.h. ##
2016 ## ----------- ##"
2017 echo
2018 cat confdefs.h
2019 echo
2020 fi
2021 test "$ac_signal" != 0 &&
2022 $as_echo "$as_me: caught signal $ac_signal"
2023 $as_echo "$as_me: exit $exit_status"
2024 } >&5
2025 rm -f core *.core core.conftest.* &&
2026 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2027 exit $exit_status
2028 ' 0
2029 for ac_signal in 1 2 13 15; do
2030 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2031 done
2032 ac_signal=0
2033
2034 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2035 rm -f -r conftest* confdefs.h
2036
2037 $as_echo "/* confdefs.h */" > confdefs.h
2038
2039 # Predefined preprocessor variables.
2040
2041 cat >>confdefs.h <<_ACEOF
2042 #define PACKAGE_NAME "$PACKAGE_NAME"
2043 _ACEOF
2044
2045 cat >>confdefs.h <<_ACEOF
2046 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2047 _ACEOF
2048
2049 cat >>confdefs.h <<_ACEOF
2050 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2051 _ACEOF
2052
2053 cat >>confdefs.h <<_ACEOF
2054 #define PACKAGE_STRING "$PACKAGE_STRING"
2055 _ACEOF
2056
2057 cat >>confdefs.h <<_ACEOF
2058 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2059 _ACEOF
2060
2061 cat >>confdefs.h <<_ACEOF
2062 #define PACKAGE_URL "$PACKAGE_URL"
2063 _ACEOF
2064
2065
2066 # Let the site file select an alternate cache file if it wants to.
2067 # Prefer an explicitly selected file to automatically selected ones.
2068 ac_site_file1=NONE
2069 ac_site_file2=NONE
2070 if test -n "$CONFIG_SITE"; then
2071 # We do not want a PATH search for config.site.
2072 case $CONFIG_SITE in #((
2073 -*) ac_site_file1=./$CONFIG_SITE;;
2074 */*) ac_site_file1=$CONFIG_SITE;;
2075 *) ac_site_file1=./$CONFIG_SITE;;
2076 esac
2077 elif test "x$prefix" != xNONE; then
2078 ac_site_file1=$prefix/share/config.site
2079 ac_site_file2=$prefix/etc/config.site
2080 else
2081 ac_site_file1=$ac_default_prefix/share/config.site
2082 ac_site_file2=$ac_default_prefix/etc/config.site
2083 fi
2084 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2085 do
2086 test "x$ac_site_file" = xNONE && continue
2087 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2089 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2090 sed 's/^/| /' "$ac_site_file" >&5
2091 . "$ac_site_file" \
2092 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2093 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2094 as_fn_error $? "failed to load site script $ac_site_file
2095 See \`config.log' for more details" "$LINENO" 5; }
2096 fi
2097 done
2098
2099 if test -r "$cache_file"; then
2100 # Some versions of bash will fail to source /dev/null (special files
2101 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2102 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2104 $as_echo "$as_me: loading cache $cache_file" >&6;}
2105 case $cache_file in
2106 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2107 *) . "./$cache_file";;
2108 esac
2109 fi
2110 else
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2112 $as_echo "$as_me: creating cache $cache_file" >&6;}
2113 >$cache_file
2114 fi
2115
2116 # Check that the precious variables saved in the cache have kept the same
2117 # value.
2118 ac_cache_corrupted=false
2119 for ac_var in $ac_precious_vars; do
2120 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2121 eval ac_new_set=\$ac_env_${ac_var}_set
2122 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2123 eval ac_new_val=\$ac_env_${ac_var}_value
2124 case $ac_old_set,$ac_new_set in
2125 set,)
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2127 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2128 ac_cache_corrupted=: ;;
2129 ,set)
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2131 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2132 ac_cache_corrupted=: ;;
2133 ,);;
2134 *)
2135 if test "x$ac_old_val" != "x$ac_new_val"; then
2136 # differences in whitespace do not lead to failure.
2137 ac_old_val_w=`echo x $ac_old_val`
2138 ac_new_val_w=`echo x $ac_new_val`
2139 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2141 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2142 ac_cache_corrupted=:
2143 else
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2145 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2146 eval $ac_var=\$ac_old_val
2147 fi
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2149 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2151 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2152 fi;;
2153 esac
2154 # Pass precious variables to config.status.
2155 if test "$ac_new_set" = set; then
2156 case $ac_new_val in
2157 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2158 *) ac_arg=$ac_var=$ac_new_val ;;
2159 esac
2160 case " $ac_configure_args " in
2161 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2162 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2163 esac
2164 fi
2165 done
2166 if $ac_cache_corrupted; then
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2170 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2171 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2172 fi
2173 ## -------------------- ##
2174 ## Main body of script. ##
2175 ## -------------------- ##
2176
2177 ac_ext=c
2178 ac_cpp='$CPP $CPPFLAGS'
2179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2182
2183
2184
2185
2186 CXXFLAGS="$CXXFLAGS -O2"
2187
2188
2189 # This variable is needed so that PCAP support, which is by default defined
2190 # for Nsock due to Nmap, is disabled in Ncrack's case.
2191 ac_configure_args="$ac_configure_args --with-libpcap=no"
2192
2193
2194
2195 # Check whether --with-localdirs was given.
2196 if test "${with_localdirs+set}" = set; then :
2197 withval=$with_localdirs; case "$with_localdirs" in
2198 yes)
2199 user_localdirs=1
2200 ;;
2201 no)
2202 user_localdirs=0
2203 ;;
2204 esac
2205
2206 else
2207 user_localdirs=0
2208 fi
2209
2210
2211 if test "$user_localdirs" = 1; then
2212 if test -d /usr/local/lib; then
2213 LDFLAGS="$LDFLAGS -L/usr/local/lib"
2214 fi
2215 if test -d /usr/local/include; then
2216 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
2217 fi
2218 fi
2219
2220
2221 ac_config_headers="$ac_config_headers ncrack_config.h"
2222
2223
2224
2225 if test -n "$ac_tool_prefix"; then
2226 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2227 set dummy ${ac_tool_prefix}strip; ac_word=$2
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2229 $as_echo_n "checking for $ac_word... " >&6; }
2230 if ${ac_cv_path_STRIP+:} false; then :
2231 $as_echo_n "(cached) " >&6
2232 else
2233 case $STRIP in
2234 [\\/]* | ?:[\\/]*)
2235 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
2236 ;;
2237 *)
2238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2239 for as_dir in $PATH
2240 do
2241 IFS=$as_save_IFS
2242 test -z "$as_dir" && as_dir=.
2243 for ac_exec_ext in '' $ac_executable_extensions; do
2244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2245 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
2246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2247 break 2
2248 fi
2249 done
2250 done
2251 IFS=$as_save_IFS
2252
2253 ;;
2254 esac
2255 fi
2256 STRIP=$ac_cv_path_STRIP
2257 if test -n "$STRIP"; then
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2259 $as_echo "$STRIP" >&6; }
2260 else
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2262 $as_echo "no" >&6; }
2263 fi
2264
2265
2266 fi
2267 if test -z "$ac_cv_path_STRIP"; then
2268 ac_pt_STRIP=$STRIP
2269 # Extract the first word of "strip", so it can be a program name with args.
2270 set dummy strip; ac_word=$2
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2272 $as_echo_n "checking for $ac_word... " >&6; }
2273 if ${ac_cv_path_ac_pt_STRIP+:} false; then :
2274 $as_echo_n "(cached) " >&6
2275 else
2276 case $ac_pt_STRIP in
2277 [\\/]* | ?:[\\/]*)
2278 ac_cv_path_ac_pt_STRIP="$ac_pt_STRIP" # Let the user override the test with a path.
2279 ;;
2280 *)
2281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2282 for as_dir in $PATH
2283 do
2284 IFS=$as_save_IFS
2285 test -z "$as_dir" && as_dir=.
2286 for ac_exec_ext in '' $ac_executable_extensions; do
2287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2288 ac_cv_path_ac_pt_STRIP="$as_dir/$ac_word$ac_exec_ext"
2289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2290 break 2
2291 fi
2292 done
2293 done
2294 IFS=$as_save_IFS
2295
2296 ;;
2297 esac
2298 fi
2299 ac_pt_STRIP=$ac_cv_path_ac_pt_STRIP
2300 if test -n "$ac_pt_STRIP"; then
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_STRIP" >&5
2302 $as_echo "$ac_pt_STRIP" >&6; }
2303 else
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2305 $as_echo "no" >&6; }
2306 fi
2307
2308 if test "x$ac_pt_STRIP" = x; then
2309 STRIP="/bin/true"
2310 else
2311 case $cross_compiling:$ac_tool_warned in
2312 yes:)
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2314 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2315 ac_tool_warned=yes ;;
2316 esac
2317 STRIP=$ac_pt_STRIP
2318 fi
2319 else
2320 STRIP="$ac_cv_path_STRIP"
2321 fi
2322
2323
2324
2325 ac_aux_dir=
2326 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2327 if test -f "$ac_dir/install-sh"; then
2328 ac_aux_dir=$ac_dir
2329 ac_install_sh="$ac_aux_dir/install-sh -c"
2330 break
2331 elif test -f "$ac_dir/install.sh"; then
2332 ac_aux_dir=$ac_dir
2333 ac_install_sh="$ac_aux_dir/install.sh -c"
2334 break
2335 elif test -f "$ac_dir/shtool"; then
2336 ac_aux_dir=$ac_dir
2337 ac_install_sh="$ac_aux_dir/shtool install -c"
2338 break
2339 fi
2340 done
2341 if test -z "$ac_aux_dir"; then
2342 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2343 fi
2344
2345 # These three variables are undocumented and unsupported,
2346 # and are intended to be withdrawn in a future Autoconf release.
2347 # They can cause serious problems if a builder's source tree is in a directory
2348 # whose full name contains unusual characters.
2349 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2350 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2351 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2352
2353
2354 # Make sure we can run config.sub.
2355 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2356 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2357
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2359 $as_echo_n "checking build system type... " >&6; }
2360 if ${ac_cv_build+:} false; then :
2361 $as_echo_n "(cached) " >&6
2362 else
2363 ac_build_alias=$build_alias
2364 test "x$ac_build_alias" = x &&
2365 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2366 test "x$ac_build_alias" = x &&
2367 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2368 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2369 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2370
2371 fi
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2373 $as_echo "$ac_cv_build" >&6; }
2374 case $ac_cv_build in
2375 *-*-*) ;;
2376 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2377 esac
2378 build=$ac_cv_build
2379 ac_save_IFS=$IFS; IFS='-'
2380 set x $ac_cv_build
2381 shift
2382 build_cpu=$1
2383 build_vendor=$2
2384 shift; shift
2385 # Remember, the first character of IFS is used to create $*,
2386 # except with old shells:
2387 build_os=$*
2388 IFS=$ac_save_IFS
2389 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2390
2391
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2393 $as_echo_n "checking host system type... " >&6; }
2394 if ${ac_cv_host+:} false; then :
2395 $as_echo_n "(cached) " >&6
2396 else
2397 if test "x$host_alias" = x; then
2398 ac_cv_host=$ac_cv_build
2399 else
2400 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2401 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2402 fi
2403
2404 fi
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2406 $as_echo "$ac_cv_host" >&6; }
2407 case $ac_cv_host in
2408 *-*-*) ;;
2409 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2410 esac
2411 host=$ac_cv_host
2412 ac_save_IFS=$IFS; IFS='-'
2413 set x $ac_cv_host
2414 shift
2415 host_cpu=$1
2416 host_vendor=$2
2417 shift; shift
2418 # Remember, the first character of IFS is used to create $*,
2419 # except with old shells:
2420 host_os=$*
2421 IFS=$ac_save_IFS
2422 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2423
2424
2425 ac_ext=c
2426 ac_cpp='$CPP $CPPFLAGS'
2427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2430 if test -n "$ac_tool_prefix"; then
2431 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2432 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2434 $as_echo_n "checking for $ac_word... " >&6; }
2435 if ${ac_cv_prog_CC+:} false; then :
2436 $as_echo_n "(cached) " >&6
2437 else
2438 if test -n "$CC"; then
2439 ac_cv_prog_CC="$CC" # Let the user override the test.
2440 else
2441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2442 for as_dir in $PATH
2443 do
2444 IFS=$as_save_IFS
2445 test -z "$as_dir" && as_dir=.
2446 for ac_exec_ext in '' $ac_executable_extensions; do
2447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2448 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2450 break 2
2451 fi
2452 done
2453 done
2454 IFS=$as_save_IFS
2455
2456 fi
2457 fi
2458 CC=$ac_cv_prog_CC
2459 if test -n "$CC"; then
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2461 $as_echo "$CC" >&6; }
2462 else
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2464 $as_echo "no" >&6; }
2465 fi
2466
2467
2468 fi
2469 if test -z "$ac_cv_prog_CC"; then
2470 ac_ct_CC=$CC
2471 # Extract the first word of "gcc", so it can be a program name with args.
2472 set dummy gcc; ac_word=$2
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2474 $as_echo_n "checking for $ac_word... " >&6; }
2475 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2476 $as_echo_n "(cached) " >&6
2477 else
2478 if test -n "$ac_ct_CC"; then
2479 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2480 else
2481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482 for as_dir in $PATH
2483 do
2484 IFS=$as_save_IFS
2485 test -z "$as_dir" && as_dir=.
2486 for ac_exec_ext in '' $ac_executable_extensions; do
2487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2488 ac_cv_prog_ac_ct_CC="gcc"
2489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2490 break 2
2491 fi
2492 done
2493 done
2494 IFS=$as_save_IFS
2495
2496 fi
2497 fi
2498 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2499 if test -n "$ac_ct_CC"; then
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2501 $as_echo "$ac_ct_CC" >&6; }
2502 else
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2504 $as_echo "no" >&6; }
2505 fi
2506
2507 if test "x$ac_ct_CC" = x; then
2508 CC=""
2509 else
2510 case $cross_compiling:$ac_tool_warned in
2511 yes:)
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2513 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2514 ac_tool_warned=yes ;;
2515 esac
2516 CC=$ac_ct_CC
2517 fi
2518 else
2519 CC="$ac_cv_prog_CC"
2520 fi
2521
2522 if test -z "$CC"; then
2523 if test -n "$ac_tool_prefix"; then
2524 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2525 set dummy ${ac_tool_prefix}cc; ac_word=$2
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2527 $as_echo_n "checking for $ac_word... " >&6; }
2528 if ${ac_cv_prog_CC+:} false; then :
2529 $as_echo_n "(cached) " >&6
2530 else
2531 if test -n "$CC"; then
2532 ac_cv_prog_CC="$CC" # Let the user override the test.
2533 else
2534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2535 for as_dir in $PATH
2536 do
2537 IFS=$as_save_IFS
2538 test -z "$as_dir" && as_dir=.
2539 for ac_exec_ext in '' $ac_executable_extensions; do
2540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2541 ac_cv_prog_CC="${ac_tool_prefix}cc"
2542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2543 break 2
2544 fi
2545 done
2546 done
2547 IFS=$as_save_IFS
2548
2549 fi
2550 fi
2551 CC=$ac_cv_prog_CC
2552 if test -n "$CC"; then
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2554 $as_echo "$CC" >&6; }
2555 else
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2557 $as_echo "no" >&6; }
2558 fi
2559
2560
2561 fi
2562 fi
2563 if test -z "$CC"; then
2564 # Extract the first word of "cc", so it can be a program name with args.
2565 set dummy cc; ac_word=$2
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2567 $as_echo_n "checking for $ac_word... " >&6; }
2568 if ${ac_cv_prog_CC+:} false; then :
2569 $as_echo_n "(cached) " >&6
2570 else
2571 if test -n "$CC"; then
2572 ac_cv_prog_CC="$CC" # Let the user override the test.
2573 else
2574 ac_prog_rejected=no
2575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576 for as_dir in $PATH
2577 do
2578 IFS=$as_save_IFS
2579 test -z "$as_dir" && as_dir=.
2580 for ac_exec_ext in '' $ac_executable_extensions; do
2581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2582 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2583 ac_prog_rejected=yes
2584 continue
2585 fi
2586 ac_cv_prog_CC="cc"
2587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2588 break 2
2589 fi
2590 done
2591 done
2592 IFS=$as_save_IFS
2593
2594 if test $ac_prog_rejected = yes; then
2595 # We found a bogon in the path, so make sure we never use it.
2596 set dummy $ac_cv_prog_CC
2597 shift
2598 if test $# != 0; then
2599 # We chose a different compiler from the bogus one.
2600 # However, it has the same basename, so the bogon will be chosen
2601 # first if we set CC to just the basename; use the full file name.
2602 shift
2603 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2604 fi
2605 fi
2606 fi
2607 fi
2608 CC=$ac_cv_prog_CC
2609 if test -n "$CC"; then
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2611 $as_echo "$CC" >&6; }
2612 else
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2614 $as_echo "no" >&6; }
2615 fi
2616
2617
2618 fi
2619 if test -z "$CC"; then
2620 if test -n "$ac_tool_prefix"; then
2621 for ac_prog in cl.exe
2622 do
2623 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2624 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2626 $as_echo_n "checking for $ac_word... " >&6; }
2627 if ${ac_cv_prog_CC+:} false; then :
2628 $as_echo_n "(cached) " >&6
2629 else
2630 if test -n "$CC"; then
2631 ac_cv_prog_CC="$CC" # Let the user override the test.
2632 else
2633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634 for as_dir in $PATH
2635 do
2636 IFS=$as_save_IFS
2637 test -z "$as_dir" && as_dir=.
2638 for ac_exec_ext in '' $ac_executable_extensions; do
2639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2640 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2642 break 2
2643 fi
2644 done
2645 done
2646 IFS=$as_save_IFS
2647
2648 fi
2649 fi
2650 CC=$ac_cv_prog_CC
2651 if test -n "$CC"; then
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2653 $as_echo "$CC" >&6; }
2654 else
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2656 $as_echo "no" >&6; }
2657 fi
2658
2659
2660 test -n "$CC" && break
2661 done
2662 fi
2663 if test -z "$CC"; then
2664 ac_ct_CC=$CC
2665 for ac_prog in cl.exe
2666 do
2667 # Extract the first word of "$ac_prog", so it can be a program name with args.
2668 set dummy $ac_prog; ac_word=$2
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2670 $as_echo_n "checking for $ac_word... " >&6; }
2671 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2672 $as_echo_n "(cached) " >&6
2673 else
2674 if test -n "$ac_ct_CC"; then
2675 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2676 else
2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678 for as_dir in $PATH
2679 do
2680 IFS=$as_save_IFS
2681 test -z "$as_dir" && as_dir=.
2682 for ac_exec_ext in '' $ac_executable_extensions; do
2683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2684 ac_cv_prog_ac_ct_CC="$ac_prog"
2685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2686 break 2
2687 fi
2688 done
2689 done
2690 IFS=$as_save_IFS
2691
2692 fi
2693 fi
2694 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2695 if test -n "$ac_ct_CC"; then
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2697 $as_echo "$ac_ct_CC" >&6; }
2698 else
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2700 $as_echo "no" >&6; }
2701 fi
2702
2703
2704 test -n "$ac_ct_CC" && break
2705 done
2706
2707 if test "x$ac_ct_CC" = x; then
2708 CC=""
2709 else
2710 case $cross_compiling:$ac_tool_warned in
2711 yes:)
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2713 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2714 ac_tool_warned=yes ;;
2715 esac
2716 CC=$ac_ct_CC
2717 fi
2718 fi
2719
2720 fi
2721
2722
2723 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2724 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2725 as_fn_error $? "no acceptable C compiler found in \$PATH
2726 See \`config.log' for more details" "$LINENO" 5; }
2727
2728 # Provide some information about the compiler.
2729 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2730 set X $ac_compile
2731 ac_compiler=$2
2732 for ac_option in --version -v -V -qversion; do
2733 { { ac_try="$ac_compiler $ac_option >&5"
2734 case "(($ac_try" in
2735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2736 *) ac_try_echo=$ac_try;;
2737 esac
2738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2739 $as_echo "$ac_try_echo"; } >&5
2740 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2741 ac_status=$?
2742 if test -s conftest.err; then
2743 sed '10a\
2744 ... rest of stderr output deleted ...
2745 10q' conftest.err >conftest.er1
2746 cat conftest.er1 >&5
2747 fi
2748 rm -f conftest.er1 conftest.err
2749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2750 test $ac_status = 0; }
2751 done
2752
2753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2754 /* end confdefs.h. */
2755
2756 int
2757 main ()
2758 {
2759
2760 ;
2761 return 0;
2762 }
2763 _ACEOF
2764 ac_clean_files_save=$ac_clean_files
2765 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2766 # Try to create an executable without -o first, disregard a.out.
2767 # It will help us diagnose broken compilers, and finding out an intuition
2768 # of exeext.
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2770 $as_echo_n "checking whether the C compiler works... " >&6; }
2771 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2772
2773 # The possible output files:
2774 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2775
2776 ac_rmfiles=
2777 for ac_file in $ac_files
2778 do
2779 case $ac_file in
2780 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2781 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2782 esac
2783 done
2784 rm -f $ac_rmfiles
2785
2786 if { { ac_try="$ac_link_default"
2787 case "(($ac_try" in
2788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2789 *) ac_try_echo=$ac_try;;
2790 esac
2791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2792 $as_echo "$ac_try_echo"; } >&5
2793 (eval "$ac_link_default") 2>&5
2794 ac_status=$?
2795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2796 test $ac_status = 0; }; then :
2797 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2798 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2799 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2800 # so that the user can short-circuit this test for compilers unknown to
2801 # Autoconf.
2802 for ac_file in $ac_files ''
2803 do
2804 test -f "$ac_file" || continue
2805 case $ac_file in
2806 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2807 ;;
2808 [ab].out )
2809 # We found the default executable, but exeext='' is most
2810 # certainly right.
2811 break;;
2812 *.* )
2813 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2814 then :; else
2815 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2816 fi
2817 # We set ac_cv_exeext here because the later test for it is not
2818 # safe: cross compilers may not add the suffix if given an `-o'
2819 # argument, so we may need to know it at that point already.
2820 # Even if this section looks crufty: it has the advantage of
2821 # actually working.
2822 break;;
2823 * )
2824 break;;
2825 esac
2826 done
2827 test "$ac_cv_exeext" = no && ac_cv_exeext=
2828
2829 else
2830 ac_file=''
2831 fi
2832 if test -z "$ac_file"; then :
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2834 $as_echo "no" >&6; }
2835 $as_echo "$as_me: failed program was:" >&5
2836 sed 's/^/| /' conftest.$ac_ext >&5
2837
2838 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2839 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2840 as_fn_error 77 "C compiler cannot create executables
2841 See \`config.log' for more details" "$LINENO" 5; }
2842 else
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2844 $as_echo "yes" >&6; }
2845 fi
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2847 $as_echo_n "checking for C compiler default output file name... " >&6; }
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2849 $as_echo "$ac_file" >&6; }
2850 ac_exeext=$ac_cv_exeext
2851
2852 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2853 ac_clean_files=$ac_clean_files_save
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2855 $as_echo_n "checking for suffix of executables... " >&6; }
2856 if { { ac_try="$ac_link"
2857 case "(($ac_try" in
2858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2859 *) ac_try_echo=$ac_try;;
2860 esac
2861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2862 $as_echo "$ac_try_echo"; } >&5
2863 (eval "$ac_link") 2>&5
2864 ac_status=$?
2865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2866 test $ac_status = 0; }; then :
2867 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2868 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2869 # work properly (i.e., refer to `conftest.exe'), while it won't with
2870 # `rm'.
2871 for ac_file in conftest.exe conftest conftest.*; do
2872 test -f "$ac_file" || continue
2873 case $ac_file in
2874 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2875 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2876 break;;
2877 * ) break;;
2878 esac
2879 done
2880 else
2881 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2882 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2883 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2884 See \`config.log' for more details" "$LINENO" 5; }
2885 fi
2886 rm -f conftest conftest$ac_cv_exeext
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2888 $as_echo "$ac_cv_exeext" >&6; }
2889
2890 rm -f conftest.$ac_ext
2891 EXEEXT=$ac_cv_exeext
2892 ac_exeext=$EXEEXT
2893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2894 /* end confdefs.h. */
2895 #include <stdio.h>
2896 int
2897 main ()
2898 {
2899 FILE *f = fopen ("conftest.out", "w");
2900 return ferror (f) || fclose (f) != 0;
2901
2902 ;
2903 return 0;
2904 }
2905 _ACEOF
2906 ac_clean_files="$ac_clean_files conftest.out"
2907 # Check that the compiler produces executables we can run. If not, either
2908 # the compiler is broken, or we cross compile.
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2910 $as_echo_n "checking whether we are cross compiling... " >&6; }
2911 if test "$cross_compiling" != yes; then
2912 { { ac_try="$ac_link"
2913 case "(($ac_try" in
2914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915 *) ac_try_echo=$ac_try;;
2916 esac
2917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2918 $as_echo "$ac_try_echo"; } >&5
2919 (eval "$ac_link") 2>&5
2920 ac_status=$?
2921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2922 test $ac_status = 0; }
2923 if { ac_try='./conftest$ac_cv_exeext'
2924 { { case "(($ac_try" in
2925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2926 *) ac_try_echo=$ac_try;;
2927 esac
2928 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2929 $as_echo "$ac_try_echo"; } >&5
2930 (eval "$ac_try") 2>&5
2931 ac_status=$?
2932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2933 test $ac_status = 0; }; }; then
2934 cross_compiling=no
2935 else
2936 if test "$cross_compiling" = maybe; then
2937 cross_compiling=yes
2938 else
2939 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2940 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2941 as_fn_error $? "cannot run C compiled programs.
2942 If you meant to cross compile, use \`--host'.
2943 See \`config.log' for more details" "$LINENO" 5; }
2944 fi
2945 fi
2946 fi
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2948 $as_echo "$cross_compiling" >&6; }
2949
2950 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2951 ac_clean_files=$ac_clean_files_save
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2953 $as_echo_n "checking for suffix of object files... " >&6; }
2954 if ${ac_cv_objext+:} false; then :
2955 $as_echo_n "(cached) " >&6
2956 else
2957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2958 /* end confdefs.h. */
2959
2960 int
2961 main ()
2962 {
2963
2964 ;
2965 return 0;
2966 }
2967 _ACEOF
2968 rm -f conftest.o conftest.obj
2969 if { { ac_try="$ac_compile"
2970 case "(($ac_try" in
2971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972 *) ac_try_echo=$ac_try;;
2973 esac
2974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2975 $as_echo "$ac_try_echo"; } >&5
2976 (eval "$ac_compile") 2>&5
2977 ac_status=$?
2978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2979 test $ac_status = 0; }; then :
2980 for ac_file in conftest.o conftest.obj conftest.*; do
2981 test -f "$ac_file" || continue;
2982 case $ac_file in
2983 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2984 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2985 break;;
2986 esac
2987 done
2988 else
2989 $as_echo "$as_me: failed program was:" >&5
2990 sed 's/^/| /' conftest.$ac_ext >&5
2991
2992 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2994 as_fn_error $? "cannot compute suffix of object files: cannot compile
2995 See \`config.log' for more details" "$LINENO" 5; }
2996 fi
2997 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2998 fi
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3000 $as_echo "$ac_cv_objext" >&6; }
3001 OBJEXT=$ac_cv_objext
3002 ac_objext=$OBJEXT
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3004 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3005 if ${ac_cv_c_compiler_gnu+:} false; then :
3006 $as_echo_n "(cached) " >&6
3007 else
3008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3009 /* end confdefs.h. */
3010
3011 int
3012 main ()
3013 {
3014 #ifndef __GNUC__
3015 choke me
3016 #endif
3017
3018 ;
3019 return 0;
3020 }
3021 _ACEOF
3022 if ac_fn_c_try_compile "$LINENO"; then :
3023 ac_compiler_gnu=yes
3024 else
3025 ac_compiler_gnu=no
3026 fi
3027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3028 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3029
3030 fi
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3032 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3033 if test $ac_compiler_gnu = yes; then
3034 GCC=yes
3035 else
3036 GCC=
3037 fi
3038 ac_test_CFLAGS=${CFLAGS+set}
3039 ac_save_CFLAGS=$CFLAGS
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3041 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3042 if ${ac_cv_prog_cc_g+:} false; then :
3043 $as_echo_n "(cached) " >&6
3044 else
3045 ac_save_c_werror_flag=$ac_c_werror_flag
3046 ac_c_werror_flag=yes
3047 ac_cv_prog_cc_g=no
3048 CFLAGS="-g"
3049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3050 /* end confdefs.h. */
3051
3052 int
3053 main ()
3054 {
3055
3056 ;
3057 return 0;
3058 }
3059 _ACEOF
3060 if ac_fn_c_try_compile "$LINENO"; then :
3061 ac_cv_prog_cc_g=yes
3062 else
3063 CFLAGS=""
3064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3065 /* end confdefs.h. */
3066
3067 int
3068 main ()
3069 {
3070
3071 ;
3072 return 0;
3073 }
3074 _ACEOF
3075 if ac_fn_c_try_compile "$LINENO"; then :
3076
3077 else
3078 ac_c_werror_flag=$ac_save_c_werror_flag
3079 CFLAGS="-g"
3080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3081 /* end confdefs.h. */
3082
3083 int
3084 main ()
3085 {
3086
3087 ;
3088 return 0;
3089 }
3090 _ACEOF
3091 if ac_fn_c_try_compile "$LINENO"; then :
3092 ac_cv_prog_cc_g=yes
3093 fi
3094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3095 fi
3096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3097 fi
3098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3099 ac_c_werror_flag=$ac_save_c_werror_flag
3100 fi
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3102 $as_echo "$ac_cv_prog_cc_g" >&6; }
3103 if test "$ac_test_CFLAGS" = set; then
3104 CFLAGS=$ac_save_CFLAGS
3105 elif test $ac_cv_prog_cc_g = yes; then
3106 if test "$GCC" = yes; then
3107 CFLAGS="-g -O2"
3108 else
3109 CFLAGS="-g"
3110 fi
3111 else
3112 if test "$GCC" = yes; then
3113 CFLAGS="-O2"
3114 else
3115 CFLAGS=
3116 fi
3117 fi
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3119 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3120 if ${ac_cv_prog_cc_c89+:} false; then :
3121 $as_echo_n "(cached) " >&6
3122 else
3123 ac_cv_prog_cc_c89=no
3124 ac_save_CC=$CC
3125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3126 /* end confdefs.h. */
3127 #include <stdarg.h>
3128 #include <stdio.h>
3129 struct stat;
3130 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3131 struct buf { int x; };
3132 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3133 static char *e (p, i)
3134 char **p;
3135 int i;
3136 {
3137 return p[i];
3138 }
3139 static char *f (char * (*g) (char **, int), char **p, ...)
3140 {
3141 char *s;
3142 va_list v;
3143 va_start (v,p);
3144 s = g (p, va_arg (v,int));
3145 va_end (v);
3146 return s;
3147 }
3148
3149 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3150 function prototypes and stuff, but not '\xHH' hex character constants.
3151 These don't provoke an error unfortunately, instead are silently treated
3152 as 'x'. The following induces an error, until -std is added to get
3153 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3154 array size at least. It's necessary to write '\x00'==0 to get something
3155 that's true only with -std. */
3156 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3157
3158 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3159 inside strings and character constants. */
3160 #define FOO(x) 'x'
3161 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3162
3163 int test (int i, double x);
3164 struct s1 {int (*f) (int a);};
3165 struct s2 {int (*f) (double a);};
3166 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3167 int argc;
3168 char **argv;
3169 int
3170 main ()
3171 {
3172 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3173 ;
3174 return 0;
3175 }
3176 _ACEOF
3177 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3178 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3179 do
3180 CC="$ac_save_CC $ac_arg"
3181 if ac_fn_c_try_compile "$LINENO"; then :
3182 ac_cv_prog_cc_c89=$ac_arg
3183 fi
3184 rm -f core conftest.err conftest.$ac_objext
3185 test "x$ac_cv_prog_cc_c89" != "xno" && break
3186 done
3187 rm -f conftest.$ac_ext
3188 CC=$ac_save_CC
3189
3190 fi
3191 # AC_CACHE_VAL
3192 case "x$ac_cv_prog_cc_c89" in
3193 x)
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3195 $as_echo "none needed" >&6; } ;;
3196 xno)
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3198 $as_echo "unsupported" >&6; } ;;
3199 *)
3200 CC="$CC $ac_cv_prog_cc_c89"
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3202 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3203 esac
3204 if test "x$ac_cv_prog_cc_c89" != xno; then :
3205
3206 fi
3207
3208 ac_ext=c
3209 ac_cpp='$CPP $CPPFLAGS'
3210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3213
3214
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
3216 $as_echo_n "checking for inline... " >&6; }
3217 if ${ac_cv_c_inline+:} false; then :
3218 $as_echo_n "(cached) " >&6
3219 else
3220 ac_cv_c_inline=no
3221 for ac_kw in inline __inline__ __inline; do
3222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3223 /* end confdefs.h. */
3224 #ifndef __cplusplus
3225 typedef int foo_t;
3226 static $ac_kw foo_t static_foo () {return 0; }
3227 $ac_kw foo_t foo () {return 0; }
3228 #endif
3229
3230 _ACEOF
3231 if ac_fn_c_try_compile "$LINENO"; then :
3232 ac_cv_c_inline=$ac_kw
3233 fi
3234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3235 test "$ac_cv_c_inline" != no && break
3236 done
3237
3238 fi
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
3240 $as_echo "$ac_cv_c_inline" >&6; }
3241
3242 case $ac_cv_c_inline in
3243 inline | yes) ;;
3244 *)
3245 case $ac_cv_c_inline in
3246 no) ac_val=;;
3247 *) ac_val=$ac_cv_c_inline;;
3248 esac
3249 cat >>confdefs.h <<_ACEOF
3250 #ifndef __cplusplus
3251 #define inline $ac_val
3252 #endif
3253 _ACEOF
3254 ;;
3255 esac
3256
3257
3258 ac_ext=c
3259 ac_cpp='$CPP $CPPFLAGS'
3260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3263 if test -n "$ac_tool_prefix"; then
3264 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3265 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3267 $as_echo_n "checking for $ac_word... " >&6; }
3268 if ${ac_cv_prog_CC+:} false; then :
3269 $as_echo_n "(cached) " >&6
3270 else
3271 if test -n "$CC"; then
3272 ac_cv_prog_CC="$CC" # Let the user override the test.
3273 else
3274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3275 for as_dir in $PATH
3276 do
3277 IFS=$as_save_IFS
3278 test -z "$as_dir" && as_dir=.
3279 for ac_exec_ext in '' $ac_executable_extensions; do
3280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3281 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3283 break 2
3284 fi
3285 done
3286 done
3287 IFS=$as_save_IFS
3288
3289 fi
3290 fi
3291 CC=$ac_cv_prog_CC
3292 if test -n "$CC"; then
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3294 $as_echo "$CC" >&6; }
3295 else
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3297 $as_echo "no" >&6; }
3298 fi
3299
3300
3301 fi
3302 if test -z "$ac_cv_prog_CC"; then
3303 ac_ct_CC=$CC
3304 # Extract the first word of "gcc", so it can be a program name with args.
3305 set dummy gcc; ac_word=$2
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3307 $as_echo_n "checking for $ac_word... " >&6; }
3308 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3309 $as_echo_n "(cached) " >&6
3310 else
3311 if test -n "$ac_ct_CC"; then
3312 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3313 else
3314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315 for as_dir in $PATH
3316 do
3317 IFS=$as_save_IFS
3318 test -z "$as_dir" && as_dir=.
3319 for ac_exec_ext in '' $ac_executable_extensions; do
3320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3321 ac_cv_prog_ac_ct_CC="gcc"
3322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3323 break 2
3324 fi
3325 done
3326 done
3327 IFS=$as_save_IFS
3328
3329 fi
3330 fi
3331 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3332 if test -n "$ac_ct_CC"; then
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3334 $as_echo "$ac_ct_CC" >&6; }
3335 else
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3337 $as_echo "no" >&6; }
3338 fi
3339
3340 if test "x$ac_ct_CC" = x; then
3341 CC=""
3342 else
3343 case $cross_compiling:$ac_tool_warned in
3344 yes:)
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3346 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3347 ac_tool_warned=yes ;;
3348 esac
3349 CC=$ac_ct_CC
3350 fi
3351 else
3352 CC="$ac_cv_prog_CC"
3353 fi
3354
3355 if test -z "$CC"; then
3356 if test -n "$ac_tool_prefix"; then
3357 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3358 set dummy ${ac_tool_prefix}cc; ac_word=$2
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3360 $as_echo_n "checking for $ac_word... " >&6; }
3361 if ${ac_cv_prog_CC+:} false; then :
3362 $as_echo_n "(cached) " >&6
3363 else
3364 if test -n "$CC"; then
3365 ac_cv_prog_CC="$CC" # Let the user override the test.
3366 else
3367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3368 for as_dir in $PATH
3369 do
3370 IFS=$as_save_IFS
3371 test -z "$as_dir" && as_dir=.
3372 for ac_exec_ext in '' $ac_executable_extensions; do
3373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3374 ac_cv_prog_CC="${ac_tool_prefix}cc"
3375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3376 break 2
3377 fi
3378 done
3379 done
3380 IFS=$as_save_IFS
3381
3382 fi
3383 fi
3384 CC=$ac_cv_prog_CC
3385 if test -n "$CC"; then
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3387 $as_echo "$CC" >&6; }
3388 else
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3390 $as_echo "no" >&6; }
3391 fi
3392
3393
3394 fi
3395 fi
3396 if test -z "$CC"; then
3397 # Extract the first word of "cc", so it can be a program name with args.
3398 set dummy cc; ac_word=$2
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3400 $as_echo_n "checking for $ac_word... " >&6; }
3401 if ${ac_cv_prog_CC+:} false; then :
3402 $as_echo_n "(cached) " >&6
3403 else
3404 if test -n "$CC"; then
3405 ac_cv_prog_CC="$CC" # Let the user override the test.
3406 else
3407 ac_prog_rejected=no
3408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3409 for as_dir in $PATH
3410 do
3411 IFS=$as_save_IFS
3412 test -z "$as_dir" && as_dir=.
3413 for ac_exec_ext in '' $ac_executable_extensions; do
3414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3415 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3416 ac_prog_rejected=yes
3417 continue
3418 fi
3419 ac_cv_prog_CC="cc"
3420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3421 break 2
3422 fi
3423 done
3424 done
3425 IFS=$as_save_IFS
3426
3427 if test $ac_prog_rejected = yes; then
3428 # We found a bogon in the path, so make sure we never use it.
3429 set dummy $ac_cv_prog_CC
3430 shift
3431 if test $# != 0; then
3432 # We chose a different compiler from the bogus one.
3433 # However, it has the same basename, so the bogon will be chosen
3434 # first if we set CC to just the basename; use the full file name.
3435 shift
3436 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3437 fi
3438 fi
3439 fi
3440 fi
3441 CC=$ac_cv_prog_CC
3442 if test -n "$CC"; then
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3444 $as_echo "$CC" >&6; }
3445 else
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3447 $as_echo "no" >&6; }
3448 fi
3449
3450
3451 fi
3452 if test -z "$CC"; then
3453 if test -n "$ac_tool_prefix"; then
3454 for ac_prog in cl.exe
3455 do
3456 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3457 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3459 $as_echo_n "checking for $ac_word... " >&6; }
3460 if ${ac_cv_prog_CC+:} false; then :
3461 $as_echo_n "(cached) " >&6
3462 else
3463 if test -n "$CC"; then
3464 ac_cv_prog_CC="$CC" # Let the user override the test.
3465 else
3466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467 for as_dir in $PATH
3468 do
3469 IFS=$as_save_IFS
3470 test -z "$as_dir" && as_dir=.
3471 for ac_exec_ext in '' $ac_executable_extensions; do
3472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3473 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3475 break 2
3476 fi
3477 done
3478 done
3479 IFS=$as_save_IFS
3480
3481 fi
3482 fi
3483 CC=$ac_cv_prog_CC
3484 if test -n "$CC"; then
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3486 $as_echo "$CC" >&6; }
3487 else
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3489 $as_echo "no" >&6; }
3490 fi
3491
3492
3493 test -n "$CC" && break
3494 done
3495 fi
3496 if test -z "$CC"; then
3497 ac_ct_CC=$CC
3498 for ac_prog in cl.exe
3499 do
3500 # Extract the first word of "$ac_prog", so it can be a program name with args.
3501 set dummy $ac_prog; ac_word=$2
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3503 $as_echo_n "checking for $ac_word... " >&6; }
3504 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3505 $as_echo_n "(cached) " >&6
3506 else
3507 if test -n "$ac_ct_CC"; then
3508 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3509 else
3510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3511 for as_dir in $PATH
3512 do
3513 IFS=$as_save_IFS
3514 test -z "$as_dir" && as_dir=.
3515 for ac_exec_ext in '' $ac_executable_extensions; do
3516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3517 ac_cv_prog_ac_ct_CC="$ac_prog"
3518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3519 break 2
3520 fi
3521 done
3522 done
3523 IFS=$as_save_IFS
3524
3525 fi
3526 fi
3527 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3528 if test -n "$ac_ct_CC"; then
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3530 $as_echo "$ac_ct_CC" >&6; }
3531 else
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3533 $as_echo "no" >&6; }
3534 fi
3535
3536
3537 test -n "$ac_ct_CC" && break
3538 done
3539
3540 if test "x$ac_ct_CC" = x; then
3541 CC=""
3542 else
3543 case $cross_compiling:$ac_tool_warned in
3544 yes:)
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3547 ac_tool_warned=yes ;;
3548 esac
3549 CC=$ac_ct_CC
3550 fi
3551 fi
3552
3553 fi
3554
3555
3556 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3558 as_fn_error $? "no acceptable C compiler found in \$PATH
3559 See \`config.log' for more details" "$LINENO" 5; }
3560
3561 # Provide some information about the compiler.
3562 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3563 set X $ac_compile
3564 ac_compiler=$2
3565 for ac_option in --version -v -V -qversion; do
3566 { { ac_try="$ac_compiler $ac_option >&5"
3567 case "(($ac_try" in
3568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3569 *) ac_try_echo=$ac_try;;
3570 esac
3571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3572 $as_echo "$ac_try_echo"; } >&5
3573 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3574 ac_status=$?
3575 if test -s conftest.err; then
3576 sed '10a\
3577 ... rest of stderr output deleted ...
3578 10q' conftest.err >conftest.er1
3579 cat conftest.er1 >&5
3580 fi
3581 rm -f conftest.er1 conftest.err
3582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3583 test $ac_status = 0; }
3584 done
3585
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3587 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3588 if ${ac_cv_c_compiler_gnu+:} false; then :
3589 $as_echo_n "(cached) " >&6
3590 else
3591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3592 /* end confdefs.h. */
3593
3594 int
3595 main ()
3596 {
3597 #ifndef __GNUC__
3598 choke me
3599 #endif
3600
3601 ;
3602 return 0;
3603 }
3604 _ACEOF
3605 if ac_fn_c_try_compile "$LINENO"; then :
3606 ac_compiler_gnu=yes
3607 else
3608 ac_compiler_gnu=no
3609 fi
3610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3611 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3612
3613 fi
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3615 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3616 if test $ac_compiler_gnu = yes; then
3617 GCC=yes
3618 else
3619 GCC=
3620 fi
3621 ac_test_CFLAGS=${CFLAGS+set}
3622 ac_save_CFLAGS=$CFLAGS
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3624 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3625 if ${ac_cv_prog_cc_g+:} false; then :
3626 $as_echo_n "(cached) " >&6
3627 else
3628 ac_save_c_werror_flag=$ac_c_werror_flag
3629 ac_c_werror_flag=yes
3630 ac_cv_prog_cc_g=no
3631 CFLAGS="-g"
3632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3633 /* end confdefs.h. */
3634
3635 int
3636 main ()
3637 {
3638
3639 ;
3640 return 0;
3641 }
3642 _ACEOF
3643 if ac_fn_c_try_compile "$LINENO"; then :
3644 ac_cv_prog_cc_g=yes
3645 else
3646 CFLAGS=""
3647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3648 /* end confdefs.h. */
3649
3650 int
3651 main ()
3652 {
3653
3654 ;
3655 return 0;
3656 }
3657 _ACEOF
3658 if ac_fn_c_try_compile "$LINENO"; then :
3659
3660 else
3661 ac_c_werror_flag=$ac_save_c_werror_flag
3662 CFLAGS="-g"
3663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3664 /* end confdefs.h. */
3665
3666 int
3667 main ()
3668 {
3669
3670 ;
3671 return 0;
3672 }
3673 _ACEOF
3674 if ac_fn_c_try_compile "$LINENO"; then :
3675 ac_cv_prog_cc_g=yes
3676 fi
3677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3678 fi
3679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3680 fi
3681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3682 ac_c_werror_flag=$ac_save_c_werror_flag
3683 fi
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3685 $as_echo "$ac_cv_prog_cc_g" >&6; }
3686 if test "$ac_test_CFLAGS" = set; then
3687 CFLAGS=$ac_save_CFLAGS
3688 elif test $ac_cv_prog_cc_g = yes; then
3689 if test "$GCC" = yes; then
3690 CFLAGS="-g -O2"
3691 else
3692 CFLAGS="-g"
3693 fi
3694 else
3695 if test "$GCC" = yes; then
3696 CFLAGS="-O2"
3697 else
3698 CFLAGS=
3699 fi
3700 fi
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3702 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3703 if ${ac_cv_prog_cc_c89+:} false; then :
3704 $as_echo_n "(cached) " >&6
3705 else
3706 ac_cv_prog_cc_c89=no
3707 ac_save_CC=$CC
3708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3709 /* end confdefs.h. */
3710 #include <stdarg.h>
3711 #include <stdio.h>
3712 struct stat;
3713 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3714 struct buf { int x; };
3715 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3716 static char *e (p, i)
3717 char **p;
3718 int i;
3719 {
3720 return p[i];
3721 }
3722 static char *f (char * (*g) (char **, int), char **p, ...)
3723 {
3724 char *s;
3725 va_list v;
3726 va_start (v,p);
3727 s = g (p, va_arg (v,int));
3728 va_end (v);
3729 return s;
3730 }
3731
3732 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3733 function prototypes and stuff, but not '\xHH' hex character constants.
3734 These don't provoke an error unfortunately, instead are silently treated
3735 as 'x'. The following induces an error, until -std is added to get
3736 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3737 array size at least. It's necessary to write '\x00'==0 to get something
3738 that's true only with -std. */
3739 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3740
3741 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3742 inside strings and character constants. */
3743 #define FOO(x) 'x'
3744 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3745
3746 int test (int i, double x);
3747 struct s1 {int (*f) (int a);};
3748 struct s2 {int (*f) (double a);};
3749 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3750 int argc;
3751 char **argv;
3752 int
3753 main ()
3754 {
3755 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3756 ;
3757 return 0;
3758 }
3759 _ACEOF
3760 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3761 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3762 do
3763 CC="$ac_save_CC $ac_arg"
3764 if ac_fn_c_try_compile "$LINENO"; then :
3765 ac_cv_prog_cc_c89=$ac_arg
3766 fi
3767 rm -f core conftest.err conftest.$ac_objext
3768 test "x$ac_cv_prog_cc_c89" != "xno" && break
3769 done
3770 rm -f conftest.$ac_ext
3771 CC=$ac_save_CC
3772
3773 fi
3774 # AC_CACHE_VAL
3775 case "x$ac_cv_prog_cc_c89" in
3776 x)
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3778 $as_echo "none needed" >&6; } ;;
3779 xno)
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3781 $as_echo "unsupported" >&6; } ;;
3782 *)
3783 CC="$CC $ac_cv_prog_cc_c89"
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3785 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3786 esac
3787 if test "x$ac_cv_prog_cc_c89" != xno; then :
3788
3789 fi
3790
3791 ac_ext=c
3792 ac_cpp='$CPP $CPPFLAGS'
3793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3796
3797 ac_ext=cpp
3798 ac_cpp='$CXXCPP $CPPFLAGS'
3799 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3800 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3801 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3802 if test -z "$CXX"; then
3803 if test -n "$CCC"; then
3804 CXX=$CCC
3805 else
3806 if test -n "$ac_tool_prefix"; then
3807 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3808 do
3809 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3810 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3812 $as_echo_n "checking for $ac_word... " >&6; }
3813 if ${ac_cv_prog_CXX+:} false; then :
3814 $as_echo_n "(cached) " >&6
3815 else
3816 if test -n "$CXX"; then
3817 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3818 else
3819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3820 for as_dir in $PATH
3821 do
3822 IFS=$as_save_IFS
3823 test -z "$as_dir" && as_dir=.
3824 for ac_exec_ext in '' $ac_executable_extensions; do
3825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3826 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3828 break 2
3829 fi
3830 done
3831 done
3832 IFS=$as_save_IFS
3833
3834 fi
3835 fi
3836 CXX=$ac_cv_prog_CXX
3837 if test -n "$CXX"; then
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3839 $as_echo "$CXX" >&6; }
3840 else
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3842 $as_echo "no" >&6; }
3843 fi
3844
3845
3846 test -n "$CXX" && break
3847 done
3848 fi
3849 if test -z "$CXX"; then
3850 ac_ct_CXX=$CXX
3851 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3852 do
3853 # Extract the first word of "$ac_prog", so it can be a program name with args.
3854 set dummy $ac_prog; ac_word=$2
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3856 $as_echo_n "checking for $ac_word... " >&6; }
3857 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3858 $as_echo_n "(cached) " >&6
3859 else
3860 if test -n "$ac_ct_CXX"; then
3861 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3862 else
3863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864 for as_dir in $PATH
3865 do
3866 IFS=$as_save_IFS
3867 test -z "$as_dir" && as_dir=.
3868 for ac_exec_ext in '' $ac_executable_extensions; do
3869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3870 ac_cv_prog_ac_ct_CXX="$ac_prog"
3871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3872 break 2
3873 fi
3874 done
3875 done
3876 IFS=$as_save_IFS
3877
3878 fi
3879 fi
3880 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3881 if test -n "$ac_ct_CXX"; then
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3883 $as_echo "$ac_ct_CXX" >&6; }
3884 else
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3886 $as_echo "no" >&6; }
3887 fi
3888
3889
3890 test -n "$ac_ct_CXX" && break
3891 done
3892
3893 if test "x$ac_ct_CXX" = x; then
3894 CXX="g++"
3895 else
3896 case $cross_compiling:$ac_tool_warned in
3897 yes:)
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3899 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3900 ac_tool_warned=yes ;;
3901 esac
3902 CXX=$ac_ct_CXX
3903 fi
3904 fi
3905
3906 fi
3907 fi
3908 # Provide some information about the compiler.
3909 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3910 set X $ac_compile
3911 ac_compiler=$2
3912 for ac_option in --version -v -V -qversion; do
3913 { { ac_try="$ac_compiler $ac_option >&5"
3914 case "(($ac_try" in
3915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916 *) ac_try_echo=$ac_try;;
3917 esac
3918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3919 $as_echo "$ac_try_echo"; } >&5
3920 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3921 ac_status=$?
3922 if test -s conftest.err; then
3923 sed '10a\
3924 ... rest of stderr output deleted ...
3925 10q' conftest.err >conftest.er1
3926 cat conftest.er1 >&5
3927 fi
3928 rm -f conftest.er1 conftest.err
3929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3930 test $ac_status = 0; }
3931 done
3932
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3934 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3935 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3936 $as_echo_n "(cached) " >&6
3937 else
3938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3939 /* end confdefs.h. */
3940
3941 int
3942 main ()
3943 {
3944 #ifndef __GNUC__
3945 choke me
3946 #endif
3947
3948 ;
3949 return 0;
3950 }
3951 _ACEOF
3952 if ac_fn_cxx_try_compile "$LINENO"; then :
3953 ac_compiler_gnu=yes
3954 else
3955 ac_compiler_gnu=no
3956 fi
3957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3958 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3959
3960 fi
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3962 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3963 if test $ac_compiler_gnu = yes; then
3964 GXX=yes
3965 else
3966 GXX=
3967 fi
3968 ac_test_CXXFLAGS=${CXXFLAGS+set}
3969 ac_save_CXXFLAGS=$CXXFLAGS
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3971 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3972 if ${ac_cv_prog_cxx_g+:} false; then :
3973 $as_echo_n "(cached) " >&6
3974 else
3975 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3976 ac_cxx_werror_flag=yes
3977 ac_cv_prog_cxx_g=no
3978 CXXFLAGS="-g"
3979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3980 /* end confdefs.h. */
3981
3982 int
3983 main ()
3984 {
3985
3986 ;
3987 return 0;
3988 }
3989 _ACEOF
3990 if ac_fn_cxx_try_compile "$LINENO"; then :
3991 ac_cv_prog_cxx_g=yes
3992 else
3993 CXXFLAGS=""
3994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3995 /* end confdefs.h. */
3996
3997 int
3998 main ()
3999 {
4000
4001 ;
4002 return 0;
4003 }
4004 _ACEOF
4005 if ac_fn_cxx_try_compile "$LINENO"; then :
4006
4007 else
4008 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4009 CXXFLAGS="-g"
4010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h. */
4012
4013 int
4014 main ()
4015 {
4016
4017 ;
4018 return 0;
4019 }
4020 _ACEOF
4021 if ac_fn_cxx_try_compile "$LINENO"; then :
4022 ac_cv_prog_cxx_g=yes
4023 fi
4024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4025 fi
4026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4027 fi
4028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4029 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4030 fi
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4032 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4033 if test "$ac_test_CXXFLAGS" = set; then
4034 CXXFLAGS=$ac_save_CXXFLAGS
4035 elif test $ac_cv_prog_cxx_g = yes; then
4036 if test "$GXX" = yes; then
4037 CXXFLAGS="-g -O2"
4038 else
4039 CXXFLAGS="-g"
4040 fi
4041 else
4042 if test "$GXX" = yes; then
4043 CXXFLAGS="-O2"
4044 else
4045 CXXFLAGS=
4046 fi
4047 fi
4048 ac_ext=c
4049 ac_cpp='$CPP $CPPFLAGS'
4050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4053
4054 # Find a good install program. We prefer a C program (faster),
4055 # so one script is as good as another. But avoid the broken or
4056 # incompatible versions:
4057 # SysV /etc/install, /usr/sbin/install
4058 # SunOS /usr/etc/install
4059 # IRIX /sbin/install
4060 # AIX /bin/install
4061 # AmigaOS /C/install, which installs bootblocks on floppy discs
4062 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4063 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4064 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4065 # OS/2's system install, which has a completely different semantic
4066 # ./install, which can be erroneously created by make from ./install.sh.
4067 # Reject install programs that cannot install multiple files.
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4069 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4070 if test -z "$INSTALL"; then
4071 if ${ac_cv_path_install+:} false; then :
4072 $as_echo_n "(cached) " >&6
4073 else
4074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4075 for as_dir in $PATH
4076 do
4077 IFS=$as_save_IFS
4078 test -z "$as_dir" && as_dir=.
4079 # Account for people who put trailing slashes in PATH elements.
4080 case $as_dir/ in #((
4081 ./ | .// | /[cC]/* | \
4082 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4083 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4084 /usr/ucb/* ) ;;
4085 *)
4086 # OSF1 and SCO ODT 3.0 have their own names for install.
4087 # Don't use installbsd from OSF since it installs stuff as root
4088 # by default.
4089 for ac_prog in ginstall scoinst install; do
4090 for ac_exec_ext in '' $ac_executable_extensions; do
4091 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4092 if test $ac_prog = install &&
4093 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4094 # AIX install. It has an incompatible calling convention.
4095 :
4096 elif test $ac_prog = install &&
4097 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4098 # program-specific install script used by HP pwplus--don't use.
4099 :
4100 else
4101 rm -rf conftest.one conftest.two conftest.dir
4102 echo one > conftest.one
4103 echo two > conftest.two
4104 mkdir conftest.dir
4105 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4106 test -s conftest.one && test -s conftest.two &&
4107 test -s conftest.dir/conftest.one &&
4108 test -s conftest.dir/conftest.two
4109 then
4110 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4111 break 3
4112 fi
4113 fi
4114 fi
4115 done
4116 done
4117 ;;
4118 esac
4119
4120 done
4121 IFS=$as_save_IFS
4122
4123 rm -rf conftest.one conftest.two conftest.dir
4124
4125 fi
4126 if test "${ac_cv_path_install+set}" = set; then
4127 INSTALL=$ac_cv_path_install
4128 else
4129 # As a last resort, use the slow shell script. Don't cache a
4130 # value for INSTALL within a source directory, because that will
4131 # break other packages using the cache if that directory is
4132 # removed, or if the value is a relative name.
4133 INSTALL=$ac_install_sh
4134 fi
4135 fi
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4137 $as_echo "$INSTALL" >&6; }
4138
4139 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4140 # It thinks the first close brace ends the variable substitution.
4141 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4142
4143 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4144
4145 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4146
4147
4148 if test -n "$GXX"; then
4149 CXXFLAGS="$CXXFLAGS -Wall"
4150 fi
4151
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler is gcc 4 or greater" >&5
4153 $as_echo_n "checking whether the compiler is gcc 4 or greater... " >&6; }
4154 if test x"$GXX" = xno; then
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4156 $as_echo "no" >&6; }
4157 else
4158 # On some distros, there are snapshots available as gcc4
4159 if test -z "$ac_cv_prog_CC" || test x"$CC" = xgcc4; then
4160 our_gcc="$CC"
4161 else
4162 our_gcc="$ac_cv_prog_CC"
4163 fi
4164
4165 ncrack_gcc_major_version=0
4166 case `$our_gcc --version | sed -e 's,\..*,.,' -e q` in
4167 *4.)
4168 ncrack_gcc_major_version=4
4169 ;;
4170 esac
4171
4172 if test 4 -ge $ncrack_gcc_major_version; then
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4174 $as_echo "yes" >&6; }
4175 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
4176 else
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4178 $as_echo "no" >&6; }
4179 fi
4180 fi
4181
4182
4183
4184 # Remember that all following tests will run with this CXXFLAGS by default
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __func__" >&5
4186 $as_echo_n "checking for __func__... " >&6; }
4187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4188 /* end confdefs.h. */
4189
4190 #include <stdio.h>
4191
4192 int
4193 main ()
4194 {
4195 printf ("%s", __func__);
4196 ;
4197 return 0;
4198 }
4199 _ACEOF
4200 if ac_fn_c_try_compile "$LINENO"; then :
4201 have_func=yes
4202 else
4203 have_func=no
4204 fi
4205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4206 if test "x$have_func" = "xyes"; then
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4208 $as_echo "yes" >&6; }
4209 else
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4211 $as_echo "no" >&6; }
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __FUNCTION__" >&5
4213 $as_echo_n "checking for __FUNCTION__... " >&6; }
4214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4215 /* end confdefs.h. */
4216
4217 #include <stdio.h>
4218
4219 int
4220 main ()
4221 {
4222 printf ("%s", __FUNCTION__);
4223 ;
4224 return 0;
4225 }
4226 _ACEOF
4227 if ac_fn_c_try_compile "$LINENO"; then :
4228 have_function=yes
4229 else
4230 have_function=no
4231 fi
4232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4233 if test "x$have_function" = "xyes"; then
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4235 $as_echo "yes" >&6; }
4236
4237 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
4238
4239 else
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4241 $as_echo "no" >&6; }
4242
4243 $as_echo "#define __func__ __FILE__" >>confdefs.h
4244
4245 fi
4246 fi
4247
4248
4249 ac_ext=c
4250 ac_cpp='$CPP $CPPFLAGS'
4251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4255 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4256 # On Suns, sometimes $CPP names a directory.
4257 if test -n "$CPP" && test -d "$CPP"; then
4258 CPP=
4259 fi
4260 if test -z "$CPP"; then
4261 if ${ac_cv_prog_CPP+:} false; then :
4262 $as_echo_n "(cached) " >&6
4263 else
4264 # Double quotes because CPP needs to be expanded
4265 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4266 do
4267 ac_preproc_ok=false
4268 for ac_c_preproc_warn_flag in '' yes
4269 do
4270 # Use a header file that comes with gcc, so configuring glibc
4271 # with a fresh cross-compiler works.
4272 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4273 # <limits.h> exists even on freestanding compilers.
4274 # On the NeXT, cc -E runs the code through the compiler's parser,
4275 # not just through cpp. "Syntax error" is here to catch this case.
4276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4277 /* end confdefs.h. */
4278 #ifdef __STDC__
4279 # include <limits.h>
4280 #else
4281 # include <assert.h>
4282 #endif
4283 Syntax error
4284 _ACEOF
4285 if ac_fn_c_try_cpp "$LINENO"; then :
4286
4287 else
4288 # Broken: fails on valid input.
4289 continue
4290 fi
4291 rm -f conftest.err conftest.i conftest.$ac_ext
4292
4293 # OK, works on sane cases. Now check whether nonexistent headers
4294 # can be detected and how.
4295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4296 /* end confdefs.h. */
4297 #include <ac_nonexistent.h>
4298 _ACEOF
4299 if ac_fn_c_try_cpp "$LINENO"; then :
4300 # Broken: success on invalid input.
4301 continue
4302 else
4303 # Passes both tests.
4304 ac_preproc_ok=:
4305 break
4306 fi
4307 rm -f conftest.err conftest.i conftest.$ac_ext
4308
4309 done
4310 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4311 rm -f conftest.i conftest.err conftest.$ac_ext
4312 if $ac_preproc_ok; then :
4313 break
4314 fi
4315
4316 done
4317 ac_cv_prog_CPP=$CPP
4318
4319 fi
4320 CPP=$ac_cv_prog_CPP
4321 else
4322 ac_cv_prog_CPP=$CPP
4323 fi
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4325 $as_echo "$CPP" >&6; }
4326 ac_preproc_ok=false
4327 for ac_c_preproc_warn_flag in '' yes
4328 do
4329 # Use a header file that comes with gcc, so configuring glibc
4330 # with a fresh cross-compiler works.
4331 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4332 # <limits.h> exists even on freestanding compilers.
4333 # On the NeXT, cc -E runs the code through the compiler's parser,
4334 # not just through cpp. "Syntax error" is here to catch this case.
4335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4336 /* end confdefs.h. */
4337 #ifdef __STDC__
4338 # include <limits.h>
4339 #else
4340 # include <assert.h>
4341 #endif
4342 Syntax error
4343 _ACEOF
4344 if ac_fn_c_try_cpp "$LINENO"; then :
4345
4346 else
4347 # Broken: fails on valid input.
4348 continue
4349 fi
4350 rm -f conftest.err conftest.i conftest.$ac_ext
4351
4352 # OK, works on sane cases. Now check whether nonexistent headers
4353 # can be detected and how.
4354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4355 /* end confdefs.h. */
4356 #include <ac_nonexistent.h>
4357 _ACEOF
4358 if ac_fn_c_try_cpp "$LINENO"; then :
4359 # Broken: success on invalid input.
4360 continue
4361 else
4362 # Passes both tests.
4363 ac_preproc_ok=:
4364 break
4365 fi
4366 rm -f conftest.err conftest.i conftest.$ac_ext
4367
4368 done
4369 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4370 rm -f conftest.i conftest.err conftest.$ac_ext
4371 if $ac_preproc_ok; then :
4372
4373 else
4374 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4375 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4376 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4377 See \`config.log' for more details" "$LINENO" 5; }
4378 fi
4379
4380 ac_ext=c
4381 ac_cpp='$CPP $CPPFLAGS'
4382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4385
4386
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4388 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4389 if ${ac_cv_path_GREP+:} false; then :
4390 $as_echo_n "(cached) " >&6
4391 else
4392 if test -z "$GREP"; then
4393 ac_path_GREP_found=false
4394 # Loop through the user's path and test for each of PROGNAME-LIST
4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4397 do
4398 IFS=$as_save_IFS
4399 test -z "$as_dir" && as_dir=.
4400 for ac_prog in grep ggrep; do
4401 for ac_exec_ext in '' $ac_executable_extensions; do
4402 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4403 as_fn_executable_p "$ac_path_GREP" || continue
4404 # Check for GNU ac_path_GREP and select it if it is found.
4405 # Check for GNU $ac_path_GREP
4406 case `"$ac_path_GREP" --version 2>&1` in
4407 *GNU*)
4408 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4409 *)
4410 ac_count=0
4411 $as_echo_n 0123456789 >"conftest.in"
4412 while :
4413 do
4414 cat "conftest.in" "conftest.in" >"conftest.tmp"
4415 mv "conftest.tmp" "conftest.in"
4416 cp "conftest.in" "conftest.nl"
4417 $as_echo 'GREP' >> "conftest.nl"
4418 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4419 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4420 as_fn_arith $ac_count + 1 && ac_count=$as_val
4421 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4422 # Best one so far, save it but keep looking for a better one
4423 ac_cv_path_GREP="$ac_path_GREP"
4424 ac_path_GREP_max=$ac_count
4425 fi
4426 # 10*(2^10) chars as input seems more than enough
4427 test $ac_count -gt 10 && break
4428 done
4429 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4430 esac
4431
4432 $ac_path_GREP_found && break 3
4433 done
4434 done
4435 done
4436 IFS=$as_save_IFS
4437 if test -z "$ac_cv_path_GREP"; then
4438 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4439 fi
4440 else
4441 ac_cv_path_GREP=$GREP
4442 fi
4443
4444 fi
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4446 $as_echo "$ac_cv_path_GREP" >&6; }
4447 GREP="$ac_cv_path_GREP"
4448
4449
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4451 $as_echo_n "checking for egrep... " >&6; }
4452 if ${ac_cv_path_EGREP+:} false; then :
4453 $as_echo_n "(cached) " >&6
4454 else
4455 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4456 then ac_cv_path_EGREP="$GREP -E"
4457 else
4458 if test -z "$EGREP"; then
4459 ac_path_EGREP_found=false
4460 # Loop through the user's path and test for each of PROGNAME-LIST
4461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4463 do
4464 IFS=$as_save_IFS
4465 test -z "$as_dir" && as_dir=.
4466 for ac_prog in egrep; do
4467 for ac_exec_ext in '' $ac_executable_extensions; do
4468 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4469 as_fn_executable_p "$ac_path_EGREP" || continue
4470 # Check for GNU ac_path_EGREP and select it if it is found.
4471 # Check for GNU $ac_path_EGREP
4472 case `"$ac_path_EGREP" --version 2>&1` in
4473 *GNU*)
4474 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4475 *)
4476 ac_count=0
4477 $as_echo_n 0123456789 >"conftest.in"
4478 while :
4479 do
4480 cat "conftest.in" "conftest.in" >"conftest.tmp"
4481 mv "conftest.tmp" "conftest.in"
4482 cp "conftest.in" "conftest.nl"
4483 $as_echo 'EGREP' >> "conftest.nl"
4484 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4485 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4486 as_fn_arith $ac_count + 1 && ac_count=$as_val
4487 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4488 # Best one so far, save it but keep looking for a better one
4489 ac_cv_path_EGREP="$ac_path_EGREP"
4490 ac_path_EGREP_max=$ac_count
4491 fi
4492 # 10*(2^10) chars as input seems more than enough
4493 test $ac_count -gt 10 && break
4494 done
4495 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4496 esac
4497
4498 $ac_path_EGREP_found && break 3
4499 done
4500 done
4501 done
4502 IFS=$as_save_IFS
4503 if test -z "$ac_cv_path_EGREP"; then
4504 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4505 fi
4506 else
4507 ac_cv_path_EGREP=$EGREP
4508 fi
4509
4510 fi
4511 fi
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4513 $as_echo "$ac_cv_path_EGREP" >&6; }
4514 EGREP="$ac_cv_path_EGREP"
4515
4516
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4518 $as_echo_n "checking for ANSI C header files... " >&6; }
4519 if ${ac_cv_header_stdc+:} false; then :
4520 $as_echo_n "(cached) " >&6
4521 else
4522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h. */
4524 #include <stdlib.h>
4525 #include <stdarg.h>
4526 #include <string.h>
4527 #include <float.h>
4528
4529 int
4530 main ()
4531 {
4532
4533 ;
4534 return 0;
4535 }
4536 _ACEOF
4537 if ac_fn_c_try_compile "$LINENO"; then :
4538 ac_cv_header_stdc=yes
4539 else
4540 ac_cv_header_stdc=no
4541 fi
4542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4543
4544 if test $ac_cv_header_stdc = yes; then
4545 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547 /* end confdefs.h. */
4548 #include <string.h>
4549
4550 _ACEOF
4551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4552 $EGREP "memchr" >/dev/null 2>&1; then :
4553
4554 else
4555 ac_cv_header_stdc=no
4556 fi
4557 rm -f conftest*
4558
4559 fi
4560
4561 if test $ac_cv_header_stdc = yes; then
4562 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4564 /* end confdefs.h. */
4565 #include <stdlib.h>
4566
4567 _ACEOF
4568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4569 $EGREP "free" >/dev/null 2>&1; then :
4570
4571 else
4572 ac_cv_header_stdc=no
4573 fi
4574 rm -f conftest*
4575
4576 fi
4577
4578 if test $ac_cv_header_stdc = yes; then
4579 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4580 if test "$cross_compiling" = yes; then :
4581 :
4582 else
4583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4584 /* end confdefs.h. */
4585 #include <ctype.h>
4586 #include <stdlib.h>
4587 #if ((' ' & 0x0FF) == 0x020)
4588 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4589 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4590 #else
4591 # define ISLOWER(c) \
4592 (('a' <= (c) && (c) <= 'i') \
4593 || ('j' <= (c) && (c) <= 'r') \
4594 || ('s' <= (c) && (c) <= 'z'))
4595 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4596 #endif
4597
4598 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4599 int
4600 main ()
4601 {
4602 int i;
4603 for (i = 0; i < 256; i++)
4604 if (XOR (islower (i), ISLOWER (i))
4605 || toupper (i) != TOUPPER (i))
4606 return 2;
4607 return 0;
4608 }
4609 _ACEOF
4610 if ac_fn_c_try_run "$LINENO"; then :
4611
4612 else
4613 ac_cv_header_stdc=no
4614 fi
4615 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4616 conftest.$ac_objext conftest.beam conftest.$ac_ext
4617 fi
4618
4619 fi
4620 fi
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4622 $as_echo "$ac_cv_header_stdc" >&6; }
4623 if test $ac_cv_header_stdc = yes; then
4624
4625 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4626
4627 fi
4628
4629 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4630 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4631 inttypes.h stdint.h unistd.h
4632 do :
4633 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4634 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4635 "
4636 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4637 cat >>confdefs.h <<_ACEOF
4638 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4639 _ACEOF
4640
4641 fi
4642
4643 done
4644
4645
4646 for ac_header in pwd.h termios.h sys/sockio.h
4647 do :
4648 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4649 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4650 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4651 cat >>confdefs.h <<_ACEOF
4652 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4653 _ACEOF
4654
4655 fi
4656
4657 done
4658
4659
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
4661 $as_echo_n "checking for library containing setsockopt... " >&6; }
4662 if ${ac_cv_search_setsockopt+:} false; then :
4663 $as_echo_n "(cached) " >&6
4664 else
4665 ac_func_search_save_LIBS=$LIBS
4666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4667 /* end confdefs.h. */
4668
4669 /* Override any GCC internal prototype to avoid an error.
4670 Use char because int might match the return type of a GCC
4671 builtin and then its argument prototype would still apply. */
4672 #ifdef __cplusplus
4673 extern "C"
4674 #endif
4675 char setsockopt ();
4676 int
4677 main ()
4678 {
4679 return setsockopt ();
4680 ;
4681 return 0;
4682 }
4683 _ACEOF
4684 for ac_lib in '' socket; do
4685 if test -z "$ac_lib"; then
4686 ac_res="none required"
4687 else
4688 ac_res=-l$ac_lib
4689 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4690 fi
4691 if ac_fn_c_try_link "$LINENO"; then :
4692 ac_cv_search_setsockopt=$ac_res
4693 fi
4694 rm -f core conftest.err conftest.$ac_objext \
4695 conftest$ac_exeext
4696 if ${ac_cv_search_setsockopt+:} false; then :
4697 break
4698 fi
4699 done
4700 if ${ac_cv_search_setsockopt+:} false; then :
4701
4702 else
4703 ac_cv_search_setsockopt=no
4704 fi
4705 rm conftest.$ac_ext
4706 LIBS=$ac_func_search_save_LIBS
4707 fi
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
4709 $as_echo "$ac_cv_search_setsockopt" >&6; }
4710 ac_res=$ac_cv_search_setsockopt
4711 if test "$ac_res" != no; then :
4712 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4713
4714 fi
4715
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
4717 $as_echo_n "checking for library containing gethostbyname... " >&6; }
4718 if ${ac_cv_search_gethostbyname+:} false; then :
4719 $as_echo_n "(cached) " >&6
4720 else
4721 ac_func_search_save_LIBS=$LIBS
4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723 /* end confdefs.h. */
4724
4725 /* Override any GCC internal prototype to avoid an error.
4726 Use char because int might match the return type of a GCC
4727 builtin and then its argument prototype would still apply. */
4728 #ifdef __cplusplus
4729 extern "C"
4730 #endif
4731 char gethostbyname ();
4732 int
4733 main ()
4734 {
4735 return gethostbyname ();
4736 ;
4737 return 0;
4738 }
4739 _ACEOF
4740 for ac_lib in '' nsl; do
4741 if test -z "$ac_lib"; then
4742 ac_res="none required"
4743 else
4744 ac_res=-l$ac_lib
4745 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4746 fi
4747 if ac_fn_c_try_link "$LINENO"; then :
4748 ac_cv_search_gethostbyname=$ac_res
4749 fi
4750 rm -f core conftest.err conftest.$ac_objext \
4751 conftest$ac_exeext
4752 if ${ac_cv_search_gethostbyname+:} false; then :
4753 break
4754 fi
4755 done
4756 if ${ac_cv_search_gethostbyname+:} false; then :
4757
4758 else
4759 ac_cv_search_gethostbyname=no
4760 fi
4761 rm conftest.$ac_ext
4762 LIBS=$ac_func_search_save_LIBS
4763 fi
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
4765 $as_echo "$ac_cv_search_gethostbyname" >&6; }
4766 ac_res=$ac_cv_search_gethostbyname
4767 if test "$ac_res" != no; then :
4768 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4769
4770 fi
4771
4772
4773
4774
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr{} has sa_len member" >&5
4776 $as_echo_n "checking if sockaddr{} has sa_len member... " >&6; }
4777 if ${ac_cv_sockaddr_has_sa_len+:} false; then :
4778 $as_echo_n "(cached) " >&6
4779 else
4780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4781 /* end confdefs.h. */
4782
4783 #include <sys/types.h>
4784 #include <sys/socket.h>
4785 int
4786 main ()
4787 {
4788 unsigned int i = sizeof(((struct sockaddr *)0)->sa_len)
4789 ;
4790 return 0;
4791 }
4792 _ACEOF
4793 if ac_fn_c_try_compile "$LINENO"; then :
4794 ac_cv_sockaddr_has_sa_len=yes
4795 else
4796 ac_cv_sockaddr_has_sa_len=no
4797 fi
4798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4799 fi
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sockaddr_has_sa_len" >&5
4801 $as_echo "$ac_cv_sockaddr_has_sa_len" >&6; }
4802 if test $ac_cv_sockaddr_has_sa_len = yes ; then
4803
4804 $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
4805
4806 fi
4807
4808 #dnl check endedness
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4810 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4811 if ${ac_cv_c_bigendian+:} false; then :
4812 $as_echo_n "(cached) " >&6
4813 else
4814 ac_cv_c_bigendian=unknown
4815 # See if we're dealing with a universal compiler.
4816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4817 /* end confdefs.h. */
4818 #ifndef __APPLE_CC__
4819 not a universal capable compiler
4820 #endif
4821 typedef int dummy;
4822
4823 _ACEOF
4824 if ac_fn_c_try_compile "$LINENO"; then :
4825
4826 # Check for potential -arch flags. It is not universal unless
4827 # there are at least two -arch flags with different values.
4828 ac_arch=
4829 ac_prev=
4830 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4831 if test -n "$ac_prev"; then
4832 case $ac_word in
4833 i?86 | x86_64 | ppc | ppc64)
4834 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4835 ac_arch=$ac_word
4836 else
4837 ac_cv_c_bigendian=universal
4838 break
4839 fi
4840 ;;
4841 esac
4842 ac_prev=
4843 elif test "x$ac_word" = "x-arch"; then
4844 ac_prev=arch
4845 fi
4846 done
4847 fi
4848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4849 if test $ac_cv_c_bigendian = unknown; then
4850 # See if sys/param.h defines the BYTE_ORDER macro.
4851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4852 /* end confdefs.h. */
4853 #include <sys/types.h>
4854 #include <sys/param.h>
4855
4856 int
4857 main ()
4858 {
4859 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4860 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4861 && LITTLE_ENDIAN)
4862 bogus endian macros
4863 #endif
4864
4865 ;
4866 return 0;
4867 }
4868 _ACEOF
4869 if ac_fn_c_try_compile "$LINENO"; then :
4870 # It does; now see whether it defined to BIG_ENDIAN or not.
4871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4872 /* end confdefs.h. */
4873 #include <sys/types.h>
4874 #include <sys/param.h>
4875
4876 int
4877 main ()
4878 {
4879 #if BYTE_ORDER != BIG_ENDIAN
4880 not big endian
4881 #endif
4882
4883 ;
4884 return 0;
4885 }
4886 _ACEOF
4887 if ac_fn_c_try_compile "$LINENO"; then :
4888 ac_cv_c_bigendian=yes
4889 else
4890 ac_cv_c_bigendian=no
4891 fi
4892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4893 fi
4894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4895 fi
4896 if test $ac_cv_c_bigendian = unknown; then
4897 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4899 /* end confdefs.h. */
4900 #include <limits.h>
4901
4902 int
4903 main ()
4904 {
4905 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4906 bogus endian macros
4907 #endif
4908
4909 ;
4910 return 0;
4911 }
4912 _ACEOF
4913 if ac_fn_c_try_compile "$LINENO"; then :
4914 # It does; now see whether it defined to _BIG_ENDIAN or not.
4915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4916 /* end confdefs.h. */
4917 #include <limits.h>
4918
4919 int
4920 main ()
4921 {
4922 #ifndef _BIG_ENDIAN
4923 not big endian
4924 #endif
4925
4926 ;
4927 return 0;
4928 }
4929 _ACEOF
4930 if ac_fn_c_try_compile "$LINENO"; then :
4931 ac_cv_c_bigendian=yes
4932 else
4933 ac_cv_c_bigendian=no
4934 fi
4935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4936 fi
4937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4938 fi
4939 if test $ac_cv_c_bigendian = unknown; then
4940 # Compile a test program.
4941 if test "$cross_compiling" = yes; then :
4942 # Try to guess by grepping values from an object file.
4943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4944 /* end confdefs.h. */
4945 short int ascii_mm[] =
4946 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4947 short int ascii_ii[] =
4948 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4949 int use_ascii (int i) {
4950 return ascii_mm[i] + ascii_ii[i];
4951 }
4952 short int ebcdic_ii[] =
4953 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4954 short int ebcdic_mm[] =
4955 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4956 int use_ebcdic (int i) {
4957 return ebcdic_mm[i] + ebcdic_ii[i];
4958 }
4959 extern int foo;
4960
4961 int
4962 main ()
4963 {
4964 return use_ascii (foo) == use_ebcdic (foo);
4965 ;
4966 return 0;
4967 }
4968 _ACEOF
4969 if ac_fn_c_try_compile "$LINENO"; then :
4970 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4971 ac_cv_c_bigendian=yes
4972 fi
4973 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4974 if test "$ac_cv_c_bigendian" = unknown; then
4975 ac_cv_c_bigendian=no
4976 else
4977 # finding both strings is unlikely to happen, but who knows?
4978 ac_cv_c_bigendian=unknown
4979 fi
4980 fi
4981 fi
4982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4983 else
4984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4985 /* end confdefs.h. */
4986 $ac_includes_default
4987 int
4988 main ()
4989 {
4990
4991 /* Are we little or big endian? From Harbison&Steele. */
4992 union
4993 {
4994 long int l;
4995 char c[sizeof (long int)];
4996 } u;
4997 u.l = 1;
4998 return u.c[sizeof (long int) - 1] == 1;
4999
5000 ;
5001 return 0;
5002 }
5003 _ACEOF
5004 if ac_fn_c_try_run "$LINENO"; then :
5005 ac_cv_c_bigendian=no
5006 else
5007 ac_cv_c_bigendian=yes
5008 fi
5009 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5010 conftest.$ac_objext conftest.beam conftest.$ac_ext
5011 fi
5012
5013 fi
5014 fi
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5016 $as_echo "$ac_cv_c_bigendian" >&6; }
5017 case $ac_cv_c_bigendian in #(
5018 yes)
5019 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5020 ;; #(
5021 no)
5022 ;; #(
5023 universal)
5024
5025 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5026
5027 ;; #(
5028 *)
5029 as_fn_error $? "unknown endianness
5030 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5031 esac
5032
5033
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct in_addr is a wacky huge structure (some Sun boxes)" >&5
5035 $as_echo_n "checking if struct in_addr is a wacky huge structure (some Sun boxes)... " >&6; }
5036
5037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5038 /* end confdefs.h. */
5039 #include <netinet/in.h>
5040 int
5041 main ()
5042 {
5043 struct in_addr i; i._S_un._S_addr;
5044 ;
5045 return 0;
5046 }
5047 _ACEOF
5048 if ac_fn_c_try_compile "$LINENO"; then :
5049 \
5050 $as_echo "#define IN_ADDR_DEEPSTRUCT 1" >>confdefs.h
5051 \
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5053 $as_echo "yes" >&6; }
5054 else
5055 \
5056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5057 /* end confdefs.h. */
5058 #include <sys/types.h>
5059 #include <netinet/in.h>
5060 int
5061 main ()
5062 {
5063 struct in_addr i; i.S_un.S_addr;
5064 ;
5065 return 0;
5066 }
5067 _ACEOF
5068 if ac_fn_c_try_compile "$LINENO"; then :
5069 \
5070
5071 $as_echo "#define IN_ADDR_DEEPSTRUCT 1" >>confdefs.h
5072 \
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5074 $as_echo "yes" >&6; }
5075 else
5076 \
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5078 $as_echo "no" >&6; };
5079 fi
5080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5081 fi
5082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5083
5084
5085 for ac_func in strerror
5086 do :
5087 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
5088 if test "x$ac_cv_func_strerror" = xyes; then :
5089 cat >>confdefs.h <<_ACEOF
5090 #define HAVE_STRERROR 1
5091 _ACEOF
5092
5093 fi
5094 done
5095
5096 for ac_func in signal
5097 do :
5098 ac_fn_c_check_func "$LINENO" "signal" "ac_cv_func_signal"
5099 if test "x$ac_cv_func_signal" = xyes; then :
5100 cat >>confdefs.h <<_ACEOF
5101 #define HAVE_SIGNAL 1
5102 _ACEOF
5103
5104 fi
5105 done
5106
5107
5108
5109
5110
5111
5112
5113 ac_ext=cpp
5114 ac_cpp='$CXXCPP $CPPFLAGS'
5115 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5116 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5117 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5118
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of 6th argument to recvfrom()" >&5
5120 $as_echo_n "checking for type of 6th argument to recvfrom()... " >&6; }
5121 recvfrom6_t=
5122 for t in socklen_t int; do
5123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5124 /* end confdefs.h. */
5125
5126 #include <stdio.h>
5127 #include <stdlib.h>
5128 #include <sys/types.h>
5129 #include <sys/socket.h>
5130 int
5131 main ()
5132 {
5133
5134 $t arg;
5135 recvfrom (0, NULL, 0, 0, NULL, &arg);
5136 ;
5137 return 0;
5138 }
5139 _ACEOF
5140 if ac_fn_cxx_try_compile "$LINENO"; then :
5141
5142 recvfrom6_t="$t"
5143 break
5144 fi
5145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5146 done
5147
5148 if test "x$recvfrom6_t" = x; then
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find type for 6th argument to recvfrom(). Using socklen_t ptr" >&5
5150 $as_echo "$as_me: WARNING: Cannot find type for 6th argument to recvfrom(). Using socklen_t ptr" >&2;}
5151 recvfrom6_t="socklen_t"
5152 fi
5153
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $recvfrom6_t" >&5
5155 $as_echo "$recvfrom6_t" >&6; }
5156
5157 cat >>confdefs.h <<_ACEOF
5158 #define recvfrom6_t $recvfrom6_t
5159 _ACEOF
5160
5161 ac_ext=c
5162 ac_cpp='$CPP $CPPFLAGS'
5163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5166
5167
5168
5169
5170 # We test whether they specified openssl desires explicitly
5171 use_openssl="yes"
5172 specialssldir=""
5173
5174 # Check whether --with-openssl was given.
5175 if test "${with_openssl+set}" = set; then :
5176 withval=$with_openssl; case "$with_openssl" in
5177 yes)
5178 ;;
5179 no)
5180 use_openssl="no"
5181 ;;
5182 *)
5183 specialssldir="$with_openssl"
5184 CPPFLAGS="$CPPFLAGS -I$with_openssl/include"
5185 LDFLAGS="$LDFLAGS -L$with_openssl/lib"
5186 ;;
5187 esac
5188
5189 fi
5190
5191
5192 # If they didn't specify it, we try to find it
5193 if test "$use_openssl" = "yes" -a -z "$specialssldir"; then
5194 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
5195 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
5196
5197 else
5198 use_openssl="no"
5199 if test "$with_openssl" = "yes"; then
5200 as_fn_error $? "OpenSSL was explicitly requested but openssl/ssl.h was not found. Try the --with-openssl=DIR argument to give the location of OpenSSL or run configure with --without-openssl." "$LINENO" 5
5201 fi
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed to find openssl/ssl.h so OpenSSL will not be used. If it is installed you can try the --with-openssl=DIR argument" >&5
5203 $as_echo "$as_me: WARNING: Failed to find openssl/ssl.h so OpenSSL will not be used. If it is installed you can try the --with-openssl=DIR argument" >&2;}
5204
5205 fi
5206
5207
5208
5209 # use_openssl="yes" given explicitly in next 2 rules to avoid adding lib to $LIBS
5210 if test "$use_openssl" = "yes"; then
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BIO_int_ctrl in -lcrypto" >&5
5212 $as_echo_n "checking for BIO_int_ctrl in -lcrypto... " >&6; }
5213 if ${ac_cv_lib_crypto_BIO_int_ctrl+:} false; then :
5214 $as_echo_n "(cached) " >&6
5215 else
5216 ac_check_lib_save_LIBS=$LIBS
5217 LIBS="-lcrypto $LIBS"
5218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5219 /* end confdefs.h. */
5220
5221 /* Override any GCC internal prototype to avoid an error.
5222 Use char because int might match the return type of a GCC
5223 builtin and then its argument prototype would still apply. */
5224 #ifdef __cplusplus
5225 extern "C"
5226 #endif
5227 char BIO_int_ctrl ();
5228 int
5229 main ()
5230 {
5231 return BIO_int_ctrl ();
5232 ;
5233 return 0;
5234 }
5235 _ACEOF
5236 if ac_fn_c_try_link "$LINENO"; then :
5237 ac_cv_lib_crypto_BIO_int_ctrl=yes
5238 else
5239 ac_cv_lib_crypto_BIO_int_ctrl=no
5240 fi
5241 rm -f core conftest.err conftest.$ac_objext \
5242 conftest$ac_exeext conftest.$ac_ext
5243 LIBS=$ac_check_lib_save_LIBS
5244 fi
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_BIO_int_ctrl" >&5
5246 $as_echo "$ac_cv_lib_crypto_BIO_int_ctrl" >&6; }
5247 if test "x$ac_cv_lib_crypto_BIO_int_ctrl" = xyes; then :
5248 use_openssl="yes"
5249 else
5250 use_openssl="no"
5251 if test "$with_openssl" = "yes"; then
5252 as_fn_error $? "OpenSSL was explicitly requested but libcrypto was not found. Try the --with-openssl=DIR argument to give the location of OpenSSL or run configure with --without-openssl." "$LINENO" 5
5253 fi
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed to find libcrypto so OpenSSL will not be used. If it is installed you can try the --with-openssl=DIR argument" >&5
5255 $as_echo "$as_me: WARNING: Failed to find libcrypto so OpenSSL will not be used. If it is installed you can try the --with-openssl=DIR argument" >&2;}
5256
5257 fi
5258
5259 fi
5260
5261 if test "$use_openssl" = "yes"; then
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
5263 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
5264 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
5265 $as_echo_n "(cached) " >&6
5266 else
5267 ac_check_lib_save_LIBS=$LIBS
5268 LIBS="-lssl -lcrypto $LIBS"
5269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5270 /* end confdefs.h. */
5271
5272 /* Override any GCC internal prototype to avoid an error.
5273 Use char because int might match the return type of a GCC
5274 builtin and then its argument prototype would still apply. */
5275 #ifdef __cplusplus
5276 extern "C"
5277 #endif
5278 char SSL_new ();
5279 int
5280 main ()
5281 {
5282 return SSL_new ();
5283 ;
5284 return 0;
5285 }
5286 _ACEOF
5287 if ac_fn_c_try_link "$LINENO"; then :
5288 ac_cv_lib_ssl_SSL_new=yes
5289 else
5290 ac_cv_lib_ssl_SSL_new=no
5291 fi
5292 rm -f core conftest.err conftest.$ac_objext \
5293 conftest$ac_exeext conftest.$ac_ext
5294 LIBS=$ac_check_lib_save_LIBS
5295 fi
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
5297 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
5298 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
5299 use_openssl="yes"
5300 else
5301 use_openssl="no"
5302 if test "$with_openssl" = "yes"; then
5303 as_fn_error $? "OpenSSL was explicitly requested but libssl was not found. Try the --with-openssl=DIR argument to give the location of OpenSSL or run configure with --without-openssl." "$LINENO" 5
5304 fi
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed to find libssl so OpenSSL will not be used. If it is installed you can try the --with-openssl=DIR argument" >&5
5306 $as_echo "$as_me: WARNING: Failed to find libssl so OpenSSL will not be used. If it is installed you can try the --with-openssl=DIR argument" >&2;}
5307 fi
5308
5309 fi
5310 fi
5311
5312 OPENSSL_LIBS=
5313 if test "$use_openssl" = "yes"; then
5314
5315
5316 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
5317
5318 OPENSSL_LIBS="-lssl -lcrypto"
5319 fi
5320
5321
5322
5323
5324 # NBASE
5325
5326 # Check whether --with-libnbase was given.
5327 if test "${with_libnbase+set}" = set; then :
5328 withval=$with_libnbase; case "$with_libnbase" in
5329 yes)
5330 ;;
5331 *)
5332 NBASEDIR="$with_libnbase"
5333 NBASE_BUILD=""
5334 ;;
5335 esac
5336 else
5337 NBASE_BUILD="nbase_build"
5338 NBASEDIR="nbase"
5339
5340 fi
5341
5342
5343 LDFLAGS="$LDFLAGS -L$NBASEDIR"
5344 CPPFLAGS="$CPPFLAGS -I$NBASEDIR"
5345 LIBNBASE_LIBS="-lnbase"
5346
5347
5348
5349
5350
5351
5352
5353 subdirs="$subdirs nbase"
5354
5355
5356
5357 # NSOCK
5358 NSOCKDIR="nsock"
5359 NSOCK_BUILD="nsock_build"
5360
5361 # Check whether --with-libnsock was given.
5362 if test "${with_libnsock+set}" = set; then :
5363 withval=$with_libnsock; case "$with_libnsock" in
5364 yes)
5365 ;;
5366 *)
5367 NSOCKDIR="$with_libnsock"
5368 NSOCK_BUILD=""
5369 ;;
5370 esac
5371
5372 fi
5373
5374
5375 LDFLAGS="$LDFLAGS -L$NSOCKDIR/src"
5376 CPPFLAGS="$CPPFLAGS -I$NSOCKDIR/include"
5377 LIBNSOCK_LIBS="-lnsock"
5378
5379
5380
5381
5382
5383
5384 subdirs="$subdirs nsock/src"
5385
5386
5387
5388 # Modules
5389 MODULES_BUILD="modules_build"
5390
5391
5392
5393 OPENSSHLIB_DIR=
5394 OPENSSHLIB_BUILD=
5395 OPENSSH_LIB=
5396
5397 if test "$use_openssl" = "yes"; then
5398 # OPENSSHLIB
5399 OPENSSHLIB_DIR="opensshlib"
5400 OPENSSHLIB_BUILD="opensshlib_build"
5401
5402 # Check whether --with-libopenssh was given.
5403 if test "${with_libopenssh+set}" = set; then :
5404 withval=$with_libopenssh; case "$with_libopenssh" in
5405 yes)
5406 ;;
5407 *)
5408 OPENSSHLIB_DIR="$with_libopenssh"
5409 OPENSSHLIB_BUILD=""
5410 ;;
5411 esac
5412
5413 fi
5414
5415
5416 LDFLAGS="$LDFLAGS -L$OPENSSHLIB_DIR"
5417 CPPFLAGS="$CPPFLAGS -I$OPENSSHLIB_DIR"
5418 OPENSSH_LIB="-lopenssh"
5419 subdirs="$subdirs opensshlib"
5420
5421
5422 # The following modules rely on crypto functions which rely on OpenSSL, so
5423 # build them only in case the system has OpenSSL.
5424 MODULES_SRCS="ncrack_ssh.cc ncrack_smb.cc ncrack_smb2.cc ncrack_rdp.cc ncrack_sip.cc \
5425 ncrack_psql.cc ncrack_mysql.cc ncrack_winrm.cc ncrack_mongodb.cc"
5426 MODULES_OBJS="ncrack_ssh.o ncrack_smb.o ncrack_smb2.o ncrack_rdp.o ncrack_sip.o \
5427 ncrack_psql.o ncrack_mysql.o ncrack_winrm.o ncrack_mongodb.o"
5428
5429 fi
5430
5431 MODULES_SRCS="$MODULES_SRCS ncrack_ftp.cc ncrack_telnet.cc ncrack_http.cc \
5432 ncrack_pop3.cc ncrack_vnc.cc ncrack_redis.cc ncrack_owa.cc \
5433 ncrack_imap.cc ncrack_cassandra.cc ncrack_mssql.cc ncrack_cvs.cc \
5434 ncrack_wordpress.cc ncrack_joomla.cc ncrack_dicom.cc ncrack_mqtt.cc"
5435 MODULES_OBJS="$MODULES_OBJS ncrack_ftp.o ncrack_telnet.o ncrack_http.o \
5436 ncrack_pop3.o ncrack_vnc.o ncrack_redis.o ncrack_owa.o \
5437 ncrack_imap.o ncrack_cassandra.o ncrack_mssql.o ncrack_cvs.o \
5438 ncrack_wordpress.o ncrack_joomla.o ncrack_dicom.o ncrack_mqtt.o"
5439
5440
5441
5442
5443
5444
5445
5446
5447 CPPFLAGS="$CPPFLAGS -Imodules"
5448
5449
5450
5451
5452 ac_config_files="$ac_config_files Makefile modules/Makefile"
5453
5454 cat >confcache <<\_ACEOF
5455 # This file is a shell script that caches the results of configure
5456 # tests run on this system so they can be shared between configure
5457 # scripts and configure runs, see configure's option --config-cache.
5458 # It is not useful on other systems. If it contains results you don't
5459 # want to keep, you may remove or edit it.
5460 #
5461 # config.status only pays attention to the cache file if you give it
5462 # the --recheck option to rerun configure.
5463 #
5464 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5465 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5466 # following values.
5467
5468 _ACEOF
5469
5470 # The following way of writing the cache mishandles newlines in values,
5471 # but we know of no workaround that is simple, portable, and efficient.
5472 # So, we kill variables containing newlines.
5473 # Ultrix sh set writes to stderr and can't be redirected directly,
5474 # and sets the high bit in the cache file unless we assign to the vars.
5475 (
5476 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5477 eval ac_val=\$$ac_var
5478 case $ac_val in #(
5479 *${as_nl}*)
5480 case $ac_var in #(
5481 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5482 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5483 esac
5484 case $ac_var in #(
5485 _ | IFS | as_nl) ;; #(
5486 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5487 *) { eval $ac_var=; unset $ac_var;} ;;
5488 esac ;;
5489 esac
5490 done
5491
5492 (set) 2>&1 |
5493 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5494 *${as_nl}ac_space=\ *)
5495 # `set' does not quote correctly, so add quotes: double-quote
5496 # substitution turns \\\\ into \\, and sed turns \\ into \.
5497 sed -n \
5498 "s/'/'\\\\''/g;
5499 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5500 ;; #(
5501 *)
5502 # `set' quotes correctly as required by POSIX, so do not add quotes.
5503 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5504 ;;
5505 esac |
5506 sort
5507 ) |
5508 sed '
5509 /^ac_cv_env_/b end
5510 t clear
5511 :clear
5512 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5513 t end
5514 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5515 :end' >>confcache
5516 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5517 if test -w "$cache_file"; then
5518 if test "x$cache_file" != "x/dev/null"; then
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5520 $as_echo "$as_me: updating cache $cache_file" >&6;}
5521 if test ! -f "$cache_file" || test -h "$cache_file"; then
5522 cat confcache >"$cache_file"
5523 else
5524 case $cache_file in #(
5525 */* | ?:*)
5526 mv -f confcache "$cache_file"$$ &&
5527 mv -f "$cache_file"$$ "$cache_file" ;; #(
5528 *)
5529 mv -f confcache "$cache_file" ;;
5530 esac
5531 fi
5532 fi
5533 else
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5535 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5536 fi
5537 fi
5538 rm -f confcache
5539
5540 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5541 # Let make expand exec_prefix.
5542 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5543
5544 DEFS=-DHAVE_CONFIG_H
5545
5546 ac_libobjs=
5547 ac_ltlibobjs=
5548 U=
5549 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5550 # 1. Remove the extension, and $U if already installed.
5551 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5552 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5553 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5554 # will be set to the directory where LIBOBJS objects are built.
5555 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5556 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5557 done
5558 LIBOBJS=$ac_libobjs
5559
5560 LTLIBOBJS=$ac_ltlibobjs
5561
5562
5563
5564
5565 : "${CONFIG_STATUS=./config.status}"
5566 ac_write_fail=0
5567 ac_clean_files_save=$ac_clean_files
5568 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5570 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5571 as_write_fail=0
5572 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5573 #! $SHELL
5574 # Generated by $as_me.
5575 # Run this file to recreate the current configuration.
5576 # Compiler output produced by configure, useful for debugging
5577 # configure, is in config.log if it exists.
5578
5579 debug=false
5580 ac_cs_recheck=false
5581 ac_cs_silent=false
5582
5583 SHELL=\${CONFIG_SHELL-$SHELL}
5584 export SHELL
5585 _ASEOF
5586 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5587 ## -------------------- ##
5588 ## M4sh Initialization. ##
5589 ## -------------------- ##
5590
5591 # Be more Bourne compatible
5592 DUALCASE=1; export DUALCASE # for MKS sh
5593 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5594 emulate sh
5595 NULLCMD=:
5596 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5597 # is contrary to our usage. Disable this feature.
5598 alias -g '${1+"$@"}'='"$@"'
5599 setopt NO_GLOB_SUBST
5600 else
5601 case `(set -o) 2>/dev/null` in #(
5602 *posix*) :
5603 set -o posix ;; #(
5604 *) :
5605 ;;
5606 esac
5607 fi
5608
5609
5610 as_nl='
5611 '
5612 export as_nl
5613 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5614 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5615 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5616 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5617 # Prefer a ksh shell builtin over an external printf program on Solaris,
5618 # but without wasting forks for bash or zsh.
5619 if test -z "$BASH_VERSION$ZSH_VERSION" \
5620 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5621 as_echo='print -r --'
5622 as_echo_n='print -rn --'
5623 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5624 as_echo='printf %s\n'
5625 as_echo_n='printf %s'
5626 else
5627 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5628 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5629 as_echo_n='/usr/ucb/echo -n'
5630 else
5631 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5632 as_echo_n_body='eval
5633 arg=$1;
5634 case $arg in #(
5635 *"$as_nl"*)
5636 expr "X$arg" : "X\\(.*\\)$as_nl";
5637 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5638 esac;
5639 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5640 '
5641 export as_echo_n_body
5642 as_echo_n='sh -c $as_echo_n_body as_echo'
5643 fi
5644 export as_echo_body
5645 as_echo='sh -c $as_echo_body as_echo'
5646 fi
5647
5648 # The user is always right.
5649 if test "${PATH_SEPARATOR+set}" != set; then
5650 PATH_SEPARATOR=:
5651 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5652 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5653 PATH_SEPARATOR=';'
5654 }
5655 fi
5656
5657
5658 # IFS
5659 # We need space, tab and new line, in precisely that order. Quoting is
5660 # there to prevent editors from complaining about space-tab.
5661 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5662 # splitting by setting IFS to empty value.)
5663 IFS=" "" $as_nl"
5664
5665 # Find who we are. Look in the path if we contain no directory separator.
5666 as_myself=
5667 case $0 in #((
5668 *[\\/]* ) as_myself=$0 ;;
5669 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5670 for as_dir in $PATH
5671 do
5672 IFS=$as_save_IFS
5673 test -z "$as_dir" && as_dir=.
5674 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5675 done
5676 IFS=$as_save_IFS
5677
5678 ;;
5679 esac
5680 # We did not find ourselves, most probably we were run as `sh COMMAND'
5681 # in which case we are not to be found in the path.
5682 if test "x$as_myself" = x; then
5683 as_myself=$0
5684 fi
5685 if test ! -f "$as_myself"; then
5686 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5687 exit 1
5688 fi
5689
5690 # Unset variables that we do not need and which cause bugs (e.g. in
5691 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5692 # suppresses any "Segmentation fault" message there. '((' could
5693 # trigger a bug in pdksh 5.2.14.
5694 for as_var in BASH_ENV ENV MAIL MAILPATH
5695 do eval test x\${$as_var+set} = xset \
5696 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5697 done
5698 PS1='$ '
5699 PS2='> '
5700 PS4='+ '
5701
5702 # NLS nuisances.
5703 LC_ALL=C
5704 export LC_ALL
5705 LANGUAGE=C
5706 export LANGUAGE
5707
5708 # CDPATH.
5709 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5710
5711
5712 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5713 # ----------------------------------------
5714 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5715 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5716 # script with STATUS, using 1 if that was 0.
5717 as_fn_error ()
5718 {
5719 as_status=$1; test $as_status -eq 0 && as_status=1
5720 if test "$4"; then
5721 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5722 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5723 fi
5724 $as_echo "$as_me: error: $2" >&2
5725 as_fn_exit $as_status
5726 } # as_fn_error
5727
5728
5729 # as_fn_set_status STATUS
5730 # -----------------------
5731 # Set $? to STATUS, without forking.
5732 as_fn_set_status ()
5733 {
5734 return $1
5735 } # as_fn_set_status
5736
5737 # as_fn_exit STATUS
5738 # -----------------
5739 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5740 as_fn_exit ()
5741 {
5742 set +e
5743 as_fn_set_status $1
5744 exit $1
5745 } # as_fn_exit
5746
5747 # as_fn_unset VAR
5748 # ---------------
5749 # Portably unset VAR.
5750 as_fn_unset ()
5751 {
5752 { eval $1=; unset $1;}
5753 }
5754 as_unset=as_fn_unset
5755 # as_fn_append VAR VALUE
5756 # ----------------------
5757 # Append the text in VALUE to the end of the definition contained in VAR. Take
5758 # advantage of any shell optimizations that allow amortized linear growth over
5759 # repeated appends, instead of the typical quadratic growth present in naive
5760 # implementations.
5761 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5762 eval 'as_fn_append ()
5763 {
5764 eval $1+=\$2
5765 }'
5766 else
5767 as_fn_append ()
5768 {
5769 eval $1=\$$1\$2
5770 }
5771 fi # as_fn_append
5772
5773 # as_fn_arith ARG...
5774 # ------------------
5775 # Perform arithmetic evaluation on the ARGs, and store the result in the
5776 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5777 # must be portable across $(()) and expr.
5778 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5779 eval 'as_fn_arith ()
5780 {
5781 as_val=$(( $* ))
5782 }'
5783 else
5784 as_fn_arith ()
5785 {
5786 as_val=`expr "$@" || test $? -eq 1`
5787 }
5788 fi # as_fn_arith
5789
5790
5791 if expr a : '\(a\)' >/dev/null 2>&1 &&
5792 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5793 as_expr=expr
5794 else
5795 as_expr=false
5796 fi
5797
5798 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5799 as_basename=basename
5800 else
5801 as_basename=false
5802 fi
5803
5804 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5805 as_dirname=dirname
5806 else
5807 as_dirname=false
5808 fi
5809
5810 as_me=`$as_basename -- "$0" ||
5811 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5812 X"$0" : 'X\(//\)$' \| \
5813 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5814 $as_echo X/"$0" |
5815 sed '/^.*\/\([^/][^/]*\)\/*$/{
5816 s//\1/
5817 q
5818 }
5819 /^X\/\(\/\/\)$/{
5820 s//\1/
5821 q
5822 }
5823 /^X\/\(\/\).*/{
5824 s//\1/
5825 q
5826 }
5827 s/.*/./; q'`
5828
5829 # Avoid depending upon Character Ranges.
5830 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5831 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5832 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5833 as_cr_digits='0123456789'
5834 as_cr_alnum=$as_cr_Letters$as_cr_digits
5835
5836 ECHO_C= ECHO_N= ECHO_T=
5837 case `echo -n x` in #(((((
5838 -n*)
5839 case `echo 'xy\c'` in
5840 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5841 xy) ECHO_C='\c';;
5842 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5843 ECHO_T=' ';;
5844 esac;;
5845 *)
5846 ECHO_N='-n';;
5847 esac
5848
5849 rm -f conf$$ conf$$.exe conf$$.file
5850 if test -d conf$$.dir; then
5851 rm -f conf$$.dir/conf$$.file
5852 else
5853 rm -f conf$$.dir
5854 mkdir conf$$.dir 2>/dev/null
5855 fi
5856 if (echo >conf$$.file) 2>/dev/null; then
5857 if ln -s conf$$.file conf$$ 2>/dev/null; then
5858 as_ln_s='ln -s'
5859 # ... but there are two gotchas:
5860 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5861 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5862 # In both cases, we have to default to `cp -pR'.
5863 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5864 as_ln_s='cp -pR'
5865 elif ln conf$$.file conf$$ 2>/dev/null; then
5866 as_ln_s=ln
5867 else
5868 as_ln_s='cp -pR'
5869 fi
5870 else
5871 as_ln_s='cp -pR'
5872 fi
5873 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5874 rmdir conf$$.dir 2>/dev/null
5875
5876
5877 # as_fn_mkdir_p
5878 # -------------
5879 # Create "$as_dir" as a directory, including parents if necessary.
5880 as_fn_mkdir_p ()
5881 {
5882
5883 case $as_dir in #(
5884 -*) as_dir=./$as_dir;;
5885 esac
5886 test -d "$as_dir" || eval $as_mkdir_p || {
5887 as_dirs=
5888 while :; do
5889 case $as_dir in #(
5890 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5891 *) as_qdir=$as_dir;;
5892 esac
5893 as_dirs="'$as_qdir' $as_dirs"
5894 as_dir=`$as_dirname -- "$as_dir" ||
5895 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5896 X"$as_dir" : 'X\(//\)[^/]' \| \
5897 X"$as_dir" : 'X\(//\)$' \| \
5898 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5899 $as_echo X"$as_dir" |
5900 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5901 s//\1/
5902 q
5903 }
5904 /^X\(\/\/\)[^/].*/{
5905 s//\1/
5906 q
5907 }
5908 /^X\(\/\/\)$/{
5909 s//\1/
5910 q
5911 }
5912 /^X\(\/\).*/{
5913 s//\1/
5914 q
5915 }
5916 s/.*/./; q'`
5917 test -d "$as_dir" && break
5918 done
5919 test -z "$as_dirs" || eval "mkdir $as_dirs"
5920 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5921
5922
5923 } # as_fn_mkdir_p
5924 if mkdir -p . 2>/dev/null; then
5925 as_mkdir_p='mkdir -p "$as_dir"'
5926 else
5927 test -d ./-p && rmdir ./-p
5928 as_mkdir_p=false
5929 fi
5930
5931
5932 # as_fn_executable_p FILE
5933 # -----------------------
5934 # Test if FILE is an executable regular file.
5935 as_fn_executable_p ()
5936 {
5937 test -f "$1" && test -x "$1"
5938 } # as_fn_executable_p
5939 as_test_x='test -x'
5940 as_executable_p=as_fn_executable_p
5941
5942 # Sed expression to map a string onto a valid CPP name.
5943 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5944
5945 # Sed expression to map a string onto a valid variable name.
5946 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5947
5948
5949 exec 6>&1
5950 ## ----------------------------------- ##
5951 ## Main body of $CONFIG_STATUS script. ##
5952 ## ----------------------------------- ##
5953 _ASEOF
5954 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5955
5956 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5957 # Save the log message, to keep $0 and so on meaningful, and to
5958 # report actual input values of CONFIG_FILES etc. instead of their
5959 # values after options handling.
5960 ac_log="
5961 This file was extended by $as_me, which was
5962 generated by GNU Autoconf 2.69. Invocation command line was
5963
5964 CONFIG_FILES = $CONFIG_FILES
5965 CONFIG_HEADERS = $CONFIG_HEADERS
5966 CONFIG_LINKS = $CONFIG_LINKS
5967 CONFIG_COMMANDS = $CONFIG_COMMANDS
5968 $ $0 $@
5969
5970 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5971 "
5972
5973 _ACEOF
5974
5975 case $ac_config_files in *"
5976 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5977 esac
5978
5979 case $ac_config_headers in *"
5980 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5981 esac
5982
5983
5984 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5985 # Files that config.status was made for.
5986 config_files="$ac_config_files"
5987 config_headers="$ac_config_headers"
5988
5989 _ACEOF
5990
5991 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5992 ac_cs_usage="\
5993 \`$as_me' instantiates files and other configuration actions
5994 from templates according to the current configuration. Unless the files
5995 and actions are specified as TAGs, all are instantiated by default.
5996
5997 Usage: $0 [OPTION]... [TAG]...
5998
5999 -h, --help print this help, then exit
6000 -V, --version print version number and configuration settings, then exit
6001 --config print configuration, then exit
6002 -q, --quiet, --silent
6003 do not print progress messages
6004 -d, --debug don't remove temporary files
6005 --recheck update $as_me by reconfiguring in the same conditions
6006 --file=FILE[:TEMPLATE]
6007 instantiate the configuration file FILE
6008 --header=FILE[:TEMPLATE]
6009 instantiate the configuration header FILE
6010
6011 Configuration files:
6012 $config_files
6013
6014 Configuration headers:
6015 $config_headers
6016
6017 Report bugs to the package provider."
6018
6019 _ACEOF
6020 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6021 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6022 ac_cs_version="\\
6023 config.status
6024 configured by $0, generated by GNU Autoconf 2.69,
6025 with options \\"\$ac_cs_config\\"
6026
6027 Copyright (C) 2012 Free Software Foundation, Inc.
6028 This config.status script is free software; the Free Software Foundation
6029 gives unlimited permission to copy, distribute and modify it."
6030
6031 ac_pwd='$ac_pwd'
6032 srcdir='$srcdir'
6033 INSTALL='$INSTALL'
6034 test -n "\$AWK" || AWK=awk
6035 _ACEOF
6036
6037 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6038 # The default lists apply if the user does not specify any file.
6039 ac_need_defaults=:
6040 while test $# != 0
6041 do
6042 case $1 in
6043 --*=?*)
6044 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6045 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6046 ac_shift=:
6047 ;;
6048 --*=)
6049 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6050 ac_optarg=
6051 ac_shift=:
6052 ;;
6053 *)
6054 ac_option=$1
6055 ac_optarg=$2
6056 ac_shift=shift
6057 ;;
6058 esac
6059
6060 case $ac_option in
6061 # Handling of the options.
6062 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6063 ac_cs_recheck=: ;;
6064 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6065 $as_echo "$ac_cs_version"; exit ;;
6066 --config | --confi | --conf | --con | --co | --c )
6067 $as_echo "$ac_cs_config"; exit ;;
6068 --debug | --debu | --deb | --de | --d | -d )
6069 debug=: ;;
6070 --file | --fil | --fi | --f )
6071 $ac_shift
6072 case $ac_optarg in
6073 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6074 '') as_fn_error $? "missing file argument" ;;
6075 esac
6076 as_fn_append CONFIG_FILES " '$ac_optarg'"
6077 ac_need_defaults=false;;
6078 --header | --heade | --head | --hea )
6079 $ac_shift
6080 case $ac_optarg in
6081 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6082 esac
6083 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6084 ac_need_defaults=false;;
6085 --he | --h)
6086 # Conflict between --help and --header
6087 as_fn_error $? "ambiguous option: \`$1'
6088 Try \`$0 --help' for more information.";;
6089 --help | --hel | -h )
6090 $as_echo "$ac_cs_usage"; exit ;;
6091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6092 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6093 ac_cs_silent=: ;;
6094
6095 # This is an error.
6096 -*) as_fn_error $? "unrecognized option: \`$1'
6097 Try \`$0 --help' for more information." ;;
6098
6099 *) as_fn_append ac_config_targets " $1"
6100 ac_need_defaults=false ;;
6101
6102 esac
6103 shift
6104 done
6105
6106 ac_configure_extra_args=
6107
6108 if $ac_cs_silent; then
6109 exec 6>/dev/null
6110 ac_configure_extra_args="$ac_configure_extra_args --silent"
6111 fi
6112
6113 _ACEOF
6114 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6115 if \$ac_cs_recheck; then
6116 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6117 shift
6118 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6119 CONFIG_SHELL='$SHELL'
6120 export CONFIG_SHELL
6121 exec "\$@"
6122 fi
6123
6124 _ACEOF
6125 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6126 exec 5>>config.log
6127 {
6128 echo
6129 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6130 ## Running $as_me. ##
6131 _ASBOX
6132 $as_echo "$ac_log"
6133 } >&5
6134
6135 _ACEOF
6136 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6137 _ACEOF
6138
6139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6140
6141 # Handling of arguments.
6142 for ac_config_target in $ac_config_targets
6143 do
6144 case $ac_config_target in
6145 "ncrack_config.h") CONFIG_HEADERS="$CONFIG_HEADERS ncrack_config.h" ;;
6146 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6147 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
6148
6149 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6150 esac
6151 done
6152
6153
6154 # If the user did not use the arguments to specify the items to instantiate,
6155 # then the envvar interface is used. Set only those that are not.
6156 # We use the long form for the default assignment because of an extremely
6157 # bizarre bug on SunOS 4.1.3.
6158 if $ac_need_defaults; then
6159 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6160 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6161 fi
6162
6163 # Have a temporary directory for convenience. Make it in the build tree
6164 # simply because there is no reason against having it here, and in addition,
6165 # creating and moving files from /tmp can sometimes cause problems.
6166 # Hook for its removal unless debugging.
6167 # Note that there is a small window in which the directory will not be cleaned:
6168 # after its creation but before its name has been assigned to `$tmp'.
6169 $debug ||
6170 {
6171 tmp= ac_tmp=
6172 trap 'exit_status=$?
6173 : "${ac_tmp:=$tmp}"
6174 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6175 ' 0
6176 trap 'as_fn_exit 1' 1 2 13 15
6177 }
6178 # Create a (secure) tmp directory for tmp files.
6179
6180 {
6181 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6182 test -d "$tmp"
6183 } ||
6184 {
6185 tmp=./conf$$-$RANDOM
6186 (umask 077 && mkdir "$tmp")
6187 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6188 ac_tmp=$tmp
6189
6190 # Set up the scripts for CONFIG_FILES section.
6191 # No need to generate them if there are no CONFIG_FILES.
6192 # This happens for instance with `./config.status config.h'.
6193 if test -n "$CONFIG_FILES"; then
6194
6195
6196 ac_cr=`echo X | tr X '\015'`
6197 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6198 # But we know of no other shell where ac_cr would be empty at this
6199 # point, so we can use a bashism as a fallback.
6200 if test "x$ac_cr" = x; then
6201 eval ac_cr=\$\'\\r\'
6202 fi
6203 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6204 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6205 ac_cs_awk_cr='\\r'
6206 else
6207 ac_cs_awk_cr=$ac_cr
6208 fi
6209
6210 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6211 _ACEOF
6212
6213
6214 {
6215 echo "cat >conf$$subs.awk <<_ACEOF" &&
6216 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6217 echo "_ACEOF"
6218 } >conf$$subs.sh ||
6219 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6220 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6221 ac_delim='%!_!# '
6222 for ac_last_try in false false false false false :; do
6223 . ./conf$$subs.sh ||
6224 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6225
6226 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6227 if test $ac_delim_n = $ac_delim_num; then
6228 break
6229 elif $ac_last_try; then
6230 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6231 else
6232 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6233 fi
6234 done
6235 rm -f conf$$subs.sh
6236
6237 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6238 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6239 _ACEOF
6240 sed -n '
6241 h
6242 s/^/S["/; s/!.*/"]=/
6243 p
6244 g
6245 s/^[^!]*!//
6246 :repl
6247 t repl
6248 s/'"$ac_delim"'$//
6249 t delim
6250 :nl
6251 h
6252 s/\(.\{148\}\)..*/\1/
6253 t more1
6254 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6255 p
6256 n
6257 b repl
6258 :more1
6259 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6260 p
6261 g
6262 s/.\{148\}//
6263 t nl
6264 :delim
6265 h
6266 s/\(.\{148\}\)..*/\1/
6267 t more2
6268 s/["\\]/\\&/g; s/^/"/; s/$/"/
6269 p
6270 b
6271 :more2
6272 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6273 p
6274 g
6275 s/.\{148\}//
6276 t delim
6277 ' <conf$$subs.awk | sed '
6278 /^[^""]/{
6279 N
6280 s/\n//
6281 }
6282 ' >>$CONFIG_STATUS || ac_write_fail=1
6283 rm -f conf$$subs.awk
6284 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6285 _ACAWK
6286 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6287 for (key in S) S_is_set[key] = 1
6288 FS = ""
6289
6290 }
6291 {
6292 line = $ 0
6293 nfields = split(line, field, "@")
6294 substed = 0
6295 len = length(field[1])
6296 for (i = 2; i < nfields; i++) {
6297 key = field[i]
6298 keylen = length(key)
6299 if (S_is_set[key]) {
6300 value = S[key]
6301 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6302 len += length(value) + length(field[++i])
6303 substed = 1
6304 } else
6305 len += 1 + keylen
6306 }
6307
6308 print line
6309 }
6310
6311 _ACAWK
6312 _ACEOF
6313 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6314 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6315 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6316 else
6317 cat
6318 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6319 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6320 _ACEOF
6321
6322 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6323 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6324 # trailing colons and then remove the whole line if VPATH becomes empty
6325 # (actually we leave an empty line to preserve line numbers).
6326 if test "x$srcdir" = x.; then
6327 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6328 h
6329 s///
6330 s/^/:/
6331 s/[ ]*$/:/
6332 s/:\$(srcdir):/:/g
6333 s/:\${srcdir}:/:/g
6334 s/:@srcdir@:/:/g
6335 s/^:*//
6336 s/:*$//
6337 x
6338 s/\(=[ ]*\).*/\1/
6339 G
6340 s/\n//
6341 s/^[^=]*=[ ]*$//
6342 }'
6343 fi
6344
6345 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6346 fi # test -n "$CONFIG_FILES"
6347
6348 # Set up the scripts for CONFIG_HEADERS section.
6349 # No need to generate them if there are no CONFIG_HEADERS.
6350 # This happens for instance with `./config.status Makefile'.
6351 if test -n "$CONFIG_HEADERS"; then
6352 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6353 BEGIN {
6354 _ACEOF
6355
6356 # Transform confdefs.h into an awk script `defines.awk', embedded as
6357 # here-document in config.status, that substitutes the proper values into
6358 # config.h.in to produce config.h.
6359
6360 # Create a delimiter string that does not exist in confdefs.h, to ease
6361 # handling of long lines.
6362 ac_delim='%!_!# '
6363 for ac_last_try in false false :; do
6364 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6365 if test -z "$ac_tt"; then
6366 break
6367 elif $ac_last_try; then
6368 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6369 else
6370 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6371 fi
6372 done
6373
6374 # For the awk script, D is an array of macro values keyed by name,
6375 # likewise P contains macro parameters if any. Preserve backslash
6376 # newline sequences.
6377
6378 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6379 sed -n '
6380 s/.\{148\}/&'"$ac_delim"'/g
6381 t rset
6382 :rset
6383 s/^[ ]*#[ ]*define[ ][ ]*/ /
6384 t def
6385 d
6386 :def
6387 s/\\$//
6388 t bsnl
6389 s/["\\]/\\&/g
6390 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6391 D["\1"]=" \3"/p
6392 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6393 d
6394 :bsnl
6395 s/["\\]/\\&/g
6396 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6397 D["\1"]=" \3\\\\\\n"\\/p
6398 t cont
6399 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6400 t cont
6401 d
6402 :cont
6403 n
6404 s/.\{148\}/&'"$ac_delim"'/g
6405 t clear
6406 :clear
6407 s/\\$//
6408 t bsnlc
6409 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6410 d
6411 :bsnlc
6412 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6413 b cont
6414 ' <confdefs.h | sed '
6415 s/'"$ac_delim"'/"\\\
6416 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6417
6418 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6419 for (key in D) D_is_set[key] = 1
6420 FS = ""
6421 }
6422 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6423 line = \$ 0
6424 split(line, arg, " ")
6425 if (arg[1] == "#") {
6426 defundef = arg[2]
6427 mac1 = arg[3]
6428 } else {
6429 defundef = substr(arg[1], 2)
6430 mac1 = arg[2]
6431 }
6432 split(mac1, mac2, "(") #)
6433 macro = mac2[1]
6434 prefix = substr(line, 1, index(line, defundef) - 1)
6435 if (D_is_set[macro]) {
6436 # Preserve the white space surrounding the "#".
6437 print prefix "define", macro P[macro] D[macro]
6438 next
6439 } else {
6440 # Replace #undef with comments. This is necessary, for example,
6441 # in the case of _POSIX_SOURCE, which is predefined and required
6442 # on some systems where configure will not decide to define it.
6443 if (defundef == "undef") {
6444 print "/*", prefix defundef, macro, "*/"
6445 next
6446 }
6447 }
6448 }
6449 { print }
6450 _ACAWK
6451 _ACEOF
6452 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6453 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6454 fi # test -n "$CONFIG_HEADERS"
6455
6456
6457 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
6458 shift
6459 for ac_tag
6460 do
6461 case $ac_tag in
6462 :[FHLC]) ac_mode=$ac_tag; continue;;
6463 esac
6464 case $ac_mode$ac_tag in
6465 :[FHL]*:*);;
6466 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6467 :[FH]-) ac_tag=-:-;;
6468 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6469 esac
6470 ac_save_IFS=$IFS
6471 IFS=:
6472 set x $ac_tag
6473 IFS=$ac_save_IFS
6474 shift
6475 ac_file=$1
6476 shift
6477
6478 case $ac_mode in
6479 :L) ac_source=$1;;
6480 :[FH])
6481 ac_file_inputs=
6482 for ac_f
6483 do
6484 case $ac_f in
6485 -) ac_f="$ac_tmp/stdin";;
6486 *) # Look for the file first in the build tree, then in the source tree
6487 # (if the path is not absolute). The absolute path cannot be DOS-style,
6488 # because $ac_f cannot contain `:'.
6489 test -f "$ac_f" ||
6490 case $ac_f in
6491 [\\/$]*) false;;
6492 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6493 esac ||
6494 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6495 esac
6496 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6497 as_fn_append ac_file_inputs " '$ac_f'"
6498 done
6499
6500 # Let's still pretend it is `configure' which instantiates (i.e., don't
6501 # use $as_me), people would be surprised to read:
6502 # /* config.h. Generated by config.status. */
6503 configure_input='Generated from '`
6504 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6505 `' by configure.'
6506 if test x"$ac_file" != x-; then
6507 configure_input="$ac_file. $configure_input"
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6509 $as_echo "$as_me: creating $ac_file" >&6;}
6510 fi
6511 # Neutralize special characters interpreted by sed in replacement strings.
6512 case $configure_input in #(
6513 *\&* | *\|* | *\\* )
6514 ac_sed_conf_input=`$as_echo "$configure_input" |
6515 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6516 *) ac_sed_conf_input=$configure_input;;
6517 esac
6518
6519 case $ac_tag in
6520 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6521 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6522 esac
6523 ;;
6524 esac
6525
6526 ac_dir=`$as_dirname -- "$ac_file" ||
6527 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6528 X"$ac_file" : 'X\(//\)[^/]' \| \
6529 X"$ac_file" : 'X\(//\)$' \| \
6530 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6531 $as_echo X"$ac_file" |
6532 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6533 s//\1/
6534 q
6535 }
6536 /^X\(\/\/\)[^/].*/{
6537 s//\1/
6538 q
6539 }
6540 /^X\(\/\/\)$/{
6541 s//\1/
6542 q
6543 }
6544 /^X\(\/\).*/{
6545 s//\1/
6546 q
6547 }
6548 s/.*/./; q'`
6549 as_dir="$ac_dir"; as_fn_mkdir_p
6550 ac_builddir=.
6551
6552 case "$ac_dir" in
6553 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6554 *)
6555 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6556 # A ".." for each directory in $ac_dir_suffix.
6557 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6558 case $ac_top_builddir_sub in
6559 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6560 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6561 esac ;;
6562 esac
6563 ac_abs_top_builddir=$ac_pwd
6564 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6565 # for backward compatibility:
6566 ac_top_builddir=$ac_top_build_prefix
6567
6568 case $srcdir in
6569 .) # We are building in place.
6570 ac_srcdir=.
6571 ac_top_srcdir=$ac_top_builddir_sub
6572 ac_abs_top_srcdir=$ac_pwd ;;
6573 [\\/]* | ?:[\\/]* ) # Absolute name.
6574 ac_srcdir=$srcdir$ac_dir_suffix;
6575 ac_top_srcdir=$srcdir
6576 ac_abs_top_srcdir=$srcdir ;;
6577 *) # Relative name.
6578 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6579 ac_top_srcdir=$ac_top_build_prefix$srcdir
6580 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6581 esac
6582 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6583
6584
6585 case $ac_mode in
6586 :F)
6587 #
6588 # CONFIG_FILE
6589 #
6590
6591 case $INSTALL in
6592 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6593 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6594 esac
6595 _ACEOF
6596
6597 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6598 # If the template does not know about datarootdir, expand it.
6599 # FIXME: This hack should be removed a few years after 2.60.
6600 ac_datarootdir_hack=; ac_datarootdir_seen=
6601 ac_sed_dataroot='
6602 /datarootdir/ {
6603 p
6604 q
6605 }
6606 /@datadir@/p
6607 /@docdir@/p
6608 /@infodir@/p
6609 /@localedir@/p
6610 /@mandir@/p'
6611 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6612 *datarootdir*) ac_datarootdir_seen=yes;;
6613 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6615 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6616 _ACEOF
6617 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6618 ac_datarootdir_hack='
6619 s&@datadir@&$datadir&g
6620 s&@docdir@&$docdir&g
6621 s&@infodir@&$infodir&g
6622 s&@localedir@&$localedir&g
6623 s&@mandir@&$mandir&g
6624 s&\\\${datarootdir}&$datarootdir&g' ;;
6625 esac
6626 _ACEOF
6627
6628 # Neutralize VPATH when `$srcdir' = `.'.
6629 # Shell code in configure.ac might set extrasub.
6630 # FIXME: do we really want to maintain this feature?
6631 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6632 ac_sed_extra="$ac_vpsub
6633 $extrasub
6634 _ACEOF
6635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6636 :t
6637 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6638 s|@configure_input@|$ac_sed_conf_input|;t t
6639 s&@top_builddir@&$ac_top_builddir_sub&;t t
6640 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6641 s&@srcdir@&$ac_srcdir&;t t
6642 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6643 s&@top_srcdir@&$ac_top_srcdir&;t t
6644 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6645 s&@builddir@&$ac_builddir&;t t
6646 s&@abs_builddir@&$ac_abs_builddir&;t t
6647 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6648 s&@INSTALL@&$ac_INSTALL&;t t
6649 $ac_datarootdir_hack
6650 "
6651 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6652 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6653
6654 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6655 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6656 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6657 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6659 which seems to be undefined. Please make sure it is defined" >&5
6660 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6661 which seems to be undefined. Please make sure it is defined" >&2;}
6662
6663 rm -f "$ac_tmp/stdin"
6664 case $ac_file in
6665 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6666 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6667 esac \
6668 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6669 ;;
6670 :H)
6671 #
6672 # CONFIG_HEADER
6673 #
6674 if test x"$ac_file" != x-; then
6675 {
6676 $as_echo "/* $configure_input */" \
6677 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6678 } >"$ac_tmp/config.h" \
6679 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6680 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6682 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6683 else
6684 rm -f "$ac_file"
6685 mv "$ac_tmp/config.h" "$ac_file" \
6686 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6687 fi
6688 else
6689 $as_echo "/* $configure_input */" \
6690 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6691 || as_fn_error $? "could not create -" "$LINENO" 5
6692 fi
6693 ;;
6694
6695
6696 esac
6697
6698 done # for ac_tag
6699
6700
6701 as_fn_exit 0
6702 _ACEOF
6703 ac_clean_files=$ac_clean_files_save
6704
6705 test $ac_write_fail = 0 ||
6706 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6707
6708
6709 # configure is writing to config.log, and then calls config.status.
6710 # config.status does its own redirection, appending to config.log.
6711 # Unfortunately, on DOS this fails, as config.log is still kept open
6712 # by configure, so config.status won't be able to write to it; its
6713 # output is simply discarded. So we exec the FD to /dev/null,
6714 # effectively closing config.log, so it can be properly (re)opened and
6715 # appended to by config.status. When coming back to configure, we
6716 # need to make the FD available again.
6717 if test "$no_create" != yes; then
6718 ac_cs_success=:
6719 ac_config_status_args=
6720 test "$silent" = yes &&
6721 ac_config_status_args="$ac_config_status_args --quiet"
6722 exec 5>/dev/null
6723 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6724 exec 5>>config.log
6725 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6726 # would make configure fail if this is the last instruction.
6727 $ac_cs_success || as_fn_exit 1
6728 fi
6729
6730 #
6731 # CONFIG_SUBDIRS section.
6732 #
6733 if test "$no_recursion" != yes; then
6734
6735 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
6736 # so they do not pile up.
6737 ac_sub_configure_args=
6738 ac_prev=
6739 eval "set x $ac_configure_args"
6740 shift
6741 for ac_arg
6742 do
6743 if test -n "$ac_prev"; then
6744 ac_prev=
6745 continue
6746 fi
6747 case $ac_arg in
6748 -cache-file | --cache-file | --cache-fil | --cache-fi \
6749 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
6750 ac_prev=cache_file ;;
6751 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
6752 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
6753 | --c=*)
6754 ;;
6755 --config-cache | -C)
6756 ;;
6757 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
6758 ac_prev=srcdir ;;
6759 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
6760 ;;
6761 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
6762 ac_prev=prefix ;;
6763 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
6764 ;;
6765 --disable-option-checking)
6766 ;;
6767 *)
6768 case $ac_arg in
6769 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6770 esac
6771 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
6772 esac
6773 done
6774
6775 # Always prepend --prefix to ensure using the same prefix
6776 # in subdir configurations.
6777 ac_arg="--prefix=$prefix"
6778 case $ac_arg in
6779 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6780 esac
6781 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
6782
6783 # Pass --silent
6784 if test "$silent" = yes; then
6785 ac_sub_configure_args="--silent $ac_sub_configure_args"
6786 fi
6787
6788 # Always prepend --disable-option-checking to silence warnings, since
6789 # different subdirs can have different --enable and --with options.
6790 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
6791
6792 ac_popdir=`pwd`
6793 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
6794
6795 # Do not complain, so a configure script can configure whichever
6796 # parts of a large source tree are present.
6797 test -d "$srcdir/$ac_dir" || continue
6798
6799 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
6800 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
6801 $as_echo "$ac_msg" >&6
6802 as_dir="$ac_dir"; as_fn_mkdir_p
6803 ac_builddir=.
6804
6805 case "$ac_dir" in
6806 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6807 *)
6808 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6809 # A ".." for each directory in $ac_dir_suffix.
6810 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6811 case $ac_top_builddir_sub in
6812 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6813 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6814 esac ;;
6815 esac
6816 ac_abs_top_builddir=$ac_pwd
6817 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6818 # for backward compatibility:
6819 ac_top_builddir=$ac_top_build_prefix
6820
6821 case $srcdir in
6822 .) # We are building in place.
6823 ac_srcdir=.
6824 ac_top_srcdir=$ac_top_builddir_sub
6825 ac_abs_top_srcdir=$ac_pwd ;;
6826 [\\/]* | ?:[\\/]* ) # Absolute name.
6827 ac_srcdir=$srcdir$ac_dir_suffix;
6828 ac_top_srcdir=$srcdir
6829 ac_abs_top_srcdir=$srcdir ;;
6830 *) # Relative name.
6831 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6832 ac_top_srcdir=$ac_top_build_prefix$srcdir
6833 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6834 esac
6835 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6836
6837
6838 cd "$ac_dir"
6839
6840 # Check for guested configure; otherwise get Cygnus style configure.
6841 if test -f "$ac_srcdir/configure.gnu"; then
6842 ac_sub_configure=$ac_srcdir/configure.gnu
6843 elif test -f "$ac_srcdir/configure"; then
6844 ac_sub_configure=$ac_srcdir/configure
6845 elif test -f "$ac_srcdir/configure.in"; then
6846 # This should be Cygnus configure.
6847 ac_sub_configure=$ac_aux_dir/configure
6848 else
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
6850 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
6851 ac_sub_configure=
6852 fi
6853
6854 # The recursion is here.
6855 if test -n "$ac_sub_configure"; then
6856 # Make the cache file name correct relative to the subdirectory.
6857 case $cache_file in
6858 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
6859 *) # Relative name.
6860 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
6861 esac
6862
6863 { $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
6864 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
6865 # The eval makes quoting arguments work.
6866 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
6867 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
6868 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
6869 fi
6870
6871 cd "$ac_popdir"
6872 done
6873 fi
6874 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6876 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6877 fi
6878
6879
6880 if test -f docs/leet-ncrack-ascii-art.txt; then
6881 cat docs/leet-ncrack-ascii-art.txt
6882 fi
6883 echo "Configuration complete. Type make (or gmake on some *BSD machines) to compile."