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